diff --git a/.DS_Store b/.DS_Store index dca8459b..cc4c8ff9 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 152bccfc..1bf67d4b 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,5 @@ { "recommendations": [ - "frenco.vscode-vercel" + "haydenbleasel.vercel-vscode" ] } \ No newline at end of file diff --git a/dist/.DS_Store b/dist/.DS_Store index 3af08cf3..af33688a 100644 Binary files a/dist/.DS_Store and b/dist/.DS_Store differ diff --git a/node_modules/.DS_Store b/node_modules/.DS_Store deleted file mode 100644 index abb5b09d..00000000 Binary files a/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/.bin/get-res b/node_modules/.bin/get-res deleted file mode 120000 index a0ca0920..00000000 --- a/node_modules/.bin/get-res +++ /dev/null @@ -1 +0,0 @@ -../get-res/cli.js \ No newline at end of file diff --git a/node_modules/.bin/strip-indent b/node_modules/.bin/strip-indent deleted file mode 120000 index dddee7eb..00000000 --- a/node_modules/.bin/strip-indent +++ /dev/null @@ -1 +0,0 @@ -../strip-indent/cli.js \ No newline at end of file diff --git a/node_modules/.bin/w3counter b/node_modules/.bin/w3counter deleted file mode 120000 index bbb616a3..00000000 --- a/node_modules/.bin/w3counter +++ /dev/null @@ -1 +0,0 @@ -../w3counter/cli.js \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 5f919b0a..0bab3f96 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -16,14 +16,6 @@ "node": ">=6.0.0" } }, - "node_modules/@contentful/rich-text-types": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@contentful/rich-text-types/-/rich-text-types-16.3.5.tgz", - "integrity": "sha512-ZLq6p5uyQXg+i1XGDFu4tAc2VYS12S1KA/jIOyyZjNgC1DvDajsi1JzuiBuOuMEhi1sKEUy6Ry3Yr9jsQtOKuQ==", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -276,9 +268,9 @@ "dev": true }, "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", "dev": true, "dependencies": { "@types/connect": "*", @@ -295,9 +287,9 @@ } }, "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", "dev": true, "dependencies": { "@types/node": "*" @@ -314,9 +306,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.4.3", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.3.tgz", - "integrity": "sha512-YP1S7YJRMPs+7KZKDb9G63n8YejIwW9BALq7a5j2+H4yl6iOv9CB29edho+cuFRrvmJbbaH2yiVChKLJVysDGw==", + "version": "8.56.10", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", + "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", "peer": true, "dependencies": { "@types/estree": "*", @@ -324,9 +316,9 @@ } }, "node_modules/@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", "peer": true, "dependencies": { "@types/eslint": "*", @@ -370,9 +362,9 @@ "dev": true }, "node_modules/@types/http-proxy": { - "version": "1.17.9", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.9.tgz", - "integrity": "sha512-QsbSjA/fSk7xB+UXlCT3wHBy5ai9wOcNDWwZAtud+jXhwOM3l+EYZh8Lng4+/6n8uar0J7xILzqftJdJ/Wdfkw==", + "version": "1.17.14", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.14.tgz", + "integrity": "sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==", "dev": true, "dependencies": { "@types/node": "*" @@ -402,20 +394,15 @@ "@types/istanbul-lib-report": "*" } }, - "node_modules/@types/json-patch": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/@types/json-patch/-/json-patch-0.0.30.tgz", - "integrity": "sha512-MhCUjojzDhVLnZnxwPwa+rETFRDQ0ffjxYdrqOP6TBO2O0/Z64PV5tNeYApo4bc4y4frbWOrRwv/eEkXlI13Rw==" - }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" }, "node_modules/@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", "dev": true }, "node_modules/@types/node": { @@ -446,9 +433,9 @@ } }, "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "version": "6.9.15", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz", + "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==", "dev": true }, "node_modules/@types/range-parser": { @@ -522,9 +509,9 @@ } }, "node_modules/@types/webxr": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.4.0.tgz", - "integrity": "sha512-LQvrACV3Pj17GpkwHwXuTd733gfY+D7b9mKdrTmLdO7vo7P/o6209Qqtk63y/FCv/lspdmi0pWz6Qe/ull9kQg==", + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.16.tgz", + "integrity": "sha512-0E0Cl84FECtzrB4qG19TNTqpunw0F1YF0QZZnFMF6pDw1kNKJtrlTKlVB34stGIsHbZsYQ7H0tNjPfZftkHHoA==", "dev": true }, "node_modules/@types/ws": { @@ -551,21 +538,6 @@ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, - "node_modules/@use-gesture/core": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz", - "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==", - "dev": true - }, - "node_modules/@use-gesture/vanilla": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/@use-gesture/vanilla/-/vanilla-10.3.1.tgz", - "integrity": "sha512-lT4scGLu59ovA3zmtUonukAGcA0AdOOh+iwNDS05Bsu7Lq9aZToDHhI6D8Q2qvsVraovtsLLYwPrWdG/noMAKw==", - "dev": true, - "dependencies": { - "@use-gesture/core": "10.3.1" - } - }, "node_modules/@vercel/postgres": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/@vercel/postgres/-/postgres-0.8.0.tgz", @@ -915,15 +887,15 @@ } }, "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "peer": true, + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", + "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", + "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" }, "funding": { "type": "github", @@ -947,35 +919,16 @@ } } }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", + "node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peer": true, "peerDependencies": { - "ajv": "^6.9.1" + "ajv": "^8.8.2" } }, "node_modules/ansi-html-community": { @@ -1029,20 +982,10 @@ "node": ">= 8" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" }, "node_modules/balanced-match": { "version": "1.0.2", @@ -1091,14 +1034,6 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/body-parser/node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", @@ -1214,10 +1149,9 @@ } }, "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "dev": true, + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "engines": { "node": ">= 0.8" } @@ -1286,6 +1220,17 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -1371,28 +1316,20 @@ "dev": true }, "node_modules/colorette": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, "engines": { - "node": ">= 0.8" + "node": ">= 10" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "peer": true - }, "node_modules/compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", @@ -1423,6 +1360,15 @@ "node": ">= 0.8.0" } }, + "node_modules/compression/node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/compression/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -1457,43 +1403,6 @@ "node": ">= 0.6" } }, - "node_modules/contentful-management": { - "version": "11.25.3", - "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-11.25.3.tgz", - "integrity": "sha512-rHOZp5s8pGkmPzEF6W7cWUVXYnMAzNblCdz69Yam41CYcJAu3ayW3ATKH1gYc9qz7l4dYX+7brk3G+kpuku7mw==", - "dependencies": { - "@contentful/rich-text-types": "^16.3.0", - "@types/json-patch": "0.0.30", - "axios": "^1.6.2", - "contentful-sdk-core": "^8.1.0", - "fast-copy": "^3.0.0", - "lodash.isplainobject": "^4.0.6", - "type-fest": "^4.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/contentful-sdk-core": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-8.1.2.tgz", - "integrity": "sha512-XZvX2JMJF4YiICXLrHFv59KBHaQJ6ElqAP8gSNgnCu4x+pPG7Y1bC2JMNOiyAgJuGQGVUOcNZ5PmK+tsNEayYw==", - "dependencies": { - "fast-copy": "^2.1.7", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "p-throttle": "^4.1.1", - "qs": "^6.11.2" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/contentful-sdk-core/node_modules/fast-copy": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-2.1.7.tgz", - "integrity": "sha512-ozrGwyuCTAy7YgFCua8rmqmytECYk/JYAMXcswOcm0qvGoE3tPb7ivBeIHTOK2DiapBhDZgacIhzhQIKU5TCfA==" - }, "node_modules/cookie": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", @@ -1618,89 +1527,6 @@ } } }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/css-select": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", @@ -1945,14 +1771,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -2282,11 +2100,6 @@ "node": ">= 0.10.0" } }, - "node_modules/express/node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, "node_modules/express/node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", @@ -2301,11 +2114,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/fast-copy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", - "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==" - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2318,10 +2126,13 @@ "peer": true }, "node_modules/fastest-levenshtein": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", - "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", - "dev": true + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } }, "node_modules/faye-websocket": { "version": "0.11.4", @@ -2382,10 +2193,20 @@ "node": ">=8" } }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, "node_modules/follow-redirects": { "version": "1.15.6", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", + "dev": true, "funding": [ { "type": "individual", @@ -2429,19 +2250,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -2642,9 +2450,9 @@ } }, "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, "dependencies": { "core-util-is": "~1.0.0", @@ -2709,9 +2517,9 @@ } }, "node_modules/http-parser-js": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", - "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", "dev": true }, "node_modules/http-proxy": { @@ -2827,12 +2635,11 @@ } }, "node_modules/ipaddr.js": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz", - "integrity": "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==", - "dev": true, + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", "engines": { - "node": ">= 10" + "node": ">= 0.10" } }, "node_modules/is-binary-path": { @@ -3050,32 +2857,18 @@ } }, "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "peer": true, + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, "dependencies": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/json-parse-even-better-errors": { @@ -3085,10 +2878,10 @@ "peer": true }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "peer": true + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, "node_modules/kind-of": { "version": "6.0.3", @@ -3147,16 +2940,6 @@ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" - }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -3315,59 +3098,6 @@ "webpack": "^5.0.0" } }, - "node_modules/mini-css-extract-plugin/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", - "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.8.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -3615,17 +3345,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-throttle": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/p-throttle/-/p-throttle-4.1.1.tgz", - "integrity": "sha512-TuU8Ato+pRTPJoDzYD4s7ocJYcNSEZRvlxoq3hcPI2kZDZ49IQ1Wkj7/gDJc3X7XiEAAvRGtDzdXJI0tC3IL1g==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -4321,41 +4040,14 @@ "node": ">= 0.10" } }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "engines": { "node": ">=6" } }, - "node_modules/qs": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", - "integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -4386,18 +4078,10 @@ "node": ">= 0.8" } }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "dependencies": { "inherits": "^2.0.3", @@ -4549,17 +4233,18 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "peer": true, + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" }, "engines": { - "node": ">= 10.13.0" + "node": ">= 12.13.0" }, "funding": { "type": "opencollective", @@ -4826,12 +4511,11 @@ } }, "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "peer": true, + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "engines": { - "node": ">=0.10.0" + "node": ">= 8" } }, "node_modules/source-map-js": { @@ -4852,6 +4536,15 @@ "source-map": "^0.6.0" } }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/spdy": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", @@ -5083,14 +4776,17 @@ } }, "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -5130,15 +4826,6 @@ "url": "https://opencollective.com/svgo" } }, - "node_modules/svgo/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -5199,6 +4886,75 @@ } } }, + "node_modules/terser-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peer": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "peer": true + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "peer": true + }, "node_modules/thingies": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/thingies/-/thingies-1.21.0.tgz", @@ -5215,16 +4971,9 @@ "version": "0.164.1", "resolved": "https://registry.npmjs.org/three/-/three-0.164.1.tgz", "integrity": "sha512-iC/hUBbl1vzFny7f5GtqzVXYjMJKaTPxiCxXfrvVdBi1Sf+jhd1CAkitiFwC7mIBFCo3MrDLJG97yisoaWig0w==", + "dev": true, "peer": true }, - "node_modules/three-mesh-bvh": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.7.4.tgz", - "integrity": "sha512-flxe0A4uflTPR6elgq/Y8VrLoljDNS899i422SxQcU3EtMj6o8z4kZRyqZqGWzR0qMf1InTZzY1/0xZl/rnvVw==", - "peerDependencies": { - "three": ">= 0.151.0" - } - }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -5285,14 +5034,6 @@ "webpack": "^5.0.0" } }, - "node_modules/ts-loader/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "engines": { - "node": ">= 8" - } - }, "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", @@ -5307,17 +5048,6 @@ "url": "https://github.com/sponsors/cocopon" } }, - "node_modules/type-fest": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.18.2.tgz", - "integrity": "sha512-+suCYpfJLAe4OXS6+PPXjW3urOS4IoP9waSiLuXfLgqZODKw/aWwASvzqE886wA0kQgGy0mIWyhd87VpqIy6Xg==", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -5626,59 +5356,6 @@ } } }, - "node_modules/webpack-dev-middleware/node_modules/ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/webpack-dev-middleware/node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, "node_modules/webpack-dev-server": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.0.4.tgz", @@ -5738,57 +5415,13 @@ } } }, - "node_modules/webpack-dev-server/node_modules/ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-server/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/webpack-dev-server/node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "node_modules/webpack-dev-server/node_modules/ipaddr.js": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz", + "integrity": "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==", "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "node": ">= 10" } }, "node_modules/webpack-dev-server/node_modules/ws": { @@ -5813,12 +5446,13 @@ } }, "node_modules/webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", + "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", "dev": true, "dependencies": { "clone-deep": "^4.0.1", + "flat": "^5.0.2", "wildcard": "^2.0.0" }, "engines": { @@ -5834,6 +5468,55 @@ "node": ">=10.13.0" } }, + "node_modules/webpack/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peer": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "peer": true + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/websocket-driver": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", @@ -5873,9 +5556,9 @@ } }, "node_modules/wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, "node_modules/wrap-ansi": { diff --git a/node_modules/@0b5vr/.DS_Store b/node_modules/@0b5vr/.DS_Store deleted file mode 100644 index 9e2ccdc0..00000000 Binary files a/node_modules/@0b5vr/.DS_Store and /dev/null differ diff --git a/node_modules/@babel/.DS_Store b/node_modules/@babel/.DS_Store deleted file mode 100644 index 175b2363..00000000 Binary files a/node_modules/@babel/.DS_Store and /dev/null differ diff --git a/node_modules/@discoveryjs/.DS_Store b/node_modules/@discoveryjs/.DS_Store deleted file mode 100644 index cc1a2958..00000000 Binary files a/node_modules/@discoveryjs/.DS_Store and /dev/null differ diff --git a/node_modules/@discoveryjs/json-ext/.DS_Store b/node_modules/@discoveryjs/json-ext/.DS_Store deleted file mode 100644 index c50618e7..00000000 Binary files a/node_modules/@discoveryjs/json-ext/.DS_Store and /dev/null differ diff --git a/node_modules/@jridgewell/.DS_Store b/node_modules/@jridgewell/.DS_Store deleted file mode 100644 index a75470dc..00000000 Binary files a/node_modules/@jridgewell/.DS_Store and /dev/null differ diff --git a/node_modules/@leichtgewicht/.DS_Store b/node_modules/@leichtgewicht/.DS_Store deleted file mode 100644 index 8ea39908..00000000 Binary files a/node_modules/@leichtgewicht/.DS_Store and /dev/null differ diff --git a/node_modules/@tweakpane/.DS_Store b/node_modules/@tweakpane/.DS_Store deleted file mode 100644 index 00b4ab06..00000000 Binary files a/node_modules/@tweakpane/.DS_Store and /dev/null differ diff --git a/node_modules/@types/.DS_Store b/node_modules/@types/.DS_Store deleted file mode 100644 index 3c58ed3f..00000000 Binary files a/node_modules/@types/.DS_Store and /dev/null differ diff --git a/node_modules/@types/body-parser/LICENSE b/node_modules/@types/body-parser/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/body-parser/README.md b/node_modules/@types/body-parser/README.md old mode 100755 new mode 100644 index 9b54a39c..0d280422 --- a/node_modules/@types/body-parser/README.md +++ b/node_modules/@types/body-parser/README.md @@ -8,9 +8,8 @@ This package contains type definitions for body-parser (https://github.com/expre Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser. ### Additional Details - * Last updated: Tue, 16 Nov 2021 18:31:30 GMT + * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node) - * Global values: none # Credits These definitions were written by [Santi Albo](https://github.com/santialbo), [Vilic Vane](https://github.com/vilic), [Jonathan Häberle](https://github.com/dreampulse), [Gevik Babakhani](https://github.com/blendsdk), [Tomasz Łaziuk](https://github.com/tlaziuk), [Jason Walton](https://github.com/jwalton), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). diff --git a/node_modules/@types/body-parser/index.d.ts b/node_modules/@types/body-parser/index.d.ts old mode 100755 new mode 100644 index 4be03964..96feda82 --- a/node_modules/@types/body-parser/index.d.ts +++ b/node_modules/@types/body-parser/index.d.ts @@ -1,18 +1,7 @@ -// Type definitions for body-parser 1.19 -// Project: https://github.com/expressjs/body-parser -// Definitions by: Santi Albo -// Vilic Vane -// Jonathan Häberle -// Gevik Babakhani -// Tomasz Łaziuk -// Jason Walton -// Piotr Błażejewicz -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// -import { NextHandleFunction } from 'connect'; -import * as http from 'http'; +import { NextHandleFunction } from "connect"; +import * as http from "http"; // for docs go to https://github.com/expressjs/body-parser/tree/1.19.0#body-parser @@ -67,7 +56,6 @@ declare namespace bodyParser { interface OptionsJson extends Options { /** - * * The reviver option is passed directly to JSON.parse as the second argument. */ reviver?(key: string, value: any): any; diff --git a/node_modules/@types/body-parser/package.json b/node_modules/@types/body-parser/package.json old mode 100755 new mode 100644 index 8f99f52b..71f1218d --- a/node_modules/@types/body-parser/package.json +++ b/node_modules/@types/body-parser/package.json @@ -1,44 +1,44 @@ { "name": "@types/body-parser", - "version": "1.19.2", + "version": "1.19.5", "description": "TypeScript definitions for body-parser", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser", "license": "MIT", "contributors": [ { "name": "Santi Albo", - "url": "https://github.com/santialbo", - "githubUsername": "santialbo" + "githubUsername": "santialbo", + "url": "https://github.com/santialbo" }, { "name": "Vilic Vane", - "url": "https://github.com/vilic", - "githubUsername": "vilic" + "githubUsername": "vilic", + "url": "https://github.com/vilic" }, { "name": "Jonathan Häberle", - "url": "https://github.com/dreampulse", - "githubUsername": "dreampulse" + "githubUsername": "dreampulse", + "url": "https://github.com/dreampulse" }, { "name": "Gevik Babakhani", - "url": "https://github.com/blendsdk", - "githubUsername": "blendsdk" + "githubUsername": "blendsdk", + "url": "https://github.com/blendsdk" }, { "name": "Tomasz Łaziuk", - "url": "https://github.com/tlaziuk", - "githubUsername": "tlaziuk" + "githubUsername": "tlaziuk", + "url": "https://github.com/tlaziuk" }, { "name": "Jason Walton", - "url": "https://github.com/jwalton", - "githubUsername": "jwalton" + "githubUsername": "jwalton", + "url": "https://github.com/jwalton" }, { "name": "Piotr Błażejewicz", - "url": "https://github.com/peterblazejewicz", - "githubUsername": "peterblazejewicz" + "githubUsername": "peterblazejewicz", + "url": "https://github.com/peterblazejewicz" } ], "main": "", @@ -53,6 +53,6 @@ "@types/connect": "*", "@types/node": "*" }, - "typesPublisherContentHash": "ad069aa8b9e8a95f66df025de11975c773540e4071000abdb7db565579b013ee", - "typeScriptVersion": "3.7" + "typesPublisherContentHash": "7be737b78c8aabd5436be840558b283182b44c3cf9da24fb1f2ff8f414db5802", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/connect/LICENSE b/node_modules/@types/connect/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/connect/README.md b/node_modules/@types/connect/README.md old mode 100755 new mode 100644 index e9872646..1746fab0 --- a/node_modules/@types/connect/README.md +++ b/node_modules/@types/connect/README.md @@ -8,9 +8,8 @@ This package contains type definitions for connect (https://github.com/senchalab Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect. ### Additional Details - * Last updated: Tue, 06 Jul 2021 20:32:28 GMT + * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) - * Global values: none # Credits These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Evan Hahn](https://github.com/EvanHahn). diff --git a/node_modules/@types/connect/index.d.ts b/node_modules/@types/connect/index.d.ts old mode 100755 new mode 100644 index c1d5aa86..8355d781 --- a/node_modules/@types/connect/index.d.ts +++ b/node_modules/@types/connect/index.d.ts @@ -1,12 +1,5 @@ -// Type definitions for connect v3.4.0 -// Project: https://github.com/senchalabs/connect -// Definitions by: Maxime LUCE -// Evan Hahn -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// - import * as http from "http"; /** @@ -25,7 +18,12 @@ declare namespace createServer { export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void; export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void; - export type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void; + export type ErrorHandleFunction = ( + err: any, + req: IncomingMessage, + res: http.ServerResponse, + next: NextFunction, + ) => void; export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction; export interface ServerStackItem { @@ -40,49 +38,49 @@ declare namespace createServer { stack: ServerStackItem[]; /** - * Utilize the given middleware `handle` to the given `route`, - * defaulting to _/_. This "route" is the mount-point for the - * middleware, when given a value other than _/_ the middleware - * is only effective when that segment is present in the request's - * pathname. - * - * For example if we were to mount a function at _/admin_, it would - * be invoked on _/admin_, and _/admin/settings_, however it would - * not be invoked for _/_, or _/posts_. - */ + * Utilize the given middleware `handle` to the given `route`, + * defaulting to _/_. This "route" is the mount-point for the + * middleware, when given a value other than _/_ the middleware + * is only effective when that segment is present in the request's + * pathname. + * + * For example if we were to mount a function at _/admin_, it would + * be invoked on _/admin_, and _/admin/settings_, however it would + * not be invoked for _/_, or _/posts_. + */ use(fn: NextHandleFunction): Server; use(fn: HandleFunction): Server; use(route: string, fn: NextHandleFunction): Server; use(route: string, fn: HandleFunction): Server; /** - * Handle server requests, punting them down - * the middleware stack. - */ + * Handle server requests, punting them down + * the middleware stack. + */ handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void; /** - * Listen for connections. - * - * This method takes the same arguments - * as node's `http.Server#listen()`. - * - * HTTP and HTTPS: - * - * If you run your application both as HTTP - * and HTTPS you may wrap them individually, - * since your Connect "server" is really just - * a JavaScript `Function`. - * - * var connect = require('connect') - * , http = require('http') - * , https = require('https'); - * - * var app = connect(); - * - * http.createServer(app).listen(80); - * https.createServer(options, app).listen(443); - */ + * Listen for connections. + * + * This method takes the same arguments + * as node's `http.Server#listen()`. + * + * HTTP and HTTPS: + * + * If you run your application both as HTTP + * and HTTPS you may wrap them individually, + * since your Connect "server" is really just + * a JavaScript `Function`. + * + * var connect = require('connect') + * , http = require('http') + * , https = require('https'); + * + * var app = connect(); + * + * http.createServer(app).listen(80); + * https.createServer(options, app).listen(443); + */ listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server; listen(port: number, hostname?: string, callback?: Function): http.Server; listen(path: string, callback?: Function): http.Server; diff --git a/node_modules/@types/connect/package.json b/node_modules/@types/connect/package.json old mode 100755 new mode 100644 index dff5f104..207078e5 --- a/node_modules/@types/connect/package.json +++ b/node_modules/@types/connect/package.json @@ -1,19 +1,19 @@ { "name": "@types/connect", - "version": "3.4.35", + "version": "3.4.38", "description": "TypeScript definitions for connect", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect", "license": "MIT", "contributors": [ { "name": "Maxime LUCE", - "url": "https://github.com/SomaticIT", - "githubUsername": "SomaticIT" + "githubUsername": "SomaticIT", + "url": "https://github.com/SomaticIT" }, { "name": "Evan Hahn", - "url": "https://github.com/EvanHahn", - "githubUsername": "EvanHahn" + "githubUsername": "EvanHahn", + "url": "https://github.com/EvanHahn" } ], "main": "", @@ -27,6 +27,6 @@ "dependencies": { "@types/node": "*" }, - "typesPublisherContentHash": "09c0dcec5f675cb2bdd7487a85447955f769ef4ab174294478c4f055b528fecc", - "typeScriptVersion": "3.6" + "typesPublisherContentHash": "8990242237504bdec53088b79e314b94bec69286df9de56db31f22de403b4092", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/eslint-scope/LICENSE b/node_modules/@types/eslint-scope/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/eslint-scope/README.md b/node_modules/@types/eslint-scope/README.md old mode 100755 new mode 100644 index 81f42d55..cae6d8b2 --- a/node_modules/@types/eslint-scope/README.md +++ b/node_modules/@types/eslint-scope/README.md @@ -8,11 +8,6 @@ This package contains type definitions for eslint-scope (https://github.com/esli Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope/index.d.ts) ````ts -// Type definitions for eslint-scope 3.7 -// Project: https://github.com/eslint/eslint-scope -// Definitions by: Toru Nagashima -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.8 import * as eslint from "eslint"; import * as estree from "estree"; @@ -26,7 +21,18 @@ export class ScopeManager implements eslint.Scope.ScopeManager { } export class Scope implements eslint.Scope.Scope { - type: "block" | "catch" | "class" | "for" | "function" | "function-expression-name" | "global" | "module" | "switch" | "with" | "TDZ"; + type: + | "block" + | "catch" + | "class" + | "for" + | "function" + | "function-expression-name" + | "global" + | "module" + | "switch" + | "with" + | "TDZ"; isStrict: boolean; upper: Scope | null; childScopes: Scope[]; @@ -41,6 +47,7 @@ export class Scope implements eslint.Scope.Scope { export class Variable implements eslint.Scope.Variable { name: string; + scope: Scope; identifiers: estree.Identifier[]; references: Reference[]; defs: eslint.Scope.Definition[]; @@ -76,9 +83,8 @@ export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager; ```` ### Additional Details - * Last updated: Mon, 10 Jan 2022 21:01:33 GMT + * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/eslint](https://npmjs.com/package/@types/eslint), [@types/estree](https://npmjs.com/package/@types/estree) - * Global values: none # Credits These definitions were written by [Toru Nagashima](https://github.com/mysticatea). diff --git a/node_modules/@types/eslint-scope/index.d.ts b/node_modules/@types/eslint-scope/index.d.ts old mode 100755 new mode 100644 index a54941d9..96e3fb37 --- a/node_modules/@types/eslint-scope/index.d.ts +++ b/node_modules/@types/eslint-scope/index.d.ts @@ -1,8 +1,3 @@ -// Type definitions for eslint-scope 3.7 -// Project: https://github.com/eslint/eslint-scope -// Definitions by: Toru Nagashima -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.8 import * as eslint from "eslint"; import * as estree from "estree"; @@ -16,7 +11,18 @@ export class ScopeManager implements eslint.Scope.ScopeManager { } export class Scope implements eslint.Scope.Scope { - type: "block" | "catch" | "class" | "for" | "function" | "function-expression-name" | "global" | "module" | "switch" | "with" | "TDZ"; + type: + | "block" + | "catch" + | "class" + | "for" + | "function" + | "function-expression-name" + | "global" + | "module" + | "switch" + | "with" + | "TDZ"; isStrict: boolean; upper: Scope | null; childScopes: Scope[]; @@ -31,6 +37,7 @@ export class Scope implements eslint.Scope.Scope { export class Variable implements eslint.Scope.Variable { name: string; + scope: Scope; identifiers: estree.Identifier[]; references: Reference[]; defs: eslint.Scope.Definition[]; diff --git a/node_modules/@types/eslint-scope/package.json b/node_modules/@types/eslint-scope/package.json old mode 100755 new mode 100644 index 9a67ffb8..4dabc9ba --- a/node_modules/@types/eslint-scope/package.json +++ b/node_modules/@types/eslint-scope/package.json @@ -1,14 +1,14 @@ { "name": "@types/eslint-scope", - "version": "3.7.3", + "version": "3.7.7", "description": "TypeScript definitions for eslint-scope", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope", "license": "MIT", "contributors": [ { "name": "Toru Nagashima", - "url": "https://github.com/mysticatea", - "githubUsername": "mysticatea" + "githubUsername": "mysticatea", + "url": "https://github.com/mysticatea" } ], "main": "", @@ -23,6 +23,6 @@ "@types/eslint": "*", "@types/estree": "*" }, - "typesPublisherContentHash": "8e411ace0ab4265f36d35de1569d64466d2b58696d0afdd65620550a4762f1f4", - "typeScriptVersion": "3.8" + "typesPublisherContentHash": "49eee35b78c19e2c83bc96ce190c7a88329006f876dd7f1fb378c1e8034fc8f2", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/eslint/LICENSE b/node_modules/@types/eslint/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/eslint/README.md b/node_modules/@types/eslint/README.md old mode 100755 new mode 100644 index 1c9998ab..9c477f12 --- a/node_modules/@types/eslint/README.md +++ b/node_modules/@types/eslint/README.md @@ -8,9 +8,8 @@ This package contains type definitions for eslint (https://eslint.org). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint. ### Additional Details - * Last updated: Wed, 08 Jun 2022 19:31:34 GMT + * Last updated: Thu, 18 Apr 2024 18:35:25 GMT * Dependencies: [@types/estree](https://npmjs.com/package/@types/estree), [@types/json-schema](https://npmjs.com/package/@types/json-schema) - * Global values: none # Credits -These definitions were written by [Pierre-Marie Dartus](https://github.com/pmdartus), [Jed Fox](https://github.com/j-f1), [Saad Quadri](https://github.com/saadq), [Jason Kwok](https://github.com/JasonHK), [Brad Zacher](https://github.com/bradzacher), and [JounQin](https://github.com/JounQin). +These definitions were written by [Pierre-Marie Dartus](https://github.com/pmdartus), [Jed Fox](https://github.com/j-f1), [Saad Quadri](https://github.com/saadq), [Jason Kwok](https://github.com/JasonHK), [Brad Zacher](https://github.com/bradzacher), [JounQin](https://github.com/JounQin), and [Bryan Mishkin](https://github.com/bmish). diff --git a/node_modules/@types/eslint/helpers.d.ts b/node_modules/@types/eslint/helpers.d.ts old mode 100755 new mode 100644 diff --git a/node_modules/@types/eslint/index.d.ts b/node_modules/@types/eslint/index.d.ts old mode 100755 new mode 100644 index 6aa39e45..2cc90caa --- a/node_modules/@types/eslint/index.d.ts +++ b/node_modules/@types/eslint/index.d.ts @@ -1,13 +1,3 @@ -// Type definitions for eslint 8.4 -// Project: https://eslint.org -// Definitions by: Pierre-Marie Dartus -// Jed Fox -// Saad Quadri -// Jason Kwok -// Brad Zacher -// JounQin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// import * as ESTree from "estree"; @@ -85,6 +75,7 @@ export namespace Scope { interface Variable { name: string; + scope: Scope; identifiers: ESTree.Identifier[]; references: Reference[]; defs: Definition[]; @@ -114,22 +105,22 @@ export namespace Scope { | { type: "FunctionName"; node: ESTree.FunctionDeclaration | ESTree.FunctionExpression; parent: null } | { type: "ImplicitGlobalVariable"; node: ESTree.Program; parent: null } | { - type: "ImportBinding"; - node: ESTree.ImportSpecifier | ESTree.ImportDefaultSpecifier | ESTree.ImportNamespaceSpecifier; - parent: ESTree.ImportDeclaration; - } + type: "ImportBinding"; + node: ESTree.ImportSpecifier | ESTree.ImportDefaultSpecifier | ESTree.ImportNamespaceSpecifier; + parent: ESTree.ImportDeclaration; + } | { - type: "Parameter"; - node: ESTree.FunctionDeclaration | ESTree.FunctionExpression | ESTree.ArrowFunctionExpression; - parent: null; - } + type: "Parameter"; + node: ESTree.FunctionDeclaration | ESTree.FunctionExpression | ESTree.ArrowFunctionExpression; + parent: null; + } | { type: "TDZ"; node: any; parent: null } | { type: "Variable"; node: ESTree.VariableDeclarator; parent: ESTree.VariableDeclaration }; type Definition = DefinitionType & { name: ESTree.Identifier }; } -//#region SourceCode +// #region SourceCode export class SourceCode { text: string; @@ -151,8 +142,12 @@ export class SourceCode { getAllComments(): ESTree.Comment[]; + getAncestors(node: ESTree.Node): ESTree.Node[]; + getComments(node: ESTree.Node): { leading: ESTree.Comment[]; trailing: ESTree.Comment[] }; + getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; + getJSDocComment(node: ESTree.Node): ESTree.Comment | null; getNodeByRangeIndex(index: number): ESTree.Node | null; @@ -195,8 +190,9 @@ export class SourceCode { getTokensBetween: SourceCode.BinaryCursorWithCountOptions; - getTokens: ((node: ESTree.Node, beforeCount?: number, afterCount?: number) => AST.Token[]) & - SourceCode.UnaryNodeCursorWithCountOptions; + getTokens: + & ((node: ESTree.Node, beforeCount?: number, afterCount?: number) => AST.Token[]) + & SourceCode.UnaryNodeCursorWithCountOptions; commentsExistBetween( left: ESTree.Node | AST.Token | ESTree.Comment, @@ -208,6 +204,15 @@ export class SourceCode { getCommentsAfter(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[]; getCommentsInside(node: ESTree.Node): ESTree.Comment[]; + + getScope(node: ESTree.Node): Scope.Scope; + + isSpaceBetween( + first: ESTree.Node | AST.Token, + second: ESTree.Node | AST.Token, + ): boolean; + + markVariableAsUsed(name: string, refNode?: ESTree.Node): boolean; } export namespace SourceCode { @@ -230,7 +235,11 @@ export namespace SourceCode { node: ESTree.Node, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; skip?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, ): T | null; ( node: ESTree.Node, @@ -243,7 +252,11 @@ export namespace SourceCode { ( node: ESTree.Node, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; skip?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token | null; @@ -262,7 +275,11 @@ export namespace SourceCode { node: ESTree.Node, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; count?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, ): T[]; ( node: ESTree.Node, @@ -275,7 +292,11 @@ export namespace SourceCode { ( node: ESTree.Node, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; count?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token[]; @@ -294,7 +315,11 @@ export namespace SourceCode { node: ESTree.Node | AST.Token | ESTree.Comment, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; skip?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, ): T | null; ( node: ESTree.Node | AST.Token | ESTree.Comment, @@ -307,7 +332,11 @@ export namespace SourceCode { ( node: ESTree.Node | AST.Token | ESTree.Comment, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; skip?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token | null; @@ -326,7 +355,11 @@ export namespace SourceCode { node: ESTree.Node | AST.Token | ESTree.Comment, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; count?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, ): T[]; ( node: ESTree.Node | AST.Token | ESTree.Comment, @@ -339,7 +372,11 @@ export namespace SourceCode { ( node: ESTree.Node | AST.Token | ESTree.Comment, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; count?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token[]; @@ -359,7 +396,11 @@ export namespace SourceCode { right: ESTree.Node | AST.Token | ESTree.Comment, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; skip?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, ): T | null; ( left: ESTree.Node | AST.Token | ESTree.Comment, @@ -374,7 +415,11 @@ export namespace SourceCode { left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; skip?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token | null; @@ -395,7 +440,11 @@ export namespace SourceCode { right: ESTree.Node | AST.Token | ESTree.Comment, options: | ((token: AST.Token) => token is T) - | { filter: (token: AST.Token) => token is T; includeComments?: false | undefined; count?: number | undefined }, + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, ): T[]; ( left: ESTree.Node | AST.Token | ESTree.Comment, @@ -410,7 +459,11 @@ export namespace SourceCode { left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: - | { filter?: ((token: AST.Token) => boolean) | undefined; includeComments?: false | undefined; count?: number | undefined } + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } | ((token: AST.Token) => boolean) | number, ): AST.Token[]; @@ -426,84 +479,177 @@ export namespace SourceCode { } } -//#endregion +// #endregion export namespace Rule { + /** + * TODO: Old style rules are planned to be removed in v9, remove this type then (https://github.com/eslint/rfcs/blob/main/designs/2021-schema-object-rules/README.md) + * @deprecated Use `RuleModule` instead. + */ + type OldStyleRule = RuleModule["create"]; + interface RuleModule { create(context: RuleContext): RuleListener; meta?: RuleMetaData | undefined; + schema?: RuleMetaData["schema"]; } type NodeTypes = ESTree.Node["type"]; interface NodeListener { ArrayExpression?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; + "ArrayExpression:exit"?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; ArrayPattern?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; + "ArrayPattern:exit"?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; ArrowFunctionExpression?: ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) | undefined; + "ArrowFunctionExpression:exit"?: + | ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) + | undefined; AssignmentExpression?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; + "AssignmentExpression:exit"?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; AssignmentPattern?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; + "AssignmentPattern:exit"?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; AwaitExpression?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; + "AwaitExpression:exit"?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; BinaryExpression?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; + "BinaryExpression:exit"?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; BlockStatement?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; + "BlockStatement:exit"?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; BreakStatement?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; + "BreakStatement:exit"?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; CallExpression?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; + "CallExpression:exit"?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; CatchClause?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; + "CatchClause:exit"?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; ChainExpression?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; + "ChainExpression:exit"?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; ClassBody?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; + "ClassBody:exit"?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; ClassDeclaration?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; + "ClassDeclaration:exit"?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; ClassExpression?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; + "ClassExpression:exit"?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; ConditionalExpression?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; + "ConditionalExpression:exit"?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; ContinueStatement?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; + "ContinueStatement:exit"?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; DebuggerStatement?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; + "DebuggerStatement:exit"?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; DoWhileStatement?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; + "DoWhileStatement:exit"?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; EmptyStatement?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; + "EmptyStatement:exit"?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; ExportAllDeclaration?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; + "ExportAllDeclaration:exit"?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; ExportDefaultDeclaration?: ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) | undefined; + "ExportDefaultDeclaration:exit"?: + | ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) + | undefined; ExportNamedDeclaration?: ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) | undefined; + "ExportNamedDeclaration:exit"?: + | ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) + | undefined; ExportSpecifier?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; + "ExportSpecifier:exit"?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; ExpressionStatement?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; + "ExpressionStatement:exit"?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; ForInStatement?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; + "ForInStatement:exit"?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; ForOfStatement?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; + "ForOfStatement:exit"?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; ForStatement?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; + "ForStatement:exit"?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; FunctionDeclaration?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; + "FunctionDeclaration:exit"?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; FunctionExpression?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; + "FunctionExpression:exit"?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; Identifier?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; + "Identifier:exit"?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; IfStatement?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; + "IfStatement:exit"?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; ImportDeclaration?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; + "ImportDeclaration:exit"?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; ImportDefaultSpecifier?: ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) | undefined; + "ImportDefaultSpecifier:exit"?: + | ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) + | undefined; ImportExpression?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; + "ImportExpression:exit"?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; ImportNamespaceSpecifier?: ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) | undefined; + "ImportNamespaceSpecifier:exit"?: + | ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) + | undefined; ImportSpecifier?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; + "ImportSpecifier:exit"?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; LabeledStatement?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; + "LabeledStatement:exit"?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; Literal?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; + "Literal:exit"?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; LogicalExpression?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; + "LogicalExpression:exit"?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; MemberExpression?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; + "MemberExpression:exit"?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; MetaProperty?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; + "MetaProperty:exit"?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; MethodDefinition?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; + "MethodDefinition:exit"?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; NewExpression?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; + "NewExpression:exit"?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; ObjectExpression?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; + "ObjectExpression:exit"?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; ObjectPattern?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; + "ObjectPattern:exit"?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; + PrivateIdentifier?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; + "PrivateIdentifier:exit"?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; Program?: ((node: ESTree.Program) => void) | undefined; + "Program:exit"?: ((node: ESTree.Program) => void) | undefined; Property?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; + "Property:exit"?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; + PropertyDefinition?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; + "PropertyDefinition:exit"?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; RestElement?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; + "RestElement:exit"?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; ReturnStatement?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; + "ReturnStatement:exit"?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; SequenceExpression?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; + "SequenceExpression:exit"?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; SpreadElement?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; + "SpreadElement:exit"?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; + StaticBlock?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; + "StaticBlock:exit"?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; Super?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; + "Super:exit"?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; SwitchCase?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; + "SwitchCase:exit"?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; SwitchStatement?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; + "SwitchStatement:exit"?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; TaggedTemplateExpression?: ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) | undefined; + "TaggedTemplateExpression:exit"?: + | ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) + | undefined; TemplateElement?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; + "TemplateElement:exit"?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; TemplateLiteral?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; + "TemplateLiteral:exit"?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; ThisExpression?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; + "ThisExpression:exit"?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; ThrowStatement?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; + "ThrowStatement:exit"?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; TryStatement?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; + "TryStatement:exit"?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; UnaryExpression?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; + "UnaryExpression:exit"?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; UpdateExpression?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; + "UpdateExpression:exit"?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; VariableDeclaration?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; + "VariableDeclaration:exit"?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; VariableDeclarator?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; + "VariableDeclarator:exit"?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; WhileStatement?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; + "WhileStatement:exit"?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; WithStatement?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; + "WithStatement:exit"?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; YieldExpression?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; + "YieldExpression:exit"?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; } interface NodeParentExtension { @@ -550,24 +696,54 @@ export namespace Rule { } interface RuleMetaData { + /** Properties often used for documentation generation and tooling. */ docs?: { - /** provides the short description of the rule in the [rules index](https://eslint.org/docs/rules/) */ + /** Provides a short description of the rule. Commonly used when generating lists of rules. */ description?: string | undefined; - /** specifies the heading under which the rule is listed in the [rules index](https://eslint.org/docs/rules/) */ + /** Historically used by some plugins that divide rules into categories in their documentation. */ category?: string | undefined; - /** is whether the `"extends": "eslint:recommended"` property in a [configuration file](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) enables the rule */ + /** Historically used by some plugins to indicate a rule belongs in their `recommended` configuration. */ recommended?: boolean | undefined; - /** specifies the URL at which the full documentation can be accessed */ + /** Specifies the URL at which the full documentation can be accessed. Code editors often use this to provide a helpful link on highlighted rule violations. */ url?: string | undefined; - /** specifies whether rules can return suggestions (defaults to false if omitted) */ + /** + * TODO: remove this field in next major release of @types/eslint. + * @deprecated use `meta.hasSuggestions` instead + */ suggestion?: boolean | undefined; } | undefined; + /** Violation and suggestion messages. */ messages?: { [messageId: string]: string } | undefined; + /** + * Specifies if the `--fix` option on the command line automatically fixes problems reported by the rule. + * Mandatory for fixable rules. + */ fixable?: "code" | "whitespace" | undefined; + /** + * Specifies the [options](https://eslint.org/docs/latest/developer-guide/working-with-rules#options-schemas) + * so ESLint can prevent invalid [rule configurations](https://eslint.org/docs/latest/user-guide/configuring/rules#configuring-rules). + * Mandatory for rules with options. + */ schema?: JSONSchema4 | JSONSchema4[] | undefined; + + /** Indicates whether the rule has been deprecated. Omit if not deprecated. */ deprecated?: boolean | undefined; + /** The name of the rule(s) this rule was replaced by, if it was deprecated. */ + replacedBy?: readonly string[]; + + /** + * Indicates the type of rule: + * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. + * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. + * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, + * all the parts of the program that determine how the code looks rather than how it executes. + * These rules work on parts of the code that aren’t specified in the AST. + */ type?: "problem" | "suggestion" | "layout" | undefined; - /** specifies whether rules can return suggestions (defaults to false if omitted) */ + /** + * Specifies whether the rule can return suggestions (defaults to `false` if omitted). + * Mandatory for rules that provide suggestions. + */ hasSuggestions?: boolean | undefined; } @@ -575,22 +751,31 @@ export namespace Rule { id: string; options: any[]; settings: { [name: string]: any }; - parserPath: string; + parserPath: string | undefined; + languageOptions: Linter.FlatConfig["languageOptions"]; parserOptions: Linter.ParserOptions; parserServices: SourceCode.ParserServices; + cwd: string; + filename: string; + physicalFilename: string; + sourceCode: SourceCode; getAncestors(): ESTree.Node[]; getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; + /** @deprecated Use property `filename` directly instead */ getFilename(): string; + /** @deprecated Use property `physicalFilename` directly instead */ getPhysicalFilename(): string; + /** @deprecated Use property `cwd` directly instead */ getCwd(): string; getScope(): Scope.Scope; + /** @deprecated Use property `sourceCode` directly instead */ getSourceCode(): SourceCode; markVariableAsUsed(name: string): boolean; @@ -649,20 +834,32 @@ export namespace Rule { } } -//#region Linter +// #region Linter export class Linter { static version: string; version: string; - constructor(options?: { cwd?: string | undefined }); - - verify(code: SourceCode | string, config: Linter.Config, filename?: string): Linter.LintMessage[]; - verify(code: SourceCode | string, config: Linter.Config, options: Linter.LintOptions): Linter.LintMessage[]; - - verifyAndFix(code: string, config: Linter.Config, filename?: string): Linter.FixReport; - verifyAndFix(code: string, config: Linter.Config, options: Linter.FixOptions): Linter.FixReport; + constructor(options?: { cwd?: string | undefined; configType?: "flat" | "eslintrc" }); + + verify( + code: SourceCode | string, + config: Linter.Config | Linter.FlatConfig[], + filename?: string, + ): Linter.LintMessage[]; + verify( + code: SourceCode | string, + config: Linter.Config | Linter.FlatConfig[], + options: Linter.LintOptions, + ): Linter.LintMessage[]; + + verifyAndFix(code: string, config: Linter.Config | Linter.FlatConfig[], filename?: string): Linter.FixReport; + verifyAndFix( + code: string, + config: Linter.Config | Linter.FlatConfig[], + options: Linter.FixOptions, + ): Linter.FixReport; getSourceCode(): SourceCode; @@ -676,50 +873,248 @@ export class Linter { } export namespace Linter { + /** + * The numeric severity level for a rule. + * + * - `0` means off. + * - `1` means warn. + * - `2` means error. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ type Severity = 0 | 1 | 2; - type RuleLevel = Severity | "off" | "warn" | "error"; + /** + * The human readable severity level for a rule. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ + type StringSeverity = "off" | "warn" | "error"; + + /** + * The numeric or human readable severity level for a rule. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ + type RuleLevel = Severity | StringSeverity; + + /** + * An array containing the rule severity level, followed by the rule options. + * + * @see [Rules](https://eslint.org/docs/user-guide/configuring/rules) + */ type RuleLevelAndOptions = Prepend, RuleLevel>; + /** + * The severity level for the rule or an array containing the rule severity level, followed by the rule options. + * + * @see [Rules](https://eslint.org/docs/user-guide/configuring/rules) + */ type RuleEntry = RuleLevel | RuleLevelAndOptions; + /** + * The rules config object is a key/value map of rule names and their severity and options. + */ interface RulesRecord { [rule: string]: RuleEntry; } + /** + * A configuration object that may have a `rules` block. + */ interface HasRules { rules?: Partial | undefined; } - interface BaseConfig extends HasRules { + /** + * ESLint configuration. + * + * @see [ESLint Configuration](https://eslint.org/docs/latest/user-guide/configuring/) + */ + interface BaseConfig + extends HasRules + { $schema?: string | undefined; + + /** + * An environment provides predefined global variables. + * + * @see [Environments](https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-environments) + */ env?: { [name: string]: boolean } | undefined; + + /** + * Extending configuration files. + * + * @see [Extends](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#extending-configuration-files) + */ extends?: string | string[] | undefined; - globals?: { [name: string]: boolean | "readonly" | "readable" | "writable" | "writeable" } | undefined; + + /** + * Specifying globals. + * + * @see [Globals](https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-globals) + */ + globals?: { [name: string]: boolean | "off" | "readonly" | "readable" | "writable" | "writeable" } | undefined; + + /** + * Disable processing of inline comments. + * + * @see [Disabling Inline Comments](https://eslint.org/docs/latest/user-guide/configuring/rules#disabling-inline-comments) + */ noInlineConfig?: boolean | undefined; - overrides?: ConfigOverride[] | undefined; + + /** + * Overrides can be used to use a differing configuration for matching sub-directories and files. + * + * @see [How do overrides work](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#how-do-overrides-work) + */ + overrides?: Array> | undefined; + + /** + * Parser. + * + * @see [Working with Custom Parsers](https://eslint.org/docs/latest/developer-guide/working-with-custom-parsers) + * @see [Specifying Parser](https://eslint.org/docs/latest/user-guide/configuring/plugins#configure-a-parser) + */ parser?: string | undefined; + + /** + * Parser options. + * + * @see [Working with Custom Parsers](https://eslint.org/docs/latest/developer-guide/working-with-custom-parsers) + * @see [Specifying Parser Options](https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-parser-options) + */ parserOptions?: ParserOptions | undefined; + + /** + * Which third-party plugins define additional rules, environments, configs, etc. for ESLint to use. + * + * @see [Configuring Plugins](https://eslint.org/docs/latest/user-guide/configuring/plugins#configure-plugins) + */ plugins?: string[] | undefined; + + /** + * Specifying processor. + * + * @see [processor](https://eslint.org/docs/latest/user-guide/configuring/plugins#specify-a-processor) + */ processor?: string | undefined; + + /** + * Report unused `ESLint-disable` comments as warning. + * + * @see [Report unused `ESLint-disable` comments](https://eslint.org/docs/latest/user-guide/configuring/rules#report-unused-eslint-disable-comments) + */ reportUnusedDisableDirectives?: boolean | undefined; + + /** + * Settings. + * + * @see [Settings](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#adding-shared-settings) + */ settings?: { [name: string]: any } | undefined; } + /** + * The overwrites that apply more differing configuration to specific files or directories. + */ interface ConfigOverride extends BaseConfig { + /** + * The glob patterns for excluded files. + */ excludedFiles?: string | string[] | undefined; + + /** + * The glob patterns for target files. + */ files: string | string[]; } + /** + * ESLint configuration. + * + * @see [ESLint Configuration](https://eslint.org/docs/latest/user-guide/configuring/) + */ // https://github.com/eslint/eslint/blob/v6.8.0/conf/config-schema.js - interface Config extends BaseConfig { + interface Config + extends BaseConfig + { + /** + * Tell ESLint to ignore specific files and directories. + * + * @see [Ignore Patterns](https://eslint.org/docs/latest/user-guide/configuring/ignoring-code) + */ ignorePatterns?: string | string[] | undefined; + + /** + * @see [Using Configuration Files](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#using-configuration-files) + */ root?: boolean | undefined; } + /** + * Parser options. + * + * @see [Specifying Parser Options](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options) + */ interface ParserOptions { - ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | "latest" | undefined; + /** + * Accepts any valid ECMAScript version number or `'latest'`: + * + * - A version: es3, es5, es6, es7, es8, es9, es10, es11, es12, es13, es14, ..., or + * - A year: es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, ..., or + * - `'latest'` + * + * When it's a version or a year, the value must be a number - so do not include the `es` prefix. + * + * Specifies the version of ECMAScript syntax you want to use. This is used by the parser to determine how to perform scope analysis, and it affects the default + * + * @default 2018 + * + * @see https://typescript-eslint.io/architecture/parser/#ecmaversion + */ + ecmaVersion?: + | 3 + | 5 + | 6 + | 7 + | 8 + | 9 + | 10 + | 11 + | 12 + | 13 + | 14 + | 15 + | 2015 + | 2016 + | 2017 + | 2018 + | 2019 + | 2020 + | 2021 + | 2022 + | 2023 + | 2024 + | "latest" + | undefined; + + /** + * Set to "script" (default) or "module" if your code is in ECMAScript modules. + * + * @default 'script' + * + * @see https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-parser-options + */ sourceType?: "script" | "module" | undefined; + + /** + * An object indicating which additional language features you'd like to use. + * + * @see https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-parser-options + * @see https://typescript-eslint.io/architecture/parser#ecmafeatures + */ ecmaFeatures?: { globalReturn?: boolean | undefined; impliedStrict?: boolean | undefined; @@ -782,13 +1177,24 @@ export namespace Linter { messages: LintMessage[]; } + // Temporarily loosen type for just flat config files (see #68232) + type FlatConfigParserModule = + & Omit + & ({ + parse(text: string, options?: any): unknown; + } | { + parseForESLint(text: string, options?: any): Omit & { + ast: unknown; + scopeManager?: unknown; + }; + }); + type ParserModule = - | { - parse(text: string, options?: any): AST.Program; - } - | { - parseForESLint(text: string, options?: any): ESLintParseResult; - }; + & ESLint.ObjectMetaProperties + & ( + | { parse(text: string, options?: any): AST.Program } + | { parseForESLint(text: string, options?: any): ESLintParseResult } + ); interface ESLintParseResult { ast: AST.Program; @@ -803,16 +1209,118 @@ export namespace Linter { } // https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins - interface Processor { + interface Processor extends ESLint.ObjectMetaProperties { supportsAutofix?: boolean | undefined; preprocess?(text: string, filename: string): T[]; postprocess?(messages: LintMessage[][], filename: string): LintMessage[]; } + + interface FlatConfig { + /** + * An string to identify the configuration object. Used in error messages and + * inspection tools. + */ + name?: string; + + /** + * An array of glob patterns indicating the files that the configuration + * object should apply to. If not specified, the configuration object applies + * to all files + */ + files?: Array; + + /** + * An array of glob patterns indicating the files that the configuration + * object should not apply to. If not specified, the configuration object + * applies to all files matched by files + */ + ignores?: string[]; + + /** + * An object containing settings related to how JavaScript is configured for + * linting. + */ + languageOptions?: { + /** + * The version of ECMAScript to support. May be any year (i.e., 2022) or + * version (i.e., 5). Set to "latest" for the most recent supported version. + * @default "latest" + */ + ecmaVersion?: ParserOptions["ecmaVersion"]; + + /** + * The type of JavaScript source code. Possible values are "script" for + * traditional script files, "module" for ECMAScript modules (ESM), and + * "commonjs" for CommonJS files. (default: "module" for .js and .mjs + * files; "commonjs" for .cjs files) + */ + sourceType?: "script" | "module" | "commonjs"; + + /** + * An object specifying additional objects that should be added to the + * global scope during linting. + */ + globals?: ESLint.Environment["globals"]; + + /** + * An object containing a parse() or parseForESLint() method. + * If not configured, the default ESLint parser (Espree) will be used. + */ + parser?: FlatConfigParserModule; + + /** + * An object specifying additional options that are passed directly to the + * parser() method on the parser. The available options are parser-dependent + */ + parserOptions?: ESLint.Environment["parserOptions"]; + }; + + /** + * An object containing settings related to the linting process + */ + linterOptions?: { + /** + * A boolean value indicating if inline configuration is allowed. + */ + noInlineConfig?: boolean; + + /** + * A severity value indicating if and how unused disable directives should be + * tracked and reported. + */ + reportUnusedDisableDirectives?: Severity | StringSeverity | boolean; + }; + + /** + * Either an object containing preprocess() and postprocess() methods or a + * string indicating the name of a processor inside of a plugin + * (i.e., "pluginName/processorName"). + */ + processor?: string | Processor; + + /** + * An object containing a name-value mapping of plugin names to plugin objects. + * When files is specified, these plugins are only available to the matching files. + */ + plugins?: Record; + + /** + * An object containing the configured rules. When files or ignores are specified, + * these rule configurations are only available to the matching files. + */ + rules?: Partial; + + /** + * An object containing name-value pairs of information that should be + * available to all rules. + */ + settings?: Record; + } } -//#endregion +// #endregion -//#region ESLint +// #region ESLint export class ESLint { static version: string; @@ -825,9 +1333,12 @@ export class ESLint { lintFiles(patterns: string | string[]): Promise; - lintText(code: string, options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }): Promise; + lintText( + code: string, + options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }, + ): Promise; - getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData['rulesMeta']; + getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData["rulesMeta"]; calculateConfigForFile(filePath: string): Promise; @@ -839,16 +1350,33 @@ export class ESLint { export namespace ESLint { type ConfigData = Omit, "$schema">; + interface Globals { + [name: string]: boolean | "writable" | "readonly" | "off"; + } + interface Environment { - globals?: { [name: string]: boolean; } | undefined; + globals?: Globals | undefined; parserOptions?: Linter.ParserOptions | undefined; } - interface Plugin { - configs?: Record | undefined; + interface ObjectMetaProperties { + /** @deprecated Use `meta.name` instead. */ + name?: string | undefined; + + /** @deprecated Use `meta.version` instead. */ + version?: string | undefined; + + meta?: { + name?: string | undefined; + version?: string | undefined; + }; + } + + interface Plugin extends ObjectMetaProperties { + configs?: Record | undefined; environments?: Record | undefined; processors?: Record | undefined; - rules?: Record any) | Rule.RuleModule> | undefined; + rules?: Record | undefined; } interface Options { @@ -866,7 +1394,7 @@ export namespace ESLint { overrideConfig?: Linter.Config | undefined; overrideConfigFile?: string | undefined; plugins?: Record | undefined; - reportUnusedDisableDirectives?: Linter.RuleLevel | undefined; + reportUnusedDisableDirectives?: Linter.StringSeverity | undefined; resolvePluginsRelativeTo?: string | undefined; rulePaths?: string[] | undefined; useEslintrc?: boolean | undefined; @@ -915,9 +1443,9 @@ export namespace ESLint { type EditInfo = Rule.Fix; } -//#endregion +// #endregion -//#region RuleTester +// #region RuleTester export class RuleTester { constructor(config?: any); @@ -974,4 +1502,4 @@ export namespace RuleTester { } } -//#endregion +// #endregion diff --git a/node_modules/@types/eslint/package.json b/node_modules/@types/eslint/package.json old mode 100755 new mode 100644 index 0d56514c..fa6917a9 --- a/node_modules/@types/eslint/package.json +++ b/node_modules/@types/eslint/package.json @@ -1,55 +1,48 @@ { "name": "@types/eslint", - "version": "8.4.3", + "version": "8.56.10", "description": "TypeScript definitions for eslint", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint", "license": "MIT", "contributors": [ { "name": "Pierre-Marie Dartus", - "url": "https://github.com/pmdartus", - "githubUsername": "pmdartus" + "githubUsername": "pmdartus", + "url": "https://github.com/pmdartus" }, { "name": "Jed Fox", - "url": "https://github.com/j-f1", - "githubUsername": "j-f1" + "githubUsername": "j-f1", + "url": "https://github.com/j-f1" }, { "name": "Saad Quadri", - "url": "https://github.com/saadq", - "githubUsername": "saadq" + "githubUsername": "saadq", + "url": "https://github.com/saadq" }, { "name": "Jason Kwok", - "url": "https://github.com/JasonHK", - "githubUsername": "JasonHK" + "githubUsername": "JasonHK", + "url": "https://github.com/JasonHK" }, { "name": "Brad Zacher", - "url": "https://github.com/bradzacher", - "githubUsername": "bradzacher" + "githubUsername": "bradzacher", + "url": "https://github.com/bradzacher" }, { "name": "JounQin", - "url": "https://github.com/JounQin", - "githubUsername": "JounQin" + "githubUsername": "JounQin", + "url": "https://github.com/JounQin" + }, + { + "name": "Bryan Mishkin", + "githubUsername": "bmish", + "url": "https://github.com/bmish" } ], "main": "", "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/eslint" - }, - "scripts": {}, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - }, - "typesPublisherContentHash": "120b790d5df1df2c9717166df96469dc8db5106f32f3268461e9d0e41991d603", - "typeScriptVersion": "3.9", "exports": { ".": { "types": "./index.d.ts" @@ -61,5 +54,17 @@ "types": "./rules/index.d.ts" }, "./package.json": "./package.json" - } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/eslint" + }, + "scripts": {}, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + }, + "typesPublisherContentHash": "522d3c76ab9a1be04075a38852c1f9c8c64f6722d17428f2cbbddc55e0477b81", + "typeScriptVersion": "4.7" } \ No newline at end of file diff --git a/node_modules/@types/eslint/rules/best-practices.d.ts b/node_modules/@types/eslint/rules/best-practices.d.ts old mode 100755 new mode 100644 index 68be5d9b..d872242e --- a/node_modules/@types/eslint/rules/best-practices.d.ts +++ b/node_modules/@types/eslint/rules/best-practices.d.ts @@ -18,6 +18,10 @@ export interface BestPractices extends Linter.RulesRecord { * @default false */ getWithoutSet: boolean; + /** + * @default true + */ + enforceForClassMembers: boolean; }>, ] >; @@ -35,6 +39,14 @@ export interface BestPractices extends Linter.RulesRecord { * @default false */ allowImplicit: boolean; + /** + * @default false + */ + checkForEach: boolean; + /** + * @default false + */ + allowVoid: boolean; }>, ] >; @@ -70,16 +82,16 @@ export interface BestPractices extends Linter.RulesRecord { complexity: Linter.RuleEntry< [ | Partial<{ - /** - * @default 20 - */ - max: number; - /** - * @deprecated - * @default 20 - */ - maximum: number; - }> + /** + * @default 20 + */ + max: number; + /** + * @deprecated + * @default 20 + */ + maximum: number; + }> | number, ] >; @@ -126,6 +138,22 @@ export interface BestPractices extends Linter.RulesRecord { ] >; + /** + * Rule to enforce default clauses in switch statements to be last + * + * @since 7.0.0 + * @see https://eslint.org/docs/latest/rules/default-case-last + */ + "default-case-last": Linter.RuleEntry<[]>; + + /** + * Enforce default parameters to be last + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/default-param-last + */ + "default-param-last": Linter.RuleEntry<[]>; + /** * Rule to enforce consistent newlines before and after dots. * @@ -160,18 +188,26 @@ export interface BestPractices extends Linter.RulesRecord { */ eqeqeq: | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default 'always' - */ - null: "always" | "never" | "ignore"; - }>, - ] - > + [ + "always", + Partial<{ + /** + * @default 'always' + */ + null: "always" | "never" | "ignore"; + }>, + ] + > | Linter.RuleEntry<["smart" | "allow-null"]>; + /** + * Require grouped accessor pairs in object literals and classes. + * + * @since 6.7.0 + * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs + */ + "grouped-accessor-pairs": Linter.RuleEntry<["anyOrder" | "getBeforeSet" | "setBeforeGet"]>; + /** * Rule to require `for-in` loops to include an `if` statement. * @@ -348,6 +384,10 @@ export interface BestPractices extends Linter.RulesRecord { * @default 'falls?\s?through' */ commentPattern: string; + /** + * @default false + */ + allowEmptyCase: boolean; }>, ] >; @@ -398,6 +438,10 @@ export interface BestPractices extends Linter.RulesRecord { * @default true */ string: boolean; + /** + * @default false + */ + disallowTemplateShorthand: boolean; /** * @default [] */ @@ -422,13 +466,33 @@ export interface BestPractices extends Linter.RulesRecord { */ "no-implied-eval": Linter.RuleEntry<[]>; + /** + * Disallow assigning to imported bindings. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/no-import-assign + */ + "no-import-assign": Linter.RuleEntry<[]>; + /** * Rule to disallow `this` keywords outside of classes or class-like objects. * * @since 1.0.0-rc-2 * @see https://eslint.org/docs/rules/no-invalid-this */ - "no-invalid-this": Linter.RuleEntry<[]>; + "no-invalid-this": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + capIsConstructor: boolean; + }>, + ] + >; /** * Rule to disallow the use of the `__iterator__` property. @@ -557,6 +621,14 @@ export interface BestPractices extends Linter.RulesRecord { */ "no-new-wrappers": Linter.RuleEntry<[]>; + /** + * Disallow `\\8` and `\\9` escape sequences in string literals. + * + * @since 7.14.0 + * @see https://eslint.org/docs/rules/no-nonoctal-decimal-escape + */ + "no-nonoctal-decimal-escape": Linter.RuleEntry<[]>; + /** * Rule to disallow octal literals. * @@ -635,15 +707,15 @@ export interface BestPractices extends Linter.RulesRecord { [ ...Array< | { - object: string; - property?: string | undefined; - message?: string | undefined; - } + object: string; + property?: string | undefined; + message?: string | undefined; + } | { - property: string; - message?: string | undefined; - } - > + property: string; + message?: string | undefined; + } + >, ] >; @@ -750,6 +822,17 @@ export interface BestPractices extends Linter.RulesRecord { */ "no-unused-labels": Linter.RuleEntry<[]>; + /** + * Disallow useless backreferences in regular expressions + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.0.0-alpha.0 + * @see https://eslint.org/docs/latest/rules/no-useless-backreference + */ + "no-useless-backreference": Linter.RuleEntry<[]>; + /** * Rule to disallow unnecessary calls to `.call()` and `.apply()`. * @@ -844,6 +927,14 @@ export interface BestPractices extends Linter.RulesRecord { */ "prefer-named-capture-group": Linter.RuleEntry<[]>; + /** + * Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`. + * + * @since 3.5.0 + * @see https://eslint.org/docs/rules/prefer-object-has-own + */ + "prefer-object-has-own": Linter.RuleEntry<[]>; + /** * Rule to require using Error objects as Promise rejection reasons. * @@ -861,6 +952,23 @@ export interface BestPractices extends Linter.RulesRecord { ] >; + /** + * Disallow use of the `RegExp` constructor in favor of regular expression literals. + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/prefer-regex-literals + */ + "prefer-regex-literals": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + disallowRedundantWrapping: boolean; + }>, + ] + >; + /** * Rule to enforce the consistent use of the radix argument when using `parseInt()`. * @@ -919,13 +1027,13 @@ export interface BestPractices extends Linter.RulesRecord { */ yoda: | Linter.RuleEntry< - [ - "never", - Partial<{ - exceptRange: boolean; - onlyEquality: boolean; - }>, - ] - > + [ + "never", + Partial<{ + exceptRange: boolean; + onlyEquality: boolean; + }>, + ] + > | Linter.RuleEntry<["always"]>; } diff --git a/node_modules/@types/eslint/rules/deprecated.d.ts b/node_modules/@types/eslint/rules/deprecated.d.ts old mode 100755 new mode 100644 index f18607c5..0024d892 --- a/node_modules/@types/eslint/rules/deprecated.d.ts +++ b/node_modules/@types/eslint/rules/deprecated.d.ts @@ -21,19 +21,19 @@ export interface Deprecated extends Linter.RulesRecord { */ VariableDeclarator: | Partial<{ - /** - * @default 1 - */ - var: number | "first"; - /** - * @default 1 - */ - let: number | "first"; - /** - * @default 1 - */ - const: number | "first"; - }> + /** + * @default 1 + */ + var: number | "first"; + /** + * @default 1 + */ + let: number | "first"; + /** + * @default 1 + */ + const: number | "first"; + }> | number | "first"; /** diff --git a/node_modules/@types/eslint/rules/ecmascript-6.d.ts b/node_modules/@types/eslint/rules/ecmascript-6.d.ts old mode 100755 new mode 100644 index 966f359c..564a1dca --- a/node_modules/@types/eslint/rules/ecmascript-6.d.ts +++ b/node_modules/@types/eslint/rules/ecmascript-6.d.ts @@ -9,16 +9,16 @@ export interface ECMAScript6 extends Linter.RulesRecord { */ "arrow-body-style": | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - requireReturnForObjectLiteral: boolean; - }>, - ] - > + [ + "as-needed", + Partial<{ + /** + * @default false + */ + requireReturnForObjectLiteral: boolean; + }>, + ] + > | Linter.RuleEntry<["always" | "never"]>; /** @@ -30,16 +30,16 @@ export interface ECMAScript6 extends Linter.RulesRecord { "arrow-parens": | Linter.RuleEntry<["always"]> | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - requireForBlockBody: boolean; - }>, - ] - >; + [ + "as-needed", + Partial<{ + /** + * @default false + */ + requireForBlockBody: boolean; + }>, + ] + >; /** * Rule to enforce consistent spacing before and after the arrow in arrow functions. @@ -69,36 +69,36 @@ export interface ECMAScript6 extends Linter.RulesRecord { "generator-star-spacing": Linter.RuleEntry< [ | Partial<{ - before: boolean; - after: boolean; - named: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - anonymous: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - method: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - }> + before: boolean; + after: boolean; + named: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + anonymous: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + method: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + }> | "before" | "after" | "both" @@ -106,6 +106,26 @@ export interface ECMAScript6 extends Linter.RulesRecord { ] >; + /** + * Require or disallow logical assignment operator shorthand. + * + * @since 8.24.0 + * @see https://eslint.org/docs/rules/logical-assignment-operators + */ + "logical-assignment-operators": + | Linter.RuleEntry< + [ + "always", + Partial<{ + /** + * @default false + */ + enforceForIfStatements: boolean; + }>, + ] + > + | Linter.RuleEntry<["never"]>; + /** * Rule to disallow reassigning class members. * @@ -160,9 +180,9 @@ export interface ECMAScript6 extends Linter.RulesRecord { * Rule to disallow duplicate module imports. * * @since 2.5.0 - * @see https://eslint.org/docs/rules/no-duplicate-import + * @see https://eslint.org/docs/rules/no-duplicate-imports */ - "no-duplicate-import": Linter.RuleEntry< + "no-duplicate-imports": Linter.RuleEntry< [ Partial<{ /** @@ -195,22 +215,22 @@ export interface ECMAScript6 extends Linter.RulesRecord { ...Array< | string | { - name: string; - importNames?: string[] | undefined; - message?: string | undefined; - } + name: string; + importNames?: string[] | undefined; + message?: string | undefined; + } | Partial<{ - paths: Array< - | string - | { - name: string; - importNames?: string[] | undefined; - message?: string | undefined; - } - >; - patterns: string[]; - }> - > + paths: Array< + | string + | { + name: string; + importNames?: string[] | undefined; + message?: string | undefined; + } + >; + patterns: string[]; + }> + >, ] >; @@ -282,35 +302,35 @@ export interface ECMAScript6 extends Linter.RulesRecord { */ "object-shorthand": | Linter.RuleEntry< - [ - "always" | "methods", - Partial<{ - /** - * @default false - */ - avoidQuotes: boolean; - /** - * @default false - */ - ignoreConstructors: boolean; - /** - * @default false - */ - avoidExplicitReturnArrows: boolean; - }>, - ] - > + [ + "always" | "methods", + Partial<{ + /** + * @default false + */ + avoidQuotes: boolean; + /** + * @default false + */ + ignoreConstructors: boolean; + /** + * @default false + */ + avoidExplicitReturnArrows: boolean; + }>, + ] + > | Linter.RuleEntry< - [ - "properties", - Partial<{ - /** - * @default false - */ - avoidQuotes: boolean; - }>, - ] - > + [ + "properties", + Partial<{ + /** + * @default false + */ + avoidQuotes: boolean; + }>, + ] + > | Linter.RuleEntry<["never" | "consistent" | "consistent-as-needed"]>; /** @@ -365,19 +385,19 @@ export interface ECMAScript6 extends Linter.RulesRecord { [ Partial< | { - VariableDeclarator: Partial<{ - array: boolean; - object: boolean; - }>; - AssignmentExpression: Partial<{ - array: boolean; - object: boolean; - }>; - } + VariableDeclarator: Partial<{ + array: boolean; + object: boolean; + }>; + AssignmentExpression: Partial<{ + array: boolean; + object: boolean; + }>; + } | { - array: boolean; - object: boolean; - } + array: boolean; + object: boolean; + } >, Partial<{ enforceForRenamedProperties: boolean; @@ -385,6 +405,14 @@ export interface ECMAScript6 extends Linter.RulesRecord { ] >; + /** + * Disallow the use of `Math.pow` in favor of the `**` operator. + * + * @since 6.7.0 + * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator + */ + "prefer-exponentiation-operator": Linter.RuleEntry<[]>; + /** * Rule to disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals. * @@ -461,6 +489,10 @@ export interface ECMAScript6 extends Linter.RulesRecord { * @default ['none', 'all', 'multiple', 'single'] */ memberSyntaxSortOrder: Array<"none" | "all" | "multiple" | "single">; + /** + * @default false + */ + allowSeparatedGroups: boolean; }>, ] >; @@ -490,9 +522,9 @@ export interface ECMAScript6 extends Linter.RulesRecord { "yield-star-spacing": Linter.RuleEntry< [ | Partial<{ - before: boolean; - after: boolean; - }> + before: boolean; + after: boolean; + }> | "before" | "after" | "both" diff --git a/node_modules/@types/eslint/rules/index.d.ts b/node_modules/@types/eslint/rules/index.d.ts old mode 100755 new mode 100644 index e0f517ba..7470777c --- a/node_modules/@types/eslint/rules/index.d.ts +++ b/node_modules/@types/eslint/rules/index.d.ts @@ -10,7 +10,8 @@ import { StylisticIssues } from "./stylistic-issues"; import { Variables } from "./variables"; export interface ESLintRules - extends Linter.RulesRecord, + extends + Linter.RulesRecord, PossibleErrors, BestPractices, StrictMode, @@ -18,4 +19,5 @@ export interface ESLintRules NodeJSAndCommonJS, StylisticIssues, ECMAScript6, - Deprecated {} + Deprecated +{} diff --git a/node_modules/@types/eslint/rules/node-commonjs.d.ts b/node_modules/@types/eslint/rules/node-commonjs.d.ts old mode 100755 new mode 100644 index c2480299..56a96e3e --- a/node_modules/@types/eslint/rules/node-commonjs.d.ts +++ b/node_modules/@types/eslint/rules/node-commonjs.d.ts @@ -97,20 +97,20 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord { ...Array< | string | { - name: string; - message?: string | undefined; - } + name: string; + message?: string | undefined; + } | Partial<{ - paths: Array< - | string - | { - name: string; - message?: string | undefined; - } - >; - patterns: string[]; - }> - > + paths: Array< + | string + | { + name: string; + message?: string | undefined; + } + >; + patterns: string[]; + }> + >, ] >; diff --git a/node_modules/@types/eslint/rules/possible-errors.d.ts b/node_modules/@types/eslint/rules/possible-errors.d.ts old mode 100755 new mode 100644 index c27a862b..b6fb185d --- a/node_modules/@types/eslint/rules/possible-errors.d.ts +++ b/node_modules/@types/eslint/rules/possible-errors.d.ts @@ -140,6 +140,17 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-dupe-args": Linter.RuleEntry<[]>; + /** + * Disallow duplicate conditions in if-else-if chains. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 6.7.0 + * @see https://eslint.org/docs/rules/no-dupe-else-if + */ + "no-dupe-else-if": Linter.RuleEntry<[]>; + /** * Rule to disallow duplicate keys in object literals. * @@ -223,32 +234,32 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-extra-parens": | Linter.RuleEntry< - [ - "all", - Partial<{ - /** - * @default true, - */ - conditionalAssign: boolean; - /** - * @default true - */ - returnAssign: boolean; - /** - * @default true - */ - nestedBinaryExpressions: boolean; - /** - * @default 'none' - */ - ignoreJSX: "none" | "all" | "multi-line" | "single-line"; - /** - * @default true - */ - enforceForArrowConditionals: boolean; - }>, - ] - > + [ + "all", + Partial<{ + /** + * @default true, + */ + conditionalAssign: boolean; + /** + * @default true + */ + returnAssign: boolean; + /** + * @default true + */ + nestedBinaryExpressions: boolean; + /** + * @default 'none' + */ + ignoreJSX: "none" | "all" | "multi-line" | "single-line"; + /** + * @default true + */ + enforceForArrowConditionals: boolean; + }>, + ] + > | Linter.RuleEntry<["functions"]>; /** @@ -333,6 +344,17 @@ export interface PossibleErrors extends Linter.RulesRecord { ] >; + /** + * Disallow literal numbers that lose precision. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.1.0 + * @see https://eslint.org/docs/latest/rules/no-loss-of-precision + */ + "no-loss-of-precision": Linter.RuleEntry<[]>; + /** * Rule to disallow characters which are made with multiple code points in character class syntax. * @@ -355,6 +377,21 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-obj-calls": Linter.RuleEntry<[]>; + /** + * Rule to disallow returning values from Promise executor functions. + * + * @since 7.3.0 + * @see https://eslint.org/docs/rules/no-promise-executor-return + */ + "no-promise-executor-return": Linter.RuleEntry<[ + { + /** + * @default false + */ + allowVoid?: boolean; + }, + ]>; + /** * Rule to disallow use of `Object.prototypes` builtins directly. * @@ -418,6 +455,23 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-unreachable": Linter.RuleEntry<[]>; + /** + * Disallow loops with a body that allows only one iteration. + * + * @since 7.3.0 + * @see https://eslint.org/docs/latest/rules/no-unreachable-loop + */ + "no-unreachable-loop": Linter.RuleEntry< + [ + Partial<{ + /** + * @default [] + */ + ignore: "WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement"; + }>, + ] + >; + /** * Rule to disallow control flow statements in `finally` blocks. * @@ -440,6 +494,26 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-unsafe-negation": Linter.RuleEntry<[]>; + /** + * Disallow use of optional chaining in contexts where the `undefined` value is not allowed. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.15.0 + * @see https://eslint.org/docs/rules/no-unsafe-optional-chaining + */ + "no-unsafe-optional-chaining": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + disallowArithmeticOperators: boolean; + }>, + ] + >; + /** * Rule to disallow assignments that can lead to race conditions due to usage of `await` or `yield`. * @@ -460,7 +534,20 @@ export interface PossibleErrors extends Linter.RulesRecord { * @since 0.0.6 * @see https://eslint.org/docs/rules/use-isnan */ - "use-isnan": Linter.RuleEntry<[]>; + "use-isnan": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + enforceForSwitchCase: boolean; + /** + * @default true + */ + enforceForIndexOf: boolean; + }>, + ] + >; /** * Rule to enforce comparing `typeof` expressions against valid strings. diff --git a/node_modules/@types/eslint/rules/strict-mode.d.ts b/node_modules/@types/eslint/rules/strict-mode.d.ts old mode 100755 new mode 100644 diff --git a/node_modules/@types/eslint/rules/stylistic-issues.d.ts b/node_modules/@types/eslint/rules/stylistic-issues.d.ts old mode 100755 new mode 100644 index af7e0c75..ec2f2028 --- a/node_modules/@types/eslint/rules/stylistic-issues.d.ts +++ b/node_modules/@types/eslint/rules/stylistic-issues.d.ts @@ -13,15 +13,15 @@ export interface StylisticIssues extends Linter.RulesRecord { | "never" | "consistent" | Partial<{ - /** - * @default true - */ - multiline: boolean; - /** - * @default null - */ - minItems: number | null; - }>, + /** + * @default true + */ + multiline: boolean; + /** + * @default null + */ + minItems: number | null; + }>, ] >; @@ -33,43 +33,43 @@ export interface StylisticIssues extends Linter.RulesRecord { */ "array-bracket-spacing": | Linter.RuleEntry< - [ - "never", - Partial<{ - /** - * @default false - */ - singleValue: boolean; - /** - * @default false - */ - objectsInArrays: boolean; - /** - * @default false - */ - arraysInArrays: boolean; - }>, - ] - > + [ + "never", + Partial<{ + /** + * @default false + */ + singleValue: boolean; + /** + * @default false + */ + objectsInArrays: boolean; + /** + * @default false + */ + arraysInArrays: boolean; + }>, + ] + > | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default true - */ - singleValue: boolean; - /** - * @default true - */ - objectsInArrays: boolean; - /** - * @default true - */ - arraysInArrays: boolean; - }>, - ] - >; + [ + "always", + Partial<{ + /** + * @default true + */ + singleValue: boolean; + /** + * @default true + */ + objectsInArrays: boolean; + /** + * @default true + */ + arraysInArrays: boolean; + }>, + ] + >; /** * Rule to enforce line breaks after each array element. @@ -83,15 +83,15 @@ export interface StylisticIssues extends Linter.RulesRecord { | "never" | "consistent" | Partial<{ - /** - * @default true - */ - multiline: boolean; - /** - * @default null - */ - minItems: number | null; - }>, + /** + * @default true + */ + multiline: boolean; + /** + * @default null + */ + minItems: number | null; + }>, ] >; @@ -183,27 +183,27 @@ export interface StylisticIssues extends Linter.RulesRecord { | "always-multiline" | "only-multiline" | Partial<{ - /** - * @default 'never' - */ - arrays: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - objects: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - imports: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - exports: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - functions: "never" | "always" | "always-multiline" | "only-multiline"; - }>, + /** + * @default 'never' + */ + arrays: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + objects: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + imports: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + exports: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + functions: "never" | "always" | "always-multiline" | "only-multiline"; + }>, ] >; @@ -287,34 +287,34 @@ export interface StylisticIssues extends Linter.RulesRecord { */ "func-name-matching": | Linter.RuleEntry< - [ - "always" | "never", - Partial<{ - /** - * @default false - */ - considerPropertyDescriptor: boolean; - /** - * @default false - */ - includeCommonJSModuleExports: boolean; - }>, - ] - > + [ + "always" | "never", + Partial<{ + /** + * @default false + */ + considerPropertyDescriptor: boolean; + /** + * @default false + */ + includeCommonJSModuleExports: boolean; + }>, + ] + > | Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - considerPropertyDescriptor: boolean; - /** - * @default false - */ - includeCommonJSModuleExports: boolean; - }>, - ] - >; + [ + Partial<{ + /** + * @default false + */ + considerPropertyDescriptor: boolean; + /** + * @default false + */ + includeCommonJSModuleExports: boolean; + }>, + ] + >; /** * Rule to require or disallow named `function` expressions. @@ -363,8 +363,8 @@ export interface StylisticIssues extends Linter.RulesRecord { | "multiline-arguments" | "consistent" | Partial<{ - minItems: number; - }>, + minItems: number; + }>, ] >; @@ -455,19 +455,19 @@ export interface StylisticIssues extends Linter.RulesRecord { */ VariableDeclarator: | Partial<{ - /** - * @default 1 - */ - var: number | "first"; - /** - * @default 1 - */ - let: number | "first"; - /** - * @default 1 - */ - const: number | "first"; - }> + /** + * @default 1 + */ + var: number | "first"; + /** + * @default 1 + */ + let: number | "first"; + /** + * @default 1 + */ + const: number | "first"; + }> | number | "first"; /** @@ -555,43 +555,44 @@ export interface StylisticIssues extends Linter.RulesRecord { "key-spacing": Linter.RuleEntry< [ | Partial< - | { - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - align: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | "value" - | "colon"; - } - | { - singleLine?: Partial<{ + | { + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + align: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | "value" + | "colon"; + } + | { + singleLine?: + | Partial<{ /** * @default false */ @@ -604,8 +605,10 @@ export interface StylisticIssues extends Linter.RulesRecord { * @default 'strict' */ mode: "strict" | "minimum"; - }> | undefined; - multiLine?: Partial<{ + }> + | undefined; + multiLine?: + | Partial<{ /** * @default false */ @@ -620,76 +623,81 @@ export interface StylisticIssues extends Linter.RulesRecord { mode: "strict" | "minimum"; align: | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> | "value" | "colon"; - }> | undefined; - } - > + }> + | undefined; + } + > | { - align: Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }>; - singleLine?: Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> | undefined; - multiLine?: Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> | undefined; - }, + align: Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }>; + singleLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | undefined; + multiLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | undefined; + }, ] >; @@ -908,19 +916,19 @@ export interface StylisticIssues extends Linter.RulesRecord { "max-lines": Linter.RuleEntry< [ | Partial<{ - /** - * @default 300 - */ - max: number; - /** - * @default false - */ - skipBlankLines: boolean; - /** - * @default false - */ - skipComments: boolean; - }> + /** + * @default 300 + */ + max: number; + /** + * @default false + */ + skipBlankLines: boolean; + /** + * @default false + */ + skipComments: boolean; + }> | number, ] >; @@ -963,11 +971,11 @@ export interface StylisticIssues extends Linter.RulesRecord { "max-nested-callbacks": Linter.RuleEntry< [ | Partial<{ - /** - * @default 10 - */ - max: number; - }> + /** + * @default 10 + */ + max: number; + }> | number, ] >; @@ -981,11 +989,11 @@ export interface StylisticIssues extends Linter.RulesRecord { "max-params": Linter.RuleEntry< [ | Partial<{ - /** - * @default 3 - */ - max: number; - }> + /** + * @default 3 + */ + max: number; + }> | number, ] >; @@ -999,15 +1007,15 @@ export interface StylisticIssues extends Linter.RulesRecord { "max-statements": Linter.RuleEntry< [ | Partial<{ - /** - * @default 10 - */ - max: number; - /** - * @default false - */ - ignoreTopLevelFunctions: boolean; - }> + /** + * @default 10 + */ + max: number; + /** + * @default false + */ + ignoreTopLevelFunctions: boolean; + }> | number, ] >; @@ -1021,11 +1029,11 @@ export interface StylisticIssues extends Linter.RulesRecord { "max-statements-per-line": Linter.RuleEntry< [ | Partial<{ - /** - * @default 1 - */ - max: number; - }> + /** + * @default 1 + */ + max: number; + }> | number, ] >; @@ -1206,13 +1214,13 @@ export interface StylisticIssues extends Linter.RulesRecord { "no-multiple-empty-lines": Linter.RuleEntry< [ | Partial<{ - /** - * @default 2 - */ - max: number; - maxEOF: number; - maxBOF: number; - }> + /** + * @default 2 + */ + max: number; + maxEOF: number; + maxBOF: number; + }> | number, ] >; @@ -1269,10 +1277,10 @@ export interface StylisticIssues extends Linter.RulesRecord { ...Array< | string | { - selector: string; - message?: string | undefined; - } - > + selector: string; + message?: string | undefined; + } + >, ] >; @@ -1399,34 +1407,34 @@ export interface StylisticIssues extends Linter.RulesRecord { | "always" | "never" | Partial<{ - /** - * @default false - */ - multiline: boolean; - minProperties: number; - /** - * @default true - */ - consistent: boolean; - }> + /** + * @default false + */ + multiline: boolean; + minProperties: number; + /** + * @default true + */ + consistent: boolean; + }> | Partial< - Record< - "ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportDeclaration", - | "always" - | "never" - | Partial<{ - /** - * @default false - */ - multiline: boolean; - minProperties: number; - /** - * @default true - */ - consistent: boolean; - }> - > - >, + Record< + "ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportDeclaration", + | "always" + | "never" + | Partial<{ + /** + * @default false + */ + multiline: boolean; + minProperties: number; + /** + * @default true + */ + consistent: boolean; + }> + > + >, ] >; @@ -1438,35 +1446,35 @@ export interface StylisticIssues extends Linter.RulesRecord { */ "object-curly-spacing": | Linter.RuleEntry< - [ - "never", - { - /** - * @default false - */ - arraysInObjects: boolean; - /** - * @default false - */ - objectsInObjects: boolean; - }, - ] - > + [ + "never", + { + /** + * @default false + */ + arraysInObjects: boolean; + /** + * @default false + */ + objectsInObjects: boolean; + }, + ] + > | Linter.RuleEntry< - [ - "always", - { - /** - * @default true - */ - arraysInObjects: boolean; - /** - * @default true - */ - objectsInObjects: boolean; - }, - ] - >; + [ + "always", + { + /** + * @default true + */ + arraysInObjects: boolean; + /** + * @default true + */ + objectsInObjects: boolean; + }, + ] + >; /** * Rule to enforce placing object properties on separate lines. @@ -1497,13 +1505,13 @@ export interface StylisticIssues extends Linter.RulesRecord { | "never" | "consecutive" | Partial< - { - /** - * @default false - */ - separateRequires: boolean; - } & Record<"var" | "let" | "const", "always" | "never" | "consecutive"> - > + { + /** + * @default false + */ + separateRequires: boolean; + } & Record<"var" | "let" | "const", "always" | "never" | "consecutive"> + > | Partial>, ] >; @@ -1569,7 +1577,7 @@ export interface StylisticIssues extends Linter.RulesRecord { { blankLine: "any" | "never" | "always"; } & Record<"prev" | "next", string | string[]> - > + >, ] >; @@ -1590,35 +1598,35 @@ export interface StylisticIssues extends Linter.RulesRecord { "quote-props": | Linter.RuleEntry<["always" | "consistent"]> | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - keywords: boolean; - /** - * @default true - */ - unnecessary: boolean; - /** - * @default false - */ - numbers: boolean; - }>, - ] - > + [ + "as-needed", + Partial<{ + /** + * @default false + */ + keywords: boolean; + /** + * @default true + */ + unnecessary: boolean; + /** + * @default false + */ + numbers: boolean; + }>, + ] + > | Linter.RuleEntry< - [ - "consistent-as-needed", - Partial<{ - /** - * @default false - */ - keywords: boolean; - }>, - ] - >; + [ + "consistent-as-needed", + Partial<{ + /** + * @default false + */ + keywords: boolean; + }>, + ] + >; /** * Rule to enforce the consistent use of either backticks, double, or single quotes. @@ -1650,27 +1658,27 @@ export interface StylisticIssues extends Linter.RulesRecord { */ semi: | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default false - */ - omitLastInOneLineBlock: boolean; - }>, - ] - > + [ + "always", + Partial<{ + /** + * @default false + */ + omitLastInOneLineBlock: boolean; + }>, + ] + > | Linter.RuleEntry< - [ - "never", - Partial<{ - /** - * @default 'any' - */ - beforeStatementContinuationChars: "any" | "always" | "never"; - }>, - ] - >; + [ + "never", + Partial<{ + /** + * @default 'any' + */ + beforeStatementContinuationChars: "any" | "always" | "never"; + }>, + ] + >; /** * Rule to enforce consistent spacing before and after semicolons. @@ -1723,6 +1731,10 @@ export interface StylisticIssues extends Linter.RulesRecord { * @default false */ natural: boolean; + /** + * @default false + */ + allowLineSeparatedGroups: boolean; }>, ] >; diff --git a/node_modules/@types/eslint/rules/variables.d.ts b/node_modules/@types/eslint/rules/variables.d.ts old mode 100755 new mode 100644 index 6347531f..796274d1 --- a/node_modules/@types/eslint/rules/variables.d.ts +++ b/node_modules/@types/eslint/rules/variables.d.ts @@ -10,13 +10,13 @@ export interface Variables extends Linter.RulesRecord { "init-declarations": | Linter.RuleEntry<["always"]> | Linter.RuleEntry< - [ - "never", - Partial<{ - ignoreForLoopInit: boolean; - }>, - ] - >; + [ + "never", + Partial<{ + ignoreForLoopInit: boolean; + }>, + ] + >; /** * Rule to disallow deleting variables. @@ -48,10 +48,10 @@ export interface Variables extends Linter.RulesRecord { ...Array< | string | { - name: string; - message?: string | undefined; - } - > + name: string; + message?: string | undefined; + } + >, ] >; @@ -135,7 +135,9 @@ export interface Variables extends Linter.RulesRecord { */ "no-unused-vars": Linter.RuleEntry< [ - Partial<{ + | "all" + | "local" + | Partial<{ /** * @default 'all' */ @@ -155,6 +157,7 @@ export interface Variables extends Linter.RulesRecord { */ caughtErrors: "none" | "all"; caughtErrorsIgnorePattern: string; + destructuredArrayIgnorePattern: string; }>, ] >; @@ -168,19 +171,23 @@ export interface Variables extends Linter.RulesRecord { "no-use-before-define": Linter.RuleEntry< [ | Partial<{ - /** - * @default true - */ - functions: boolean; - /** - * @default true - */ - classes: boolean; - /** - * @default true - */ - variables: boolean; - }> + /** + * @default true + */ + functions: boolean; + /** + * @default true + */ + classes: boolean; + /** + * @default true + */ + variables: boolean; + /** + * @default false + */ + allowNamedExports: boolean; + }> | "nofunc", ] >; diff --git a/node_modules/@types/eslint/use-at-your-own-risk.d.ts b/node_modules/@types/eslint/use-at-your-own-risk.d.ts old mode 100755 new mode 100644 index 29492ca0..089a657b --- a/node_modules/@types/eslint/use-at-your-own-risk.d.ts +++ b/node_modules/@types/eslint/use-at-your-own-risk.d.ts @@ -2,7 +2,18 @@ export const builtinRules: Map; /** @deprecated */ export class FileEnumerator { - constructor(params?: {cwd?: string, configArrayFactory?: any, extensions?: any, globInputPaths?: boolean, errorOnUnmatchedPattern?: boolean, ignore?: boolean}); + constructor( + params?: { + cwd?: string; + configArrayFactory?: any; + extensions?: any; + globInputPaths?: boolean; + errorOnUnmatchedPattern?: boolean; + ignore?: boolean; + }, + ); isTargetPath(filePath: string, providedConfig?: any): boolean; - iterateFiles(patternOrPatterns: string | string[]): IterableIterator<{config: any, filePath: string, ignored: boolean}>; -} \ No newline at end of file + iterateFiles( + patternOrPatterns: string | string[], + ): IterableIterator<{ config: any; filePath: string; ignored: boolean }>; +} diff --git a/node_modules/@types/http-proxy/LICENSE b/node_modules/@types/http-proxy/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/http-proxy/README.md b/node_modules/@types/http-proxy/README.md old mode 100755 new mode 100644 index 4a98771a..a8dbabf6 --- a/node_modules/@types/http-proxy/README.md +++ b/node_modules/@types/http-proxy/README.md @@ -2,15 +2,14 @@ > `npm install --save @types/http-proxy` # Summary -This package contains type definitions for node-http-proxy (https://github.com/nodejitsu/node-http-proxy). +This package contains type definitions for http-proxy (https://github.com/nodejitsu/node-http-proxy). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-proxy. ### Additional Details - * Last updated: Tue, 03 May 2022 17:01:38 GMT + * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) - * Global values: none # Credits These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), [Florian Oellerich](https://github.com/Raigen), [Daniel Schmidt](https://github.com/DanielMSchmidt), [Jordan Abreu](https://github.com/jabreu610), and [Samuel Bodin](https://github.com/bodinsamuel). diff --git a/node_modules/@types/http-proxy/index.d.ts b/node_modules/@types/http-proxy/index.d.ts old mode 100755 new mode 100644 index ca805dfa..6f3f2a72 --- a/node_modules/@types/http-proxy/index.d.ts +++ b/node_modules/@types/http-proxy/index.d.ts @@ -1,21 +1,11 @@ -// Type definitions for node-http-proxy 1.17 -// Project: https://github.com/nodejitsu/node-http-proxy -// Definitions by: Maxime LUCE -// Florian Oellerich -// Daniel Schmidt -// Jordan Abreu -// Samuel Bodin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - /// -import * as net from "net"; +import * as events from "events"; import * as http from "http"; import * as https from "https"; -import * as events from "events"; -import * as url from "url"; +import * as net from "net"; import * as stream from "stream"; +import * as url from "url"; interface ProxyTargetDetailed { host: string; @@ -32,7 +22,9 @@ interface ProxyTargetDetailed { secureProtocol?: string | undefined; } -declare class Server extends events.EventEmitter { +declare class Server + extends events.EventEmitter +{ /** * Creates the proxy server with specified options. * @param options - Config object passed to the proxy @@ -70,8 +62,9 @@ declare class Server extends events.EventEmitter { /** * A function that wraps the object in a webserver, for your convenience * @param port - Port to listen on + * @param hostname - The hostname to listen on */ - listen(port: number): Server; + listen(port: number, hostname?: string): Server; /** * A function that closes the inner webserver and stops listening on given port @@ -83,44 +76,59 @@ declare class Server extends events.EventEmitter { * @param options Config object passed to the proxy * @returns Proxy object with handlers for `ws` and `web` requests */ - static createProxyServer(options?: Server.ServerOptions): Server; + // tslint:disable:no-unnecessary-generics + static createProxyServer( + options?: Server.ServerOptions, + ): Server; /** * Creates the proxy server with specified options. * @param options Config object passed to the proxy * @returns Proxy object with handlers for `ws` and `web` requests */ - static createServer(options?: Server.ServerOptions): Server; + // tslint:disable:no-unnecessary-generics + static createServer( + options?: Server.ServerOptions, + ): Server; /** * Creates the proxy server with specified options. * @param options Config object passed to the proxy * @returns Proxy object with handlers for `ws` and `web` requests */ - static createProxy(options?: Server.ServerOptions): Server; + // tslint:disable:no-unnecessary-generics + static createProxy( + options?: Server.ServerOptions, + ): Server; addListener(event: string, listener: () => void): this; on(event: string, listener: () => void): this; - on(event: "error", listener: Server.ErrorCallback): this; - on(event: "start", listener: Server.StartCallback): this; - on(event: "proxyReq", listener: Server.ProxyReqCallback): this; - on(event: "proxyRes", listener: Server.ProxyResCallback): this; - on(event: "proxyReqWs", listener: Server.ProxyReqWsCallback): this; - on(event: "econnreset", listener: Server.EconnresetCallback): this; - on(event: "end", listener: Server.EndCallback): this; + on(event: "error", listener: Server.ErrorCallback): this; + on(event: "start", listener: Server.StartCallback): this; + on( + event: "proxyReq", + listener: Server.ProxyReqCallback, + ): this; + on(event: "proxyRes", listener: Server.ProxyResCallback): this; + on(event: "proxyReqWs", listener: Server.ProxyReqWsCallback): this; + on(event: "econnreset", listener: Server.EconnresetCallback): this; + on(event: "end", listener: Server.EndCallback): this; on(event: "open", listener: Server.OpenCallback): this; - on(event: "close", listener: Server.CloseCallback): this; + on(event: "close", listener: Server.CloseCallback): this; once(event: string, listener: () => void): this; - once(event: "error", listener: Server.ErrorCallback): this; - once(event: "start", listener: Server.StartCallback): this; - once(event: "proxyReq", listener: Server.ProxyReqCallback): this; - once(event: "proxyRes", listener: Server.ProxyResCallback): this; - once(event: "proxyReqWs", listener: Server.ProxyReqWsCallback): this; - once(event: "econnreset", listener: Server.EconnresetCallback): this; - once(event: "end", listener: Server.EndCallback): this; + once(event: "error", listener: Server.ErrorCallback): this; + once(event: "start", listener: Server.StartCallback): this; + once( + event: "proxyReq", + listener: Server.ProxyReqCallback, + ): this; + once(event: "proxyRes", listener: Server.ProxyResCallback): this; + once(event: "proxyReqWs", listener: Server.ProxyReqWsCallback): this; + once(event: "econnreset", listener: Server.EconnresetCallback): this; + once(event: "end", listener: Server.EndCallback): this; once(event: "open", listener: Server.OpenCallback): this; - once(event: "close", listener: Server.CloseCallback): this; + once(event: "close", listener: Server.CloseCallback): this; removeListener(event: string, listener: () => void): this; removeAllListeners(event?: string): this; getMaxListeners(): number; @@ -196,7 +204,7 @@ declare namespace Server { TClientRequest = http.ClientRequest, TIncomingMessage = http.IncomingMessage, TServerResponse = http.ServerResponse, - > = (proxyReq: TClientRequest, req: TIncomingMessage, res: TServerResponse, options: ServerOptions) => void; + > = (proxyReq: TClientRequest, req: TIncomingMessage, res: TServerResponse, options: ServerOptions) => void; type ProxyResCallback = ( proxyRes: TIncomingMessage, req: TIncomingMessage, @@ -209,7 +217,11 @@ declare namespace Server { options: ServerOptions, head: any, ) => void; - type EconnresetCallback = ( + type EconnresetCallback< + TError = Error, + TIncomingMessage = http.IncomingMessage, + TServerResponse = http.ServerResponse, + > = ( err: TError, req: TIncomingMessage, res: TServerResponse, @@ -218,16 +230,21 @@ declare namespace Server { type EndCallback = ( req: TIncomingMessage, res: TServerResponse, - proxyRes: TIncomingMessage + proxyRes: TIncomingMessage, ) => void; type OpenCallback = (proxySocket: net.Socket) => void; - type CloseCallback = (proxyRes: TIncomingMessage, proxySocket: net.Socket, proxyHead: any) => void; - type ErrorCallback = ( - err: TError, - req: TIncomingMessage, - res: TServerResponse | net.Socket, - target?: ProxyTargetUrl, + type CloseCallback = ( + proxyRes: TIncomingMessage, + proxySocket: net.Socket, + proxyHead: any, ) => void; + type ErrorCallback = + ( + err: TError, + req: TIncomingMessage, + res: TServerResponse | net.Socket, + target?: ProxyTargetUrl, + ) => void; } export = Server; diff --git a/node_modules/@types/http-proxy/package.json b/node_modules/@types/http-proxy/package.json old mode 100755 new mode 100644 index ac79e634..997dcbb0 --- a/node_modules/@types/http-proxy/package.json +++ b/node_modules/@types/http-proxy/package.json @@ -1,34 +1,34 @@ { "name": "@types/http-proxy", - "version": "1.17.9", - "description": "TypeScript definitions for node-http-proxy", + "version": "1.17.14", + "description": "TypeScript definitions for http-proxy", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-proxy", "license": "MIT", "contributors": [ { "name": "Maxime LUCE", - "url": "https://github.com/SomaticIT", - "githubUsername": "SomaticIT" + "githubUsername": "SomaticIT", + "url": "https://github.com/SomaticIT" }, { "name": "Florian Oellerich", - "url": "https://github.com/Raigen", - "githubUsername": "Raigen" + "githubUsername": "Raigen", + "url": "https://github.com/Raigen" }, { "name": "Daniel Schmidt", - "url": "https://github.com/DanielMSchmidt", - "githubUsername": "DanielMSchmidt" + "githubUsername": "DanielMSchmidt", + "url": "https://github.com/DanielMSchmidt" }, { "name": "Jordan Abreu", - "url": "https://github.com/jabreu610", - "githubUsername": "jabreu610" + "githubUsername": "jabreu610", + "url": "https://github.com/jabreu610" }, { "name": "Samuel Bodin", - "url": "https://github.com/bodinsamuel", - "githubUsername": "bodinsamuel" + "githubUsername": "bodinsamuel", + "url": "https://github.com/bodinsamuel" } ], "main": "", @@ -42,6 +42,6 @@ "dependencies": { "@types/node": "*" }, - "typesPublisherContentHash": "f9643f858f88cf625687959add278923b6bfe0ed59db1b54fd42996b2a708e7a", - "typeScriptVersion": "3.9" + "typesPublisherContentHash": "3e198b1ca48b5a5de433fc322508d2fec21a03c1b52c9470ee47b725146db123", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/json-patch/LICENSE b/node_modules/@types/json-patch/LICENSE deleted file mode 100644 index 21071075..00000000 --- a/node_modules/@types/json-patch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/node_modules/@types/json-patch/README.md b/node_modules/@types/json-patch/README.md deleted file mode 100644 index abd4a844..00000000 --- a/node_modules/@types/json-patch/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Installation -> `npm install --save @types/json-patch` - -# Summary -This package contains type definitions for json-patch (https://github.com/bruth/jsonpatch-js). - -# Details -Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch - -Additional Details - * Last updated: Mon, 21 Aug 2017 21:55:03 GMT - * Dependencies: none - * Global values: jsonpatch - -# Credits -These definitions were written by vvakame . diff --git a/node_modules/@types/json-patch/index.d.ts b/node_modules/@types/json-patch/index.d.ts deleted file mode 100644 index 04284a7a..00000000 --- a/node_modules/@types/json-patch/index.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Type definitions for json-patch -// Project: https://github.com/bruth/jsonpatch-js -// Definitions by: vvakame -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace jsonpatch { - type OpPatch = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch | TestPatch; - interface Patch { - path: string; - } - interface AddPatch extends Patch { - op: 'add'; - value: any; - } - interface RemovePatch extends Patch { - op: 'remove'; - } - interface ReplacePatch extends Patch { - op: 'replace'; - value: any; - } - interface MovePatch extends Patch { - op: 'move'; - from: string; - } - interface CopyPatch extends Patch { - op: 'copy'; - from: string; - } - interface TestPatch extends Patch { - op: 'test'; - value: any; - } - - function apply(document: any, patches: OpPatch[]): any; - function compile(patches: OpPatch[]): (document: any) => any; - - class JSONPatchError extends Error { } - class InvalidPointerError extends Error { } - class InvalidPatchError extends JSONPatchError { } - class PatchConflictError extends JSONPatchError { } - class PatchTestFailed extends Error { } -} - -export = jsonpatch; -export as namespace jsonpatch; diff --git a/node_modules/@types/json-patch/package.json b/node_modules/@types/json-patch/package.json deleted file mode 100644 index 0d854bda..00000000 --- a/node_modules/@types/json-patch/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@types/json-patch", - "version": "0.0.30", - "description": "TypeScript definitions for json-patch", - "license": "MIT", - "contributors": [ - { - "name": "vvakame", - "url": "https://github.com/vvakame" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "8fe4b52972d95c538f682cb69fec3a734ad85fa7a73f9513bf97cc6995090bb8", - "typeScriptVersion": "2.0" -} \ No newline at end of file diff --git a/node_modules/@types/json-schema/LICENSE b/node_modules/@types/json-schema/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/json-schema/README.md b/node_modules/@types/json-schema/README.md old mode 100755 new mode 100644 index e410136e..78c610f0 --- a/node_modules/@types/json-schema/README.md +++ b/node_modules/@types/json-schema/README.md @@ -2,15 +2,14 @@ > `npm install --save @types/json-schema` # Summary -This package contains type definitions for json-schema 4.0, 6.0 and (https://github.com/kriszyp/json-schema). +This package contains type definitions for json-schema (https://github.com/kriszyp/json-schema). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema. ### Additional Details - * Last updated: Fri, 25 Mar 2022 14:01:45 GMT + * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: none - * Global values: none # Credits These definitions were written by [Boris Cherny](https://github.com/bcherny), [Lucian Buzzo](https://github.com/lucianbuzzo), [Roland Groza](https://github.com/rolandjitsu), and [Jason Kwok](https://github.com/JasonHK). diff --git a/node_modules/@types/json-schema/index.d.ts b/node_modules/@types/json-schema/index.d.ts old mode 100755 new mode 100644 index 7a92decd..9381e999 --- a/node_modules/@types/json-schema/index.d.ts +++ b/node_modules/@types/json-schema/index.d.ts @@ -1,28 +1,19 @@ -// Type definitions for json-schema 4.0, 6.0 and 7.0 -// Project: https://github.com/kriszyp/json-schema -// Definitions by: Boris Cherny -// Lucian Buzzo -// Roland Groza -// Jason Kwok -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -//================================================================================================== +// ================================================================================================== // JSON Schema Draft 04 -//================================================================================================== +// ================================================================================================== /** * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 */ export type JSONSchema4TypeName = - | 'string' // - | 'number' - | 'integer' - | 'boolean' - | 'object' - | 'array' - | 'null' - | 'any'; + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null" + | "any"; /** * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 @@ -240,19 +231,19 @@ export interface JSONSchema4 { format?: string | undefined; } -//================================================================================================== +// ================================================================================================== // JSON Schema Draft 06 -//================================================================================================== +// ================================================================================================== export type JSONSchema6TypeName = - | 'string' // - | 'number' - | 'integer' - | 'boolean' - | 'object' - | 'array' - | 'null' - | 'any'; + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null" + | "any"; export type JSONSchema6Type = | string // @@ -556,24 +547,24 @@ export interface JSONSchema6 { format?: string | undefined; } -//================================================================================================== +// ================================================================================================== // JSON Schema Draft 07 -//================================================================================================== +// ================================================================================================== // https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 -//-------------------------------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------------- /** * Primitive type * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 */ export type JSONSchema7TypeName = - | 'string' // - | 'number' - | 'integer' - | 'boolean' - | 'object' - | 'array' - | 'null'; + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null"; /** * Primitive type @@ -625,7 +616,7 @@ export interface JSONSchema7 { * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A */ $defs?: { - [key: string]: JSONSchema7Definition; + [key: string]: JSONSchema7Definition; } | undefined; /** @@ -659,7 +650,7 @@ export interface JSONSchema7 { maxItems?: number | undefined; minItems?: number | undefined; uniqueItems?: boolean | undefined; - contains?: JSONSchema7 | undefined; + contains?: JSONSchema7Definition | undefined; /** * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5 diff --git a/node_modules/@types/json-schema/package.json b/node_modules/@types/json-schema/package.json old mode 100755 new mode 100644 index f4ac2719..3c41bd7f --- a/node_modules/@types/json-schema/package.json +++ b/node_modules/@types/json-schema/package.json @@ -1,29 +1,29 @@ { "name": "@types/json-schema", - "version": "7.0.11", - "description": "TypeScript definitions for json-schema 4.0, 6.0 and", + "version": "7.0.15", + "description": "TypeScript definitions for json-schema", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema", "license": "MIT", "contributors": [ { "name": "Boris Cherny", - "url": "https://github.com/bcherny", - "githubUsername": "bcherny" + "githubUsername": "bcherny", + "url": "https://github.com/bcherny" }, { "name": "Lucian Buzzo", - "url": "https://github.com/lucianbuzzo", - "githubUsername": "lucianbuzzo" + "githubUsername": "lucianbuzzo", + "url": "https://github.com/lucianbuzzo" }, { "name": "Roland Groza", - "url": "https://github.com/rolandjitsu", - "githubUsername": "rolandjitsu" + "githubUsername": "rolandjitsu", + "url": "https://github.com/rolandjitsu" }, { "name": "Jason Kwok", - "url": "https://github.com/JasonHK", - "githubUsername": "JasonHK" + "githubUsername": "JasonHK", + "url": "https://github.com/JasonHK" } ], "main": "", @@ -35,6 +35,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "84a402b9e31ddb097f08b5c07c08590bf087035c483db7a4071a04903775dc44", - "typeScriptVersion": "3.9" + "typesPublisherContentHash": "79984fd70cd25c3f7d72b84368778c763c89728ea0073832d745d4691b705257", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/mime/README.md b/node_modules/@types/mime/README.md index af5b1658..a08301c8 100644 --- a/node_modules/@types/mime/README.md +++ b/node_modules/@types/mime/README.md @@ -8,9 +8,8 @@ This package contains type definitions for mime (https://github.com/broofa/node- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime/v1. ### Additional Details - * Last updated: Mon, 18 Jan 2021 14:32:15 GMT + * Last updated: Tue, 07 Nov 2023 20:08:00 GMT * Dependencies: none - * Global values: `mime`, `mimelite` # Credits These definitions were written by [Jeff Goddard](https://github.com/jedigo), and [Daniel Hritzkiv](https://github.com/dhritzkiv). diff --git a/node_modules/@types/mime/index.d.ts b/node_modules/@types/mime/index.d.ts index 3240e75b..93e82599 100644 --- a/node_modules/@types/mime/index.d.ts +++ b/node_modules/@types/mime/index.d.ts @@ -1,14 +1,10 @@ -// Type definitions for mime 1.3 -// Project: https://github.com/broofa/node-mime -// Definitions by: Jeff Goddard -// Daniel Hritzkiv -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - // Originally imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts export as namespace mime; -export interface TypeMap { [key: string]: string[]; } +export interface TypeMap { + [key: string]: string[]; +} /** * Look up a mime type based on extension. diff --git a/node_modules/@types/mime/package.json b/node_modules/@types/mime/package.json index ad46550f..98a29ff1 100644 --- a/node_modules/@types/mime/package.json +++ b/node_modules/@types/mime/package.json @@ -1,18 +1,19 @@ { "name": "@types/mime", - "version": "1.3.2", + "version": "1.3.5", "description": "TypeScript definitions for mime", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime", "license": "MIT", "contributors": [ { "name": "Jeff Goddard", - "url": "https://github.com/jedigo", - "githubUsername": "jedigo" + "githubUsername": "jedigo", + "url": "https://github.com/jedigo" }, { "name": "Daniel Hritzkiv", - "url": "https://github.com/dhritzkiv", - "githubUsername": "dhritzkiv" + "githubUsername": "dhritzkiv", + "url": "https://github.com/dhritzkiv" } ], "main": "", @@ -24,6 +25,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "529a2ee85950b588c079bd053520c5b3c2bbff1886870bc08188284265324348", - "typeScriptVersion": "3.4" + "typesPublisherContentHash": "2ad7ee9a549e6721825e733c6a1a7e8bee0ca7ba93d9ab922c8f4558def52d77", + "typeScriptVersion": "4.5" } \ No newline at end of file diff --git a/node_modules/@types/qs/LICENSE b/node_modules/@types/qs/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/qs/README.md b/node_modules/@types/qs/README.md old mode 100755 new mode 100644 index 29b3fd78..7969a9bc --- a/node_modules/@types/qs/README.md +++ b/node_modules/@types/qs/README.md @@ -8,9 +8,8 @@ This package contains type definitions for qs (https://github.com/ljharb/qs). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs. ### Additional Details - * Last updated: Wed, 07 Jul 2021 17:02:42 GMT + * Last updated: Tue, 16 Apr 2024 04:07:43 GMT * Dependencies: none - * Global values: `qs` # Credits These definitions were written by [Roman Korneev](https://github.com/RWander), [Leon Yu](https://github.com/leonyu), [Belinda Teh](https://github.com/tehbelinda), [Melvin Lee](https://github.com/zyml), [Arturs Vonda](https://github.com/artursvonda), [Carlos Bonetti](https://github.com/CarlosBonetti), [Dan Smith](https://github.com/dpsmith3), [Hunter Perrin](https://github.com/hperrin), and [Jordan Harband](https://github.com/ljharb). diff --git a/node_modules/@types/qs/index.d.ts b/node_modules/@types/qs/index.d.ts old mode 100755 new mode 100644 index 35810c5a..5e1643f1 --- a/node_modules/@types/qs/index.d.ts +++ b/node_modules/@types/qs/index.d.ts @@ -1,15 +1,3 @@ -// Type definitions for qs 6.9 -// Project: https://github.com/ljharb/qs -// Definitions by: Roman Korneev -// Leon Yu -// Belinda Teh -// Melvin Lee -// Arturs Vonda -// Carlos Bonetti -// Dan Smith -// Hunter Perrin -// Jordan Harband -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = QueryString; export as namespace qs; @@ -17,46 +5,75 @@ declare namespace QueryString { type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; type defaultDecoder = (str: string, decoder?: any, charset?: string) => string; - interface IStringifyOptions { + type BooleanOptional = boolean | undefined; + + interface IStringifyBaseOptions { delimiter?: string | undefined; strictNullHandling?: boolean | undefined; skipNulls?: boolean | undefined; encode?: boolean | undefined; - encoder?: ((str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string) | undefined; + encoder?: + | ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string) + | undefined; filter?: Array | ((prefix: string, value: any) => any) | undefined; - arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma' | undefined; + arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined; indices?: boolean | undefined; - sort?: ((a: any, b: any) => number) | undefined; + sort?: ((a: string, b: string) => number) | undefined; serializeDate?: ((d: Date) => string) | undefined; - format?: 'RFC1738' | 'RFC3986' | undefined; + format?: "RFC1738" | "RFC3986" | undefined; encodeValuesOnly?: boolean | undefined; addQueryPrefix?: boolean | undefined; - allowDots?: boolean | undefined; - charset?: 'utf-8' | 'iso-8859-1' | undefined; + charset?: "utf-8" | "iso-8859-1" | undefined; charsetSentinel?: boolean | undefined; + allowEmptyArrays?: boolean | undefined; } - interface IParseOptions { + type IStringifyDynamicOptions = AllowDots extends true + ? { allowDots?: AllowDots; encodeDotInKeys?: boolean } + : { allowDots?: boolean; encodeDotInKeys?: false }; + + type IStringifyOptions = + & IStringifyBaseOptions + & IStringifyDynamicOptions; + + interface IParseBaseOptions { comma?: boolean | undefined; delimiter?: string | RegExp | undefined; depth?: number | false | undefined; - decoder?: ((str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any) | undefined; + decoder?: + | ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any) + | undefined; arrayLimit?: number | undefined; parseArrays?: boolean | undefined; - allowDots?: boolean | undefined; plainObjects?: boolean | undefined; allowPrototypes?: boolean | undefined; + allowSparse?: boolean | undefined; parameterLimit?: number | undefined; strictNullHandling?: boolean | undefined; ignoreQueryPrefix?: boolean | undefined; - charset?: 'utf-8' | 'iso-8859-1' | undefined; + charset?: "utf-8" | "iso-8859-1" | undefined; charsetSentinel?: boolean | undefined; interpretNumericEntities?: boolean | undefined; + allowEmptyArrays?: boolean | undefined; + duplicates?: "combine" | "first" | "last" | undefined; } - interface ParsedQs { [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[] } + type IParseDynamicOptions = AllowDots extends true + ? { allowDots?: AllowDots; decodeDotInKeys?: boolean } + : { allowDots?: boolean; decodeDotInKeys?: false }; + + type IParseOptions = + & IParseBaseOptions + & IParseDynamicOptions; + + interface ParsedQs { + [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[]; + } - function stringify(obj: any, options?: IStringifyOptions): string; - function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs; - function parse(str: string | Record, options?: IParseOptions): { [key: string]: unknown }; + function stringify(obj: any, options?: IStringifyOptions): string; + function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs; + function parse( + str: string | Record, + options?: IParseOptions, + ): { [key: string]: unknown }; } diff --git a/node_modules/@types/qs/package.json b/node_modules/@types/qs/package.json old mode 100755 new mode 100644 index 7edba8b3..1b2f9b6a --- a/node_modules/@types/qs/package.json +++ b/node_modules/@types/qs/package.json @@ -1,54 +1,54 @@ { "name": "@types/qs", - "version": "6.9.7", + "version": "6.9.15", "description": "TypeScript definitions for qs", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs", "license": "MIT", "contributors": [ { "name": "Roman Korneev", - "url": "https://github.com/RWander", - "githubUsername": "RWander" + "githubUsername": "RWander", + "url": "https://github.com/RWander" }, { "name": "Leon Yu", - "url": "https://github.com/leonyu", - "githubUsername": "leonyu" + "githubUsername": "leonyu", + "url": "https://github.com/leonyu" }, { "name": "Belinda Teh", - "url": "https://github.com/tehbelinda", - "githubUsername": "tehbelinda" + "githubUsername": "tehbelinda", + "url": "https://github.com/tehbelinda" }, { "name": "Melvin Lee", - "url": "https://github.com/zyml", - "githubUsername": "zyml" + "githubUsername": "zyml", + "url": "https://github.com/zyml" }, { "name": "Arturs Vonda", - "url": "https://github.com/artursvonda", - "githubUsername": "artursvonda" + "githubUsername": "artursvonda", + "url": "https://github.com/artursvonda" }, { "name": "Carlos Bonetti", - "url": "https://github.com/CarlosBonetti", - "githubUsername": "CarlosBonetti" + "githubUsername": "CarlosBonetti", + "url": "https://github.com/CarlosBonetti" }, { "name": "Dan Smith", - "url": "https://github.com/dpsmith3", - "githubUsername": "dpsmith3" + "githubUsername": "dpsmith3", + "url": "https://github.com/dpsmith3" }, { "name": "Hunter Perrin", - "url": "https://github.com/hperrin", - "githubUsername": "hperrin" + "githubUsername": "hperrin", + "url": "https://github.com/hperrin" }, { "name": "Jordan Harband", - "url": "https://github.com/ljharb", - "githubUsername": "ljharb" + "githubUsername": "ljharb", + "url": "https://github.com/ljharb" } ], "main": "", @@ -60,6 +60,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "b33fed3eed022f94c7db53593571f370eaa77aa17b3e302dc1bd77304f03e56c", - "typeScriptVersion": "3.6" + "typesPublisherContentHash": "1f1cbc913fb092d4ffa9230a21894f18d2826d04431244517086c6fc477dbf12", + "typeScriptVersion": "4.7" } \ No newline at end of file diff --git a/node_modules/@types/webxr/LICENSE b/node_modules/@types/webxr/LICENSE old mode 100755 new mode 100644 diff --git a/node_modules/@types/webxr/README.md b/node_modules/@types/webxr/README.md old mode 100755 new mode 100644 index 1f954e20..e126e476 --- a/node_modules/@types/webxr/README.md +++ b/node_modules/@types/webxr/README.md @@ -8,9 +8,8 @@ This package contains type definitions for webxr (https://www.w3.org/TR/webxr/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webxr. ### Additional Details - * Last updated: Wed, 18 May 2022 14:01:35 GMT + * Last updated: Wed, 01 May 2024 22:07:23 GMT * Dependencies: none - * Global values: `OCULUS_multiview`, `OVR_multiview2`, `XOVR_multiview2`, `XRAnchor`, `XRBoundedReferenceSpace`, `XRCompositionLayer`, `XRCubeLayer`, `XRCylinderLayer`, `XREquirectLayer`, `XRFrame`, `XRHand`, `XRHitTestResult`, `XRHitTestSource`, `XRInputSource`, `XRInputSourceArray`, `XRInputSourceEvent`, `XRJointPose`, `XRJointSpace`, `XRLayer`, `XRMediaBinding`, `XRPlane`, `XRPose`, `XRProjectionLayer`, `XRQuadLayer`, `XRRay`, `XRReferenceSpace`, `XRReferenceSpaceEvent`, `XRRenderState`, `XRRigidTransform`, `XRSession`, `XRSessionEvent`, `XRSpace`, `XRSubImage`, `XRSystem`, `XRTransientInputHitTestResult`, `XRTransientInputHitTestSource`, `XRView`, `XRViewerPose`, `XRViewport`, `XRWebGLBinding`, `XRWebGLLayer`, `XRWebGLSubImage` # Credits -These definitions were written by [Rob Rohan](https://github.com/robrohan), [Raanan Weber](https://github.com/RaananW), and [Sean T. McBeth](https://github.com/capnmidnight). +These definitions were written by [Rob Rohan](https://github.com/robrohan), [Raanan Weber](https://github.com/RaananW), [Sean T. McBeth](https://github.com/capnmidnight), and [Timmy Kokke](https://github.com/sorskoot). diff --git a/node_modules/@types/webxr/index.d.ts b/node_modules/@types/webxr/index.d.ts old mode 100755 new mode 100644 index ae4c3164..39b644ad --- a/node_modules/@types/webxr/index.d.ts +++ b/node_modules/@types/webxr/index.d.ts @@ -1,11 +1,3 @@ -// Type definitions for non-npm package webxr 0.4 -// Project: https://www.w3.org/TR/webxr/ -// Definitions by: Rob Rohan -// Raanan Weber -// Sean T. McBeth -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Minimum TypeScript Version: 3.7 - // Most of this was hand written and... more or less copied from the following // sites: // https://www.w3.org/TR/webxr/ @@ -44,39 +36,39 @@ interface WebGLRenderingContextBase { * * ref: https://immersive-web.github.io/webxr/#xrsessionmode-enum */ -type XRSessionMode = 'inline' | 'immersive-vr' | 'immersive-ar'; +type XRSessionMode = "inline" | "immersive-vr" | "immersive-ar"; /** * Reference space types */ -type XRReferenceSpaceType = 'viewer' | 'local' | 'local-floor' | 'bounded-floor' | 'unbounded'; +type XRReferenceSpaceType = "viewer" | "local" | "local-floor" | "bounded-floor" | "unbounded"; -type XREnvironmentBlendMode = 'opaque' | 'additive' | 'alpha-blend'; +type XREnvironmentBlendMode = "opaque" | "additive" | "alpha-blend"; /** * ref: https://immersive-web.github.io/webxr/#xrsession-interface */ -type XRVisibilityState = 'visible' | 'visible-blurred' | 'hidden'; +type XRVisibilityState = "visible" | "visible-blurred" | "hidden"; /** * Handedness types */ -type XRHandedness = 'none' | 'left' | 'right'; +type XRHandedness = "none" | "left" | "right"; /** * InputSource target ray modes */ -type XRTargetRayMode = 'gaze' | 'tracked-pointer' | 'screen'; +type XRTargetRayMode = "gaze" | "tracked-pointer" | "screen" | "transient-pointer"; /** * Eye types */ -type XREye = 'none' | 'left' | 'right'; +type XREye = "none" | "left" | "right"; type XRFrameRequestCallback = (time: DOMHighResTimeStamp, frame: XRFrame) => void; interface XRSystemDeviceChangeEvent extends Event { - type: 'devicechange'; + type: "devicechange"; } interface XRSystemDeviceChangeEventHandler { @@ -157,7 +149,7 @@ declare abstract class XRViewport implements XRViewport {} * * ref: https://immersive-web.github.io/webxr/#xrspace-interface */ -// tslint:disable-next-line no-empty-interface +// eslint-disable-next-line @typescript-eslint/no-empty-interface interface XRSpace extends EventTarget {} declare abstract class XRSpace implements XRSpace {} @@ -189,14 +181,14 @@ interface XRReferenceSpaceEventInit extends EventInit { * ref: https://immersive-web.github.io/webxr/#xrreferencespaceevent-interface */ interface XRReferenceSpaceEvent extends Event { - readonly type: 'reset'; + readonly type: "reset"; readonly referenceSpace: XRReferenceSpace; readonly transform?: XRRigidTransform | undefined; } // tslint:disable-next-line no-unnecessary-class declare class XRReferenceSpaceEvent implements XRReferenceSpaceEvent { - constructor(type: 'reset', eventInitDict?: XRReferenceSpaceEventInit); + constructor(type: "reset", eventInitDict?: XRReferenceSpaceEventInit); } interface XRReferenceSpaceEventHandler { @@ -301,6 +293,8 @@ declare abstract class XRInputSourceArray implements XRInputSourceArray {} */ interface XRPose { readonly transform: XRRigidTransform; + readonly linearVelocity?: DOMPointReadOnly | undefined; + readonly angularVelocity?: DOMPointReadOnly | undefined; readonly emulatedPosition: boolean; } @@ -342,7 +336,7 @@ declare abstract class XRFrame implements XRFrame {} /** * Type of XR events available */ -type XRInputSourceEventType = 'select' | 'selectend' | 'selectstart' | 'squeeze' | 'squeezeend' | 'squeezestart'; +type XRInputSourceEventType = "select" | "selectend" | "selectstart" | "squeeze" | "squeezeend" | "squeezestart"; interface XRInputSourceEventInit extends EventInit { frame?: XRFrame | undefined; @@ -365,7 +359,7 @@ interface XRInputSourceEventHandler { (evt: XRInputSourceEvent): any; } -type XRSessionEventType = 'end' | 'visibilitychange' | 'frameratechange'; +type XRSessionEventType = "end" | "visibilitychange" | "frameratechange"; interface XRSessionEventInit extends EventInit { session: XRSession; @@ -428,6 +422,8 @@ interface XRSession extends EventTarget { readonly visibilityState: XRVisibilityState; readonly frameRate?: number | undefined; readonly supportedFrameRates?: Float32Array | undefined; + readonly enabledFeatures?: string[] | undefined; + readonly isSystemKeyboardSupported: boolean; /** * Removes a callback from the animation frame painting callback from @@ -510,7 +506,7 @@ declare abstract class XRSession implements XRSession {} * ref: https://immersive-web.github.io/webxr/#xrviewerpose-interface */ interface XRViewerPose extends XRPose { - readonly views: ReadonlyArray; + readonly views: readonly XRView[]; } declare abstract class XRViewerPose implements XRViewerPose {} @@ -551,8 +547,8 @@ declare abstract class XRView implements XRView {} * ref: https://immersive-web.github.io/webxr/#xrinputsourceschangeevent-interface */ interface XRInputSourceChangeEvent extends XRSessionEvent { - readonly removed: ReadonlyArray; - readonly added: ReadonlyArray; + readonly removed: readonly XRInputSource[]; + readonly added: readonly XRInputSource[]; } interface XRInputSourceChangeEventHandler { @@ -585,11 +581,11 @@ declare class XRRay { constructor(transformOrOrigin?: XRRigidTransform | DOMPointInit, direction?: DOMPointInit); } -type XRHitTestTrackableType = 'point' | 'plane' | 'mesh'; +type XRHitTestTrackableType = "point" | "plane" | "mesh"; interface XRTransientInputHitTestResult { readonly inputSource: XRInputSource; - readonly results: ReadonlyArray; + readonly results: readonly XRHitTestResult[]; } declare class XRTransientInputHitTestResult { @@ -651,60 +647,111 @@ interface XRHitResult { // Plane detection type XRPlaneSet = Set; -type XRPlaneOrientation = 'horizontal' | 'vertical'; +type XRPlaneOrientation = "horizontal" | "vertical"; interface XRPlane { orientation: XRPlaneOrientation; planeSpace: XRSpace; polygon: DOMPointReadOnly[]; - lastChangedTime: number; + lastChangedTime: DOMHighResTimeStamp; +} + +interface XRFrame { + /** + * XRFrame is extended to contain detectedPlanes attribute which contains + * all planes that are still tracked in the frame. + * + * The set is initially empty and will be populated by the update planes + * algorithm. If this attribute is accessed when the frame is not active, + * the user agent MUST throw InvalidStateError. + * + * @see https://immersive-web.github.io/real-world-geometry/plane-detection.html#plane-set + */ + readonly detectedPlanes?: XRPlaneSet; } declare abstract class XRPlane implements XRPlane {} -interface XRSession { - // Legacy - updateWorldTrackingState?: (options: { - planeDetectionState?: { enabled: boolean } | undefined; - }) => void | undefined; +// Mesh detection +type XRMeshSet = Set; + +interface XRMesh { + meshSpace: XRSpace; + vertices: Float32Array; + indices: Uint32Array; + lastChangedTime: DOMHighResTimeStamp; + semanticLabel?: string; } interface XRFrame { - worldInformation?: - | { - detectedPlanes?: XRPlaneSet | undefined; - } - | undefined; + /** + * XRFrame is extended to contain detectedMeshes attribute + * which contains all meshes that are still tracked in the frame. + * + * The set is initially empty and will be populated by the update meshes algorithm. + * If this attribute is accessed when the frame is not active, the user agent + * MUST throw InvalidStateError. + * + * @see https://immersive-web.github.io/real-world-meshing/#mesh-set + */ + readonly detectedMeshes?: XRMeshSet; } -// Hand Tracking +declare abstract class XRMesh implements XRMesh {} + +interface XRSession { + /** + * XRSession is extended to contain the initiateRoomCapture method which, + * if supported, will ask the XR Compositor to capture the current room layout. + * It is up to the XRCompositor if this will replace or augment the set of tracked planes. + * The user agent MAY also ignore this call, for instance if it doesn’t support a manual room + * capture more or if it determines that the room is already set up. + * The initiateRoomCapture method MUST only be able to be called once per XRSession. + * + * @see https://immersive-web.github.io/real-world-geometry/plane-detection.html#plane-set + */ + initiateRoomCapture?(): Promise; +} + +/** + * The XRHand interface is pair iterator (an ordered map) with the key being the hand + * joints ({@link XRHandJoint}) and the value being an {@link XRJointSpace}. + * + * @see https://immersive-web.github.io/webxr-hand-input/#xrhand-interface + */ type XRHandJoint = - | 'wrist' - | 'thumb-metacarpal' - | 'thumb-phalanx-proximal' - | 'thumb-phalanx-distal' - | 'thumb-tip' - | 'index-finger-metacarpal' - | 'index-finger-phalanx-proximal' - | 'index-finger-phalanx-intermediate' - | 'index-finger-phalanx-distal' - | 'index-finger-tip' - | 'middle-finger-metacarpal' - | 'middle-finger-phalanx-proximal' - | 'middle-finger-phalanx-intermediate' - | 'middle-finger-phalanx-distal' - | 'middle-finger-tip' - | 'ring-finger-metacarpal' - | 'ring-finger-phalanx-proximal' - | 'ring-finger-phalanx-intermediate' - | 'ring-finger-phalanx-distal' - | 'ring-finger-tip' - | 'pinky-finger-metacarpal' - | 'pinky-finger-phalanx-proximal' - | 'pinky-finger-phalanx-intermediate' - | 'pinky-finger-phalanx-distal' - | 'pinky-finger-tip'; + | "wrist" + | "thumb-metacarpal" + | "thumb-phalanx-proximal" + | "thumb-phalanx-distal" + | "thumb-tip" + | "index-finger-metacarpal" + | "index-finger-phalanx-proximal" + | "index-finger-phalanx-intermediate" + | "index-finger-phalanx-distal" + | "index-finger-tip" + | "middle-finger-metacarpal" + | "middle-finger-phalanx-proximal" + | "middle-finger-phalanx-intermediate" + | "middle-finger-phalanx-distal" + | "middle-finger-tip" + | "ring-finger-metacarpal" + | "ring-finger-phalanx-proximal" + | "ring-finger-phalanx-intermediate" + | "ring-finger-phalanx-distal" + | "ring-finger-tip" + | "pinky-finger-metacarpal" + | "pinky-finger-phalanx-proximal" + | "pinky-finger-phalanx-intermediate" + | "pinky-finger-phalanx-distal" + | "pinky-finger-tip"; +/** + * The XRJointSpace interface is an {@link XRSpace} and represents the position and + * orientation of an {@link XRHand} joint. + * + * @see https://immersive-web.github.io/webxr-hand-input/#xrjointspace-interface + */ interface XRJointSpace extends XRSpace { readonly jointName: XRHandJoint; } @@ -717,7 +764,13 @@ interface XRJointPose extends XRPose { declare abstract class XRJointPose implements XRJointPose {} -interface XRHand extends Map { +/** + * The XRHand interface is pair iterator (an ordered map) with the key being the hand + * joints ({@link XRHandJoint}) and the value being an {@link XRJointSpace}. + * + * @see https://immersive-web.github.io/webxr-hand-input/#xrhand-interface + */ +interface XRHand extends Map { readonly WRIST: number; readonly THUMB_METACARPAL: number; @@ -762,7 +815,7 @@ interface XRFrame { * The base class for XRWebGLLayer and other layer types introduced by future extensions. * ref: https://immersive-web.github.io/webxr/#xrlayer-interface */ -// tslint:disable-next-line no-empty-interface +// eslint-disable-next-line @typescript-eslint/no-empty-interface interface XRLayer extends EventTarget {} declare abstract class XRLayer implements XRLayer {} @@ -809,7 +862,7 @@ interface XRRenderState { readonly layers?: XRLayer[] | undefined; } -type XRLayerEventType = 'redraw'; +type XRLayerEventType = "redraw"; interface XRLayerEvent extends Event { readonly type: XRLayerEventType; @@ -825,13 +878,14 @@ interface XRCompositionLayer extends XRLayer { blendTextureSourceAlpha: boolean; chromaticAberrationCorrection?: boolean | undefined; readonly mipLevels: number; + quality: XRLayerQuality; readonly needsRedraw: boolean; destroy(): void; space: XRSpace; // Events - onredraw: (evt: XRCompositionLayerEventMap['redraw']) => any; + onredraw: (evt: XRCompositionLayerEventMap["redraw"]) => any; addEventListener( this: XRCompositionLayer, @@ -859,9 +913,11 @@ interface XRCompositionLayer extends XRLayer { declare abstract class XRCompositionLayer implements XRCompositionLayer {} -type XRTextureType = 'texture' | 'texture-array'; +type XRTextureType = "texture" | "texture-array"; + +type XRLayerLayout = "default" | "mono" | "stereo" | "stereo-left-right" | "stereo-top-bottom"; -type XRLayerLayout = 'default' | 'mono' | 'stereo' | 'stereo-left-right' | 'stereo-top-bottom'; +type XRLayerQuality = "default" | "text-optimized" | "graphics-optimized"; interface XRProjectionLayerInit { scaleFactor?: number | undefined; @@ -1020,7 +1076,7 @@ declare class XRMediaBinding { // WebGL extensions interface WebGLRenderingContextBase { - getExtension(extensionName: 'OCULUS_multiview'): OCULUS_multiview | null; + getExtension(extensionName: "OCULUS_multiview"): OCULUS_multiview | null; } declare enum XOVR_multiview2 { @@ -1030,22 +1086,6 @@ declare enum XOVR_multiview2 { FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633, } -interface OVR_multiview2 { - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: number; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: number; - readonly MAX_VIEWS_OVR: number; - readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: number; - - framebufferTextureMultiviewOVR( - target: GLenum, - attachment: GLenum, - texture: WebGLTexture, - level: number, - baseViewIndex: number, - numViews: number, - ): WebGLRenderbuffer; -} - declare abstract class OVR_multiview2 implements OVR_multiview2 {} // Oculus extensions @@ -1054,7 +1094,7 @@ interface XRSessionGrant { } interface XRSystemSessionGrantedEvent extends Event { - type: 'sessiongranted'; + type: "sessiongranted"; session: XRSessionGrant; } @@ -1084,3 +1124,45 @@ interface OCULUS_multiview extends OVR_multiview2 { } declare abstract class OCULUS_multiview implements OCULUS_multiview {} + +/** + * BEGIN: WebXR DOM Overlays Module + * https://immersive-web.github.io/dom-overlays/ + */ + +interface GlobalEventHandlersEventMap { + beforexrselect: XRSessionEvent; +} + +interface GlobalEventHandlers { + /** + * An XRSessionEvent of type beforexrselect is dispatched on the DOM overlay + * element before generating a WebXR selectstart input event if the -Z axis + * of the input source's targetRaySpace intersects the DOM overlay element + * at the time the input device's primary action is triggered. + */ + onbeforexrselect: ((this: GlobalEventHandlers, ev: XRSessionEvent) => any) | null; +} + +interface XRDOMOverlayInit { + root: Element; +} + +interface XRSessionInit { + domOverlay?: XRDOMOverlayInit | undefined; +} + +type XRDOMOverlayType = "screen" | "floating" | "head-locked"; + +interface XRDOMOverlayState { + type: XRDOMOverlayType; +} + +interface XRSession { + readonly domOverlayState?: XRDOMOverlayState | undefined; +} + +/** + * END: WebXR DOM Overlays Module + * https://immersive-web.github.io/dom-overlays/ + */ diff --git a/node_modules/@types/webxr/package.json b/node_modules/@types/webxr/package.json old mode 100755 new mode 100644 index a011ea3f..b4106323 --- a/node_modules/@types/webxr/package.json +++ b/node_modules/@types/webxr/package.json @@ -1,24 +1,29 @@ { "name": "@types/webxr", - "version": "0.4.0", + "version": "0.5.16", "description": "TypeScript definitions for webxr", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webxr", "license": "MIT", "contributors": [ { "name": "Rob Rohan", - "url": "https://github.com/robrohan", - "githubUsername": "robrohan" + "githubUsername": "robrohan", + "url": "https://github.com/robrohan" }, { "name": "Raanan Weber", - "url": "https://github.com/RaananW", - "githubUsername": "RaananW" + "githubUsername": "RaananW", + "url": "https://github.com/RaananW" }, { "name": "Sean T. McBeth", - "url": "https://github.com/capnmidnight", - "githubUsername": "capnmidnight" + "githubUsername": "capnmidnight", + "url": "https://github.com/capnmidnight" + }, + { + "name": "Timmy Kokke", + "githubUsername": "sorskoot", + "url": "https://github.com/sorskoot" } ], "main": "", @@ -30,6 +35,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "ef462a172f814285b672a6714277041d458fc94a7b8d9ff925aae19f9af98728", - "typeScriptVersion": "3.9" + "typesPublisherContentHash": "70b286cf9fa7c9905f533eacb64a69cd44f0947d09de118e6025247719800f3f", + "typeScriptVersion": "4.7" } \ No newline at end of file diff --git a/node_modules/@use-gesture/core/CHANGELOG.md b/node_modules/@use-gesture/core/CHANGELOG.md deleted file mode 100644 index 7a902f0e..00000000 --- a/node_modules/@use-gesture/core/CHANGELOG.md +++ /dev/null @@ -1,279 +0,0 @@ -# @use-gesture/core - -## 10.3.1 - -### Patch Changes - -- 6f6f4a5b4: fix(types): compatibility with @types/react >=18.2.66 - -## 10.3.0 - -### Minor Changes - -- 1ee9f42e3: Fix: touch support is reverted to only checking TouchEvent support #626 - -### Patch Changes - -- c19ff0b24: feat: modifierKey can be an array via @BJvdA - -## 10.2.27 - -### Patch Changes - -- 0dce2216c: detect lost pointer capture in PinchEngine -- 957aee8b5: fix: don't block events with similar timestamps #581 -- 51c6cfcf4: chore: upgrade to typescript 5.0 - -## 10.2.26 - -### Patch Changes - -- db0d934eb: fix: add a try catch when calculating the distance and angle as apparently some events might be undefined on Windows #551 -- 43e751a51: fix: calculate swipe from raw movement (\_movement) #592 - -## 10.2.25 - -### Patch Changes - -- 3701753ea: fix: set startTime inside start function - -## 10.2.24 - -### Patch Changes - -- 60aae2149: feat: Added option to configure keyboard displacement in the drag gesture - -## 10.2.23 - -### Patch Changes - -- 79684a05f: types: add package exports - -## 10.2.22 - -### Patch Changes - -- c6215e8ad: fix: properly resolve pointer.keys config - -## 10.2.21 - -### Patch Changes - -- 6f4c09b55: fix: rolls back wheel-based pinch movement to bounds (thanks [@Andarist](https://github.com/Andarist)!) -- 854f4dfc1: feat (pinch): - - - `pinchOnwheel: false` prevents pinching with wheel. - -## 10.2.20 - -### Patch Changes - -- de807fddc: fix: applying a new config to useGesture / Gesture shouldn't throw an error. - -## 10.2.19 - -### Patch Changes - -- c7cb407bd: ts: Typescript 4.8 introduced a new mapping definition for NonNullable which breaks the package types. - - ```ts - // Native NonNullable Utility Type - - // definition on 4.7 and lower - type NonNullable = T extends null | undefined ? never : T - - // definition from 4.8 - type NonNullable = T & {} - ``` - - This fix reverts the definition of NonNullable so that it works. - More information here: https://github.com/pmndrs/use-gesture/issues/501#issuecomment-1229486104 - -## 10.2.18 - -### Patch Changes - -- 115ee1f59: fix: don't let Enter key preventDefault on onClick when filterTaps is true. - -## 10.2.17 - -### Patch Changes - -- 48dc6a102: feat: add option to remove arrow keys listeners for the drag gesture. -- d73ee4e34: Always trigger wheel events on pinch - -## 10.2.16 - -### Patch Changes - -- a521a171f: types: remove React types dependency on core package - -## 10.2.15 - -### Patch Changes - -- be1703a6d: fix: reset \_preventScroll when setting up scroll prevention to avoid side effects - -## 10.2.14 - -### Patch Changes - -- e82f1c220: fix: improve detection for drag gesture, also fixes #494 - -## 10.2.13 - -### Patch Changes - -- 6896094b3: fix: preventScroll should resist to multiple fingers drag -- 15724eb5c: - Have `delta` increment on first keydown for drag - - Fix `config.bounds` type for drag gestures - - Add `eventOptions` option for each gesture - -## 10.2.12 - -### Patch Changes - -- 91651b202: Fix config types - -## 10.2.11 - -### Patch Changes - -- 670e6e2db: - fix: trigger `pointerDown` event when `triggerAllEvents` and `delay` options are set - - fix: disable scroll prevention when the event type is `'mouse'` - - feat: add `axisThreshold` property to set a threshold for axis calculation (can be set per device for the drag gesture) - - fix: axis are now calculated on pixel movement rather than on transformed movement -- 5979b1add: feat: add modifierKey for wheel option. Defaults to `'ctrlKey'`. - -## 10.2.10 - -### Patch Changes - -- f593dbe09: - fix: increase `PINCH_WHEEL_RATIO` to `100` to slow down zoom on wheel-based devices. - - fix: force drag to start no matter the threshold when delay is reached. - - fix: improve `preventScroll`. - -## 10.2.9 - -### Patch Changes - -- d86df73b9: feat: add `pointer.mouse` option to force mouse listeners instead of pointers when possible. - -## 10.2.8 - -### Patch Changes - -- 2c0fde118: fix: delta is now derived from the `offset` value _after_ it is clamped by bounds. - -## 10.2.7 - -### Patch Changes - -- 2d943428c: Fix a bug when a touch identifier is equal to `0` - -## 10.2.6 - -### Patch Changes - -- 916d178c6: fix: make sure the drag gesture is ended when `touchcancel` event is triggered. - -## 10.2.5 - -### Patch Changes - -- cd5533a4c: fix: change TouchEvent detection -- 548a90985: [Drag] feat: Adding a custom threshold to taps when filtering them (`tapThreshold`) -- c5067dce0: feat: add `overflow` state attribute telling when offset is overflowing bounds. - [Wheel] fix: only update `offset` when it stays within bounds. -- 4eaabaf1a: fix: add `lostpointercapture` listener for cases when the `pointerup` event is missed. - -## 10.2.4 - -### Patch Changes - -- ae631004a: fix: change isNaN to Number.isNaN in dev mode - -## 10.2.3 - -### Patch Changes - -- 8302c5bfd: fix: prevent deprecated resolvers from applying in dev mode - -## 10.2.2 - -### Patch Changes - -- cffaba5ae: fix: logic error in intent detection - -## 10.2.1 - -### Patch Changes - -- 2f0cd466b: fix: release pointerId when PointerEvent is canceled. Should fix [#376](https://github.com/pmndrs/use-gesture/issues/376). - -## 10.2.0 - -### Minor Changes - -- b4e6181e7: Fix: should fix `transform` function doesn't have [0,0] origin. This required some pretty drastic internal changes hence the minor version bump. - -## 10.1.6 - -### Patch Changes - -- 9883b1c78: types: fix ReactDOMAttributes type - -## 10.1.5 - -### Patch Changes - -- 55505c071: fix: `event.buttons` condition was preventing `pointer.touch` from behaving properly. - -## 10.1.4 - -### Patch Changes - -- 090ba6b62: feat: allow pointer.buttons to accept an array or -1 - -## 10.1.3 - -### Patch Changes - -- a9f99ce3c: feat: warn in dev mode if transform function return invalid values - -## 10.1.2 - -### Patch Changes - -- ed0073543: fix: add threshold to config resolver - -## 10.1.1 - -### Patch Changes - -- 8a0bfacb0: fix: Remove the console output statement. -- 8a0bfacb0: fix: Remove the console output statement. - -## 10.1.0 - -### Minor Changes - -- b67543ff7: Feat (drag): add the `pointer.buttons` in order to customize which [buttons combination](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons) will trigger the drag gesture. - -## 10.0.3 - -### Patch Changes - -- de01d7dbb: Sets state `canceled` / `_active` attributes synchronously with `cancel()`. - -## 10.0.2 - -### Patch Changes - -- a219d3f69: fix: make sure delay still set first to true when moving so that onDragStart can fire. - -## 10.0.1 - -### Patch Changes - -- c00c7b1: fix: add movement to offset when using wheel-based browsers on pinch diff --git a/node_modules/@use-gesture/core/LICENSE b/node_modules/@use-gesture/core/LICENSE deleted file mode 100644 index 6a97d2ca..00000000 --- a/node_modules/@use-gesture/core/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present Paul Henschel - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.d.ts b/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.d.ts deleted file mode 100644 index 713bf779..00000000 --- a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "../../dist/declarations/src/actions"; -//# sourceMappingURL=use-gesture-core-actions.cjs.d.ts.map diff --git a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.dev.js b/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.dev.js deleted file mode 100644 index 1deddfb2..00000000 --- a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.dev.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions_dist_useGestureCoreActions = require('../../dist/actions-6579bdef.cjs.dev.js'); -require('../../dist/maths-267f0992.cjs.dev.js'); - - - -exports.ConfigResolverMap = actions_dist_useGestureCoreActions.ConfigResolverMap; -exports.EngineMap = actions_dist_useGestureCoreActions.EngineMap; -exports.dragAction = actions_dist_useGestureCoreActions.dragAction; -exports.hoverAction = actions_dist_useGestureCoreActions.hoverAction; -exports.moveAction = actions_dist_useGestureCoreActions.moveAction; -exports.pinchAction = actions_dist_useGestureCoreActions.pinchAction; -exports.registerAction = actions_dist_useGestureCoreActions.registerAction; -exports.scrollAction = actions_dist_useGestureCoreActions.scrollAction; -exports.wheelAction = actions_dist_useGestureCoreActions.wheelAction; diff --git a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.js b/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.js deleted file mode 100644 index 286b8132..00000000 --- a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./use-gesture-core-actions.cjs.prod.js"); -} else { - module.exports = require("./use-gesture-core-actions.cjs.dev.js"); -} diff --git a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.prod.js b/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.prod.js deleted file mode 100644 index 71ebe851..00000000 --- a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.cjs.prod.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions_dist_useGestureCoreActions = require('../../dist/actions-89e642c9.cjs.prod.js'); -require('../../dist/maths-83bc6f64.cjs.prod.js'); - - - -exports.ConfigResolverMap = actions_dist_useGestureCoreActions.ConfigResolverMap; -exports.EngineMap = actions_dist_useGestureCoreActions.EngineMap; -exports.dragAction = actions_dist_useGestureCoreActions.dragAction; -exports.hoverAction = actions_dist_useGestureCoreActions.hoverAction; -exports.moveAction = actions_dist_useGestureCoreActions.moveAction; -exports.pinchAction = actions_dist_useGestureCoreActions.pinchAction; -exports.registerAction = actions_dist_useGestureCoreActions.registerAction; -exports.scrollAction = actions_dist_useGestureCoreActions.scrollAction; -exports.wheelAction = actions_dist_useGestureCoreActions.wheelAction; diff --git a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.esm.js b/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.esm.js deleted file mode 100644 index d7e1a199..00000000 --- a/node_modules/@use-gesture/core/actions/dist/use-gesture-core-actions.esm.js +++ /dev/null @@ -1,2 +0,0 @@ -export { C as ConfigResolverMap, E as EngineMap, e as dragAction, h as hoverAction, m as moveAction, f as pinchAction, r as registerAction, s as scrollAction, w as wheelAction } from '../../dist/actions-fe213e88.esm.js'; -import '../../dist/maths-0ab39ae9.esm.js'; diff --git a/node_modules/@use-gesture/core/actions/package.json b/node_modules/@use-gesture/core/actions/package.json deleted file mode 100644 index d9d1d740..00000000 --- a/node_modules/@use-gesture/core/actions/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/use-gesture-core-actions.cjs.js", - "module": "dist/use-gesture-core-actions.esm.js" -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/Controller.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/Controller.d.ts deleted file mode 100644 index 393766bd..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/Controller.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { EventStore } from "./EventStore.js"; -import { TimeoutStore } from "./TimeoutStore.js"; -import { GestureKey, InternalConfig, InternalHandlers, NativeHandlers, State, UserGestureConfig } from "./types.js"; -export declare class Controller { - /** - * The list of gestures handled by the Controller. - */ - gestures: Set; - /** - * The event store that keeps track of the config.target listeners. - */ - private _targetEventStore; - /** - * Object that keeps track of all gesture event listeners. - */ - gestureEventStores: { - [key in GestureKey]?: EventStore; - }; - gestureTimeoutStores: { - [key in GestureKey]?: TimeoutStore; - }; - handlers: InternalHandlers; - private nativeHandlers?; - config: InternalConfig; - pointerIds: Set; - touchIds: Set; - state: State; - constructor(handlers: InternalHandlers); - /** - * Sets pointer or touch ids based on the event. - * @param event - */ - setEventIds(event: TouchEvent | PointerEvent): Set | undefined; - /** - * Attaches handlers to the controller. - * @param handlers - * @param nativeHandlers - */ - applyHandlers(handlers: InternalHandlers, nativeHandlers?: NativeHandlers): void; - /** - * Compute and attaches a config to the controller. - * @param config - * @param gestureKey - */ - applyConfig(config: UserGestureConfig, gestureKey?: GestureKey): void; - /** - * Cleans all side effects (listeners, timeouts). When the gesture is - * destroyed (in React, when the component is unmounted.) - */ - clean(): void; - /** - * Executes side effects (attaching listeners to a `config.target`). Ran on - * each render. - */ - effect(): () => void; - /** - * The bind function that can be returned by the gesture handler (a hook in - * React for example.) - * @param args - */ - bind(...args: any[]): any; -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/EventStore.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/EventStore.d.ts deleted file mode 100644 index b300c3bc..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/EventStore.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Controller } from "./Controller.js"; -import { GestureKey } from "./types.js"; -export declare class EventStore { - private _listeners; - private _ctrl; - private _gestureKey?; - constructor(ctrl: Controller, gestureKey?: GestureKey); - add(element: EventTarget, device: string, action: string, handler: (event: any) => void, options?: AddEventListenerOptions): () => void; - clean(): void; -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/TimeoutStore.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/TimeoutStore.d.ts deleted file mode 100644 index 0e0b8c0d..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/TimeoutStore.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare class TimeoutStore { - private _timeouts; - add any>(key: string, callback: FunctionType, ms?: number, ...args: Parameters): void; - remove(key: string): void; - clean(): void; -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/actions.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/actions.d.ts deleted file mode 100644 index 59b45376..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/actions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { GestureKey, EngineClass, Action } from "./types.js"; -import { ResolverMap } from "./config/resolver.js"; -export declare const EngineMap: Map>; -export declare const ConfigResolverMap: Map; -export declare function registerAction(action: Action): void; -export declare const dragAction: Action; -export declare const hoverAction: Action; -export declare const moveAction: Action; -export declare const pinchAction: Action; -export declare const scrollAction: Action; -export declare const wheelAction: Action; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/config/resolver.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/config/resolver.d.ts deleted file mode 100644 index 339f1e17..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/config/resolver.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { GestureKey, InternalConfig, UserGestureConfig } from "../types.js"; -export type Resolver = (x: any, key: string, obj: any) => any; -export type ResolverMap = { - [k: string]: Resolver | ResolverMap | boolean; -}; -export declare function resolveWith(config: Partial | undefined, resolvers: ResolverMap): V; -export declare function parse(newConfig: UserGestureConfig, gestureKey?: GestureKey, _config?: any): InternalConfig; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/engines/Engine.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/engines/Engine.d.ts deleted file mode 100644 index ddb44b5b..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/engines/Engine.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { Controller } from "../Controller.js"; -import { GestureKey, IngKey, State, Vector2 } from "../types.js"; -import { NonUndefined } from "../types.js"; -export interface Engine { - /** - * Function that some gestures can use to add initilization - * properties to the state when it is created. - */ - init?(): void; - /** - * Setup function that some gestures can use to set additional properties of - * the state when the gesture starts. - */ - setup?(): void; - /** - * Function used by some gestures to determine the intentionality of a - * a movement depending on thresholds. The intent function can change the - * `state._active` or `state._blocked` flags if the gesture isn't intentional. - * @param event - */ - axisIntent?(event?: UIEvent): void; - restrictToAxis?(movement: Vector2): void; -} -export declare abstract class Engine { - /** - * The Controller handling state. - */ - ctrl: Controller; - /** - * The gesture key ('drag' | 'pinch' | 'wheel' | 'scroll' | 'move' | 'hover') - */ - readonly key: Key; - /** - * The key representing the active state of the gesture in the shared state. - * ('dragging' | 'pinching' | 'wheeling' | 'scrolling' | 'moving' | 'hovering') - */ - abstract readonly ingKey: IngKey; - /** - * The arguments passed to the `bind` function. - */ - /** - * State prop that aliases state values (`xy` or `da`). - */ - abstract readonly aliasKey: string; - args: any[]; - constructor(ctrl: Controller, args: any[], key: Key); - /** - * Function implemented by gestures that compute the offset from the state - * movement. - */ - abstract computeOffset(): void; - /** - * Function implemented by the gestures that compute the movement from the - * corrected offset (after bounds and potential rubberbanding). - */ - abstract computeMovement(): void; - /** - * Executes the bind function so that listeners are properly set by the - * Controller. - * @param bindFunction - */ - abstract bind(bindFunction: (device: string, action: string, handler: (event: any) => void, options?: AddEventListenerOptions) => void): void; - /** - * Shortcut to the gesture state read from the Controller. - */ - get state(): NonNullable; - set state(state: NonNullable); - /** - * Shortcut to the shared state read from the Controller - */ - get shared(): import("../types.js").SharedGestureState; - /** - * Shortcut to the gesture event store read from the Controller. - */ - get eventStore(): NonNullable<{ - drag?: import("../EventStore.js").EventStore | undefined; - wheel?: import("../EventStore.js").EventStore | undefined; - scroll?: import("../EventStore.js").EventStore | undefined; - move?: import("../EventStore.js").EventStore | undefined; - hover?: import("../EventStore.js").EventStore | undefined; - pinch?: import("../EventStore.js").EventStore | undefined; - }[Key]>; - /** - * Shortcut to the gesture timeout store read from the Controller. - */ - get timeoutStore(): NonNullable<{ - drag?: import("../TimeoutStore.js").TimeoutStore | undefined; - wheel?: import("../TimeoutStore.js").TimeoutStore | undefined; - scroll?: import("../TimeoutStore.js").TimeoutStore | undefined; - move?: import("../TimeoutStore.js").TimeoutStore | undefined; - hover?: import("../TimeoutStore.js").TimeoutStore | undefined; - pinch?: import("../TimeoutStore.js").TimeoutStore | undefined; - }[Key]>; - /** - * Shortcut to the gesture config read from the Controller. - */ - get config(): NonNullable; - /** - * Shortcut to the shared config read from the Controller. - */ - get sharedConfig(): import("../types.js").InternalGenericOptions; - /** - * Shortcut to the gesture handler read from the Controller. - */ - get handler(): NonNullable; - reset(): void; - /** - * Function ran at the start of the gesture. - * @param event - */ - start(event: NonUndefined['event']): void; - /** - * Assign raw values to `state._values` and transformed values to - * `state.values`. - * @param values - */ - computeValues(values: Vector2): void; - /** - * Assign `state._values` to `state._initial` and transformed `state.values` to - * `state.initial`. - * @param values - */ - computeInitial(): void; - /** - * Computes all sorts of state attributes, including kinematics. - * @param event - */ - compute(event?: NonUndefined['event']): void; - /** - * Fires the gesture handler. - */ - emit(): void; - /** - * Cleans the gesture timeouts and event listeners. - */ - clean(): void; -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/index.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/index.d.ts deleted file mode 100644 index cf57705c..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Controller } from "./Controller.js"; -export { parseMergedHandlers } from "./parser.js"; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/parser.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/parser.d.ts deleted file mode 100644 index 1bd0f71e..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/parser.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { GestureHandlers, UserGestureConfig } from "./types.js"; -export declare function parseMergedHandlers(mergedHandlers: GestureHandlers, mergedConfig: UserGestureConfig): { - handlers: {}; - config: UserGestureConfig; - nativeHandlers: any; -}; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types.d.ts deleted file mode 100644 index 2f88e301..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types/index.js"; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/action.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/action.d.ts deleted file mode 100644 index b3923fa1..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/action.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { ResolverMap } from "../config/resolver.js"; -import type { Controller } from "../Controller.js"; -import type { Engine } from "../engines/Engine.js"; -import { GestureKey } from "./config.js"; -export type EngineClass = { - new (controller: Controller, args: any[], key: Key): Engine; -}; -export type Action = { - key: GestureKey; - engine: EngineClass; - resolver: ResolverMap; -}; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/config.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/config.d.ts deleted file mode 100644 index 6ddf67f4..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/config.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { State } from "./state.js"; -import { Vector2, Target, PointerType, NonUndefined } from "./utils.js"; -export type GestureKey = Exclude; -export type CoordinatesKey = Exclude; -export type GenericOptions = { - /** - * Lets you specify a dom node or ref you want to attach the gesture to. - */ - target?: Target; - /** - * Lets you specify which window element the gesture should bind events to - * (only relevant for the drag gesture). - */ - window?: EventTarget; - /** - * Lets you customize if you want events to be passive or captured. - */ - eventOptions?: AddEventListenerOptions; - /** - * When set to false none of the handlers will be fired. - */ - enabled?: boolean; - /** - * A function that you can use to transform movement and offset values. Useful - * to map your screen coordinates to custom space coordinates such as a - * canvas. - */ - transform?: (v: Vector2) => Vector2; -}; -export type GestureOptions = GenericOptions & { - /** - * Whether the gesture is enabled. - */ - enabled?: boolean; - /** - * Lets you customize if you want events to be passive or captured. - */ - eventOptions?: AddEventListenerOptions; - /** - * The position `offset` will start from. - */ - from?: Vector2 | ((state: NonUndefined) => Vector2); - /** - * The handler will fire only when the gesture displacement is greater than - * the threshold. - */ - threshold?: number | Vector2; - /** - * The handler will preventDefault all events when `true`. - */ - preventDefault?: boolean; - /** - * Forces the handler to fire even for non intentional displacement (ignores - * the threshold). In that case, the intentional attribute from state will - * remain false until the threshold is reached. - */ - triggerAllEvents?: boolean; - /** - * The elasticity coefficient of the gesture when going out of bounds. When - * set to true, the elasticiy coefficient will be defaulted to 0.15 - */ - rubberband?: boolean | number | Vector2; - /** - * A function that you can use to transform movement and offset values. Useful - * to map your screen coordinates to custom space coordinates such as a - * canvas. - */ - transform?: (v: Vector2) => Vector2; -}; -export type Bounds = { - top?: number; - bottom?: number; - left?: number; - right?: number; -}; -export type CoordinatesConfig = GestureOptions & { - /** - * The handler will only trigger if a movement is detected on the specified - * axis. - */ - axis?: 'x' | 'y' | 'lock'; - /** - * Limits the gesture `offset` to the specified bounds. - */ - bounds?: Bounds | ((state: State[Key]) => Bounds); - /** - * Determines the number of pixels in one direction needed for axises to be - * calculated. - */ - axisThreshold?: number; -}; -export type PinchBounds = { - min?: number; - max?: number; -}; -export type ModifierKey = 'ctrlKey' | 'altKey' | 'metaKey' | null; -export type PinchConfig = GestureOptions<'pinch'> & { - pointer?: { - /** - * If true, pinch will use touch events on touch-enabled devices. - */ - touch?: boolean; - }; - /** - * Limits the scale `offset` to the specified bounds. - */ - scaleBounds?: PinchBounds | ((state: State['pinch']) => PinchBounds); - /** - * Limits the angle `offset` to the specified bounds. - */ - angleBounds?: PinchBounds | ((state: State['pinch']) => PinchBounds); - /** - * Scales OR rotates when set to 'lock'. - */ - axis?: 'lock' | undefined; - /** - * Key that triggers scale when using the wheel. Defaults to `'ctrlKey'`. - */ - modifierKey?: ModifierKey | NonNullable[]; - /** - * Whether wheel should trigger a pinch at all. - */ - pinchOnWheel?: boolean; -}; -export type DragBounds = Bounds | HTMLElement | { - current: HTMLElement | null; -}; -type MoveAndHoverMouseOnly = { - /** - * If false, onMove or onHover handlers will also fire on touch devices. - */ - mouseOnly?: boolean; -}; -export type MoveConfig = CoordinatesConfig<'move'> & MoveAndHoverMouseOnly; -export type HoverConfig = MoveAndHoverMouseOnly; -export type DragConfig = Omit, 'axisThreshold' | 'bounds'> & { - /** - * If true, the component won't trigger your drag logic if the user just clicked on the component. - */ - filterTaps?: boolean; - /** - * The maximum total displacement a tap can have - */ - tapsThreshold?: number; - /** - * Set this option to true when using with @react-three/fiber objects. - */ - /** - * Limits the gesture `offset` to the specified bounds. Can be a ref or a dom - * node. - */ - bounds?: DragBounds | ((state: State['drag']) => DragBounds); - pointer?: { - /** - * The buttons combination that would trigger the drag. Use `-1` to allow - * for any button combination to start the drag. - */ - buttons?: number | number[]; - /** - * If true, drag will use touch events on touch-enabled devices. - */ - touch?: boolean; - /** - * If true, drag will use touch events on touch-enabled devices, and use - * mouse events on non touch devices. - */ - mouse?: boolean; - /** - * If false, will disable KeyboardEvents that would otherwise trigger the - * drag gesture when the element is focused. Defaults to true. - */ - keys?: boolean; - /** - * Doesn't use setPointerCapture when false and delegate drag handling to - * window - */ - capture?: boolean; - /** - * Will perform a pointer lock when drag starts, and exit pointer lock when - * drag ends, - */ - lock?: boolean; - }; - swipe?: { - /** - * The minimum velocity per axis (in pixels / ms) the drag gesture needs to - * reach before the pointer is released. - */ - velocity?: number | Vector2; - /** - * The minimum distance per axis (in pixels) the drag gesture needs to - * travel to trigger a swipe. Defaults to 50. - */ - distance?: number | Vector2; - /** - * The maximum duration in milliseconds that a swipe is detected. Defaults - * to 250. - */ - duration?: number; - }; - /** - * If set, the drag will be triggered after the duration of the delay (in ms). - * When set to true, delay is defaulted to 250ms. - */ - preventScroll?: boolean | number; - /** - * If set, the drag will allow scrolling in the direction of this axis until - * the preventScroll duration has elapsed. Defaults to only 'y'. - */ - preventScrollAxis?: 'x' | 'y' | 'xy'; - /** - * If set, the handler will be delayed for the duration of the delay (in ms) - * — or if the user starts moving. When set to true, delay is defaulted - * to 180ms. - */ - delay?: boolean | number; - /** - * Key-number record that determines for each device (`'mouse'`, `'touch'`, - * `'pen'`) the number of pixels of drag in one direction needed for axises to - * be calculated. - */ - axisThreshold?: Partial>; - /** - * The distance (in pixels) emulated by arrow keys. - */ - keyboardDisplacement?: number; -}; -export type UserDragConfig = GenericOptions & DragConfig; -export type UserPinchConfig = GenericOptions & PinchConfig; -export type UserWheelConfig = GenericOptions & CoordinatesConfig<'wheel'>; -export type UserScrollConfig = GenericOptions & CoordinatesConfig<'scroll'>; -export type UserMoveConfig = GenericOptions & MoveConfig; -export type UserHoverConfig = GenericOptions & HoverConfig; -export type UserGestureConfig = GenericOptions & { - drag?: DragConfig; - wheel?: CoordinatesConfig<'wheel'>; - scroll?: CoordinatesConfig<'scroll'>; - move?: MoveConfig; - pinch?: PinchConfig; - hover?: { - enabled?: boolean; - } & HoverConfig; -}; -export {}; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/handlers.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/handlers.d.ts deleted file mode 100644 index d0837afc..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/handlers.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { FullGestureState, State, EventTypes } from "./state.js"; -import { GestureKey } from "./config.js"; -import { DOMHandlers, EventHandler } from "./utils.js"; -export type Handler = (state: Omit, 'event'> & { - event: EventType; -}) => any | void; -type check = undefined extends T[Key] ? EventTypes[Key] : T[Key]; -export type UserHandlers = { - onDrag: Handler<'drag', check>; - onDragStart: Handler<'drag', check>; - onDragEnd: Handler<'drag', check>; - onPinch: Handler<'pinch', check>; - onPinchStart: Handler<'pinch', check>; - onPinchEnd: Handler<'pinch', check>; - onWheel: Handler<'wheel', check>; - onWheelStart: Handler<'wheel', check>; - onWheelEnd: Handler<'wheel', check>; - onMove: Handler<'move', check>; - onMoveStart: Handler<'move', check>; - onMoveEnd: Handler<'move', check>; - onScroll: Handler<'scroll', check>; - onScrollStart: Handler<'scroll', check>; - onScrollEnd: Handler<'scroll', check>; - onHover: Handler<'hover', check>; -}; -type NativeHandlersKeys = keyof Omit; -type GetEventType = DOMHandlers[Key] extends EventHandler | undefined ? EventType : UIEvent; -export type NativeHandlers = { - [key in NativeHandlersKeys]?: (state: State['shared'] & { - event: undefined extends T[key] ? GetEventType : T[key]; - args: any; - }, ...args: any) => void; -}; -export type AnyHandlerEventTypes = Partial<{ - drag: any; - wheel: any; - scroll: any; - move: any; - pinch: any; - hover: any; -} & { - [key in NativeHandlersKeys]: any; -}>; -export type GestureHandlers = Partial & UserHandlers>; -export type InternalHandlers = { - [Key in GestureKey]?: Handler; -}; -export {}; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/index.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/index.d.ts deleted file mode 100644 index 3186036c..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./config.js"; -export * from "./internalConfig.js"; -export * from "./state.js"; -export * from "./utils.js"; -export * from "./handlers.js"; -export * from "./action.js"; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/internalConfig.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/internalConfig.d.ts deleted file mode 100644 index c32fa6d9..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/internalConfig.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { GestureKey, CoordinatesKey, ModifierKey } from "./config.js"; -import { State } from "./state.js"; -import { PointerType, Vector2 } from "./utils.js"; -export type InternalGenericOptions = { - target?: () => EventTarget; - eventOptions: AddEventListenerOptions; - window: EventTarget; - enabled: boolean; - transform?: (v: Vector2) => Vector2; -}; -export type InternalGestureOptions = { - enabled: boolean; - eventOptions: AddEventListenerOptions; - from: Vector2 | ((state: State[Key]) => Vector2); - threshold: Vector2; - preventDefault: boolean; - triggerAllEvents: boolean; - rubberband: Vector2; - bounds: [Vector2, Vector2] | ((state: State[Key]) => [Vector2, Vector2]); - hasCustomTransform: boolean; - transform: (v: Vector2) => Vector2; -}; -export type InternalCoordinatesOptions = InternalGestureOptions & { - axis?: 'x' | 'y'; - lockDirection: boolean; - axisThreshold: number; -}; -export type InternalDragOptions = Omit, 'axisThreshold'> & { - filterTaps: boolean; - tapsThreshold: number; - pointerButtons: number | number[]; - pointerCapture: boolean; - preventScrollDelay?: number; - preventScrollAxis?: 'x' | 'y' | 'xy'; - pointerLock: boolean; - keys: boolean; - device: 'pointer' | 'touch' | 'mouse'; - swipe: { - velocity: Vector2; - distance: Vector2; - duration: number; - }; - delay: number; - axisThreshold: Record; - keyboardDisplacement: number; -}; -export type InternalPinchOptions = InternalGestureOptions<'pinch'> & { - /** - * When device is undefined, we'll be using wheel to zoom. - */ - device: 'gesture' | 'pointer' | 'touch' | undefined; - lockDirection: boolean; - modifierKey: ModifierKey | NonNullable[]; - pinchOnWheel: boolean; -}; -type MoveAndHoverMouseOnly = { - mouseOnly: boolean; -}; -export type InternalConfig = { - shared: InternalGenericOptions; - drag?: InternalDragOptions; - wheel?: InternalCoordinatesOptions<'wheel'>; - scroll?: InternalCoordinatesOptions<'scroll'>; - move?: InternalCoordinatesOptions<'move'> & MoveAndHoverMouseOnly; - hover?: InternalCoordinatesOptions<'hover'> & MoveAndHoverMouseOnly; - pinch?: InternalPinchOptions; -}; -export {}; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/state.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/state.d.ts deleted file mode 100644 index 15af0879..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/state.d.ts +++ /dev/null @@ -1,272 +0,0 @@ -import { GestureKey } from "./config.js"; -import { NonUndefined, Vector2, WebKitGestureEvent } from "./utils.js"; -export type IngKey = 'dragging' | 'wheeling' | 'moving' | 'hovering' | 'scrolling' | 'pinching'; -export type SharedGestureState = { - /** - * True if the element is being dragged. - */ - dragging?: boolean; - /** - * True if the element is being wheeled. - */ - wheeling?: boolean; - /** - * True if the element is being moved. - */ - moving?: boolean; - /** - * True if the element is being hovered. - */ - hovering?: boolean; - /** - * True if the element is being scrolled. - */ - scrolling?: boolean; - /** - * True if the element is being pinched. - */ - pinching?: boolean; - /** - * Number of fingers touching the screen. - */ - touches: number; - /** - * True when the main mouse button or touch is pressed. - */ - pressed: boolean; - /** - * Alias for pressed. - */ - down: boolean; - /** - * True if the document is in lock mode. - */ - locked: boolean; - /** - * Indicates which buttons are pressed (https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons). - */ - buttons: number; - /** - * True when the Shift key is pressed. - */ - shiftKey: boolean; - /** - * True when the Alt key is pressed. - */ - altKey: boolean; - /** - * True when the Meta key is pressed. - */ - metaKey: boolean; - /** - * True when the Control key is pressed. - */ - ctrlKey: boolean; -}; -export type CommonGestureState = { - _active: boolean; - _blocked: boolean; - _force: boolean; - _step: [false | number, false | number]; - _movementBound: [false | number, false | number]; - _values: Vector2; - _initial: Vector2; - _movement: Vector2; - _distance: Vector2; - _direction: Vector2; - _delta: Vector2; - _bounds: [Vector2, Vector2]; - /** - * The event triggering the gesture. - */ - event: UIEvent; - /** - * The event target. - */ - target: EventTarget; - /** - * The event current target. - */ - currentTarget: EventTarget; - /** - * True when the gesture is intentional (passed the threshold). - */ - intentional: boolean; - /** - * Cumulative distance of the gesture. Deltas are summed with their absolute - * values. - */ - distance: Vector2; - /** - * Displacement of the current gesture. - */ - movement: Vector2; - /** - * Difference between the current movement and the previous movement. - */ - delta: Vector2; - /** - * Cumulative displacements of all gestures (sum of all movements triggered - * by the handler) - */ - offset: Vector2; - /** - * Offset when the gesture started. - */ - lastOffset: Vector2; - /** - * Velocity vector. - */ - velocity: Vector2; - /** - * Current raw values of the gesture. Can be coordinates or distance / angle - * depending on the gesture. - */ - values: Vector2; - /** - * Raw values when the gesture started. - */ - initial: Vector2; - /** - * Direction per axis. `-1` when going down, `1` when going up, `0` when still. - */ - direction: Vector2; - /** - * Bound overflow per axis. `-1` when overflowing bounds to the left/top, `1` when overflowing bounds to the right/bottom. - */ - overflow: Vector2; - /** - * True when it's the first event of the active gesture. - */ - first: boolean; - /** - * True when it's the last event of the active gesture. - */ - last: boolean; - /** - * True when the gesture is active. - */ - active: boolean; - /** - * The timestamp (ms) of when the gesture started. - */ - startTime: number; - /** - * The timestamp (ms) of the current event. - */ - timeStamp: number; - /** - * Elapsed time (ms) of the current gesture. - */ - elapsedTime: number; - /** - * Time delta (ms) with the previous event. - */ - timeDelta: number; - /** - * Event type. - */ - type: string; - /** - * Value returned by your handler on its previous run. - */ - memo?: any; - /** - * The arguments passed to the bind function (only relevant in React when - * using `
`) - */ - args?: any; -}; -export type CoordinatesState = CommonGestureState & { - /** - * The initial axis (x or y) of the gesture. - */ - axis: 'x' | 'y' | undefined; - /** - * Pointer coordinates (alias to values) - */ - xy: Vector2; -}; -export type DragState = CoordinatesState & { - _pointerId?: number; - _pointerActive: boolean; - _keyboardActive: boolean; - _preventScroll: boolean; - _delayed: boolean; - /** - * True when the drag gesture has been canceled by the `cancel` function. - */ - canceled: boolean; - /** - * Function that can be called to cancel the drag. - */ - cancel(): void; - /** - * True if the drag gesture is recognized as a tap (ie when the displacement - * is lower than 3px per axis). - */ - tap: boolean; - /** - * [swipeX, swipeY] is [0, 0] if no swipe detected, -1 or 1 otherwise. - */ - swipe: Vector2; -}; -export interface PinchState extends CommonGestureState { - _pointerEvents: Map; - _touchIds: [] | [number, number]; - /** - * Distance and angle raw values (alias to values). - */ - da: Vector2; - /** - * The initial axis (scale or angle) of the gesture. - */ - axis: 'scale' | 'angle' | undefined; - /** - * Coordinates of the center of touch events, or the cursor when using wheel - * to pinch. - */ - origin: Vector2; - /** - * The number of full rotation the current gesture has performed. - */ - turns: number; - /** - * True when the pinch gesture has been canceled by the `cancel` function. - */ - canceled: boolean; - /** - * Function that can be called to cancel the pinch. - */ - cancel(): void; -} -export type EventTypes = { - drag: PointerEvent | TouchEvent | MouseEvent | KeyboardEvent; - wheel: WheelEvent; - scroll: UIEvent; - move: PointerEvent; - hover: PointerEvent; - pinch: PointerEvent | TouchEvent | WheelEvent | WebKitGestureEvent; -}; -export interface State { - shared: SharedGestureState; - drag?: DragState & { - event: EventTypes['drag']; - }; - wheel?: CoordinatesState & { - event: EventTypes['wheel']; - }; - scroll?: CoordinatesState & { - event: EventTypes['scroll']; - }; - move?: CoordinatesState & { - event: EventTypes['move']; - }; - hover?: CoordinatesState & { - event: EventTypes['hover']; - }; - pinch?: PinchState & { - event: EventTypes['pinch']; - }; -} -export type FullGestureState = SharedGestureState & NonUndefined; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/types/utils.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/types/utils.d.ts deleted file mode 100644 index 865688ba..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/types/utils.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -export type Vector2 = [number, number]; -export type WebKitGestureEvent = PointerEvent & { - scale: number; - rotation: number; -}; -export type Target = EventTarget | { - current: EventTarget | null; -}; -export type PointerType = 'mouse' | 'touch' | 'pen'; -export type NonUndefined = T extends undefined ? never : T; -export type EventHandler = (event: E) => void; -export interface DOMHandlers { - onCopy?: EventHandler; - onCopyCapture?: EventHandler; - onCut?: EventHandler; - onCutCapture?: EventHandler; - onPaste?: EventHandler; - onPasteCapture?: EventHandler; - onCompositionEnd?: EventHandler; - onCompositionEndCapture?: EventHandler; - onCompositionStart?: EventHandler; - onCompositionStartCapture?: EventHandler; - onCompositionUpdate?: EventHandler; - onCompositionUpdateCapture?: EventHandler; - onFocus?: EventHandler; - onFocusCapture?: EventHandler; - onBlur?: EventHandler; - onBlurCapture?: EventHandler; - onChange?: EventHandler; - onChangeCapture?: EventHandler; - onBeforeInput?: EventHandler; - onBeforeInputCapture?: EventHandler; - onInput?: EventHandler; - onInputCapture?: EventHandler; - onReset?: EventHandler; - onResetCapture?: EventHandler; - onSubmit?: EventHandler; - onSubmitCapture?: EventHandler; - onInvalid?: EventHandler; - onInvalidCapture?: EventHandler; - onLoad?: EventHandler; - onLoadCapture?: EventHandler; - onError?: EventHandler; - onErrorCapture?: EventHandler; - onKeyDown?: EventHandler; - onKeyDownCapture?: EventHandler; - onKeyUp?: EventHandler; - onKeyUpCapture?: EventHandler; - onAbort?: EventHandler; - onAbortCapture?: EventHandler; - onCanPlay?: EventHandler; - onCanPlayCapture?: EventHandler; - onCanPlayThrough?: EventHandler; - onCanPlayThroughCapture?: EventHandler; - onDurationChange?: EventHandler; - onDurationChangeCapture?: EventHandler; - onEmptied?: EventHandler; - onEmptiedCapture?: EventHandler; - onEncrypted?: EventHandler; - onEncryptedCapture?: EventHandler; - onEnded?: EventHandler; - onEndedCapture?: EventHandler; - onLoadedData?: EventHandler; - onLoadedDataCapture?: EventHandler; - onLoadedMetadata?: EventHandler; - onLoadedMetadataCapture?: EventHandler; - onLoadStart?: EventHandler; - onLoadStartCapture?: EventHandler; - onPause?: EventHandler; - onPauseCapture?: EventHandler; - onPlay?: EventHandler; - onPlayCapture?: EventHandler; - onPlaying?: EventHandler; - onPlayingCapture?: EventHandler; - onProgress?: EventHandler; - onProgressCapture?: EventHandler; - onRateChange?: EventHandler; - onRateChangeCapture?: EventHandler; - onSeeked?: EventHandler; - onSeekedCapture?: EventHandler; - onSeeking?: EventHandler; - onSeekingCapture?: EventHandler; - onStalled?: EventHandler; - onStalledCapture?: EventHandler; - onSuspend?: EventHandler; - onSuspendCapture?: EventHandler; - onTimeUpdate?: EventHandler; - onTimeUpdateCapture?: EventHandler; - onVolumeChange?: EventHandler; - onVolumeChangeCapture?: EventHandler; - onWaiting?: EventHandler; - onWaitingCapture?: EventHandler; - onAuxClick?: EventHandler; - onAuxClickCapture?: EventHandler; - onClick?: EventHandler; - onClickCapture?: EventHandler; - onContextMenu?: EventHandler; - onContextMenuCapture?: EventHandler; - onDoubleClick?: EventHandler; - onDoubleClickCapture?: EventHandler; - onDrag?: EventHandler; - onDragCapture?: EventHandler; - onDragEnd?: EventHandler; - onDragEndCapture?: EventHandler; - onDragEnter?: EventHandler; - onDragEnterCapture?: EventHandler; - onDragExit?: EventHandler; - onDragExitCapture?: EventHandler; - onDragLeave?: EventHandler; - onDragLeaveCapture?: EventHandler; - onDragOver?: EventHandler; - onDragOverCapture?: EventHandler; - onDragStart?: EventHandler; - onDragStartCapture?: EventHandler; - onDrop?: EventHandler; - onDropCapture?: EventHandler; - onMouseDown?: EventHandler; - onMouseDownCapture?: EventHandler; - onMouseEnter?: EventHandler; - onMouseLeave?: EventHandler; - onMouseMove?: EventHandler; - onMouseMoveCapture?: EventHandler; - onMouseOut?: EventHandler; - onMouseOutCapture?: EventHandler; - onMouseOver?: EventHandler; - onMouseOverCapture?: EventHandler; - onMouseUp?: EventHandler; - onMouseUpCapture?: EventHandler; - onSelect?: EventHandler; - onSelectCapture?: EventHandler; - onTouchCancel?: EventHandler; - onTouchCancelCapture?: EventHandler; - onTouchEnd?: EventHandler; - onTouchEndCapture?: EventHandler; - onTouchMove?: EventHandler; - onTouchMoveCapture?: EventHandler; - onTouchStart?: EventHandler; - onTouchStartCapture?: EventHandler; - onPointerDown?: EventHandler; - onPointerDownCapture?: EventHandler; - onPointerMove?: EventHandler; - onPointerMoveCapture?: EventHandler; - onPointerUp?: EventHandler; - onPointerUpCapture?: EventHandler; - onPointerCancel?: EventHandler; - onPointerCancelCapture?: EventHandler; - onPointerEnter?: EventHandler; - onPointerLeave?: EventHandler; - onPointerOver?: EventHandler; - onPointerOverCapture?: EventHandler; - onPointerOut?: EventHandler; - onPointerOutCapture?: EventHandler; - onGotPointerCapture?: EventHandler; - onGotPointerCaptureCapture?: EventHandler; - onLostPointerCapture?: EventHandler; - onLostPointerCaptureCapture?: EventHandler; - onScroll?: EventHandler; - onScrollCapture?: EventHandler; - onWheel?: EventHandler; - onWheelCapture?: EventHandler; - onAnimationStart?: EventHandler; - onAnimationStartCapture?: EventHandler; - onAnimationEnd?: EventHandler; - onAnimationEndCapture?: EventHandler; - onAnimationIteration?: EventHandler; - onAnimationIterationCapture?: EventHandler; - onTransitionEnd?: EventHandler; - onTransitionEndCapture?: EventHandler; -} diff --git a/node_modules/@use-gesture/core/dist/declarations/src/utils.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/utils.d.ts deleted file mode 100644 index db96518a..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/utils.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { rubberbandIfOutOfBounds } from "./utils/maths.js"; diff --git a/node_modules/@use-gesture/core/dist/declarations/src/utils/maths.d.ts b/node_modules/@use-gesture/core/dist/declarations/src/utils/maths.d.ts deleted file mode 100644 index 4a97f4b7..00000000 --- a/node_modules/@use-gesture/core/dist/declarations/src/utils/maths.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Vector2 } from "../types.js"; -export declare function clamp(v: number, min: number, max: number): number; -export declare const V: { - toVector(v: T | [T, T] | undefined, fallback?: T | [T, T] | undefined): [T, T]; - add(v1: Vector2, v2: Vector2): Vector2; - sub(v1: Vector2, v2: Vector2): Vector2; - addTo(v1: Vector2, v2: Vector2): void; - subTo(v1: Vector2, v2: Vector2): void; -}; -export declare function rubberbandIfOutOfBounds(position: number, min: number, max: number, constant?: number): number; -export declare function computeRubberband(bounds: [Vector2, Vector2], [Vx, Vy]: Vector2, [Rx, Ry]: Vector2): Vector2; diff --git a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.d.ts b/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.d.ts deleted file mode 100644 index 591dceef..00000000 --- a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./declarations/src/index"; -//# sourceMappingURL=use-gesture-core.cjs.d.ts.map diff --git a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.dev.js b/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.dev.js deleted file mode 100644 index fe0f35ee..00000000 --- a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.dev.js +++ /dev/null @@ -1,336 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions_dist_useGestureCoreActions = require('./actions-6579bdef.cjs.dev.js'); -require('./maths-267f0992.cjs.dev.js'); - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} - -const sharedConfigResolver = { - target(value) { - if (value) { - return () => 'current' in value ? value.current : value; - } - return undefined; - }, - enabled(value = true) { - return value; - }, - window(value = actions_dist_useGestureCoreActions.SUPPORT.isBrowser ? window : undefined) { - return value; - }, - eventOptions({ - passive = true, - capture = false - } = {}) { - return { - passive, - capture - }; - }, - transform(value) { - return value; - } -}; - -const _excluded = ["target", "eventOptions", "window", "enabled", "transform"]; -function resolveWith(config = {}, resolvers) { - const result = {}; - for (const [key, resolver] of Object.entries(resolvers)) { - switch (typeof resolver) { - case 'function': - if (process.env.NODE_ENV === 'development') { - const r = resolver.call(result, config[key], key, config); - if (!Number.isNaN(r)) result[key] = r; - } else { - result[key] = resolver.call(result, config[key], key, config); - } - break; - case 'object': - result[key] = resolveWith(config[key], resolver); - break; - case 'boolean': - if (resolver) result[key] = config[key]; - break; - } - } - return result; -} -function parse(newConfig, gestureKey, _config = {}) { - const _ref = newConfig, - { - target, - eventOptions, - window, - enabled, - transform - } = _ref, - rest = _objectWithoutProperties(_ref, _excluded); - _config.shared = resolveWith({ - target, - eventOptions, - window, - enabled, - transform - }, sharedConfigResolver); - if (gestureKey) { - const resolver = actions_dist_useGestureCoreActions.ConfigResolverMap.get(gestureKey); - _config[gestureKey] = resolveWith(actions_dist_useGestureCoreActions._objectSpread2({ - shared: _config.shared - }, rest), resolver); - } else { - for (const key in rest) { - const resolver = actions_dist_useGestureCoreActions.ConfigResolverMap.get(key); - if (resolver) { - _config[key] = resolveWith(actions_dist_useGestureCoreActions._objectSpread2({ - shared: _config.shared - }, rest[key]), resolver); - } else if (process.env.NODE_ENV === 'development') { - if (!['drag', 'pinch', 'scroll', 'wheel', 'move', 'hover'].includes(key)) { - if (key === 'domTarget') { - throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`); - } - console.warn(`[@use-gesture]: Unknown config key \`${key}\` was used. Please read the documentation for further information.`); - } - } - } - } - return _config; -} - -class EventStore { - constructor(ctrl, gestureKey) { - actions_dist_useGestureCoreActions._defineProperty(this, "_listeners", new Set()); - this._ctrl = ctrl; - this._gestureKey = gestureKey; - } - add(element, device, action, handler, options) { - const listeners = this._listeners; - const type = actions_dist_useGestureCoreActions.toDomEventType(device, action); - const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}; - const eventOptions = actions_dist_useGestureCoreActions._objectSpread2(actions_dist_useGestureCoreActions._objectSpread2({}, _options), options); - element.addEventListener(type, handler, eventOptions); - const remove = () => { - element.removeEventListener(type, handler, eventOptions); - listeners.delete(remove); - }; - listeners.add(remove); - return remove; - } - clean() { - this._listeners.forEach(remove => remove()); - this._listeners.clear(); - } -} - -class TimeoutStore { - constructor() { - actions_dist_useGestureCoreActions._defineProperty(this, "_timeouts", new Map()); - } - add(key, callback, ms = 140, ...args) { - this.remove(key); - this._timeouts.set(key, window.setTimeout(callback, ms, ...args)); - } - remove(key) { - const timeout = this._timeouts.get(key); - if (timeout) window.clearTimeout(timeout); - } - clean() { - this._timeouts.forEach(timeout => void window.clearTimeout(timeout)); - this._timeouts.clear(); - } -} - -class Controller { - constructor(handlers) { - actions_dist_useGestureCoreActions._defineProperty(this, "gestures", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "_targetEventStore", new EventStore(this)); - actions_dist_useGestureCoreActions._defineProperty(this, "gestureEventStores", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "gestureTimeoutStores", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "handlers", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "config", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "pointerIds", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "touchIds", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "state", { - shared: { - shiftKey: false, - metaKey: false, - ctrlKey: false, - altKey: false - } - }); - resolveGestures(this, handlers); - } - setEventIds(event) { - if (actions_dist_useGestureCoreActions.isTouch(event)) { - this.touchIds = new Set(actions_dist_useGestureCoreActions.touchIds(event)); - return this.touchIds; - } else if ('pointerId' in event) { - if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); - return this.pointerIds; - } - } - applyHandlers(handlers, nativeHandlers) { - this.handlers = handlers; - this.nativeHandlers = nativeHandlers; - } - applyConfig(config, gestureKey) { - this.config = parse(config, gestureKey, this.config); - } - clean() { - this._targetEventStore.clean(); - for (const key of this.gestures) { - this.gestureEventStores[key].clean(); - this.gestureTimeoutStores[key].clean(); - } - } - effect() { - if (this.config.shared.target) this.bind(); - return () => this._targetEventStore.clean(); - } - bind(...args) { - const sharedConfig = this.config.shared; - const props = {}; - let target; - if (sharedConfig.target) { - target = sharedConfig.target(); - if (!target) return; - } - if (sharedConfig.enabled) { - for (const gestureKey of this.gestures) { - const gestureConfig = this.config[gestureKey]; - const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target); - if (gestureConfig.enabled) { - const Engine = actions_dist_useGestureCoreActions.EngineMap.get(gestureKey); - new Engine(this, args, gestureKey).bind(bindFunction); - } - } - const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target); - for (const eventKey in this.nativeHandlers) { - nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_dist_useGestureCoreActions._objectSpread2(actions_dist_useGestureCoreActions._objectSpread2({}, this.state.shared), {}, { - event, - args - })), undefined, true); - } - } - for (const handlerProp in props) { - props[handlerProp] = actions_dist_useGestureCoreActions.chain(...props[handlerProp]); - } - if (!target) return props; - for (const handlerProp in props) { - const { - device, - capture, - passive - } = actions_dist_useGestureCoreActions.parseProp(handlerProp); - this._targetEventStore.add(target, device, '', props[handlerProp], { - capture, - passive - }); - } - } -} -function setupGesture(ctrl, gestureKey) { - ctrl.gestures.add(gestureKey); - ctrl.gestureEventStores[gestureKey] = new EventStore(ctrl, gestureKey); - ctrl.gestureTimeoutStores[gestureKey] = new TimeoutStore(); -} -function resolveGestures(ctrl, internalHandlers) { - if (internalHandlers.drag) setupGesture(ctrl, 'drag'); - if (internalHandlers.wheel) setupGesture(ctrl, 'wheel'); - if (internalHandlers.scroll) setupGesture(ctrl, 'scroll'); - if (internalHandlers.move) setupGesture(ctrl, 'move'); - if (internalHandlers.pinch) setupGesture(ctrl, 'pinch'); - if (internalHandlers.hover) setupGesture(ctrl, 'hover'); -} -const bindToProps = (props, eventOptions, withPassiveOption) => (device, action, handler, options = {}, isNative = false) => { - var _options$capture, _options$passive; - const capture = (_options$capture = options.capture) !== null && _options$capture !== void 0 ? _options$capture : eventOptions.capture; - const passive = (_options$passive = options.passive) !== null && _options$passive !== void 0 ? _options$passive : eventOptions.passive; - let handlerProp = isNative ? device : actions_dist_useGestureCoreActions.toHandlerProp(device, action, capture); - if (withPassiveOption && passive) handlerProp += 'Passive'; - props[handlerProp] = props[handlerProp] || []; - props[handlerProp].push(handler); -}; - -const RE_NOT_NATIVE = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/; -function sortHandlers(_handlers) { - const native = {}; - const handlers = {}; - const actions = new Set(); - for (let key in _handlers) { - if (RE_NOT_NATIVE.test(key)) { - actions.add(RegExp.lastMatch); - handlers[key] = _handlers[key]; - } else { - native[key] = _handlers[key]; - } - } - return [handlers, native, actions]; -} -function registerGesture(actions, handlers, handlerKey, key, internalHandlers, config) { - if (!actions.has(handlerKey)) return; - if (!actions_dist_useGestureCoreActions.EngineMap.has(key)) { - if (process.env.NODE_ENV === 'development') { - console.warn(`[@use-gesture]: You've created a custom handler that that uses the \`${key}\` gesture but isn't properly configured.\n\nPlease add \`${key}Action\` when creating your handler.`); - } - return; - } - const startKey = handlerKey + 'Start'; - const endKey = handlerKey + 'End'; - const fn = state => { - let memo = undefined; - if (state.first && startKey in handlers) handlers[startKey](state); - if (handlerKey in handlers) memo = handlers[handlerKey](state); - if (state.last && endKey in handlers) handlers[endKey](state); - return memo; - }; - internalHandlers[key] = fn; - config[key] = config[key] || {}; -} -function parseMergedHandlers(mergedHandlers, mergedConfig) { - const [handlers, nativeHandlers, actions] = sortHandlers(mergedHandlers); - const internalHandlers = {}; - registerGesture(actions, handlers, 'onDrag', 'drag', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onWheel', 'wheel', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onScroll', 'scroll', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onPinch', 'pinch', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onMove', 'move', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onHover', 'hover', internalHandlers, mergedConfig); - return { - handlers: internalHandlers, - config: mergedConfig, - nativeHandlers - }; -} - -exports.Controller = Controller; -exports.parseMergedHandlers = parseMergedHandlers; diff --git a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.js b/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.js deleted file mode 100644 index f1acac0e..00000000 --- a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./use-gesture-core.cjs.prod.js"); -} else { - module.exports = require("./use-gesture-core.cjs.dev.js"); -} diff --git a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.prod.js b/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.prod.js deleted file mode 100644 index f0f01e82..00000000 --- a/node_modules/@use-gesture/core/dist/use-gesture-core.cjs.prod.js +++ /dev/null @@ -1,323 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions_dist_useGestureCoreActions = require('./actions-89e642c9.cjs.prod.js'); -require('./maths-83bc6f64.cjs.prod.js'); - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} - -const sharedConfigResolver = { - target(value) { - if (value) { - return () => 'current' in value ? value.current : value; - } - return undefined; - }, - enabled(value = true) { - return value; - }, - window(value = actions_dist_useGestureCoreActions.SUPPORT.isBrowser ? window : undefined) { - return value; - }, - eventOptions({ - passive = true, - capture = false - } = {}) { - return { - passive, - capture - }; - }, - transform(value) { - return value; - } -}; - -const _excluded = ["target", "eventOptions", "window", "enabled", "transform"]; -function resolveWith(config = {}, resolvers) { - const result = {}; - for (const [key, resolver] of Object.entries(resolvers)) { - switch (typeof resolver) { - case 'function': - { - result[key] = resolver.call(result, config[key], key, config); - } - break; - case 'object': - result[key] = resolveWith(config[key], resolver); - break; - case 'boolean': - if (resolver) result[key] = config[key]; - break; - } - } - return result; -} -function parse(newConfig, gestureKey, _config = {}) { - const _ref = newConfig, - { - target, - eventOptions, - window, - enabled, - transform - } = _ref, - rest = _objectWithoutProperties(_ref, _excluded); - _config.shared = resolveWith({ - target, - eventOptions, - window, - enabled, - transform - }, sharedConfigResolver); - if (gestureKey) { - const resolver = actions_dist_useGestureCoreActions.ConfigResolverMap.get(gestureKey); - _config[gestureKey] = resolveWith(actions_dist_useGestureCoreActions._objectSpread2({ - shared: _config.shared - }, rest), resolver); - } else { - for (const key in rest) { - const resolver = actions_dist_useGestureCoreActions.ConfigResolverMap.get(key); - if (resolver) { - _config[key] = resolveWith(actions_dist_useGestureCoreActions._objectSpread2({ - shared: _config.shared - }, rest[key]), resolver); - } - } - } - return _config; -} - -class EventStore { - constructor(ctrl, gestureKey) { - actions_dist_useGestureCoreActions._defineProperty(this, "_listeners", new Set()); - this._ctrl = ctrl; - this._gestureKey = gestureKey; - } - add(element, device, action, handler, options) { - const listeners = this._listeners; - const type = actions_dist_useGestureCoreActions.toDomEventType(device, action); - const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}; - const eventOptions = actions_dist_useGestureCoreActions._objectSpread2(actions_dist_useGestureCoreActions._objectSpread2({}, _options), options); - element.addEventListener(type, handler, eventOptions); - const remove = () => { - element.removeEventListener(type, handler, eventOptions); - listeners.delete(remove); - }; - listeners.add(remove); - return remove; - } - clean() { - this._listeners.forEach(remove => remove()); - this._listeners.clear(); - } -} - -class TimeoutStore { - constructor() { - actions_dist_useGestureCoreActions._defineProperty(this, "_timeouts", new Map()); - } - add(key, callback, ms = 140, ...args) { - this.remove(key); - this._timeouts.set(key, window.setTimeout(callback, ms, ...args)); - } - remove(key) { - const timeout = this._timeouts.get(key); - if (timeout) window.clearTimeout(timeout); - } - clean() { - this._timeouts.forEach(timeout => void window.clearTimeout(timeout)); - this._timeouts.clear(); - } -} - -class Controller { - constructor(handlers) { - actions_dist_useGestureCoreActions._defineProperty(this, "gestures", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "_targetEventStore", new EventStore(this)); - actions_dist_useGestureCoreActions._defineProperty(this, "gestureEventStores", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "gestureTimeoutStores", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "handlers", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "config", {}); - actions_dist_useGestureCoreActions._defineProperty(this, "pointerIds", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "touchIds", new Set()); - actions_dist_useGestureCoreActions._defineProperty(this, "state", { - shared: { - shiftKey: false, - metaKey: false, - ctrlKey: false, - altKey: false - } - }); - resolveGestures(this, handlers); - } - setEventIds(event) { - if (actions_dist_useGestureCoreActions.isTouch(event)) { - this.touchIds = new Set(actions_dist_useGestureCoreActions.touchIds(event)); - return this.touchIds; - } else if ('pointerId' in event) { - if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); - return this.pointerIds; - } - } - applyHandlers(handlers, nativeHandlers) { - this.handlers = handlers; - this.nativeHandlers = nativeHandlers; - } - applyConfig(config, gestureKey) { - this.config = parse(config, gestureKey, this.config); - } - clean() { - this._targetEventStore.clean(); - for (const key of this.gestures) { - this.gestureEventStores[key].clean(); - this.gestureTimeoutStores[key].clean(); - } - } - effect() { - if (this.config.shared.target) this.bind(); - return () => this._targetEventStore.clean(); - } - bind(...args) { - const sharedConfig = this.config.shared; - const props = {}; - let target; - if (sharedConfig.target) { - target = sharedConfig.target(); - if (!target) return; - } - if (sharedConfig.enabled) { - for (const gestureKey of this.gestures) { - const gestureConfig = this.config[gestureKey]; - const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target); - if (gestureConfig.enabled) { - const Engine = actions_dist_useGestureCoreActions.EngineMap.get(gestureKey); - new Engine(this, args, gestureKey).bind(bindFunction); - } - } - const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target); - for (const eventKey in this.nativeHandlers) { - nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_dist_useGestureCoreActions._objectSpread2(actions_dist_useGestureCoreActions._objectSpread2({}, this.state.shared), {}, { - event, - args - })), undefined, true); - } - } - for (const handlerProp in props) { - props[handlerProp] = actions_dist_useGestureCoreActions.chain(...props[handlerProp]); - } - if (!target) return props; - for (const handlerProp in props) { - const { - device, - capture, - passive - } = actions_dist_useGestureCoreActions.parseProp(handlerProp); - this._targetEventStore.add(target, device, '', props[handlerProp], { - capture, - passive - }); - } - } -} -function setupGesture(ctrl, gestureKey) { - ctrl.gestures.add(gestureKey); - ctrl.gestureEventStores[gestureKey] = new EventStore(ctrl, gestureKey); - ctrl.gestureTimeoutStores[gestureKey] = new TimeoutStore(); -} -function resolveGestures(ctrl, internalHandlers) { - if (internalHandlers.drag) setupGesture(ctrl, 'drag'); - if (internalHandlers.wheel) setupGesture(ctrl, 'wheel'); - if (internalHandlers.scroll) setupGesture(ctrl, 'scroll'); - if (internalHandlers.move) setupGesture(ctrl, 'move'); - if (internalHandlers.pinch) setupGesture(ctrl, 'pinch'); - if (internalHandlers.hover) setupGesture(ctrl, 'hover'); -} -const bindToProps = (props, eventOptions, withPassiveOption) => (device, action, handler, options = {}, isNative = false) => { - var _options$capture, _options$passive; - const capture = (_options$capture = options.capture) !== null && _options$capture !== void 0 ? _options$capture : eventOptions.capture; - const passive = (_options$passive = options.passive) !== null && _options$passive !== void 0 ? _options$passive : eventOptions.passive; - let handlerProp = isNative ? device : actions_dist_useGestureCoreActions.toHandlerProp(device, action, capture); - if (withPassiveOption && passive) handlerProp += 'Passive'; - props[handlerProp] = props[handlerProp] || []; - props[handlerProp].push(handler); -}; - -const RE_NOT_NATIVE = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/; -function sortHandlers(_handlers) { - const native = {}; - const handlers = {}; - const actions = new Set(); - for (let key in _handlers) { - if (RE_NOT_NATIVE.test(key)) { - actions.add(RegExp.lastMatch); - handlers[key] = _handlers[key]; - } else { - native[key] = _handlers[key]; - } - } - return [handlers, native, actions]; -} -function registerGesture(actions, handlers, handlerKey, key, internalHandlers, config) { - if (!actions.has(handlerKey)) return; - if (!actions_dist_useGestureCoreActions.EngineMap.has(key)) { - return; - } - const startKey = handlerKey + 'Start'; - const endKey = handlerKey + 'End'; - const fn = state => { - let memo = undefined; - if (state.first && startKey in handlers) handlers[startKey](state); - if (handlerKey in handlers) memo = handlers[handlerKey](state); - if (state.last && endKey in handlers) handlers[endKey](state); - return memo; - }; - internalHandlers[key] = fn; - config[key] = config[key] || {}; -} -function parseMergedHandlers(mergedHandlers, mergedConfig) { - const [handlers, nativeHandlers, actions] = sortHandlers(mergedHandlers); - const internalHandlers = {}; - registerGesture(actions, handlers, 'onDrag', 'drag', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onWheel', 'wheel', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onScroll', 'scroll', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onPinch', 'pinch', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onMove', 'move', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onHover', 'hover', internalHandlers, mergedConfig); - return { - handlers: internalHandlers, - config: mergedConfig, - nativeHandlers - }; -} - -exports.Controller = Controller; -exports.parseMergedHandlers = parseMergedHandlers; diff --git a/node_modules/@use-gesture/core/dist/use-gesture-core.esm.js b/node_modules/@use-gesture/core/dist/use-gesture-core.esm.js deleted file mode 100644 index 9a0f7bd6..00000000 --- a/node_modules/@use-gesture/core/dist/use-gesture-core.esm.js +++ /dev/null @@ -1,331 +0,0 @@ -import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-fe213e88.esm.js'; -import './maths-0ab39ae9.esm.js'; - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} - -const sharedConfigResolver = { - target(value) { - if (value) { - return () => 'current' in value ? value.current : value; - } - return undefined; - }, - enabled(value = true) { - return value; - }, - window(value = SUPPORT.isBrowser ? window : undefined) { - return value; - }, - eventOptions({ - passive = true, - capture = false - } = {}) { - return { - passive, - capture - }; - }, - transform(value) { - return value; - } -}; - -const _excluded = ["target", "eventOptions", "window", "enabled", "transform"]; -function resolveWith(config = {}, resolvers) { - const result = {}; - for (const [key, resolver] of Object.entries(resolvers)) { - switch (typeof resolver) { - case 'function': - if (process.env.NODE_ENV === 'development') { - const r = resolver.call(result, config[key], key, config); - if (!Number.isNaN(r)) result[key] = r; - } else { - result[key] = resolver.call(result, config[key], key, config); - } - break; - case 'object': - result[key] = resolveWith(config[key], resolver); - break; - case 'boolean': - if (resolver) result[key] = config[key]; - break; - } - } - return result; -} -function parse(newConfig, gestureKey, _config = {}) { - const _ref = newConfig, - { - target, - eventOptions, - window, - enabled, - transform - } = _ref, - rest = _objectWithoutProperties(_ref, _excluded); - _config.shared = resolveWith({ - target, - eventOptions, - window, - enabled, - transform - }, sharedConfigResolver); - if (gestureKey) { - const resolver = ConfigResolverMap.get(gestureKey); - _config[gestureKey] = resolveWith(_objectSpread2({ - shared: _config.shared - }, rest), resolver); - } else { - for (const key in rest) { - const resolver = ConfigResolverMap.get(key); - if (resolver) { - _config[key] = resolveWith(_objectSpread2({ - shared: _config.shared - }, rest[key]), resolver); - } else if (process.env.NODE_ENV === 'development') { - if (!['drag', 'pinch', 'scroll', 'wheel', 'move', 'hover'].includes(key)) { - if (key === 'domTarget') { - throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`); - } - console.warn(`[@use-gesture]: Unknown config key \`${key}\` was used. Please read the documentation for further information.`); - } - } - } - } - return _config; -} - -class EventStore { - constructor(ctrl, gestureKey) { - _defineProperty(this, "_listeners", new Set()); - this._ctrl = ctrl; - this._gestureKey = gestureKey; - } - add(element, device, action, handler, options) { - const listeners = this._listeners; - const type = toDomEventType(device, action); - const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}; - const eventOptions = _objectSpread2(_objectSpread2({}, _options), options); - element.addEventListener(type, handler, eventOptions); - const remove = () => { - element.removeEventListener(type, handler, eventOptions); - listeners.delete(remove); - }; - listeners.add(remove); - return remove; - } - clean() { - this._listeners.forEach(remove => remove()); - this._listeners.clear(); - } -} - -class TimeoutStore { - constructor() { - _defineProperty(this, "_timeouts", new Map()); - } - add(key, callback, ms = 140, ...args) { - this.remove(key); - this._timeouts.set(key, window.setTimeout(callback, ms, ...args)); - } - remove(key) { - const timeout = this._timeouts.get(key); - if (timeout) window.clearTimeout(timeout); - } - clean() { - this._timeouts.forEach(timeout => void window.clearTimeout(timeout)); - this._timeouts.clear(); - } -} - -class Controller { - constructor(handlers) { - _defineProperty(this, "gestures", new Set()); - _defineProperty(this, "_targetEventStore", new EventStore(this)); - _defineProperty(this, "gestureEventStores", {}); - _defineProperty(this, "gestureTimeoutStores", {}); - _defineProperty(this, "handlers", {}); - _defineProperty(this, "config", {}); - _defineProperty(this, "pointerIds", new Set()); - _defineProperty(this, "touchIds", new Set()); - _defineProperty(this, "state", { - shared: { - shiftKey: false, - metaKey: false, - ctrlKey: false, - altKey: false - } - }); - resolveGestures(this, handlers); - } - setEventIds(event) { - if (isTouch(event)) { - this.touchIds = new Set(touchIds(event)); - return this.touchIds; - } else if ('pointerId' in event) { - if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); - return this.pointerIds; - } - } - applyHandlers(handlers, nativeHandlers) { - this.handlers = handlers; - this.nativeHandlers = nativeHandlers; - } - applyConfig(config, gestureKey) { - this.config = parse(config, gestureKey, this.config); - } - clean() { - this._targetEventStore.clean(); - for (const key of this.gestures) { - this.gestureEventStores[key].clean(); - this.gestureTimeoutStores[key].clean(); - } - } - effect() { - if (this.config.shared.target) this.bind(); - return () => this._targetEventStore.clean(); - } - bind(...args) { - const sharedConfig = this.config.shared; - const props = {}; - let target; - if (sharedConfig.target) { - target = sharedConfig.target(); - if (!target) return; - } - if (sharedConfig.enabled) { - for (const gestureKey of this.gestures) { - const gestureConfig = this.config[gestureKey]; - const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target); - if (gestureConfig.enabled) { - const Engine = EngineMap.get(gestureKey); - new Engine(this, args, gestureKey).bind(bindFunction); - } - } - const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target); - for (const eventKey in this.nativeHandlers) { - nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](_objectSpread2(_objectSpread2({}, this.state.shared), {}, { - event, - args - })), undefined, true); - } - } - for (const handlerProp in props) { - props[handlerProp] = chain(...props[handlerProp]); - } - if (!target) return props; - for (const handlerProp in props) { - const { - device, - capture, - passive - } = parseProp(handlerProp); - this._targetEventStore.add(target, device, '', props[handlerProp], { - capture, - passive - }); - } - } -} -function setupGesture(ctrl, gestureKey) { - ctrl.gestures.add(gestureKey); - ctrl.gestureEventStores[gestureKey] = new EventStore(ctrl, gestureKey); - ctrl.gestureTimeoutStores[gestureKey] = new TimeoutStore(); -} -function resolveGestures(ctrl, internalHandlers) { - if (internalHandlers.drag) setupGesture(ctrl, 'drag'); - if (internalHandlers.wheel) setupGesture(ctrl, 'wheel'); - if (internalHandlers.scroll) setupGesture(ctrl, 'scroll'); - if (internalHandlers.move) setupGesture(ctrl, 'move'); - if (internalHandlers.pinch) setupGesture(ctrl, 'pinch'); - if (internalHandlers.hover) setupGesture(ctrl, 'hover'); -} -const bindToProps = (props, eventOptions, withPassiveOption) => (device, action, handler, options = {}, isNative = false) => { - var _options$capture, _options$passive; - const capture = (_options$capture = options.capture) !== null && _options$capture !== void 0 ? _options$capture : eventOptions.capture; - const passive = (_options$passive = options.passive) !== null && _options$passive !== void 0 ? _options$passive : eventOptions.passive; - let handlerProp = isNative ? device : toHandlerProp(device, action, capture); - if (withPassiveOption && passive) handlerProp += 'Passive'; - props[handlerProp] = props[handlerProp] || []; - props[handlerProp].push(handler); -}; - -const RE_NOT_NATIVE = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/; -function sortHandlers(_handlers) { - const native = {}; - const handlers = {}; - const actions = new Set(); - for (let key in _handlers) { - if (RE_NOT_NATIVE.test(key)) { - actions.add(RegExp.lastMatch); - handlers[key] = _handlers[key]; - } else { - native[key] = _handlers[key]; - } - } - return [handlers, native, actions]; -} -function registerGesture(actions, handlers, handlerKey, key, internalHandlers, config) { - if (!actions.has(handlerKey)) return; - if (!EngineMap.has(key)) { - if (process.env.NODE_ENV === 'development') { - console.warn(`[@use-gesture]: You've created a custom handler that that uses the \`${key}\` gesture but isn't properly configured.\n\nPlease add \`${key}Action\` when creating your handler.`); - } - return; - } - const startKey = handlerKey + 'Start'; - const endKey = handlerKey + 'End'; - const fn = state => { - let memo = undefined; - if (state.first && startKey in handlers) handlers[startKey](state); - if (handlerKey in handlers) memo = handlers[handlerKey](state); - if (state.last && endKey in handlers) handlers[endKey](state); - return memo; - }; - internalHandlers[key] = fn; - config[key] = config[key] || {}; -} -function parseMergedHandlers(mergedHandlers, mergedConfig) { - const [handlers, nativeHandlers, actions] = sortHandlers(mergedHandlers); - const internalHandlers = {}; - registerGesture(actions, handlers, 'onDrag', 'drag', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onWheel', 'wheel', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onScroll', 'scroll', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onPinch', 'pinch', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onMove', 'move', internalHandlers, mergedConfig); - registerGesture(actions, handlers, 'onHover', 'hover', internalHandlers, mergedConfig); - return { - handlers: internalHandlers, - config: mergedConfig, - nativeHandlers - }; -} - -export { Controller, parseMergedHandlers }; diff --git a/node_modules/@use-gesture/core/package.json b/node_modules/@use-gesture/core/package.json deleted file mode 100644 index f0571964..00000000 --- a/node_modules/@use-gesture/core/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@use-gesture/core", - "version": "10.3.1", - "description": "Core engine for receiving gestures", - "license": "MIT", - "main": "dist/use-gesture-core.cjs.js", - "module": "dist/use-gesture-core.esm.js", - "exports": { - ".": { - "module": "./dist/use-gesture-core.esm.js", - "default": "./dist/use-gesture-core.cjs.js" - }, - "./types": { - "module": "./types/dist/use-gesture-core-types.esm.js", - "default": "./types/dist/use-gesture-core-types.cjs.js" - }, - "./utils": { - "module": "./utils/dist/use-gesture-core-utils.esm.js", - "default": "./utils/dist/use-gesture-core-utils.cjs.js" - }, - "./actions": { - "module": "./actions/dist/use-gesture-core-actions.esm.js", - "default": "./actions/dist/use-gesture-core-actions.cjs.js" - }, - "./package.json": "./package.json" - }, - "sideEffects": false, - "preconstruct": { - "exports": true, - "entrypoints": [ - "./index.ts", - "./utils.ts", - "./actions.ts", - "./types.ts" - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/pmndrs/use-gesture.git", - "directory": "packages/core" - }, - "bugs": { - "url": "https://github.com/pmndrs/use-gesture/issues" - }, - "author": "Paul Henschel", - "contributors": [ - "David Bismut (https://github.com/dbismut)" - ], - "homepage": "https://use-gesture.netlify.app" -} \ No newline at end of file diff --git a/node_modules/@use-gesture/core/src/Controller.ts b/node_modules/@use-gesture/core/src/Controller.ts deleted file mode 100644 index 0f131c2e..00000000 --- a/node_modules/@use-gesture/core/src/Controller.ts +++ /dev/null @@ -1,184 +0,0 @@ -import { EngineMap } from './actions' -import { parse } from './config/resolver' -import { isTouch, parseProp, toHandlerProp, touchIds } from './utils/events' -import { EventStore } from './EventStore' -import { TimeoutStore } from './TimeoutStore' -import { chain } from './utils/fn' -import { GestureKey, InternalConfig, InternalHandlers, NativeHandlers, State, UserGestureConfig } from './types' - -export class Controller { - /** - * The list of gestures handled by the Controller. - */ - public gestures = new Set() - /** - * The event store that keeps track of the config.target listeners. - */ - private _targetEventStore = new EventStore(this) - /** - * Object that keeps track of all gesture event listeners. - */ - public gestureEventStores: { [key in GestureKey]?: EventStore } = {} - public gestureTimeoutStores: { [key in GestureKey]?: TimeoutStore } = {} - public handlers: InternalHandlers = {} - private nativeHandlers?: NativeHandlers - public config = {} as InternalConfig - public pointerIds = new Set() - public touchIds = new Set() - public state = { - shared: { - shiftKey: false, - metaKey: false, - ctrlKey: false, - altKey: false - } - } as State - - constructor(handlers: InternalHandlers) { - resolveGestures(this, handlers) - } - /** - * Sets pointer or touch ids based on the event. - * @param event - */ - setEventIds(event: TouchEvent | PointerEvent) { - if (isTouch(event)) { - this.touchIds = new Set(touchIds(event as TouchEvent)) - return this.touchIds - } else if ('pointerId' in event) { - if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId) - else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId) - return this.pointerIds - } - } - /** - * Attaches handlers to the controller. - * @param handlers - * @param nativeHandlers - */ - applyHandlers(handlers: InternalHandlers, nativeHandlers?: NativeHandlers) { - this.handlers = handlers - this.nativeHandlers = nativeHandlers - } - /** - * Compute and attaches a config to the controller. - * @param config - * @param gestureKey - */ - applyConfig(config: UserGestureConfig, gestureKey?: GestureKey) { - this.config = parse(config, gestureKey, this.config) - } - /** - * Cleans all side effects (listeners, timeouts). When the gesture is - * destroyed (in React, when the component is unmounted.) - */ - clean() { - this._targetEventStore.clean() - for (const key of this.gestures) { - this.gestureEventStores[key]!.clean() - this.gestureTimeoutStores[key]!.clean() - } - } - /** - * Executes side effects (attaching listeners to a `config.target`). Ran on - * each render. - */ - effect() { - if (this.config.shared.target) this.bind() - return () => this._targetEventStore.clean() - } - /** - * The bind function that can be returned by the gesture handler (a hook in - * React for example.) - * @param args - */ - bind(...args: any[]) { - const sharedConfig = this.config.shared - const props: any = {} - - let target - if (sharedConfig.target) { - target = sharedConfig.target() - // if target is undefined let's stop - if (!target) return - } - - if (sharedConfig.enabled) { - // Adding gesture handlers - for (const gestureKey of this.gestures) { - const gestureConfig = this.config[gestureKey]! - const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target) - if (gestureConfig.enabled) { - const Engine = EngineMap.get(gestureKey)! - // @ts-ignore - new Engine(this, args, gestureKey).bind(bindFunction) - } - } - - // Adding native handlers - const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target) - for (const eventKey in this.nativeHandlers) { - nativeBindFunction( - eventKey, - '', - // @ts-ignore - (event) => this.nativeHandlers[eventKey]({ ...this.state.shared, event, args }), - undefined, - true - ) - } - } - - // If target isn't set, we return an object that contains gesture handlers - // mapped to props handler event keys. - for (const handlerProp in props) { - props[handlerProp] = chain(...props[handlerProp]) - } - - // When target isn't specified then return hanlder props. - if (!target) return props - - // When target is specified, then add listeners to the controller target - // store. - for (const handlerProp in props) { - const { device, capture, passive } = parseProp(handlerProp) - this._targetEventStore.add(target, device, '', props[handlerProp], { capture, passive }) - } - } -} - -function setupGesture(ctrl: Controller, gestureKey: GestureKey) { - ctrl.gestures.add(gestureKey) - ctrl.gestureEventStores[gestureKey] = new EventStore(ctrl, gestureKey) - ctrl.gestureTimeoutStores[gestureKey] = new TimeoutStore() -} - -function resolveGestures(ctrl: Controller, internalHandlers: InternalHandlers) { - // make sure hover handlers are added first to prevent bugs such as #322 - // where the hover pointerLeave handler is removed before the move - // pointerLeave, which prevents hovering: false to be fired. - if (internalHandlers.drag) setupGesture(ctrl, 'drag') - if (internalHandlers.wheel) setupGesture(ctrl, 'wheel') - if (internalHandlers.scroll) setupGesture(ctrl, 'scroll') - if (internalHandlers.move) setupGesture(ctrl, 'move') - if (internalHandlers.pinch) setupGesture(ctrl, 'pinch') - if (internalHandlers.hover) setupGesture(ctrl, 'hover') -} - -const bindToProps = - (props: any, eventOptions: AddEventListenerOptions, withPassiveOption: boolean) => - ( - device: string, - action: string, - handler: (event: any) => void, - options: AddEventListenerOptions = {}, - isNative = false - ) => { - const capture = options.capture ?? eventOptions.capture - const passive = options.passive ?? eventOptions.passive - // a native handler is already passed as a prop like "onMouseDown" - let handlerProp = isNative ? device : toHandlerProp(device, action, capture) - if (withPassiveOption && passive) handlerProp += 'Passive' - props[handlerProp] = props[handlerProp] || [] - props[handlerProp].push(handler) - } diff --git a/node_modules/@use-gesture/core/src/EventStore.ts b/node_modules/@use-gesture/core/src/EventStore.ts deleted file mode 100644 index ff0c89e9..00000000 --- a/node_modules/@use-gesture/core/src/EventStore.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { Controller } from './Controller' -import { GestureKey } from './types' -import { toDomEventType } from './utils/events' - -export class EventStore { - private _listeners = new Set<() => void>() - private _ctrl: Controller - private _gestureKey?: GestureKey - constructor(ctrl: Controller, gestureKey?: GestureKey) { - this._ctrl = ctrl - this._gestureKey = gestureKey - } - - add( - element: EventTarget, - device: string, - action: string, - handler: (event: any) => void, - options?: AddEventListenerOptions - ) { - const listeners = this._listeners - const type = toDomEventType(device, action) - const _options = this._gestureKey ? this._ctrl.config[this._gestureKey]!.eventOptions : {} - const eventOptions = { ..._options, ...options } - element.addEventListener(type, handler, eventOptions) - const remove = () => { - element.removeEventListener(type, handler, eventOptions) - listeners.delete(remove) - } - listeners.add(remove) - return remove - } - - clean() { - this._listeners.forEach((remove) => remove()) - this._listeners.clear() // just for safety - } -} diff --git a/node_modules/@use-gesture/core/src/TimeoutStore.ts b/node_modules/@use-gesture/core/src/TimeoutStore.ts deleted file mode 100644 index dd0b0652..00000000 --- a/node_modules/@use-gesture/core/src/TimeoutStore.ts +++ /dev/null @@ -1,23 +0,0 @@ -export class TimeoutStore { - private _timeouts = new Map() - - add any>( - key: string, - callback: FunctionType, - ms = 140, - ...args: Parameters - ) { - this.remove(key) - this._timeouts.set(key, window.setTimeout(callback, ms, ...args)) - } - - remove(key: string) { - const timeout = this._timeouts.get(key) - if (timeout) window.clearTimeout(timeout) - } - - clean() { - this._timeouts.forEach((timeout) => void window.clearTimeout(timeout)) - this._timeouts.clear() - } -} diff --git a/node_modules/@use-gesture/core/src/actions.ts b/node_modules/@use-gesture/core/src/actions.ts deleted file mode 100644 index 0d700a11..00000000 --- a/node_modules/@use-gesture/core/src/actions.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { GestureKey, EngineClass, Action } from './types' -import { ResolverMap } from './config/resolver' - -import { DragEngine } from './engines/DragEngine' -import { dragConfigResolver } from './config/dragConfigResolver' - -import { PinchEngine } from './engines/PinchEngine' -import { pinchConfigResolver } from './config/pinchConfigResolver' - -import { MoveEngine } from './engines/MoveEngine' -import { moveConfigResolver } from './config/moveConfigResolver' - -import { ScrollEngine } from './engines/ScrollEngine' -import { scrollConfigResolver } from './config/scrollConfigResolver' - -import { WheelEngine } from './engines/WheelEngine' -import { wheelConfigResolver } from './config/wheelConfigResolver' - -import { HoverEngine } from './engines/HoverEngine' -import { hoverConfigResolver } from './config/hoverConfigResolver' - -export const EngineMap = new Map>() -export const ConfigResolverMap = new Map() - -export function registerAction(action: Action) { - EngineMap.set(action.key, action.engine) - ConfigResolverMap.set(action.key, action.resolver) -} - -export const dragAction: Action = { - key: 'drag', - engine: DragEngine as any, - resolver: dragConfigResolver -} - -export const hoverAction: Action = { - key: 'hover', - engine: HoverEngine as any, - resolver: hoverConfigResolver -} - -export const moveAction: Action = { - key: 'move', - engine: MoveEngine as any, - resolver: moveConfigResolver -} - -export const pinchAction: Action = { - key: 'pinch', - engine: PinchEngine as any, - resolver: pinchConfigResolver -} - -export const scrollAction: Action = { - key: 'scroll', - engine: ScrollEngine as any, - resolver: scrollConfigResolver -} - -export const wheelAction: Action = { - key: 'wheel', - engine: WheelEngine as any, - resolver: wheelConfigResolver -} diff --git a/node_modules/@use-gesture/core/src/config/commonConfigResolver.ts b/node_modules/@use-gesture/core/src/config/commonConfigResolver.ts deleted file mode 100644 index 059ed9ac..00000000 --- a/node_modules/@use-gesture/core/src/config/commonConfigResolver.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { InternalGestureOptions } from '../types' -import { Vector2, State, GenericOptions } from '../types' -import { V } from '../utils/maths' - -export const identity = (v: Vector2) => v -export const DEFAULT_RUBBERBAND = 0.15 - -export const commonConfigResolver = { - enabled(value = true) { - return value - }, - eventOptions(value: AddEventListenerOptions | undefined, _k: string, config: { shared: GenericOptions }) { - return { ...config.shared.eventOptions, ...value } - }, - preventDefault(value = false) { - return value - }, - triggerAllEvents(value = false) { - return value - }, - rubberband(value: number | boolean | Vector2 = 0): Vector2 { - switch (value) { - case true: - return [DEFAULT_RUBBERBAND, DEFAULT_RUBBERBAND] - case false: - return [0, 0] - default: - return V.toVector(value) - } - }, - from(value: number | Vector2 | ((s: State) => Vector2)) { - if (typeof value === 'function') return value - // eslint-disable-next-line eqeqeq - if (value != null) return V.toVector(value) - }, - transform(this: InternalGestureOptions, value: any, _k: string, config: { shared: GenericOptions }) { - const transform = value || config.shared.transform - this.hasCustomTransform = !!transform - - if (process.env.NODE_ENV === 'development') { - const originalTransform = transform || identity - return (v: Vector2) => { - const r = originalTransform(v) - if (!isFinite(r[0]) || !isFinite(r[1])) { - // eslint-disable-next-line no-console - console.warn(`[@use-gesture]: config.transform() must produce a valid result, but it was: [${r[0]},${[1]}]`) - } - return r - } - } - return transform || identity - }, - threshold(value: any) { - return V.toVector(value, 0) - } -} - -if (process.env.NODE_ENV === 'development') { - Object.assign(commonConfigResolver, { - domTarget(value: any) { - if (value !== undefined) { - throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`) - } - return NaN - }, - lockDirection(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`lockDirection\` option has been merged with \`axis\`. Use it as in \`{ axis: 'lock' }\`` - ) - } - return NaN - }, - initial(value: any) { - if (value !== undefined) { - throw Error(`[@use-gesture]: \`initial\` option has been renamed to \`from\`.`) - } - return NaN - } - }) -} diff --git a/node_modules/@use-gesture/core/src/config/coordinatesConfigResolver.ts b/node_modules/@use-gesture/core/src/config/coordinatesConfigResolver.ts deleted file mode 100644 index 3d9a3337..00000000 --- a/node_modules/@use-gesture/core/src/config/coordinatesConfigResolver.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { commonConfigResolver } from './commonConfigResolver' -import { InternalCoordinatesOptions, CoordinatesConfig, Bounds, DragBounds, State, Vector2 } from '../types' - -const DEFAULT_AXIS_THRESHOLD = 0 - -export const coordinatesConfigResolver = { - ...commonConfigResolver, - axis( - this: InternalCoordinatesOptions, - _v: any, - _k: string, - { axis }: CoordinatesConfig - ): InternalCoordinatesOptions['axis'] { - this.lockDirection = axis === 'lock' - if (!this.lockDirection) return axis as any - }, - axisThreshold(value = DEFAULT_AXIS_THRESHOLD) { - return value - }, - bounds( - value: DragBounds | ((state: State) => DragBounds) = {} - ): (() => EventTarget | null) | HTMLElement | [Vector2, Vector2] { - if (typeof value === 'function') { - // @ts-ignore - return (state: State) => coordinatesConfigResolver.bounds(value(state)) - } - - if ('current' in value) { - return () => value.current - } - - if (typeof HTMLElement === 'function' && value instanceof HTMLElement) { - return value - } - - const { left = -Infinity, right = Infinity, top = -Infinity, bottom = Infinity } = value as Bounds - - return [ - [left, right], - [top, bottom] - ] - } -} diff --git a/node_modules/@use-gesture/core/src/config/dragConfigResolver.ts b/node_modules/@use-gesture/core/src/config/dragConfigResolver.ts deleted file mode 100644 index d5dbad5f..00000000 --- a/node_modules/@use-gesture/core/src/config/dragConfigResolver.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { PointerType } from '../types' -import { DragConfig, InternalDragOptions, Vector2 } from '../types' -import { V } from '../utils/maths' -import { coordinatesConfigResolver } from './coordinatesConfigResolver' -import { SUPPORT } from './support' - -export const DEFAULT_PREVENT_SCROLL_DELAY = 250 -export const DEFAULT_DRAG_DELAY = 180 -export const DEFAULT_SWIPE_VELOCITY = 0.5 -export const DEFAULT_SWIPE_DISTANCE = 50 -export const DEFAULT_SWIPE_DURATION = 250 -export const DEFAULT_KEYBOARD_DISPLACEMENT = 10 - -const DEFAULT_DRAG_AXIS_THRESHOLD: Record = { mouse: 0, touch: 0, pen: 8 } - -export const dragConfigResolver = { - ...coordinatesConfigResolver, - device( - this: InternalDragOptions, - _v: any, - _k: string, - { pointer: { touch = false, lock = false, mouse = false } = {} }: DragConfig - ) { - this.pointerLock = lock && SUPPORT.pointerLock - if (SUPPORT.touch && touch) return 'touch' - if (this.pointerLock) return 'mouse' - if (SUPPORT.pointer && !mouse) return 'pointer' - if (SUPPORT.touch) return 'touch' - return 'mouse' - }, - preventScrollAxis(this: InternalDragOptions, value: 'x' | 'y' | 'xy', _k: string, { preventScroll }: DragConfig) { - this.preventScrollDelay = - typeof preventScroll === 'number' - ? preventScroll - : preventScroll || (preventScroll === undefined && value) - ? DEFAULT_PREVENT_SCROLL_DELAY - : undefined - if (!SUPPORT.touchscreen || preventScroll === false) return undefined - return value ? value : preventScroll !== undefined ? 'y' : undefined - }, - pointerCapture( - this: InternalDragOptions, - _v: any, - _k: string, - { pointer: { capture = true, buttons = 1, keys = true } = {} } - ) { - this.pointerButtons = buttons - this.keys = keys - return !this.pointerLock && this.device === 'pointer' && capture - }, - threshold( - this: InternalDragOptions, - value: number | Vector2, - _k: string, - { filterTaps = false, tapsThreshold = 3, axis = undefined } - ) { - // TODO add warning when value is 0 and filterTaps or axis is set - const threshold = V.toVector(value, filterTaps ? tapsThreshold : axis ? 1 : 0) - this.filterTaps = filterTaps - this.tapsThreshold = tapsThreshold - return threshold - }, - swipe( - this: InternalDragOptions, - { velocity = DEFAULT_SWIPE_VELOCITY, distance = DEFAULT_SWIPE_DISTANCE, duration = DEFAULT_SWIPE_DURATION } = {} - ) { - return { - velocity: this.transform(V.toVector(velocity)), - distance: this.transform(V.toVector(distance)), - duration - } - }, - delay(value: number | boolean = 0) { - switch (value) { - case true: - return DEFAULT_DRAG_DELAY - case false: - return 0 - default: - return value - } - }, - axisThreshold(value: Record) { - if (!value) return DEFAULT_DRAG_AXIS_THRESHOLD - return { ...DEFAULT_DRAG_AXIS_THRESHOLD, ...value } - }, - keyboardDisplacement(value: number = DEFAULT_KEYBOARD_DISPLACEMENT) { - return value - } -} - -if (process.env.NODE_ENV === 'development') { - Object.assign(dragConfigResolver, { - useTouch(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`useTouch\` option has been renamed to \`pointer.touch\`. Use it as in \`{ pointer: { touch: true } }\`.` - ) - } - return NaN - }, - experimental_preventWindowScrollY(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`experimental_preventWindowScrollY\` option has been renamed to \`preventScroll\`.` - ) - } - return NaN - }, - swipeVelocity(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`swipeVelocity\` option has been renamed to \`swipe.velocity\`. Use it as in \`{ swipe: { velocity: 0.5 } }\`.` - ) - } - return NaN - }, - swipeDistance(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`swipeDistance\` option has been renamed to \`swipe.distance\`. Use it as in \`{ swipe: { distance: 50 } }\`.` - ) - } - return NaN - }, - swipeDuration(value: any) { - if (value !== undefined) { - throw Error( - `[@use-gesture]: \`swipeDuration\` option has been renamed to \`swipe.duration\`. Use it as in \`{ swipe: { duration: 250 } }\`.` - ) - } - return NaN - } - }) -} diff --git a/node_modules/@use-gesture/core/src/config/hoverConfigResolver.ts b/node_modules/@use-gesture/core/src/config/hoverConfigResolver.ts deleted file mode 100644 index 71a421bd..00000000 --- a/node_modules/@use-gesture/core/src/config/hoverConfigResolver.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { coordinatesConfigResolver } from './coordinatesConfigResolver' - -export const hoverConfigResolver = { - ...coordinatesConfigResolver, - mouseOnly: (value = true) => value -} diff --git a/node_modules/@use-gesture/core/src/config/moveConfigResolver.ts b/node_modules/@use-gesture/core/src/config/moveConfigResolver.ts deleted file mode 100644 index 9832e1e2..00000000 --- a/node_modules/@use-gesture/core/src/config/moveConfigResolver.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { coordinatesConfigResolver } from './coordinatesConfigResolver' - -export const moveConfigResolver = { - ...coordinatesConfigResolver, - mouseOnly: (value = true) => value -} diff --git a/node_modules/@use-gesture/core/src/config/pinchConfigResolver.ts b/node_modules/@use-gesture/core/src/config/pinchConfigResolver.ts deleted file mode 100644 index 30d9be54..00000000 --- a/node_modules/@use-gesture/core/src/config/pinchConfigResolver.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { ModifierKey } from '../types' -import { PinchConfig, GenericOptions, InternalPinchOptions, State, Vector2 } from '../types' -import { call, assignDefault } from '../utils/fn' -import { V } from '../utils/maths' -import { commonConfigResolver } from './commonConfigResolver' -import { SUPPORT } from './support' - -export const pinchConfigResolver = { - ...commonConfigResolver, - device( - this: InternalPinchOptions, - _v: any, - _k: string, - { shared, pointer: { touch = false } = {} }: { shared: GenericOptions } & PinchConfig - ) { - // Only try to use gesture events when they are supported and domTarget is set - // as React doesn't support gesture handlers. - const sharedConfig = shared - if (sharedConfig.target && !SUPPORT.touch && SUPPORT.gesture) return 'gesture' - if (SUPPORT.touch && touch) return 'touch' - if (SUPPORT.touchscreen) { - if (SUPPORT.pointer) return 'pointer' - if (SUPPORT.touch) return 'touch' - } - // device is undefined and that's ok, we're going to use wheel to zoom. - }, - bounds(_v: any, _k: string, { scaleBounds = {}, angleBounds = {} }: PinchConfig) { - const _scaleBounds = (state?: State) => { - const D = assignDefault(call(scaleBounds, state), { min: -Infinity, max: Infinity }) - return [D.min, D.max] - } - - const _angleBounds = (state?: State) => { - const A = assignDefault(call(angleBounds, state), { min: -Infinity, max: Infinity }) - return [A.min, A.max] - } - - if (typeof scaleBounds !== 'function' && typeof angleBounds !== 'function') return [_scaleBounds(), _angleBounds()] - - return (state: State) => [_scaleBounds(state), _angleBounds(state)] - }, - threshold(this: InternalPinchOptions, value: number | Vector2, _k: string, config: PinchConfig) { - this.lockDirection = config.axis === 'lock' - const threshold = V.toVector(value, this.lockDirection ? [0.1, 3] : 0) - return threshold - }, - modifierKey(value: ModifierKey | ModifierKey[]) { - if (value === undefined) return 'ctrlKey' - return value - }, - pinchOnWheel(value = true) { - return value - } -} diff --git a/node_modules/@use-gesture/core/src/config/resolver.ts b/node_modules/@use-gesture/core/src/config/resolver.ts deleted file mode 100644 index 850e5695..00000000 --- a/node_modules/@use-gesture/core/src/config/resolver.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { sharedConfigResolver } from './sharedConfigResolver' -import { ConfigResolverMap } from '../actions' -import { GestureKey, InternalConfig, UserGestureConfig } from '../types' - -export type Resolver = (x: any, key: string, obj: any) => any -export type ResolverMap = { [k: string]: Resolver | ResolverMap | boolean } - -export function resolveWith( - config: Partial = {}, - resolvers: ResolverMap -): V { - const result: any = {} - - for (const [key, resolver] of Object.entries(resolvers)) { - switch (typeof resolver) { - case 'function': - if (process.env.NODE_ENV === 'development') { - const r = resolver.call(result, config[key], key, config) - // prevents deprecated resolvers from applying in dev mode - if (!Number.isNaN(r)) result[key] = r - } else { - result[key] = resolver.call(result, config[key], key, config) - } - break - case 'object': - result[key] = resolveWith(config[key], resolver) - break - case 'boolean': - if (resolver) result[key] = config[key] - break - } - } - - return result -} - -export function parse(newConfig: UserGestureConfig, gestureKey?: GestureKey, _config: any = {}): InternalConfig { - const { target, eventOptions, window, enabled, transform, ...rest } = newConfig as any - - _config.shared = resolveWith({ target, eventOptions, window, enabled, transform }, sharedConfigResolver) - - if (gestureKey) { - const resolver = ConfigResolverMap.get(gestureKey)! - _config[gestureKey] = resolveWith({ shared: _config.shared, ...rest }, resolver) - } else { - for (const key in rest) { - const resolver = ConfigResolverMap.get(key as GestureKey)! - - if (resolver) { - _config[key] = resolveWith({ shared: _config.shared, ...rest[key] }, resolver) - } else if (process.env.NODE_ENV === 'development') { - if (!['drag', 'pinch', 'scroll', 'wheel', 'move', 'hover'].includes(key)) { - if (key === 'domTarget') { - throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`) - } - // eslint-disable-next-line no-console - console.warn( - `[@use-gesture]: Unknown config key \`${key}\` was used. Please read the documentation for further information.` - ) - } - } - } - } - return _config -} diff --git a/node_modules/@use-gesture/core/src/config/scrollConfigResolver.ts b/node_modules/@use-gesture/core/src/config/scrollConfigResolver.ts deleted file mode 100644 index 89e9ee84..00000000 --- a/node_modules/@use-gesture/core/src/config/scrollConfigResolver.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { coordinatesConfigResolver } from './coordinatesConfigResolver' - -export const scrollConfigResolver = coordinatesConfigResolver diff --git a/node_modules/@use-gesture/core/src/config/sharedConfigResolver.ts b/node_modules/@use-gesture/core/src/config/sharedConfigResolver.ts deleted file mode 100644 index 5085e5d3..00000000 --- a/node_modules/@use-gesture/core/src/config/sharedConfigResolver.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Target } from '../types' -import { SUPPORT } from './support' - -export const sharedConfigResolver = { - target(value: Target) { - if (value) { - return () => ('current' in value ? value.current : value) - } - return undefined - }, - enabled(value = true) { - return value - }, - window(value = SUPPORT.isBrowser ? window : undefined) { - return value - }, - eventOptions({ passive = true, capture = false } = {}) { - return { passive, capture } - }, - transform(value: any) { - return value - } -} diff --git a/node_modules/@use-gesture/core/src/config/support.ts b/node_modules/@use-gesture/core/src/config/support.ts deleted file mode 100644 index e1e595f6..00000000 --- a/node_modules/@use-gesture/core/src/config/support.ts +++ /dev/null @@ -1,47 +0,0 @@ -const isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement - -function supportsTouchEvents(): boolean { - return isBrowser && 'ontouchstart' in window -} - -function isTouchScreen(): boolean { - return supportsTouchEvents() || (isBrowser && window.navigator.maxTouchPoints > 1) -} - -function supportsPointerEvents(): boolean { - return isBrowser && 'onpointerdown' in window -} - -function supportsPointerLock(): boolean { - return isBrowser && 'exitPointerLock' in window.document -} - -function supportsGestureEvents(): boolean { - try { - // TODO [TS] possibly find GestureEvent definitions? - // @ts-ignore: no type definitions for webkit GestureEvents - return 'constructor' in GestureEvent - } catch (e) { - return false - } -} - -export const SUPPORT = { - isBrowser, - gesture: supportsGestureEvents(), - /** - * It looks from https://github.com/pmndrs/use-gesture/discussions/421 that - * some touchscreens using webkits don't have 'ontouchstart' in window. So - * we're considering that browsers support TouchEvent if they have - * `maxTouchPoints > 1` - * - * Update 16/09/2023: This generates failure on other Windows systems, so reverting - * back to detecting TouchEvent support only. - * https://github.com/pmndrs/use-gesture/issues/626 - */ - touch: supportsTouchEvents(), - // touch: isTouchScreen(), - touchscreen: isTouchScreen(), - pointer: supportsPointerEvents(), - pointerLock: supportsPointerLock() -} diff --git a/node_modules/@use-gesture/core/src/config/wheelConfigResolver.ts b/node_modules/@use-gesture/core/src/config/wheelConfigResolver.ts deleted file mode 100644 index b71c3f06..00000000 --- a/node_modules/@use-gesture/core/src/config/wheelConfigResolver.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { coordinatesConfigResolver } from './coordinatesConfigResolver' - -export const wheelConfigResolver = coordinatesConfigResolver diff --git a/node_modules/@use-gesture/core/src/engines/CoordinatesEngine.ts b/node_modules/@use-gesture/core/src/engines/CoordinatesEngine.ts deleted file mode 100644 index da648852..00000000 --- a/node_modules/@use-gesture/core/src/engines/CoordinatesEngine.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { Engine } from './Engine' -import { V } from '../utils/maths' -import { CoordinatesKey, Vector2 } from '../types' -import { getPointerType } from '../utils/events' - -function selectAxis([dx, dy]: Vector2, threshold: number) { - const absDx = Math.abs(dx) - const absDy = Math.abs(dy) - - if (absDx > absDy && absDx > threshold) { - return 'x' - } - if (absDy > absDx && absDy > threshold) { - return 'y' - } - return undefined -} - -export abstract class CoordinatesEngine extends Engine { - aliasKey = 'xy' - - reset() { - super.reset() - this.state.axis = undefined - } - - init() { - this.state.offset = [0, 0] - this.state.lastOffset = [0, 0] - } - - computeOffset() { - this.state.offset = V.add(this.state.lastOffset, this.state.movement) - } - - computeMovement() { - this.state.movement = V.sub(this.state.offset, this.state.lastOffset) - } - - axisIntent(event?: UIEvent) { - const state = this.state - const config = this.config - - if (!state.axis && event) { - const threshold = - typeof config.axisThreshold === 'object' ? config.axisThreshold[getPointerType(event)] : config.axisThreshold - - state.axis = selectAxis(state._movement, threshold) - } - - // We block the movement if either: - // - config.lockDirection or config.axis was set but axis isn't detected yet - // - config.axis was set but is different than detected axis - state._blocked = - ((config.lockDirection || !!config.axis) && !state.axis) || (!!config.axis && config.axis !== state.axis) - } - - restrictToAxis(v: Vector2) { - if (this.config.axis || this.config.lockDirection) { - switch (this.state.axis) { - case 'x': - v[1] = 0 - break // [ x, 0 ] - case 'y': - v[0] = 0 - break // [ 0, y ] - } - } - } -} diff --git a/node_modules/@use-gesture/core/src/engines/DragEngine.ts b/node_modules/@use-gesture/core/src/engines/DragEngine.ts deleted file mode 100644 index 2a49f9e5..00000000 --- a/node_modules/@use-gesture/core/src/engines/DragEngine.ts +++ /dev/null @@ -1,383 +0,0 @@ -import { CoordinatesEngine } from './CoordinatesEngine' -import { coordinatesConfigResolver } from '../config/coordinatesConfigResolver' -import { pointerId, getPointerType, pointerValues } from '../utils/events' -import { V } from '../utils/maths' -import { Vector2 } from '../types' - -const KEYS_DELTA_MAP = { - ArrowRight: (displacement: number, factor: number = 1) => [displacement * factor, 0], - ArrowLeft: (displacement: number, factor: number = 1) => [-1 * displacement * factor, 0], - ArrowUp: (displacement: number, factor: number = 1) => [0, -1 * displacement * factor], - ArrowDown: (displacement: number, factor: number = 1) => [0, displacement * factor] -} - -export class DragEngine extends CoordinatesEngine<'drag'> { - ingKey = 'dragging' as const - - // superseeds generic Engine reset call - reset(this: DragEngine) { - super.reset() - const state = this.state - state._pointerId = undefined - state._pointerActive = false - state._keyboardActive = false - state._preventScroll = false - state._delayed = false - state.swipe = [0, 0] - state.tap = false - state.canceled = false - state.cancel = this.cancel.bind(this) - } - - setup() { - const state = this.state - - if (state._bounds instanceof HTMLElement) { - const boundRect = state._bounds.getBoundingClientRect() - const targetRect = (state.currentTarget as HTMLElement).getBoundingClientRect() - const _bounds = { - left: boundRect.left - targetRect.left + state.offset[0], - right: boundRect.right - targetRect.right + state.offset[0], - top: boundRect.top - targetRect.top + state.offset[1], - bottom: boundRect.bottom - targetRect.bottom + state.offset[1] - } - state._bounds = coordinatesConfigResolver.bounds(_bounds) as [Vector2, Vector2] - } - } - - cancel() { - const state = this.state - if (state.canceled) return - state.canceled = true - state._active = false - setTimeout(() => { - // we run compute with no event so that kinematics won't be computed - this.compute() - this.emit() - }, 0) - } - - setActive() { - this.state._active = this.state._pointerActive || this.state._keyboardActive - } - - // superseeds Engine clean function - clean() { - this.pointerClean() - this.state._pointerActive = false - this.state._keyboardActive = false - super.clean() - } - - pointerDown(event: PointerEvent) { - const config = this.config - const state = this.state - - if ( - event.buttons != null && - // If the user submits an array as pointer.buttons, don't start the drag - // if event.buttons isn't included inside that array. - (Array.isArray(config.pointerButtons) - ? !config.pointerButtons.includes(event.buttons) - : // If the user submits a number as pointer.buttons, refuse the drag if - // config.pointerButtons is different than `-1` and if event.buttons - // doesn't match the combination. - config.pointerButtons !== -1 && config.pointerButtons !== event.buttons) - ) - return - - const ctrlIds = this.ctrl.setEventIds(event) - // We need to capture all pointer ids so that we can keep track of them when - // they're released off the target - if (config.pointerCapture) { - ;(event.target as HTMLElement).setPointerCapture(event.pointerId) - } - - if ( - // in some situations (https://github.com/pmndrs/use-gesture/issues/494#issuecomment-1127584116) - // like when a new browser tab is opened during a drag gesture, the drag - // can be interrupted mid-way, and can stall. This happens because the - // pointerId that initiated the gesture is lost, and since the drag - // persists until that pointerId is lifted with pointerup, it never ends. - // - // Therefore, when we detect that only one pointer is pressing the screen, - // we consider that the gesture can proceed. - ctrlIds && - ctrlIds.size > 1 && - state._pointerActive - ) - return - - this.start(event) - this.setupPointer(event) - - state._pointerId = pointerId(event) - state._pointerActive = true - - this.computeValues(pointerValues(event)) - this.computeInitial() - - if (config.preventScrollAxis && getPointerType(event) !== 'mouse') { - // when preventScrollAxis is set we don't consider the gesture active - // until it's deliberate - state._active = false - this.setupScrollPrevention(event) - } else if (config.delay > 0) { - this.setupDelayTrigger(event) - // makes sure we emit all events when `triggerAllEvents` flag is `true` - if (config.triggerAllEvents) { - this.compute(event) - this.emit() - } - } else { - this.startPointerDrag(event) - } - } - - startPointerDrag(event: PointerEvent) { - const state = this.state - state._active = true - state._preventScroll = true - state._delayed = false - - this.compute(event) - this.emit() - } - - pointerMove(event: PointerEvent) { - const state = this.state - const config = this.config - - if (!state._pointerActive) return - - const id = pointerId(event) - if (state._pointerId !== undefined && id !== state._pointerId) return - const _values = pointerValues(event) - - if (document.pointerLockElement === event.target) { - state._delta = [event.movementX, event.movementY] - } else { - state._delta = V.sub(_values, state._values) - this.computeValues(_values) - } - - V.addTo(state._movement, state._delta) - this.compute(event) - - // if the gesture is delayed but deliberate, then we can start it - // immediately. - if (state._delayed && state.intentional) { - this.timeoutStore.remove('dragDelay') - // makes sure `first` is still true when moving for the first time after a - // delay. - state.active = false - this.startPointerDrag(event) - return - } - - if (config.preventScrollAxis && !state._preventScroll) { - if (state.axis) { - if (state.axis === config.preventScrollAxis || config.preventScrollAxis === 'xy') { - state._active = false - this.clean() - return - } else { - this.timeoutStore.remove('startPointerDrag') - this.startPointerDrag(event) - return - } - } else { - return - } - } - - this.emit() - } - - pointerUp(event: PointerEvent) { - this.ctrl.setEventIds(event) - // We release the pointer id if it has pointer capture - try { - if (this.config.pointerCapture && (event.target as HTMLElement).hasPointerCapture(event.pointerId)) { - // this shouldn't be necessary as it should be automatic when releasing the pointer - ;(event.target as HTMLElement).releasePointerCapture(event.pointerId) - } - } catch { - if (process.env.NODE_ENV === 'development') { - // eslint-disable-next-line no-console - console.warn( - `[@use-gesture]: If you see this message, it's likely that you're using an outdated version of \`@react-three/fiber\`. \n\nPlease upgrade to the latest version.` - ) - } - } - - const state = this.state - const config = this.config - - if (!state._active || !state._pointerActive) return - - const id = pointerId(event) - if (state._pointerId !== undefined && id !== state._pointerId) return - - this.state._pointerActive = false - this.setActive() - this.compute(event) - - const [dx, dy] = state._distance - state.tap = dx <= config.tapsThreshold && dy <= config.tapsThreshold - - if (state.tap && config.filterTaps) { - state._force = true - } else { - const [_dx, _dy] = state._delta - const [_mx, _my] = state._movement - const [svx, svy] = config.swipe.velocity - const [sx, sy] = config.swipe.distance - const sdt = config.swipe.duration - - if (state.elapsedTime < sdt) { - const _vx = Math.abs(_dx / state.timeDelta) - const _vy = Math.abs(_dy / state.timeDelta) - - if (_vx > svx && Math.abs(_mx) > sx) state.swipe[0] = Math.sign(_dx) - if (_vy > svy && Math.abs(_my) > sy) state.swipe[1] = Math.sign(_dy) - } - } - - this.emit() - } - - pointerClick(event: MouseEvent) { - // event.detail indicates the number of buttons being pressed. When it's - // null, it's likely to be a keyboard event from the Enter Key that could - // be used for accessibility, and therefore shouldn't be prevented. - // See https://github.com/pmndrs/use-gesture/issues/530 - if (!this.state.tap && event.detail > 0) { - event.preventDefault() - event.stopPropagation() - } - } - - setupPointer(event: PointerEvent) { - const config = this.config - const device = config.device - - if (process.env.NODE_ENV === 'development') { - try { - if (device === 'pointer' && config.preventScrollDelay === undefined) { - // @ts-ignore (warning for r3f) - const currentTarget = 'uv' in event ? event.sourceEvent.currentTarget : event.currentTarget - const style = window.getComputedStyle(currentTarget) - if (style.touchAction === 'auto') { - // eslint-disable-next-line no-console - console.warn( - `[@use-gesture]: The drag target has its \`touch-action\` style property set to \`auto\`. It is recommended to add \`touch-action: 'none'\` so that the drag gesture behaves correctly on touch-enabled devices. For more information read this: https://use-gesture.netlify.app/docs/extras/#touch-action.\n\nThis message will only show in development mode. It won't appear in production. If this is intended, you can ignore it.`, - currentTarget - ) - } - } - } catch {} - } - - if (config.pointerLock) { - ;(event.currentTarget as HTMLElement).requestPointerLock() - } - - if (!config.pointerCapture) { - this.eventStore.add(this.sharedConfig.window, device, 'change', this.pointerMove.bind(this)) - this.eventStore.add(this.sharedConfig.window, device, 'end', this.pointerUp.bind(this)) - this.eventStore.add(this.sharedConfig.window, device, 'cancel', this.pointerUp.bind(this)) - } - } - - pointerClean() { - if (this.config.pointerLock && document.pointerLockElement === this.state.currentTarget) { - document.exitPointerLock() - } - } - - preventScroll(event: PointerEvent) { - if (this.state._preventScroll && event.cancelable) { - event.preventDefault() - } - } - - setupScrollPrevention(event: PointerEvent) { - // fixes https://github.com/pmndrs/use-gesture/issues/497 - this.state._preventScroll = false - persistEvent(event) - // we add window listeners that will prevent the scroll when the user has started dragging - const remove = this.eventStore.add(this.sharedConfig.window, 'touch', 'change', this.preventScroll.bind(this), { - passive: false - }) - this.eventStore.add(this.sharedConfig.window, 'touch', 'end', remove) - this.eventStore.add(this.sharedConfig.window, 'touch', 'cancel', remove) - this.timeoutStore.add('startPointerDrag', this.startPointerDrag.bind(this), this.config.preventScrollDelay!, event) - } - - setupDelayTrigger(event: PointerEvent) { - this.state._delayed = true - this.timeoutStore.add( - 'dragDelay', - () => { - // forces drag to start no matter the threshold when delay is reached - this.state._step = [0, 0] - this.startPointerDrag(event) - }, - this.config.delay - ) - } - - keyDown(event: KeyboardEvent) { - // @ts-ignore - const deltaFn = KEYS_DELTA_MAP[event.key] - if (deltaFn) { - const state = this.state - const factor = event.shiftKey ? 10 : event.altKey ? 0.1 : 1 - - this.start(event) - - state._delta = deltaFn(this.config.keyboardDisplacement, factor) - state._keyboardActive = true - V.addTo(state._movement, state._delta) - - this.compute(event) - this.emit() - } - } - - keyUp(event: KeyboardEvent) { - if (!(event.key in KEYS_DELTA_MAP)) return - - this.state._keyboardActive = false - this.setActive() - this.compute(event) - this.emit() - } - - bind(bindFunction: any) { - const device = this.config.device - - bindFunction(device, 'start', this.pointerDown.bind(this)) - - if (this.config.pointerCapture) { - bindFunction(device, 'change', this.pointerMove.bind(this)) - bindFunction(device, 'end', this.pointerUp.bind(this)) - bindFunction(device, 'cancel', this.pointerUp.bind(this)) - bindFunction('lostPointerCapture', '', this.pointerUp.bind(this)) - } - - if (this.config.keys) { - bindFunction('key', 'down', this.keyDown.bind(this)) - bindFunction('key', 'up', this.keyUp.bind(this)) - } - if (this.config.filterTaps) { - bindFunction('click', '', this.pointerClick.bind(this), { capture: true, passive: false }) - } - } -} - -function persistEvent(event: PointerEvent) { - // @ts-ignore - 'persist' in event && typeof event.persist === 'function' && event.persist() -} diff --git a/node_modules/@use-gesture/core/src/engines/Engine.ts b/node_modules/@use-gesture/core/src/engines/Engine.ts deleted file mode 100644 index 784b525d..00000000 --- a/node_modules/@use-gesture/core/src/engines/Engine.ts +++ /dev/null @@ -1,386 +0,0 @@ -import { Controller } from '../Controller' -import { getEventDetails } from '../utils/events' -import { call } from '../utils/fn' -import { V, computeRubberband } from '../utils/maths' -import { GestureKey, IngKey, State, Vector2 } from '../types' -import { NonUndefined } from '../types' - -/** - * The lib doesn't compute the kinematics on the last event of the gesture - * (i.e. for a drag gesture, the `pointerup` coordinates will generally match the - * last `pointermove` coordinates which would result in all drags ending with a - * `[0,0]` velocity). However, when the timestamp difference between the last - * event (ie pointerup) and the before last event (ie pointermove) is greater - * than BEFORE_LAST_KINEMATICS_DELAY, the kinematics are computed (which would - * mean that if you release your drag after stopping for more than - * BEFORE_LAST_KINEMATICS_DELAY, the velocity will be indeed 0). - * - * See https://github.com/pmndrs/use-gesture/issues/332 for more details. - */ - -const BEFORE_LAST_KINEMATICS_DELAY = 32 - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export interface Engine { - /** - * Function that some gestures can use to add initilization - * properties to the state when it is created. - */ - init?(): void - /** - * Setup function that some gestures can use to set additional properties of - * the state when the gesture starts. - */ - setup?(): void - /** - * Function used by some gestures to determine the intentionality of a - * a movement depending on thresholds. The intent function can change the - * `state._active` or `state._blocked` flags if the gesture isn't intentional. - * @param event - */ - axisIntent?(event?: UIEvent): void - - restrictToAxis?(movement: Vector2): void -} - -export abstract class Engine { - /** - * The Controller handling state. - */ - ctrl: Controller - /** - * The gesture key ('drag' | 'pinch' | 'wheel' | 'scroll' | 'move' | 'hover') - */ - readonly key: Key - /** - * The key representing the active state of the gesture in the shared state. - * ('dragging' | 'pinching' | 'wheeling' | 'scrolling' | 'moving' | 'hovering') - */ - abstract readonly ingKey: IngKey - /** - * The arguments passed to the `bind` function. - */ - - /** - * State prop that aliases state values (`xy` or `da`). - */ - abstract readonly aliasKey: string - - args: any[] - - constructor(ctrl: Controller, args: any[], key: Key) { - this.ctrl = ctrl - this.args = args - this.key = key - - if (!this.state) { - this.state = {} as any - this.computeValues([0, 0]) - this.computeInitial() - - if (this.init) this.init() - this.reset() - } - } - /** - * Function implemented by gestures that compute the offset from the state - * movement. - */ - abstract computeOffset(): void - /** - * Function implemented by the gestures that compute the movement from the - * corrected offset (after bounds and potential rubberbanding). - */ - abstract computeMovement(): void - /** - * Executes the bind function so that listeners are properly set by the - * Controller. - * @param bindFunction - */ - abstract bind( - bindFunction: ( - device: string, - action: string, - handler: (event: any) => void, - options?: AddEventListenerOptions - ) => void - ): void - - /** - * Shortcut to the gesture state read from the Controller. - */ - get state() { - return this.ctrl.state[this.key]! - } - set state(state) { - this.ctrl.state[this.key] = state - } - /** - * Shortcut to the shared state read from the Controller - */ - get shared() { - return this.ctrl.state.shared - } - /** - * Shortcut to the gesture event store read from the Controller. - */ - get eventStore() { - return this.ctrl.gestureEventStores[this.key]! - } - /** - * Shortcut to the gesture timeout store read from the Controller. - */ - get timeoutStore() { - return this.ctrl.gestureTimeoutStores[this.key]! - } - /** - * Shortcut to the gesture config read from the Controller. - */ - get config() { - return this.ctrl.config[this.key]! - } - /** - * Shortcut to the shared config read from the Controller. - */ - get sharedConfig() { - return this.ctrl.config.shared - } - /** - * Shortcut to the gesture handler read from the Controller. - */ - get handler() { - return this.ctrl.handlers[this.key]! - } - - reset() { - const { state, shared, ingKey, args } = this - shared[ingKey] = state._active = state.active = state._blocked = state._force = false - state._step = [false, false] - state.intentional = false - state._movement = [0, 0] - state._distance = [0, 0] - state._direction = [0, 0] - state._delta = [0, 0] - // prettier-ignore - state._bounds = [[-Infinity, Infinity], [-Infinity, Infinity]] - state.args = args - state.axis = undefined - state.memo = undefined - state.elapsedTime = state.timeDelta = 0 - state.direction = [0, 0] - state.distance = [0, 0] - state.overflow = [0, 0] - state._movementBound = [false, false] - state.velocity = [0, 0] - state.movement = [0, 0] - state.delta = [0, 0] - state.timeStamp = 0 - } - /** - * Function ran at the start of the gesture. - * @param event - */ - start(event: NonUndefined['event']) { - const state = this.state - const config = this.config - if (!state._active) { - this.reset() - this.computeInitial() - - state._active = true - state.target = event.target! - state.currentTarget = event.currentTarget! - state.lastOffset = config.from ? call(config.from, state) : state.offset - state.offset = state.lastOffset - state.startTime = state.timeStamp = event.timeStamp - } - } - - /** - * Assign raw values to `state._values` and transformed values to - * `state.values`. - * @param values - */ - computeValues(values: Vector2) { - const state = this.state - state._values = values - // transforming values into user-defined coordinates (#402) - state.values = this.config.transform(values) - } - - /** - * Assign `state._values` to `state._initial` and transformed `state.values` to - * `state.initial`. - * @param values - */ - computeInitial() { - const state = this.state - state._initial = state._values - state.initial = state.values - } - - /** - * Computes all sorts of state attributes, including kinematics. - * @param event - */ - compute(event?: NonUndefined['event']) { - const { state, config, shared } = this - state.args = this.args - - let dt = 0 - - if (event) { - // sets the shared state with event properties - state.event = event - // if config.preventDefault is true, then preventDefault - if (config.preventDefault && event.cancelable) state.event.preventDefault() - state.type = event.type - shared.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size - shared.locked = !!document.pointerLockElement - Object.assign(shared, getEventDetails(event)) - shared.down = shared.pressed = shared.buttons % 2 === 1 || shared.touches > 0 - - // sets time stamps - dt = event.timeStamp - state.timeStamp - state.timeStamp = event.timeStamp - state.elapsedTime = state.timeStamp - state.startTime - } - - // only compute _distance if the state is active otherwise we might compute it - // twice when the gesture ends because state._delta wouldn't have changed on - // the last frame. - if (state._active) { - const _absoluteDelta = state._delta.map(Math.abs) as Vector2 - V.addTo(state._distance, _absoluteDelta) - } - - // let's run intentionality check. - if (this.axisIntent) this.axisIntent(event) - - // _movement is calculated by each gesture engine - const [_m0, _m1] = state._movement - const [t0, t1] = config.threshold - - const { _step, values } = state - - if (config.hasCustomTransform) { - // When the user is using a custom transform, we're using `_step` to store - // the first value passing the threshold. - if (_step[0] === false) _step[0] = Math.abs(_m0) >= t0 && values[0] - if (_step[1] === false) _step[1] = Math.abs(_m1) >= t1 && values[1] - } else { - // `_step` will hold the threshold at which point the gesture was triggered. - // The threshold is signed depending on which direction triggered it. - if (_step[0] === false) _step[0] = Math.abs(_m0) >= t0 && Math.sign(_m0) * t0 - if (_step[1] === false) _step[1] = Math.abs(_m1) >= t1 && Math.sign(_m1) * t1 - } - - state.intentional = _step[0] !== false || _step[1] !== false - - if (!state.intentional) return - - const movement: Vector2 = [0, 0] - - if (config.hasCustomTransform) { - const [v0, v1] = values - movement[0] = _step[0] !== false ? v0 - _step[0] : 0 - movement[1] = _step[1] !== false ? v1 - _step[1] : 0 - } else { - movement[0] = _step[0] !== false ? _m0 - _step[0] : 0 - movement[1] = _step[1] !== false ? _m1 - _step[1] : 0 - } - - if (this.restrictToAxis && !state._blocked) this.restrictToAxis(movement) - - const previousOffset = state.offset - - const gestureIsActive = (state._active && !state._blocked) || state.active - - if (gestureIsActive) { - state.first = state._active && !state.active - state.last = !state._active && state.active - state.active = shared[this.ingKey] = state._active - - if (event) { - if (state.first) { - if ('bounds' in config) state._bounds = call(config.bounds, state) - if (this.setup) this.setup() - } - - state.movement = movement - this.computeOffset() - } - } - - const [ox, oy] = state.offset - const [[x0, x1], [y0, y1]] = state._bounds - state.overflow = [ox < x0 ? -1 : ox > x1 ? 1 : 0, oy < y0 ? -1 : oy > y1 ? 1 : 0] - - // _movementBound will store the latest _movement value - // before it went off bounds. - state._movementBound[0] = state.overflow[0] - ? state._movementBound[0] === false - ? state._movement[0] - : state._movementBound[0] - : false - - state._movementBound[1] = state.overflow[1] - ? state._movementBound[1] === false - ? state._movement[1] - : state._movementBound[1] - : false - - // @ts-ignore - const rubberband: Vector2 = state._active ? config.rubberband || [0, 0] : [0, 0] - state.offset = computeRubberband(state._bounds, state.offset, rubberband) - state.delta = V.sub(state.offset, previousOffset) - - this.computeMovement() - - if (gestureIsActive && (!state.last || dt > BEFORE_LAST_KINEMATICS_DELAY)) { - state.delta = V.sub(state.offset, previousOffset) - const absoluteDelta = state.delta.map(Math.abs) as Vector2 - - V.addTo(state.distance, absoluteDelta) - state.direction = state.delta.map(Math.sign) as Vector2 - state._direction = state._delta.map(Math.sign) as Vector2 - - // calculates kinematics unless the gesture starts or ends or if the - // dt === 0 (which can happen on high frame rate monitors, see issue #581) - // because of privacy protection: - // https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp#reduced_time_precision - if (!state.first && dt > 0) { - state.velocity = [absoluteDelta[0] / dt, absoluteDelta[1] / dt] - state.timeDelta = dt - } - } - } - /** - * Fires the gesture handler. - */ - emit() { - const state = this.state - const shared = this.shared - const config = this.config - - if (!state._active) this.clean() - - // we don't trigger the handler if the gesture is blocked or non intentional, - // unless the `_force` flag was set or the `triggerAllEvents` option was set - // to true in the config. - if ((state._blocked || !state.intentional) && !state._force && !config.triggerAllEvents) return - - // @ts-ignore - const memo = this.handler({ ...shared, ...state, [this.aliasKey]: state.values }) - - // Sets memo to the returned value of the handler (unless it's undefined) - if (memo !== undefined) state.memo = memo - } - /** - * Cleans the gesture timeouts and event listeners. - */ - clean() { - this.eventStore.clean() - this.timeoutStore.clean() - } -} diff --git a/node_modules/@use-gesture/core/src/engines/HoverEngine.ts b/node_modules/@use-gesture/core/src/engines/HoverEngine.ts deleted file mode 100644 index 37372715..00000000 --- a/node_modules/@use-gesture/core/src/engines/HoverEngine.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { CoordinatesEngine } from './CoordinatesEngine' -import { pointerValues } from '../utils/events' -import { V } from '../utils/maths' - -export class HoverEngine extends CoordinatesEngine<'hover'> { - ingKey = 'hovering' as const - - enter(event: PointerEvent) { - if (this.config.mouseOnly && event.pointerType !== 'mouse') return - this.start(event) - this.computeValues(pointerValues(event)) - - this.compute(event) - this.emit() - } - - leave(event: PointerEvent) { - if (this.config.mouseOnly && event.pointerType !== 'mouse') return - - const state = this.state - if (!state._active) return - - state._active = false - const values = pointerValues(event) - state._movement = state._delta = V.sub(values, state._values) - - this.computeValues(values) - this.compute(event) - - state.delta = state.movement - this.emit() - } - - bind(bindFunction: any) { - bindFunction('pointer', 'enter', this.enter.bind(this)) - bindFunction('pointer', 'leave', this.leave.bind(this)) - } -} diff --git a/node_modules/@use-gesture/core/src/engines/MoveEngine.ts b/node_modules/@use-gesture/core/src/engines/MoveEngine.ts deleted file mode 100644 index 3416e16c..00000000 --- a/node_modules/@use-gesture/core/src/engines/MoveEngine.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { CoordinatesEngine } from './CoordinatesEngine' -import { pointerValues } from '../utils/events' -import { V } from '../utils/maths' - -export class MoveEngine extends CoordinatesEngine<'move'> { - ingKey = 'moving' as const - - move(event: PointerEvent) { - if (this.config.mouseOnly && event.pointerType !== 'mouse') return - if (!this.state._active) this.moveStart(event) - else this.moveChange(event) - this.timeoutStore.add('moveEnd', this.moveEnd.bind(this)) - } - - moveStart(event: PointerEvent) { - this.start(event) - this.computeValues(pointerValues(event)) - this.compute(event) - this.computeInitial() - this.emit() - } - - moveChange(event: PointerEvent) { - if (!this.state._active) return - const values = pointerValues(event) - const state = this.state - state._delta = V.sub(values, state._values) - V.addTo(state._movement, state._delta) - - this.computeValues(values) - - this.compute(event) - this.emit() - } - - moveEnd(event?: PointerEvent) { - if (!this.state._active) return - this.state._active = false - this.compute(event) - this.emit() - } - - bind(bindFunction: any) { - bindFunction('pointer', 'change', this.move.bind(this)) - bindFunction('pointer', 'leave', this.moveEnd.bind(this)) - } -} diff --git a/node_modules/@use-gesture/core/src/engines/PinchEngine.ts b/node_modules/@use-gesture/core/src/engines/PinchEngine.ts deleted file mode 100644 index fb3dc36a..00000000 --- a/node_modules/@use-gesture/core/src/engines/PinchEngine.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { Engine } from './Engine' -import { touchDistanceAngle, distanceAngle, wheelValues } from '../utils/events' -import { V } from '../utils/maths' -import { Vector2, WebKitGestureEvent } from '../types' -import { clampStateInternalMovementToBounds } from '../utils/state' - -const SCALE_ANGLE_RATIO_INTENT_DEG = 30 -const PINCH_WHEEL_RATIO = 100 - -export class PinchEngine extends Engine<'pinch'> { - ingKey = 'pinching' as const - aliasKey = 'da' - - init() { - this.state.offset = [1, 0] - this.state.lastOffset = [1, 0] - this.state._pointerEvents = new Map() - } - - // superseeds generic Engine reset call - reset() { - super.reset() - const state = this.state - state._touchIds = [] - state.canceled = false - state.cancel = this.cancel.bind(this) - state.turns = 0 - } - - computeOffset() { - const { type, movement, lastOffset } = this.state - if (type === 'wheel') { - this.state.offset = V.add(movement, lastOffset) - } else { - this.state.offset = [(1 + movement[0]) * lastOffset[0], movement[1] + lastOffset[1]] - } - } - - computeMovement() { - const { offset, lastOffset } = this.state - this.state.movement = [offset[0] / lastOffset[0], offset[1] - lastOffset[1]] - } - - axisIntent() { - const state = this.state - const [_m0, _m1] = state._movement - if (!state.axis) { - const axisMovementDifference = Math.abs(_m0) * SCALE_ANGLE_RATIO_INTENT_DEG - Math.abs(_m1) - if (axisMovementDifference < 0) state.axis = 'angle' - else if (axisMovementDifference > 0) state.axis = 'scale' - } - } - - restrictToAxis(v: Vector2) { - if (this.config.lockDirection) { - if (this.state.axis === 'scale') v[1] = 0 - else if (this.state.axis === 'angle') v[0] = 0 - } - } - - cancel() { - const state = this.state - if (state.canceled) return - setTimeout(() => { - state.canceled = true - state._active = false - // we run compute with no event so that kinematics won't be computed - this.compute() - this.emit() - }, 0) - } - - touchStart(event: TouchEvent) { - this.ctrl.setEventIds(event) - const state = this.state - const ctrlTouchIds = this.ctrl.touchIds - - if (state._active) { - // check that the touchIds that initiated the gesture are still enabled - // This is useful for when the page loses track of the pointers (minifying - // gesture on iPad). - if (state._touchIds.every((id) => ctrlTouchIds.has(id))) return - // The gesture is still active, but probably didn't have the opportunity to - // end properly, so we restart the pinch. - } - - if (ctrlTouchIds.size < 2) return - - this.start(event) - state._touchIds = Array.from(ctrlTouchIds).slice(0, 2) as [number, number] - - const payload = touchDistanceAngle(event, state._touchIds) - - if (!payload) return - this.pinchStart(event, payload) - } - - pointerStart(event: PointerEvent) { - if (event.buttons != null && event.buttons % 2 !== 1) return - this.ctrl.setEventIds(event) - ;(event.target as HTMLElement).setPointerCapture(event.pointerId) - const state = this.state - const _pointerEvents = state._pointerEvents - const ctrlPointerIds = this.ctrl.pointerIds - - if (state._active) { - // see touchStart comment - if (Array.from(_pointerEvents.keys()).every((id) => ctrlPointerIds.has(id))) return - } - - if (_pointerEvents.size < 2) { - _pointerEvents.set(event.pointerId, event) - } - - if (state._pointerEvents.size < 2) return - - this.start(event) - - // @ts-ignore - const payload = distanceAngle(...Array.from(_pointerEvents.values())) - - if (!payload) return - this.pinchStart(event, payload) - } - - pinchStart(event: PointerEvent | TouchEvent, payload: { distance: number; angle: number; origin: Vector2 }) { - const state = this.state - state.origin = payload.origin - this.computeValues([payload.distance, payload.angle]) - this.computeInitial() - - this.compute(event) - this.emit() - } - - touchMove(event: TouchEvent) { - if (!this.state._active) return - const payload = touchDistanceAngle(event, this.state._touchIds) - - if (!payload) return - this.pinchMove(event, payload) - } - - pointerMove(event: PointerEvent) { - const _pointerEvents = this.state._pointerEvents - if (_pointerEvents.has(event.pointerId)) { - _pointerEvents.set(event.pointerId, event) - } - if (!this.state._active) return - // @ts-ignore - const payload = distanceAngle(...Array.from(_pointerEvents.values())) - - if (!payload) return - this.pinchMove(event, payload) - } - - pinchMove(event: PointerEvent | TouchEvent, payload: { distance: number; angle: number; origin: Vector2 }) { - const state = this.state - const prev_a = state._values[1] - const delta_a = payload.angle - prev_a - - let delta_turns = 0 - if (Math.abs(delta_a) > 270) delta_turns += Math.sign(delta_a) - - this.computeValues([payload.distance, payload.angle - 360 * delta_turns]) - - state.origin = payload.origin - state.turns = delta_turns - state._movement = [state._values[0] / state._initial[0] - 1, state._values[1] - state._initial[1]] - - this.compute(event) - this.emit() - } - - touchEnd(event: TouchEvent) { - this.ctrl.setEventIds(event) - if (!this.state._active) return - - if (this.state._touchIds.some((id) => !this.ctrl.touchIds.has(id))) { - this.state._active = false - - this.compute(event) - this.emit() - } - } - - pointerEnd(event: PointerEvent) { - const state = this.state - this.ctrl.setEventIds(event) - try { - // @ts-ignore r3f - event.target.releasePointerCapture(event.pointerId) - } catch {} - - if (state._pointerEvents.has(event.pointerId)) { - state._pointerEvents.delete(event.pointerId) - } - - if (!state._active) return - - if (state._pointerEvents.size < 2) { - state._active = false - this.compute(event) - this.emit() - } - } - - gestureStart(event: WebKitGestureEvent) { - if (event.cancelable) event.preventDefault() - const state = this.state - - if (state._active) return - - this.start(event) - this.computeValues([event.scale, event.rotation]) - state.origin = [event.clientX, event.clientY] - this.compute(event) - - this.emit() - } - - gestureMove(event: WebKitGestureEvent) { - if (event.cancelable) event.preventDefault() - - if (!this.state._active) return - - const state = this.state - - this.computeValues([event.scale, event.rotation]) - state.origin = [event.clientX, event.clientY] - const _previousMovement = state._movement - state._movement = [event.scale - 1, event.rotation] - state._delta = V.sub(state._movement, _previousMovement) - this.compute(event) - this.emit() - } - - gestureEnd(event: WebKitGestureEvent) { - if (!this.state._active) return - - this.state._active = false - - this.compute(event) - this.emit() - } - - wheel(event: WheelEvent) { - const modifierKey = this.config.modifierKey - if (modifierKey && (Array.isArray(modifierKey) ? !modifierKey.find((k) => event[k]) : !event[modifierKey])) return - if (!this.state._active) this.wheelStart(event) - else this.wheelChange(event) - this.timeoutStore.add('wheelEnd', this.wheelEnd.bind(this)) - } - - wheelStart(event: WheelEvent) { - this.start(event) - this.wheelChange(event) - } - - wheelChange(event: WheelEvent) { - const isR3f = 'uv' in event - if (!isR3f) { - if (event.cancelable) { - event.preventDefault() - } - if (process.env.NODE_ENV === 'development' && !event.defaultPrevented) { - // eslint-disable-next-line no-console - console.warn( - `[@use-gesture]: To properly support zoom on trackpads, try using the \`target\` option.\n\nThis message will only appear in development mode.` - ) - } - } - const state = this.state - state._delta = [(-wheelValues(event)[1] / PINCH_WHEEL_RATIO) * state.offset[0], 0] - V.addTo(state._movement, state._delta) - - // _movement rolls back to when it passed the bounds. - clampStateInternalMovementToBounds(state) - - this.state.origin = [event.clientX, event.clientY] - - this.compute(event) - this.emit() - } - - wheelEnd() { - if (!this.state._active) return - this.state._active = false - this.compute() - this.emit() - } - - bind(bindFunction: any) { - const device = this.config.device - if (!!device) { - // @ts-ignore - bindFunction(device, 'start', this[device + 'Start'].bind(this)) - // @ts-ignore - bindFunction(device, 'change', this[device + 'Move'].bind(this)) - // @ts-ignore - bindFunction(device, 'end', this[device + 'End'].bind(this)) - // @ts-ignore - bindFunction(device, 'cancel', this[device + 'End'].bind(this)) - // @ts-ignore - bindFunction('lostPointerCapture', '', this[device + 'End'].bind(this)) - } - // we try to set a passive listener, knowing that in any case React will - // ignore it. - if (this.config.pinchOnWheel) { - bindFunction('wheel', '', this.wheel.bind(this), { passive: false }) - } - } -} diff --git a/node_modules/@use-gesture/core/src/engines/ScrollEngine.ts b/node_modules/@use-gesture/core/src/engines/ScrollEngine.ts deleted file mode 100644 index 57e7a4d6..00000000 --- a/node_modules/@use-gesture/core/src/engines/ScrollEngine.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { CoordinatesEngine } from './CoordinatesEngine' -import { scrollValues } from '../utils/events' -import { V } from '../utils/maths' - -export class ScrollEngine extends CoordinatesEngine<'scroll'> { - ingKey = 'scrolling' as const - - scroll(event: UIEvent) { - if (!this.state._active) this.start(event) - this.scrollChange(event) - this.timeoutStore.add('scrollEnd', this.scrollEnd.bind(this)) - } - - scrollChange(event: UIEvent) { - if (event.cancelable) event.preventDefault() - const state = this.state - const values = scrollValues(event) - state._delta = V.sub(values, state._values) - V.addTo(state._movement, state._delta) - - this.computeValues(values) - this.compute(event) - - this.emit() - } - - scrollEnd() { - if (!this.state._active) return - this.state._active = false - this.compute() - this.emit() - } - - bind(bindFunction: any) { - bindFunction('scroll', '', this.scroll.bind(this)) - } -} diff --git a/node_modules/@use-gesture/core/src/engines/WheelEngine.ts b/node_modules/@use-gesture/core/src/engines/WheelEngine.ts deleted file mode 100644 index 3721d719..00000000 --- a/node_modules/@use-gesture/core/src/engines/WheelEngine.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CoordinatesEngine } from './CoordinatesEngine' -import { wheelValues } from '../utils/events' -import { V } from '../utils/maths' -import { clampStateInternalMovementToBounds } from '../utils/state' - -export interface WheelEngine extends CoordinatesEngine<'wheel'> { - wheel(this: WheelEngine, event: WheelEvent): void - wheelChange(this: WheelEngine, event: WheelEvent): void - wheelEnd(this: WheelEngine): void -} - -export class WheelEngine extends CoordinatesEngine<'wheel'> { - ingKey = 'wheeling' as const - - wheel(event: WheelEvent) { - if (!this.state._active) this.start(event) - this.wheelChange(event) - this.timeoutStore.add('wheelEnd', this.wheelEnd.bind(this)) - } - - wheelChange(event: WheelEvent) { - const state = this.state - state._delta = wheelValues(event) - V.addTo(state._movement, state._delta) - - // _movement rolls back to when it passed the bounds. - clampStateInternalMovementToBounds(state) - - this.compute(event) - this.emit() - } - - wheelEnd() { - if (!this.state._active) return - this.state._active = false - this.compute() - this.emit() - } - - bind(bindFunction: any) { - bindFunction('wheel', '', this.wheel.bind(this)) - } -} diff --git a/node_modules/@use-gesture/core/src/index.ts b/node_modules/@use-gesture/core/src/index.ts deleted file mode 100644 index c62339ac..00000000 --- a/node_modules/@use-gesture/core/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Controller } from './Controller' -export { parseMergedHandlers } from './parser' diff --git a/node_modules/@use-gesture/core/src/parser.ts b/node_modules/@use-gesture/core/src/parser.ts deleted file mode 100644 index c0c0e6d5..00000000 --- a/node_modules/@use-gesture/core/src/parser.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { FullGestureState, GestureHandlers, GestureKey, InternalHandlers, UserGestureConfig } from './types' -import { EngineMap } from './actions' - -const RE_NOT_NATIVE = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/ - -function sortHandlers(_handlers: GestureHandlers) { - const native: any = {} - const handlers: InternalHandlers = {} - const actions = new Set() - - for (let key in _handlers) { - if (RE_NOT_NATIVE.test(key)) { - actions.add(RegExp.lastMatch) - // @ts-ignore - handlers[key] = _handlers[key] - } else { - // @ts-ignore - native[key] = _handlers[key] - } - } - - return [handlers, native, actions] -} - -type HandlerKey = 'onDrag' | 'onPinch' | 'onWheel' | 'onMove' | 'onScroll' | 'onHover' - -function registerGesture( - actions: Set, - handlers: GestureHandlers, - handlerKey: HandlerKey, - key: GestureKey, - internalHandlers: any, - config: any -) { - if (!actions.has(handlerKey)) return - - if (!EngineMap.has(key)) { - if (process.env.NODE_ENV === 'development') { - // eslint-disable-next-line no-console - console.warn( - `[@use-gesture]: You've created a custom handler that that uses the \`${key}\` gesture but isn't properly configured.\n\nPlease add \`${key}Action\` when creating your handler.` - ) - } - return - } - - const startKey = handlerKey + 'Start' - const endKey = handlerKey + 'End' - - const fn = (state: FullGestureState) => { - let memo = undefined - // @ts-ignore - if (state.first && startKey in handlers) handlers[startKey](state) - // @ts-ignore - if (handlerKey in handlers) memo = handlers[handlerKey](state) - // @ts-ignore - if (state.last && endKey in handlers) handlers[endKey](state) - return memo - } - - internalHandlers[key] = fn - config[key] = config[key] || {} -} - -export function parseMergedHandlers(mergedHandlers: GestureHandlers, mergedConfig: UserGestureConfig) { - const [handlers, nativeHandlers, actions] = sortHandlers(mergedHandlers) - - const internalHandlers = {} - - registerGesture(actions, handlers, 'onDrag', 'drag', internalHandlers, mergedConfig) - registerGesture(actions, handlers, 'onWheel', 'wheel', internalHandlers, mergedConfig) - registerGesture(actions, handlers, 'onScroll', 'scroll', internalHandlers, mergedConfig) - registerGesture(actions, handlers, 'onPinch', 'pinch', internalHandlers, mergedConfig) - registerGesture(actions, handlers, 'onMove', 'move', internalHandlers, mergedConfig) - registerGesture(actions, handlers, 'onHover', 'hover', internalHandlers, mergedConfig) - - return { handlers: internalHandlers, config: mergedConfig, nativeHandlers } -} diff --git a/node_modules/@use-gesture/core/src/types.ts b/node_modules/@use-gesture/core/src/types.ts deleted file mode 100644 index e6945a66..00000000 --- a/node_modules/@use-gesture/core/src/types.ts +++ /dev/null @@ -1,3 +0,0 @@ -// type exports for core - -export * from './types/index' diff --git a/node_modules/@use-gesture/core/src/types/action.ts b/node_modules/@use-gesture/core/src/types/action.ts deleted file mode 100644 index 66e33cc4..00000000 --- a/node_modules/@use-gesture/core/src/types/action.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { ResolverMap } from '../config/resolver' -import type { Controller } from '../Controller' -import type { Engine } from '../engines/Engine' -import { GestureKey } from './config' - -export type EngineClass = { - new (controller: Controller, args: any[], key: Key): Engine -} - -export type Action = { - key: GestureKey - engine: EngineClass - resolver: ResolverMap -} diff --git a/node_modules/@use-gesture/core/src/types/config.ts b/node_modules/@use-gesture/core/src/types/config.ts deleted file mode 100644 index d8fff0b7..00000000 --- a/node_modules/@use-gesture/core/src/types/config.ts +++ /dev/null @@ -1,250 +0,0 @@ -import { State } from './state' -import { Vector2, Target, PointerType, NonUndefined } from './utils' - -export type GestureKey = Exclude -export type CoordinatesKey = Exclude - -export type GenericOptions = { - /** - * Lets you specify a dom node or ref you want to attach the gesture to. - */ - target?: Target - /** - * Lets you specify which window element the gesture should bind events to - * (only relevant for the drag gesture). - */ - window?: EventTarget - /** - * Lets you customize if you want events to be passive or captured. - */ - eventOptions?: AddEventListenerOptions - /** - * When set to false none of the handlers will be fired. - */ - enabled?: boolean - /** - * A function that you can use to transform movement and offset values. Useful - * to map your screen coordinates to custom space coordinates such as a - * canvas. - */ - transform?: (v: Vector2) => Vector2 -} - -export type GestureOptions = GenericOptions & { - /** - * Whether the gesture is enabled. - */ - enabled?: boolean - /** - * Lets you customize if you want events to be passive or captured. - */ - eventOptions?: AddEventListenerOptions - /** - * The position `offset` will start from. - */ - from?: Vector2 | ((state: NonUndefined) => Vector2) - /** - * The handler will fire only when the gesture displacement is greater than - * the threshold. - */ - threshold?: number | Vector2 - /** - * The handler will preventDefault all events when `true`. - */ - preventDefault?: boolean - /** - * Forces the handler to fire even for non intentional displacement (ignores - * the threshold). In that case, the intentional attribute from state will - * remain false until the threshold is reached. - */ - triggerAllEvents?: boolean - /** - * The elasticity coefficient of the gesture when going out of bounds. When - * set to true, the elasticiy coefficient will be defaulted to 0.15 - */ - rubberband?: boolean | number | Vector2 - /** - * A function that you can use to transform movement and offset values. Useful - * to map your screen coordinates to custom space coordinates such as a - * canvas. - */ - transform?: (v: Vector2) => Vector2 -} - -export type Bounds = { - top?: number - bottom?: number - left?: number - right?: number -} - -export type CoordinatesConfig = GestureOptions & { - /** - * The handler will only trigger if a movement is detected on the specified - * axis. - */ - axis?: 'x' | 'y' | 'lock' - /** - * Limits the gesture `offset` to the specified bounds. - */ - bounds?: Bounds | ((state: State[Key]) => Bounds) - /** - * Determines the number of pixels in one direction needed for axises to be - * calculated. - */ - axisThreshold?: number -} - -export type PinchBounds = { min?: number; max?: number } -export type ModifierKey = 'ctrlKey' | 'altKey' | 'metaKey' | null - -export type PinchConfig = GestureOptions<'pinch'> & { - pointer?: { - /** - * If true, pinch will use touch events on touch-enabled devices. - */ - touch?: boolean - } - /** - * Limits the scale `offset` to the specified bounds. - */ - scaleBounds?: PinchBounds | ((state: State['pinch']) => PinchBounds) - /** - * Limits the angle `offset` to the specified bounds. - */ - angleBounds?: PinchBounds | ((state: State['pinch']) => PinchBounds) - /** - * Scales OR rotates when set to 'lock'. - */ - axis?: 'lock' | undefined - /** - * Key that triggers scale when using the wheel. Defaults to `'ctrlKey'`. - */ - modifierKey?: ModifierKey | NonNullable[] - /** - * Whether wheel should trigger a pinch at all. - */ - pinchOnWheel?: boolean -} - -export type DragBounds = Bounds | HTMLElement | { current: HTMLElement | null } - -type MoveAndHoverMouseOnly = { - /** - * If false, onMove or onHover handlers will also fire on touch devices. - */ - mouseOnly?: boolean -} - -export type MoveConfig = CoordinatesConfig<'move'> & MoveAndHoverMouseOnly - -export type HoverConfig = MoveAndHoverMouseOnly - -export type DragConfig = Omit, 'axisThreshold' | 'bounds'> & { - /** - * If true, the component won't trigger your drag logic if the user just clicked on the component. - */ - filterTaps?: boolean - /** - * The maximum total displacement a tap can have - */ - tapsThreshold?: number - /** - * Set this option to true when using with @react-three/fiber objects. - */ - /** - * Limits the gesture `offset` to the specified bounds. Can be a ref or a dom - * node. - */ - bounds?: DragBounds | ((state: State['drag']) => DragBounds) - pointer?: { - /** - * The buttons combination that would trigger the drag. Use `-1` to allow - * for any button combination to start the drag. - */ - buttons?: number | number[] - /** - * If true, drag will use touch events on touch-enabled devices. - */ - touch?: boolean - /** - * If true, drag will use touch events on touch-enabled devices, and use - * mouse events on non touch devices. - */ - mouse?: boolean - /** - * If false, will disable KeyboardEvents that would otherwise trigger the - * drag gesture when the element is focused. Defaults to true. - */ - keys?: boolean - /** - * Doesn't use setPointerCapture when false and delegate drag handling to - * window - */ - capture?: boolean - /** - * Will perform a pointer lock when drag starts, and exit pointer lock when - * drag ends, - */ - lock?: boolean - } - swipe?: { - /** - * The minimum velocity per axis (in pixels / ms) the drag gesture needs to - * reach before the pointer is released. - */ - velocity?: number | Vector2 - /** - * The minimum distance per axis (in pixels) the drag gesture needs to - * travel to trigger a swipe. Defaults to 50. - */ - distance?: number | Vector2 - /** - * The maximum duration in milliseconds that a swipe is detected. Defaults - * to 250. - */ - duration?: number - } - /** - * If set, the drag will be triggered after the duration of the delay (in ms). - * When set to true, delay is defaulted to 250ms. - */ - preventScroll?: boolean | number - /** - * If set, the drag will allow scrolling in the direction of this axis until - * the preventScroll duration has elapsed. Defaults to only 'y'. - */ - preventScrollAxis?: 'x' | 'y' | 'xy' - /** - * If set, the handler will be delayed for the duration of the delay (in ms) - * — or if the user starts moving. When set to true, delay is defaulted - * to 180ms. - */ - delay?: boolean | number - /** - * Key-number record that determines for each device (`'mouse'`, `'touch'`, - * `'pen'`) the number of pixels of drag in one direction needed for axises to - * be calculated. - */ - axisThreshold?: Partial> - /** - * The distance (in pixels) emulated by arrow keys. - */ - keyboardDisplacement?: number -} - -export type UserDragConfig = GenericOptions & DragConfig -export type UserPinchConfig = GenericOptions & PinchConfig -export type UserWheelConfig = GenericOptions & CoordinatesConfig<'wheel'> -export type UserScrollConfig = GenericOptions & CoordinatesConfig<'scroll'> -export type UserMoveConfig = GenericOptions & MoveConfig -export type UserHoverConfig = GenericOptions & HoverConfig - -export type UserGestureConfig = GenericOptions & { - drag?: DragConfig - wheel?: CoordinatesConfig<'wheel'> - scroll?: CoordinatesConfig<'scroll'> - move?: MoveConfig - pinch?: PinchConfig - hover?: { enabled?: boolean } & HoverConfig -} diff --git a/node_modules/@use-gesture/core/src/types/handlers.ts b/node_modules/@use-gesture/core/src/types/handlers.ts deleted file mode 100644 index 2824b3e6..00000000 --- a/node_modules/@use-gesture/core/src/types/handlers.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { FullGestureState, State, EventTypes } from './state' -import { GestureKey } from './config' -import { DOMHandlers, EventHandler } from './utils' - -export type Handler = ( - state: Omit, 'event'> & { event: EventType } -) => any | void - -// if no type is provided in the user generic for a given key -// then return the default EventTypes that key -type check = undefined extends T[Key] ? EventTypes[Key] : T[Key] - -export type UserHandlers = { - onDrag: Handler<'drag', check> - onDragStart: Handler<'drag', check> - onDragEnd: Handler<'drag', check> - onPinch: Handler<'pinch', check> - onPinchStart: Handler<'pinch', check> - onPinchEnd: Handler<'pinch', check> - onWheel: Handler<'wheel', check> - onWheelStart: Handler<'wheel', check> - onWheelEnd: Handler<'wheel', check> - onMove: Handler<'move', check> - onMoveStart: Handler<'move', check> - onMoveEnd: Handler<'move', check> - onScroll: Handler<'scroll', check> - onScrollStart: Handler<'scroll', check> - onScrollEnd: Handler<'scroll', check> - onHover: Handler<'hover', check> -} - -type NativeHandlersKeys = keyof Omit - -type GetEventType = DOMHandlers[Key] extends EventHandler | undefined - ? EventType - : UIEvent - -export type NativeHandlers = { - [key in NativeHandlersKeys]?: ( - state: State['shared'] & { event: undefined extends T[key] ? GetEventType : T[key]; args: any }, - ...args: any - ) => void -} - -// allows overriding the event type from the returned state in handlers -export type AnyHandlerEventTypes = Partial< - { - drag: any - wheel: any - scroll: any - move: any - pinch: any - hover: any - } & { [key in NativeHandlersKeys]: any } -> - -export type GestureHandlers = Partial< - NativeHandlers & UserHandlers -> - -export type InternalHandlers = { [Key in GestureKey]?: Handler } diff --git a/node_modules/@use-gesture/core/src/types/index.ts b/node_modules/@use-gesture/core/src/types/index.ts deleted file mode 100644 index b64cd3d5..00000000 --- a/node_modules/@use-gesture/core/src/types/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './config' -export * from './internalConfig' -export * from './state' -export * from './utils' -export * from './handlers' -export * from './action' diff --git a/node_modules/@use-gesture/core/src/types/internalConfig.ts b/node_modules/@use-gesture/core/src/types/internalConfig.ts deleted file mode 100644 index 460038a8..00000000 --- a/node_modules/@use-gesture/core/src/types/internalConfig.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { GestureKey, CoordinatesKey, ModifierKey } from './config' -import { State } from './state' -import { PointerType, Vector2 } from './utils' - -export type InternalGenericOptions = { - target?: () => EventTarget - eventOptions: AddEventListenerOptions - window: EventTarget - enabled: boolean - transform?: (v: Vector2) => Vector2 -} - -export type InternalGestureOptions = { - enabled: boolean - eventOptions: AddEventListenerOptions - from: Vector2 | ((state: State[Key]) => Vector2) - threshold: Vector2 - preventDefault: boolean - triggerAllEvents: boolean - rubberband: Vector2 - bounds: [Vector2, Vector2] | ((state: State[Key]) => [Vector2, Vector2]) - hasCustomTransform: boolean - transform: (v: Vector2) => Vector2 -} - -export type InternalCoordinatesOptions = InternalGestureOptions & { - axis?: 'x' | 'y' - lockDirection: boolean - axisThreshold: number -} - -export type InternalDragOptions = Omit, 'axisThreshold'> & { - filterTaps: boolean - tapsThreshold: number - pointerButtons: number | number[] - pointerCapture: boolean - preventScrollDelay?: number - preventScrollAxis?: 'x' | 'y' | 'xy' - pointerLock: boolean - keys: boolean - device: 'pointer' | 'touch' | 'mouse' - swipe: { - velocity: Vector2 - distance: Vector2 - duration: number - } - delay: number - axisThreshold: Record - keyboardDisplacement: number -} - -export type InternalPinchOptions = InternalGestureOptions<'pinch'> & { - /** - * When device is undefined, we'll be using wheel to zoom. - */ - device: 'gesture' | 'pointer' | 'touch' | undefined - lockDirection: boolean - modifierKey: ModifierKey | NonNullable[] - pinchOnWheel: boolean -} - -type MoveAndHoverMouseOnly = { - mouseOnly: boolean -} - -export type InternalConfig = { - shared: InternalGenericOptions - drag?: InternalDragOptions - wheel?: InternalCoordinatesOptions<'wheel'> - scroll?: InternalCoordinatesOptions<'scroll'> - move?: InternalCoordinatesOptions<'move'> & MoveAndHoverMouseOnly - hover?: InternalCoordinatesOptions<'hover'> & MoveAndHoverMouseOnly - pinch?: InternalPinchOptions -} diff --git a/node_modules/@use-gesture/core/src/types/state.ts b/node_modules/@use-gesture/core/src/types/state.ts deleted file mode 100644 index 8b85cc3c..00000000 --- a/node_modules/@use-gesture/core/src/types/state.ts +++ /dev/null @@ -1,269 +0,0 @@ -import { GestureKey } from './config' -import { NonUndefined, Vector2, WebKitGestureEvent } from './utils' - -export type IngKey = 'dragging' | 'wheeling' | 'moving' | 'hovering' | 'scrolling' | 'pinching' - -export type SharedGestureState = { - /** - * True if the element is being dragged. - */ - dragging?: boolean - /** - * True if the element is being wheeled. - */ - wheeling?: boolean - /** - * True if the element is being moved. - */ - moving?: boolean - /** - * True if the element is being hovered. - */ - hovering?: boolean - /** - * True if the element is being scrolled. - */ - scrolling?: boolean - /** - * True if the element is being pinched. - */ - pinching?: boolean - /** - * Number of fingers touching the screen. - */ - touches: number - /** - * True when the main mouse button or touch is pressed. - */ - pressed: boolean - /** - * Alias for pressed. - */ - down: boolean - /** - * True if the document is in lock mode. - */ - locked: boolean - /** - * Indicates which buttons are pressed (https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons). - */ - buttons: number - /** - * True when the Shift key is pressed. - */ - shiftKey: boolean - /** - * True when the Alt key is pressed. - */ - altKey: boolean - /** - * True when the Meta key is pressed. - */ - metaKey: boolean - /** - * True when the Control key is pressed. - */ - ctrlKey: boolean -} - -export type CommonGestureState = { - _active: boolean - _blocked: boolean - _force: boolean - _step: [false | number, false | number] - _movementBound: [false | number, false | number] - _values: Vector2 - _initial: Vector2 - _movement: Vector2 - _distance: Vector2 - _direction: Vector2 - _delta: Vector2 - _bounds: [Vector2, Vector2] - /** - * The event triggering the gesture. - */ - event: UIEvent - /** - * The event target. - */ - target: EventTarget - /** - * The event current target. - */ - currentTarget: EventTarget - /** - * True when the gesture is intentional (passed the threshold). - */ - intentional: boolean - /** - * Cumulative distance of the gesture. Deltas are summed with their absolute - * values. - */ - distance: Vector2 - /** - * Displacement of the current gesture. - */ - movement: Vector2 - /** - * Difference between the current movement and the previous movement. - */ - delta: Vector2 - /** - * Cumulative displacements of all gestures (sum of all movements triggered - * by the handler) - */ - offset: Vector2 - /** - * Offset when the gesture started. - */ - lastOffset: Vector2 - /** - * Velocity vector. - */ - velocity: Vector2 - /** - * Current raw values of the gesture. Can be coordinates or distance / angle - * depending on the gesture. - */ - values: Vector2 - /** - * Raw values when the gesture started. - */ - initial: Vector2 - /** - * Direction per axis. `-1` when going down, `1` when going up, `0` when still. - */ - direction: Vector2 - /** - * Bound overflow per axis. `-1` when overflowing bounds to the left/top, `1` when overflowing bounds to the right/bottom. - */ - overflow: Vector2 - /** - * True when it's the first event of the active gesture. - */ - first: boolean - /** - * True when it's the last event of the active gesture. - */ - last: boolean - /** - * True when the gesture is active. - */ - active: boolean - /** - * The timestamp (ms) of when the gesture started. - */ - startTime: number - /** - * The timestamp (ms) of the current event. - */ - timeStamp: number - /** - * Elapsed time (ms) of the current gesture. - */ - elapsedTime: number - /** - * Time delta (ms) with the previous event. - */ - timeDelta: number - /** - * Event type. - */ - type: string - /** - * Value returned by your handler on its previous run. - */ - memo?: any - /** - * The arguments passed to the bind function (only relevant in React when - * using `
`) - */ - args?: any -} - -export type CoordinatesState = CommonGestureState & { - /** - * The initial axis (x or y) of the gesture. - */ - axis: 'x' | 'y' | undefined - /** - * Pointer coordinates (alias to values) - */ - xy: Vector2 -} - -export type DragState = CoordinatesState & { - _pointerId?: number - _pointerActive: boolean - _keyboardActive: boolean - _preventScroll: boolean - _delayed: boolean - /** - * True when the drag gesture has been canceled by the `cancel` function. - */ - canceled: boolean - /** - * Function that can be called to cancel the drag. - */ - cancel(): void - /** - * True if the drag gesture is recognized as a tap (ie when the displacement - * is lower than 3px per axis). - */ - tap: boolean - /** - * [swipeX, swipeY] is [0, 0] if no swipe detected, -1 or 1 otherwise. - */ - swipe: Vector2 -} - -export interface PinchState extends CommonGestureState { - _pointerEvents: Map - _touchIds: [] | [number, number] - /** - * Distance and angle raw values (alias to values). - */ - da: Vector2 - /** - * The initial axis (scale or angle) of the gesture. - */ - axis: 'scale' | 'angle' | undefined - /** - * Coordinates of the center of touch events, or the cursor when using wheel - * to pinch. - */ - origin: Vector2 - /** - * The number of full rotation the current gesture has performed. - */ - turns: number - /** - * True when the pinch gesture has been canceled by the `cancel` function. - */ - canceled: boolean - /** - * Function that can be called to cancel the pinch. - */ - cancel(): void -} - -export type EventTypes = { - drag: PointerEvent | TouchEvent | MouseEvent | KeyboardEvent - wheel: WheelEvent - scroll: UIEvent - move: PointerEvent - hover: PointerEvent - pinch: PointerEvent | TouchEvent | WheelEvent | WebKitGestureEvent -} - -export interface State { - shared: SharedGestureState - drag?: DragState & { event: EventTypes['drag'] } - wheel?: CoordinatesState & { event: EventTypes['wheel'] } - scroll?: CoordinatesState & { event: EventTypes['scroll'] } - move?: CoordinatesState & { event: EventTypes['move'] } - hover?: CoordinatesState & { event: EventTypes['hover'] } - pinch?: PinchState & { event: EventTypes['pinch'] } -} - -export type FullGestureState = SharedGestureState & NonUndefined diff --git a/node_modules/@use-gesture/core/src/types/utils.ts b/node_modules/@use-gesture/core/src/types/utils.ts deleted file mode 100644 index 8fe6101e..00000000 --- a/node_modules/@use-gesture/core/src/types/utils.ts +++ /dev/null @@ -1,197 +0,0 @@ -export type Vector2 = [number, number] -export type WebKitGestureEvent = PointerEvent & { scale: number; rotation: number } -export type Target = EventTarget | { current: EventTarget | null } -export type PointerType = 'mouse' | 'touch' | 'pen' - -// replaces NonUndefined from 4.7 and inferior versions -export type NonUndefined = T extends undefined ? never : T -export type EventHandler = (event: E) => void - -// rip off from React types -export interface DOMHandlers { - // Clipboard Events - onCopy?: EventHandler - onCopyCapture?: EventHandler - onCut?: EventHandler - onCutCapture?: EventHandler - onPaste?: EventHandler - onPasteCapture?: EventHandler - - // Composition Events - onCompositionEnd?: EventHandler - onCompositionEndCapture?: EventHandler - onCompositionStart?: EventHandler - onCompositionStartCapture?: EventHandler - onCompositionUpdate?: EventHandler - onCompositionUpdateCapture?: EventHandler - - // Focus Events - onFocus?: EventHandler - onFocusCapture?: EventHandler - onBlur?: EventHandler - onBlurCapture?: EventHandler - - // Form Events - onChange?: EventHandler - onChangeCapture?: EventHandler - onBeforeInput?: EventHandler - onBeforeInputCapture?: EventHandler - onInput?: EventHandler - onInputCapture?: EventHandler - onReset?: EventHandler - onResetCapture?: EventHandler - onSubmit?: EventHandler - onSubmitCapture?: EventHandler - onInvalid?: EventHandler - onInvalidCapture?: EventHandler - - // Image Events - onLoad?: EventHandler - onLoadCapture?: EventHandler - onError?: EventHandler // also a Media Event - onErrorCapture?: EventHandler // also a Media Event - - // Keyboard Events - onKeyDown?: EventHandler - onKeyDownCapture?: EventHandler - onKeyUp?: EventHandler - onKeyUpCapture?: EventHandler - - // Media Events - onAbort?: EventHandler - onAbortCapture?: EventHandler - onCanPlay?: EventHandler - onCanPlayCapture?: EventHandler - onCanPlayThrough?: EventHandler - onCanPlayThroughCapture?: EventHandler - onDurationChange?: EventHandler - onDurationChangeCapture?: EventHandler - onEmptied?: EventHandler - onEmptiedCapture?: EventHandler - onEncrypted?: EventHandler - onEncryptedCapture?: EventHandler - onEnded?: EventHandler - onEndedCapture?: EventHandler - onLoadedData?: EventHandler - onLoadedDataCapture?: EventHandler - onLoadedMetadata?: EventHandler - onLoadedMetadataCapture?: EventHandler - onLoadStart?: EventHandler - onLoadStartCapture?: EventHandler - onPause?: EventHandler - onPauseCapture?: EventHandler - onPlay?: EventHandler - onPlayCapture?: EventHandler - onPlaying?: EventHandler - onPlayingCapture?: EventHandler - onProgress?: EventHandler - onProgressCapture?: EventHandler - onRateChange?: EventHandler - onRateChangeCapture?: EventHandler - onSeeked?: EventHandler - onSeekedCapture?: EventHandler - onSeeking?: EventHandler - onSeekingCapture?: EventHandler - onStalled?: EventHandler - onStalledCapture?: EventHandler - onSuspend?: EventHandler - onSuspendCapture?: EventHandler - onTimeUpdate?: EventHandler - onTimeUpdateCapture?: EventHandler - onVolumeChange?: EventHandler - onVolumeChangeCapture?: EventHandler - onWaiting?: EventHandler - onWaitingCapture?: EventHandler - - // MouseEvents - onAuxClick?: EventHandler - onAuxClickCapture?: EventHandler - onClick?: EventHandler - onClickCapture?: EventHandler - onContextMenu?: EventHandler - onContextMenuCapture?: EventHandler - onDoubleClick?: EventHandler - onDoubleClickCapture?: EventHandler - onDrag?: EventHandler - onDragCapture?: EventHandler - onDragEnd?: EventHandler - onDragEndCapture?: EventHandler - onDragEnter?: EventHandler - onDragEnterCapture?: EventHandler - onDragExit?: EventHandler - onDragExitCapture?: EventHandler - onDragLeave?: EventHandler - onDragLeaveCapture?: EventHandler - onDragOver?: EventHandler - onDragOverCapture?: EventHandler - onDragStart?: EventHandler - onDragStartCapture?: EventHandler - onDrop?: EventHandler - onDropCapture?: EventHandler - onMouseDown?: EventHandler - onMouseDownCapture?: EventHandler - onMouseEnter?: EventHandler - onMouseLeave?: EventHandler - onMouseMove?: EventHandler - onMouseMoveCapture?: EventHandler - onMouseOut?: EventHandler - onMouseOutCapture?: EventHandler - onMouseOver?: EventHandler - onMouseOverCapture?: EventHandler - onMouseUp?: EventHandler - onMouseUpCapture?: EventHandler - - // Selection Events - onSelect?: EventHandler - onSelectCapture?: EventHandler - - // Touch Events - onTouchCancel?: EventHandler - onTouchCancelCapture?: EventHandler - onTouchEnd?: EventHandler - onTouchEndCapture?: EventHandler - onTouchMove?: EventHandler - onTouchMoveCapture?: EventHandler - onTouchStart?: EventHandler - onTouchStartCapture?: EventHandler - - // Pointer Events - onPointerDown?: EventHandler - onPointerDownCapture?: EventHandler - onPointerMove?: EventHandler - onPointerMoveCapture?: EventHandler - onPointerUp?: EventHandler - onPointerUpCapture?: EventHandler - onPointerCancel?: EventHandler - onPointerCancelCapture?: EventHandler - onPointerEnter?: EventHandler - onPointerLeave?: EventHandler - onPointerOver?: EventHandler - onPointerOverCapture?: EventHandler - onPointerOut?: EventHandler - onPointerOutCapture?: EventHandler - onGotPointerCapture?: EventHandler - onGotPointerCaptureCapture?: EventHandler - onLostPointerCapture?: EventHandler - onLostPointerCaptureCapture?: EventHandler - - // UI Events - onScroll?: EventHandler - onScrollCapture?: EventHandler - - // Wheel Events - onWheel?: EventHandler - onWheelCapture?: EventHandler - - // Animation Events - onAnimationStart?: EventHandler - onAnimationStartCapture?: EventHandler - onAnimationEnd?: EventHandler - onAnimationEndCapture?: EventHandler - onAnimationIteration?: EventHandler - onAnimationIterationCapture?: EventHandler - - // Transition Events - onTransitionEnd?: EventHandler - onTransitionEndCapture?: EventHandler -} diff --git a/node_modules/@use-gesture/core/src/utils.ts b/node_modules/@use-gesture/core/src/utils.ts deleted file mode 100644 index c52fafb6..00000000 --- a/node_modules/@use-gesture/core/src/utils.ts +++ /dev/null @@ -1,3 +0,0 @@ -// additional core exports - -export { rubberbandIfOutOfBounds } from './utils/maths' diff --git a/node_modules/@use-gesture/core/src/utils/events.ts b/node_modules/@use-gesture/core/src/utils/events.ts deleted file mode 100644 index 90ce382c..00000000 --- a/node_modules/@use-gesture/core/src/utils/events.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { PointerType } from '../types' -import { Vector2 } from '../types' - -const EVENT_TYPE_MAP: any = { - pointer: { start: 'down', change: 'move', end: 'up' }, - mouse: { start: 'down', change: 'move', end: 'up' }, - touch: { start: 'start', change: 'move', end: 'end' }, - gesture: { start: 'start', change: 'change', end: 'end' } -} - -function capitalize(string: string) { - if (!string) return '' - return string[0].toUpperCase() + string.slice(1) -} - -const actionsWithoutCaptureSupported = ['enter', 'leave'] - -function hasCapture(capture = false, actionKey: string) { - return capture && !actionsWithoutCaptureSupported.includes(actionKey) -} - -export function toHandlerProp(device: string, action = '', capture: boolean = false) { - const deviceProps = EVENT_TYPE_MAP[device] - const actionKey = deviceProps ? deviceProps[action] || action : action - return 'on' + capitalize(device) + capitalize(actionKey) + (hasCapture(capture, actionKey) ? 'Capture' : '') -} - -const pointerCaptureEvents = ['gotpointercapture', 'lostpointercapture'] - -export function parseProp(prop: string) { - let eventKey = prop.substring(2).toLowerCase() - const passive = !!~eventKey.indexOf('passive') - if (passive) eventKey = eventKey.replace('passive', '') - - const captureKey = pointerCaptureEvents.includes(eventKey) ? 'capturecapture' : 'capture' - // capture = true - const capture = !!~eventKey.indexOf(captureKey) - // pointermovecapture => pointermove - if (capture) eventKey = eventKey.replace('capture', '') - return { device: eventKey, capture, passive } -} - -export function toDomEventType(device: string, action = '') { - const deviceProps = EVENT_TYPE_MAP[device] - const actionKey = deviceProps ? deviceProps[action] || action : action - return device + actionKey -} - -export function isTouch(event: UIEvent) { - return 'touches' in event -} - -export function getPointerType(event: UIEvent): PointerType { - if (isTouch(event)) return 'touch' - if ('pointerType' in event) return (event as PointerEvent).pointerType as PointerType - return 'mouse' -} - -function getCurrentTargetTouchList(event: TouchEvent) { - return Array.from(event.touches).filter( - (e) => e.target === event.currentTarget || (event.currentTarget as Node)?.contains?.(e.target as Node) - ) -} - -function getTouchList(event: TouchEvent) { - return event.type === 'touchend' || event.type === 'touchcancel' ? event.changedTouches : event.targetTouches -} - -function getValueEvent( - event: EventType -): EventType extends TouchEvent ? Touch : PointerEvent { - return (isTouch(event) ? getTouchList(event as TouchEvent)[0] : event) as any -} - -export function distanceAngle(P1: Touch | PointerEvent, P2: Touch | PointerEvent) { - // add a try catch - // attempt to fix https://github.com/pmndrs/use-gesture/issues/551 - try { - const dx = P2.clientX - P1.clientX - const dy = P2.clientY - P1.clientY - const cx = (P2.clientX + P1.clientX) / 2 - const cy = (P2.clientY + P1.clientY) / 2 - - const distance = Math.hypot(dx, dy) - const angle = -(Math.atan2(dx, dy) * 180) / Math.PI - const origin = [cx, cy] as Vector2 - return { angle, distance, origin } - } catch {} - return null -} - -export function touchIds(event: TouchEvent) { - return getCurrentTargetTouchList(event).map((touch) => touch.identifier) -} - -export function touchDistanceAngle(event: TouchEvent, ids: number[]) { - const [P1, P2] = Array.from(event.touches).filter((touch) => ids.includes(touch.identifier)) - return distanceAngle(P1, P2) -} - -export function pointerId(event: PointerEvent | TouchEvent) { - const valueEvent = getValueEvent(event) - return isTouch(event) ? (valueEvent as Touch).identifier : (valueEvent as PointerEvent).pointerId -} - -export function pointerValues(event: PointerEvent | TouchEvent): Vector2 { - // if ('spaceX' in event) return [event.spaceX, event.spaceY] - const valueEvent = getValueEvent(event) - return [valueEvent.clientX, valueEvent.clientY] -} - -// wheel delta defaults from https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js -const LINE_HEIGHT = 40 -const PAGE_HEIGHT = 800 - -export function wheelValues(event: WheelEvent): Vector2 { - let { deltaX, deltaY, deltaMode } = event - // normalize wheel values, especially for Firefox - if (deltaMode === 1) { - deltaX *= LINE_HEIGHT - deltaY *= LINE_HEIGHT - } else if (deltaMode === 2) { - deltaX *= PAGE_HEIGHT - deltaY *= PAGE_HEIGHT - } - return [deltaX, deltaY] -} - -export function scrollValues(event: UIEvent): Vector2 { - // If the currentTarget is the window then we return the scrollX/Y position. - // If not (ie the currentTarget is a DOM element), then we return scrollLeft/Top - const { scrollX, scrollY, scrollLeft, scrollTop } = event.currentTarget as Element & Window - return [scrollX ?? scrollLeft ?? 0, scrollY ?? scrollTop ?? 0] -} - -export function getEventDetails(event: any) { - const payload: any = {} - if ('buttons' in event) payload.buttons = event.buttons - if ('shiftKey' in event) { - const { shiftKey, altKey, metaKey, ctrlKey } = event - Object.assign(payload, { shiftKey, altKey, metaKey, ctrlKey }) - } - return payload -} diff --git a/node_modules/@use-gesture/core/src/utils/fn.ts b/node_modules/@use-gesture/core/src/utils/fn.ts deleted file mode 100644 index 2e92eb24..00000000 --- a/node_modules/@use-gesture/core/src/utils/fn.ts +++ /dev/null @@ -1,27 +0,0 @@ -export function call(v: T | ((...args: any[]) => T), ...args: any[]): T { - if (typeof v === 'function') { - // @ts-ignore - return v(...args) - } else { - return v - } -} - -export function noop() {} - -export function chain(...fns: Function[]): Function { - if (fns.length === 0) return noop - if (fns.length === 1) return fns[0] - - return function (this: any) { - let result - for (const fn of fns) { - result = fn.apply(this, arguments) || result - } - return result - } -} - -export function assignDefault(value: Partial | undefined, fallback: T): T { - return Object.assign({}, fallback, value || {}) -} diff --git a/node_modules/@use-gesture/core/src/utils/maths.ts b/node_modules/@use-gesture/core/src/utils/maths.ts deleted file mode 100644 index 960e6a3c..00000000 --- a/node_modules/@use-gesture/core/src/utils/maths.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Vector2 } from '../types' - -export function clamp(v: number, min: number, max: number) { - return Math.max(min, Math.min(v, max)) -} - -export const V = { - toVector(v: T | [T, T] | undefined, fallback?: T | [T, T]): [T, T] { - if (v === undefined) v = fallback as T | [T, T] - return Array.isArray(v) ? v : [v, v] - }, - add(v1: Vector2, v2: Vector2): Vector2 { - return [v1[0] + v2[0], v1[1] + v2[1]] - }, - sub(v1: Vector2, v2: Vector2): Vector2 { - return [v1[0] - v2[0], v1[1] - v2[1]] - }, - addTo(v1: Vector2, v2: Vector2) { - v1[0] += v2[0] - v1[1] += v2[1] - }, - subTo(v1: Vector2, v2: Vector2) { - v1[0] -= v2[0] - v1[1] -= v2[1] - } -} - -// Based on @aholachek ;) -// https://twitter.com/chpwn/status/285540192096497664 -// iOS constant = 0.55 - -// https://medium.com/@nathangitter/building-fluid-interfaces-ios-swift-9732bb934bf5 - -function rubberband(distance: number, dimension: number, constant: number) { - if (dimension === 0 || Math.abs(dimension) === Infinity) return Math.pow(distance, constant * 5) - return (distance * dimension * constant) / (dimension + constant * distance) -} - -export function rubberbandIfOutOfBounds(position: number, min: number, max: number, constant = 0.15) { - if (constant === 0) return clamp(position, min, max) - if (position < min) return -rubberband(min - position, max - min, constant) + min - if (position > max) return +rubberband(position - max, max - min, constant) + max - return position -} - -export function computeRubberband(bounds: [Vector2, Vector2], [Vx, Vy]: Vector2, [Rx, Ry]: Vector2): Vector2 { - const [[X0, X1], [Y0, Y1]] = bounds - return [rubberbandIfOutOfBounds(Vx, X0, X1, Rx), rubberbandIfOutOfBounds(Vy, Y0, Y1, Ry)] -} diff --git a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.d.ts b/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.d.ts deleted file mode 100644 index c2282174..00000000 --- a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "../../dist/declarations/src/types"; -//# sourceMappingURL=use-gesture-core-types.cjs.d.ts.map diff --git a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.dev.js b/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.dev.js deleted file mode 100644 index eb109abb..00000000 --- a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.dev.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; - diff --git a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.js b/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.js deleted file mode 100644 index f1d8273c..00000000 --- a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./use-gesture-core-types.cjs.prod.js"); -} else { - module.exports = require("./use-gesture-core-types.cjs.dev.js"); -} diff --git a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.prod.js b/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.prod.js deleted file mode 100644 index eb109abb..00000000 --- a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.cjs.prod.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; - diff --git a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.esm.js b/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.esm.js deleted file mode 100644 index 8b137891..00000000 --- a/node_modules/@use-gesture/core/types/dist/use-gesture-core-types.esm.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/@use-gesture/core/types/package.json b/node_modules/@use-gesture/core/types/package.json deleted file mode 100644 index 22e75eac..00000000 --- a/node_modules/@use-gesture/core/types/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/use-gesture-core-types.cjs.js", - "module": "dist/use-gesture-core-types.esm.js" -} diff --git a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.d.ts b/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.d.ts deleted file mode 100644 index 51ad1216..00000000 --- a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "../../dist/declarations/src/utils"; -//# sourceMappingURL=use-gesture-core-utils.cjs.d.ts.map diff --git a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.dev.js b/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.dev.js deleted file mode 100644 index 90fc8447..00000000 --- a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.dev.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var maths = require('../../dist/maths-267f0992.cjs.dev.js'); - - - -exports.rubberbandIfOutOfBounds = maths.rubberbandIfOutOfBounds; diff --git a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.js b/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.js deleted file mode 100644 index 945b3465..00000000 --- a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./use-gesture-core-utils.cjs.prod.js"); -} else { - module.exports = require("./use-gesture-core-utils.cjs.dev.js"); -} diff --git a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.prod.js b/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.prod.js deleted file mode 100644 index 110c748e..00000000 --- a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.cjs.prod.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var maths = require('../../dist/maths-83bc6f64.cjs.prod.js'); - - - -exports.rubberbandIfOutOfBounds = maths.rubberbandIfOutOfBounds; diff --git a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.esm.js b/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.esm.js deleted file mode 100644 index 7013851d..00000000 --- a/node_modules/@use-gesture/core/utils/dist/use-gesture-core-utils.esm.js +++ /dev/null @@ -1 +0,0 @@ -export { r as rubberbandIfOutOfBounds } from '../../dist/maths-0ab39ae9.esm.js'; diff --git a/node_modules/@use-gesture/core/utils/package.json b/node_modules/@use-gesture/core/utils/package.json deleted file mode 100644 index d12579c3..00000000 --- a/node_modules/@use-gesture/core/utils/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/use-gesture-core-utils.cjs.js", - "module": "dist/use-gesture-core-utils.esm.js" -} diff --git a/node_modules/@use-gesture/vanilla/CHANGELOG.md b/node_modules/@use-gesture/vanilla/CHANGELOG.md deleted file mode 100644 index d942e5e7..00000000 --- a/node_modules/@use-gesture/vanilla/CHANGELOG.md +++ /dev/null @@ -1,296 +0,0 @@ -# @use-gesture/vanilla - -## 10.3.1 - -### Patch Changes - -- Updated dependencies [6f6f4a5b4] - - @use-gesture/core@10.3.1 - -## 10.3.0 - -### Patch Changes - -- Updated dependencies [c19ff0b24] -- Updated dependencies [1ee9f42e3] - - @use-gesture/core@10.3.0 - -## 10.2.27 - -### Patch Changes - -- Updated dependencies [0dce2216c] -- Updated dependencies [957aee8b5] -- Updated dependencies [51c6cfcf4] - - @use-gesture/core@10.2.27 - -## 10.2.26 - -### Patch Changes - -- Updated dependencies [db0d934eb] -- Updated dependencies [43e751a51] - - @use-gesture/core@10.2.26 - -## 10.2.25 - -### Patch Changes - -- Updated dependencies [3701753ea] - - @use-gesture/core@10.2.25 - -## 10.2.24 - -### Patch Changes - -- Updated dependencies [60aae2149] - - @use-gesture/core@10.2.24 - -## 10.2.23 - -### Patch Changes - -- Updated dependencies [79684a05f] - - @use-gesture/core@10.2.23 - -## 10.2.22 - -### Patch Changes - -- Updated dependencies [c6215e8ad] - - @use-gesture/core@10.2.22 - -## 10.2.21 - -### Patch Changes - -- Updated dependencies [6f4c09b55] -- Updated dependencies [854f4dfc1] - - @use-gesture/core@10.2.21 - -## 10.2.20 - -### Patch Changes - -- Updated dependencies [de807fddc] - - @use-gesture/core@10.2.20 - -## 10.2.19 - -### Patch Changes - -- Updated dependencies [c7cb407bd] - - @use-gesture/core@10.2.19 - -## 10.2.18 - -### Patch Changes - -- Updated dependencies [115ee1f59] - - @use-gesture/core@10.2.18 - -## 10.2.17 - -### Patch Changes - -- Updated dependencies [48dc6a102] -- Updated dependencies [d73ee4e34] - - @use-gesture/core@10.2.17 - -## 10.2.16 - -### Patch Changes - -- Updated dependencies [a521a171f] - - @use-gesture/core@10.2.16 - -## 10.2.15 - -### Patch Changes - -- Updated dependencies [be1703a6d] - - @use-gesture/core@10.2.15 - -## 10.2.14 - -### Patch Changes - -- Updated dependencies [e82f1c220] - - @use-gesture/core@10.2.14 - -## 10.2.13 - -### Patch Changes - -- 15724eb5c: - Add `setConfig(config)` setter for gestures - - Add `createGesture` to exports -- Updated dependencies [6896094b3] -- Updated dependencies [15724eb5c] - - @use-gesture/core@10.2.13 - -## 10.2.12 - -### Patch Changes - -- 91651b202: Fix config types -- Updated dependencies [91651b202] - - @use-gesture/core@10.2.12 - -## 10.2.11 - -### Patch Changes - -- Updated dependencies [670e6e2db] -- Updated dependencies [5979b1add] - - @use-gesture/core@10.2.11 - -## 10.2.10 - -### Patch Changes - -- Updated dependencies [f593dbe09] - - @use-gesture/core@10.2.10 - -## 10.2.9 - -### Patch Changes - -- Updated dependencies [d86df73b9] - - @use-gesture/core@10.2.9 - -## 10.2.8 - -### Patch Changes - -- Updated dependencies [2c0fde118] - - @use-gesture/core@10.2.8 - -## 10.2.7 - -### Patch Changes - -- Updated dependencies [2d943428c] - - @use-gesture/core@10.2.7 - -## 10.2.6 - -### Patch Changes - -- Updated dependencies [916d178c6] - - @use-gesture/core@10.2.6 - -## 10.2.5 - -### Patch Changes - -- Updated dependencies [cd5533a4c] -- Updated dependencies [548a90985] -- Updated dependencies [c5067dce0] -- Updated dependencies [4eaabaf1a] - - @use-gesture/core@10.2.5 - -## 10.2.4 - -### Patch Changes - -- Updated dependencies [ae631004a] - - @use-gesture/core@10.2.4 - -## 10.2.3 - -### Patch Changes - -- Updated dependencies [8302c5bfd] - - @use-gesture/core@10.2.3 - -## 10.2.2 - -### Patch Changes - -- Updated dependencies [cffaba5ae] - - @use-gesture/core@10.2.2 - -## 10.2.1 - -### Patch Changes - -- Updated dependencies [2f0cd466b] - - @use-gesture/core@10.2.1 - -## 10.2.0 - -### Patch Changes - -- Updated dependencies [b4e6181e7] - - @use-gesture/core@10.2.0 - -## 10.1.6 - -### Patch Changes - -- Updated dependencies [9883b1c78] - - @use-gesture/core@10.1.6 - -## 10.1.5 - -### Patch Changes - -- Updated dependencies [55505c071] - - @use-gesture/core@10.1.5 - -## 10.1.4 - -### Patch Changes - -- Updated dependencies [090ba6b62] - - @use-gesture/core@10.1.4 - -## 10.1.3 - -### Patch Changes - -- Updated dependencies [a9f99ce3c] - - @use-gesture/core@10.1.3 - -## 10.1.2 - -### Patch Changes - -- Updated dependencies [ed0073543] - - @use-gesture/core@10.1.2 - -## 10.1.1 - -### Patch Changes - -- Updated dependencies [8a0bfacb0] -- Updated dependencies [8a0bfacb0] - - @use-gesture/core@10.1.1 - -## 10.1.0 - -### Patch Changes - -- Updated dependencies [b67543ff7] - - @use-gesture/core@10.1.0 - -## 10.0.3 - -### Patch Changes - -- Updated dependencies [de01d7dbb] - - @use-gesture/core@10.0.3 - -## 10.0.2 - -### Patch Changes - -- Updated dependencies [a219d3f69] - - @use-gesture/core@10.0.2 - -## 10.0.1 - -### Patch Changes - -- Updated dependencies [c00c7b1] - - @use-gesture/core@10.0.1 diff --git a/node_modules/@use-gesture/vanilla/LICENSE b/node_modules/@use-gesture/vanilla/LICENSE deleted file mode 100644 index 6a97d2ca..00000000 --- a/node_modules/@use-gesture/vanilla/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present Paul Henschel - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/node_modules/@use-gesture/vanilla/README.md b/node_modules/@use-gesture/vanilla/README.md deleted file mode 100644 index 49bb4275..00000000 --- a/node_modules/@use-gesture/vanilla/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# @use-gesture - -[![npm (tag)](https://img.shields.io/npm/v/@use-gesture/react?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@use-gesture/react) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@use-gesture/react?style=flat&colorA=000000&colorB=000000) ![NPM](https://img.shields.io/npm/l/@use-gesture/react?style=flat&colorA=000000&colorB=000000) [![Discord Shield](https://img.shields.io/discord/740090768164651008?style=flat&colorA=000000&colorB=000000&label=discord&logo=discord&logoColor=ffffff)](https://discord.gg/poimandres) - -@use-gesture is a library that lets you bind richer mouse and touch events to any component or view. With the data you receive, it becomes trivial to set up gestures, and often takes no more than a few lines of code. - -You can use it stand-alone, but to make the most of it you should combine it with an animation library like [react-spring](https://github.com/pmndrs/react-spring), though you can most certainly use any other. - -

- - - - - - -

- -

The demos are real click them!

- -## Installation - -### React - -```bash -#Yarn -yarn add @use-gesture/react - -#NPM -npm install @use-gesture/react -``` - -### Vanilla javascript - -```bash -#Yarn -yarn add @use-gesture/vanilla - -#NPM -npm install @use-gesture/vanilla -``` - -### [Full documentation website](https://use-gesture.netlify.com) - -- [Available Gestures](https://use-gesture.netlify.com/docs/gestures) -- [Gesture State](https://use-gesture.netlify.com/docs/state) -- [Gesture Options](https://use-gesture.netlify.com/docs/options) -- [FAQ](https://use-gesture.netlify.com/docs/faq) - -### Simple example - -

- -

- -
- React - -```jsx -import { useSpring, animated } from '@react-spring/web' -import { useDrag } from '@use-gesture/react' - -function Example() { - const [{ x, y }, api] = useSpring(() => ({ x: 0, y: 0 })) - - // Set the drag hook and define component movement based on gesture data. - const bind = useDrag(({ down, movement: [mx, my] }) => { - api.start({ x: down ? mx : 0, y: down ? my : 0 }) - }) - - // Bind it to a component. - return -} -``` - -
- -
- Vanilla javascript - -```html - -
-``` - -```js -// script.js -const el = document.getElementById('drag') -const gesture = new DragGesture(el, ({ active, movement: [mx, my] }) => { - setActive(active) - anime({ - targets: el, - translateX: active ? mx : 0, - translateY: active ? my : 0, - duration: active ? 0 : 1000 - }) -}) - -// when you want to remove the listener -gesture.destroy() -``` - -
- -The example above makes a `div` draggable so that it follows your mouse on drag, and returns to its initial position on release. - -**Make sure you always set [`touchAction`](https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action) on a draggable element to prevent glitches with the browser native scrolling on touch devices**. - -### Available hooks - -@use-gesture/react exports several hooks that can handle different gestures: - -| Hook | Description | -| ------------ | ------------------------------------------ | -| `useDrag` | Handles the drag gesture | -| `useMove` | Handles mouse move events | -| `useHover` | Handles mouse enter and mouse leave events | -| `useScroll` | Handles scroll events | -| `useWheel` | Handles wheel events | -| `usePinch` | Handles the pinch gesture | -| `useGesture` | Handles multiple gestures in one hook | - -#### [More on the full documentation website...](https://use-gesture.netlify.app/) diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/DragGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/DragGesture.d.ts deleted file mode 100644 index a5c2d634..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/DragGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { EventTypes, Handler, UserDragConfig } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface DragGestureConstructor { - new (target: EventTarget, handler: Handler<'drag', EventType>, config?: UserDragConfig): DragGesture; -} -export interface DragGesture extends Recognizer<'drag'> { -} -export declare const DragGesture: DragGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/Gesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/Gesture.d.ts deleted file mode 100644 index b93d4d4b..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/Gesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AnyHandlerEventTypes, EventTypes, GestureHandlers, UserGestureConfig } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface GestureConstructor { - new (target: EventTarget, handlers: GestureHandlers, config?: UserGestureConfig): Gesture; -} -export interface Gesture extends Recognizer { -} -export declare const Gesture: GestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/HoverGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/HoverGesture.d.ts deleted file mode 100644 index a25d45ed..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/HoverGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { EventTypes, UserHoverConfig, Handler } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface HoverGestureConstructor { - new (target: EventTarget, handler: Handler<'hover', EventType>, config?: UserHoverConfig): HoverGesture; -} -export interface HoverGesture extends Recognizer<'hover'> { -} -export declare const HoverGesture: HoverGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/MoveGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/MoveGesture.d.ts deleted file mode 100644 index 5201eece..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/MoveGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UserMoveConfig, Handler, EventTypes } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface MoveGestureConstructor { - new (target: EventTarget, handler: Handler<'move', EventType>, config?: UserMoveConfig): MoveGesture; -} -export interface MoveGesture extends Recognizer<'move'> { -} -export declare const MoveGesture: MoveGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/PinchGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/PinchGesture.d.ts deleted file mode 100644 index e2b1194b..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/PinchGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UserPinchConfig, Handler, EventTypes } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface PinchGestureConstructor { - new (target: EventTarget, handler: Handler<'pinch', EventType>, config?: UserPinchConfig): PinchGesture; -} -export interface PinchGesture extends Recognizer<'pinch'> { -} -export declare const PinchGesture: PinchGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/Recognizer.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/Recognizer.d.ts deleted file mode 100644 index 251d8a62..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/Recognizer.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { GestureKey, InternalHandlers, NativeHandlers, UserGestureConfig } from '@use-gesture/core/types'; -export declare class Recognizer { - private _gestureKey?; - private _ctrl; - private _target; - constructor(target: EventTarget, handlers: InternalHandlers, config: GK extends keyof UserGestureConfig ? UserGestureConfig[GK] : UserGestureConfig, gestureKey?: GK, nativeHandlers?: NativeHandlers); - destroy(): void; - setConfig(config: GK extends keyof UserGestureConfig ? UserGestureConfig[GK] : UserGestureConfig): void; -} diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/ScrollGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/ScrollGesture.d.ts deleted file mode 100644 index 2fe0e7b2..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/ScrollGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UserScrollConfig, Handler, EventTypes } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface ScrollGestureConstructor { - new (target: EventTarget, handler: Handler<'scroll', EventType>, config?: UserScrollConfig): ScrollGesture; -} -export interface ScrollGesture extends Recognizer<'scroll'> { -} -export declare const ScrollGesture: ScrollGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/WheelGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/WheelGesture.d.ts deleted file mode 100644 index 4d6b0f44..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/WheelGesture.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UserWheelConfig, Handler, EventTypes } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -interface WheelGestureConstructor { - new (target: EventTarget, handler: Handler<'wheel', EventType>, config?: UserWheelConfig): WheelGesture; -} -export interface WheelGesture extends Recognizer<'wheel'> { -} -export declare const WheelGesture: WheelGestureConstructor; -export {}; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/createGesture.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/createGesture.d.ts deleted file mode 100644 index ad3fb79b..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/createGesture.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Action, GestureHandlers, UserGestureConfig } from '@use-gesture/core/types'; -import { Recognizer } from "./Recognizer.js"; -export declare function createGesture(actions: Action[]): (target: EventTarget, _handlers: GestureHandlers, _config?: UserGestureConfig) => Recognizer; diff --git a/node_modules/@use-gesture/vanilla/dist/declarations/src/index.d.ts b/node_modules/@use-gesture/vanilla/dist/declarations/src/index.d.ts deleted file mode 100644 index e2f99b0a..00000000 --- a/node_modules/@use-gesture/vanilla/dist/declarations/src/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export { DragGesture } from "./DragGesture.js"; -export { PinchGesture } from "./PinchGesture.js"; -export { WheelGesture } from "./WheelGesture.js"; -export { ScrollGesture } from "./ScrollGesture.js"; -export { MoveGesture } from "./MoveGesture.js"; -export { HoverGesture } from "./HoverGesture.js"; -export { Gesture } from "./Gesture.js"; -export { createGesture } from "./createGesture.js"; -export * from '@use-gesture/core/utils'; -export * from '@use-gesture/core/types'; -export * from '@use-gesture/core/actions'; diff --git a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.d.ts b/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.d.ts deleted file mode 100644 index e2646140..00000000 --- a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./declarations/src/index"; -//# sourceMappingURL=use-gesture-vanilla.cjs.d.ts.map diff --git a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.dev.js b/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.dev.js deleted file mode 100644 index c0efbaa0..00000000 --- a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.dev.js +++ /dev/null @@ -1,170 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions = require('@use-gesture/core/actions'); -var core = require('@use-gesture/core'); -var utils = require('@use-gesture/core/utils'); -var types = require('@use-gesture/core/types'); - -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} - -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} - -class Recognizer { - constructor(target, handlers, config, gestureKey, nativeHandlers) { - this._target = target; - this._gestureKey = gestureKey; - this._ctrl = new core.Controller(handlers); - this._ctrl.applyHandlers(handlers, nativeHandlers); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target - }), gestureKey); - this._ctrl.effect(); - } - destroy() { - this._ctrl.clean(); - } - setConfig(config) { - this._ctrl.clean(); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target: this._target - }), this._gestureKey); - this._ctrl.effect(); - } -} - -const DragGesture = function DragGesture(target, handler, config) { - actions.registerAction(actions.dragAction); - return new Recognizer(target, { - drag: handler - }, config || {}, 'drag'); -}; - -const PinchGesture = function PinchGesture(target, handler, config) { - actions.registerAction(actions.pinchAction); - return new Recognizer(target, { - pinch: handler - }, config || {}, 'pinch'); -}; - -const WheelGesture = function WheelGesture(target, handler, config) { - actions.registerAction(actions.wheelAction); - return new Recognizer(target, { - wheel: handler - }, config || {}, 'wheel'); -}; - -const ScrollGesture = function ScrollGesture(target, handler, config) { - actions.registerAction(actions.scrollAction); - return new Recognizer(target, { - scroll: handler - }, config || {}, 'scroll'); -}; - -const MoveGesture = function MoveGesture(target, handler, config) { - actions.registerAction(actions.moveAction); - return new Recognizer(target, { - move: handler - }, config || {}, 'move'); -}; - -const HoverGesture = function HoverGesture(target, handler, config) { - actions.registerAction(actions.hoverAction); - return new Recognizer(target, { - hover: handler - }, config || {}, 'hover'); -}; - -function createGesture(actions$1) { - actions$1.forEach(actions.registerAction); - return function (target, _handlers, _config) { - const { - handlers, - nativeHandlers, - config - } = core.parseMergedHandlers(_handlers, _config || {}); - return new Recognizer(target, handlers, config, undefined, nativeHandlers); - }; -} - -const Gesture = function Gesture(target, handlers, config) { - const gestureFunction = createGesture([actions.dragAction, actions.pinchAction, actions.scrollAction, actions.wheelAction, actions.moveAction, actions.hoverAction]); - return gestureFunction(target, handlers, config || {}); -}; - -exports.DragGesture = DragGesture; -exports.Gesture = Gesture; -exports.HoverGesture = HoverGesture; -exports.MoveGesture = MoveGesture; -exports.PinchGesture = PinchGesture; -exports.ScrollGesture = ScrollGesture; -exports.WheelGesture = WheelGesture; -exports.createGesture = createGesture; -Object.keys(actions).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return actions[k]; } - }); -}); -Object.keys(utils).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return utils[k]; } - }); -}); -Object.keys(types).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return types[k]; } - }); -}); diff --git a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.js b/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.js deleted file mode 100644 index 564f985f..00000000 --- a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./use-gesture-vanilla.cjs.prod.js"); -} else { - module.exports = require("./use-gesture-vanilla.cjs.dev.js"); -} diff --git a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.prod.js b/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.prod.js deleted file mode 100644 index c0efbaa0..00000000 --- a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.cjs.prod.js +++ /dev/null @@ -1,170 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var actions = require('@use-gesture/core/actions'); -var core = require('@use-gesture/core'); -var utils = require('@use-gesture/core/utils'); -var types = require('@use-gesture/core/types'); - -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} - -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} - -class Recognizer { - constructor(target, handlers, config, gestureKey, nativeHandlers) { - this._target = target; - this._gestureKey = gestureKey; - this._ctrl = new core.Controller(handlers); - this._ctrl.applyHandlers(handlers, nativeHandlers); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target - }), gestureKey); - this._ctrl.effect(); - } - destroy() { - this._ctrl.clean(); - } - setConfig(config) { - this._ctrl.clean(); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target: this._target - }), this._gestureKey); - this._ctrl.effect(); - } -} - -const DragGesture = function DragGesture(target, handler, config) { - actions.registerAction(actions.dragAction); - return new Recognizer(target, { - drag: handler - }, config || {}, 'drag'); -}; - -const PinchGesture = function PinchGesture(target, handler, config) { - actions.registerAction(actions.pinchAction); - return new Recognizer(target, { - pinch: handler - }, config || {}, 'pinch'); -}; - -const WheelGesture = function WheelGesture(target, handler, config) { - actions.registerAction(actions.wheelAction); - return new Recognizer(target, { - wheel: handler - }, config || {}, 'wheel'); -}; - -const ScrollGesture = function ScrollGesture(target, handler, config) { - actions.registerAction(actions.scrollAction); - return new Recognizer(target, { - scroll: handler - }, config || {}, 'scroll'); -}; - -const MoveGesture = function MoveGesture(target, handler, config) { - actions.registerAction(actions.moveAction); - return new Recognizer(target, { - move: handler - }, config || {}, 'move'); -}; - -const HoverGesture = function HoverGesture(target, handler, config) { - actions.registerAction(actions.hoverAction); - return new Recognizer(target, { - hover: handler - }, config || {}, 'hover'); -}; - -function createGesture(actions$1) { - actions$1.forEach(actions.registerAction); - return function (target, _handlers, _config) { - const { - handlers, - nativeHandlers, - config - } = core.parseMergedHandlers(_handlers, _config || {}); - return new Recognizer(target, handlers, config, undefined, nativeHandlers); - }; -} - -const Gesture = function Gesture(target, handlers, config) { - const gestureFunction = createGesture([actions.dragAction, actions.pinchAction, actions.scrollAction, actions.wheelAction, actions.moveAction, actions.hoverAction]); - return gestureFunction(target, handlers, config || {}); -}; - -exports.DragGesture = DragGesture; -exports.Gesture = Gesture; -exports.HoverGesture = HoverGesture; -exports.MoveGesture = MoveGesture; -exports.PinchGesture = PinchGesture; -exports.ScrollGesture = ScrollGesture; -exports.WheelGesture = WheelGesture; -exports.createGesture = createGesture; -Object.keys(actions).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return actions[k]; } - }); -}); -Object.keys(utils).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return utils[k]; } - }); -}); -Object.keys(types).forEach(function (k) { - if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { - enumerable: true, - get: function () { return types[k]; } - }); -}); diff --git a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.esm.js b/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.esm.js deleted file mode 100644 index 2a1fd577..00000000 --- a/node_modules/@use-gesture/vanilla/dist/use-gesture-vanilla.esm.js +++ /dev/null @@ -1,142 +0,0 @@ -import { registerAction, dragAction, pinchAction, wheelAction, scrollAction, moveAction, hoverAction } from '@use-gesture/core/actions'; -export * from '@use-gesture/core/actions'; -import { Controller, parseMergedHandlers } from '@use-gesture/core'; -export * from '@use-gesture/core/utils'; -export * from '@use-gesture/core/types'; - -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} - -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} - -class Recognizer { - constructor(target, handlers, config, gestureKey, nativeHandlers) { - this._target = target; - this._gestureKey = gestureKey; - this._ctrl = new Controller(handlers); - this._ctrl.applyHandlers(handlers, nativeHandlers); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target - }), gestureKey); - this._ctrl.effect(); - } - destroy() { - this._ctrl.clean(); - } - setConfig(config) { - this._ctrl.clean(); - this._ctrl.applyConfig(_objectSpread2(_objectSpread2({}, config), {}, { - target: this._target - }), this._gestureKey); - this._ctrl.effect(); - } -} - -const DragGesture = function DragGesture(target, handler, config) { - registerAction(dragAction); - return new Recognizer(target, { - drag: handler - }, config || {}, 'drag'); -}; - -const PinchGesture = function PinchGesture(target, handler, config) { - registerAction(pinchAction); - return new Recognizer(target, { - pinch: handler - }, config || {}, 'pinch'); -}; - -const WheelGesture = function WheelGesture(target, handler, config) { - registerAction(wheelAction); - return new Recognizer(target, { - wheel: handler - }, config || {}, 'wheel'); -}; - -const ScrollGesture = function ScrollGesture(target, handler, config) { - registerAction(scrollAction); - return new Recognizer(target, { - scroll: handler - }, config || {}, 'scroll'); -}; - -const MoveGesture = function MoveGesture(target, handler, config) { - registerAction(moveAction); - return new Recognizer(target, { - move: handler - }, config || {}, 'move'); -}; - -const HoverGesture = function HoverGesture(target, handler, config) { - registerAction(hoverAction); - return new Recognizer(target, { - hover: handler - }, config || {}, 'hover'); -}; - -function createGesture(actions) { - actions.forEach(registerAction); - return function (target, _handlers, _config) { - const { - handlers, - nativeHandlers, - config - } = parseMergedHandlers(_handlers, _config || {}); - return new Recognizer(target, handlers, config, undefined, nativeHandlers); - }; -} - -const Gesture = function Gesture(target, handlers, config) { - const gestureFunction = createGesture([dragAction, pinchAction, scrollAction, wheelAction, moveAction, hoverAction]); - return gestureFunction(target, handlers, config || {}); -}; - -export { DragGesture, Gesture, HoverGesture, MoveGesture, PinchGesture, ScrollGesture, WheelGesture, createGesture }; diff --git a/node_modules/@use-gesture/vanilla/package.json b/node_modules/@use-gesture/vanilla/package.json deleted file mode 100644 index bc4d7602..00000000 --- a/node_modules/@use-gesture/vanilla/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@use-gesture/vanilla", - "version": "10.3.1", - "description": "Vanilla target for @use-gesture", - "keywords": [ - "react", - "hook", - "gesture", - "mouse", - "trackpad", - "touch", - "drag", - "pinch", - "rotate", - "scale", - "zoom", - "scroll", - "wheel" - ], - "license": "MIT", - "sideEffects": false, - "main": "dist/use-gesture-vanilla.cjs.js", - "module": "dist/use-gesture-vanilla.esm.js", - "repository": { - "type": "git", - "url": "git+https://github.com/pmndrs/use-gesture.git", - "directory": "packages/vanilla" - }, - "bugs": { - "url": "https://github.com/pmndrs/use-gesture/issues" - }, - "author": "Paul Henschel", - "contributors": [ - "David Bismut (https://github.com/dbismut)" - ], - "homepage": "https://use-gesture.netlify.app", - "dependencies": { - "@use-gesture/core": "10.3.1" - } -} \ No newline at end of file diff --git a/node_modules/@use-gesture/vanilla/src/DragGesture.ts b/node_modules/@use-gesture/vanilla/src/DragGesture.ts deleted file mode 100644 index c93e243a..00000000 --- a/node_modules/@use-gesture/vanilla/src/DragGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, dragAction } from '@use-gesture/core/actions' -import { EventTypes, Handler, UserDragConfig } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface DragGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'drag', EventType>, - config?: UserDragConfig - ): DragGesture -} - -export interface DragGesture extends Recognizer<'drag'> {} - -export const DragGesture: DragGestureConstructor = function ( - target: EventTarget, - handler: Handler<'drag', EventType>, - config?: UserDragConfig -) { - registerAction(dragAction) - return new Recognizer(target, { drag: handler }, config || {}, 'drag') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/Gesture.ts b/node_modules/@use-gesture/vanilla/src/Gesture.ts deleted file mode 100644 index edcd726b..00000000 --- a/node_modules/@use-gesture/vanilla/src/Gesture.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { dragAction, pinchAction, scrollAction, wheelAction, moveAction, hoverAction } from '@use-gesture/core/actions' -import { AnyHandlerEventTypes, EventTypes, GestureHandlers, UserGestureConfig } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' -import { createGesture } from './createGesture' - -interface GestureConstructor { - new ( - target: EventTarget, - handlers: GestureHandlers, - config?: UserGestureConfig - ): Gesture -} - -export interface Gesture extends Recognizer {} - -export const Gesture: GestureConstructor = function ( - target: EventTarget, - handlers: GestureHandlers, - config?: UserGestureConfig -) { - const gestureFunction = createGesture([dragAction, pinchAction, scrollAction, wheelAction, moveAction, hoverAction]) - return gestureFunction(target, handlers, config || ({} as UserGestureConfig)) -} as any diff --git a/node_modules/@use-gesture/vanilla/src/HoverGesture.ts b/node_modules/@use-gesture/vanilla/src/HoverGesture.ts deleted file mode 100644 index ebcf7d02..00000000 --- a/node_modules/@use-gesture/vanilla/src/HoverGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, hoverAction } from '@use-gesture/core/actions' -import { EventTypes, UserHoverConfig, Handler } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface HoverGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'hover', EventType>, - config?: UserHoverConfig - ): HoverGesture -} - -export interface HoverGesture extends Recognizer<'hover'> {} - -export const HoverGesture: HoverGestureConstructor = function ( - target: EventTarget, - handler: Handler<'hover', EventType>, - config?: UserHoverConfig -) { - registerAction(hoverAction) - return new Recognizer(target, { hover: handler }, config || {}, 'hover') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/MoveGesture.ts b/node_modules/@use-gesture/vanilla/src/MoveGesture.ts deleted file mode 100644 index bb3faba7..00000000 --- a/node_modules/@use-gesture/vanilla/src/MoveGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, moveAction } from '@use-gesture/core/actions' -import { UserMoveConfig, Handler, EventTypes } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface MoveGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'move', EventType>, - config?: UserMoveConfig - ): MoveGesture -} - -export interface MoveGesture extends Recognizer<'move'> {} - -export const MoveGesture: MoveGestureConstructor = function ( - target: EventTarget, - handler: Handler<'move', EventType>, - config?: UserMoveConfig -) { - registerAction(moveAction) - return new Recognizer(target, { move: handler }, config || {}, 'move') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/PinchGesture.ts b/node_modules/@use-gesture/vanilla/src/PinchGesture.ts deleted file mode 100644 index d15f36ab..00000000 --- a/node_modules/@use-gesture/vanilla/src/PinchGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, pinchAction } from '@use-gesture/core/actions' -import { UserPinchConfig, Handler, EventTypes } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface PinchGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'pinch', EventType>, - config?: UserPinchConfig - ): PinchGesture -} - -export interface PinchGesture extends Recognizer<'pinch'> {} - -export const PinchGesture: PinchGestureConstructor = function ( - target: EventTarget, - handler: Handler<'pinch', EventType>, - config?: UserPinchConfig -) { - registerAction(pinchAction) - return new Recognizer(target, { pinch: handler }, config || {}, 'pinch') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/Recognizer.ts b/node_modules/@use-gesture/vanilla/src/Recognizer.ts deleted file mode 100644 index accd5132..00000000 --- a/node_modules/@use-gesture/vanilla/src/Recognizer.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Controller } from '@use-gesture/core' -import { GestureKey, InternalHandlers, NativeHandlers, UserGestureConfig } from '@use-gesture/core/types' - -export class Recognizer { - private _gestureKey?: GK - private _ctrl: Controller - private _target: EventTarget - - constructor( - target: EventTarget, - handlers: InternalHandlers, - config: GK extends keyof UserGestureConfig ? UserGestureConfig[GK] : UserGestureConfig, - gestureKey?: GK, - nativeHandlers?: NativeHandlers - ) { - this._target = target - this._gestureKey = gestureKey - this._ctrl = new Controller(handlers) - this._ctrl.applyHandlers(handlers, nativeHandlers) - this._ctrl.applyConfig({ ...config, target }, gestureKey) - - this._ctrl.effect() - } - - destroy() { - this._ctrl.clean() - } - - setConfig(config: GK extends keyof UserGestureConfig ? UserGestureConfig[GK] : UserGestureConfig) { - this._ctrl.clean() - this._ctrl.applyConfig({ ...config, target: this._target }, this._gestureKey) - this._ctrl.effect() - } -} diff --git a/node_modules/@use-gesture/vanilla/src/ScrollGesture.ts b/node_modules/@use-gesture/vanilla/src/ScrollGesture.ts deleted file mode 100644 index 66bb61c6..00000000 --- a/node_modules/@use-gesture/vanilla/src/ScrollGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, scrollAction } from '@use-gesture/core/actions' -import { UserScrollConfig, Handler, EventTypes } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface ScrollGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'scroll', EventType>, - config?: UserScrollConfig - ): ScrollGesture -} - -export interface ScrollGesture extends Recognizer<'scroll'> {} - -export const ScrollGesture: ScrollGestureConstructor = function ( - target: EventTarget, - handler: Handler<'scroll', EventType>, - config?: UserScrollConfig -) { - registerAction(scrollAction) - return new Recognizer(target, { scroll: handler }, config || {}, 'scroll') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/WheelGesture.ts b/node_modules/@use-gesture/vanilla/src/WheelGesture.ts deleted file mode 100644 index 3bdfb4de..00000000 --- a/node_modules/@use-gesture/vanilla/src/WheelGesture.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { registerAction, wheelAction } from '@use-gesture/core/actions' -import { UserWheelConfig, Handler, EventTypes } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -interface WheelGestureConstructor { - new ( - target: EventTarget, - handler: Handler<'wheel', EventType>, - config?: UserWheelConfig - ): WheelGesture -} - -export interface WheelGesture extends Recognizer<'wheel'> {} - -export const WheelGesture: WheelGestureConstructor = function ( - target: EventTarget, - handler: Handler<'wheel', EventType>, - config?: UserWheelConfig -) { - registerAction(wheelAction) - return new Recognizer(target, { wheel: handler }, config || {}, 'wheel') -} as any diff --git a/node_modules/@use-gesture/vanilla/src/createGesture.ts b/node_modules/@use-gesture/vanilla/src/createGesture.ts deleted file mode 100644 index f056b57d..00000000 --- a/node_modules/@use-gesture/vanilla/src/createGesture.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { parseMergedHandlers } from '@use-gesture/core' -import { registerAction } from '@use-gesture/core/actions' -import { Action, GestureHandlers, UserGestureConfig } from '@use-gesture/core/types' -import { Recognizer } from './Recognizer' - -export function createGesture(actions: Action[]) { - actions.forEach(registerAction) - - return function (target: EventTarget, _handlers: GestureHandlers, _config?: UserGestureConfig) { - const { handlers, nativeHandlers, config } = parseMergedHandlers(_handlers, _config || {}) - return new Recognizer(target, handlers, config, undefined, nativeHandlers) - } -} diff --git a/node_modules/@use-gesture/vanilla/src/index.ts b/node_modules/@use-gesture/vanilla/src/index.ts deleted file mode 100644 index f6fa7c2e..00000000 --- a/node_modules/@use-gesture/vanilla/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -export { DragGesture } from './DragGesture' -export { PinchGesture } from './PinchGesture' -export { WheelGesture } from './WheelGesture' -export { ScrollGesture } from './ScrollGesture' -export { MoveGesture } from './MoveGesture' -export { HoverGesture } from './HoverGesture' -export { Gesture } from './Gesture' - -export { createGesture } from './createGesture' - -export * from '@use-gesture/core/utils' -export * from '@use-gesture/core/types' -export * from '@use-gesture/core/actions' diff --git a/node_modules/@use-gesture/vanilla/src/types.test.ts b/node_modules/@use-gesture/vanilla/src/types.test.ts deleted file mode 100644 index d9be95e0..00000000 --- a/node_modules/@use-gesture/vanilla/src/types.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* Type tests for @use-gesture/vanilla */ - -import { expectType } from 'tsd' -import { DragGesture, Gesture } from '.' - -/* Checks that hooks accept generics to cast event type */ -new DragGesture(window, ({ event }) => expectType(event)) - -/* Checks that useGesture accepts generics to cast event type */ -new Gesture<{ drag: MouseEvent; pinch: WheelEvent; onClick: PointerEvent }>(window, { - onDrag: ({ event }) => expectType(event), - onPinch: ({ event }) => expectType(event), - onClick: ({ event }) => expectType(event) -}) diff --git a/node_modules/@vue/.DS_Store b/node_modules/@vue/.DS_Store deleted file mode 100644 index 783bf083..00000000 Binary files a/node_modules/@vue/.DS_Store and /dev/null differ diff --git a/node_modules/@webassemblyjs/.DS_Store b/node_modules/@webassemblyjs/.DS_Store deleted file mode 100644 index 36ee8cc0..00000000 Binary files a/node_modules/@webassemblyjs/.DS_Store and /dev/null differ diff --git a/node_modules/@webpack-cli/.DS_Store b/node_modules/@webpack-cli/.DS_Store deleted file mode 100644 index a83afadb..00000000 Binary files a/node_modules/@webpack-cli/.DS_Store and /dev/null differ diff --git a/node_modules/@xtuc/.DS_Store b/node_modules/@xtuc/.DS_Store deleted file mode 100644 index 16fb5087..00000000 Binary files a/node_modules/@xtuc/.DS_Store and /dev/null differ diff --git a/node_modules/@xtuc/long/.DS_Store b/node_modules/@xtuc/long/.DS_Store deleted file mode 100644 index 6f7ff8ae..00000000 Binary files a/node_modules/@xtuc/long/.DS_Store and /dev/null differ diff --git a/node_modules/ajv-formats/.DS_Store b/node_modules/ajv-formats/.DS_Store deleted file mode 100644 index 98f9824e..00000000 Binary files a/node_modules/ajv-formats/.DS_Store and /dev/null differ diff --git a/node_modules/ajv-formats/node_modules/.DS_Store b/node_modules/ajv-formats/node_modules/.DS_Store deleted file mode 100644 index 768d93d6..00000000 Binary files a/node_modules/ajv-formats/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js b/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js deleted file mode 100644 index 0d578d5d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +++ /dev/null @@ -1,23 +0,0 @@ -const Ajv = require("ajv") -const ajv = new Ajv({allErrors: true}) - -const schema = { - type: "object", - properties: { - foo: {type: "string"}, - bar: {type: "number", maximum: 3}, - }, - required: ["foo", "bar"], - additionalProperties: false, -} - -const validate = ajv.compile(schema) - -test({foo: "abc", bar: 2}) -test({foo: 2, bar: 4}) - -function test(data) { - const valid = validate(data) - if (valid) console.log("Valid!") - else console.log("Invalid: " + ajv.errorsText(validate.errors)) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/LICENSE b/node_modules/ajv-formats/node_modules/ajv/LICENSE deleted file mode 100644 index 139162ad..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2021 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/ajv-formats/node_modules/ajv/README.md b/node_modules/ajv-formats/node_modules/ajv/README.md deleted file mode 100644 index aa3baaab..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/README.md +++ /dev/null @@ -1,193 +0,0 @@ -Ajv logo - -  - -# Ajv JSON schema validator - -The fastest JSON validator for Node.js and browser. - -Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). - -[![build](https://github.com/ajv-validator/ajv/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) -[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) -[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master) -[![SimpleX](https://img.shields.io/badge/chat-on%20SimpleX-%2307b4b9)](https://simplex.chat/contact#/?v=1&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqASV4yROM28Er0luVTx5X1CsMrU%3D%40smp4.simplex.im%2Fap4lMFzfXF8Hzmh-Vz0WNxp_1jKiOa-h%23MCowBQYDK2VuAyEAcdefddRvDfI8iAuBpztm_J3qFucj8MDZoVs_2EcMTzU%3D) -[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) -[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin) - -## Ajv sponsors - -[Mozilla](https://www.mozilla.org)[](https://opencollective.com/ajv) - -[Microsoft](https://opensource.microsoft.com)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) - -[Retool](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)[Tidelift](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)[SimpleX](https://github.com/simplex-chat/simplex-chat)[](https://opencollective.com/ajv) - -## Contributing - -More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation. - -Please review [Contributing guidelines](./CONTRIBUTING.md) and [Code components](https://ajv.js.org/components.html). - -## Documentation - -All documentation is available on the [Ajv website](https://ajv.js.org). - -Some useful site links: -- [Getting started](https://ajv.js.org/guide/getting-started.html) -- [JSON Schema vs JSON Type Definition](https://ajv.js.org/guide/schema-language.html) -- [API reference](https://ajv.js.org/api.html) -- [Strict mode](https://ajv.js.org/strict-mode.html) -- [Standalone validation code](https://ajv.js.org/standalone.html) -- [Security considerations](https://ajv.js.org/security.html) -- [Command line interface](https://ajv.js.org/packages/ajv-cli.html) -- [Frequently Asked Questions](https://ajv.js.org/faq.html) - -## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin) - -Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant! - -Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released. - -Please sponsor Ajv via: - -- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it) -- [Ajv Open Collective️](https://opencollective.com/ajv) - -Thank you. - -#### Open Collective sponsors - - - - - - - - - - - - - - - - -## Performance - -Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. - -Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: - -- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place -- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster -- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) -- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) - -Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): - -[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|ajv|@exodus/schemasafe|is-my-json-valid|djv|@cfworker/json-schema|jsonschema&chd=t:100,69.2,51.5,13.1,5.1,1.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) - -## Features - -- Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6): - - all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html)) - - [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions: - - NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator). - - keyword [nullable](https://ajv.js.org/json-schema.html#nullable). - - full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available) - - support of recursive references between schemas - - correct string lengths for strings with unicode pairs - - JSON Schema [formats](https://ajv.js.org/guide/formats.html) (with [ajv-formats](https://github.com/ajv-validator/ajv-formats) plugin). - - [validates schemas against meta-schema](https://ajv.js.org/api.html#api-validateschema) -- NEW: supports [JSON Type Definition](https://datatracker.ietf.org/doc/rfc8927/): - - all keywords (see [JSON Type Definition schema forms](https://ajv.js.org/json-type-definition.html)) - - meta-schema for JTD schemas - - "union" keyword and user-defined keywords (can be used inside "metadata" member of the schema) -- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 10.x - current -- [asynchronous loading](https://ajv.js.org/guide/managing-schemas.html#asynchronous-schema-loading) of referenced schemas during compilation -- "All errors" validation mode with [option allErrors](https://ajv.js.org/options.html#allerrors) -- [error messages with parameters](https://ajv.js.org/api.html#validation-errors) describing error reasons to allow error message generation -- i18n error messages support with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package -- [removing-additional-properties](https://ajv.js.org/guide/modifying-data.html#removing-additional-properties) -- [assigning defaults](https://ajv.js.org/guide/modifying-data.html#assigning-defaults) to missing properties and items -- [coercing data](https://ajv.js.org/guide/modifying-data.html#coercing-data-types) to the types specified in `type` keywords -- [user-defined keywords](https://ajv.js.org/guide/user-keywords.html) -- additional extension keywords with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package -- [\$data reference](https://ajv.js.org/guide/combining-schemas.html#data-reference) to use values from the validated data as values for the schema keywords -- [asynchronous validation](https://ajv.js.org/guide/async-validation.html) of user-defined formats and keywords - -## Install - -To install version 8: - -``` -npm install ajv -``` - -## Getting started - -Try it in the Node.js REPL: https://runkit.com/npm/ajv - -In JavaScript: - -```javascript -// or ESM/TypeScript import -import Ajv from "ajv" -// Node.js require: -const Ajv = require("ajv") - -const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} - -const schema = { - type: "object", - properties: { - foo: {type: "integer"}, - bar: {type: "string"} - }, - required: ["foo"], - additionalProperties: false, -} - -const data = { - foo: 1, - bar: "abc" -} - -const validate = ajv.compile(schema) -const valid = validate(data) -if (!valid) console.log(validate.errors) -``` - -Learn how to use Ajv and see more examples in the [Guide: getting started](https://ajv.js.org/guide/getting-started.html) - -## Changes history - -See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases) - -**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) - -[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) - -[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). - -## Code of conduct - -Please review and follow the [Code of conduct](./CODE_OF_CONDUCT.md). - -Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - -## Open-source software support - -Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - -## License - -[MIT](./LICENSE) diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts deleted file mode 100644 index 5a391dd6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -declare class Ajv2019 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2019; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2019.js b/node_modules/ajv-formats/node_modules/ajv/dist/2019.js deleted file mode 100644 index 89d78532..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const dynamic_1 = require("./vocabularies/dynamic"); -const next_1 = require("./vocabularies/next"); -const unevaluated_1 = require("./vocabularies/unevaluated"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2019_09_1 = require("./refs/json-schema-2019-09"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema"; -class Ajv2019 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(dynamic_1.default); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - this.addVocabulary(next_1.default); - this.addVocabulary(unevaluated_1.default); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2019_09_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv2019; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2019; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=2019.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map deleted file mode 100644 index 8e4e87ca..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2019.js","sourceRoot":"","sources":["../lib/2019.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AAEvC,kDAAsD;AACtD,oDAAsD;AACtD,8CAAgD;AAChD,4DAA8D;AAC9D,gEAAwD;AACxD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A;AAClC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts deleted file mode 100644 index 21bae8f6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -declare class Ajv2020 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2020; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2020.js b/node_modules/ajv-formats/node_modules/ajv/dist/2020.js deleted file mode 100644 index bdd1dd69..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft2020_1 = require("./vocabularies/draft2020"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2020_12_1 = require("./refs/json-schema-2020-12"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema"; -class Ajv2020 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - draft2020_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2020_12_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv2020; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2020; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=2020.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map deleted file mode 100644 index 92239352..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2020.js","sourceRoot":"","sources":["../lib/2020.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AAEvC,wDAA4D;AAC5D,gEAAwD;AACxD,oEAA0D;AAE1D,MAAM,cAAc,GAAG,8CAA8C,CAAA;AAErE,MAAM,OAAQ,SAAQ,cAAO;IAC3B,YAAY,OAAgB,EAAE;QAC5B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,IAAI;SAClB,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,mBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3D,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,MAAM,EAAC,KAAK,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts deleted file mode 100644 index ce43bbf2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore from "./core"; -declare class Ajv extends AjvCore { - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, SchemaValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js b/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js deleted file mode 100644 index 219bcf0d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const discriminator_1 = require("./vocabularies/discriminator"); -const draft7MetaSchema = require("./refs/json-schema-draft-07.json"); -const META_SUPPORT_DATA = ["/properties"]; -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"; -class Ajv extends core_1.default { - _addVocabularies() { - super._addVocabularies(); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema; - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=ajv.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map deleted file mode 100644 index 18006d4b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv.js","sourceRoot":"","sources":["../lib/ajv.ts"],"names":[],"mappings":";;;AACA,iCAA4B;AAC5B,kDAAsD;AACtD,gEAAwD;AACxD,qEAAoE;AAEpE,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,MAAM,cAAc,GAAG,wCAAwC,CAAA;AAE/D,MAAM,GAAI,SAAQ,cAAO;IACvB,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,gBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QACxD,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAM;QAC3B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK;YAChC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;YAC3D,CAAC,CAAC,gBAAgB,CAAA;QACpB,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;QACrD,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,GAAG,CAAA;AAC9B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,GAAG,CAAA;AA0BlB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts deleted file mode 100644 index 8023c181..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export declare abstract class _CodeOrName { - abstract readonly str: string; - abstract readonly names: UsedNames; - abstract toString(): string; - abstract emptyStr(): boolean; -} -export declare const IDENTIFIER: RegExp; -export declare class Name extends _CodeOrName { - readonly str: string; - constructor(s: string); - toString(): string; - emptyStr(): boolean; - get names(): UsedNames; -} -export declare class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[]; - private _str?; - private _names?; - constructor(code: string | readonly CodeItem[]); - toString(): string; - emptyStr(): boolean; - get str(): string; - get names(): UsedNames; -} -export declare type CodeItem = Name | string | number | boolean | null; -export declare type UsedNames = Record; -export declare type Code = _Code | Name; -export declare type SafeExpr = Code | number | boolean | null; -export declare const nil: _Code; -declare type CodeArg = SafeExpr | string | undefined; -export declare function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code; -export declare function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code; -export declare function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void; -export declare function strConcat(c1: Code, c2: Code): Code; -export declare function stringify(x: unknown): Code; -export declare function safeStringify(x: unknown): string; -export declare function getProperty(key: Code | string | number): Code; -export declare function getEsmExportName(key: Code | string | number): Code; -export declare function regexpCode(rx: RegExp): Code; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js deleted file mode 100644 index f8268838..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; -class _CodeOrName { -} -exports._CodeOrName = _CodeOrName; -exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; -class Name extends _CodeOrName { - constructor(s) { - super(); - if (!exports.IDENTIFIER.test(s)) - throw new Error("CodeGen: name must be a valid identifier"); - this.str = s; - } - toString() { - return this.str; - } - emptyStr() { - return false; - } - get names() { - return { [this.str]: 1 }; - } -} -exports.Name = Name; -class _Code extends _CodeOrName { - constructor(code) { - super(); - this._items = typeof code === "string" ? [code] : code; - } - toString() { - return this.str; - } - emptyStr() { - if (this._items.length > 1) - return false; - const item = this._items[0]; - return item === "" || item === '""'; - } - get str() { - var _a; - return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); - } - get names() { - var _a; - return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { - if (c instanceof Name) - names[c.str] = (names[c.str] || 0) + 1; - return names; - }, {}))); - } -} -exports._Code = _Code; -exports.nil = new _Code(""); -function _(strs, ...args) { - const code = [strs[0]]; - let i = 0; - while (i < args.length) { - addCodeArg(code, args[i]); - code.push(strs[++i]); - } - return new _Code(code); -} -exports._ = _; -const plus = new _Code("+"); -function str(strs, ...args) { - const expr = [safeStringify(strs[0])]; - let i = 0; - while (i < args.length) { - expr.push(plus); - addCodeArg(expr, args[i]); - expr.push(plus, safeStringify(strs[++i])); - } - optimize(expr); - return new _Code(expr); -} -exports.str = str; -function addCodeArg(code, arg) { - if (arg instanceof _Code) - code.push(...arg._items); - else if (arg instanceof Name) - code.push(arg); - else - code.push(interpolate(arg)); -} -exports.addCodeArg = addCodeArg; -function optimize(expr) { - let i = 1; - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]); - if (res !== undefined) { - expr.splice(i - 1, 3, res); - continue; - } - expr[i++] = "+"; - } - i++; - } -} -function mergeExprItems(a, b) { - if (b === '""') - return a; - if (a === '""') - return b; - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') - return; - if (typeof b != "string") - return `${a.slice(0, -1)}${b}"`; - if (b[0] === '"') - return a.slice(0, -1) + b.slice(1); - return; - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) - return `"${a}${b.slice(1)}`; - return; -} -function strConcat(c1, c2) { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; -} -exports.strConcat = strConcat; -// TODO do not allow arrays here -function interpolate(x) { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x); -} -function stringify(x) { - return new _Code(safeStringify(x)); -} -exports.stringify = stringify; -function safeStringify(x) { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029"); -} -exports.safeStringify = safeStringify; -function getProperty(key) { - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; -} -exports.getProperty = getProperty; -//Does best effort to format the name properly -function getEsmExportName(key) { - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { - return new _Code(`${key}`); - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); -} -exports.getEsmExportName = getEsmExportName; -function regexpCode(rx) { - return new _Code(rx.toString()); -} -exports.regexpCode = regexpCode; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map deleted file mode 100644 index c5c7a396..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../lib/compile/codegen/code.ts"],"names":[],"mappings":";;;AAAA,MAAsB,WAAW;CAKhC;AALD,kCAKC;AAEY,QAAA,UAAU,GAAG,uBAAuB,CAAA;AAEjD,MAAa,IAAK,SAAQ,WAAW;IAEnC,YAAY,CAAS;QACnB,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,kBAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QACpF,IAAI,CAAC,GAAG,GAAG,CAAC,CAAA;IACd,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,GAAG,CAAA;IACjB,CAAC;IAED,QAAQ;QACN,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,KAAK;QACP,OAAO,EAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAC,CAAA;IACxB,CAAC;CACF;AA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BAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,IAAI,GAAG,GAAG,CAAA;AAC5F,CAAC;AAFD,kCAEC;AAED,8CAA8C;AAC9C,SAAgB,gBAAgB,CAAC,GAA2B;IAC1D,IAAI,OAAO,GAAG,IAAI,QAAQ,IAAI,kBAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAClD,OAAO,IAAI,KAAK,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;KAC3B;IACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,iCAAiC,CAAC,CAAA;AACxF,CAAC;AALD,4CAKC;AAED,SAAgB,UAAU,CAAC,EAAU;IACnC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;AACjC,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts deleted file mode 100644 index db9101dd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { ScopeValueSets, NameValue, ValueScope, ValueScopeName } from "./scope"; -import { _Code, Code, Name } from "./code"; -import { Scope } from "./scope"; -export { _, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code } from "./code"; -export { Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds } from "./scope"; -export declare type SafeExpr = Code | number | boolean | null; -export declare type Block = Code | (() => void); -export declare const operators: { - GT: _Code; - GTE: _Code; - LT: _Code; - LTE: _Code; - EQ: _Code; - NEQ: _Code; - NOT: _Code; - OR: _Code; - AND: _Code; - ADD: _Code; -}; -export interface CodeGenOptions { - es5?: boolean; - lines?: boolean; - ownProperties?: boolean; -} -export declare class CodeGen { - readonly _scope: Scope; - readonly _extScope: ValueScope; - readonly _values: ScopeValueSets; - private readonly _nodes; - private readonly _blockStarts; - private readonly _constants; - private readonly opts; - constructor(extScope: ValueScope, opts?: CodeGenOptions); - toString(): string; - name(prefix: string): Name; - scopeName(prefix: string): ValueScopeName; - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name; - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name): Code; - scopeCode(): Code; - private _def; - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name; - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen; - add(lhs: Code, rhs: SafeExpr): CodeGen; - code(c: Block | SafeExpr): CodeGen; - object(...keyValues: [Name | string, SafeExpr | string][]): _Code; - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen; - elseIf(condition: Code | boolean): CodeGen; - else(): CodeGen; - endIf(): CodeGen; - private _for; - for(iteration: Code, forBody?: Block): CodeGen; - forRange(nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void, varKind?: Code): CodeGen; - forOf(nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - forIn(nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - endFor(): CodeGen; - label(label: Name): CodeGen; - break(label?: Code): CodeGen; - return(value: Block | SafeExpr): CodeGen; - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen; - throw(error: Code): CodeGen; - block(body?: Block, nodeCount?: number): CodeGen; - endBlock(nodeCount?: number): CodeGen; - func(name: Name, args?: Code, async?: boolean, funcBody?: Block): CodeGen; - endFunc(): CodeGen; - optimize(n?: number): void; - private _leafNode; - private _blockNode; - private _endBlockNode; - private _elseNode; - private get _root(); - private get _currNode(); - private set _currNode(value); -} -export declare function not(x: T): T; -export declare function and(...args: Code[]): Code; -export declare function or(...args: Code[]): Code; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js deleted file mode 100644 index a6c805af..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +++ /dev/null @@ -1,697 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; -const code_1 = require("./code"); -const scope_1 = require("./scope"); -var code_2 = require("./code"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return code_2._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return code_2.str; } }); -Object.defineProperty(exports, "strConcat", { enumerable: true, get: function () { return code_2.strConcat; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return code_2.nil; } }); -Object.defineProperty(exports, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return code_2.stringify; } }); -Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return code_2.Name; } }); -var scope_2 = require("./scope"); -Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } }); -Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function () { return scope_2.ValueScope; } }); -Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function () { return scope_2.ValueScopeName; } }); -Object.defineProperty(exports, "varKinds", { enumerable: true, get: function () { return scope_2.varKinds; } }); -exports.operators = { - GT: new code_1._Code(">"), - GTE: new code_1._Code(">="), - LT: new code_1._Code("<"), - LTE: new code_1._Code("<="), - EQ: new code_1._Code("==="), - NEQ: new code_1._Code("!=="), - NOT: new code_1._Code("!"), - OR: new code_1._Code("||"), - AND: new code_1._Code("&&"), - ADD: new code_1._Code("+"), -}; -class Node { - optimizeNodes() { - return this; - } - optimizeNames(_names, _constants) { - return this; - } -} -class Def extends Node { - constructor(varKind, name, rhs) { - super(); - this.varKind = varKind; - this.name = name; - this.rhs = rhs; - } - render({ es5, _n }) { - const varKind = es5 ? scope_1.varKinds.var : this.varKind; - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`; - return `${varKind} ${this.name}${rhs};` + _n; - } - optimizeNames(names, constants) { - if (!names[this.name.str]) - return; - if (this.rhs) - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {}; - } -} -class Assign extends Node { - constructor(lhs, rhs, sideEffects) { - super(); - this.lhs = lhs; - this.rhs = rhs; - this.sideEffects = sideEffects; - } - render({ _n }) { - return `${this.lhs} = ${this.rhs};` + _n; - } - optimizeNames(names, constants) { - if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) - return; - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names }; - return addExprNames(names, this.rhs); - } -} -class AssignOp extends Assign { - constructor(lhs, op, rhs, sideEffects) { - super(lhs, rhs, sideEffects); - this.op = op; - } - render({ _n }) { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n; - } -} -class Label extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - return `${this.label}:` + _n; - } -} -class Break extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - const label = this.label ? ` ${this.label}` : ""; - return `break${label};` + _n; - } -} -class Throw extends Node { - constructor(error) { - super(); - this.error = error; - } - render({ _n }) { - return `throw ${this.error};` + _n; - } - get names() { - return this.error.names; - } -} -class AnyCode extends Node { - constructor(code) { - super(); - this.code = code; - } - render({ _n }) { - return `${this.code};` + _n; - } - optimizeNodes() { - return `${this.code}` ? this : undefined; - } - optimizeNames(names, constants) { - this.code = optimizeExpr(this.code, names, constants); - return this; - } - get names() { - return this.code instanceof code_1._CodeOrName ? this.code.names : {}; - } -} -class ParentNode extends Node { - constructor(nodes = []) { - super(); - this.nodes = nodes; - } - render(opts) { - return this.nodes.reduce((code, n) => code + n.render(opts), ""); - } - optimizeNodes() { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i].optimizeNodes(); - if (Array.isArray(n)) - nodes.splice(i, 1, ...n); - else if (n) - nodes[i] = n; - else - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - optimizeNames(names, constants) { - const { nodes } = this; - let i = nodes.length; - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i]; - if (n.optimizeNames(names, constants)) - continue; - subtractNames(names, n.names); - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - get names() { - return this.nodes.reduce((names, n) => addNames(names, n.names), {}); - } -} -class BlockNode extends ParentNode { - render(opts) { - return "{" + opts._n + super.render(opts) + "}" + opts._n; - } -} -class Root extends ParentNode { -} -class Else extends BlockNode { -} -Else.kind = "else"; -class If extends BlockNode { - constructor(condition, nodes) { - super(nodes); - this.condition = condition; - } - render(opts) { - let code = `if(${this.condition})` + super.render(opts); - if (this.else) - code += "else " + this.else.render(opts); - return code; - } - optimizeNodes() { - super.optimizeNodes(); - const cond = this.condition; - if (cond === true) - return this.nodes; // else is ignored here - let e = this.else; - if (e) { - const ns = e.optimizeNodes(); - e = this.else = Array.isArray(ns) ? new Else(ns) : ns; - } - if (e) { - if (cond === false) - return e instanceof If ? e : e.nodes; - if (this.nodes.length) - return this; - return new If(not(cond), e instanceof If ? [e] : e.nodes); - } - if (cond === false || !this.nodes.length) - return undefined; - return this; - } - optimizeNames(names, constants) { - var _a; - this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - if (!(super.optimizeNames(names, constants) || this.else)) - return; - this.condition = optimizeExpr(this.condition, names, constants); - return this; - } - get names() { - const names = super.names; - addExprNames(names, this.condition); - if (this.else) - addNames(names, this.else.names); - return names; - } -} -If.kind = "if"; -class For extends BlockNode { -} -For.kind = "for"; -class ForLoop extends For { - constructor(iteration) { - super(); - this.iteration = iteration; - } - render(opts) { - return `for(${this.iteration})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iteration = optimizeExpr(this.iteration, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iteration.names); - } -} -class ForRange extends For { - constructor(varKind, name, from, to) { - super(); - this.varKind = varKind; - this.name = name; - this.from = from; - this.to = to; - } - render(opts) { - const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind; - const { name, from, to } = this; - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts); - } - get names() { - const names = addExprNames(super.names, this.from); - return addExprNames(names, this.to); - } -} -class ForIter extends For { - constructor(loop, varKind, name, iterable) { - super(); - this.loop = loop; - this.varKind = varKind; - this.name = name; - this.iterable = iterable; - } - render(opts) { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iterable = optimizeExpr(this.iterable, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iterable.names); - } -} -class Func extends BlockNode { - constructor(name, args, async) { - super(); - this.name = name; - this.args = args; - this.async = async; - } - render(opts) { - const _async = this.async ? "async " : ""; - return `${_async}function ${this.name}(${this.args})` + super.render(opts); - } -} -Func.kind = "func"; -class Return extends ParentNode { - render(opts) { - return "return " + super.render(opts); - } -} -Return.kind = "return"; -class Try extends BlockNode { - render(opts) { - let code = "try" + super.render(opts); - if (this.catch) - code += this.catch.render(opts); - if (this.finally) - code += this.finally.render(opts); - return code; - } - optimizeNodes() { - var _a, _b; - super.optimizeNodes(); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes(); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes(); - return this; - } - optimizeNames(names, constants) { - var _a, _b; - super.optimizeNames(names, constants); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants); - return this; - } - get names() { - const names = super.names; - if (this.catch) - addNames(names, this.catch.names); - if (this.finally) - addNames(names, this.finally.names); - return names; - } -} -class Catch extends BlockNode { - constructor(error) { - super(); - this.error = error; - } - render(opts) { - return `catch(${this.error})` + super.render(opts); - } -} -Catch.kind = "catch"; -class Finally extends BlockNode { - render(opts) { - return "finally" + super.render(opts); - } -} -Finally.kind = "finally"; -class CodeGen { - constructor(extScope, opts = {}) { - this._values = {}; - this._blockStarts = []; - this._constants = {}; - this.opts = { ...opts, _n: opts.lines ? "\n" : "" }; - this._extScope = extScope; - this._scope = new scope_1.Scope({ parent: extScope }); - this._nodes = [new Root()]; - } - toString() { - return this._root.render(this.opts); - } - // returns unique name in the internal scope - name(prefix) { - return this._scope.name(prefix); - } - // reserves unique name in the external scope - scopeName(prefix) { - return this._extScope.name(prefix); - } - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName, value) { - const name = this._extScope.value(prefixOrName, value); - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()); - vs.add(name); - return name; - } - getScopeValue(prefix, keyOrRef) { - return this._extScope.getValue(prefix, keyOrRef); - } - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName) { - return this._extScope.scopeRefs(scopeName, this._values); - } - scopeCode() { - return this._extScope.scopeCode(this._values); - } - _def(varKind, nameOrPrefix, rhs, constant) { - const name = this._scope.toName(nameOrPrefix); - if (rhs !== undefined && constant) - this._constants[name.str] = rhs; - this._leafNode(new Def(varKind, name, rhs)); - return name; - } - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant); - } - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant); - } - // `var` declaration with optional assignment - var(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant); - } - // assignment code - assign(lhs, rhs, sideEffects) { - return this._leafNode(new Assign(lhs, rhs, sideEffects)); - } - // `+=` code - add(lhs, rhs) { - return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs)); - } - // appends passed SafeExpr to code or executes Block - code(c) { - if (typeof c == "function") - c(); - else if (c !== code_1.nil) - this._leafNode(new AnyCode(c)); - return this; - } - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues) { - const code = ["{"]; - for (const [key, value] of keyValues) { - if (code.length > 1) - code.push(","); - code.push(key); - if (key !== value || this.opts.es5) { - code.push(":"); - (0, code_1.addCodeArg)(code, value); - } - } - code.push("}"); - return new code_1._Code(code); - } - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition, thenBody, elseBody) { - this._blockNode(new If(condition)); - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf(); - } - else if (thenBody) { - this.code(thenBody).endIf(); - } - else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body'); - } - return this; - } - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition) { - return this._elseNode(new If(condition)); - } - // `else` clause - only valid after `if` or `else if` clauses - else() { - return this._elseNode(new Else()); - } - // end `if` statement (needed if gen.if was used only with condition) - endIf() { - return this._endBlockNode(If, Else); - } - _for(node, forBody) { - this._blockNode(node); - if (forBody) - this.code(forBody).endFor(); - return this; - } - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration, forBody) { - return this._for(new ForLoop(iteration), forBody); - } - // `for` statement for a range of values - forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) { - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)); - } - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) { - const name = this._scope.toName(nameOrPrefix); - if (this.opts.es5) { - const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, (0, code_1._) `${arr}.length`, (i) => { - this.var(name, (0, code_1._) `${arr}[${i}]`); - forBody(name); - }); - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)); - } - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody); - } - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); - } - // end `for` loop - endFor() { - return this._endBlockNode(For); - } - // `label` statement - label(label) { - return this._leafNode(new Label(label)); - } - // `break` statement - break(label) { - return this._leafNode(new Break(label)); - } - // `return` statement - return(value) { - const node = new Return(); - this._blockNode(node); - this.code(value); - if (node.nodes.length !== 1) - throw new Error('CodeGen: "return" should have one node'); - return this._endBlockNode(Return); - } - // `try` statement - try(tryBody, catchCode, finallyCode) { - if (!catchCode && !finallyCode) - throw new Error('CodeGen: "try" without "catch" and "finally"'); - const node = new Try(); - this._blockNode(node); - this.code(tryBody); - if (catchCode) { - const error = this.name("e"); - this._currNode = node.catch = new Catch(error); - catchCode(error); - } - if (finallyCode) { - this._currNode = node.finally = new Finally(); - this.code(finallyCode); - } - return this._endBlockNode(Catch, Finally); - } - // `throw` statement - throw(error) { - return this._leafNode(new Throw(error)); - } - // start self-balancing block - block(body, nodeCount) { - this._blockStarts.push(this._nodes.length); - if (body) - this.code(body).endBlock(nodeCount); - return this; - } - // end the current self-balancing block - endBlock(nodeCount) { - const len = this._blockStarts.pop(); - if (len === undefined) - throw new Error("CodeGen: not in self-balancing block"); - const toClose = this._nodes.length - len; - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`); - } - this._nodes.length = len; - return this; - } - // `function` heading (or definition if funcBody is passed) - func(name, args = code_1.nil, async, funcBody) { - this._blockNode(new Func(name, args, async)); - if (funcBody) - this.code(funcBody).endFunc(); - return this; - } - // end function definition - endFunc() { - return this._endBlockNode(Func); - } - optimize(n = 1) { - while (n-- > 0) { - this._root.optimizeNodes(); - this._root.optimizeNames(this._root.names, this._constants); - } - } - _leafNode(node) { - this._currNode.nodes.push(node); - return this; - } - _blockNode(node) { - this._currNode.nodes.push(node); - this._nodes.push(node); - } - _endBlockNode(N1, N2) { - const n = this._currNode; - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop(); - return this; - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`); - } - _elseNode(node) { - const n = this._currNode; - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"'); - } - this._currNode = n.else = node; - return this; - } - get _root() { - return this._nodes[0]; - } - get _currNode() { - const ns = this._nodes; - return ns[ns.length - 1]; - } - set _currNode(node) { - const ns = this._nodes; - ns[ns.length - 1] = node; - } -} -exports.CodeGen = CodeGen; -function addNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) + (from[n] || 0); - return names; -} -function addExprNames(names, from) { - return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names; -} -function optimizeExpr(expr, names, constants) { - if (expr instanceof code_1.Name) - return replaceName(expr); - if (!canOptimize(expr)) - return expr; - return new code_1._Code(expr._items.reduce((items, c) => { - if (c instanceof code_1.Name) - c = replaceName(c); - if (c instanceof code_1._Code) - items.push(...c._items); - else - items.push(c); - return items; - }, [])); - function replaceName(n) { - const c = constants[n.str]; - if (c === undefined || names[n.str] !== 1) - return n; - delete names[n.str]; - return c; - } - function canOptimize(e) { - return (e instanceof code_1._Code && - e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined)); - } -} -function subtractNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) - (from[n] || 0); -} -function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`; -} -exports.not = not; -const andCode = mappend(exports.operators.AND); -// boolean AND (&&) expression with the passed arguments -function and(...args) { - return args.reduce(andCode); -} -exports.and = and; -const orCode = mappend(exports.operators.OR); -// boolean OR (||) expression with the passed arguments -function or(...args) { - return args.reduce(orCode); -} -exports.or = or; -function mappend(op) { - return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`); -} -function par(x) { - return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map deleted file mode 100644 index f3826d28..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/codegen/index.ts"],"names":[],"mappings":";;;AACA,iCAA8F;AAC9F,mCAAuC;AAEvC,+BAA6F;AAArF,yFAAA,CAAC,OAAA;AAAE,2FAAA,GAAG,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,2FAAA,GAAG,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAAE,4FAAA,IAAI,OAAA;AACxE,iCAA+F;AAAvF,8FAAA,KAAK,OAAA;AAAc,mGAAA,UAAU,OAA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CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,UAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,UAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,QAAC,EAAA,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AACjF,CAAC;AAED,SAAS,GAAG,CAAC,CAAO;IAClB,OAAO,CAAC,YAAY,WAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,QAAC,EAAA,IAAI,CAAC,GAAG,CAAA;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts deleted file mode 100644 index 3c351bb6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Code, Name } from "./code"; -interface NameGroup { - prefix: string; - index: number; -} -export interface NameValue { - ref: ValueReference; - key?: unknown; - code?: Code; -} -export declare type ValueReference = unknown; -interface ScopeOptions { - prefixes?: Set; - parent?: Scope; -} -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore; - es5?: boolean; - lines?: boolean; -} -export declare type ScopeStore = Record; -declare type ScopeValues = { - [Prefix in string]?: Map; -}; -export declare type ScopeValueSets = { - [Prefix in string]?: Set; -}; -export declare enum UsedValueState { - Started = 0, - Completed = 1 -} -export declare type UsedScopeValues = { - [Prefix in string]?: Map; -}; -export declare const varKinds: { - const: Name; - let: Name; - var: Name; -}; -export declare class Scope { - protected readonly _names: { - [Prefix in string]?: NameGroup; - }; - protected readonly _prefixes?: Set; - protected readonly _parent?: Scope; - constructor({ prefixes, parent }?: ScopeOptions); - toName(nameOrPrefix: Name | string): Name; - name(prefix: string): Name; - protected _newName(prefix: string): string; - private _nameGroup; -} -interface ScopePath { - property: string; - itemIndex: number; -} -export declare class ValueScopeName extends Name { - readonly prefix: string; - value?: NameValue; - scopePath?: Code; - constructor(prefix: string, nameStr: string); - setValue(value: NameValue, { property, itemIndex }: ScopePath): void; -} -interface VSOptions extends ValueScopeOptions { - _n: Code; -} -export declare class ValueScope extends Scope { - protected readonly _values: ScopeValues; - protected readonly _scope: ScopeStore; - readonly opts: VSOptions; - constructor(opts: ValueScopeOptions); - get(): ScopeStore; - name(prefix: string): ValueScopeName; - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName; - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name, values?: ScopeValues | ScopeValueSets): Code; - scopeCode(values?: ScopeValues | ScopeValueSets, usedValues?: UsedScopeValues, getCode?: (n: ValueScopeName) => Code | undefined): Code; - private _reduceValues; -} -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js deleted file mode 100644 index acc5f762..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0; -const code_1 = require("./code"); -class ValueError extends Error { - constructor(name) { - super(`CodeGen: "code" for ${name} not defined`); - this.value = name.value; - } -} -var UsedValueState; -(function (UsedValueState) { - UsedValueState[UsedValueState["Started"] = 0] = "Started"; - UsedValueState[UsedValueState["Completed"] = 1] = "Completed"; -})(UsedValueState = exports.UsedValueState || (exports.UsedValueState = {})); -exports.varKinds = { - const: new code_1.Name("const"), - let: new code_1.Name("let"), - var: new code_1.Name("var"), -}; -class Scope { - constructor({ prefixes, parent } = {}) { - this._names = {}; - this._prefixes = prefixes; - this._parent = parent; - } - toName(nameOrPrefix) { - return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix); - } - name(prefix) { - return new code_1.Name(this._newName(prefix)); - } - _newName(prefix) { - const ng = this._names[prefix] || this._nameGroup(prefix); - return `${prefix}${ng.index++}`; - } - _nameGroup(prefix) { - var _a, _b; - if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`); - } - return (this._names[prefix] = { prefix, index: 0 }); - } -} -exports.Scope = Scope; -class ValueScopeName extends code_1.Name { - constructor(prefix, nameStr) { - super(nameStr); - this.prefix = prefix; - } - setValue(value, { property, itemIndex }) { - this.value = value; - this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`; - } -} -exports.ValueScopeName = ValueScopeName; -const line = (0, code_1._) `\n`; -class ValueScope extends Scope { - constructor(opts) { - super(opts); - this._values = {}; - this._scope = opts.scope; - this.opts = { ...opts, _n: opts.lines ? line : code_1.nil }; - } - get() { - return this._scope; - } - name(prefix) { - return new ValueScopeName(prefix, this._newName(prefix)); - } - value(nameOrPrefix, value) { - var _a; - if (value.ref === undefined) - throw new Error("CodeGen: ref must be passed in value"); - const name = this.toName(nameOrPrefix); - const { prefix } = name; - const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref; - let vs = this._values[prefix]; - if (vs) { - const _name = vs.get(valueKey); - if (_name) - return _name; - } - else { - vs = this._values[prefix] = new Map(); - } - vs.set(valueKey, name); - const s = this._scope[prefix] || (this._scope[prefix] = []); - const itemIndex = s.length; - s[itemIndex] = value.ref; - name.setValue(value, { property: prefix, itemIndex }); - return name; - } - getValue(prefix, keyOrRef) { - const vs = this._values[prefix]; - if (!vs) - return; - return vs.get(keyOrRef); - } - scopeRefs(scopeName, values = this._values) { - return this._reduceValues(values, (name) => { - if (name.scopePath === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return (0, code_1._) `${scopeName}${name.scopePath}`; - }); - } - scopeCode(values = this._values, usedValues, getCode) { - return this._reduceValues(values, (name) => { - if (name.value === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return name.value.code; - }, usedValues, getCode); - } - _reduceValues(values, valueCode, usedValues = {}, getCode) { - let code = code_1.nil; - for (const prefix in values) { - const vs = values[prefix]; - if (!vs) - continue; - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()); - vs.forEach((name) => { - if (nameSet.has(name)) - return; - nameSet.set(name, UsedValueState.Started); - let c = valueCode(name); - if (c) { - const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`; - } - else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) { - code = (0, code_1._) `${code}${c}${this.opts._n}`; - } - else { - throw new ValueError(name); - } - nameSet.set(name, UsedValueState.Completed); - }); - } - return code; - } -} -exports.ValueScope = ValueScope; -//# sourceMappingURL=scope.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map deleted file mode 100644 index 7afde106..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../lib/compile/codegen/scope.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAezC,MAAM,UAAW,SAAQ,KAAK;IAE5B,YAAY,IAAoB;QAC9B,KAAK,CAAC,uBAAuB,IAAI,cAAc,CAAC,CAAA;QAChD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;IACzB,CAAC;CACF;AAuBD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,6DAAS,CAAA;AACX,CAAC,EAHW,cAAc,GAAd,sBAA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AAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAQ,CAAC,KAAK,CAAA;oBACzD,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;iBACvD;qBAAM,IAAI,CAAC,CAAC,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,CAAC,EAAE;oBAChC,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;iBACrC;qBAAM;oBACL,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;iBAC3B;gBACD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;YAC7C,CAAC,CAAC,CAAA;SACH;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAjGD,gCAiGC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts deleted file mode 100644 index 74eef7e2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { KeywordErrorCxt, KeywordErrorDefinition } from "../types"; -import { CodeGen, Code, Name } from "./codegen"; -export declare const keywordError: KeywordErrorDefinition; -export declare const keyword$DataError: KeywordErrorDefinition; -export interface ErrorPaths { - instancePath?: Code; - schemaPath?: string; - parentSchema?: boolean; -} -export declare function reportError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths, overrideAllErrors?: boolean): void; -export declare function reportExtraError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths): void; -export declare function resetErrorsCount(gen: CodeGen, errsCount: Name): void; -export declare function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }: KeywordErrorCxt): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js deleted file mode 100644 index e2aca7b9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0; -const codegen_1 = require("./codegen"); -const util_1 = require("./util"); -const names_1 = require("./names"); -exports.keywordError = { - message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`, -}; -exports.keyword$DataError = { - message: ({ keyword, schemaType }) => schemaType - ? (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)` - : (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`, -}; -function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) { - addError(gen, errObj); - } - else { - returnErrors(it, (0, codegen_1._) `[${errObj}]`); - } -} -exports.reportError = reportError; -function reportExtraError(cxt, error = exports.keywordError, errorPaths) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - addError(gen, errObj); - if (!(compositeRule || allErrors)) { - returnErrors(it, names_1.default.vErrors); - } -} -exports.reportExtraError = reportExtraError; -function resetErrorsCount(gen, errsCount) { - gen.assign(names_1.default.errors, errsCount); - gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); -} -exports.resetErrorsCount = resetErrorsCount; -function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) { - /* istanbul ignore if */ - if (errsCount === undefined) - throw new Error("ajv implementation error"); - const err = gen.name("err"); - gen.forRange("i", errsCount, names_1.default.errors, (i) => { - gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`); - gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); - gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`); - if (it.opts.verbose) { - gen.assign((0, codegen_1._) `${err}.schema`, schemaValue); - gen.assign((0, codegen_1._) `${err}.data`, data); - } - }); -} -exports.extendErrors = extendErrors; -function addError(gen, errObj) { - const err = gen.const("err", errObj); - gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`); - gen.code((0, codegen_1._) `${names_1.default.errors}++`); -} -function returnErrors(it, errs) { - const { gen, validateName, schemaEnv } = it; - if (schemaEnv.$async) { - gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, errs); - gen.return(false); - } -} -const E = { - keyword: new codegen_1.Name("keyword"), - schemaPath: new codegen_1.Name("schemaPath"), - params: new codegen_1.Name("params"), - propertyName: new codegen_1.Name("propertyName"), - message: new codegen_1.Name("message"), - schema: new codegen_1.Name("schema"), - parentSchema: new codegen_1.Name("parentSchema"), -}; -function errorObjectCode(cxt, error, errorPaths) { - const { createErrors } = cxt.it; - if (createErrors === false) - return (0, codegen_1._) `{}`; - return errorObject(cxt, error, errorPaths); -} -function errorObject(cxt, error, errorPaths = {}) { - const { gen, it } = cxt; - const keyValues = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ]; - extraErrorProps(cxt, error, keyValues); - return gen.object(...keyValues); -} -function errorInstancePath({ errorPath }, { instancePath }) { - const instPath = instancePath - ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` - : errorPath; - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; -} -function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) { - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`; - if (schemaPath) { - schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; - } - return [E.schemaPath, schPath]; -} -function extraErrorProps(cxt, { params, message }, keyValues) { - const { keyword, data, schemaValue, it } = cxt; - const { opts, propertyName, topSchemaRef, schemaPath } = it; - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._) `{}`]); - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); - } - if (opts.verbose) { - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); - } - if (propertyName) - keyValues.push([E.propertyName, propertyName]); -} -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map deleted file mode 100644 index 66208910..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/compile/errors.ts"],"names":[],"mappings":";;;AAEA,uCAAgE;AAEhE,iCAAyC;AACzC,mCAAuB;AAEV,QAAA,YAAY,GAA2B;IAClD,OAAO,EAAE,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,IA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AC,CAAC,MAAM,IAAI,IAAA,WAAC,EAAA,IAAI,CAAC,CACxE,CAAA;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;KACnF;IACD,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,SAAS,CAAC,IAAI,CACZ,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,EACvB,CAAC,CAAC,CAAC,YAAY,EAAE,IAAA,WAAC,EAAA,GAAG,YAAY,GAAG,UAAU,EAAE,CAAC,EACjD,CAAC,eAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CACf,CAAA;KACF;IACD,IAAI,YAAY;QAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts deleted file mode 100644 index ca8920ab..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { AnySchema, AnySchemaObject, AnyValidateFunction, EvaluatedProperties, EvaluatedItems } from "../types"; -import type Ajv from "../core"; -import type { InstanceOptions } from "../core"; -import { CodeGen, Name, Code, ValueScopeName } from "./codegen"; -import { LocalRefs } from "./resolve"; -import { JSONType } from "./rules"; -export declare type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema; -}; -export interface SchemaCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly data: Name; - readonly parentData: Name; - readonly parentDataProperty: Code | number; - readonly dataNames: Name[]; - readonly dataPathArr: (Code | number)[]; - readonly dataLevel: number; - dataTypes: JSONType[]; - definedProperties: Set; - readonly topSchemaRef: Code; - readonly validateName: Name; - evaluated?: Name; - readonly ValidationError?: Name; - readonly schema: AnySchema; - readonly schemaEnv: SchemaEnv; - readonly rootId: string; - baseId: string; - readonly schemaPath: Code; - readonly errSchemaPath: string; - readonly errorPath: Code; - readonly propertyName?: Name; - readonly compositeRule?: boolean; - props?: EvaluatedProperties | Name; - items?: EvaluatedItems | Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - readonly createErrors?: boolean; - readonly opts: InstanceOptions; - readonly self: Ajv; -} -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject; -} -interface SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root?: SchemaEnv; - readonly baseId?: string; - readonly schemaPath?: string; - readonly localRefs?: LocalRefs; - readonly meta?: boolean; -} -export declare class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root: SchemaEnv; - baseId: string; - schemaPath?: string; - localRefs?: LocalRefs; - readonly meta?: boolean; - readonly $async?: boolean; - readonly refs: SchemaRefs; - readonly dynamicAnchors: { - [Ref in string]?: true; - }; - validate?: AnyValidateFunction; - validateName?: ValueScopeName; - serialize?: (data: unknown) => string; - serializeName?: ValueScopeName; - parse?: (data: string) => unknown; - parseName?: ValueScopeName; - constructor(env: SchemaEnvArgs); -} -export declare function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv; -export declare function resolveRef(this: Ajv, root: SchemaEnv, baseId: string, ref: string): AnySchema | SchemaEnv | undefined; -export declare function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void; -export declare function resolveSchema(this: Ajv, root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref: string): SchemaEnv | undefined; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js deleted file mode 100644 index b125ecd0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +++ /dev/null @@ -1,242 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0; -const codegen_1 = require("./codegen"); -const validation_error_1 = require("../runtime/validation_error"); -const names_1 = require("./names"); -const resolve_1 = require("./resolve"); -const util_1 = require("./util"); -const validate_1 = require("./validate"); -class SchemaEnv { - constructor(env) { - var _a; - this.refs = {}; - this.dynamicAnchors = {}; - let schema; - if (typeof env.schema == "object") - schema = env.schema; - this.schema = env.schema; - this.schemaId = env.schemaId; - this.root = env.root || this; - this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || "$id"]); - this.schemaPath = env.schemaPath; - this.localRefs = env.localRefs; - this.meta = env.meta; - this.$async = schema === null || schema === void 0 ? void 0 : schema.$async; - this.refs = {}; - } -} -exports.SchemaEnv = SchemaEnv; -// let codeSize = 0 -// let nodeCount = 0 -// Compiles schema in SchemaEnv -function compileSchema(sch) { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - let _ValidationError; - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: validation_error_1.default, - code: (0, codegen_1._) `require("ajv/dist/runtime/validation_error").default`, - }); - } - const validateName = gen.scopeName("validate"); - sch.validateName = validateName; - const schemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: names_1.default.data, - parentData: names_1.default.parentData, - parentDataProperty: names_1.default.parentDataProperty, - dataNames: [names_1.default.data], - dataPathArr: [codegen_1.nil], - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue("schema", this.opts.code.source === true - ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) } - : { ref: sch.schema }), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: codegen_1.nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: (0, codegen_1._) `""`, - opts: this.opts, - self: this, - }; - let sourceCode; - try { - this._compilations.add(sch); - (0, validate_1.validateFunctionCode)(schemaCxt); - gen.optimize(this.opts.code.optimize); - // gen.optimize(1) - const validateCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`; - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) - sourceCode = this.opts.code.process(sourceCode, sch); - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); - const validate = makeValidate(this, this.scope.get()); - this.scope.value(validateName, { ref: validate }); - validate.errors = null; - validate.schema = sch.schema; - validate.schemaEnv = sch; - if (sch.$async) - validate.$async = true; - if (this.opts.code.source === true) { - validate.source = { validateName, validateCode, scopeValues: gen._values }; - } - if (this.opts.unevaluated) { - const { props, items } = schemaCxt; - validate.evaluated = { - props: props instanceof codegen_1.Name ? undefined : props, - items: items instanceof codegen_1.Name ? undefined : items, - dynamicProps: props instanceof codegen_1.Name, - dynamicItems: items instanceof codegen_1.Name, - }; - if (validate.source) - validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated); - } - sch.validate = validate; - return sch; - } - catch (e) { - delete sch.validate; - delete sch.validateName; - if (sourceCode) - this.logger.error("Error compiling schema, function code:", sourceCode); - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e; - } - finally { - this._compilations.delete(sch); - } -} -exports.compileSchema = compileSchema; -function resolveRef(root, baseId, ref) { - var _a; - ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref); - const schOrFunc = root.refs[ref]; - if (schOrFunc) - return schOrFunc; - let _sch = resolve.call(this, root, ref); - if (_sch === undefined) { - const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv - const { schemaId } = this.opts; - if (schema) - _sch = new SchemaEnv({ schema, schemaId, root, baseId }); - } - if (_sch === undefined) - return; - return (root.refs[ref] = inlineOrCompile.call(this, _sch)); -} -exports.resolveRef = resolveRef; -function inlineOrCompile(sch) { - if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs)) - return sch.schema; - return sch.validate ? sch : compileSchema.call(this, sch); -} -// Index of schema compilation in the currently compiled list -function getCompilingSchema(schEnv) { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) - return sch; - } -} -exports.getCompilingSchema = getCompilingSchema; -function sameSchemaEnv(s1, s2) { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId; -} -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve(root, // information about the root schema for the current schema -ref // reference to resolve -) { - let sch; - while (typeof (sch = this.refs[ref]) == "string") - ref = sch; - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref); -} -// Resolve schema, its root and baseId -function resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref // reference to resolve -) { - const p = this.opts.uriResolver.parse(ref); - const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p); - let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined); - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root); - } - const id = (0, resolve_1.normalizeId)(refPath); - const schOrRef = this.refs[id] || this.schemas[id]; - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef); - if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== "object") - return; - return getJsonPointer.call(this, p, sch); - } - if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== "object") - return; - if (!schOrRef.validate) - compileSchema.call(this, schOrRef); - if (id === (0, resolve_1.normalizeId)(ref)) { - const { schema } = schOrRef; - const { schemaId } = this.opts; - const schId = schema[schemaId]; - if (schId) - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - return new SchemaEnv({ schema, schemaId, root, baseId }); - } - return getJsonPointer.call(this, p, schOrRef); -} -exports.resolveSchema = resolveSchema; -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]); -function getJsonPointer(parsedRef, { baseId, schema, root }) { - var _a; - if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== "/") - return; - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") - return; - const partSchema = schema[(0, util_1.unescapeFragment)(part)]; - if (partSchema === undefined) - return; - schema = partSchema; - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId]; - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - } - } - let env; - if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) { - const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref); - env = resolveSchema.call(this, root, $ref); - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const { schemaId } = this.opts; - env = env || new SchemaEnv({ schema, schemaId, root, baseId }); - if (env.schema !== env.root.schema) - return env; - return undefined; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map deleted file mode 100644 index 3fd890e6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/compile/index.ts"],"names":[],"mappings":";;;AAUA,uCAAgF;AAChF,kEAAyD;AACzD,mCAAuB;AACvB,uCAAkG;AAClG,iCAA6D;AAC7D,yCAA+C;AA0D/C,MAAa,SAAS;IAkBpB,YAAY,GAAkB;;QATrB,SAAI,GAAe,EAAE,CAAA;QACrB,mBAAc,GAA6B,EAAE,CAAA;QASpD,IAAI,MAAmC,CAAA;QACvC,IAAI,OAAO,GAAG,CAAC,MAAM,IAAI,QAAQ;YAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACtD,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,mCAAI,IAAA,qBAAW,EAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,GAAG,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAA;QACxE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAA;QAChC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAA;QAC9B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAA;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,EAAE,CAAA;IAChB,CAAC;CACF;AA/BD,8BA+BC;AAED,mBAAmB;AACnB,oBAAoB;AAEpB,+BAA+B;AAC/B,SAAgB,aAAa,CAAY,GAAc;IACrD,sCAAsC;I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A;QACnB,6DAA6D;QAC7D,MAAM,KAAK,GAAG,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACtE,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE;YAC5C,MAAM,GAAG,IAAA,oBAAU,EAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;SAC1D;KACF;IACD,IAAI,GAA0B,CAAA;IAC9B,IAAI,OAAO,MAAM,IAAI,SAAS,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,IAAA,2BAAoB,EAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;QAC1F,MAAM,IAAI,GAAG,IAAA,oBAAU,EAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;QACnE,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;KAC3C;IACD,+EAA+E;IAC/E,6CAA6C;IAC7C,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IAC5B,GAAG,GAAG,GAAG,IAAI,IAAI,SAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC,CAAA;IAC5D,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM;QAAE,OAAO,GAAG,CAAA;IAC9C,OAAO,SAAS,CAAA;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts deleted file mode 100644 index 618c64ae..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileParser(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js deleted file mode 100644 index 8fc94fd0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +++ /dev/null @@ -1,350 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const type_1 = require("../../vocabularies/jtd/type"); -const parseJson_1 = require("../../runtime/parseJson"); -const util_1 = require("../util"); -const timestamp_1 = require("../../runtime/timestamp"); -const genParse = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -}; -function compileParser(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const parseName = gen.scopeName("parse"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - parseName, - char: gen.name("c"), - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.parseName = parseName; - parserFunction(cxt); - gen.optimize(this.opts.code.optimize); - const parseFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${parseFuncCode}`; - const makeParse = new Function(`${names_1.default.scope}`, sourceCode); - const parse = makeParse(this.scope.get()); - this.scope.value(parseName, { ref: parse }); - sch.parse = parse; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling parser, function code:", sourceCode); - delete sch.parse; - delete sch.parseName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileParser; -const undef = (0, codegen_1._) `undefined`; -function parserFunction(cxt) { - const { gen, parseName, char } = cxt; - gen.func(parseName, (0, codegen_1._) `${names_1.default.json}, ${names_1.default.jsonPos}, ${names_1.default.jsonPart}`, false, () => { - gen.let(names_1.default.data); - gen.let(char); - gen.assign((0, codegen_1._) `${parseName}.message`, undef); - gen.assign((0, codegen_1._) `${parseName}.position`, undef); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${names_1.default.jsonPos} || 0`); - gen.const(names_1.default.jsonLen, (0, codegen_1._) `${names_1.default.json}.length`); - parseCode(cxt); - skipWhitespace(cxt); - gen.if(names_1.default.jsonPart, () => { - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(names_1.default.data); - }); - gen.if((0, codegen_1._) `${names_1.default.jsonPos} === ${names_1.default.jsonLen}`, () => gen.return(names_1.default.data)); - jsonSyntaxError(cxt); - }); -} -function parseCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - if (form) - parseNullable(cxt, genParse[form]); - else - parseEmpty(cxt); -} -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)); -function parseNullable(cxt, parseForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return parseForm(cxt); - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)); -} -function parseElements(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "["); - const ix = gen.let("i", 0); - gen.assign(data, (0, codegen_1._) `[]`); - parseItems(cxt, "]", () => { - const el = gen.let("el"); - parseCode({ ...cxt, schema: schema.elements, data: el }); - gen.assign((0, codegen_1._) `${data}[${ix}++]`, el); - }); -} -function parseValues(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)); -} -function parseItems(cxt, endToken, block) { - tryParseItems(cxt, endToken, block); - parseToken(cxt, endToken); -} -function tryParseItems(cxt, endToken, block) { - const { gen } = cxt; - gen.for((0, codegen_1._) `;${names_1.default.jsonPos}<${names_1.default.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block(); - tryParseToken(cxt, ",", () => gen.break(), hasItem); - }); - function hasItem() { - tryParseToken(cxt, endToken, () => { }, jsonSyntaxError); - } -} -function parseKeyValue(cxt, schema) { - const { gen } = cxt; - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - parsePropertyValue(cxt, key, schema); -} -function parseDiscriminator(cxt) { - const { gen, data, schema } = cxt; - const { discriminator, mapping } = schema; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - const startPos = gen.const("pos", names_1.default.jsonPos); - const value = gen.let("value"); - const tag = gen.let("tag"); - tryParseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if((0, codegen_1._) `${key} === ${discriminator}`, () => { - parseString({ ...cxt, data: tag }); - gen.assign((0, codegen_1._) `${data}[${key}]`, tag); - gen.break(); - }, () => parseEmpty({ ...cxt, data: value }) // can be discarded/skipped - ); - }); - gen.assign(names_1.default.jsonPos, startPos); - gen.if((0, codegen_1._) `${tag} === undefined`); - parsingError(cxt, (0, codegen_1.str) `discriminator tag not found`); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - parseSchemaProperties({ ...cxt, schema: mapping[tagValue] }, discriminator); - } - gen.else(); - parsingError(cxt, (0, codegen_1.str) `discriminator value not in schema`); - gen.endIf(); -} -function parseProperties(cxt) { - const { gen, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseSchemaProperties(cxt); -} -function parseSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties, additionalProperties } = schema; - parseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if(false); - parseDefinedProperty(cxt, key, properties); - parseDefinedProperty(cxt, key, optionalProperties); - if (discriminator) { - gen.elseIf((0, codegen_1._) `${key} === ${discriminator}`); - const tag = gen.let("tag"); - parseString({ ...cxt, data: tag }); // can be discarded, it is already assigned - } - gen.else(); - if (additionalProperties) { - parseEmpty({ ...cxt, data: (0, codegen_1._) `${data}[${key}]` }); - } - else { - parsingError(cxt, (0, codegen_1.str) `property ${key} not allowed`); - } - gen.endIf(); - }); - if (properties) { - const hasProp = (0, code_1.hasPropFunc)(gen); - const allProps = (0, codegen_1.and)(...Object.keys(properties).map((p) => (0, codegen_1._) `${hasProp}.call(${data}, ${p})`)); - gen.if((0, codegen_1.not)(allProps), () => parsingError(cxt, (0, codegen_1.str) `missing required properties`)); - } -} -function parseDefinedProperty(cxt, key, schemas = {}) { - const { gen } = cxt; - for (const prop in schemas) { - gen.elseIf((0, codegen_1._) `${key} === ${prop}`); - parsePropertyValue(cxt, key, schemas[prop]); - } -} -function parsePropertyValue(cxt, key, schema) { - parseCode({ ...cxt, schema, data: (0, codegen_1._) `${cxt.data}[${key}]` }); -} -function parseType(cxt) { - const { gen, schema, data, self } = cxt; - switch (schema.type) { - case "boolean": - parseBoolean(cxt); - break; - case "string": - parseString(cxt); - break; - case "timestamp": { - parseString(cxt); - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const { allowDate, parseDate } = self.opts; - const notValid = allowDate ? (0, codegen_1._) `!${vts}(${data}, true)` : (0, codegen_1._) `!${vts}(${data})`; - const fail = parseDate - ? (0, codegen_1.or)(notValid, (0, codegen_1._) `(${data} = new Date(${data}), false)`, (0, codegen_1._) `isNaN(${data}.valueOf())`) - : notValid; - gen.if(fail, () => parsingError(cxt, (0, codegen_1.str) `invalid timestamp`)); - break; - } - case "float32": - case "float64": - parseNumber(cxt); - break; - default: { - const t = schema.type; - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16); // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if((0, codegen_1._) `${data} < 0`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - else { - const [min, max, maxDigits] = type_1.intRange[t]; - parseNumber(cxt, maxDigits); - gen.if((0, codegen_1._) `${data} < ${min} || ${data} > ${max}`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - } -} -function parseString(cxt) { - parseToken(cxt, '"'); - parseWith(cxt, parseJson_1.parseJsonString); -} -function parseEnum(cxt) { - const { gen, data, schema } = cxt; - const enumSch = schema.enum; - parseToken(cxt, '"'); - // TODO loopEnum - gen.if(false); - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1); // remove starting quote - gen.elseIf((0, codegen_1._) `${jsonSlice(valueStr.length)} === ${valueStr}`); - gen.assign(data, (0, codegen_1.str) `${value}`); - gen.add(names_1.default.jsonPos, valueStr.length); - } - gen.else(); - jsonSyntaxError(cxt); - gen.endIf(); -} -function parseNumber(cxt, maxDigits) { - const { gen } = cxt; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `"-0123456789".indexOf(${jsonSlice(1)}) < 0`, () => jsonSyntaxError(cxt), () => parseWith(cxt, parseJson_1.parseJsonNumber, maxDigits)); -} -function parseBooleanToken(bool, fail) { - return (cxt) => { - const { gen, data } = cxt; - tryParseToken(cxt, `${bool}`, () => fail(cxt), () => gen.assign(data, bool)); - }; -} -function parseRef(cxt) { - const { gen, self, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return parseCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileParser.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - partialParse(cxt, getParser(gen, sch), true); -} -function getParser(gen, sch) { - return sch.parse - ? gen.scopeValue("parse", { ref: sch.parse }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.parse`; -} -function parseEmpty(cxt) { - parseWith(cxt, parseJson_1.parseJson); -} -function parseWith(cxt, parseFunc, args) { - partialParse(cxt, (0, util_1.useFunc)(cxt.gen, parseFunc), args); -} -function partialParse(cxt, parseFunc, args) { - const { gen, data } = cxt; - gen.assign(data, (0, codegen_1._) `${parseFunc}(${names_1.default.json}, ${names_1.default.jsonPos}${args ? (0, codegen_1._) `, ${args}` : codegen_1.nil})`); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${parseFunc}.position`); - gen.if((0, codegen_1._) `${data} === undefined`, () => parsingError(cxt, (0, codegen_1._) `${parseFunc}.message`)); -} -function parseToken(cxt, tok) { - tryParseToken(cxt, tok, jsonSyntaxError); -} -function tryParseToken(cxt, tok, fail, success) { - const { gen } = cxt; - const n = tok.length; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `${jsonSlice(n)} === ${tok}`, () => { - gen.add(names_1.default.jsonPos, n); - success === null || success === void 0 ? void 0 : success(cxt); - }, () => fail(cxt)); -} -function skipWhitespace({ gen, char: c }) { - gen.code((0, codegen_1._) `while((${c}=${names_1.default.json}[${names_1.default.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${names_1.default.jsonPos}++;`); -} -function jsonSlice(len) { - return len === 1 - ? (0, codegen_1._) `${names_1.default.json}[${names_1.default.jsonPos}]` - : (0, codegen_1._) `${names_1.default.json}.slice(${names_1.default.jsonPos}, ${names_1.default.jsonPos}+${len})`; -} -function jsonSyntaxError(cxt) { - parsingError(cxt, (0, codegen_1._) `"unexpected token " + ${names_1.default.json}[${names_1.default.jsonPos}]`); -} -function parsingError({ gen, parseName }, msg) { - gen.assign((0, codegen_1._) `${parseName}.message`, msg); - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(undef); -} -//# sourceMappingURL=parse.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map deleted file mode 100644 index a1e86279..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../lib/compile/jtd/parse.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAmF;AACnF,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAmD;AACnD,oDAAiD;AACjD,sDAA6D;AAC7D,uDAAmF;AACnF,kCAA+B;AAC/B,uDAAoD;AAIpD,MAAM,QAAQ,GAA+B;IAC3C,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,kBAAkB;IACjC,UAAU,EAAE,eAAe;IAC3B,kBAAkB,EAAE,eAAe;IACnC,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,QAAQ;CACd,CAAA;AAaD,SAAwB,aAAa,CAEnC,GAAc,EACd,WAA4B;IAE5B,MAAM,IAAI,GAAG,sBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC/C,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IACrB,MAAM,EAAC,GAAG,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACnC,MAAM,EAAC,aAAa,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IACjC,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAAA;IAChE,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,GAA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,IAAA,WAAC,EAAA,GAAG,SAAS,WAAW,EAAE,eAAC,CAAC,OAAO,CAAC,CAAA;IAC/C,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts deleted file mode 100644 index b0413d71..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileSerializer(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js deleted file mode 100644 index 29bf234c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +++ /dev/null @@ -1,218 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const util_1 = require("../util"); -const quote_1 = require("../../runtime/quote"); -const genSerialize = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -}; -function compileSerializer(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const serializeName = gen.scopeName("serialize"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.serializeName = serializeName; - gen.func(serializeName, names_1.default.data, false, () => { - gen.let(names_1.default.json, (0, codegen_1.str) ``); - serializeCode(cxt); - gen.return(names_1.default.json); - }); - gen.optimize(this.opts.code.optimize); - const serializeFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${serializeFuncCode}`; - const makeSerialize = new Function(`${names_1.default.scope}`, sourceCode); - const serialize = makeSerialize(this.scope.get()); - this.scope.value(serializeName, { ref: serialize }); - sch.serialize = serialize; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling serializer, function code:", sourceCode); - delete sch.serialize; - delete sch.serializeName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileSerializer; -function serializeCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty); -} -function serializeNullable(cxt, serializeForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return serializeForm(cxt); - gen.if((0, codegen_1._) `${data} === undefined || ${data} === null`, () => gen.add(names_1.default.json, (0, codegen_1._) `"null"`), () => serializeForm(cxt)); -} -function serializeElements(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `[`); - const first = gen.let("first", true); - gen.forOf("el", data, (el) => { - addComma(cxt, first); - serializeCode({ ...cxt, schema: schema.elements, data: el }); - }); - gen.add(names_1.default.json, (0, codegen_1.str) `]`); -} -function serializeValues(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - const first = gen.let("first", true); - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeKeyValue(cxt, key, schema, first) { - const { gen, data } = cxt; - addComma(cxt, first); - serializeString({ ...cxt, data: key }); - gen.add(names_1.default.json, (0, codegen_1.str) `:`); - const value = gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - serializeCode({ ...cxt, schema, data: value }); -} -function serializeDiscriminator(cxt) { - const { gen, schema, data } = cxt; - const { discriminator } = schema; - gen.add(names_1.default.json, (0, codegen_1.str) `{${JSON.stringify(discriminator)}:`); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(discriminator)}`); - serializeString({ ...cxt, data: tag }); - gen.if(false); - for (const tagValue in schema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - const sch = schema.mapping[tagValue]; - serializeSchemaProperties({ ...cxt, schema: sch }, discriminator); - } - gen.endIf(); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeProperties(cxt) { - const { gen } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - serializeSchemaProperties(cxt); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties } = schema; - const props = keys(properties); - const optProps = keys(optionalProperties); - const allProps = allProperties(props.concat(optProps)); - let first = !discriminator; - for (const key of props) { - serializeProperty(key, properties[key], keyValue(key)); - } - for (const key of optProps) { - const value = keyValue(key); - gen.if((0, codegen_1.and)((0, codegen_1._) `${value} !== undefined`, (0, code_1.isOwnProperty)(gen, data, key)), () => serializeProperty(key, optionalProperties[key], value)); - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => gen.if(isAdditional(key, allProps), () => serializeKeyValue(cxt, key, {}, gen.let("first", first)))); - } - function keys(ps) { - return ps ? Object.keys(ps) : []; - } - function allProperties(ps) { - if (discriminator) - ps.push(discriminator); - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap"); - } - return ps; - } - function keyValue(key) { - return gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - } - function serializeProperty(key, propSchema, value) { - if (first) - first = false; - else - gen.add(names_1.default.json, (0, codegen_1.str) `,`); - gen.add(names_1.default.json, (0, codegen_1.str) `${JSON.stringify(key)}:`); - serializeCode({ ...cxt, schema: propSchema, data: value }); - } - function isAdditional(key, ps) { - return ps.length ? (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)) : true; - } -} -function serializeType(cxt) { - const { gen, schema, data } = cxt; - switch (schema.type) { - case "boolean": - gen.add(names_1.default.json, (0, codegen_1._) `${data} ? "true" : "false"`); - break; - case "string": - serializeString(cxt); - break; - case "timestamp": - gen.if((0, codegen_1._) `${data} instanceof Date`, () => gen.add(names_1.default.json, (0, codegen_1._) `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt)); - break; - default: - serializeNumber(cxt); - } -} -function serializeString({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `${(0, util_1.useFunc)(gen, quote_1.default)}(${data})`); -} -function serializeNumber({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `"" + ${data}`); -} -function serializeRef(cxt) { - const { gen, self, data, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return serializeCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileSerializer.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - gen.add(names_1.default.json, (0, codegen_1._) `${getSerialize(gen, sch)}(${data})`); -} -function getSerialize(gen, sch) { - return sch.serialize - ? gen.scopeValue("serialize", { ref: sch.serialize }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.serialize`; -} -function serializeEmpty({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `JSON.stringify(${data})`); -} -function addComma({ gen }, first) { - gen.if(first, () => gen.assign(first, false), () => gen.add(names_1.default.json, (0, codegen_1.str) `,`)); -} -//# sourceMappingURL=serialize.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map deleted file mode 100644 index 10c6ed12..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../lib/compile/jtd/serialize.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAwE;AACxE,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAqD;AACrD,oDAAiD;AACjD,kCAA+B;AAC/B,+CAAuC;AAEvC,MAAM,YAAY,GAAkD;IAClE,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,eAAe;IACvB,aAAa,EAAE,sBAAsB;IACrC,UAAU,EAAE,mBAAmB;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,YAAY;CAClB,CAAA;AAWD,SAAwB,iBAAiB,CAEvC,GAAc,EACd,WAA4B;IAE5B,MAAM,IAAI,GAAG,sBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC/C,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IACrB,MAAM,EAAC,GAAG,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACnC,MAAM,EAAC,aAAa,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IACjC,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAAA;IAChE,MAAM,aAAa,GAAG,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAChD,MAAM,GAAG,GAAiB;QACxB,IAAI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,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;AACxD,CAAC;AAED,SAAS,YAAY,CAAC,GAAY,EAAE,GAAc;IAChD,OAAO,GAAG,CAAC,SAAS;QAClB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,EAAC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAC,CAAC;QACnD,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,CAAC,YAAY,CAAA;AAC3D,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,GAAG,EAAE,IAAI,EAAe;IAC/C,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,WAAC,EAAA,kBAAkB,IAAI,GAAG,CAAC,CAAA;AAC7C,CAAC;AAED,SAAS,QAAQ,CAAC,EAAC,GAAG,EAAe,EAAE,KAAW;IAChD,GAAG,CAAC,EAAE,CACJ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAC9B,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts deleted file mode 100644 index 38c8bea7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { SchemaObject } from "../../types"; -export declare type SchemaObjectMap = { - [Ref in string]?: SchemaObject; -}; -export declare const jtdForms: readonly ["elements", "values", "discriminator", "properties", "optionalProperties", "enum", "type", "ref"]; -export declare type JTDForm = typeof jtdForms[number]; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js deleted file mode 100644 index b9c60a90..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.jtdForms = void 0; -exports.jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -]; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map deleted file mode 100644 index 53439e00..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/compile/jtd/types.ts"],"names":[],"mappings":";;;AAIa,QAAA,QAAQ,GAAG;IACtB,UAAU;IACV,QAAQ;IACR,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,MAAM;IACN,MAAM;IACN,KAAK;CACG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts deleted file mode 100644 index 5740e82c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Name } from "./codegen"; -declare const names: { - data: Name; - valCxt: Name; - instancePath: Name; - parentData: Name; - parentDataProperty: Name; - rootData: Name; - dynamicAnchors: Name; - vErrors: Name; - errors: Name; - this: Name; - self: Name; - scope: Name; - json: Name; - jsonPos: Name; - jsonLen: Name; - jsonPart: Name; -}; -export default names; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js deleted file mode 100644 index 015334bd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("./codegen"); -const names = { - // validation function arguments - data: new codegen_1.Name("data"), - // args passed from referencing schema - valCxt: new codegen_1.Name("valCxt"), - instancePath: new codegen_1.Name("instancePath"), - parentData: new codegen_1.Name("parentData"), - parentDataProperty: new codegen_1.Name("parentDataProperty"), - rootData: new codegen_1.Name("rootData"), - dynamicAnchors: new codegen_1.Name("dynamicAnchors"), - // function scoped variables - vErrors: new codegen_1.Name("vErrors"), - errors: new codegen_1.Name("errors"), - this: new codegen_1.Name("this"), - // "globals" - self: new codegen_1.Name("self"), - scope: new codegen_1.Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new codegen_1.Name("json"), - jsonPos: new codegen_1.Name("jsonPos"), - jsonLen: new codegen_1.Name("jsonLen"), - jsonPart: new codegen_1.Name("jsonPart"), -}; -exports.default = names; -//# sourceMappingURL=names.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map deleted file mode 100644 index 9bbe8e27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"names.js","sourceRoot":"","sources":["../../lib/compile/names.ts"],"names":[],"mappings":";;AAAA,uCAA8B;AAE9B,MAAM,KAAK,GAAG;IACZ,gCAAgC;IAChC,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,sCAAsC;IACtC,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC;IAC1B,YAAY,EAAE,IAAI,cAAI,CAAC,cAAc,CAAC;IACtC,UAAU,EAAE,IAAI,cAAI,CAAC,YAAY,CAAC;IAClC,kBAAkB,EAAE,IAAI,cAAI,CAAC,oBAAoB,CAAC;IAClD,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC;IAC9B,cAAc,EAAE,IAAI,cAAI,CAAC,gBAAgB,CAAC;IAC1C,4BAA4B;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC;IAC1B,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,YAAY;IACZ,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,IAAI,cAAI,CAAC,OAAO,CAAC;IACxB,wDAAwD;IACxD,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC;CAC/B,CAAA;AAED,kBAAe,KAAK,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts deleted file mode 100644 index 43374439..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { UriResolver } from "../types"; -export default class MissingRefError extends Error { - readonly missingRef: string; - readonly missingSchema: string; - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string); -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js deleted file mode 100644 index 3916dec8..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const resolve_1 = require("./resolve"); -class MissingRefError extends Error { - constructor(resolver, baseId, ref, msg) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`); - this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref); - this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef)); - } -} -exports.default = MissingRefError; -//# sourceMappingURL=ref_error.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map deleted file mode 100644 index d13f5f2d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref_error.js","sourceRoot":"","sources":["../../lib/compile/ref_error.ts"],"names":[],"mappings":";;AAAA,uCAA8D;AAG9D,MAAqB,eAAgB,SAAQ,KAAK;IAIhD,YAAY,QAAqB,EAAE,MAAc,EAAE,GAAW,EAAE,GAAY;QAC1E,KAAK,CAAC,GAAG,IAAI,2BAA2B,GAAG,YAAY,MAAM,EAAE,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,GAAG,IAAA,oBAAU,EAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;QACnD,IAAI,CAAC,aAAa,GAAG,IAAA,qBAAW,EAAC,IAAA,qBAAW,EAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;IAC1E,CAAC;CACF;AATD,kCASC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts deleted file mode 100644 index 745eaeb4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { AnySchema, AnySchemaObject, UriResolver } from "../types"; -import type Ajv from "../ajv"; -import type { URIComponents } from "uri-js"; -export declare type LocalRefs = { - [Ref in string]?: AnySchemaObject; -}; -export declare function inlineRef(schema: AnySchema, limit?: boolean | number): boolean; -export declare function getFullPath(resolver: UriResolver, id?: string, normalize?: boolean): string; -export declare function _getFullPath(resolver: UriResolver, p: URIComponents): string; -export declare function normalizeId(id: string | undefined): string; -export declare function resolveUrl(resolver: UriResolver, baseId: string, id: string): string; -export declare function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js deleted file mode 100644 index 8b51a20e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0; -const util_1 = require("./util"); -const equal = require("fast-deep-equal"); -const traverse = require("json-schema-traverse"); -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]); -function inlineRef(schema, limit = true) { - if (typeof schema == "boolean") - return true; - if (limit === true) - return !hasRef(schema); - if (!limit) - return false; - return countKeys(schema) <= limit; -} -exports.inlineRef = inlineRef; -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]); -function hasRef(schema) { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) - return true; - const sch = schema[key]; - if (Array.isArray(sch) && sch.some(hasRef)) - return true; - if (typeof sch == "object" && hasRef(sch)) - return true; - } - return false; -} -function countKeys(schema) { - let count = 0; - for (const key in schema) { - if (key === "$ref") - return Infinity; - count++; - if (SIMPLE_INLINED.has(key)) - continue; - if (typeof schema[key] == "object") { - (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch))); - } - if (count === Infinity) - return Infinity; - } - return count; -} -function getFullPath(resolver, id = "", normalize) { - if (normalize !== false) - id = normalizeId(id); - const p = resolver.parse(id); - return _getFullPath(resolver, p); -} -exports.getFullPath = getFullPath; -function _getFullPath(resolver, p) { - const serialized = resolver.serialize(p); - return serialized.split("#")[0] + "#"; -} -exports._getFullPath = _getFullPath; -const TRAILING_SLASH_HASH = /#\/?$/; -function normalizeId(id) { - return id ? id.replace(TRAILING_SLASH_HASH, "") : ""; -} -exports.normalizeId = normalizeId; -function resolveUrl(resolver, baseId, id) { - id = normalizeId(id); - return resolver.resolve(baseId, id); -} -exports.resolveUrl = resolveUrl; -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i; -function getSchemaRefs(schema, baseId) { - if (typeof schema == "boolean") - return {}; - const { schemaId, uriResolver } = this.opts; - const schId = normalizeId(schema[schemaId] || baseId); - const baseIds = { "": schId }; - const pathPrefix = getFullPath(uriResolver, schId, false); - const localRefs = {}; - const schemaRefs = new Set(); - traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) - return; - const fullPath = pathPrefix + jsonPtr; - let baseId = baseIds[parentJsonPtr]; - if (typeof sch[schemaId] == "string") - baseId = addRef.call(this, sch[schemaId]); - addAnchor.call(this, sch.$anchor); - addAnchor.call(this, sch.$dynamicAnchor); - baseIds[jsonPtr] = baseId; - function addRef(ref) { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve; - ref = normalizeId(baseId ? _resolve(baseId, ref) : ref); - if (schemaRefs.has(ref)) - throw ambiguos(ref); - schemaRefs.add(ref); - let schOrRef = this.refs[ref]; - if (typeof schOrRef == "string") - schOrRef = this.refs[schOrRef]; - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref); - } - else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref); - localRefs[ref] = sch; - } - else { - this.refs[ref] = fullPath; - } - } - return ref; - } - function addAnchor(anchor) { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) - throw new Error(`invalid anchor "${anchor}"`); - addRef.call(this, `#${anchor}`); - } - } - }); - return localRefs; - function checkAmbiguosRef(sch1, sch2, ref) { - if (sch2 !== undefined && !equal(sch1, sch2)) - throw ambiguos(ref); - } - function ambiguos(ref) { - return new Error(`reference "${ref}" resolves to more than one schema`); - } -} -exports.getSchemaRefs = getSchemaRefs; -//# sourceMappingURL=resolve.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map deleted file mode 100644 index 81f08b0c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../lib/compile/resolve.ts"],"names":[],"mappings":";;;AAGA,iCAA+B;AAC/B,yCAAwC;AACxC,iDAAgD;AAKhD,2CAA2C;AAC3C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,MAAM;IACN,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,SAAS;IACT,SAAS;IACT,aAAa;IACb,YAAY;IACZ,UAAU;IACV,MAAM;IACN,OAAO;CACR,CAAC,CAAA;AAEF,SAAgB,SAAS,CAAC,MAAiB,EAAE,QAA0B,IAAI;IACzE,IAAI,OAAO,MAAM,IAAI,SAAS;QAAE,OAAO,IAAI,CAAA;IAC3C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC1C,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,CAAA;AACnC,CAAC;AALD,8BAKC;AAED,MAAM,YAAY,GAAG,IA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ajv/dist/compile/rules.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts deleted file mode 100644 index 7def4b5a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { AddedKeywordDefinition } from "../types"; -declare const _jsonTypes: readonly ["string", "number", "integer", "boolean", "null", "object", "array"]; -export declare type JSONType = typeof _jsonTypes[number]; -export declare function isJSONType(x: unknown): x is JSONType; -declare type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined; -}; -export interface ValidationRules { - rules: RuleGroup[]; - post: RuleGroup; - all: { - [Key in string]?: boolean | Rule; - }; - keywords: { - [Key in string]?: boolean; - }; - types: ValidationTypes; -} -export interface RuleGroup { - type?: JSONType; - rules: Rule[]; -} -export interface Rule { - keyword: string; - definition: AddedKeywordDefinition; -} -export declare function getRules(): ValidationRules; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js deleted file mode 100644 index 82a591ff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRules = exports.isJSONType = void 0; -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; -const jsonTypes = new Set(_jsonTypes); -function isJSONType(x) { - return typeof x == "string" && jsonTypes.has(x); -} -exports.isJSONType = isJSONType; -function getRules() { - const groups = { - number: { type: "number", rules: [] }, - string: { type: "string", rules: [] }, - array: { type: "array", rules: [] }, - object: { type: "object", rules: [] }, - }; - return { - types: { ...groups, integer: true, boolean: true, null: true }, - rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object], - post: { rules: [] }, - all: {}, - keywords: {}, - }; -} -exports.getRules = getRules; -//# sourceMappingURL=rules.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map deleted file mode 100644 index 084c70f8..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../lib/compile/rules.ts"],"names":[],"mappings":";;;AAEA,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;AAIjG,MAAM,SAAS,GAAgB,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;AAElD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,OAAO,CAAC,IAAI,QAAQ,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC;AAFD,gCAEC;AAyBD,SAAgB,QAAQ;IACtB,MAAM,MAAM,GAAgE;QAC1E,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAC;QACjC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;KACpC,CAAA;IACD,OAAO;QACL,KAAK,EAAE,EAAC,GAAG,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;QAC5D,KAAK,EAAE,CAAC,EAAC,KAAK,EAAE,EAAE,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QAC/E,IAAI,EAAE,EAAC,KAAK,EAAE,EAAE,EAAC;QACjB,GAAG,EAAE,EAAE;QACP,QAAQ,EAAE,EAAE;KACb,CAAA;AACH,CAAC;AAdD,4BAcC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts deleted file mode 100644 index 17042cf0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { AnySchema, EvaluatedProperties, EvaluatedItems } from "../types"; -import type { SchemaCxt, SchemaObjCxt } from "."; -import { Code, Name, CodeGen } from "./codegen"; -import type { Rule, ValidationRules } from "./rules"; -export declare function toHash(arr: T[]): { - [K in T]?: true; -}; -export declare function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void; -export declare function checkUnknownRules(it: SchemaCxt, schema?: AnySchema): void; -export declare function schemaHasRules(schema: AnySchema, rules: { - [Key in string]?: boolean | Rule; -}): boolean; -export declare function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean; -export declare function schemaRefOrVal({ topSchemaRef, schemaPath }: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false): Code | number | boolean; -export declare function unescapeFragment(str: string): string; -export declare function escapeFragment(str: string | number): string; -export declare function escapeJsonPointer(str: string | number): string; -export declare function unescapeJsonPointer(str: string): string; -export declare function eachItem(xs: T | T[], f: (x: T) => void): void; -declare type SomeEvaluated = EvaluatedProperties | EvaluatedItems; -declare type MergeEvaluatedFunc = (gen: CodeGen, from: Name | T, to: Name | Exclude | undefined, toName?: typeof Name) => Name | T; -interface MergeEvaluated { - props: MergeEvaluatedFunc; - items: MergeEvaluatedFunc; -} -export declare const mergeEvaluated: MergeEvaluated; -export declare function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name; -export declare function setEvaluated(gen: CodeGen, props: Name, ps: { - [K in string]?: true; -}): void; -export declare function useFunc(gen: CodeGen, f: { - code: string; -}): Name; -export declare enum Type { - Num = 0, - Str = 1 -} -export declare function getErrorPath(dataProp: Name | string | number, dataPropType?: Type, jsPropertySyntax?: boolean): Code | string; -export declare function checkStrictMode(it: SchemaCxt, msg: string, mode?: boolean | "log"): void; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js deleted file mode 100644 index 091ad4c0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0; -const codegen_1 = require("./codegen"); -const code_1 = require("./codegen/code"); -// TODO refactor to use Set -function toHash(arr) { - const hash = {}; - for (const item of arr) - hash[item] = true; - return hash; -} -exports.toHash = toHash; -function alwaysValidSchema(it, schema) { - if (typeof schema == "boolean") - return schema; - if (Object.keys(schema).length === 0) - return true; - checkUnknownRules(it, schema); - return !schemaHasRules(schema, it.self.RULES.all); -} -exports.alwaysValidSchema = alwaysValidSchema; -function checkUnknownRules(it, schema = it.schema) { - const { opts, self } = it; - if (!opts.strictSchema) - return; - if (typeof schema === "boolean") - return; - const rules = self.RULES.keywords; - for (const key in schema) { - if (!rules[key]) - checkStrictMode(it, `unknown keyword: "${key}"`); - } -} -exports.checkUnknownRules = checkUnknownRules; -function schemaHasRules(schema, rules) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (rules[key]) - return true; - return false; -} -exports.schemaHasRules = schemaHasRules; -function schemaHasRulesButRef(schema, RULES) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (key !== "$ref" && RULES.all[key]) - return true; - return false; -} -exports.schemaHasRulesButRef = schemaHasRulesButRef; -function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") - return schema; - if (typeof schema == "string") - return (0, codegen_1._) `${schema}`; - } - return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`; -} -exports.schemaRefOrVal = schemaRefOrVal; -function unescapeFragment(str) { - return unescapeJsonPointer(decodeURIComponent(str)); -} -exports.unescapeFragment = unescapeFragment; -function escapeFragment(str) { - return encodeURIComponent(escapeJsonPointer(str)); -} -exports.escapeFragment = escapeFragment; -function escapeJsonPointer(str) { - if (typeof str == "number") - return `${str}`; - return str.replace(/~/g, "~0").replace(/\//g, "~1"); -} -exports.escapeJsonPointer = escapeJsonPointer; -function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); -} -exports.unescapeJsonPointer = unescapeJsonPointer; -function eachItem(xs, f) { - if (Array.isArray(xs)) { - for (const x of xs) - f(x); - } - else { - f(xs); - } -} -exports.eachItem = eachItem; -function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) { - return (gen, from, to, toName) => { - const res = to === undefined - ? from - : to instanceof codegen_1.Name - ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof codegen_1.Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to); - return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res; - }; -} -exports.mergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => { - gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`)); - }), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => { - if (from === true) { - gen.assign(to, true); - } - else { - gen.assign(to, (0, codegen_1._) `${to} || {}`); - setEvaluated(gen, to, from); - } - }), - mergeValues: (from, to) => (from === true ? true : { ...from, ...to }), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -}; -function evaluatedPropsToName(gen, ps) { - if (ps === true) - return gen.var("props", true); - const props = gen.var("props", (0, codegen_1._) `{}`); - if (ps !== undefined) - setEvaluated(gen, props, ps); - return props; -} -exports.evaluatedPropsToName = evaluatedPropsToName; -function setEvaluated(gen, props, ps) { - Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true)); -} -exports.setEvaluated = setEvaluated; -const snippets = {}; -function useFunc(gen, f) { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)), - }); -} -exports.useFunc = useFunc; -var Type; -(function (Type) { - Type[Type["Num"] = 0] = "Num"; - Type[Type["Str"] = 1] = "Str"; -})(Type = exports.Type || (exports.Type = {})); -function getErrorPath(dataProp, dataPropType, jsPropertySyntax) { - // let path - if (dataProp instanceof codegen_1.Name) { - const isNumber = dataPropType === Type.Num; - return jsPropertySyntax - ? isNumber - ? (0, codegen_1._) `"[" + ${dataProp} + "]"` - : (0, codegen_1._) `"['" + ${dataProp} + "']"` - : isNumber - ? (0, codegen_1._) `"/" + ${dataProp}` - : (0, codegen_1._) `"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; // TODO maybe use global escapePointer - } - return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp); -} -exports.getErrorPath = getErrorPath; -function checkStrictMode(it, msg, mode = it.opts.strictSchema) { - if (!mode) - return; - msg = `strict mode: ${msg}`; - if (mode === true) - throw new Error(msg); - it.self.logger.warn(msg); -} -exports.checkStrictMode = checkStrictMode; -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map deleted file mode 100644 index a2128fc3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../lib/compile/util.ts"],"names":[],"mappings":";;;AAEA,uCAA6D;AAC7D,yCAAoC;AAGpC,2BAA2B;AAC3B,SAAgB,MAAM,CAA4B,GAAQ;IACxD,MAAM,IAAI,GAAsB,EAAE,CAAA;IAClC,KAAK,MAAM,IAAI,IAAI,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzC,OAAO,IAAI,CAAA;AACb,CAAC;AAJD,wBAIC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,MAAiB;IAChE,IAAI,OAAO,MAAM,IAAI,SAAS;QAAE,OAAO,MAAM,CAAA;IAC7C,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IACjD,iBAAiB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AACnD,CAAC;AALD,8CAKC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,SAAoB,EAAE,CAAC,MAAM;IAC5E,MAAM,EAAC,IAA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;IACvC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC;AATD,0CASC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts deleted file mode 100644 index 165d375d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType, RuleGroup, Rule } from "../rules"; -export declare function schemaHasRulesForType({ schema, self }: SchemaObjCxt, type: JSONType): boolean | undefined; -export declare function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean; -export declare function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js deleted file mode 100644 index 6187dbbe..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0; -function schemaHasRulesForType({ schema, self }, type) { - const group = self.RULES.types[type]; - return group && group !== true && shouldUseGroup(schema, group); -} -exports.schemaHasRulesForType = schemaHasRulesForType; -function shouldUseGroup(schema, group) { - return group.rules.some((rule) => shouldUseRule(schema, rule)); -} -exports.shouldUseGroup = shouldUseGroup; -function shouldUseRule(schema, rule) { - var _a; - return (schema[rule.keyword] !== undefined || - ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); -} -exports.shouldUseRule = shouldUseRule; -//# sourceMappingURL=applicability.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map deleted file mode 100644 index 450cfe75..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applicability.js","sourceRoot":"","sources":["../../../lib/compile/validate/applicability.ts"],"names":[],"mappings":";;;AAIA,SAAgB,qBAAqB,CACnC,EAAC,MAAM,EAAE,IAAI,EAAe,EAC5B,IAAc;IAEd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACpC,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AACjE,CAAC;AAND,sDAMC;AAED,SAAgB,cAAc,CAAC,MAAuB,EAAE,KAAgB;IACtE,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAuB,EAAE,IAAU;;IAC/D,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS;SAClC,MAAA,IAAI,CAAC,UAAU,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAA,CACrE,CAAA;AACH,CAAC;AALD,sCAKC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts deleted file mode 100644 index 0ce79520..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { SchemaCxt } from ".."; -import { Name } from "../codegen"; -export declare function topBoolOrEmptySchema(it: SchemaCxt): void; -export declare function boolOrEmptySchema(it: SchemaCxt, valid: Name): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js deleted file mode 100644 index 8eeb7b5e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0; -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const boolError = { - message: "boolean schema is false", -}; -function topBoolOrEmptySchema(it) { - const { gen, schema, validateName } = it; - if (schema === false) { - falseSchemaError(it, false); - } - else if (typeof schema == "object" && schema.$async === true) { - gen.return(names_1.default.data); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, null); - gen.return(true); - } -} -exports.topBoolOrEmptySchema = topBoolOrEmptySchema; -function boolOrEmptySchema(it, valid) { - const { gen, schema } = it; - if (schema === false) { - gen.var(valid, false); // TODO var - falseSchemaError(it); - } - else { - gen.var(valid, true); // TODO var - } -} -exports.boolOrEmptySchema = boolOrEmptySchema; -function falseSchemaError(it, overrideAllErrors) { - const { gen, data } = it; - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - }; - (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors); -} -//# sourceMappingURL=boolSchema.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map deleted file mode 100644 index 4aa6c99a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +++ /dev/null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B;QAC3B,GAAG;QACH,OAAO,EAAE,cAAc;QACvB,IAAI;QACJ,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,EAAE;QACV,EAAE;KACH,CAAA;IACD,IAAA,oBAAW,EAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAA;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts deleted file mode 100644 index 65c1268e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { ErrorObject, AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { JSONType } from "../rules"; -import { Code, Name } from "../codegen"; -export declare enum DataType { - Correct = 0, - Wrong = 1 -} -export declare function getSchemaTypes(schema: AnySchemaObject): JSONType[]; -export declare function getJSONTypes(ts: unknown | unknown[]): JSONType[]; -export declare function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean; -export declare function checkDataType(dataType: JSONType, data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export declare function checkDataTypes(dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export declare type TypeError = ErrorObject<"type", { - type: string; -}>; -export declare function reportTypeError(it: SchemaObjCxt): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js deleted file mode 100644 index 1732d466..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +++ /dev/null @@ -1,202 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0; -const rules_1 = require("../rules"); -const applicability_1 = require("./applicability"); -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -var DataType; -(function (DataType) { - DataType[DataType["Correct"] = 0] = "Correct"; - DataType[DataType["Wrong"] = 1] = "Wrong"; -})(DataType = exports.DataType || (exports.DataType = {})); -function getSchemaTypes(schema) { - const types = getJSONTypes(schema.type); - const hasNull = types.includes("null"); - if (hasNull) { - if (schema.nullable === false) - throw new Error("type: null contradicts nullable: false"); - } - else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"'); - } - if (schema.nullable === true) - types.push("null"); - } - return types; -} -exports.getSchemaTypes = getSchemaTypes; -function getJSONTypes(ts) { - const types = Array.isArray(ts) ? ts : ts ? [ts] : []; - if (types.every(rules_1.isJSONType)) - return types; - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); -} -exports.getJSONTypes = getJSONTypes; -function coerceAndCheckDataType(it, types) { - const { gen, data, opts } = it; - const coerceTo = coerceToTypes(types, opts.coerceTypes); - const checkTypes = types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong); - gen.if(wrongType, () => { - if (coerceTo.length) - coerceData(it, types, coerceTo); - else - reportTypeError(it); - }); - } - return checkTypes; -} -exports.coerceAndCheckDataType = coerceAndCheckDataType; -const COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]); -function coerceToTypes(types, coerceTypes) { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : []; -} -function coerceData(it, types, coerceTo) { - const { gen, data, opts } = it; - const dataType = gen.let("dataType", (0, codegen_1._) `typeof ${data}`); - const coerced = gen.let("coerced", (0, codegen_1._) `undefined`); - if (opts.coerceTypes === "array") { - gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen - .assign(data, (0, codegen_1._) `${data}[0]`) - .assign(dataType, (0, codegen_1._) `typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))); - } - gen.if((0, codegen_1._) `${coerced} !== undefined`); - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t); - } - } - gen.else(); - reportTypeError(it); - gen.endIf(); - gen.if((0, codegen_1._) `${coerced} !== undefined`, () => { - gen.assign(data, coerced); - assignParentData(it, coerced); - }); - function coerceSpecificType(t) { - switch (t) { - case "string": - gen - .elseIf((0, codegen_1._) `${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, (0, codegen_1._) `"" + ${data}`) - .elseIf((0, codegen_1._) `${data} === null`) - .assign(coerced, (0, codegen_1._) `""`); - return; - case "number": - gen - .elseIf((0, codegen_1._) `${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "integer": - gen - .elseIf((0, codegen_1._) `${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "boolean": - gen - .elseIf((0, codegen_1._) `${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf((0, codegen_1._) `${data} === "true" || ${data} === 1`) - .assign(coerced, true); - return; - case "null": - gen.elseIf((0, codegen_1._) `${data} === "" || ${data} === 0 || ${data} === false`); - gen.assign(coerced, null); - return; - case "array": - gen - .elseIf((0, codegen_1._) `${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`) - .assign(coerced, (0, codegen_1._) `[${data}]`); - } - } -} -function assignParentData({ gen, parentData, parentDataProperty }, expr) { - // TODO use gen.property - gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr)); -} -function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { - const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; - let cond; - switch (dataType) { - case "null": - return (0, codegen_1._) `${data} ${EQ} null`; - case "array": - cond = (0, codegen_1._) `Array.isArray(${data})`; - break; - case "object": - cond = (0, codegen_1._) `${data} && typeof ${data} == "object" && !Array.isArray(${data})`; - break; - case "integer": - cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`); - break; - case "number": - cond = numCond(); - break; - default: - return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`; - } - return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond); - function numCond(_cond = codegen_1.nil) { - return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil); - } -} -exports.checkDataType = checkDataType; -function checkDataTypes(dataTypes, data, strictNums, correct) { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct); - } - let cond; - const types = (0, util_1.toHash)(dataTypes); - if (types.array && types.object) { - const notObj = (0, codegen_1._) `typeof ${data} != "object"`; - cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`; - delete types.null; - delete types.array; - delete types.object; - } - else { - cond = codegen_1.nil; - } - if (types.number) - delete types.integer; - for (const t in types) - cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct)); - return cond; -} -exports.checkDataTypes = checkDataTypes; -const typeError = { - message: ({ schema }) => `must be ${schema}`, - params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`, -}; -function reportTypeError(it) { - const cxt = getTypeErrorContext(it); - (0, errors_1.reportError)(cxt, typeError); -} -exports.reportTypeError = reportTypeError; -function getTypeErrorContext(it) { - const { gen, data, schema } = it; - const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - }; -} -//# sourceMappingURL=dataType.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map deleted file mode 100644 index f19c40bc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataType.js","sourceRoot":"","sources":["../../../lib/compile/validate/dataType.ts"],"names":[],"mappings":";;;AAOA,oCAA6C;AAC7C,mDAAqD;AACrD,sCAAqC;AACrC,wCAAkE;AAClE,kCAA8C;AAE9C,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,6CAAO,CAAA;IACP,yCAAK,CAAA;AACP,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED,SAAgB,cAAc,CAAC,MAAuB;IACpD,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACtC,IAAI,OAAO,EAAE;QACX,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;KACzF;SAAM;QACL,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAClD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;SAC5D;QACD,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;KACjD;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAZD,wCAYC;AAED,SAAgB,YAAY,CAAC,EAAuB;IAClD,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M,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,MAAM,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,WAAW,GAAG;CAC/E,CAAA;AAED,SAAgB,eAAe,CAAC,EAAgB;IAC9C,MAAM,GAAG,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;IACnC,IAAA,oBAAW,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;AAC7B,CAAC;AAHD,0CAGC;AAED,SAAS,mBAAmB,CAAC,EAAgB;IAC3C,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,GAAG,EAAE,CAAA;IAC9B,MAAM,UAAU,GAAG,IAAA,qBAAc,EAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACrD,OAAO;QACL,GAAG;QACH,OAAO,EAAE,MAAM;QACf,IAAI;QACJ,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,UAAU;QACV,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,MAAM;QACpB,MAAM,EAAE,EAAE;QACV,EAAE;KACH,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts deleted file mode 100644 index 02ba453b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaObjCxt } from ".."; -export declare function assignDefaults(it: SchemaObjCxt, ty?: string): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js deleted file mode 100644 index cd9c42d9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assignDefaults = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function assignDefaults(it, ty) { - const { properties, items } = it.schema; - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default); - } - } - else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i) => assignDefault(it, i, sch.default)); - } -} -exports.assignDefaults = assignDefaults; -function assignDefault(it, prop, defaultValue) { - const { gen, compositeRule, data, opts } = it; - if (defaultValue === undefined) - return; - const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`; - if (compositeRule) { - (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`); - return; - } - let condition = (0, codegen_1._) `${childData} === undefined`; - if (opts.useDefaults === "empty") { - condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === ""`; - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`); -} -//# sourceMappingURL=defaults.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map deleted file mode 100644 index c435d057..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../lib/compile/validate/defaults.ts"],"names":[],"mappings":";;;AACA,wCAAoD;AACpD,kCAAuC;AAEvC,SAAgB,cAAc,CAAC,EAAgB,EAAE,EAAW;IAC1D,MAAM,EAAC,UAAU,EAAE,KAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAA;IACrC,IAAI,EAAE,KAAK,QAAQ,IAAI,UAAU,EAAE;QACjC,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;YAC5B,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAA;SAChD;KACF;SAAM,IAAI,EAAE,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;KACrE;AACH,CAAC;AATD,wCASC;AAED,SAAS,aAAa,CAAC,EAAgB,EAAE,IAAqB,EAAE,YAAqB;IACnF,MAAM,EAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;IAC3C,IAAI,YAAY,KAAK,SAAS;QAAE,OAAM;IACtC,MAAM,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,IAAI,GAAG,IAAA,qBAAW,EAAC,IAAI,CAAC,EAAE,CAAA;IAChD,IAAI,aAAa,EAAE;QACjB,IAAA,sBAAe,EAAC,EAAE,EAAE,2BAA2B,SAAS,EAAE,CAAC,CAAA;QAC3D,OAAM;KACP;IAED,IAAI,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,SAAS,gBAAgB,CAAA;IAC7C,IAAI,IAAI,CAAC,WAAW,KAAK,OAAO,EAAE;QAChC,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,SAAS,OAAO,SAAS,gBAAgB,SAAS,SAAS,CAAA;KAC5E;IACD,iCAAiC;IACjC,2FAA2F;IAC3F,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,IAAA,WAAC,EAAA,GAAG,SAAS,MAAM,IAAA,mBAAS,EAAC,YAAY,CAAC,EAAE,CAAC,CAAA;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts deleted file mode 100644 index 6c533ed7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AddedKeywordDefinition, AnySchemaObject, KeywordErrorCxt, KeywordCxtParams } from "../../types"; -import type { SchemaCxt, SchemaObjCxt } from ".."; -import { SubschemaArgs } from "./subschema"; -import { Code, Name, CodeGen } from "../codegen"; -import type { JSONType } from "../rules"; -import { ErrorPaths } from "../errors"; -export declare function validateFunctionCode(it: SchemaCxt): void; -export declare class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly keyword: string; - readonly data: Name; - readonly $data?: string | false; - schema: any; - readonly schemaValue: Code | number | boolean; - readonly schemaCode: Code | number | boolean; - readonly schemaType: JSONType[]; - readonly parentSchema: AnySchemaObject; - readonly errsCount?: Name; - params: KeywordCxtParams; - readonly it: SchemaObjCxt; - readonly def: AddedKeywordDefinition; - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string); - result(condition: Code, successAction?: () => void, failAction?: () => void): void; - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void; - pass(condition: Code, failAction?: () => void): void; - fail(condition?: Code): void; - fail$data(condition: Code): void; - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void; - private _error; - $dataError(): void; - reset(): void; - ok(cond: Code | boolean): void; - setParams(obj: KeywordCxtParams, assign?: true): void; - block$data(valid: Name, codeBlock: () => void, $dataValid?: Code): void; - check$data(valid?: Name, $dataValid?: Code): void; - invalid$data(): Code; - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt; - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void; - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void; -} -export declare function getData($data: string, { dataLevel, dataNames, dataPathArr }: SchemaCxt): Code | number; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js deleted file mode 100644 index fffcd5f0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +++ /dev/null @@ -1,510 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0; -const boolSchema_1 = require("./boolSchema"); -const dataType_1 = require("./dataType"); -const applicability_1 = require("./applicability"); -const dataType_2 = require("./dataType"); -const defaults_1 = require("./defaults"); -const keyword_1 = require("./keyword"); -const subschema_1 = require("./subschema"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const resolve_1 = require("../resolve"); -const util_1 = require("../util"); -const errors_1 = require("../errors"); -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -function validateFunctionCode(it) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it); - return; - } - } - validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); -} -exports.validateFunctionCode = validateFunctionCode; -function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { - if (opts.code.es5) { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { - gen.code((0, codegen_1._) `"use strict"; ${funcSourceUrl(schema, opts)}`); - destructureValCxtES5(gen, opts); - gen.code(body); - }); - } - else { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body)); - } -} -function destructureValCxt(opts) { - return (0, codegen_1._) `{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`; -} -function destructureValCxtES5(gen, opts) { - gen.if(names_1.default.valCxt, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`); - gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`); - gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`); - }, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `""`); - gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`); - gen.var(names_1.default.rootData, names_1.default.data); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`); - }); -} -function topSchemaObjCode(it) { - const { schema, opts, gen } = it; - validateFunction(it, () => { - if (opts.$comment && schema.$comment) - commentKeyword(it); - checkNoDefault(it); - gen.let(names_1.default.vErrors, null); - gen.let(names_1.default.errors, 0); - if (opts.unevaluated) - resetEvaluated(it); - typeAndKeywords(it); - returnResults(it); - }); - return; -} -function resetEvaluated(it) { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const { gen, validateName } = it; - it.evaluated = gen.const("evaluated", (0, codegen_1._) `${validateName}.evaluated`); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`)); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`)); -} -function funcSourceUrl(schema, opts) { - const schId = typeof schema == "object" && schema[opts.schemaId]; - return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil; -} -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it, valid) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid); - return; - } - } - (0, boolSchema_1.boolOrEmptySchema)(it, valid); -} -function schemaCxtHasRules({ schema, self }) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (self.RULES.all[key]) - return true; - return false; -} -function isSchemaObj(it) { - return typeof it.schema != "boolean"; -} -function subSchemaObjCode(it, valid) { - const { schema, gen, opts } = it; - if (opts.$comment && schema.$comment) - commentKeyword(it); - updateContext(it); - checkAsyncSchema(it); - const errsCount = gen.const("_errs", names_1.default.errors); - typeAndKeywords(it, errsCount); - // TODO var - gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); -} -function checkKeywords(it) { - (0, util_1.checkUnknownRules)(it); - checkRefsAndKeywords(it); -} -function typeAndKeywords(it, errsCount) { - if (it.opts.jtd) - return schemaKeywords(it, [], false, errsCount); - const types = (0, dataType_1.getSchemaTypes)(it.schema); - const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); - schemaKeywords(it, types, !checkedTypes, errsCount); -} -function checkRefsAndKeywords(it) { - const { schema, errSchemaPath, opts, self } = it; - if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); - } -} -function checkNoDefault(it) { - const { schema, opts } = it; - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); - } -} -function updateContext(it) { - const schId = it.schema[it.opts.schemaId]; - if (schId) - it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); -} -function checkAsyncSchema(it) { - if (it.schema.$async && !it.schemaEnv.$async) - throw new Error("async schema in sync schema"); -} -function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { - const msg = schema.$comment; - if (opts.$comment === true) { - gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`); - } - else if (typeof opts.$comment == "function") { - const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`; - const rootName = gen.scopeValue("root", { ref: schemaEnv.root }); - gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`); - } -} -function returnResults(it) { - const { gen, schemaEnv, validateName, ValidationError, opts } = it; - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`)); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors); - if (opts.unevaluated) - assignEvaluated(it); - gen.return((0, codegen_1._) `${names_1.default.errors} === 0`); - } -} -function assignEvaluated({ gen, evaluated, props, items }) { - if (props instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.props`, props); - if (items instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.items`, items); -} -function schemaKeywords(it, types, typeErrors, errsCount) { - const { gen, schema, data, allErrors, opts, self } = it; - const { RULES } = self; - if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); // TODO typecast - return; - } - if (!opts.jtd) - checkStrictTypes(it, types); - gen.block(() => { - for (const group of RULES.rules) - groupKeywords(group); - groupKeywords(RULES.post); - }); - function groupKeywords(group) { - if (!(0, applicability_1.shouldUseGroup)(schema, group)) - return; - if (group.type) { - gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); - iterateKeywords(it, group); - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else(); - (0, dataType_2.reportTypeError)(it); - } - gen.endIf(); - } - else { - iterateKeywords(it, group); - } - // TODO make it "ok" call? - if (!allErrors) - gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`); - } -} -function iterateKeywords(it, group) { - const { gen, schema, opts: { useDefaults }, } = it; - if (useDefaults) - (0, defaults_1.assignDefaults)(it, group.type); - gen.block(() => { - for (const rule of group.rules) { - if ((0, applicability_1.shouldUseRule)(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type); - } - } - }); -} -function checkStrictTypes(it, types) { - if (it.schemaEnv.meta || !it.opts.strictTypes) - return; - checkContextTypes(it, types); - if (!it.opts.allowUnionTypes) - checkMultipleTypes(it, types); - checkKeywordTypes(it, it.dataTypes); -} -function checkContextTypes(it, types) { - if (!types.length) - return; - if (!it.dataTypes.length) { - it.dataTypes = types; - return; - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`); - } - }); - it.dataTypes = it.dataTypes.filter((t) => includesType(types, t)); -} -function checkMultipleTypes(it, ts) { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword"); - } -} -function checkKeywordTypes(it, ts) { - const rules = it.self.RULES.all; - for (const keyword in rules) { - const rule = rules[keyword]; - if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) { - const { type } = rule.definition; - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`); - } - } - } -} -function hasApplicableType(schTs, kwdT) { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")); -} -function includesType(ts, t) { - return ts.includes(t) || (t === "integer" && ts.includes("number")); -} -function strictTypesError(it, msg) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - msg += ` at "${schemaPath}" (strictTypes)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); -} -class KeywordCxt { - constructor(it, def, keyword) { - (0, keyword_1.validateKeywordUsage)(it, def, keyword); - this.gen = it.gen; - this.allErrors = it.allErrors; - this.keyword = keyword; - this.data = it.data; - this.schema = it.schema[keyword]; - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data; - this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data); - this.schemaType = def.schemaType; - this.parentSchema = it.schema; - this.params = {}; - this.it = it; - this.def = def; - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)); - } - else { - this.schemaCode = this.schemaValue; - if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`); - } - } - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", names_1.default.errors); - } - } - result(condition, successAction, failAction) { - this.failResult((0, codegen_1.not)(condition), successAction, failAction); - } - failResult(condition, successAction, failAction) { - this.gen.if(condition); - if (failAction) - failAction(); - else - this.error(); - if (successAction) { - this.gen.else(); - successAction(); - if (this.allErrors) - this.gen.endIf(); - } - else { - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - } - pass(condition, failAction) { - this.failResult((0, codegen_1.not)(condition), undefined, failAction); - } - fail(condition) { - if (condition === undefined) { - this.error(); - if (!this.allErrors) - this.gen.if(false); // this branch will be removed by gen.optimize - return; - } - this.gen.if(condition); - this.error(); - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - fail$data(condition) { - if (!this.$data) - return this.fail(condition); - const { schemaCode } = this; - this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`); - } - error(append, errorParams, errorPaths) { - if (errorParams) { - this.setParams(errorParams); - this._error(append, errorPaths); - this.setParams({}); - return; - } - this._error(append, errorPaths); - } - _error(append, errorPaths) { - ; - (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths); - } - $dataError() { - (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); - } - reset() { - if (this.errsCount === undefined) - throw new Error('add "trackErrors" to keyword definition'); - (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); - } - ok(cond) { - if (!this.allErrors) - this.gen.if(cond); - } - setParams(obj, assign) { - if (assign) - Object.assign(this.params, obj); - else - this.params = obj; - } - block$data(valid, codeBlock, $dataValid = codegen_1.nil) { - this.gen.block(() => { - this.check$data(valid, $dataValid); - codeBlock(); - }); - } - check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { - if (!this.$data) - return; - const { gen, schemaCode, schemaType, def } = this; - gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid)); - if (valid !== codegen_1.nil) - gen.assign(valid, true); - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()); - this.$dataError(); - if (valid !== codegen_1.nil) - gen.assign(valid, false); - } - gen.else(); - } - invalid$data() { - const { gen, schemaCode, schemaType, def, it } = this; - return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); - function wrong$DataType() { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof codegen_1.Name)) - throw new Error("ajv implementation error"); - const st = Array.isArray(schemaType) ? schemaType : [schemaType]; - return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`; - } - return codegen_1.nil; - } - function invalid$DataSchema() { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); // TODO value.code for standalone - return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`; - } - return codegen_1.nil; - } - } - subschema(appl, valid) { - const subschema = (0, subschema_1.getSubschema)(this.it, appl); - (0, subschema_1.extendSubschemaData)(subschema, this.it, appl); - (0, subschema_1.extendSubschemaMode)(subschema, appl); - const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined }; - subschemaCode(nextContext, valid); - return nextContext; - } - mergeEvaluated(schemaCxt, toName) { - const { it, gen } = this; - if (!it.opts.unevaluated) - return; - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName); - } - } - mergeValidEvaluated(schemaCxt, valid) { - const { it, gen } = this; - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); - return true; - } - } -} -exports.KeywordCxt = KeywordCxt; -function keywordCode(it, keyword, def, ruleType) { - const cxt = new KeywordCxt(it, def, keyword); - if ("code" in def) { - def.code(cxt, ruleType); - } - else if (cxt.$data && def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } - else if ("macro" in def) { - (0, keyword_1.macroKeywordCode)(cxt, def); - } - else if (def.compile || def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } -} -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/; -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; -function getData($data, { dataLevel, dataNames, dataPathArr }) { - let jsonPointer; - let data; - if ($data === "") - return names_1.default.rootData; - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) - throw new Error(`Invalid JSON-pointer: ${$data}`); - jsonPointer = $data; - data = names_1.default.rootData; - } - else { - const matches = RELATIVE_JSON_POINTER.exec($data); - if (!matches) - throw new Error(`Invalid JSON-pointer: ${$data}`); - const up = +matches[1]; - jsonPointer = matches[2]; - if (jsonPointer === "#") { - if (up >= dataLevel) - throw new Error(errorMsg("property/index", up)); - return dataPathArr[dataLevel - up]; - } - if (up > dataLevel) - throw new Error(errorMsg("data", up)); - data = dataNames[dataLevel - up]; - if (!jsonPointer) - return data; - } - let expr = data; - const segments = jsonPointer.split("/"); - for (const segment of segments) { - if (segment) { - data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`; - expr = (0, codegen_1._) `${expr} && ${data}`; - } - } - return expr; - function errorMsg(pointerType, up) { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; - } -} -exports.getData = getData; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map deleted file mode 100644 index b9ed9428..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/validate/index.ts"],"names":[],"mappings":";;;AASA,6CAAoE;AACpE,yCAAiE;AACjE,mDAA6D;AAC7D,yCAAmF;AACnF,yCAAyC;AACzC,uCAAkG;AAClG,2CAAiG;AACjG,wCAAwF;AACxF,oCAAwB;AACxB,wCAAqC;AACrC,kCAOgB;AAEhB,sCAMkB;AAElB,mGAAmG;AACnG,SAAgB,oBAAoB,CAAC,EAAa;IAChD,IAAI,WAAW,CAAC,EAAE,CAAC,EAAE;QACnB,aAAa,CAAC,EAAE,CAAC,CAAA;QACjB,IAAI,iBAAiB,CAAC,EAAE,CAAC,EAAE;YACzB,gBAAgB,CAAC,EAAE,CAAC,CAAA;YACpB,OAAM;SACP;KACF;IACD,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,IAAA,iCAAoB,EAAC,EAAE,CAAC,CAAC,CAAA;AACtD,CAAC;AATD,oDASC;AAED,SAAS,gBAAgB,CACvB,EAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAY,EACvD,IAAW;IAEX,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;QACjB,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,IAAI,KAAK,eAAC,CAAC,MAAM,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE;YACvE,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,iBAAiB,aAAa,CAAC,MAAM,EAAE,I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No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts deleted file mode 100644 index d15cee87..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { KeywordCxt } from "."; -import type { AddedKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType } from "../rules"; -export declare function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void; -export declare function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void; -export declare function validSchemaType(schema: unknown, schemaType: JSONType[], allowUndefined?: boolean): boolean; -export declare function validateKeywordUsage({ schema, opts, self, errSchemaPath }: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js deleted file mode 100644 index 1109d3a4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0; -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const errors_1 = require("../errors"); -function macroKeywordCode(cxt, def) { - const { gen, keyword, schema, parentSchema, it } = cxt; - const macroSchema = def.macro.call(it.self, schema, parentSchema, it); - const schemaRef = useKeyword(gen, keyword, macroSchema); - if (it.opts.validateSchema !== false) - it.self.validateSchema(macroSchema, true); - const valid = gen.name("valid"); - cxt.subschema({ - schema: macroSchema, - schemaPath: codegen_1.nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, valid); - cxt.pass(valid, () => cxt.error(true)); -} -exports.macroKeywordCode = macroKeywordCode; -function funcKeywordCode(cxt, def) { - var _a; - const { gen, keyword, schema, parentSchema, $data, it } = cxt; - checkAsyncKeyword(it, def); - const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate; - const validateRef = useKeyword(gen, keyword, validate); - const valid = gen.let("valid"); - cxt.block$data(valid, validateKeyword); - cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid); - function validateKeyword() { - if (def.errors === false) { - assignValid(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => cxt.error()); - } - else { - const ruleErrs = def.async ? validateAsync() : validateSync(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => addErrs(cxt, ruleErrs)); - } - } - function validateAsync() { - const ruleErrs = gen.let("ruleErrs", null); - gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e))); - return ruleErrs; - } - function validateSync() { - const validateErrs = (0, codegen_1._) `${validateRef}.errors`; - gen.assign(validateErrs, null); - assignValid(codegen_1.nil); - return validateErrs; - } - function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) { - const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self; - const passSchema = !(("compile" in def && !$data) || def.schema === false); - gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying); - } - function reportErrs(errors) { - var _a; - gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors); - } -} -exports.funcKeywordCode = funcKeywordCode; -function modifyData(cxt) { - const { gen, data, it } = cxt; - gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`)); -} -function addErrs(cxt, errs) { - const { gen } = cxt; - gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => { - gen - .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`) - .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - (0, errors_1.extendErrors)(cxt); - }, () => cxt.error()); -} -function checkAsyncKeyword({ schemaEnv }, def) { - if (def.async && !schemaEnv.$async) - throw new Error("async keyword in sync schema"); -} -function useKeyword(gen, keyword, result) { - if (result === undefined) - throw new Error(`keyword "${keyword}" failed to compile`); - return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) }); -} -function validSchemaType(schema, schemaType, allowUndefined = false) { - // TODO add tests - return (!schemaType.length || - schemaType.some((st) => st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined"))); -} -exports.validSchemaType = validSchemaType; -function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error"); - } - const deps = def.dependencies; - if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`); - } - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]); - if (!valid) { - const msg = `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors); - if (opts.validateSchema === "log") - self.logger.error(msg); - else - throw new Error(msg); - } - } -} -exports.validateKeywordUsage = validateKeywordUsage; -//# sourceMappingURL=keyword.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map deleted file mode 100644 index 10d716d7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyword.js","sourceRoot":"","sources":["../../../lib/compile/validate/keyword.ts"],"names":[],"mappings":";;;AAUA,wCAAsE;AACtE,oCAAwB;AAExB,kDAAwD;AACxD,sCAAsC;AAItC,SAAgB,gBAAgB,CAAC,GAAe,EAAE,GAA2B;IAC3E,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACpD,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;IACrE,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,CAAA;IACvD,IAAI,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,KAAK;QAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IAE/E,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,GAAG,CAAC,SAAS,CACX;QACE,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,aAAG;QACf,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa,IAAI,OAAO,EAAE;QAC/C,YAAY,EAAE,SAAS;QACvB,aAAa,EAAE,IAAI;KACpB,EACD,KAAK,CACN,CAAA;IACD,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;AACxC,CAAC;AAlBD,4CAkBC;AAED,SAAgB,eAAe,CAAC,GAAe,EAAE,GAA0B;;IACzE,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,E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AO,KAAK,OAAO,EAAE;QACzF,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;KAC5C;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,CAAA;IAC7B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE;QAC3E,MAAM,IAAI,KAAK,CAAC,2CAA2C,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;KACzF;IAED,IAAI,GAAG,CAAC,cAAc,EAAE;QACtB,MAAM,KAAK,GAAG,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;QACjD,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,GAAG,GACP,YAAY,OAAO,+BAA+B,aAAa,KAAK;gBACpE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;YAC5C,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK;gBAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;;gBACpD,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;SAC1B;KACF;AACH,CAAC;AAzBD,oDAyBC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts deleted file mode 100644 index 8544271a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AnySchema } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { Code, Name } from "../codegen"; -import { Type } from "../util"; -import type { JSONType } from "../rules"; -export interface SubschemaContext { - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef?: Code; - errorPath?: Code; - dataLevel?: number; - dataTypes?: JSONType[]; - data?: Name; - parentData?: Name; - parentDataProperty?: Code | number; - dataNames?: Name[]; - dataPathArr?: (Code | number)[]; - propertyName?: Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - compositeRule?: true; - createErrors?: boolean; - allErrors?: boolean; -} -export declare type SubschemaArgs = Partial<{ - keyword: string; - schemaProp: string | number; - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef: Code; - data: Name | Code; - dataProp: Code | string | number; - dataTypes: JSONType[]; - definedProperties: Set; - propertyName: Name; - dataPropType: Type; - jtdDiscriminator: string; - jtdMetadata: boolean; - compositeRule: true; - createErrors: boolean; - allErrors: boolean; -}>; -export declare function getSubschema(it: SchemaObjCxt, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }: SubschemaArgs): SubschemaContext; -export declare function extendSubschemaData(subschema: SubschemaContext, it: SchemaObjCxt, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }: SubschemaArgs): void; -export declare function extendSubschemaMode(subschema: SubschemaContext, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }: SubschemaArgs): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js deleted file mode 100644 index 9de28286..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed'); - } - if (keyword !== undefined) { - const sch = it.schema[keyword]; - return schemaProp === undefined - ? { - schema: sch, - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`, - }; - } - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - }; - } - throw new Error('either "keyword" or "schema" must be passed'); -} -exports.getSubschema = getSubschema; -function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed'); - } - const { gen } = it; - if (dataProp !== undefined) { - const { errorPath, dataPathArr, opts } = it; - const nextData = gen.let("data", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true); - dataContextProps(nextData); - subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`; - subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`; - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]; - } - if (data !== undefined) { - const nextData = data instanceof codegen_1.Name ? data : gen.let("data", data, true); // replaceable if used once? - dataContextProps(nextData); - if (propertyName !== undefined) - subschema.propertyName = propertyName; - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - if (dataTypes) - subschema.dataTypes = dataTypes; - function dataContextProps(_nextData) { - subschema.data = _nextData; - subschema.dataLevel = it.dataLevel + 1; - subschema.dataTypes = []; - it.definedProperties = new Set(); - subschema.parentData = it.data; - subschema.dataNames = [...it.dataNames, _nextData]; - } -} -exports.extendSubschemaData = extendSubschemaData; -function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) { - if (compositeRule !== undefined) - subschema.compositeRule = compositeRule; - if (createErrors !== undefined) - subschema.createErrors = createErrors; - if (allErrors !== undefined) - subschema.allErrors = allErrors; - subschema.jtdDiscriminator = jtdDiscriminator; // not inherited - subschema.jtdMetadata = jtdMetadata; // not inherited -} -exports.extendSubschemaMode = extendSubschemaMode; -//# sourceMappingURL=subschema.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map deleted file mode 100644 index a1b84d37..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subschema.js","sourceRoot":"","sources":["../../../lib/compile/validate/subschema.ts"],"names":[],"mappings":";;;AAEA,wCAA0D;AAC1D,kCAA0D;AA6C1D,SAAgB,YAAY,CAC1B,EAAgB,EAChB,EAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAgB;IAErF,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;KACxE;IAED,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAC9B,OAAO,UAAU,KAAK,SAAS;YAC7B,CAAC,CAAC;gBACE,MAAM,EAAE,GAAG;gBACX,UAAU,EAAE,IAAA,WAAC,EAAA,GAAG,EAAE,CAAC,UAAU,GAAG,IAAA,qBAAW,EAAC,OAAO,CAAC,EAAE;gBACtD,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa,IAAI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AC,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAgB;IAEtF,IAAI,aAAa,KAAK,SAAS;QAAE,SAAS,CAAC,aAAa,GAAG,aAAa,CAAA;IACxE,IAAI,YAAY,KAAK,SAAS;QAAE,SAAS,CAAC,YAAY,GAAG,YAAY,CAAA;IACrE,IAAI,SAAS,KAAK,SAAS;QAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5D,SAAS,CAAC,gBAAgB,GAAG,gBAAgB,CAAA,CAAC,gBAAgB;IAC9D,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA,CAAC,gBAAgB;AACtD,CAAC;AATD,kDASC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts deleted file mode 100644 index ac397992..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, AnyValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv; - [prop: string]: any; -} -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -import type { Schema, AnySchema, AnySchemaObject, SchemaObject, AsyncSchema, Vocabulary, KeywordDefinition, AddedKeywordDefinition, AnyValidateFunction, ValidateFunction, AsyncValidateFunction, ErrorObject, Format, AddedFormat, RegExpEngine, UriResolver } from "./types"; -import type { JSONSchemaType } from "./types/json-schema"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import ValidationError from "./runtime/validation_error"; -import MissingRefError from "./compile/ref_error"; -import { ValidationRules } from "./compile/rules"; -import { SchemaEnv } from "./compile"; -import { Code, ValueScope } from "./compile/codegen"; -export declare type Options = CurrentOptions & DeprecatedOptions; -export interface CurrentOptions { - strict?: boolean | "log"; - strictSchema?: boolean | "log"; - strictNumbers?: boolean | "log"; - strictTypes?: boolean | "log"; - strictTuples?: boolean | "log"; - strictRequired?: boolean | "log"; - allowMatchingProperties?: boolean; - allowUnionTypes?: boolean; - validateFormats?: boolean; - $data?: boolean; - allErrors?: boolean; - verbose?: boolean; - discriminator?: boolean; - unicodeRegExp?: boolean; - timestamp?: "string" | "date"; - parseDate?: boolean; - allowDate?: boolean; - $comment?: true | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown); - formats?: { - [Name in string]?: Format; - }; - keywords?: Vocabulary; - schemas?: AnySchema[] | { - [Key in string]?: AnySchema; - }; - logger?: Logger | false; - loadSchema?: (uri: string) => Promise; - removeAdditional?: boolean | "all" | "failing"; - useDefaults?: boolean | "empty"; - coerceTypes?: boolean | "array"; - next?: boolean; - unevaluated?: boolean; - dynamicRef?: boolean; - schemaId?: "id" | "$id"; - jtd?: boolean; - meta?: SchemaObject | boolean; - defaultMeta?: string | AnySchemaObject; - validateSchema?: boolean | "log"; - addUsedSchema?: boolean; - inlineRefs?: boolean | number; - passContext?: boolean; - loopRequired?: number; - loopEnum?: number; - ownProperties?: boolean; - multipleOfPrecision?: number; - int32range?: boolean; - messages?: boolean; - code?: CodeOptions; - uriResolver?: UriResolver; -} -export interface CodeOptions { - es5?: boolean; - esm?: boolean; - lines?: boolean; - optimize?: boolean | number; - formats?: Code; - source?: boolean; - process?: (code: string, schema?: SchemaEnv) => string; - regExp?: RegExpEngine; -} -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine; - optimize: number; -} -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean; - /** @deprecated */ - jsPropertySyntax?: boolean; - /** @deprecated */ - unicode?: boolean; -} -declare type RequiredInstanceOptions = { - [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "schemaId" | "addUsedSchema" | "validateSchema" | "validateFormats" | "int32range" | "unicodeRegExp" | "uriResolver"]: NonNullable; -} & { - code: InstanceCodeOptions; -}; -export declare type InstanceOptions = Options & RequiredInstanceOptions; -export interface Logger { - log(...args: unknown[]): unknown; - warn(...args: unknown[]): unknown; - error(...args: unknown[]): unknown; -} -export default class Ajv { - opts: InstanceOptions; - errors?: ErrorObject[] | null; - logger: Logger; - readonly scope: ValueScope; - readonly schemas: { - [Key in string]?: SchemaEnv; - }; - readonly refs: { - [Ref in string]?: SchemaEnv | string; - }; - readonly formats: { - [Name in string]?: AddedFormat; - }; - readonly RULES: ValidationRules; - readonly _compilations: Set; - private readonly _loading; - private readonly _cache; - private readonly _metaOpts; - static ValidationError: typeof ValidationError; - static MissingRefError: typeof MissingRefError; - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - validate(schema: Schema | string, data: unknown): boolean; - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T; - validate(schema: JTDSchemaType, data: unknown): data is T; - validate(schema: T, data: unknown): data is JTDDataType; - validate(schema: AsyncSchema, data: unknown | T): Promise; - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise; - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: T, _meta?: boolean): ValidateFunction>; - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction; - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction; - compileAsync(schema: SchemaObject | JSONSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: AsyncSchema, meta?: boolean): Promise>; - compileAsync(schema: AnySchemaObject, meta?: boolean): Promise>; - addSchema(schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema?: boolean | "log"): Ajv; - addMetaSchema(schema: AnySchemaObject, key?: string, // schema key - _validateSchema?: boolean | "log"): Ajv; - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise; - getSchema(keyRef: string): AnyValidateFunction | undefined; - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv; - addVocabulary(definitions: Vocabulary): Ajv; - addKeyword(kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition): Ajv; - getKeyword(keyword: string): AddedKeywordDefinition | boolean; - removeKeyword(keyword: string): Ajv; - addFormat(name: string, format: Format): Ajv; - errorsText(errors?: ErrorObject[] | null | undefined, // optional array of validation errors - { separator, dataVar }?: ErrorsTextOptions): string; - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject; - private _removeAllSchemas; - _addSchema(schema: AnySchema, meta?: boolean, baseId?: string, validateSchema?: boolean | "log", addSchema?: boolean): SchemaEnv; - private _checkUnique; - private _compileSchemaEnv; - private _compileMetaSchema; -} -export interface ErrorsTextOptions { - separator?: string; - dataVar?: string; -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/core.js b/node_modules/ajv-formats/node_modules/ajv/dist/core.js deleted file mode 100644 index 84911161..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/core.js +++ /dev/null @@ -1,617 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -const validation_error_1 = require("./runtime/validation_error"); -const ref_error_1 = require("./compile/ref_error"); -const rules_1 = require("./compile/rules"); -const compile_1 = require("./compile"); -const codegen_2 = require("./compile/codegen"); -const resolve_1 = require("./compile/resolve"); -const dataType_1 = require("./compile/validate/dataType"); -const util_1 = require("./compile/util"); -const $dataRefSchema = require("./refs/data.json"); -const uri_1 = require("./runtime/uri"); -const defaultRegExp = (str, flags) => new RegExp(str, flags); -defaultRegExp.code = "new RegExp"; -const META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"]; -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]); -const removedOptions = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -}; -const deprecatedOptions = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -}; -const MAX_EXPRESSION = 200; -// eslint-disable-next-line complexity -function requiredOptions(o) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; - const s = o.strict; - const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize; - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0; - const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp; - const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default; - return { - strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true, - strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true, - strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log", - strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log", - strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false, - code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp }, - loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION, - loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION, - meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true, - messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true, - inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true, - schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : "$id", - addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true, - validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true, - validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true, - unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true, - int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true, - uriResolver: uriResolver, - }; -} -class Ajv { - constructor(opts = {}) { - this.schemas = {}; - this.refs = {}; - this.formats = {}; - this._compilations = new Set(); - this._loading = {}; - this._cache = new Map(); - opts = this.opts = { ...opts, ...requiredOptions(opts) }; - const { es5, lines } = this.opts.code; - this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines }); - this.logger = getLogger(opts.logger); - const formatOpt = opts.validateFormats; - opts.validateFormats = false; - this.RULES = (0, rules_1.getRules)(); - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED"); - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn"); - this._metaOpts = getMetaSchemaOptions.call(this); - if (opts.formats) - addInitialFormats.call(this); - this._addVocabularies(); - this._addDefaultMetaSchema(); - if (opts.keywords) - addInitialKeywords.call(this, opts.keywords); - if (typeof opts.meta == "object") - this.addMetaSchema(opts.meta); - addInitialSchemas.call(this); - opts.validateFormats = formatOpt; - } - _addVocabularies() { - this.addKeyword("$async"); - } - _addDefaultMetaSchema() { - const { $data, meta, schemaId } = this.opts; - let _dataRefSchema = $dataRefSchema; - if (schemaId === "id") { - _dataRefSchema = { ...$dataRefSchema }; - _dataRefSchema.id = _dataRefSchema.$id; - delete _dataRefSchema.$id; - } - if (meta && $data) - this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false); - } - defaultMeta() { - const { meta, schemaId } = this.opts; - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined); - } - validate(schemaKeyRef, // key, ref or schema object - data // to be validated - ) { - let v; - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef); - if (!v) - throw new Error(`no schema with key or ref "${schemaKeyRef}"`); - } - else { - v = this.compile(schemaKeyRef); - } - const valid = v(data); - if (!("$async" in v)) - this.errors = v.errors; - return valid; - } - compile(schema, _meta) { - const sch = this._addSchema(schema, _meta); - return (sch.validate || this._compileSchemaEnv(sch)); - } - compileAsync(schema, meta) { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function"); - } - const { loadSchema } = this.opts; - return runCompileAsync.call(this, schema, meta); - async function runCompileAsync(_schema, _meta) { - await loadMetaSchema.call(this, _schema.$schema); - const sch = this._addSchema(_schema, _meta); - return sch.validate || _compileAsync.call(this, sch); - } - async function loadMetaSchema($ref) { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, { $ref }, true); - } - } - async function _compileAsync(sch) { - try { - return this._compileSchemaEnv(sch); - } - catch (e) { - if (!(e instanceof ref_error_1.default)) - throw e; - checkLoaded.call(this, e); - await loadMissingSchema.call(this, e.missingSchema); - return _compileAsync.call(this, sch); - } - } - function checkLoaded({ missingSchema: ref, missingRef }) { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`); - } - } - async function loadMissingSchema(ref) { - const _schema = await _loadSchema.call(this, ref); - if (!this.refs[ref]) - await loadMetaSchema.call(this, _schema.$schema); - if (!this.refs[ref]) - this.addSchema(_schema, ref, meta); - } - async function _loadSchema(ref) { - const p = this._loading[ref]; - if (p) - return p; - try { - return await (this._loading[ref] = loadSchema(ref)); - } - finally { - delete this._loading[ref]; - } - } - } - // Adds schema to the instance - addSchema(schema, // If array is passed, `key` will be ignored - key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ) { - if (Array.isArray(schema)) { - for (const sch of schema) - this.addSchema(sch, undefined, _meta, _validateSchema); - return this; - } - let id; - if (typeof schema === "object") { - const { schemaId } = this.opts; - id = schema[schemaId]; - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`); - } - } - key = (0, resolve_1.normalizeId)(key || id); - this._checkUnique(key); - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true); - return this; - } - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema(schema, key, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ) { - this.addSchema(schema, key, true, _validateSchema); - return this; - } - // Validate schema against its meta-schema - validateSchema(schema, throwOrLogError) { - if (typeof schema == "boolean") - return true; - let $schema; - $schema = schema.$schema; - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string"); - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta(); - if (!$schema) { - this.logger.warn("meta-schema not available"); - this.errors = null; - return true; - } - const valid = this.validate($schema, schema); - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText(); - if (this.opts.validateSchema === "log") - this.logger.error(message); - else - throw new Error(message); - } - return valid; - } - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef) { - let sch; - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") - keyRef = sch; - if (sch === undefined) { - const { schemaId } = this.opts; - const root = new compile_1.SchemaEnv({ schema: {}, schemaId }); - sch = compile_1.resolveSchema.call(this, root, keyRef); - if (!sch) - return; - this.refs[keyRef] = sch; - } - return (sch.validate || this._compileSchemaEnv(sch)); - } - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef) { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef); - this._removeAllSchemas(this.refs, schemaKeyRef); - return this; - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas); - this._removeAllSchemas(this.refs); - this._cache.clear(); - return this; - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef); - if (typeof sch == "object") - this._cache.delete(sch.schema); - delete this.schemas[schemaKeyRef]; - delete this.refs[schemaKeyRef]; - return this; - } - case "object": { - const cacheKey = schemaKeyRef; - this._cache.delete(cacheKey); - let id = schemaKeyRef[this.opts.schemaId]; - if (id) { - id = (0, resolve_1.normalizeId)(id); - delete this.schemas[id]; - delete this.refs[id]; - } - return this; - } - default: - throw new Error("ajv.removeSchema: invalid parameter"); - } - } - // add "vocabulary" - a collection of keywords - addVocabulary(definitions) { - for (const def of definitions) - this.addKeyword(def); - return this; - } - addKeyword(kwdOrDef, def // deprecated - ) { - let keyword; - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef; - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword"); - def.keyword = keyword; - } - } - else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef; - keyword = def.keyword; - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array"); - } - } - else { - throw new Error("invalid addKeywords parameters"); - } - checkKeyword.call(this, keyword, def); - if (!def) { - (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd)); - return this; - } - keywordMetaschema.call(this, def); - const definition = { - ...def, - type: (0, dataType_1.getJSONTypes)(def.type), - schemaType: (0, dataType_1.getJSONTypes)(def.schemaType), - }; - (0, util_1.eachItem)(keyword, definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))); - return this; - } - getKeyword(keyword) { - const rule = this.RULES.all[keyword]; - return typeof rule == "object" ? rule.definition : !!rule; - } - // Remove keyword - removeKeyword(keyword) { - // TODO return type should be Ajv - const { RULES } = this; - delete RULES.keywords[keyword]; - delete RULES.all[keyword]; - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword); - if (i >= 0) - group.rules.splice(i, 1); - } - return this; - } - // Add format - addFormat(name, format) { - if (typeof format == "string") - format = new RegExp(format); - this.formats[name] = format; - return this; - } - errorsText(errors = this.errors, // optional array of validation errors - { separator = ", ", dataVar = "data" } = {} // optional options with properties `separator` and `dataVar` - ) { - if (!errors || errors.length === 0) - return "No errors"; - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg); - } - $dataMetaSchema(metaSchema, keywordsJsonPointers) { - const rules = this.RULES.all; - metaSchema = JSON.parse(JSON.stringify(metaSchema)); - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1); // first segment is an empty string - let keywords = metaSchema; - for (const seg of segments) - keywords = keywords[seg]; - for (const key in rules) { - const rule = rules[key]; - if (typeof rule != "object") - continue; - const { $data } = rule.definition; - const schema = keywords[key]; - if ($data && schema) - keywords[key] = schemaOrData(schema); - } - } - return metaSchema; - } - _removeAllSchemas(schemas, regex) { - for (const keyRef in schemas) { - const sch = schemas[keyRef]; - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef]; - } - else if (sch && !sch.meta) { - this._cache.delete(sch.schema); - delete schemas[keyRef]; - } - } - } - } - _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) { - let id; - const { schemaId } = this.opts; - if (typeof schema == "object") { - id = schema[schemaId]; - } - else { - if (this.opts.jtd) - throw new Error("schema must be object"); - else if (typeof schema != "boolean") - throw new Error("schema must be object or boolean"); - } - let sch = this._cache.get(schema); - if (sch !== undefined) - return sch; - baseId = (0, resolve_1.normalizeId)(id || baseId); - const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId); - sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs }); - this._cache.set(sch.schema, sch); - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) - this._checkUnique(baseId); - this.refs[baseId] = sch; - } - if (validateSchema) - this.validateSchema(schema, true); - return sch; - } - _checkUnique(id) { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`); - } - } - _compileSchemaEnv(sch) { - if (sch.meta) - this._compileMetaSchema(sch); - else - compile_1.compileSchema.call(this, sch); - /* istanbul ignore if */ - if (!sch.validate) - throw new Error("ajv implementation error"); - return sch.validate; - } - _compileMetaSchema(sch) { - const currentOpts = this.opts; - this.opts = this._metaOpts; - try { - compile_1.compileSchema.call(this, sch); - } - finally { - this.opts = currentOpts; - } - } -} -exports.default = Ajv; -Ajv.ValidationError = validation_error_1.default; -Ajv.MissingRefError = ref_error_1.default; -function checkOptions(checkOpts, options, msg, log = "error") { - for (const key in checkOpts) { - const opt = key; - if (opt in options) - this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`); - } -} -function getSchEnv(keyRef) { - keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef]; -} -function addInitialSchemas() { - const optsSchemas = this.opts.schemas; - if (!optsSchemas) - return; - if (Array.isArray(optsSchemas)) - this.addSchema(optsSchemas); - else - for (const key in optsSchemas) - this.addSchema(optsSchemas[key], key); -} -function addInitialFormats() { - for (const name in this.opts.formats) { - const format = this.opts.formats[name]; - if (format) - this.addFormat(name, format); - } -} -function addInitialKeywords(defs) { - if (Array.isArray(defs)) { - this.addVocabulary(defs); - return; - } - this.logger.warn("keywords option as map is deprecated, pass array"); - for (const keyword in defs) { - const def = defs[keyword]; - if (!def.keyword) - def.keyword = keyword; - this.addKeyword(def); - } -} -function getMetaSchemaOptions() { - const metaOpts = { ...this.opts }; - for (const opt of META_IGNORE_OPTIONS) - delete metaOpts[opt]; - return metaOpts; -} -const noLogs = { log() { }, warn() { }, error() { } }; -function getLogger(logger) { - if (logger === false) - return noLogs; - if (logger === undefined) - return console; - if (logger.log && logger.warn && logger.error) - return logger; - throw new Error("logger must implement log, warn and error methods"); -} -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i; -function checkKeyword(keyword, def) { - const { RULES } = this; - (0, util_1.eachItem)(keyword, (kwd) => { - if (RULES.keywords[kwd]) - throw new Error(`Keyword ${kwd} is already defined`); - if (!KEYWORD_NAME.test(kwd)) - throw new Error(`Keyword ${kwd} has invalid name`); - }); - if (!def) - return; - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function'); - } -} -function addRule(keyword, definition, dataType) { - var _a; - const post = definition === null || definition === void 0 ? void 0 : definition.post; - if (dataType && post) - throw new Error('keyword with "post" flag cannot have "type"'); - const { RULES } = this; - let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType); - if (!ruleGroup) { - ruleGroup = { type: dataType, rules: [] }; - RULES.rules.push(ruleGroup); - } - RULES.keywords[keyword] = true; - if (!definition) - return; - const rule = { - keyword, - definition: { - ...definition, - type: (0, dataType_1.getJSONTypes)(definition.type), - schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType), - }, - }; - if (definition.before) - addBeforeRule.call(this, ruleGroup, rule, definition.before); - else - ruleGroup.rules.push(rule); - RULES.all[keyword] = rule; - (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd)); -} -function addBeforeRule(ruleGroup, rule, before) { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before); - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule); - } - else { - ruleGroup.rules.push(rule); - this.logger.warn(`rule ${before} is not defined`); - } -} -function keywordMetaschema(def) { - let { metaSchema } = def; - if (metaSchema === undefined) - return; - if (def.$data && this.opts.$data) - metaSchema = schemaOrData(metaSchema); - def.validateSchema = this.compile(metaSchema, true); -} -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -}; -function schemaOrData(schema) { - return { anyOf: [schema, $dataRef] }; -} -//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map deleted file mode 100644 index c39cd6b5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../lib/core.ts"],"names":[],"mappings":";;;AA4BA,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAKlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA;AAsBnD,iEAAwD;AACxD,mDAAiD;AACjD,2CAAoF;AACpF,uCAAiE;AACjE,+CAAkD;AAClD,+CAA4D;AAC5D,0DAAwD;AACxD,yCAAuC;AACvC,mDAAkD;AAElD,uCAA8C;AAE9C,MAAM,aAAa,GAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAC1E,aAAa,CAAC,IAAI,GAAG,YAAY,CAAA;AAEjC,MAAM,mBAAmB,GAAsB,CAAC,kBAAkB,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;AACjG,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IAC9B,UAAU;IACV,WAAW;IACX,OAAO;IACP,SAAS;IACT,MAAM;IACN,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,eAAe;IACf,MAAM;IACN,KAAK;IACL,OAAO;CACR,CA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SAAM;QACL,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,MAAM,iBAAiB,CAAC,CAAA;KAClD;AACH,CAAC;AAED,SAAS,iBAAiB,CAAY,GAAsB;IAC1D,IAAI,EAAC,UAAU,EAAC,GAAG,GAAG,CAAA;IACtB,IAAI,UAAU,KAAK,SAAS;QAAE,OAAM;IACpC,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IACvE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,gFAAgF;CACvF,CAAA;AAED,SAAS,YAAY,CAAC,MAAiB;IACrC,OAAO,EAAC,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,CAAA;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts deleted file mode 100644 index 0caf84b6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { AnySchemaObject, SchemaObject, JTDParser } from "./types"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import AjvCore, { CurrentOptions } from "./core"; -declare type JTDOptions = CurrentOptions & { - strict?: never; - allowMatchingProperties?: never; - allowUnionTypes?: never; - validateFormats?: never; - $data?: never; - verbose?: boolean; - $comment?: never; - formats?: never; - loadSchema?: never; - useDefaults?: never; - coerceTypes?: never; - next?: never; - unevaluated?: never; - dynamicRef?: never; - meta?: boolean; - defaultMeta?: never; - inlineRefs?: boolean; - loopRequired?: never; - multipleOfPrecision?: never; -}; -declare class Ajv extends AjvCore { - constructor(opts?: JTDOptions); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - compileSerializer(schema: SchemaObject): (data: T) => string; - compileSerializer(schema: JTDSchemaType): (data: T) => string; - compileParser(schema: SchemaObject): JTDParser; - compileParser(schema: JTDSchemaType): JTDParser; - private _compileSerializer; - private _compileParser; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, JTDParser, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { JTDErrorObject } from "./vocabularies/jtd"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType }; -export { JTDOptions }; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js b/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js deleted file mode 100644 index dfb34ddd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const jtd_1 = require("./vocabularies/jtd"); -const jtd_schema_1 = require("./refs/jtd-schema"); -const serialize_1 = require("./compile/jtd/serialize"); -const parse_1 = require("./compile/jtd/parse"); -const META_SCHEMA_ID = "JTD-meta-schema"; -class Ajv extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - jtd: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(jtd_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - this.addMetaSchema(jtd_schema_1.default, META_SCHEMA_ID, false); - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } - compileSerializer(schema) { - const sch = this._addSchema(schema); - return sch.serialize || this._compileSerializer(sch); - } - compileParser(schema) { - const sch = this._addSchema(schema); - return (sch.parse || this._compileParser(sch)); - } - _compileSerializer(sch) { - serialize_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.serialize) - throw new Error("ajv implementation error"); - return sch.serialize; - } - _compileParser(sch) { - parse_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.parse) - throw new Error("ajv implementation error"); - return sch.parse; - } -} -module.exports = exports = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=jtd.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map deleted file mode 100644 index 6f253789..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/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c,CAAC,GAAG,CAAC,CAAiB,CAAA;IAChE,CAAC;IAEO,kBAAkB,CAAI,GAAc;QAC1C,mBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAG,GAAG,CAAC,MAA0B,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;QACpF,wBAAwB;QACxB,IAAI,CAAC,GAAG,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC/D,OAAO,GAAG,CAAC,SAAS,CAAA;IACtB,CAAC;IAEO,cAAc,CAAC,GAAc;QACnC,eAAa,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAG,GAAG,CAAC,MAA0B,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;QAChF,wBAAwB;QACxB,IAAI,CAAC,GAAG,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC3D,OAAO,GAAG,CAAC,KAAK,CAAA;IAClB,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,GAAG,CAAA;AAC9B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,GAAG,CAAA;AA0BlB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAElB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts deleted file mode 100644 index cf008331..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js deleted file mode 100644 index e8649628..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2019($data) { - ; - [ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2019; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map deleted file mode 100644 index 9b8a36d6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2019-09/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,+CAA8C;AAC9C,yCAAwC;AACxC,6CAA4C;AAC5C,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAfD,oCAeC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts deleted file mode 100644 index c232ab05..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js deleted file mode 100644 index d9256756..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const unevaluated = require("./meta/unevaluated.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format-annotation.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2020($data) { - ; - [ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2020; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map deleted file mode 100644 index eb90027d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2020-12/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,uDAAsD;AACtD,+CAA8C;AAC9C,yCAAwC;AACxC,wDAAuD;AACvD,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,WAAW;QACX,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAhBD,oCAgBC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json b/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts deleted file mode 100644 index 932797a3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SchemaObject } from "../types"; -declare const jtdMetaSchema: SchemaObject; -export default jtdMetaSchema; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js b/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js deleted file mode 100644 index 1ee940af..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const shared = (root) => { - const sch = { - nullable: { type: "boolean" }, - metadata: { - optionalProperties: { - union: { elements: { ref: "schema" } }, - }, - additionalProperties: true, - }, - }; - if (root) - sch.definitions = { values: { ref: "schema" } }; - return sch; -}; -const emptyForm = (root) => ({ - optionalProperties: shared(root), -}); -const refForm = (root) => ({ - properties: { - ref: { type: "string" }, - }, - optionalProperties: shared(root), -}); -const typeForm = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}); -const enumForm = (root) => ({ - properties: { - enum: { elements: { type: "string" } }, - }, - optionalProperties: shared(root), -}); -const elementsForm = (root) => ({ - properties: { - elements: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const propertiesForm = (root) => ({ - properties: { - properties: { values: { ref: "schema" } }, - }, - optionalProperties: { - optionalProperties: { values: { ref: "schema" } }, - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const optionalPropertiesForm = (root) => ({ - properties: { - optionalProperties: { values: { ref: "schema" } }, - }, - optionalProperties: { - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const discriminatorForm = (root) => ({ - properties: { - discriminator: { type: "string" }, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}); -const valuesForm = (root) => ({ - properties: { - values: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const schema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}); -const jtdMetaSchema = { - definitions: { - schema: schema(false), - }, - ...schema(true), -}; -exports.default = jtdMetaSchema; -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map deleted file mode 100644 index d46755b2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/refs/jtd-schema.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAe,CAAC,IAAI,EAAE,EAAE;IAClC,MAAM,GAAG,GAAiB;QACxB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,QAAQ,EAAE;YACR,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAC,QAAQ,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC,EAAC;aACnC;YACD,oBAAoB,EAAE,IAAI;SAC3B;KACF,CAAA;IACD,IAAI,IAAI;QAAE,GAAG,CAAC,WAAW,GAAG,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC,EAAC,CAAA;IACrD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,MAAM,SAAS,GAAe,CAAC,IAA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,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KACtB;CACF,CAAC,CAAA;AAEF,MAAM,aAAa,GAAiB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;KACtB;IACD,GAAG,MAAM,CAAC,IAAI,CAAC;CAChB,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts deleted file mode 100644 index 56149ea2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as equal from "fast-deep-equal"; -declare type Equal = typeof equal & { - code: string; -}; -declare const _default: Equal; -export default _default; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js deleted file mode 100644 index 774bba05..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://github.com/ajv-validator/ajv/issues/889 -const equal = require("fast-deep-equal"); -equal.code = 'require("ajv/dist/runtime/equal").default'; -exports.default = equal; -//# sourceMappingURL=equal.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map deleted file mode 100644 index 0e17901c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"equal.js","sourceRoot":"","sources":["../../lib/runtime/equal.ts"],"names":[],"mappings":";;AAAA,kDAAkD;AAClD,yCAAwC;AAGtC,KAAe,CAAC,IAAI,GAAG,2CAA2C,CAAA;AAEpE,kBAAe,KAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts deleted file mode 100644 index 85f1d567..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare function parseJson(s: string, pos: number): unknown; -export declare namespace parseJson { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined; -export declare namespace parseJsonNumber { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonString(s: string, pos: number): string | undefined; -export declare namespace parseJsonString { - var message: string | undefined; - var position: number; - var code: string; -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js deleted file mode 100644 index 7ebbc1bf..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +++ /dev/null @@ -1,184 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseJsonString = exports.parseJsonNumber = exports.parseJson = void 0; -const rxParseJson = /position\s(\d+)$/; -function parseJson(s, pos) { - let endPos; - parseJson.message = undefined; - let matches; - if (pos) - s = s.slice(pos); - try { - parseJson.position = pos + s.length; - return JSON.parse(s); - } - catch (e) { - matches = rxParseJson.exec(e.message); - if (!matches) { - parseJson.message = "unexpected end"; - return undefined; - } - endPos = +matches[1]; - const c = s[endPos]; - s = s.slice(0, endPos); - parseJson.position = pos + endPos; - try { - return JSON.parse(s); - } - catch (e1) { - parseJson.message = `unexpected token ${c}`; - return undefined; - } - } -} -exports.parseJson = parseJson; -parseJson.message = undefined; -parseJson.position = 0; -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson'; -function parseJsonNumber(s, pos, maxDigits) { - let numStr = ""; - let c; - parseJsonNumber.message = undefined; - if (s[pos] === "-") { - numStr += "-"; - pos++; - } - if (s[pos] === "0") { - numStr += "0"; - pos++; - } - else { - if (!parseDigits(maxDigits)) { - errorMessage(); - return undefined; - } - } - if (maxDigits) { - parseJsonNumber.position = pos; - return +numStr; - } - if (s[pos] === ".") { - numStr += "."; - pos++; - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e"; - pos++; - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c; - pos++; - } - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - parseJsonNumber.position = pos; - return +numStr; - function parseDigits(maxLen) { - let digit = false; - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true; - numStr += c; - pos++; - } - return digit; - } - function errorMessage() { - parseJsonNumber.position = pos; - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end"; - } -} -exports.parseJsonNumber = parseJsonNumber; -parseJsonNumber.message = undefined; -parseJsonNumber.position = 0; -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber'; -const escapedChars = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -}; -const CODE_A = "a".charCodeAt(0); -const CODE_0 = "0".charCodeAt(0); -function parseJsonString(s, pos) { - let str = ""; - let c; - parseJsonString.message = undefined; - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++]; - if (c === '"') - break; - if (c === "\\") { - c = s[pos]; - if (c in escapedChars) { - str += escapedChars[c]; - pos++; - } - else if (c === "u") { - pos++; - let count = 4; - let code = 0; - while (count--) { - code <<= 4; - c = s[pos]; - if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - c = c.toLowerCase(); - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10; - } - else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - pos++; - } - str += String.fromCharCode(code); - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } - else if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - else { - if (c.charCodeAt(0) >= 0x20) { - str += c; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - } - } - parseJsonString.position = pos; - return str; - function errorMessage(msg) { - parseJsonString.position = pos; - parseJsonString.message = msg; - } -} -exports.parseJsonString = parseJsonString; -parseJsonString.message = undefined; -parseJsonString.position = 0; -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString'; -//# sourceMappingURL=parseJson.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map deleted file mode 100644 index 7f239fb7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parseJson.js","sourceRoot":"","sources":["../../lib/runtime/parseJson.ts"],"names":[],"mappings":";;;AAAA,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAEtC,SAAgB,SAAS,CAAC,CAAS,EAAE,GAAW;IAC9C,IAAI,MAA0B,CAAA;IAC9B,SAAS,CAAC,OAAO,GAAG,SAAS,CAAA;IAC7B,IAAI,OAA+B,CAAA;IACnC,IAAI,GAAG;QAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACzB,IAAI;QACF,SAAS,CAAC,QAAQ,GAAG,GAAG,GAAG,CAAC,CAAC,MAAM,CAAA;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,GAAG,WAAW,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;QAChD,IAAI,CAAC,OAAO,EAAE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,GAAG,CAAA;IAEV,SAAS,YAAY,CAAC,GAAW;QAC/B,eAAe,CAAC,QAAQ,GAAG,GAAG,CAAA;QAC9B,eAAe,CAAC,OAAO,GAAG,GAAG,CAAA;IAC/B,CAAC;AACH,CAAC;AA5DD,0CA4DC;AAED,eAAe,CAAC,OAAO,GAAG,SAA+B,CAAA;AACzD,eAAe,CAAC,QAAQ,GAAG,CAAW,CAAA;AACtC,eAAe,CAAC,IAAI,GAAG,uDAAuD,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts deleted file mode 100644 index 0579dd3c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function quote(s: string): string; -declare namespace quote { - var code: string; -} -export default quote; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js deleted file mode 100644 index ebf78f70..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const rxEscapable = -// eslint-disable-next-line no-control-regex, no-misleading-character-class -/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -const escaped = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -}; -function quote(s) { - rxEscapable.lastIndex = 0; - return ('"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a]; - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4); - }) - : s) + - '"'); -} -exports.default = quote; -quote.code = 'require("ajv/dist/runtime/quote").default'; -//# sourceMappingURL=quote.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map deleted file mode 100644 index 4d226252..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../lib/runtime/quote.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW;AACf,2EAA2E;AAC3E,iIAAiI,CAAA;AAEnI,MAAM,OAAO,GAA6B;IACxC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACb,CAAA;AAED,SAAwB,KAAK,CAAC,CAAS;IACrC,WAAW,CAAC,SAAS,GAAG,CAAC,CAAA;IACzB,OAAO,CACL,GAAG;QACH,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBAC3B,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;gBACpB,OAAO,OAAO,CAAC,KAAK,QAAQ;oBAC1B,CAAC,CAAC,CAAC;oBACH,CAAC,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;YAC/D,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC,CAAC;QACN,GAAG,CACJ,CAAA;AACH,CAAC;AAdD,wBAcC;AAED,KAAK,CAAC,IAAI,GAAG,2CAA2C,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts deleted file mode 100644 index b49306ff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2"; -declare type Re2 = typeof re2 & { - code: string; -}; -declare const _default: Re2; -export default _default; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js deleted file mode 100644 index 4b1ee253..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const re2 = require("re2"); -re2.code = 'require("ajv/dist/runtime/re2").default'; -exports.default = re2; -//# sourceMappingURL=re2.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map deleted file mode 100644 index bb938a2c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"re2.js","sourceRoot":"","sources":["../../lib/runtime/re2.ts"],"names":[],"mappings":";;AAAA,2BAA0B;AAGxB,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts deleted file mode 100644 index cd483268..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function validTimestamp(str: string, allowDate: boolean): boolean; -declare namespace validTimestamp { - var code: string; -} -export default validTimestamp; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js deleted file mode 100644 index 5e0f0656..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const DT_SEPARATOR = /t|\s/i; -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i; -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -function validTimestamp(str, allowDate) { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt = str.split(DT_SEPARATOR); - return ((dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0]))); -} -exports.default = validTimestamp; -function validDate(str) { - const matches = DATE.exec(str); - if (!matches) - return false; - const y = +matches[1]; - const m = +matches[2]; - const d = +matches[3]; - return (m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0)))); -} -function validTime(str) { - const matches = TIME.exec(str); - if (!matches) - return false; - const hr = +matches[1]; - const min = +matches[2]; - const sec = +matches[3]; - const tzH = +(matches[4] || 0); - const tzM = +(matches[5] || 0); - return ((hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60)); -} -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default'; -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map deleted file mode 100644 index 6b0eee03..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.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AAC,IAAI,CAAC;QACN,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YACX,4DAA4D;YAC5D,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAC1E,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,OAAO,GAAoB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/C,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAA;IAC1B,MAAM,EAAE,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC9B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,OAAO,CACL,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;QACpC,cAAc;QACd,CAAC,EAAE,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CACpD,CAAA;AACH,CAAC;AAED,cAAc,CAAC,IAAI,GAAG,+CAA+C,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts deleted file mode 100644 index ecbee69c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function ucs2length(str: string): number; -declare namespace ucs2length { - var code: string; -} -export default ucs2length; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js deleted file mode 100644 index 92ea0c08..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -function ucs2length(str) { - const len = str.length; - let length = 0; - let pos = 0; - let value; - while (pos < len) { - length++; - value = str.charCodeAt(pos++); - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos); - if ((value & 0xfc00) === 0xdc00) - pos++; // low surrogate - } - } - return length; -} -exports.default = ucs2length; -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default'; -//# sourceMappingURL=ucs2length.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map deleted file mode 100644 index 7c7f7886..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ucs2length.js","sourceRoot":"","sources":["../../lib/runtime/ucs2length.ts"],"names":[],"mappings":";;AAAA,qDAAqD;AACrD,iEAAiE;AACjE,SAAwB,UAAU,CAAC,GAAW;IAC5C,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAA;IACtB,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,IAAI,GAAG,GAAG,CAAC,CAAA;IACX,IAAI,KAAa,CAAA;IACjB,OAAO,GAAG,GAAG,GAAG,EAAE;QAChB,MAAM,EAAE,CAAA;QACR,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;QAC7B,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,IAAI,GAAG,GAAG,GAAG,EAAE;YACnD,gDAAgD;YAChD,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM;gBAAE,GAAG,EAAE,CAAA,CAAC,gBAAgB;SACxD;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAfD,6BAeC;AAED,UAAU,CAAC,IAAI,GAAG,gDAAgD,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts deleted file mode 100644 index 83b169f6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js"; -declare type URI = typeof uri & { - code: string; -}; -declare const _default: URI; -export default _default; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js deleted file mode 100644 index fbd38151..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const uri = require("uri-js"); -uri.code = 'require("ajv/dist/runtime/uri").default'; -exports.default = uri; -//# sourceMappingURL=uri.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map deleted file mode 100644 index 701bed95..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../lib/runtime/uri.ts"],"names":[],"mappings":";;AAAA,8BAA6B;AAG3B,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts deleted file mode 100644 index b0ee9698..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ErrorObject } from "../types"; -export default class ValidationError extends Error { - readonly errors: Partial[]; - readonly ajv: true; - readonly validation: true; - constructor(errors: Partial[]); -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js deleted file mode 100644 index 353502c0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class ValidationError extends Error { - constructor(errors) { - super("validation failed"); - this.errors = errors; - this.ajv = this.validation = true; - } -} -exports.default = ValidationError; -//# sourceMappingURL=validation_error.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map deleted file mode 100644 index 70206fbc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validation_error.js","sourceRoot":"","sources":["../../lib/runtime/validation_error.ts"],"names":[],"mappings":";;AAEA,MAAqB,eAAgB,SAAQ,KAAK;IAKhD,YAAY,MAA8B;QACxC,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACnC,CAAC;CACF;AAVD,kCAUC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts deleted file mode 100644 index a9141c3d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type AjvCore from "../core"; -import type { AnyValidateFunction } from "../types"; -declare function standaloneCode(ajv: AjvCore, refsOrFunc?: { - [K in string]?: string; -} | AnyValidateFunction): string; -export default standaloneCode; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js deleted file mode 100644 index b44bb5db..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_1 = require("../compile/codegen/scope"); -const code_1 = require("../compile/codegen/code"); -function standaloneCode(ajv, refsOrFunc) { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option"); - } - const { _n } = ajv.scope.opts; - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => sch.meta ? undefined : ajv.compile(sch.schema)); - function getValidate(id) { - const v = ajv.getSchema(id); - if (!v) - throw new Error(`moduleCode: no schema with id ${id}`); - return v; - } - function funcExportCode(source) { - const usedValues = {}; - const n = source === null || source === void 0 ? void 0 : source.validateName; - const vCode = validateCode(usedValues, source); - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}`; - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}`; - } - function multiExportsCode(schemas, getValidateFunc) { - var _a; - const usedValues = {}; - let code = (0, code_1._) `"use strict";`; - for (const name in schemas) { - const v = getValidateFunc(schemas[name]); - if (v) { - const vCode = validateCode(usedValues, v.source); - const exportSyntax = ajv.opts.code.esm - ? (0, code_1._) `export const ${(0, code_1.getEsmExportName)(name)}` - : (0, code_1._) `exports${(0, code_1.getProperty)(name)}`; - code = (0, code_1._) `${code}${_n}${exportSyntax} = ${(_a = v.source) === null || _a === void 0 ? void 0 : _a.validateName};${_n}${vCode}`; - } - } - return `${code}`; - } - function validateCode(usedValues, s) { - if (!s) - throw new Error('moduleCode: function does not have "source" property'); - if (usedState(s.validateName) === scope_1.UsedValueState.Completed) - return code_1.nil; - setUsedState(s.validateName, scope_1.UsedValueState.Started); - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode); - const code = new code_1._Code(`${scopeCode}${_n}${s.validateCode}`); - return s.evaluated ? (0, code_1._) `${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code; - function refValidateCode(n) { - var _a; - const vRef = (_a = n.value) === null || _a === void 0 ? void 0 : _a.ref; - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef; - return validateCode(usedValues, v.source); - } - else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const { validate, validateName } = vRef; - if (!validateName) - throw new Error("ajv internal error"); - const def = ajv.opts.code.es5 ? scope_1.varKinds.var : scope_1.varKinds.const; - const wrapper = (0, code_1._) `${def} ${n} = {validate: ${validateName}};`; - if (usedState(validateName) === scope_1.UsedValueState.Started) - return wrapper; - const vCode = validateCode(usedValues, validate === null || validate === void 0 ? void 0 : validate.source); - return (0, code_1._) `${wrapper}${_n}${vCode}`; - } - return undefined; - } - function usedState(name) { - var _a; - return (_a = usedValues[name.prefix]) === null || _a === void 0 ? void 0 : _a.get(name); - } - function setUsedState(name, state) { - const { prefix } = name; - const names = (usedValues[prefix] = usedValues[prefix] || new Map()); - names.set(name, state); - } - } -} -module.exports = exports = standaloneCode; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = standaloneCode; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map deleted file mode 100644 index 11864d36..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/standalone/index.ts"],"names":[],"mappings":";;AAGA,oDAAkG;AAClG,kDAA0F;AAE1F,SAAS,cAAc,CACrB,GAAY,EACZ,UAA2D;IAE3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAA;KACzE;IACD,MAAM,EAAC,EAAE,EAAC,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAA;IAC3B,OAAO,OAAO,UAAU,IAAI,UAAU;QACpC,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC;QACnC,CAAC,CAAC,UAAU,KAAK,SAAS;YAC1B,CAAC,CAAC,gBAAgB,CAAS,UAAU,EAAE,WAAW,CAAC;YACnD,CAAC,CAAC,gBAAgB,CAAY,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAC/C,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAC/C,CAAA;IAEL,SAAS,WAAW,CAAC,EAAU;QAC7B,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,EAAE,EAAE,CAAC,CAAA;QAC9D,OAAO,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YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts deleted file mode 100644 index 156ac322..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Ajv, { AnySchema, AnyValidateFunction, ErrorObject } from "../core"; -export default class AjvPack { - readonly ajv: Ajv; - errors?: ErrorObject[] | null; - constructor(ajv: Ajv); - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction; - getSchema(keyRef: string): AnyValidateFunction | undefined; - private getStandalone; - addSchema(...args: Parameters): AjvPack; - addKeyword(...args: Parameters): AjvPack; -} diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js deleted file mode 100644 index 35e5c992..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("../core"); -const _1 = require("."); -const requireFromString = require("require-from-string"); -class AjvPack { - constructor(ajv) { - this.ajv = ajv; - } - validate(schemaKeyRef, data) { - return core_1.default.prototype.validate.call(this, schemaKeyRef, data); - } - compile(schema, meta) { - return this.getStandalone(this.ajv.compile(schema, meta)); - } - getSchema(keyRef) { - const v = this.ajv.getSchema(keyRef); - if (!v) - return undefined; - return this.getStandalone(v); - } - getStandalone(v) { - return requireFromString((0, _1.default)(this.ajv, v)); - } - addSchema(...args) { - this.ajv.addSchema.call(this.ajv, ...args); - return this; - } - addKeyword(...args) { - this.ajv.addKeyword.call(this.ajv, ...args); - return this; - } -} -exports.default = AjvPack; -//# sourceMappingURL=instance.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map deleted file mode 100644 index 6ac33b11..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../lib/standalone/instance.ts"],"names":[],"mappings":";;AAAA,kCAAwE;AACxE,wBAA8B;AAC9B,yDAAwD;AAExD,MAAqB,OAAO;IAE1B,YAAqB,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEjC,QAAQ,CAAC,YAAgC,EAAE,IAAa;QACtD,OAAO,cAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAC9D,CAAC;IAED,OAAO,CAAc,MAAiB,EAAE,IAAc;QACpD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IAC9D,CAAC;IAED,SAAS,CAAc,MAAc;QACnC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAI,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,CAAC;YAAE,OAAO,SAAS,CAAA;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9B,CAAC;IAEO,aAAa,CAAc,CAAyB;QAC1D,OAAO,iBAAiB,CAAC,IAAA,UAAc,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAA2B,CAAA;IACjF,CAAC;IAED,SAAS,CAAC,GAAG,IAAgD;QAC3D,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,GAAG,IAAiD;QAC7D,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AA/BD,0BA+BC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts deleted file mode 100644 index 065261e9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import * as URI from "uri-js"; -import type { CodeGen, Code, Name, ScopeValueSets, ValueScopeName } from "../compile/codegen"; -import type { SchemaEnv, SchemaCxt, SchemaObjCxt } from "../compile"; -import type { JSONType } from "../compile/rules"; -import type { KeywordCxt } from "../compile/validate"; -import type Ajv from "../core"; -interface _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - [x: string]: any; -} -export interface SchemaObject extends _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - $async?: false; - [x: string]: any; -} -export interface AsyncSchema extends _SchemaObject { - $async: true; -} -export declare type AnySchemaObject = SchemaObject | AsyncSchema; -export declare type Schema = SchemaObject | boolean; -export declare type AnySchema = Schema | AsyncSchema; -export declare type SchemaMap = { - [Key in string]?: AnySchema; -}; -export interface SourceCode { - validateName: ValueScopeName; - validateCode: string; - scopeValues: ScopeValueSets; - evaluated?: Code; -} -export interface DataValidationCxt { - instancePath: string; - parentData: { - [K in T]: any; - }; - parentDataProperty: T; - rootData: Record | any[]; - dynamicAnchors: { - [Ref in string]?: ValidateFunction; - }; -} -export interface ValidateFunction { - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T; - errors?: null | ErrorObject[]; - evaluated?: Evaluated; - schema: AnySchema; - schemaEnv: SchemaEnv; - source?: SourceCode; -} -export interface JTDParser { - (json: string): T | undefined; - message?: string; - position?: number; -} -export declare type EvaluatedProperties = { - [K in string]?: true; -} | true; -export declare type EvaluatedItems = number | true; -export interface Evaluated { - props?: EvaluatedProperties; - items?: EvaluatedItems; - dynamicProps: boolean; - dynamicItems: boolean; -} -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise; - $async: true; -} -export declare type AnyValidateFunction = ValidateFunction | AsyncValidateFunction; -export interface ErrorObject, S = unknown> { - keyword: K; - instancePath: string; - schemaPath: string; - params: P; - propertyName?: string; - message?: string; - schema?: S; - parentSchema?: AnySchemaObject; - data?: unknown; -} -export declare type ErrorNoParams = ErrorObject, S>; -interface _KeywordDef { - keyword: string | string[]; - type?: JSONType | JSONType[]; - schemaType?: JSONType | JSONType[]; - allowUndefined?: boolean; - $data?: boolean; - implements?: string[]; - before?: string; - post?: boolean; - metaSchema?: AnySchemaObject; - validateSchema?: AnyValidateFunction; - dependencies?: string[]; - error?: KeywordErrorDefinition; - $dataError?: KeywordErrorDefinition; -} -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void; - trackErrors?: boolean; -} -export declare type MacroKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaCxt) => AnySchema; -export declare type CompileKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => DataValidateFunction; -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise; - errors?: Partial[]; -} -export interface SchemaValidateFunction { - (schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): boolean | Promise; - errors?: Partial[]; -} -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction; - compile?: CompileKeywordFunc; - schema?: boolean; - modifying?: boolean; - async?: boolean; - valid?: boolean; - errors?: boolean | "full"; -} -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc; -} -export declare type KeywordDefinition = CodeKeywordDefinition | FuncKeywordDefinition | MacroKeywordDefinition; -export declare type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[]; - schemaType: JSONType[]; -}; -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code); - params?: Code | ((cxt: KeywordErrorCxt) => Code); -} -export declare type Vocabulary = (KeywordDefinition | string)[]; -export interface KeywordErrorCxt { - gen: CodeGen; - keyword: string; - data: Name; - $data?: string | false; - schema: any; - parentSchema?: AnySchemaObject; - schemaCode: Code | number | boolean; - schemaValue: Code | number | boolean; - schemaType?: JSONType[]; - errsCount?: Name; - params: KeywordCxtParams; - it: SchemaCxt; -} -export declare type KeywordCxtParams = { - [P in string]?: Code | string | number; -}; -export declare type FormatValidator = (data: T) => boolean; -export declare type FormatCompare = (data1: T, data2: T) => number | undefined; -export declare type AsyncFormatValidator = (data: T) => Promise; -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: FormatValidator | (T extends string ? string | RegExp : never); - async?: false | undefined; - compare?: FormatCompare; -} -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: AsyncFormatValidator; - async: true; - compare?: FormatCompare; -} -export declare type AddedFormat = true | RegExp | FormatValidator | FormatDefinition | FormatDefinition | AsyncFormatDefinition | AsyncFormatDefinition; -export declare type Format = AddedFormat | string; -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike; - code: string; -} -export interface RegExpLike { - test: (s: string) => boolean; -} -export interface UriResolver { - parse(uri: string): URI.URIComponents; - resolve(base: string, path: string): string; - serialize(component: URI.URIComponents): string; -} -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js deleted file mode 100644 index aa219d8f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map deleted file mode 100644 index 1f80f85e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts deleted file mode 100644 index 78ec842f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -declare type StrictNullChecksWrapper = undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name}` : Type; -declare type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never; -export declare type SomeJSONSchema = UncheckedJSONSchemaType; -declare type UncheckedPartialSchema = Partial>; -export declare type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema>; -declare type JSONType = IsPartial extends true ? T | undefined : T; -interface NumberKeywords { - minimum?: number; - maximum?: number; - exclusiveMinimum?: number; - exclusiveMaximum?: number; - multipleOf?: number; - format?: string; -} -interface StringKeywords { - minLength?: number; - maxLength?: number; - pattern?: string; - format?: string; -} -declare type UncheckedJSONSchemaType = (// these two unions allow arbitrary unions of types -{ - anyOf: readonly UncheckedJSONSchemaType[]; -} | { - oneOf: readonly UncheckedJSONSchemaType[]; -} | ({ - type: readonly (T extends number ? JSONType<"number" | "integer", IsPartial> : T extends string ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> : never)[]; -} & UnionToIntersection) | ((T extends number ? { - type: JSONType<"number" | "integer", IsPartial>; -} & NumberKeywords : T extends string ? { - type: JSONType<"string", IsPartial>; -} & StringKeywords : T extends boolean ? { - type: JSONType<"boolean", IsPartial>; -} : T extends readonly [any, ...any[]] ? { - type: JSONType<"array", IsPartial>; - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable; - } & { - length: T["length"]; - }; - minItems: T["length"]; -} & ({ - maxItems: T["length"]; -} | { - additionalItems: false; -}) : T extends readonly any[] ? { - type: JSONType<"array", IsPartial>; - items: UncheckedJSONSchemaType; - contains?: UncheckedPartialSchema; - minItems?: number; - maxItems?: number; - minContains?: number; - maxContains?: number; - uniqueItems?: true; - additionalItems?: never; -} : T extends Record ? { - type: JSONType<"object", IsPartial>; - additionalProperties?: boolean | UncheckedJSONSchemaType; - unevaluatedProperties?: boolean | UncheckedJSONSchemaType; - properties?: IsPartial extends true ? Partial> : UncheckedPropertiesSchema; - patternProperties?: Record>; - propertyNames?: Omit, "type"> & { - type?: "string"; - }; - dependencies?: { - [K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema; - }; - dependentRequired?: { - [K in keyof T]?: Readonly<(keyof T)[]>; - }; - dependentSchemas?: { - [K in keyof T]?: UncheckedPartialSchema; - }; - minProperties?: number; - maxProperties?: number; -} & (IsPartial extends true ? { - required: Readonly<(keyof T)[]>; -} : [UncheckedRequiredMembers] extends [never] ? { - required?: Readonly[]>; -} : { - required: Readonly[]>; -}) : T extends null ? { - type: JSONType<"null", IsPartial>; - nullable: true; -} : never) & { - allOf?: Readonly[]>; - anyOf?: Readonly[]>; - oneOf?: Readonly[]>; - if?: UncheckedPartialSchema; - then?: UncheckedPartialSchema; - else?: UncheckedPartialSchema; - not?: UncheckedPartialSchema; -})) & { - [keyword: string]: any; - $id?: string; - $ref?: string; - $defs?: Record>; - definitions?: Record>; -}; -export declare type JSONSchemaType = StrictNullChecksWrapper<"JSONSchemaType", UncheckedJSONSchemaType>; -declare type Known = { - [key: string]: Known; -} | [Known, ...Known[]] | Known[] | number | string | boolean | null; -declare type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | { - $ref: string; - }; -}; -export declare type PropertiesSchema = StrictNullChecksWrapper<"PropertiesSchema", UncheckedPropertiesSchema>; -declare type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -export declare type RequiredMembers = StrictNullChecksWrapper<"RequiredMembers", UncheckedRequiredMembers>; -declare type Nullable = undefined extends T ? { - nullable: true; - const?: null; - enum?: Readonly<(T | null)[]>; - default?: T | null; -} : { - const?: T; - enum?: Readonly; - default?: T; -}; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js b/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js deleted file mode 100644 index 2d8f98dc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map deleted file mode 100644 index ae6b4d0f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../../lib/types/json-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts deleted file mode 100644 index 3004e5e5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -/** numeric strings */ -declare type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -/** string strings */ -declare type StringType = "string" | "timestamp"; -/** Generic JTD Schema without inference of the represented type */ -export declare type SomeJTDSchemaType = (// ref -{ - ref: string; -} | { - type: NumberType | StringType | "boolean"; -} | { - enum: string[]; -} | { - elements: SomeJTDSchemaType; -} | { - values: SomeJTDSchemaType; -} | { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} | { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} | { - discriminator: string; - mapping: Record; -} | {}) & { - nullable?: boolean; - metadata?: Record; - definitions?: Record; -}; -/** required keys of an object, not undefined */ -declare type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -/** optional or undifined-able keys of an object */ -declare type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never; -}[keyof T]; -/** type is true if T is a union type */ -declare type IsUnion_ = false extends (T extends unknown ? ([U] extends [T] ? false : true) : never) ? false : true; -declare type IsUnion = IsUnion_; -/** type is true if T is identically E */ -declare type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false; -/** type is true if T or null is identically E or null*/ -declare type NullTypeEquality = TypeEquality; -/** gets only the string literals of a type or null if a type isn't a string literal */ -declare type EnumString = [T] extends [never] ? null : T extends string ? string extends T ? null : T : null; -/** true if type is a union of string literals */ -declare type IsEnum = null extends EnumString> ? false : true; -/** true only if all types are array types (not tuples) */ -declare type IsElements = false extends IsUnion ? [T] extends [readonly unknown[]] ? undefined extends T[0.5] ? false : true : false : false; -/** true if the the type is a values type */ -declare type IsValues = false extends IsUnion> ? TypeEquality, string> : false; -/** true if type is a proeprties type and Union is false, or type is a discriminator type and Union is true */ -declare type IsRecord = Union extends IsUnion> ? null extends EnumString> ? false : true : false; -/** actual schema */ -export declare type JTDSchemaType = Record> = (// refs - where null wasn't specified, must match exactly -(null extends EnumString ? never : ({ - [K in keyof D]: [T] extends [D[K]] ? { - ref: K; - } : never; -}[keyof D] & { - nullable?: false; -}) | (null extends T ? { - [K in keyof D]: [Exclude] extends [Exclude] ? { - ref: K; - } : never; -}[keyof D] & { - nullable: true; -} : never)) | (unknown extends T ? { - nullable?: boolean; -} : never) | ((true extends NullTypeEquality ? { - type: NumberType; -} : true extends NullTypeEquality ? { - type: "boolean"; -} : true extends NullTypeEquality ? { - type: StringType; -} : true extends NullTypeEquality ? { - type: "timestamp"; -} : true extends IsEnum ? { - enum: EnumString>[]; -} : true extends IsElements> ? T extends readonly (infer E)[] ? { - elements: JTDSchemaType; -} : never : true extends IsValues ? T extends Record ? { - values: JTDSchemaType; -} : never : true extends IsRecord ? ([RequiredKeys>] extends [never] ? { - properties?: Record; -} : { - properties: { - [K in RequiredKeys]: JTDSchemaType; - }; -}) & ([OptionalKeys>] extends [never] ? { - optionalProperties?: Record; -} : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D>; - }; -}) & { - additionalProperties?: boolean; -} : true extends IsRecord ? { - [K in keyof Exclude]-?: Exclude[K] extends string ? { - discriminator: K; - mapping: { - [M in Exclude[K]]: JTDSchemaType, D>; - }; - } : never; -}[keyof Exclude] : never) & (null extends T ? { - nullable: true; -} : { - nullable?: false; -}))) & { - metadata?: Record; - definitions?: { - [K in keyof D]: JTDSchemaType; - }; -}; -declare type JTDDataDef> = // ref -(S extends { - ref: string; -} ? D extends { - [K in S["ref"]]: infer V; -} ? JTDDataDef : never : S extends { - type: NumberType; -} ? number : S extends { - type: "boolean"; -} ? boolean : S extends { - type: "string"; -} ? string : S extends { - type: "timestamp"; -} ? string | Date : S extends { - enum: readonly (infer E)[]; -} ? string extends E ? never : [E] extends [string] ? E : never : S extends { - elements: infer E; -} ? JTDDataDef[] : S extends { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - values: infer V; -} ? Record> : S extends { - discriminator: infer M; - mapping: Record; -} ? [M] extends [string] ? { - [K in keyof S["mapping"]]: JTDDataDef & { - [KM in M]: K; - }; -}[keyof S["mapping"]] : never : unknown) | (S extends { - nullable: true; -} ? null : never); -export declare type JTDDataType = S extends { - definitions: Record; -} ? JTDDataDef : JTDDataDef>; -export {}; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js b/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js deleted file mode 100644 index 11338aa8..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map deleted file mode 100644 index add89bd7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/types/jtd-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts deleted file mode 100644 index 89a73f8d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export declare type AdditionalItemsError = ErrorObject<"additionalItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export declare function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js deleted file mode 100644 index 608d51eb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateAdditionalItems = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "additionalItems", - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt) { - const { parentSchema, it } = cxt; - const { items } = parentSchema; - if (!Array.isArray(items)) { - (0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas'); - return; - } - validateAdditionalItems(cxt, items); - }, -}; -function validateAdditionalItems(cxt, items) { - const { gen, schema, data, keyword, it } = cxt; - it.items = true; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items.length }); - cxt.pass((0, codegen_1._) `${len} <= ${items.length}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var - gen.if((0, codegen_1.not)(valid), () => validateItems(valid)); - cxt.ok(valid); - } - function validateItems(valid) { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } -} -exports.validateAdditionalItems = validateAdditionalItems; -exports.default = def; -//# sourceMappingURL=additionalItems.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map deleted file mode 100644 index b3d1479c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalItems.ts"],"names":[],"mappings":";;;AAOA,mDAAuD;AACvD,6CAA2E;AAI3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,iBAA0B;IACnC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9B,MAAM,EAAC,KAAK,EAAC,GAAG,YAAY,CAAA;QAC5B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACzB,IAAA,sBAAe,EAAC,EAAE,EAAE,sEAAsE,CAAC,CAAA;YAC3F,OAAM;SACP;QACD,uBAAuB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACrC,CAAC;CACF,CAAA;AAED,SAAgB,uBAAuB,CAAC,GAAe,EAAE,KAAkB;IACzE,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IAC5C,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;IACf,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,SAAS,CA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alProperties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts deleted file mode 100644 index f24ba3f5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, AddedKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type AdditionalPropertiesError = ErrorObject<"additionalProperties", { - additionalProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition & AddedKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js deleted file mode 100644 index 1d3374bb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const util_1 = require("../../compile/util"); -const error = { - message: "must NOT have additional properties", - params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`, -}; -const def = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, opts } = it; - it.props = true; - if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) - return; - const props = (0, code_1.allSchemaProperties)(parentSchema.properties); - const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties); - checkAdditionalProperties(); - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function checkAdditionalProperties() { - gen.forIn("key", data, (key) => { - if (!props.length && !patProps.length) - additionalPropertyCode(key); - else - gen.if(isAdditional(key), () => additionalPropertyCode(key)); - }); - } - function isAdditional(key) { - let definedProp; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties"); - definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key); - } - else if (props.length) { - definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`)); - } - else { - definedProp = codegen_1.nil; - } - if (patProps.length) { - definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`)); - } - return (0, codegen_1.not)(definedProp); - } - function deleteAdditional(key) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - function additionalPropertyCode(key) { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key); - return; - } - if (schema === false) { - cxt.setParams({ additionalProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false); - gen.if((0, codegen_1.not)(valid), () => { - cxt.reset(); - deleteAdditional(key); - }); - } - else { - applyAdditionalSchema(key, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - } - function applyAdditionalSchema(key, valid, errors) { - const subschema = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }; - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }); - } - cxt.subschema(subschema, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=additionalProperties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map deleted file mode 100644 index d2f249f6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalProperties.ts"],"names":[],"mappings":";;AAOA,kCAAsE;AACtE,mDAAiE;AACjE,+CAAmC;AAEnC,6CAA0E;AAQ1E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,qCAAqC;IAC9C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,wBAAwB,MAAM,CAAC,kBAAkB,GAAG;CAC5E,CAAA;AAED,MAAM,GAAG,GAAmD;IAC1D,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAG;QACN,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC5D,wBAAwB;QACxB,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC3D,MAAM,EAAC,SAAS,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QAC5B,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QAC5E,MAAM,KAAK,GAAG,IAAA,0BAAmB,EAAC,YAAY,CAAC,UAAU,CAAC,CAAA;QAC1D,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,YAAY,CAAC,iBAAiB,CAAC,CAAA;QACpE,yBAAyB,EAAE,CAAA;QAC3B,GAAG,CAAC,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EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;iBACtD;aACF;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,GAAS,EAAE,KAAW,EAAE,MAAc;YACnE,MAAM,SAAS,GAAkB;gBAC/B,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,GAAG;gBACb,YAAY,EAAE,WAAI,CAAC,GAAG;aACvB,CAAA;YACD,IAAI,MAAM,KAAK,KAAK,EAAE;gBACpB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;oBACvB,aAAa,EAAE,IAAI;oBACnB,YAAY,EAAE,KAAK;oBACnB,SAAS,EAAE,KAAK;iBACjB,CAAC,CAAA;aACH;YACD,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js deleted file mode 100644 index 1b1ae737..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "allOf", - schemaType: "array", - code(cxt) { - const { gen, schema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const valid = gen.name("valid"); - schema.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid); - cxt.ok(valid); - cxt.mergeEvaluated(schCxt); - }); - }, -}; -exports.default = def; -//# sourceMappingURL=allOf.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map deleted file mode 100644 index d119d0ea..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/allOf.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,wBAAwB;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACvE,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAc,EAAE,CAAS,EAAE,EAAE;YAC3C,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,GAAG,CAAC;gBAAE,OAAM;YACtC,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,EAAC,EAAE,KAAK,CAAC,CAAA;YACtE,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;YACb,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC5B,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts deleted file mode 100644 index db3fc0e2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export declare type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js deleted file mode 100644 index 66cfce2c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in anyOf" }, -}; -exports.default = def; -//# sourceMappingURL=anyOf.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map deleted file mode 100644 index 537ffcbe..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/anyOf.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAIrC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts deleted file mode 100644 index 7e4e96a0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type ContainsError = ErrorObject<"contains", { - minContains: number; - maxContains?: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js deleted file mode 100644 index 6c5473f5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { min, max } }) => max === undefined - ? (0, codegen_1.str) `must contain at least ${min} valid item(s)` - : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`, -}; -const def = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - let min; - let max; - const { minContains, maxContains } = parentSchema; - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains; - max = maxContains; - } - else { - min = 1; - } - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - cxt.setParams({ min, max }); - if (max === undefined && min === 0) { - (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`); - return; - } - if (max !== undefined && min > max) { - (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`); - cxt.fail(); - return; - } - if ((0, util_1.alwaysValidSchema)(it, schema)) { - let cond = (0, codegen_1._) `${len} >= ${min}`; - if (max !== undefined) - cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`; - cxt.pass(cond); - return; - } - it.items = true; - const valid = gen.name("valid"); - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())); - } - else if (min === 0) { - gen.let(valid, true); - if (max !== undefined) - gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount); - } - else { - gen.let(valid, false); - validateItemsWithCount(); - } - cxt.result(valid, () => cxt.reset()); - function validateItemsWithCount() { - const schValid = gen.name("_valid"); - const count = gen.let("count", 0); - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))); - } - function validateItems(_valid, block) { - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword: "contains", - dataProp: i, - dataPropType: util_1.Type.Num, - compositeRule: true, - }, _valid); - block(); - }); - } - function checkLimits(count) { - gen.code((0, codegen_1._) `${count}++`); - if (max === undefined) { - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break()); - } - else { - gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break()); - if (min === 1) - gen.assign(valid, true); - else - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true)); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=contains.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map deleted file mode 100644 index 6a0bd39c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/contains.ts"],"names":[],"mappings":";;AAOA,mDAAkD;AAClD,6CAA2E;AAQ3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAChC,GAAG,KAAK,SAAS;QACf,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,gBAAgB;QACjD,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,qBAAqB,GAAG,gBAAgB;IAC7E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAC/B,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,kBAAkB,GAAG,GAAG;CAC/F,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,IAAI,GAAW,CAAA;QACf,IAAI,GAAuB,CAAA;QAC3B,MAAM,EAAC,WAAW,EAAE,WAAW,EAAC,GAAG,YAAY,CAAA;QAC/C,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;YAChB,GAAG,GAAG,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,C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SAAS,EAAE;gBACrB,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;aACrE;iBAAM;gBACL,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;gBACpE,IAAI,GAAG,KAAK,CAAC;oBAAE,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;;oBACjC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAA;aAClE;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts deleted file mode 100644 index b28cfe42..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export declare type PropertyDependencies = { - [K in string]?: string[]; -}; -export interface DependenciesErrorParams { - property: string; - missingProperty: string; - depsCount: number; - deps: string; -} -export declare type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, { - [K in string]?: string[] | AnySchema; -}>; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: { - [K in string]?: string[]; -}): void; -export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js deleted file mode 100644 index e81f86d1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -exports.error = { - message: ({ params: { property, depsCount, deps } }) => { - const property_ies = depsCount === 1 ? "property" : "properties"; - return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`; - }, - params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -}; -const def = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error: exports.error, - code(cxt) { - const [propDeps, schDeps] = splitDependencies(cxt); - validatePropertyDeps(cxt, propDeps); - validateSchemaDeps(cxt, schDeps); - }, -}; -function splitDependencies({ schema }) { - const propertyDeps = {}; - const schemaDeps = {}; - for (const key in schema) { - if (key === "__proto__") - continue; - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps; - deps[key] = schema[key]; - } - return [propertyDeps, schemaDeps]; -} -function validatePropertyDeps(cxt, propertyDeps = cxt.schema) { - const { gen, data, it } = cxt; - if (Object.keys(propertyDeps).length === 0) - return; - const missing = gen.let("missing"); - for (const prop in propertyDeps) { - const deps = propertyDeps[prop]; - if (deps.length === 0) - continue; - const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties); - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }); - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - (0, code_1.checkReportMissingProp)(cxt, depProp); - } - }); - } - else { - gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } -} -exports.validatePropertyDeps = validatePropertyDeps; -function validateSchemaDeps(cxt, schemaDeps = cxt.schema) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - for (const prop in schemaDeps) { - if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop])) - continue; - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => { - const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid); - cxt.mergeValidEvaluated(schCxt, valid); - }, () => gen.var(valid, true) // TODO var - ); - cxt.ok(valid); - } -} -exports.validateSchemaDeps = validateSchemaDeps; -exports.default = def; -//# sourceMappingURL=dependencies.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map deleted file mode 100644 index dafffd16..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependencies.ts"],"names":[],"mappings":";;;AAQA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAmG;AAmBtF,QAAA,KAAK,GAA2B;IAC3C,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAC,EAAC,EAAE,EAAE;QACjD,MAAM,YAAY,GAAG,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,C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,IAAI,EAAE,OAAO,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACpC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,UAAU,CAAC,IAAI,CAAc,CAAC;YAAE,SAAQ;QAClE,GAAG,CAAC,EAAE,CACJ,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EACtD,GAAG,EAAE;YACH,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;YAChE,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACxC,CAAC,EACD,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,WAAW;SACvC,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;KACd;AACH,CAAC;AAfD,gDAeC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js deleted file mode 100644 index 66ef2e84..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("./dependencies"); -const def = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentSchemas.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map deleted file mode 100644 index 17712e6f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentSchemas.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependentSchemas.ts"],"names":[],"mappings":";;AACA,iDAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iCAAkB,EAAC,GAAG,CAAC;CACvC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts deleted file mode 100644 index 3c3e78dd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type IfKeywordError = ErrorObject<"if", { - failingKeyword: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js deleted file mode 100644 index 2c42a3e9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`, - params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`, -}; -const def = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt) { - const { gen, parentSchema, it } = cxt; - if (parentSchema.then === undefined && parentSchema.else === undefined) { - (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored'); - } - const hasThen = hasSchema(it, "then"); - const hasElse = hasSchema(it, "else"); - if (!hasThen && !hasElse) - return; - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - validateIf(); - cxt.reset(); - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause"); - cxt.setParams({ ifClause }); - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)); - } - else if (hasThen) { - gen.if(schValid, validateClause("then")); - } - else { - gen.if((0, codegen_1.not)(schValid), validateClause("else")); - } - cxt.pass(valid, () => cxt.error(true)); - function validateIf() { - const schCxt = cxt.subschema({ - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, schValid); - cxt.mergeEvaluated(schCxt); - } - function validateClause(keyword, ifClause) { - return () => { - const schCxt = cxt.subschema({ keyword }, schValid); - gen.assign(valid, schValid); - cxt.mergeValidEvaluated(schCxt, valid); - if (ifClause) - gen.assign(ifClause, (0, codegen_1._) `${keyword}`); - else - cxt.setParams({ ifClause: keyword }); - }; - } - }, -}; -function hasSchema(it, keyword) { - const schema = it.schema[keyword]; - return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema); -} -exports.default = def; -//# sourceMappingURL=if.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map deleted file mode 100644 index 34b3a553..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"if.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/if.ts"],"names":[],"mappings":";;AAQA,mDAAuD;AACvD,6CAAqE;AAIrE,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,eAAe,MAAM,CAAC,QAAQ,UAAU;IAClE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,QAAQ,GAAG;CAC9D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,YAAY,CAAC,IAAI,KAAK,SAAS,IAAI,YAAY,CAAC,IAAI,KAAK,SAAS,EAAE;YACtE,IAAA,sBAAe,EAAC,EAAE,EAAE,2CAA2C,CAAC,CAAA;SACjE;QACD,MAAM,OAAO,GAAG,SAAS,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QACrC,MAAM,OAAO,GAAG,SAAS,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO;YAAE,OAAM;QAEhC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QACpC,MAAM,Q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AC3B,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;gBACtC,IAAI,QAAQ;oBAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAA,WAAC,EAAA,GAAG,OAAO,EAAE,CAAC,CAAA;;oBAC5C,GAAG,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAA;YACzC,CAAC,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,SAAS,SAAS,CAAC,EAAgB,EAAE,OAAe;IAClD,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAA;AAC/D,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts deleted file mode 100644 index f45239bd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ErrorNoParams, Vocabulary } from "../../types"; -import { AdditionalItemsError } from "./additionalItems"; -import { ItemsError } from "./items2020"; -import { ContainsError } from "./contains"; -import { DependenciesError } from "./dependencies"; -import { PropertyNamesError } from "./propertyNames"; -import { AdditionalPropertiesError } from "./additionalProperties"; -import { NotKeywordError } from "./not"; -import { AnyOfError } from "./anyOf"; -import { OneOfError } from "./oneOf"; -import { IfKeywordError } from "./if"; -export default function getApplicator(draft2020?: boolean): Vocabulary; -export declare type ApplicatorKeywordError = ErrorNoParams<"false schema"> | AdditionalItemsError | ItemsError | ContainsError | AdditionalPropertiesError | DependenciesError | IfKeywordError | AnyOfError | OneOfError | NotKeywordError | PropertyNamesError; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js deleted file mode 100644 index cf592f27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const additionalItems_1 = require("./additionalItems"); -const prefixItems_1 = require("./prefixItems"); -const items_1 = require("./items"); -const items2020_1 = require("./items2020"); -const contains_1 = require("./contains"); -const dependencies_1 = require("./dependencies"); -const propertyNames_1 = require("./propertyNames"); -const additionalProperties_1 = require("./additionalProperties"); -const properties_1 = require("./properties"); -const patternProperties_1 = require("./patternProperties"); -const not_1 = require("./not"); -const anyOf_1 = require("./anyOf"); -const oneOf_1 = require("./oneOf"); -const allOf_1 = require("./allOf"); -const if_1 = require("./if"); -const thenElse_1 = require("./thenElse"); -function getApplicator(draft2020 = false) { - const applicator = [ - // any - not_1.default, - anyOf_1.default, - oneOf_1.default, - allOf_1.default, - if_1.default, - thenElse_1.default, - // object - propertyNames_1.default, - additionalProperties_1.default, - dependencies_1.default, - properties_1.default, - patternProperties_1.default, - ]; - // array - if (draft2020) - applicator.push(prefixItems_1.default, items2020_1.default); - else - applicator.push(additionalItems_1.default, items_1.default); - applicator.push(contains_1.default); - return applicator; -} -exports.default = getApplicator; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map deleted file mode 100644 index ebcb8534..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/index.ts"],"names":[],"mappings":";;AACA,uDAAuE;AACvE,+CAAuC;AACvC,mCAA2B;AAC3B,2CAAiD;AACjD,yCAAkD;AAClD,iDAA8D;AAC9D,mDAAiE;AACjE,iEAAsF;AACtF,6CAAqC;AACrC,2DAAmD;AACnD,+BAAiD;AACjD,mCAAyC;AACzC,mCAAyC;AACzC,mCAA2B;AAC3B,6BAA8C;AAC9C,yCAAiC;AAEjC,SAAwB,aAAa,CAAC,SAAS,GAAG,KAAK;IACrD,MAAM,UAAU,GAAG;QACjB,MAAM;QACN,aAAU;QACV,eAAK;QACL,eAAK;QACL,eAAK;QACL,YAAS;QACT,kBAAQ;QACR,SAAS;QACT,uBAAa;QACb,8BAAoB;QACpB,sBAAY;QACZ,oBAAU;QACV,2BAAiB;KAClB,CAAA;IACD,QAAQ;IACR,IAAI,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,qBAAW,EAAE,mBAAS,CAAC,CAAA;;QACjD,UAAU,CAAC,IAAI,CAAC,yBAAe,EAAE,eAAK,CAAC,CAAA;IAC5C,UAAU,CAAC,IAAI,CAAC,kBAAQ,CAAC,CAAA;IACzB,OAAO,UAAU,CAAA;AACnB,CAAC;AArBD,gCAqBC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts deleted file mode 100644 index 8e608ca9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function validateTuple(cxt: KeywordCxt, extraItems: string, schArr?: AnySchema[]): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js deleted file mode 100644 index 26f527bc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateTuple = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt) { - const { schema, it } = cxt; - if (Array.isArray(schema)) - return validateTuple(cxt, "additionalItems", schema); - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -function validateTuple(cxt, extraItems, schArr = cxt.schema) { - const { gen, parentSchema, data, keyword, it } = cxt; - checkStrictTuple(parentSchema); - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items); - } - const valid = gen.name("valid"); - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - schArr.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({ - keyword, - schemaProp: i, - dataProp: i, - }, valid)); - cxt.ok(valid); - }); - function checkStrictTuple(sch) { - const { opts, errSchemaPath } = it; - const l = schArr.length; - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; - (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); - } - } -} -exports.validateTuple = validateTuple; -exports.default = def; -//# sourceMappingURL=items.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map deleted file mode 100644 index 3c4ce614..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../lib/vocabularies/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,GAAG,IAAI,SAAS,CAAC,CAAA;IAC/C,MAAM,CAAC,OAAO,CAAC,CAAC,GAAc,EAAE,CAAS,EAAE,EAAE;QAC3C,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,GAAG,CAAC;YAAE,OAAM;QACtC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,CAC5B,GAAG,CAAC,SAAS,CACX;YACE,OAAO;YACP,UAAU,EAAE,CAAC;YACb,QAAQ,EAAE,CAAC;SACZ,EACD,KAAK,CACN,CACF,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC,CAAC,CAAA;IAEF,SAAS,gBAAgB,CAAC,GAAoB;QAC5C,MAAM,EAAC,IAAI,EAAE,aAAa,EAAC,GAAG,EAAE,CAAA;QAChC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAA;QACvB,MAAM,SAAS,GAAG,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC,CAAA;QACzF,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,SAAS,EAAE;YACnC,MAAM,GAAG,GAAG,IAAI,OAAO,QAAQ,CAAC,oCAAoC,UAAU,4CAA4C,aAAa,GAAG,CAAA;YAC1I,IAAA,sBAAe,EAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;SAC5C;IACH,CAAC;AACH,CAAC;AApCD,sCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts deleted file mode 100644 index 4168c7f9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type ItemsError = ErrorObject<"items", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js deleted file mode 100644 index f2387d7d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const additionalItems_1 = require("./additionalItems"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt) { - const { schema, parentSchema, it } = cxt; - const { prefixItems } = parentSchema; - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - if (prefixItems) - (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems); - else - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -exports.default = def; -//# sourceMappingURL=items2020.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map deleted file mode 100644 index 5034acda..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items2020.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items2020.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAqC;AACrC,uDAAyD;AAIzD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtC,MAAM,EAAC,WAAW,EAAC,GAAG,YAAY,CAAA;QAClC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,IAAI,WAAW;YAAE,IAAA,yCAAuB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;;YACrD,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,CAAA;IACjC,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts deleted file mode 100644 index b8c37cab..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export declare type NotKeywordError = ErrorNoParams<"not", AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js deleted file mode 100644 index 89f6fdda..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt) { - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) { - cxt.fail(); - return; - } - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, valid); - cxt.failResult(valid, () => cxt.reset(), () => cxt.error()); - }, - error: { message: "must NOT be valid" }, -}; -exports.default = def; -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map deleted file mode 100644 index 5e2a1ca1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/not.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAIpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE;YACjC,GAAG,CAAC,IAAI,EAAE,CAAA;YACV,OAAM;SACP;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CACX;YACE,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,KAAK;SACjB,EACD,KAAK,CACN,CAAA;QAED,GAAG,CAAC,UAAU,CACZ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EACjB,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CAAA;IACH,CAAC;IACD,KAAK,EAAE,EAAC,OAAO,EAAE,mBAAmB,EAAC;CACtC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts deleted file mode 100644 index 01df87ab..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type OneOfError = ErrorObject<"oneOf", { - passingSchemas: [number, number] | null; -}, AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js deleted file mode 100644 index 441db2ac..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "must match exactly one schema in oneOf", - params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`, -}; -const def = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - if (it.opts.discriminator && parentSchema.discriminator) - return; - const schArr = schema; - const valid = gen.let("valid", false); - const passing = gen.let("passing", null); - const schValid = gen.name("_valid"); - cxt.setParams({ passing }); - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - gen.block(validateOneOf); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - function validateOneOf() { - schArr.forEach((sch, i) => { - let schCxt; - if ((0, util_1.alwaysValidSchema)(it, sch)) { - gen.var(schValid, true); - } - else { - schCxt = cxt.subschema({ - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, schValid); - } - if (i > 0) { - gen - .if((0, codegen_1._) `${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`) - .else(); - } - gen.if(schValid, () => { - gen.assign(valid, true); - gen.assign(passing, i); - if (schCxt) - cxt.mergeEvaluated(schCxt, codegen_1.Name); - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=oneOf.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map deleted file mode 100644 index 6cc54de6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/oneOf.ts"],"names":[],"mappings":";;AAOA,mDAA6C;AAC7C,6CAAoD;AASpD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,OAAO,GAAG;CAC7D,CAAA;AAED,MAAM,GAAG,GAA0B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,OAAO,EAAE,OAAO;wBAChB,UAAU,EAAE,CAAC;wBACb,aAAa,EAAE,IAAI;qBACpB,EACD,QAAQ,CACT,CAAA;iBACF;gBAED,IAAI,CAAC,GAAG,CAAC,EAAE;oBACT,GAAG;yBACA,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,QAAQ,OAAO,KAAK,EAAE,CAAC;yBAC9B,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;yBACpB,MAAM,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC;yBACtC,IAAI,EAAE,CAAA;iBACV;gBAED,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;oBACpB,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;oBACvB,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;oBACtB,IAAI,MAAM;wBAAE,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;gBAC9C,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js deleted file mode 100644 index 48501c6e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const util_2 = require("../../compile/util"); -const def = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, data, parentSchema, it } = cxt; - const { opts } = it; - const patterns = (0, code_1.allSchemaProperties)(schema); - const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p])); - if (patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true))) { - return; - } - const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties; - const valid = gen.name("valid"); - if (it.props !== true && !(it.props instanceof codegen_1.Name)) { - it.props = (0, util_2.evaluatedPropsToName)(gen, it.props); - } - const { props } = it; - validatePatternProperties(); - function validatePatternProperties() { - for (const pat of patterns) { - if (checkProperties) - checkMatchingProperties(pat); - if (it.allErrors) { - validateProperties(pat); - } - else { - gen.var(valid, true); // TODO var - validateProperties(pat); - gen.if(valid); - } - } - } - function checkMatchingProperties(pat) { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); - } - } - } - function validateProperties(pat) { - gen.forIn("key", data, (key) => { - gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat); - if (!alwaysValid) { - cxt.subschema({ - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: util_2.Type.Str, - }, valid); - } - if (it.opts.unevaluated && props !== true) { - gen.assign((0, codegen_1._) `${props}[${key}]`, true); - } - else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=patternProperties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map deleted file mode 100644 index 2a60b74a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/patternProperties.ts"],"names":[],"mappings":";;AAEA,kCAAuD;AACvD,mDAAkD;AAClD,6CAAqE;AACrE,6CAA6D;AAG7D,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,MAAM,EAAC,IAAI,EAAC,GAAG,EAAE,CAAA;QACjB,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,CAAA;QAC5C,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAChD,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAc,CAAC,CAC9C,CAAA;QAED,IACE,QAAQ,CAAC,MAAM,KAAK,CAAC;YACrB,CAAC,mBAAmB,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;gBAC7C,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,EAC9C;YACA,OAAM;SACP;QAED,MAAM,eAAe,GACnB,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,uBAAuB,IAAI,YAAY,C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AS,GAAG,GAAG,EAAE,GAAG,EAAE;oBACnD,MAAM,WAAW,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;oBACrD,IAAI,CAAC,WAAW,EAAE;wBAChB,GAAG,CAAC,SAAS,CACX;4BACE,OAAO,EAAE,mBAAmB;4BAC5B,UAAU,EAAE,GAAG;4BACf,QAAQ,EAAE,GAAG;4BACb,YAAY,EAAE,WAAI,CAAC,GAAG;yBACvB,EACD,KAAK,CACN,CAAA;qBACF;oBAED,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,KAAK,KAAK,IAAI,EAAE;wBACzC,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,IAAI,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;qBACtC;yBAAM,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE;wBACxC,sFAAsF;wBACtF,uDAAuD;wBACvD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;qBACtC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js deleted file mode 100644 index 727bc23c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const items_1 = require("./items"); -const def = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => (0, items_1.validateTuple)(cxt, "items"), -}; -exports.default = def; -//# sourceMappingURL=prefixItems.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map deleted file mode 100644 index deef718e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefixItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/prefixItems.ts"],"names":[],"mappings":";;AACA,mCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,GAAG,EAAE,OAAO,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js deleted file mode 100644 index 7347358e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_1 = require("../../compile/validate"); -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const additionalProperties_1 = require("./additionalProperties"); -const def = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); - } - const allProps = (0, code_1.allSchemaProperties)(schema); - for (const prop of allProps) { - it.definedProperties.add(prop); - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props); - } - const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - if (properties.length === 0) - return; - const valid = gen.name("valid"); - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop); - } - else { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties)); - applyPropertySchema(prop); - if (!it.allErrors) - gen.else().var(valid, true); - gen.endIf(); - } - cxt.it.definedProperties.add(prop); - cxt.ok(valid); - } - function hasDefault(prop) { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; - } - function applyPropertySchema(prop) { - cxt.subschema({ - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map deleted file mode 100644 index 27f8148c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/properties.ts"],"names":[],"mappings":";;AACA,qDAAiD;AACjD,kCAA2D;AAC3D,6CAA4E;AAC5E,iEAA0C;AAE1C,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,KAAK,KAAK,IAAI,YAAY,CAAC,oBAAoB,KAAK,SAAS,EAAE;YACzF,8BAAK,CAAC,IAAI,CAAC,IAAI,qBAAU,CAAC,EAAE,EAAE,8BAAK,EAAE,sBAAsB,CAAC,CAAC,CAAA;SAC9D;QACD,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,CAAA;QAC5C,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;YAC3B,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;SAC/B;QACD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,EAAE;YAC/D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,IAAA,aAAM,EAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;SACjE;QACD,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC5E,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;YAAE,OAAM;QACnC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAE/B,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE;YAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE;gBACpB,mBAAmB,CAAC,IAAI,CAAC,CAAA;aAC1B;iBAAM;gBACL,GAAG,CAAC,EAAE,CAAC,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;gBAC9D,mBAAmB,CAAC,IAAI,CAAC,CAAA;gBACzB,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;gBAC9C,GAAG,CAAC,KAAK,EAAE,CAAA;aACZ;YACD,GAAG,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAClC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;SACd;QAED,SAAS,UAAU,CAAC,IAAY;YAC9B,OAAO,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,SAAS,CAAA;QACvF,CAAC;QAED,SAAS,mBAAmB,CAAC,IAAY;YACvC,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,YAAY;gBACrB,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,EACD,KAAK,CACN,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts deleted file mode 100644 index 90f7ad5b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type PropertyNamesError = ErrorObject<"propertyNames", { - propertyName: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js deleted file mode 100644 index f3871152..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "property name must be valid", - params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`, -}; -const def = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - gen.forIn("key", data, (key) => { - cxt.setParams({ propertyName: key }); - cxt.subschema({ - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, valid); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(true); - if (!it.allErrors) - gen.break(); - }); - }); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=propertyNames.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map deleted file mode 100644 index 835b2bb1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyNames.js","sourceRoot":"","sources":["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,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js deleted file mode 100644 index 1ae63902..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({ keyword, parentSchema, it }) { - if (parentSchema.if === undefined) - (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); - }, -}; -exports.default = def; -//# sourceMappingURL=thenElse.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map deleted file mode 100644 index 2629f4fc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"thenElse.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/thenElse.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,EAAE,KAAK,SAAS;YAAE,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,2BAA2B,CAAC,CAAA;IAChG,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts deleted file mode 100644 index f914baca..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { SchemaMap } from "../types"; -import type { SchemaCxt } from "../compile"; -import type { KeywordCxt } from "../compile/validate"; -import { CodeGen, Code, Name } from "../compile/codegen"; -export declare function checkReportMissingProp(cxt: KeywordCxt, prop: string): void; -export declare function checkMissingProp({ gen, data, it: { opts } }: KeywordCxt, properties: string[], missing: Name): Code; -export declare function reportMissingProp(cxt: KeywordCxt, missing: Name): void; -export declare function hasPropFunc(gen: CodeGen): Name; -export declare function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code; -export declare function propertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function noPropertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function allSchemaProperties(schemaMap?: SchemaMap): string[]; -export declare function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[]; -export declare function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }: KeywordCxt, func: Code, context: Code, passSchema?: boolean): Code; -export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string): Name; -export declare function validateArray(cxt: KeywordCxt): Name; -export declare function validateUnion(cxt: KeywordCxt): void; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js deleted file mode 100644 index 8cb89932..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0; -const codegen_1 = require("../compile/codegen"); -const util_1 = require("../compile/util"); -const names_1 = require("../compile/names"); -const util_2 = require("../compile/util"); -function checkReportMissingProp(cxt, prop) { - const { gen, data, it } = cxt; - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true); - cxt.error(); - }); -} -exports.checkReportMissingProp = checkReportMissingProp; -function checkMissingProp({ gen, data, it: { opts } }, properties, missing) { - return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`))); -} -exports.checkMissingProp = checkMissingProp; -function reportMissingProp(cxt, missing) { - cxt.setParams({ missingProperty: missing }, true); - cxt.error(); -} -exports.reportMissingProp = reportMissingProp; -function hasPropFunc(gen) { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: (0, codegen_1._) `Object.prototype.hasOwnProperty`, - }); -} -exports.hasPropFunc = hasPropFunc; -function isOwnProperty(gen, data, property) { - return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`; -} -exports.isOwnProperty = isOwnProperty; -function propertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`; - return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond; -} -exports.propertyInData = propertyInData; -function noPropertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`; - return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond; -} -exports.noPropertyInData = noPropertyInData; -function allSchemaProperties(schemaMap) { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []; -} -exports.allSchemaProperties = allSchemaProperties; -function schemaProperties(it, schemaMap) { - return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p])); -} -exports.schemaProperties = schemaProperties; -function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) { - const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data; - const valCxt = [ - [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)], - [names_1.default.parentData, it.parentData], - [names_1.default.parentDataProperty, it.parentDataProperty], - [names_1.default.rootData, names_1.default.rootData], - ]; - if (it.opts.dynamicRef) - valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]); - const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`; - return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`; -} -exports.callValidateCode = callValidateCode; -const newRegExp = (0, codegen_1._) `new RegExp`; -function usePattern({ gen, it: { opts } }, pattern) { - const u = opts.unicodeRegExp ? "u" : ""; - const { regExp } = opts.code; - const rx = regExp(pattern, u); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._) `${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`, - }); -} -exports.usePattern = usePattern; -function validateArray(cxt) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - if (it.allErrors) { - const validArr = gen.let("valid", true); - validateItems(() => gen.assign(validArr, false)); - return validArr; - } - gen.var(valid, true); - validateItems(() => gen.break()); - return valid; - function validateItems(notValid) { - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword, - dataProp: i, - dataPropType: util_1.Type.Num, - }, valid); - gen.if((0, codegen_1.not)(valid), notValid); - }); - } -} -exports.validateArray = validateArray; -function validateUnion(cxt) { - const { gen, schema, keyword, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)); - if (alwaysValid && !it.opts.unevaluated) - return; - const valid = gen.let("valid", false); - const schValid = gen.name("_valid"); - gen.block(() => schema.forEach((_sch, i) => { - const schCxt = cxt.subschema({ - keyword, - schemaProp: i, - compositeRule: true, - }, schValid); - gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`); - const merged = cxt.mergeValidEvaluated(schCxt, schValid); - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) - gen.if((0, codegen_1.not)(valid)); - })); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); -} -exports.validateUnion = validateUnion; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map deleted file mode 100644 index 62d7ee12..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../lib/vocabularies/code.ts"],"names":[],"mappings":";;;AAGA,gDAAoG;AACpG,0CAAuD;AACvD,4CAAgC;AAChC,0CAAuC;AACvC,SAAgB,sBAAsB,CAAC,GAAe,EAAE,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C,KAAK,CAAC,GAAG,EAAE,CACb,MAAM,CAAC,OAAO,CAAC,CAAC,IAAe,EAAE,CAAS,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAC1B;YACE,OAAO;YACP,UAAU,EAAE,CAAC;YACb,aAAa,EAAE,IAAI;SACpB,EACD,QAAQ,CACT,CAAA;QACD,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,QAAQ,EAAE,CAAC,CAAA;QAC7C,MAAM,MAAM,GAAG,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;QACxD,+FAA+F;QAC/F,yFAAyF;QACzF,IAAI,CAAC,MAAM;YAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,CAAC,CAAA;IACjC,CAAC,CAAC,CACH,CAAA;IAED,GAAG,CAAC,MAAM,CACR,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EACjB,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CACtB,CAAA;AACH,CAAC;AAjCD,sCAiCC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js deleted file mode 100644 index 313598aa..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const def = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); - }, -}; -exports.default = def; -//# sourceMappingURL=id.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map deleted file mode 100644 index 4eb27eb3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"id.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/id.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,IAAI;QACF,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;IACzE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts deleted file mode 100644 index f2e34ee3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const core: Vocabulary; -export default core; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js deleted file mode 100644 index 87656d74..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const id_1 = require("./id"); -const ref_1 = require("./ref"); -const core = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - { keyword: "$comment" }, - "definitions", - id_1.default, - ref_1.default, -]; -exports.default = core; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map deleted file mode 100644 index 5bf65f94..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/index.ts"],"names":[],"mappings":";;AACA,6BAA4B;AAC5B,+BAA8B;AAE9B,MAAM,IAAI,GAAe;IACvB,SAAS;IACT,KAAK;IACL,OAAO;IACP,aAAa;IACb,EAAC,OAAO,EAAE,UAAU,EAAC;IACrB,aAAa;IACb,YAAS;IACT,aAAU;CACX,CAAA;AAED,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts deleted file mode 100644 index 6a0967d1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { Code } from "../../compile/codegen"; -import { SchemaEnv } from "../../compile"; -declare const def: CodeKeywordDefinition; -export declare function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code; -export declare function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js deleted file mode 100644 index bac1ae85..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callRef = exports.getValidate = void 0; -const ref_error_1 = require("../../compile/ref_error"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$ref", - schemaType: "string", - code(cxt) { - const { gen, schema: $ref, it } = cxt; - const { baseId, schemaEnv: env, validateName, opts, self } = it; - const { root } = env; - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) - return callRootRef(); - const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref); - if (schOrEnv === undefined) - throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref); - if (schOrEnv instanceof compile_1.SchemaEnv) - return callValidate(schOrEnv); - return inlineRefSchema(schOrEnv); - function callRootRef() { - if (env === root) - return callRef(cxt, validateName, env, env.$async); - const rootName = gen.scopeValue("root", { ref: root }); - return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async); - } - function callValidate(sch) { - const v = getValidate(cxt, sch); - callRef(cxt, v, sch, sch.$async); - } - function inlineRefSchema(sch) { - const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); - const valid = gen.name("valid"); - const schCxt = cxt.subschema({ - schema: sch, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, valid); - cxt.mergeEvaluated(schCxt); - cxt.ok(valid); - } - }, -}; -function getValidate(cxt, sch) { - const { gen } = cxt; - return sch.validate - ? gen.scopeValue("validate", { ref: sch.validate }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.validate`; -} -exports.getValidate = getValidate; -function callRef(cxt, v, sch, $async) { - const { gen, it } = cxt; - const { allErrors, schemaEnv: env, opts } = it; - const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; - if ($async) - callAsyncRef(); - else - callSyncRef(); - function callAsyncRef() { - if (!env.$async) - throw new Error("async schema referenced by sync schema"); - const valid = gen.let("valid"); - gen.try(() => { - gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); - addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result - if (!allErrors) - gen.assign(valid, true); - }, (e) => { - gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e)); - addErrorsFrom(e); - if (!allErrors) - gen.assign(valid, false); - }); - cxt.ok(valid); - } - function callSyncRef() { - cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); - } - function addErrorsFrom(source) { - const errs = (0, codegen_1._) `${source}.errors`; - gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged - gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - } - function addEvaluatedFrom(source) { - var _a; - if (!it.opts.unevaluated) - return; - const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated; - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props); - } - } - else { - const props = gen.var("props", (0, codegen_1._) `${source}.evaluated.props`); - it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name); - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items); - } - } - else { - const items = gen.var("items", (0, codegen_1._) `${source}.evaluated.items`); - it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name); - } - } - } -} -exports.callRef = callRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map deleted file mode 100644 index 88ac106a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/ref.ts"],"names":[],"mappings":";;;AAEA,uDAAqD;AACrD,kCAAwC;AACxC,mDAAmE;AACnE,+CAAmC;AACnC,2CAAmD;AACnD,6CAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,MAAM,EAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QAC7D,MAAM,EAAC,IAAI,EAAC,GAAG,GAAG,CAAA;QAClB,IAAI,CAAC,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CAAC,IAAI,MAAM,KAAK,IAAI,CAAC,MAAM;YAAE,OAAO,WAAW,EAAE,CAAA;QACnF,MAAM,QAAQ,GAAG,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC1D,IAAI,QAAQ,KAAK,SAAS;YAAE,MAAM,IAAI,mBAAe,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QACxF,IAAI,QAAQ,YAAY,mBAAS;YAAE,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAA;QAChE,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAA;QAEhC,SAAS,WAAW;YAClB,IAAI,GAAG,KAAK,IAAI;gBAAE,OAAO,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;YACpE,MAAM,QAAQ,GAAG,GAAG,CAA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AK,SAAS,EAAE;oBACpC,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;iBACnE;aACF;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,MAAM,kBAAkB,CAAC,CAAA;gBAC5D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,cAAI,CAAC,CAAA;aAC5D;SACF;QACD,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,EAAE;YACrB,IAAI,YAAY,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;gBAC9C,IAAI,YAAY,CAAC,KAAK,KAAK,SAAS,EAAE;oBACpC,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;iBACnE;aACF;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,MAAM,kBAAkB,CAAC,CAAA;gBAC5D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,cAAI,CAAC,CAAA;aAC5D;SACF;IACH,CAAC;AACH,CAAC;AAhED,0BAgEC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts deleted file mode 100644 index 656b2da5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export declare type DiscriminatorError = DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js deleted file mode 100644 index ccdb340b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const types_1 = require("../discriminator/types"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -}; -const def = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { oneOf } = parentSchema; - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option"); - } - const tagName = schema.propertyName; - if (typeof tagName != "string") - throw new Error("discriminator: requires propertyName"); - if (schema.mapping) - throw new Error("discriminator: mapping is not supported"); - if (!oneOf) - throw new Error("discriminator: requires oneOf keyword"); - const valid = gen.let("valid", false); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`); - gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName })); - cxt.ok(valid); - function validateMapping() { - const mapping = getMapping(); - gen.if(false); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(mapping[tagValue])); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - return _valid; - } - function getMapping() { - var _a; - const oneOfMapping = {}; - const topRequired = hasRequired(parentSchema); - let tagRequired = true; - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i]; - if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) { - sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref); - if (sch instanceof compile_1.SchemaEnv) - sch = sch.schema; - } - const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName]; - if (typeof propSch != "object") { - throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`); - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)); - addMappings(propSch, i); - } - if (!tagRequired) - throw new Error(`discriminator: "${tagName}" must be required`); - return oneOfMapping; - function hasRequired({ required }) { - return Array.isArray(required) && required.includes(tagName); - } - function addMappings(sch, i) { - if (sch.const) { - addMapping(sch.const, i); - } - else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i); - } - } - else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`); - } - } - function addMapping(tagValue, i) { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`); - } - oneOfMapping[tagValue] = i; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map deleted file mode 100644 index 8057a4ed..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/index.ts"],"names":[],"mappings":";;AAEA,mDAA0D;AAC1D,kDAAgE;AAChE,2CAAmD;AACnD,6CAAuD;AAIvD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAE,OAAO,EAAC,EAAC,EAAE,EAAE,CAC3C,UAAU,KAAK,kBAAU,CAAC,GAAG;QAC3B,CAAC,CAAC,QAAQ,OAAO,kBAAkB;QACnC,CAAC,CAAC,iBAAiB,OAAO,oBAAoB;IAClD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAE,GAAG,EAAE,OAAO,EAAC,EAAC,EAAE,EAAE,CAC/C,IAAA,WAAC,EAAA,WAAW,UAAU,UAAU,OAAO,eAAe,GAAG,GAAG;CAC/D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,MAAM,EAAC,KAAK,EAAC,GAAG,YAAY,CAAA;QAC5B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;SAChE;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;QACnC,IAAI,OAAO,OAAO,IAAI,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;QACvF,IAAI,MAAM,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,yCAAy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AAG,CAAC,CAAC,CAAA;gBAC9D,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;aACxB;YACD,IAAI,CAAC,WAAW;gBAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,oBAAoB,CAAC,CAAA;YACjF,OAAO,YAAY,CAAA;YAEnB,SAAS,WAAW,CAAC,EAAC,QAAQ,EAAkB;gBAC9C,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC9D,CAAC;YAED,SAAS,WAAW,CAAC,GAAoB,EAAE,CAAS;gBAClD,IAAI,GAAG,CAAC,KAAK,EAAE;oBACb,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;iBACzB;qBAAM,IAAI,GAAG,CAAC,IAAI,EAAE;oBACnB,KAAK,MAAM,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE;wBAC/B,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;qBACxB;iBACF;qBAAM;oBACL,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,+BAA+B,CAAC,CAAA;iBACtF;YACH,CAAC;YAED,SAAS,UAAU,CAAC,QAAiB,EAAE,CAAS;gBAC9C,IAAI,OAAO,QAAQ,IAAI,QAAQ,IAAI,QAAQ,IAAI,YAAY,EAAE;oBAC3D,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,iCAAiC,CAAC,CAAA;iBAC7E;gBACD,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts deleted file mode 100644 index 6cf5ea51..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { ErrorObject } from "../../types"; -export declare enum DiscrError { - Tag = "tag", - Mapping = "mapping" -} -export declare type DiscrErrorObj = ErrorObject<"discriminator", { - error: E; - tag: string; - tagValue: unknown; -}, string>; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js deleted file mode 100644 index d538f0ce..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DiscrError = void 0; -var DiscrError; -(function (DiscrError) { - DiscrError["Tag"] = "tag"; - DiscrError["Mapping"] = "mapping"; -})(DiscrError = exports.DiscrError || (exports.DiscrError = {})); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map deleted file mode 100644 index 4908a4e9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts deleted file mode 100644 index d65752c6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft2020Vocabularies: Vocabulary[]; -export default draft2020Vocabularies; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js deleted file mode 100644 index 23d244ae..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const dynamic_1 = require("./dynamic"); -const next_1 = require("./next"); -const unevaluated_1 = require("./unevaluated"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft2020Vocabularies = [ - dynamic_1.default, - core_1.default, - validation_1.default, - (0, applicator_1.default)(true), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, - next_1.default, - unevaluated_1.default, -]; -exports.default = draft2020Vocabularies; -//# sourceMappingURL=draft2020.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map deleted file mode 100644 index ae1a4d83..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft2020.js","sourceRoot":"","sources":["../../lib/vocabularies/draft2020.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,uCAAyC;AACzC,iCAAmC;AACnC,+CAAiD;AACjD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,qBAAqB,GAAiB;IAC1C,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,EAAC,IAAI,CAAC;IAC7B,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;IACjB,cAAc;IACd,qBAAqB;CACtB,CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts deleted file mode 100644 index 469fb844..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft7Vocabularies: Vocabulary[]; -export default draft7Vocabularies; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js deleted file mode 100644 index 1e993de0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft7Vocabularies = [ - core_1.default, - validation_1.default, - (0, applicator_1.default)(), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, -]; -exports.default = draft7Vocabularies; -//# sourceMappingURL=draft7.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map deleted file mode 100644 index bc7389c6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft7.js","sourceRoot":"","sources":["../../lib/vocabularies/draft7.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,kBAAkB,GAAiB;IACvC,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,GAAE;IACzB,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts deleted file mode 100644 index 56212139..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicAnchor(cxt: KeywordCxt, anchor: string): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js deleted file mode 100644 index 972dc35c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicAnchor = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -}; -function dynamicAnchor(cxt, anchor) { - const { gen, it } = cxt; - it.schemaEnv.root.dynamicAnchors[anchor] = true; - const v = (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`; - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt); - gen.if((0, codegen_1._) `!${v}`, () => gen.assign(v, validate)); -} -exports.dynamicAnchor = dynamicAnchor; -function _getValidate(cxt) { - const { schemaEnv, schema, self } = cxt.it; - const { root, baseId, localRefs, meta } = schemaEnv.root; - const { schemaId } = self.opts; - const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta }); - compile_1.compileSchema.call(self, sch); - return (0, ref_1.getValidate)(cxt, sch); -} -exports.default = def; -//# sourceMappingURL=dynamicAnchor.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map deleted file mode 100644 index e70afe30..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/dynamicAnchor.ts"],"names":[],"mappings":";;;AAEA,mDAA0D;AAC1D,+CAAmC;AACnC,2CAAsD;AACtD,qCAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,gBAAgB;IACzB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC9C,CAAA;AAED,SAAgB,aAAa,CAAC,GAAe,EAAE,MAAc;IAC3D,MAAM,EAAC,GAAG,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACrB,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IAC/C,MAAM,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,cAAc,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAA;IACtD,MAAM,QAAQ,GAAG,EAAE,CAAC,aAAa,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;IAC/E,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;AACjD,CAAC;AAND,sCAMC;AAED,SAAS,YAAY,CAAC,GAAe;IACnC,MAAM,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAC,EAAE,CAAA;IACxC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,SAAS,CAAC,IAAI,CAAA;IACtD,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAG,IAAI,mBAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAA;IAC5E,uBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC7B,OAAO,IAAA,iBAAW,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAC9B,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts deleted file mode 100644 index fa2f2b81..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicRef(cxt: KeywordCxt, ref: string): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js deleted file mode 100644 index 9f010a0d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicRef = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -}; -function dynamicRef(cxt, ref) { - const { gen, keyword, it } = cxt; - if (ref[0] !== "#") - throw new Error(`"${keyword}" only supports hash fragment reference`); - const anchor = ref.slice(1); - if (it.allErrors) { - _dynamicRef(); - } - else { - const valid = gen.let("valid", false); - _dynamicRef(valid); - cxt.ok(valid); - } - function _dynamicRef(valid) { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`); - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)); - } - else { - _callRef(it.validateName, valid)(); - } - } - function _callRef(validate, valid) { - return valid - ? () => gen.block(() => { - (0, ref_1.callRef)(cxt, validate); - gen.let(valid, true); - }) - : () => (0, ref_1.callRef)(cxt, validate); - } -} -exports.dynamicRef = dynamicRef; -exports.default = def; -//# sourceMappingURL=dynamicRef.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map deleted file mode 100644 index 921c893f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +++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E,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAA;SAChE;aAAM;YACL,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAA;SACnC;IACH,CAAC;IAED,SAAS,QAAQ,CAAC,QAAc,EAAE,KAAY;QAC5C,OAAO,KAAK;YACV,CAAC,CAAC,GAAG,EAAE,CACH,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE;gBACb,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;gBACtB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;YACtB,CAAC,CAAC;YACN,CAAC,CAAC,GAAG,EAAE,CAAC,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IAClC,CAAC;AACH,CAAC;AApCD,gCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts deleted file mode 100644 index 0c751d93..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const dynamic: Vocabulary; -export default dynamic; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js deleted file mode 100644 index f2388a75..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const dynamicRef_1 = require("./dynamicRef"); -const recursiveAnchor_1 = require("./recursiveAnchor"); -const recursiveRef_1 = require("./recursiveRef"); -const dynamic = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default]; -exports.default = dynamic; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map deleted file mode 100644 index f96ba76d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/index.ts"],"names":[],"mappings":";;AACA,mDAA2C;AAC3C,6CAAqC;AACrC,uDAA+C;AAC/C,iDAAyC;AAEzC,MAAM,OAAO,GAAe,CAAC,uBAAa,EAAE,oBAAU,EAAE,yBAAe,EAAE,sBAAY,CAAC,CAAA;AAEtF,kBAAe,OAAO,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js deleted file mode 100644 index 9fd83235..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) - (0, dynamicAnchor_1.dynamicAnchor)(cxt, ""); - else - (0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored"); - }, -}; -exports.default = def; -//# sourceMappingURL=recursiveAnchor.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map deleted file mode 100644 index 5d5e381b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveAnchor.ts"],"names":[],"mappings":";;AACA,mDAA6C;AAC7C,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,UAAU,EAAE,SAAS;IACrB,IAAI,CAAC,GAAG;QACN,IAAI,GAAG,CAAC,MAAM;YAAE,IAAA,6BAAa,EAAC,GAAG,EAAE,EAAE,CAAC,CAAA;;YACjC,IAAA,sBAAe,EAAC,GAAG,CAAC,EAAE,EAAE,oCAAoC,CAAC,CAAA;IACpE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js deleted file mode 100644 index 8cd5c696..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicRef_1 = require("./dynamicRef"); -const def = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema), -}; -exports.default = def; -//# sourceMappingURL=recursiveRef.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map deleted file mode 100644 index f8138044..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveRef.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveRef.ts"],"names":[],"mappings":";;AACA,6CAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts deleted file mode 100644 index 221aae0e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TypeError } from "../compile/validate/dataType"; -import type { ApplicatorKeywordError } from "./applicator"; -import type { ValidationKeywordError } from "./validation"; -import type { FormatError } from "./format/format"; -import type { UnevaluatedPropertiesError } from "./unevaluated/unevaluatedProperties"; -import type { UnevaluatedItemsError } from "./unevaluated/unevaluatedItems"; -import type { DependentRequiredError } from "./validation/dependentRequired"; -import type { DiscriminatorError } from "./discriminator"; -export declare type DefinedError = TypeError | ApplicatorKeywordError | ValidationKeywordError | FormatError | UnevaluatedPropertiesError | UnevaluatedItemsError | DependentRequiredError | DiscriminatorError; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js deleted file mode 100644 index d4d3fba0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map deleted file mode 100644 index 56bad736..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/vocabularies/errors.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts deleted file mode 100644 index 855d0a2a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type FormatError = ErrorObject<"format", { - format: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js deleted file mode 100644 index aa667c1e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`, -}; -const def = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt, ruleType) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const { opts, errSchemaPath, schemaEnv, self } = it; - if (!opts.validateFormats) - return; - if ($data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }); - const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`); - const fType = gen.let("fType"); - const format = gen.let("format"); - // TODO simplify - gen.if((0, codegen_1._) `typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || "string"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `"string"`).assign(format, fDef)); - cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt())); - function unknownFmt() { - if (opts.strictSchema === false) - return codegen_1.nil; - return (0, codegen_1._) `${schemaCode} && !${format}`; - } - function invalidFmt() { - const callFormat = schemaEnv.$async - ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : (0, codegen_1._) `${format}(${data})`; - const validData = (0, codegen_1._) `(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`; - return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`; - } - } - function validateFormat() { - const formatDef = self.formats[schema]; - if (!formatDef) { - unknownFormat(); - return; - } - if (formatDef === true) - return; - const [fmtType, format, fmtRef] = getFormat(formatDef); - if (fmtType === ruleType) - cxt.pass(validCondition()); - function unknownFormat() { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()); - return; - } - throw new Error(unknownMsg()); - function unknownMsg() { - return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; - } - } - function getFormat(fmtDef) { - const code = fmtDef instanceof RegExp - ? (0, codegen_1.regexpCode)(fmtDef) - : opts.code.formats - ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` - : undefined; - const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code }); - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`]; - } - return ["string", fmtDef, fmt]; - } - function validCondition() { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) - throw new Error("async format in sync schema"); - return (0, codegen_1._) `await ${fmtRef}(${data})`; - } - return typeof format == "function" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map deleted file mode 100644 index 897d9ded..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/format.ts"],"names":[],"mappings":";;AASA,mDAAoF;AAapF,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,sBAAsB,UAAU,GAAG;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WA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AC,IAAI,SAAS,CAAC,KAAK,EAAE;oBACrF,IAAI,CAAC,SAAS,CAAC,MAAM;wBAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;oBACrE,OAAO,IAAA,WAAC,EAAA,SAAS,MAAM,IAAI,IAAI,GAAG,CAAA;iBACnC;gBACD,OAAO,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,SAAS,IAAI,GAAG,CAAA;YACzF,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts deleted file mode 100644 index c8019c9d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const format: Vocabulary; -export default format; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js deleted file mode 100644 index d19023d2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const format_1 = require("./format"); -const format = [format_1.default]; -exports.default = format; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map deleted file mode 100644 index 6315bfe1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/index.ts"],"names":[],"mappings":";;AACA,qCAAoC;AAEpC,MAAM,MAAM,GAAe,CAAC,gBAAa,CAAC,CAAA;AAE1C,kBAAe,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts deleted file mode 100644 index fa27fb77..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export declare type JTDDiscriminatorError = _JTDTypeError<"discriminator", "object", string> | DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js deleted file mode 100644 index e7074d27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const types_1 = require("../discriminator/types"); -const error = { - message: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? params.discrError === types_1.DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? (0, codegen_1._) `{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, parentSchema } = cxt; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - gen.if(cond); - validateDiscriminator(); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - cxt.ok(valid); - function validateDiscriminator() { - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(schema)}`); - gen.if((0, codegen_1._) `${tag} === undefined`); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }); - gen.elseIf((0, codegen_1._) `typeof ${tag} == "string"`); - validateMapping(tag); - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }, { instancePath: schema }); - gen.endIf(); - } - function validateMapping(tag) { - gen.if(false); - for (const tagValue in parentSchema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(tagValue)); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag }, { instancePath: schema, schemaPath: "mapping", parentSchema: true }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - cxt.subschema({ - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, _valid); - return _valid; - } - }, -}; -exports.default = def; -//# sourceMappingURL=discriminator.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map deleted file mode 100644 index 53cb717b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"discriminator.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/discriminator.ts"],"names":[],"mappings":";;AAEA,mDAA+D;AAC/D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AACxE,kDAAgE;AAOhE,MAAM,KA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E,GAAG,EAAC,EACrC,EAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAC,CAClE,CAAA;YACD,GAAG,CAAC,KAAK,EAAE,CAAA;QACb,CAAC;QAED,SAAS,cAAc,CAAC,UAAkB;YACxC,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAChC,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,SAAS;gBAClB,UAAU;gBACV,gBAAgB,EAAE,MAAM;aACzB,EACD,MAAM,CACP,CAAA;YACD,OAAO,MAAM,CAAA;QACf,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts deleted file mode 100644 index 0a158711..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js deleted file mode 100644 index 9b8fb548..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "elements", - schemaType: "object", - error: (0, error_1.typeError)("array"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const [valid] = (0, nullable_1.checkNullable)(cxt); - gen.if((0, codegen_1.not)(valid), () => gen.if((0, codegen_1._) `Array.isArray(${data})`, () => gen.assign(valid, (0, code_1.validateArray)(cxt)), () => cxt.error())); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=elements.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map deleted file mode 100644 index 38fe3a12..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/elements.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AACpD,kCAAqC;AACrC,mDAA4C;AAC5C,yCAAwC;AACxC,yCAAwC;AACxC,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,OAAO,CAAC;IACzB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClC,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CACtB,GAAG,CAAC,EAAE,CACJ,IAAA,WAAC,EAAA,iBAAiB,IAAI,GAAG,EACzB,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,EAC3C,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CACF,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts deleted file mode 100644 index 8df949c0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type JTDEnumError = ErrorObject<"enum", { - allowedValues: string[]; -}, string[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js deleted file mode 100644 index 78b01ee3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, schemaValue, parentSchema, it } = cxt; - if (schema.length === 0) - throw new Error("enum must have non-empty array"); - if (schema.length !== new Set(schema).size) - throw new Error("enum items must be unique"); - let valid; - const isString = (0, codegen_1._) `typeof ${data} == "string"`; - if (schema.length >= it.opts.loopEnum) { - let cond; - [valid, cond] = (0, nullable_1.checkNullable)(cxt, isString); - gen.if(cond, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - valid = (0, codegen_1.and)(isString, (0, codegen_1.or)(...schema.map((value) => (0, codegen_1._) `${data} === ${value}`))); - if (parentSchema.nullable) - valid = (0, codegen_1.or)((0, codegen_1._) `${data} === null`, valid); - } - cxt.pass(valid); - function loopEnum() { - gen.forOf("v", schemaValue, (v) => gen.if((0, codegen_1._) `${valid} = ${data} === ${v}`, () => gen.break())); - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map deleted file mode 100644 index 663cc7c5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/enum.ts"],"names":[],"mappings":";;AAEA,mDAAsD;AACtD,yCAAwC;AACxC,yCAAwC;AAIxC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,KA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AG,CAAC,KAAK,EAAE,CAAC,CAC1D,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts deleted file mode 100644 index 0a1e68f9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { KeywordErrorDefinition, KeywordErrorCxt, ErrorObject } from "../../types"; -import { Code } from "../../compile/codegen"; -export declare type _JTDTypeError = ErrorObject; -export declare function typeError(t: string): KeywordErrorDefinition; -export declare function typeErrorMessage({ parentSchema }: KeywordErrorCxt, t: string): string; -export declare function typeErrorParams({ parentSchema }: KeywordErrorCxt, t: string): Code; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js deleted file mode 100644 index 1a3920a7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeErrorParams = exports.typeErrorMessage = exports.typeError = void 0; -const codegen_1 = require("../../compile/codegen"); -function typeError(t) { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - }; -} -exports.typeError = typeError; -function typeErrorMessage({ parentSchema }, t) { - return (parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable) ? `must be ${t} or null` : `must be ${t}`; -} -exports.typeErrorMessage = typeErrorMessage; -function typeErrorParams({ parentSchema }, t) { - return (0, codegen_1._) `{type: ${t}, nullable: ${!!(parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable)}}`; -} -exports.typeErrorParams = typeErrorParams; -//# sourceMappingURL=error.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map deleted file mode 100644 index db559678..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/error.ts"],"names":[],"mappings":";;;AACA,mDAA6C;AAQ7C,SAAgB,SAAS,CAAC,CAAS;IACjC,OAAO;QACL,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1C,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,CAAC;KACzC,CAAA;AACH,CAAC;AALD,8BAKC;AAED,SAAgB,gBAAgB,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACzE,OAAO,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,EAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAA;AACzE,CAAC;AAFD,4CAEC;AAED,SAAgB,eAAe,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACxE,OAAO,IAAA,WAAC,EAAA,UAAU,CAAC,eAAe,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,CAAA,GAAG,CAAA;AAC/D,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts deleted file mode 100644 index f9b7fb9d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Vocabulary } from "../../types"; -import { JTDTypeError } from "./type"; -import { JTDEnumError } from "./enum"; -import { JTDElementsError } from "./elements"; -import { JTDPropertiesError } from "./properties"; -import { JTDDiscriminatorError } from "./discriminator"; -import { JTDValuesError } from "./values"; -declare const jtdVocabulary: Vocabulary; -export default jtdVocabulary; -export declare type JTDErrorObject = JTDTypeError | JTDEnumError | JTDElementsError | JTDPropertiesError | JTDDiscriminatorError | JTDValuesError; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js deleted file mode 100644 index 18f40ab7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ref_1 = require("./ref"); -const type_1 = require("./type"); -const enum_1 = require("./enum"); -const elements_1 = require("./elements"); -const properties_1 = require("./properties"); -const optionalProperties_1 = require("./optionalProperties"); -const discriminator_1 = require("./discriminator"); -const values_1 = require("./values"); -const union_1 = require("./union"); -const metadata_1 = require("./metadata"); -const jtdVocabulary = [ - "definitions", - ref_1.default, - type_1.default, - enum_1.default, - elements_1.default, - properties_1.default, - optionalProperties_1.default, - discriminator_1.default, - values_1.default, - union_1.default, - metadata_1.default, - { keyword: "additionalProperties", schemaType: "boolean" }, - { keyword: "nullable", schemaType: "boolean" }, -]; -exports.default = jtdVocabulary; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map deleted file mode 100644 index 713a1875..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/index.ts"],"names":[],"mappings":";;AACA,+BAA8B;AAC9B,iCAAgD;AAChD,iCAAgD;AAChD,yCAAqD;AACrD,6CAA2D;AAC3D,6DAAqD;AACrD,mDAAoE;AACpE,qCAA+C;AAC/C,mCAA2B;AAC3B,yCAAiC;AAEjC,MAAM,aAAa,GAAe;IAChC,aAAa;IACb,aAAU;IACV,cAAW;IACX,cAAW;IACX,kBAAQ;IACR,oBAAU;IACV,4BAAkB;IAClB,uBAAa;IACb,gBAAM;IACN,eAAK;IACL,kBAAQ;IACR,EAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,SAAS,EAAC;IACxD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;CAC7C,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts deleted file mode 100644 index 86e15a8e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { KeywordCxt } from "../../ajv"; -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function checkMetadata({ it, keyword }: KeywordCxt, metadata?: boolean): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js deleted file mode 100644 index eeb3c91c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkMetadata = void 0; -const util_1 = require("../../compile/util"); -const def = { - keyword: "metadata", - schemaType: "object", - code(cxt) { - checkMetadata(cxt); - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - cxt.subschema({ keyword: "metadata", jtdMetadata: true }, valid); - cxt.ok(valid); - }, -}; -function checkMetadata({ it, keyword }, metadata) { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`); - } -} -exports.checkMetadata = checkMetadata; -exports.default = def; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map deleted file mode 100644 index c22e73ad..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/metadata.ts"],"names":[],"mappings":";;;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,aAAa,CAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;QAC9D,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,SAAgB,aAAa,CAAC,EAAC,EAAE,EAAE,OAAO,EAAa,EAAE,QAAkB;IACzE,IAAI,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,0CAA0C,CAAC,CAAA;KAC5E;AACH,CAAC;AAJD,sCAIC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts deleted file mode 100644 index 254f7602..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { KeywordCxt } from "../../compile/validate"; -import { Code, Name } from "../../compile/codegen"; -export declare function checkNullable({ gen, data, parentSchema }: KeywordCxt, cond?: Code): [Name, Code]; -export declare function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code]; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js deleted file mode 100644 index 8c92d2cd..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkNullableObject = exports.checkNullable = void 0; -const codegen_1 = require("../../compile/codegen"); -function checkNullable({ gen, data, parentSchema }, cond = codegen_1.nil) { - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.let(valid, (0, codegen_1._) `${data} === null`); - cond = (0, codegen_1.not)(valid); - } - else { - gen.let(valid, false); - } - return [valid, cond]; -} -exports.checkNullable = checkNullable; -function checkNullableObject(cxt, cond) { - const [valid, cond_] = checkNullable(cxt, cond); - return [valid, (0, codegen_1._) `${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`]; -} -exports.checkNullableObject = checkNullableObject; -//# sourceMappingURL=nullable.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map deleted file mode 100644 index 5bfaf327..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/nullable.ts"],"names":[],"mappings":";;;AACA,mDAA6D;AAE7D,SAAgB,aAAa,CAC3B,EAAC,GAAG,EAAE,IAAI,EAAE,YAAY,EAAa,EACrC,OAAa,aAAG;IAEhB,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,YAAY,CAAC,QAAQ,EAAE;QACzB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,CAAC,CAAA;QACnC,IAAI,GAAG,IAAA,aAAG,EAAC,KAAK,CAAC,CAAA;KAClB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;KACtB;IACD,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAZD,sCAYC;AAED,SAAgB,mBAAmB,CAAC,GAAe,EAAE,IAAU;IAC7D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC/C,OAAO,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,KAAK,cAAc,GAAG,CAAC,IAAI,kCAAkC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAA;AAC9F,CAAC;AAHD,kDAGC"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js deleted file mode 100644 index fe272758..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const properties_1 = require("./properties"); -const def = { - keyword: "optionalProperties", - schemaType: "object", - error: properties_1.error, - code(cxt) { - if (cxt.parentSchema.properties) - return; - (0, properties_1.validateProperties)(cxt); - }, -}; -exports.default = def; -//# sourceMappingURL=optionalProperties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map deleted file mode 100644 index 21e5f0d4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/optionalProperties.ts"],"names":[],"mappings":";;AAEA,6CAAsD;AAEtD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,oBAAoB;IAC7B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,kBAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAI,GAAG,CAAC,YAAY,CAAC,UAAU;YAAE,OAAM;QACvC,IAAA,+BAAkB,EAAC,GAAG,CAAC,CAAA;IACzB,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts deleted file mode 100644 index a1a2219f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { _JTDTypeError } from "./error"; -declare enum PropError { - Additional = "additional", - Missing = "missing" -} -declare type PropKeyword = "properties" | "optionalProperties"; -declare type PropSchema = { - [P in string]?: SchemaObject; -}; -export declare type JTDPropertiesError = _JTDTypeError | ErrorObject | ErrorObject; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validateProperties(cxt: KeywordCxt): void; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js deleted file mode 100644 index eccb066e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateProperties = exports.error = void 0; -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -var PropError; -(function (PropError) { - PropError["Additional"] = "additional"; - PropError["Missing"] = "missing"; -})(PropError || (PropError = {})); -exports.error = { - message: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? (0, codegen_1._) `{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : (0, codegen_1._) `{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "properties", - schemaType: "object", - error: exports.error, - code: validateProperties, -}; -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } -function validateProperties(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, parentSchema, it } = cxt; - const { additionalProperties, nullable } = parentSchema; - if (it.jtdDiscriminator && nullable) - throw new Error("JTD: nullable inside discriminator mapping"); - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members"); - } - const [allProps, properties] = schemaProperties("properties"); - const [allOptProps, optProperties] = schemaProperties("optionalProperties"); - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return; - } - const [valid, cond] = it.jtdDiscriminator === undefined - ? (0, nullable_1.checkNullableObject)(cxt, data) - : [gen.let("valid", false), true]; - gen.if(cond, () => gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true); - validateProps(optProperties, "optionalProperties"); - if (!additionalProperties) - validateAdditional(); - })); - cxt.pass(valid); - function commonProperties() { - const props = parentSchema.properties; - const optProps = parentSchema.optionalProperties; - if (!(props && optProps)) - return false; - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) - return true; - } - return false; - } - function schemaProperties(keyword) { - const schema = parentSchema[keyword]; - const allPs = schema ? (0, code_1.allSchemaProperties)(schema) : []; - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`); - } - const ps = allPs.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - return [allPs, ps]; - } - function validateProps(props, keyword, required) { - const _valid = gen.var("valid"); - for (const prop of props) { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => applyPropertySchema(prop, keyword, _valid), () => missingProperty(prop)); - cxt.ok(_valid); - } - function missingProperty(prop) { - if (required) { - gen.assign(_valid, false); - cxt.error(false, { propError: PropError.Missing, missingProperty: prop }, { schemaPath: prop }); - } - else { - gen.assign(_valid, true); - } - } - } - function applyPropertySchema(prop, keyword, _valid) { - cxt.subschema({ - keyword, - schemaProp: prop, - dataProp: prop, - }, _valid); - } - function validateAdditional() { - gen.forIn("key", data, (key) => { - const _allProps = it.jtdDiscriminator === undefined ? allProps : [it.jtdDiscriminator].concat(allProps); - const addProp = isAdditional(key, _allProps, "properties"); - const addOptProp = isAdditional(key, allOptProps, "optionalProperties"); - const extra = addProp === true ? addOptProp : addOptProp === true ? addProp : (0, codegen_1.and)(addProp, addOptProp); - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - else { - cxt.error(false, { propError: PropError.Additional, additionalProperty: key }, { instancePath: key, parentSchema: true }); - if (!it.opts.allErrors) - gen.break(); - } - }); - }); - } - function isAdditional(key, props, keyword) { - let additional; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema[keyword], keyword); - additional = (0, codegen_1.not)((0, code_1.isOwnProperty)(gen, propsSchema, key)); - } - else if (props.length) { - additional = (0, codegen_1.and)(...props.map((p) => (0, codegen_1._) `${key} !== ${p}`)); - } - else { - additional = true; - } - return additional; - } -} -exports.validateProperties = validateProperties; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map deleted file mode 100644 index 8a28a9e6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/properties.ts"],"names":[],"mappings":";;;AAOA,kCAA0E;AAC1E,6CAAoE;AACpE,mDAA6D;AAC7D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AAExE,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,sCAAyB,CAAA;IACzB,gCAAmB,CAAA;A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,IAAI,CAAA;SAClB;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;AACH,CAAC;AAnHD,gDAmHC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts deleted file mode 100644 index ccdf84c0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, AnySchemaObject } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function hasRef(schema: AnySchemaObject): boolean; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js deleted file mode 100644 index b7c6b02d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hasRef = void 0; -const compile_1 = require("../../compile"); -const codegen_1 = require("../../compile/codegen"); -const ref_error_1 = require("../../compile/ref_error"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const metadata_1 = require("./metadata"); -const def = { - keyword: "ref", - schemaType: "string", - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema: ref, parentSchema, it } = cxt; - const { schemaEnv: { root }, } = it; - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.var(valid, (0, codegen_1._) `${data} === null`); - gen.if((0, codegen_1.not)(valid), validateJtdRef); - } - else { - gen.var(valid, false); - validateJtdRef(); - } - cxt.ok(valid); - function validateJtdRef() { - var _a; - const refSchema = (_a = root.schema.definitions) === null || _a === void 0 ? void 0 : _a[ref]; - if (!refSchema) { - throw new ref_error_1.default(it.opts.uriResolver, "", ref, `No definition ${ref}`); - } - if (hasRef(refSchema) || !it.opts.inlineRefs) - callValidate(refSchema); - else - inlineRefSchema(refSchema); - } - function callValidate(schema) { - const sch = compile_1.compileSchema.call(it.self, new compile_1.SchemaEnv({ schema, root, schemaPath: `/definitions/${ref}` })); - const v = (0, ref_1.getValidate)(cxt, sch); - const errsCount = gen.const("_errs", names_1.default.errors); - (0, ref_1.callRef)(cxt, v, sch, sch.$async); - gen.assign(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - } - function inlineRefSchema(schema) { - const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: (0, codegen_1.stringify)(schema) } : { ref: schema }); - cxt.subschema({ - schema, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, valid); - } - }, -}; -function hasRef(schema) { - for (const key in schema) { - let sch; - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) - return true; - } - return false; -} -exports.hasRef = hasRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map deleted file mode 100644 index c11c45c1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/ref.ts"],"names":[],"mappings":";;;AAEA,2CAAsD;AACtD,mDAA4D;AAC5D,uDAAqD;AACrD,+CAAmC;AACnC,qCAAgD;AAChD,yCAAwC;AAExC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE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modules/ajv/dist/vocabularies/jtd/type.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts deleted file mode 100644 index 321f9aad..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType>; -export declare type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -export declare const intRange: { - [T in IntType]: [number, number, number]; -}; -export declare type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js deleted file mode 100644 index 17a0b510..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intRange = void 0; -const codegen_1 = require("../../compile/codegen"); -const timestamp_1 = require("../../runtime/timestamp"); -const util_1 = require("../../compile/util"); -const metadata_1 = require("./metadata"); -const error_1 = require("./error"); -exports.intRange = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -}; -const error = { - message: (cxt) => (0, error_1.typeErrorMessage)(cxt, cxt.schema), - params: (cxt) => (0, error_1.typeErrorParams)(cxt, cxt.schema), -}; -function timestampCode(cxt) { - const { gen, data, it } = cxt; - const { timestamp, allowDate } = it.opts; - if (timestamp === "date") - return (0, codegen_1._) `${data} instanceof Date `; - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const allowDateArg = allowDate ? (0, codegen_1._) `, true` : codegen_1.nil; - const validString = (0, codegen_1._) `typeof ${data} == "string" && ${vts}(${data}${allowDateArg})`; - return timestamp === "string" ? validString : (0, codegen_1.or)((0, codegen_1._) `${data} instanceof Date`, validString); -} -const def = { - keyword: "type", - schemaType: "string", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { data, schema, parentSchema, it } = cxt; - let cond; - switch (schema) { - case "boolean": - case "string": - cond = (0, codegen_1._) `typeof ${data} == ${schema}`; - break; - case "timestamp": { - cond = timestampCode(cxt); - break; - } - case "float32": - case "float64": - cond = (0, codegen_1._) `typeof ${data} == "number"`; - break; - default: { - const sch = schema; - cond = (0, codegen_1._) `typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)`; - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") - cond = (0, codegen_1._) `${cond} && ${data} >= 0`; - } - else { - const [min, max] = exports.intRange[sch]; - cond = (0, codegen_1._) `${cond} && ${data} >= ${min} && ${data} <= ${max}`; - } - } - } - cxt.pass(parentSchema.nullable ? (0, codegen_1.or)((0, codegen_1._) `${data} === null`, cond) : cond); - }, -}; -exports.default = def; -//# sourceMappingURL=type.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map deleted file mode 100644 index 9d339390..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/type.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;AACtD,uDAAoD;AACpD,6CAA0C;AAC1C,yCAAwC;AACxC,mCAAwE;AAM3D,QAAA,QAAQ,GAA+C;IAClE,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IA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YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,YAAE,EAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js deleted file mode 100644 index 01a94399..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in union" }, -}; -exports.default = def; -//# sourceMappingURL=union.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map deleted file mode 100644 index 4d6eb411..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"union.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/union.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts deleted file mode 100644 index 1ff367df..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js deleted file mode 100644 index e464c0be..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "values", - schemaType: "object", - error: (0, error_1.typeError)("object"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - gen.if(cond); - gen.assign(valid, validateMap()); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - cxt.ok(valid); - function validateMap() { - const _valid = gen.name("valid"); - if (it.allErrors) { - const validMap = gen.let("valid", true); - validateValues(() => gen.assign(validMap, false)); - return validMap; - } - gen.var(_valid, true); - validateValues(() => gen.break()); - return _valid; - function validateValues(notValid) { - gen.forIn("key", data, (key) => { - cxt.subschema({ - keyword: "values", - dataProp: key, - dataPropType: util_1.Type.Str, - }, _valid); - gen.if((0, codegen_1.not)(_valid), notValid); - }); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=values.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map deleted file mode 100644 index 8905b41c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/values.ts"],"names":[],"mappings":";;AAEA,6CAA0D;AAC1D,mDAA+C;AAC/C,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,QAAQ,CAAC;IAC1B,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,IAAA,8BAAmB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QACpD,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;QACZ,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAA;QAChC,GAAG,CAAC,MAAM,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,CAAC,CAAA;QACtB,GAAG,CAAC,KAAK,EAAE,CAAA;QACX,GAAG,CAAC,KAAK,EAAE,CAAA;QACX,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;QAEb,SAAS,WAAW;YAClB,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAChC,IAAI,EAAE,CAAC,SAAS,EAAE;gBAChB,MAAM,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;gBACvC,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAA;gBACjD,OAAO,QAAQ,CAAA;aAChB;YACD,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YACrB,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;YACjC,OAAO,MAAM,CAAA;YAEb,SAAS,cAAc,CAAC,QAAoB;gBAC1C,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;oBAC7B,GAAG,CAAC,SAAS,CACX;wBACE,OAAO,EAAE,QAAQ;wBACjB,QAAQ,EAAE,GAAG;wBACb,YAAY,EAAE,WAAI,CAAC,GAAG;qBACvB,EACD,MAAM,CACP,CAAA;oBACD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAA;gBAC/B,CAAC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts deleted file mode 100644 index df9cc07c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -export declare const metadataVocabulary: Vocabulary; -export declare const contentVocabulary: Vocabulary; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js deleted file mode 100644 index f07bf28b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.contentVocabulary = exports.metadataVocabulary = void 0; -exports.metadataVocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -]; -exports.contentVocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -]; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map deleted file mode 100644 index 0d61f083..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../lib/vocabularies/metadata.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAe;IAC5C,OAAO;IACP,aAAa;IACb,SAAS;IACT,YAAY;IACZ,UAAU;IACV,WAAW;IACX,UAAU;CACX,CAAA;AAEY,QAAA,iBAAiB,GAAe;IAC3C,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;CAChB,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts deleted file mode 100644 index 7fd5c644..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const next: Vocabulary; -export default next; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js deleted file mode 100644 index c861b324..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependentRequired_1 = require("./validation/dependentRequired"); -const dependentSchemas_1 = require("./applicator/dependentSchemas"); -const limitContains_1 = require("./validation/limitContains"); -const next = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default]; -exports.default = next; -//# sourceMappingURL=next.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map deleted file mode 100644 index 474a6d4e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"next.js","sourceRoot":"","sources":["../../lib/vocabularies/next.ts"],"names":[],"mappings":";;AACA,sEAA8D;AAC9D,oEAA4D;AAC5D,8DAAsD;AAEtD,MAAM,IAAI,GAAe,CAAC,2BAAiB,EAAE,0BAAgB,EAAE,uBAAa,CAAC,CAAA;AAE7E,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts deleted file mode 100644 index ec67e63e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const unevaluated: Vocabulary; -export default unevaluated; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js deleted file mode 100644 index 30e31674..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const unevaluatedProperties_1 = require("./unevaluatedProperties"); -const unevaluatedItems_1 = require("./unevaluatedItems"); -const unevaluated = [unevaluatedProperties_1.default, unevaluatedItems_1.default]; -exports.default = unevaluated; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map deleted file mode 100644 index a4872ea4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/index.ts"],"names":[],"mappings":";;AACA,mEAA2D;AAC3D,yDAAiD;AAEjD,MAAM,WAAW,GAAe,CAAC,+BAAqB,EAAE,0BAAgB,CAAC,CAAA;AAEzE,kBAAe,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts deleted file mode 100644 index f108b6e4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js deleted file mode 100644 index 0a0cd3aa..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - const items = it.items || 0; - if (items === true) - return; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items }); - cxt.fail((0, codegen_1._) `${len} > ${items}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items}`); - gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items)); - cxt.ok(valid); - } - it.items = true; - function validateItems(valid, from) { - gen.forRange("i", from, len, (i) => { - cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedItems.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map deleted file mode 100644 index a8268f03..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedItems.ts"],"names":[],"mappings":";;AAOA,mDAAuD;AACvD,6CAA0D;AAI1D,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAA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,CAAA;YACrD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;SACd;QACD,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QAEf,SAAS,aAAa,CAAC,KAAW,EAAE,IAAmB;YACrD,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;gBACjC,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,EAAE,YAAY,EAAE,WAAI,CAAC,GAAG,EAAC,EAAE,KAAK,CAAC,CAAA;gBACxF,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;YAC1D,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts deleted file mode 100644 index 0a041ff7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type UnevaluatedPropertiesError = ErrorObject<"unevaluatedProperties", { - unevaluatedProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js deleted file mode 100644 index ad298499..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const names_1 = require("../../compile/names"); -const error = { - message: "must NOT have unevaluated properties", - params: ({ params }) => (0, codegen_1._) `{unevaluatedProperty: ${params.unevaluatedProperty}}`, -}; -const def = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const { gen, schema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, props } = it; - if (props instanceof codegen_1.Name) { - gen.if((0, codegen_1._) `${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)))); - } - else if (props !== true) { - gen.forIn("key", data, (key) => props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key))); - } - it.props = true; - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function unevaluatedPropCode(key) { - if (schema === false) { - cxt.setParams({ unevaluatedProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (!(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - function unevaluatedDynamic(evaluatedProps, key) { - return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`; - } - function unevaluatedStatic(evaluatedProps, key) { - const ps = []; - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) - ps.push((0, codegen_1._) `${key} !== ${p}`); - } - return (0, codegen_1.and)(...ps); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedProperties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map deleted file mode 100644 index f415251e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedProperties.ts"],"names":[],"mappings":";;AAMA,mDAA6D;AAC7D,6CAA0D;AAC1D,+CAAmC;AAQnC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,sCAAsC;IAC/C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,yBAAyB,MAAM,CAAC,mBAAmB,GAAG;CAC9E,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,uBAAuB;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAG;QACN,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9C,wBAAwB;QACxB,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC3D,MAAM,EAAC,SAAS,EAAE,KAAK,EAAC,GAAG,EAAE,CAAA;QAC7B,IAAI,KAAK,YAAY,cAAI,EAAE;YACzB,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,WAAW,EAAE,GAAG,EAAE,CAChC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,GAAS,EAAE,EAAE,CACnC,GAAG,CAAC,EAAE,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,C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AAC,KAAK,EAAE,CAAC,CAAA;aACtD;QACH,CAAC;QAED,SAAS,kBAAkB,CAAC,cAAoB,EAAE,GAAS;YACzD,OAAO,IAAA,WAAC,EAAA,IAAI,cAAc,QAAQ,cAAc,IAAI,GAAG,GAAG,CAAA;QAC5D,CAAC;QAED,SAAS,iBAAiB,CAAC,cAAsC,EAAE,GAAS;YAC1E,MAAM,EAAE,GAAW,EAAE,CAAA;YACrB,KAAK,MAAM,CAAC,IAAI,cAAc,EAAE;gBAC9B,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI;oBAAE,EAAE,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;aAC5D;YACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;QACnB,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts deleted file mode 100644 index 85e11ce5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type ConstError = ErrorObject<"const", { - allowedValue: any; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js deleted file mode 100644 index 9564496a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to constant", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`, -}; -const def = { - keyword: "const", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schemaCode, schema } = cxt; - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); - } - else { - cxt.fail((0, codegen_1._) `${schema} !== ${data}`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=const.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map deleted file mode 100644 index 0cf6cd14..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/const.ts"],"names":[],"mappings":";;AAEA,mDAAuC;AACvC,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,kBAAkB,UAAU,GAAG;CAC3D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAC,GAAG,GAAG,CAAA;QAClD,IAAI,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,IAAI,QAAQ,CAAC,EAAE;YAClD,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,IAAA,cAAO,EAAC,GAAG,EAAE,eAAK,CAAC,IAAI,IAAI,KAAK,UAAU,GAAG,CAAC,CAAA;SAClE;aAAM;YACL,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,QAAQ,IAAI,EAAE,CAAC,CAAA;SACnC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts deleted file mode 100644 index 2e25408e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -import { DependenciesErrorParams, PropertyDependencies } from "../applicator/dependencies"; -export declare type DependentRequiredError = ErrorObject<"dependentRequired", DependenciesErrorParams, PropertyDependencies>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js deleted file mode 100644 index 09e59639..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("../applicator/dependencies"); -const def = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error: dependencies_1.error, - code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentRequired.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map deleted file mode 100644 index c7e88f88..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentRequired.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/dependentRequired.ts"],"names":[],"mappings":";;AACA,6DAKmC;AAQnC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,oBAAK;IACL,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,mCAAoB,EAAC,GAAG,CAAC;CACzC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts deleted file mode 100644 index dce653b5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type EnumError = ErrorObject<"enum", { - allowedValues: any[]; -}, any[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js deleted file mode 100644 index eab6487e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - if (!$data && schema.length === 0) - throw new Error("enum must have non-empty array"); - const useLoop = schema.length >= it.opts.loopEnum; - let eql; - const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default))); - let valid; - if (useLoop || $data) { - valid = gen.let("valid"); - cxt.block$data(valid, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const vSchema = gen.const("vSchema", schemaCode); - valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i))); - } - cxt.pass(valid); - function loopEnum() { - gen.assign(valid, false); - gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())); - } - function equalCode(vSchema, i) { - const sch = schema[i]; - return typeof sch === "object" && sch !== null - ? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])` - : (0, codegen_1._) `${data} === ${sch}`; - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map deleted file mode 100644 index 7b4e1eda..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/enum.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,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EAAE,IAAI,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAC7E,CAAA;QACH,CAAC;QAED,SAAS,SAAS,CAAC,OAAa,EAAE,CAAS;YACzC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACrB,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;gBAC5C,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,EAAE,IAAI,IAAI,KAAK,OAAO,IAAI,CAAC,IAAI;gBAC3C,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,QAAQ,GAAG,EAAE,CAAA;QAC3B,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts deleted file mode 100644 index 08cd2239..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ErrorObject, Vocabulary } from "../../types"; -import { LimitNumberError } from "./limitNumber"; -import { MultipleOfError } from "./multipleOf"; -import { PatternError } from "./pattern"; -import { RequiredError } from "./required"; -import { UniqueItemsError } from "./uniqueItems"; -import { ConstError } from "./const"; -import { EnumError } from "./enum"; -declare const validation: Vocabulary; -export default validation; -declare type LimitError = ErrorObject<"maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", { - limit: number; -}, number | { - $data: string; -}>; -export declare type ValidationKeywordError = LimitError | LimitNumberError | MultipleOfError | PatternError | RequiredError | UniqueItemsError | ConstError | EnumError; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js deleted file mode 100644 index 7b56b4e4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const limitNumber_1 = require("./limitNumber"); -const multipleOf_1 = require("./multipleOf"); -const limitLength_1 = require("./limitLength"); -const pattern_1 = require("./pattern"); -const limitProperties_1 = require("./limitProperties"); -const required_1 = require("./required"); -const limitItems_1 = require("./limitItems"); -const uniqueItems_1 = require("./uniqueItems"); -const const_1 = require("./const"); -const enum_1 = require("./enum"); -const validation = [ - // number - limitNumber_1.default, - multipleOf_1.default, - // string - limitLength_1.default, - pattern_1.default, - // object - limitProperties_1.default, - required_1.default, - // array - limitItems_1.default, - uniqueItems_1.default, - // any - { keyword: "type", schemaType: ["string", "array"] }, - { keyword: "nullable", schemaType: "boolean" }, - const_1.default, - enum_1.default, -]; -exports.default = validation; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map deleted file mode 100644 index 69436fb3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/index.ts"],"names":[],"mappings":";;AACA,+CAA2D;AAC3D,6CAAwD;AACxD,+CAAuC;AACvC,uCAA+C;AAC/C,uDAA+C;AAC/C,yCAAkD;AAClD,6CAAqC;AACrC,+CAA2D;AAC3D,mCAAgD;AAChD,iCAA6C;AAE7C,MAAM,UAAU,GAAe;IAC7B,SAAS;IACT,qBAAW;IACX,oBAAU;IACV,SAAS;IACT,qBAAW;IACX,iBAAO;IACP,SAAS;IACT,yBAAe;IACf,kBAAQ;IACR,QAAQ;IACR,oBAAU;IACV,qBAAW;IACX,MAAM;IACN,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC;IAClD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;IAC5C,eAAY;IACZ,cAAW;CACZ,CAAA;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js deleted file mode 100644 index c884dae4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({ keyword, parentSchema, it }) { - if (parentSchema.contains === undefined) { - (0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=limitContains.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map deleted file mode 100644 index 788010aa..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitContains.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitContains.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,QAAQ,KAAK,SAAS,EAAE;YACvC,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,iCAAiC,CAAC,CAAA;SAClE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js deleted file mode 100644 index e1386f88..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxItems" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitItems.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map deleted file mode 100644 index 690c7345..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitItems.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACtD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,QAAQ,CAAA;IAC5D,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;IACjC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAC/D,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACtD,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js deleted file mode 100644 index 6ae5f92e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const ucs2length_1 = require("../../runtime/ucs2length"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxLength" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode, it } = cxt; - const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT; - const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`; - cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitLength.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map deleted file mode 100644 index f09c35e5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitLength.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitLength.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,yDAAiD;AAEjD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACvD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC3C,MAAM,EAAE,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAChE,MAAM,GAAG,GACP,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAA,cAAO,EAAC,GAAG,CAAC,GAAG,EAAE,oBAAU,CAAC,IAAI,IAAI,GAAG,CAAA;QAC7F,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts deleted file mode 100644 index 2d389085..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -declare type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"; -declare type Comparison = "<=" | ">=" | "<" | ">"; -export declare type LimitNumberError = ErrorObject; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js deleted file mode 100644 index a97c0eb9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const ops = codegen_1.operators; -const KWDs = { - maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }, -}; -const error = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`, -}; -const def = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitNumber.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map deleted file mode 100644 index 18a36533..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitNumber.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitNumber.ts"],"names":[],"mappings":";;AAEA,mDAA6D;AAE7D,MAAM,GAAG,GAAG,mBAAS,CAAA;AAMrB,MAAM,IAAI,GAA4D;IACpE,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;IACzD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;CAC1D,CAAA;AAQD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,WAAW,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,IAAI,UAAU,EAAE;IAC5F,MAAM,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAChC,IAAA,WAAC,EAAA,gBAAgB,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,YAAY,UAAU,GAAG;CACvE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,IAAI,IAAI,CAAC,OAAc,CAAC,CAAC,IAAI,IAAI,UAAU,aAAa,IAAI,GAAG,CAAC,CAAA;IACxF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js deleted file mode 100644 index e6fc40cc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxProperties" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitProperties.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map deleted file mode 100644 index a695943a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitProperties.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QAC3D,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QACpE,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,eAAe,IAAI,YAAY,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts deleted file mode 100644 index afa29d35..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type MultipleOfError = ErrorObject<"multipleOf", { - multipleOf: number; -}, number | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js deleted file mode 100644 index 43cf67b7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`, - params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`, -}; -const def = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { gen, data, schemaCode, it } = cxt; - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision; - const res = gen.let("res"); - const invalid = prec - ? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : (0, codegen_1._) `${res} !== parseInt(${res})`; - cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`); - }, -}; -exports.default = def; -//# sourceMappingURL=multipleOf.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map deleted file mode 100644 index 9ef825b7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/multipleOf.ts"],"names":[],"mappings":";;AAEA,mDAA4C;AAQ5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,EAAE;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,gBAAgB,UAAU,GAAG;CACzD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACvC,sEAAsE;QACtE,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAA;QACxC,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAC1B,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,IAAA,WAAC,EAAA,uBAAuB,GAAG,OAAO,GAAG,UAAU,IAAI,EAAE;YACvD,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,iBAAiB,GAAG,GAAG,CAAA;QAClC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,UAAU,cAAc,GAAG,MAAM,IAAI,IAAI,UAAU,KAAK,OAAO,IAAI,CAAC,CAAA;IACzF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts deleted file mode 100644 index bf232ffc..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type PatternError = ErrorObject<"pattern", { - pattern: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js deleted file mode 100644 index f8ccdf29..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`, -}; -const def = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt) { - const { data, $data, schema, schemaCode, it } = cxt; - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : ""; - const regExp = $data ? (0, codegen_1._) `(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema); - cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=pattern.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map deleted file mode 100644 index 82fa5d74..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/pattern.ts"],"names":[],"mappings":";;AAEA,kCAAkC;AAClC,mDAA4C;AAI5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,GAAG;IAClE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,aAAa,UAAU,GAAG;CACtD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,8CAA8C;QAC9C,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,eAAe,UAAU,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,iBAAU,EAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QACrF,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,MAAM,SAAS,IAAI,GAAG,CAAC,CAAA;IAC5C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts deleted file mode 100644 index fe94d04a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type RequiredError = ErrorObject<"required", { - missingProperty: string; -}, string[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js deleted file mode 100644 index 1d8e2926..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`, - params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`, -}; -const def = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, schema, schemaCode, data, $data, it } = cxt; - const { opts } = it; - if (!$data && schema.length === 0) - return; - const useLoop = schema.length >= opts.loopRequired; - if (it.allErrors) - allErrorsMode(); - else - exitOnErrorMode(); - if (opts.strictRequired) { - const props = cxt.parentSchema.properties; - const { definedProperties } = cxt.it; - for (const requiredKey of schema) { - if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired); - } - } - } - function allErrorsMode() { - if (useLoop || $data) { - cxt.block$data(codegen_1.nil, loopAllRequired); - } - else { - for (const prop of schema) { - (0, code_1.checkReportMissingProp)(cxt, prop); - } - } - } - function exitOnErrorMode() { - const missing = gen.let("missing"); - if (useLoop || $data) { - const valid = gen.let("valid", true); - cxt.block$data(valid, () => loopUntilMissing(missing, valid)); - cxt.ok(valid); - } - else { - gen.if((0, code_1.checkMissingProp)(cxt, schema, missing)); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - function loopAllRequired() { - gen.forOf("prop", schemaCode, (prop) => { - cxt.setParams({ missingProperty: prop }); - gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error()); - }); - } - function loopUntilMissing(missing, valid) { - cxt.setParams({ missingProperty: missing }); - gen.forOf(missing, schemaCode, () => { - gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties)); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(); - gen.break(); - }); - }, codegen_1.nil); - } - }, -}; -exports.default = def; -//# sourceMappingURL=required.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map deleted file mode 100644 index 0fcbee58..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"required.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/required.ts"],"names":[],"mappings":";;AAEA,kCAMgB;AAChB,mDAAkE;AAClE,6CAAkD;AAQlD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,eAAe,E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E,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;YAClF,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,SAAS,gBAAgB,CAAC,OAAa,EAAE,KAAW;YAClD,GAAG,CAAC,SAAS,CAAC,EAAC,eAAe,EAAE,OAAO,EAAC,CAAC,CAAA;YACzC,GAAG,CAAC,KAAK,CACP,OAAO,EACP,UAAkB,EAClB,GAAG,EAAE;gBACH,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;gBACzE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;oBACtB,GAAG,CAAC,KAAK,EAAE,CAAA;oBACX,GAAG,CAAC,KAAK,EAAE,CAAA;gBACb,CAAC,CAAC,CAAA;YACJ,CAAC,EACD,aAAG,CACJ,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts deleted file mode 100644 index c4f4b4ca..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type UniqueItemsError = ErrorObject<"uniqueItems", { - i: number; - j: number; -}, boolean | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js deleted file mode 100644 index cdbecea1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dataType_1 = require("../../compile/validate/dataType"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`, -}; -const def = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt; - if (!$data && !schema) - return; - const valid = gen.let("valid"); - const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : []; - cxt.block$data(valid, validateUniqueItems, (0, codegen_1._) `${schemaCode} === false`); - cxt.ok(valid); - function validateUniqueItems() { - const i = gen.let("i", (0, codegen_1._) `${data}.length`); - const j = gen.let("j"); - cxt.setParams({ i, j }); - gen.assign(valid, true); - gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)); - } - function canOptimize() { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array"); - } - function loopN(i, j) { - const item = gen.name("item"); - const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong); - const indices = gen.const("indices", (0, codegen_1._) `{}`); - gen.for((0, codegen_1._) `;${i}--;`, () => { - gen.let(item, (0, codegen_1._) `${data}[${i}]`); - gen.if(wrongType, (0, codegen_1._) `continue`); - if (itemTypes.length > 1) - gen.if((0, codegen_1._) `typeof ${item} == "string"`, (0, codegen_1._) `${item} += "_"`); - gen - .if((0, codegen_1._) `typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, (0, codegen_1._) `${indices}[${item}]`); - cxt.error(); - gen.assign(valid, false).break(); - }) - .code((0, codegen_1._) `${indices}[${item}] = ${i}`); - }); - } - function loopN2(i, j) { - const eql = (0, util_1.useFunc)(gen, equal_1.default); - const outer = gen.name("outer"); - gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error(); - gen.assign(valid, false).break(outer); - }))); - } - }, -}; -exports.default = def; -//# sourceMappingURL=uniqueItems.js.map \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map b/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map deleted file mode 100644 index 46eb7a2a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/uniqueItems.ts"],"names":[],"mappings":";;AAEA,8DAAwF;AACxF,mDAAkD;AAClD,6CAA0C;AAC1C,+CAAuC;AAQvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAC5B,IAAA,aAAG,EAAA,2CAA2C,CAAC,QAAQ,CAAC,iBAAiB;IAC3E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,OAAO,CAAC,QAAQ,CAAC,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,E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AAE,CAAO;YAC9B,MAAM,GAAG,GAAG,IAAA,cAAO,EAAC,GAAG,EAAE,eAAK,CAAC,CAAA;YAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC/B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAA,WAAC,EAAA,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CACrC,GAAG,CAAC,GAAG,CAAC,IAAA,WAAC,EAAA,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CACpC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;gBACnD,GAAG,CAAC,KAAK,EAAE,CAAA;gBACX,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACvC,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts b/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts deleted file mode 100644 index 0311c4d0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft7Vocabularies from "./vocabularies/draft7" -import dynamicVocabulary from "./vocabularies/dynamic" -import nextVocabulary from "./vocabularies/next" -import unevaluatedVocabulary from "./vocabularies/unevaluated" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2019 from "./refs/json-schema-2019-09" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema" - -class Ajv2019 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(dynamicVocabulary) - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - this.addVocabulary(nextVocabulary) - this.addVocabulary(unevaluatedVocabulary) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2019.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2019 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2019 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts b/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts deleted file mode 100644 index beff5c7b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft2020Vocabularies from "./vocabularies/draft2020" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2020 from "./refs/json-schema-2020-12" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema" - -class Ajv2020 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - draft2020Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2020.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2020 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2020 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts b/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts deleted file mode 100644 index bbfa5a4e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore from "./core" -import draft7Vocabularies from "./vocabularies/draft7" -import discriminator from "./vocabularies/discriminator" -import * as draft7MetaSchema from "./refs/json-schema-draft-07.json" - -const META_SUPPORT_DATA = ["/properties"] - -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema" - -class Ajv extends AjvCore { - _addVocabularies(): void { - super._addVocabularies() - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - SchemaValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts deleted file mode 100644 index b1770197..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -export abstract class _CodeOrName { - abstract readonly str: string - abstract readonly names: UsedNames - abstract toString(): string - abstract emptyStr(): boolean -} - -export const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i - -export class Name extends _CodeOrName { - readonly str: string - constructor(s: string) { - super() - if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier") - this.str = s - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - return false - } - - get names(): UsedNames { - return {[this.str]: 1} - } -} - -export class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[] - private _str?: string - private _names?: UsedNames - - constructor(code: string | readonly CodeItem[]) { - super() - this._items = typeof code === "string" ? [code] : code - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - if (this._items.length > 1) return false - const item = this._items[0] - return item === "" || item === '""' - } - - get str(): string { - return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, "")) - } - - get names(): UsedNames { - return (this._names ??= this._items.reduce((names: UsedNames, c) => { - if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1 - return names - }, {})) - } -} - -export type CodeItem = Name | string | number | boolean | null - -export type UsedNames = Record - -export type Code = _Code | Name - -export type SafeExpr = Code | number | boolean | null - -export const nil = new _Code("") - -type CodeArg = SafeExpr | string | undefined - -export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code { - const code: CodeItem[] = [strs[0]] - let i = 0 - while (i < args.length) { - addCodeArg(code, args[i]) - code.push(strs[++i]) - } - return new _Code(code) -} - -const plus = new _Code("+") - -export function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code { - const expr: CodeItem[] = [safeStringify(strs[0])] - let i = 0 - while (i < args.length) { - expr.push(plus) - addCodeArg(expr, args[i]) - expr.push(plus, safeStringify(strs[++i])) - } - optimize(expr) - return new _Code(expr) -} - -export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void { - if (arg instanceof _Code) code.push(...arg._items) - else if (arg instanceof Name) code.push(arg) - else code.push(interpolate(arg)) -} - -function optimize(expr: CodeItem[]): void { - let i = 1 - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]) - if (res !== undefined) { - expr.splice(i - 1, 3, res) - continue - } - expr[i++] = "+" - } - i++ - } -} - -function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined { - if (b === '""') return a - if (a === '""') return b - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') return - if (typeof b != "string") return `${a.slice(0, -1)}${b}"` - if (b[0] === '"') return a.slice(0, -1) + b.slice(1) - return - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) return `"${a}${b.slice(1)}` - return -} - -export function strConcat(c1: Code, c2: Code): Code { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}` -} - -// TODO do not allow arrays here -function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x) -} - -export function stringify(x: unknown): Code { - return new _Code(safeStringify(x)) -} - -export function safeStringify(x: unknown): string { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029") -} - -export function getProperty(key: Code | string | number): Code { - return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]` -} - -//Does best effort to format the name properly -export function getEsmExportName(key: Code | string | number): Code { - if (typeof key == "string" && IDENTIFIER.test(key)) { - return new _Code(`${key}`) - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`) -} - -export function regexpCode(rx: RegExp): Code { - return new _Code(rx.toString()) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts deleted file mode 100644 index 9d29055d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +++ /dev/null @@ -1,832 +0,0 @@ -import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from "./scope" -import {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from "./code" -import {Scope, varKinds} from "./scope" - -export {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from "./code" -export {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from "./scope" - -// type for expressions that can be safely inserted in code without quotes -export type SafeExpr = Code | number | boolean | null - -// type that is either Code of function that adds code to CodeGen instance using its methods -export type Block = Code | (() => void) - -export const operators = { - GT: new _Code(">"), - GTE: new _Code(">="), - LT: new _Code("<"), - LTE: new _Code("<="), - EQ: new _Code("==="), - NEQ: new _Code("!=="), - NOT: new _Code("!"), - OR: new _Code("||"), - AND: new _Code("&&"), - ADD: new _Code("+"), -} - -abstract class Node { - abstract readonly names: UsedNames - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - return this - } - - optimizeNames(_names: UsedNames, _constants: Constants): this | undefined { - return this - } - - // get count(): number { - // return 1 - // } -} - -class Def extends Node { - constructor(private readonly varKind: Name, private readonly name: Name, private rhs?: SafeExpr) { - super() - } - - render({es5, _n}: CGOptions): string { - const varKind = es5 ? varKinds.var : this.varKind - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}` - return `${varKind} ${this.name}${rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!names[this.name.str]) return - if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - return this.rhs instanceof _CodeOrName ? this.rhs.names : {} - } -} - -class Assign extends Node { - constructor(readonly lhs: Code, public rhs: SafeExpr, private readonly sideEffects?: boolean) { - super() - } - - render({_n}: CGOptions): string { - return `${this.lhs} = ${this.rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return - this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - const names = this.lhs instanceof Name ? {} : {...this.lhs.names} - return addExprNames(names, this.rhs) - } -} - -class AssignOp extends Assign { - constructor(lhs: Code, private readonly op: Code, rhs: SafeExpr, sideEffects?: boolean) { - super(lhs, rhs, sideEffects) - } - - render({_n}: CGOptions): string { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n - } -} - -class Label extends Node { - readonly names: UsedNames = {} - constructor(readonly label: Name) { - super() - } - - render({_n}: CGOptions): string { - return `${this.label}:` + _n - } -} - -class Break extends Node { - readonly names: UsedNames = {} - constructor(readonly label?: Code) { - super() - } - - render({_n}: CGOptions): string { - const label = this.label ? ` ${this.label}` : "" - return `break${label};` + _n - } -} - -class Throw extends Node { - constructor(readonly error: Code) { - super() - } - - render({_n}: CGOptions): string { - return `throw ${this.error};` + _n - } - - get names(): UsedNames { - return this.error.names - } -} - -class AnyCode extends Node { - constructor(private code: SafeExpr) { - super() - } - - render({_n}: CGOptions): string { - return `${this.code};` + _n - } - - optimizeNodes(): this | undefined { - return `${this.code}` ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this { - this.code = optimizeExpr(this.code, names, constants) - return this - } - - get names(): UsedNames { - return this.code instanceof _CodeOrName ? this.code.names : {} - } -} - -abstract class ParentNode extends Node { - constructor(readonly nodes: ChildNode[] = []) { - super() - } - - render(opts: CGOptions): string { - return this.nodes.reduce((code, n) => code + n.render(opts), "") - } - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - const n = nodes[i].optimizeNodes() - if (Array.isArray(n)) nodes.splice(i, 1, ...n) - else if (n) nodes[i] = n - else nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i] - if (n.optimizeNames(names, constants)) continue - subtractNames(names, n.names) - nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - get names(): UsedNames { - return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {}) - } - - // get count(): number { - // return this.nodes.reduce((c, n) => c + n.count, 1) - // } -} - -abstract class BlockNode extends ParentNode { - render(opts: CGOptions): string { - return "{" + opts._n + super.render(opts) + "}" + opts._n - } -} - -class Root extends ParentNode {} - -class Else extends BlockNode { - static readonly kind = "else" -} - -class If extends BlockNode { - static readonly kind = "if" - else?: If | Else - constructor(private condition: Code | boolean, nodes?: ChildNode[]) { - super(nodes) - } - - render(opts: CGOptions): string { - let code = `if(${this.condition})` + super.render(opts) - if (this.else) code += "else " + this.else.render(opts) - return code - } - - optimizeNodes(): If | ChildNode[] | undefined { - super.optimizeNodes() - const cond = this.condition - if (cond === true) return this.nodes // else is ignored here - let e = this.else - if (e) { - const ns = e.optimizeNodes() - e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined) - } - if (e) { - if (cond === false) return e instanceof If ? e : e.nodes - if (this.nodes.length) return this - return new If(not(cond), e instanceof If ? [e] : e.nodes) - } - if (cond === false || !this.nodes.length) return undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - this.else = this.else?.optimizeNames(names, constants) - if (!(super.optimizeNames(names, constants) || this.else)) return - this.condition = optimizeExpr(this.condition, names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - addExprNames(names, this.condition) - if (this.else) addNames(names, this.else.names) - return names - } - - // get count(): number { - // return super.count + (this.else?.count || 0) - // } -} - -abstract class For extends BlockNode { - static readonly kind = "for" -} - -class ForLoop extends For { - constructor(private iteration: Code) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.iteration})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iteration = optimizeExpr(this.iteration, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iteration.names) - } -} - -class ForRange extends For { - constructor( - private readonly varKind: Name, - private readonly name: Name, - private readonly from: SafeExpr, - private readonly to: SafeExpr - ) { - super() - } - - render(opts: CGOptions): string { - const varKind = opts.es5 ? varKinds.var : this.varKind - const {name, from, to} = this - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts) - } - - get names(): UsedNames { - const names = addExprNames(super.names, this.from) - return addExprNames(names, this.to) - } -} - -class ForIter extends For { - constructor( - private readonly loop: "of" | "in", - private readonly varKind: Name, - private readonly name: Name, - private iterable: Code - ) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iterable = optimizeExpr(this.iterable, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iterable.names) - } -} - -class Func extends BlockNode { - static readonly kind = "func" - constructor(public name: Name, public args: Code, public async?: boolean) { - super() - } - - render(opts: CGOptions): string { - const _async = this.async ? "async " : "" - return `${_async}function ${this.name}(${this.args})` + super.render(opts) - } -} - -class Return extends ParentNode { - static readonly kind = "return" - - render(opts: CGOptions): string { - return "return " + super.render(opts) - } -} - -class Try extends BlockNode { - catch?: Catch - finally?: Finally - - render(opts: CGOptions): string { - let code = "try" + super.render(opts) - if (this.catch) code += this.catch.render(opts) - if (this.finally) code += this.finally.render(opts) - return code - } - - optimizeNodes(): this { - super.optimizeNodes() - this.catch?.optimizeNodes() as Catch | undefined - this.finally?.optimizeNodes() as Finally | undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this { - super.optimizeNames(names, constants) - this.catch?.optimizeNames(names, constants) - this.finally?.optimizeNames(names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - if (this.catch) addNames(names, this.catch.names) - if (this.finally) addNames(names, this.finally.names) - return names - } - - // get count(): number { - // return super.count + (this.catch?.count || 0) + (this.finally?.count || 0) - // } -} - -class Catch extends BlockNode { - static readonly kind = "catch" - constructor(readonly error: Name) { - super() - } - - render(opts: CGOptions): string { - return `catch(${this.error})` + super.render(opts) - } -} - -class Finally extends BlockNode { - static readonly kind = "finally" - render(opts: CGOptions): string { - return "finally" + super.render(opts) - } -} - -type StartBlockNode = If | For | Func | Return | Try - -type LeafNode = Def | Assign | Label | Break | Throw | AnyCode - -type ChildNode = StartBlockNode | LeafNode - -type EndBlockNodeType = - | typeof If - | typeof Else - | typeof For - | typeof Func - | typeof Return - | typeof Catch - | typeof Finally - -type Constants = Record - -export interface CodeGenOptions { - es5?: boolean - lines?: boolean - ownProperties?: boolean -} - -interface CGOptions extends CodeGenOptions { - _n: "\n" | "" -} - -export class CodeGen { - readonly _scope: Scope - readonly _extScope: ValueScope - readonly _values: ScopeValueSets = {} - private readonly _nodes: ParentNode[] - private readonly _blockStarts: number[] = [] - private readonly _constants: Constants = {} - private readonly opts: CGOptions - - constructor(extScope: ValueScope, opts: CodeGenOptions = {}) { - this.opts = {...opts, _n: opts.lines ? "\n" : ""} - this._extScope = extScope - this._scope = new Scope({parent: extScope}) - this._nodes = [new Root()] - } - - toString(): string { - return this._root.render(this.opts) - } - - // returns unique name in the internal scope - name(prefix: string): Name { - return this._scope.name(prefix) - } - - // reserves unique name in the external scope - scopeName(prefix: string): ValueScopeName { - return this._extScope.name(prefix) - } - - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name { - const name = this._extScope.value(prefixOrName, value) - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()) - vs.add(name) - return name - } - - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - return this._extScope.getValue(prefix, keyOrRef) - } - - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName: Name): Code { - return this._extScope.scopeRefs(scopeName, this._values) - } - - scopeCode(): Code { - return this._extScope.scopeCode(this._values) - } - - private _def( - varKind: Name, - nameOrPrefix: Name | string, - rhs?: SafeExpr, - constant?: boolean - ): Name { - const name = this._scope.toName(nameOrPrefix) - if (rhs !== undefined && constant) this._constants[name.str] = rhs - this._leafNode(new Def(varKind, name, rhs)) - return name - } - - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.const, nameOrPrefix, rhs, _constant) - } - - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.let, nameOrPrefix, rhs, _constant) - } - - // `var` declaration with optional assignment - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.var, nameOrPrefix, rhs, _constant) - } - - // assignment code - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen { - return this._leafNode(new Assign(lhs, rhs, sideEffects)) - } - - // `+=` code - add(lhs: Code, rhs: SafeExpr): CodeGen { - return this._leafNode(new AssignOp(lhs, operators.ADD, rhs)) - } - - // appends passed SafeExpr to code or executes Block - code(c: Block | SafeExpr): CodeGen { - if (typeof c == "function") c() - else if (c !== nil) this._leafNode(new AnyCode(c)) - return this - } - - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues: [Name | string, SafeExpr | string][]): _Code { - const code: CodeItem[] = ["{"] - for (const [key, value] of keyValues) { - if (code.length > 1) code.push(",") - code.push(key) - if (key !== value || this.opts.es5) { - code.push(":") - addCodeArg(code, value) - } - } - code.push("}") - return new _Code(code) - } - - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen { - this._blockNode(new If(condition)) - - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf() - } else if (thenBody) { - this.code(thenBody).endIf() - } else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body') - } - return this - } - - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition: Code | boolean): CodeGen { - return this._elseNode(new If(condition)) - } - - // `else` clause - only valid after `if` or `else if` clauses - else(): CodeGen { - return this._elseNode(new Else()) - } - - // end `if` statement (needed if gen.if was used only with condition) - endIf(): CodeGen { - return this._endBlockNode(If, Else) - } - - private _for(node: For, forBody?: Block): CodeGen { - this._blockNode(node) - if (forBody) this.code(forBody).endFor() - return this - } - - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration: Code, forBody?: Block): CodeGen { - return this._for(new ForLoop(iteration), forBody) - } - - // `for` statement for a range of values - forRange( - nameOrPrefix: Name | string, - from: SafeExpr, - to: SafeExpr, - forBody: (index: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)) - } - - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf( - nameOrPrefix: Name | string, - iterable: Code, - forBody: (item: Name) => void, - varKind: Code = varKinds.const - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - if (this.opts.es5) { - const arr = iterable instanceof Name ? iterable : this.var("_arr", iterable) - return this.forRange("_i", 0, _`${arr}.length`, (i) => { - this.var(name, _`${arr}[${i}]`) - forBody(name) - }) - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)) - } - - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn( - nameOrPrefix: Name | string, - obj: Code, - forBody: (item: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const - ): CodeGen { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody) - } - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)) - } - - // end `for` loop - endFor(): CodeGen { - return this._endBlockNode(For) - } - - // `label` statement - label(label: Name): CodeGen { - return this._leafNode(new Label(label)) - } - - // `break` statement - break(label?: Code): CodeGen { - return this._leafNode(new Break(label)) - } - - // `return` statement - return(value: Block | SafeExpr): CodeGen { - const node = new Return() - this._blockNode(node) - this.code(value) - if (node.nodes.length !== 1) throw new Error('CodeGen: "return" should have one node') - return this._endBlockNode(Return) - } - - // `try` statement - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen { - if (!catchCode && !finallyCode) throw new Error('CodeGen: "try" without "catch" and "finally"') - const node = new Try() - this._blockNode(node) - this.code(tryBody) - if (catchCode) { - const error = this.name("e") - this._currNode = node.catch = new Catch(error) - catchCode(error) - } - if (finallyCode) { - this._currNode = node.finally = new Finally() - this.code(finallyCode) - } - return this._endBlockNode(Catch, Finally) - } - - // `throw` statement - throw(error: Code): CodeGen { - return this._leafNode(new Throw(error)) - } - - // start self-balancing block - block(body?: Block, nodeCount?: number): CodeGen { - this._blockStarts.push(this._nodes.length) - if (body) this.code(body).endBlock(nodeCount) - return this - } - - // end the current self-balancing block - endBlock(nodeCount?: number): CodeGen { - const len = this._blockStarts.pop() - if (len === undefined) throw new Error("CodeGen: not in self-balancing block") - const toClose = this._nodes.length - len - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`) - } - this._nodes.length = len - return this - } - - // `function` heading (or definition if funcBody is passed) - func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen { - this._blockNode(new Func(name, args, async)) - if (funcBody) this.code(funcBody).endFunc() - return this - } - - // end function definition - endFunc(): CodeGen { - return this._endBlockNode(Func) - } - - optimize(n = 1): void { - while (n-- > 0) { - this._root.optimizeNodes() - this._root.optimizeNames(this._root.names, this._constants) - } - } - - private _leafNode(node: LeafNode): CodeGen { - this._currNode.nodes.push(node) - return this - } - - private _blockNode(node: StartBlockNode): void { - this._currNode.nodes.push(node) - this._nodes.push(node) - } - - private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen { - const n = this._currNode - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop() - return this - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`) - } - - private _elseNode(node: If | Else): CodeGen { - const n = this._currNode - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"') - } - this._currNode = n.else = node - return this - } - - private get _root(): Root { - return this._nodes[0] as Root - } - - private get _currNode(): ParentNode { - const ns = this._nodes - return ns[ns.length - 1] - } - - private set _currNode(node: ParentNode) { - const ns = this._nodes - ns[ns.length - 1] = node - } - - // get nodeCount(): number { - // return this._root.count - // } -} - -function addNames(names: UsedNames, from: UsedNames): UsedNames { - for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0) - return names -} - -function addExprNames(names: UsedNames, from: SafeExpr): UsedNames { - return from instanceof _CodeOrName ? addNames(names, from.names) : names -} - -function optimizeExpr(expr: T, names: UsedNames, constants: Constants): T -function optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr { - if (expr instanceof Name) return replaceName(expr) - if (!canOptimize(expr)) return expr - return new _Code( - expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => { - if (c instanceof Name) c = replaceName(c) - if (c instanceof _Code) items.push(...c._items) - else items.push(c) - return items - }, []) - ) - - function replaceName(n: Name): SafeExpr { - const c = constants[n.str] - if (c === undefined || names[n.str] !== 1) return n - delete names[n.str] - return c - } - - function canOptimize(e: SafeExpr): e is _Code { - return ( - e instanceof _Code && - e._items.some( - (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined - ) - ) - } -} - -function subtractNames(names: UsedNames, from: UsedNames): void { - for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0) -} - -export function not(x: T): T -export function not(x: Code | SafeExpr): Code | SafeExpr { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : _`!${par(x)}` -} - -const andCode = mappend(operators.AND) - -// boolean AND (&&) expression with the passed arguments -export function and(...args: Code[]): Code { - return args.reduce(andCode) -} - -const orCode = mappend(operators.OR) - -// boolean OR (||) expression with the passed arguments -export function or(...args: Code[]): Code { - return args.reduce(orCode) -} - -type MAppend = (x: Code, y: Code) => Code - -function mappend(op: Code): MAppend { - return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`) -} - -function par(x: Code): Code { - return x instanceof Name ? x : _`(${x})` -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts deleted file mode 100644 index 51199229..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +++ /dev/null @@ -1,215 +0,0 @@ -import {_, nil, Code, Name} from "./code" - -interface NameGroup { - prefix: string - index: number -} - -export interface NameValue { - ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure - key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used - code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`) -} - -export type ValueReference = unknown // possibly make CodeGen parameterized type on this type - -class ValueError extends Error { - readonly value?: NameValue - constructor(name: ValueScopeName) { - super(`CodeGen: "code" for ${name} not defined`) - this.value = name.value - } -} - -interface ScopeOptions { - prefixes?: Set - parent?: Scope -} - -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore - es5?: boolean - lines?: boolean -} - -export type ScopeStore = Record - -type ScopeValues = { - [Prefix in string]?: Map -} - -export type ScopeValueSets = { - [Prefix in string]?: Set -} - -export enum UsedValueState { - Started, - Completed, -} - -export type UsedScopeValues = { - [Prefix in string]?: Map -} - -export const varKinds = { - const: new Name("const"), - let: new Name("let"), - var: new Name("var"), -} - -export class Scope { - protected readonly _names: {[Prefix in string]?: NameGroup} = {} - protected readonly _prefixes?: Set - protected readonly _parent?: Scope - - constructor({prefixes, parent}: ScopeOptions = {}) { - this._prefixes = prefixes - this._parent = parent - } - - toName(nameOrPrefix: Name | string): Name { - return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix) - } - - name(prefix: string): Name { - return new Name(this._newName(prefix)) - } - - protected _newName(prefix: string): string { - const ng = this._names[prefix] || this._nameGroup(prefix) - return `${prefix}${ng.index++}` - } - - private _nameGroup(prefix: string): NameGroup { - if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`) - } - return (this._names[prefix] = {prefix, index: 0}) - } -} - -interface ScopePath { - property: string - itemIndex: number -} - -export class ValueScopeName extends Name { - readonly prefix: string - value?: NameValue - scopePath?: Code - - constructor(prefix: string, nameStr: string) { - super(nameStr) - this.prefix = prefix - } - - setValue(value: NameValue, {property, itemIndex}: ScopePath): void { - this.value = value - this.scopePath = _`.${new Name(property)}[${itemIndex}]` - } -} - -interface VSOptions extends ValueScopeOptions { - _n: Code -} - -const line = _`\n` - -export class ValueScope extends Scope { - protected readonly _values: ScopeValues = {} - protected readonly _scope: ScopeStore - readonly opts: VSOptions - - constructor(opts: ValueScopeOptions) { - super(opts) - this._scope = opts.scope - this.opts = {...opts, _n: opts.lines ? line : nil} - } - - get(): ScopeStore { - return this._scope - } - - name(prefix: string): ValueScopeName { - return new ValueScopeName(prefix, this._newName(prefix)) - } - - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName { - if (value.ref === undefined) throw new Error("CodeGen: ref must be passed in value") - const name = this.toName(nameOrPrefix) as ValueScopeName - const {prefix} = name - const valueKey = value.key ?? value.ref - let vs = this._values[prefix] - if (vs) { - const _name = vs.get(valueKey) - if (_name) return _name - } else { - vs = this._values[prefix] = new Map() - } - vs.set(valueKey, name) - - const s = this._scope[prefix] || (this._scope[prefix] = []) - const itemIndex = s.length - s[itemIndex] = value.ref - name.setValue(value, {property: prefix, itemIndex}) - return name - } - - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - const vs = this._values[prefix] - if (!vs) return - return vs.get(keyOrRef) - } - - scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code { - return this._reduceValues(values, (name: ValueScopeName) => { - if (name.scopePath === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return _`${scopeName}${name.scopePath}` - }) - } - - scopeCode( - values: ScopeValues | ScopeValueSets = this._values, - usedValues?: UsedScopeValues, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - return this._reduceValues( - values, - (name: ValueScopeName) => { - if (name.value === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return name.value.code - }, - usedValues, - getCode - ) - } - - private _reduceValues( - values: ScopeValues | ScopeValueSets, - valueCode: (n: ValueScopeName) => Code | undefined, - usedValues: UsedScopeValues = {}, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - let code: Code = nil - for (const prefix in values) { - const vs = values[prefix] - if (!vs) continue - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()) - vs.forEach((name: ValueScopeName) => { - if (nameSet.has(name)) return - nameSet.set(name, UsedValueState.Started) - let c = valueCode(name) - if (c) { - const def = this.opts.es5 ? varKinds.var : varKinds.const - code = _`${code}${def} ${name} = ${c};${this.opts._n}` - } else if ((c = getCode?.(name))) { - code = _`${code}${c}${this.opts._n}` - } else { - throw new ValueError(name) - } - nameSet.set(name, UsedValueState.Completed) - }) - } - return code - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts deleted file mode 100644 index 18424a0f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type {KeywordErrorCxt, KeywordErrorDefinition} from "../types" -import type {SchemaCxt} from "./index" -import {CodeGen, _, str, strConcat, Code, Name} from "./codegen" -import {SafeExpr} from "./codegen/code" -import {getErrorPath, Type} from "./util" -import N from "./names" - -export const keywordError: KeywordErrorDefinition = { - message: ({keyword}) => str`must pass "${keyword}" keyword validation`, -} - -export const keyword$DataError: KeywordErrorDefinition = { - message: ({keyword, schemaType}) => - schemaType - ? str`"${keyword}" keyword must be ${schemaType} ($data)` - : str`"${keyword}" keyword is invalid ($data)`, -} - -export interface ErrorPaths { - instancePath?: Code - schemaPath?: string - parentSchema?: boolean -} - -export function reportError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths, - overrideAllErrors?: boolean -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - if (overrideAllErrors ?? (compositeRule || allErrors)) { - addError(gen, errObj) - } else { - returnErrors(it, _`[${errObj}]`) - } -} - -export function reportExtraError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - addError(gen, errObj) - if (!(compositeRule || allErrors)) { - returnErrors(it, N.vErrors) - } -} - -export function resetErrorsCount(gen: CodeGen, errsCount: Name): void { - gen.assign(N.errors, errsCount) - gen.if(_`${N.vErrors} !== null`, () => - gen.if( - errsCount, - () => gen.assign(_`${N.vErrors}.length`, errsCount), - () => gen.assign(N.vErrors, null) - ) - ) -} - -export function extendErrors({ - gen, - keyword, - schemaValue, - data, - errsCount, - it, -}: KeywordErrorCxt): void { - /* istanbul ignore if */ - if (errsCount === undefined) throw new Error("ajv implementation error") - const err = gen.name("err") - gen.forRange("i", errsCount, N.errors, (i) => { - gen.const(err, _`${N.vErrors}[${i}]`) - gen.if(_`${err}.instancePath === undefined`, () => - gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath)) - ) - gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`) - if (it.opts.verbose) { - gen.assign(_`${err}.schema`, schemaValue) - gen.assign(_`${err}.data`, data) - } - }) -} - -function addError(gen: CodeGen, errObj: Code): void { - const err = gen.const("err", errObj) - gen.if( - _`${N.vErrors} === null`, - () => gen.assign(N.vErrors, _`[${err}]`), - _`${N.vErrors}.push(${err})` - ) - gen.code(_`${N.errors}++`) -} - -function returnErrors(it: SchemaCxt, errs: Code): void { - const {gen, validateName, schemaEnv} = it - if (schemaEnv.$async) { - gen.throw(_`new ${it.ValidationError as Name}(${errs})`) - } else { - gen.assign(_`${validateName}.errors`, errs) - gen.return(false) - } -} - -const E = { - keyword: new Name("keyword"), - schemaPath: new Name("schemaPath"), // also used in JTD errors - params: new Name("params"), - propertyName: new Name("propertyName"), - message: new Name("message"), - schema: new Name("schema"), - parentSchema: new Name("parentSchema"), -} - -function errorObjectCode( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths?: ErrorPaths -): Code { - const {createErrors} = cxt.it - if (createErrors === false) return _`{}` - return errorObject(cxt, error, errorPaths) -} - -function errorObject( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths: ErrorPaths = {} -): Code { - const {gen, it} = cxt - const keyValues: [Name, SafeExpr | string][] = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ] - extraErrorProps(cxt, error, keyValues) - return gen.object(...keyValues) -} - -function errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] { - const instPath = instancePath - ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}` - : errorPath - return [N.instancePath, strConcat(N.instancePath, instPath)] -} - -function errorSchemaPath( - {keyword, it: {errSchemaPath}}: KeywordErrorCxt, - {schemaPath, parentSchema}: ErrorPaths -): [Name, string | Code] { - let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}` - if (schemaPath) { - schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}` - } - return [E.schemaPath, schPath] -} - -function extraErrorProps( - cxt: KeywordErrorCxt, - {params, message}: KeywordErrorDefinition, - keyValues: [Name, SafeExpr | string][] -): void { - const {keyword, data, schemaValue, it} = cxt - const {opts, propertyName, topSchemaRef, schemaPath} = it - keyValues.push( - [E.keyword, keyword], - [E.params, typeof params == "function" ? params(cxt) : params || _`{}`] - ) - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]) - } - if (opts.verbose) { - keyValues.push( - [E.schema, schemaValue], - [E.parentSchema, _`${topSchemaRef}${schemaPath}`], - [N.data, data] - ) - } - if (propertyName) keyValues.push([E.propertyName, propertyName]) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts deleted file mode 100644 index 3dac2699..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +++ /dev/null @@ -1,324 +0,0 @@ -import type { - AnySchema, - AnySchemaObject, - AnyValidateFunction, - AsyncValidateFunction, - EvaluatedProperties, - EvaluatedItems, -} from "../types" -import type Ajv from "../core" -import type {InstanceOptions} from "../core" -import {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from "./codegen" -import ValidationError from "../runtime/validation_error" -import N from "./names" -import {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from "./resolve" -import {schemaHasRulesButRef, unescapeFragment} from "./util" -import {validateFunctionCode} from "./validate" -import * as URI from "uri-js" -import {JSONType} from "./rules" - -export type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema -} - -export interface SchemaCxt { - readonly gen: CodeGen - readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error - readonly data: Name // Name with reference to the current part of data instance - readonly parentData: Name // should be used in keywords modifying data - readonly parentDataProperty: Code | number // should be used in keywords modifying data - readonly dataNames: Name[] - readonly dataPathArr: (Code | number)[] - readonly dataLevel: number // the level of the currently validated data, - // it can be used to access both the property names and the data on all levels from the top. - dataTypes: JSONType[] // data types applied to the current part of data instance - definedProperties: Set // set of properties to keep track of for required checks - readonly topSchemaRef: Code - readonly validateName: Name - evaluated?: Name - readonly ValidationError?: Name - readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt - readonly schemaEnv: SchemaEnv - readonly rootId: string - baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\$ref) - readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema - readonly errSchemaPath: string // this is actual string, should not be changed to Code - readonly errorPath: Code - readonly propertyName?: Name - readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword, - // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`). - // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true. - // You only need to use it if you have many steps in your keywords and potentially can define multiple errors. - props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function - items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function - jtdDiscriminator?: string - jtdMetadata?: boolean - readonly createErrors?: boolean - readonly opts: InstanceOptions // Ajv instance option. - readonly self: Ajv // current Ajv instance -} - -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject -} -interface SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root?: SchemaEnv - readonly baseId?: string - readonly schemaPath?: string - readonly localRefs?: LocalRefs - readonly meta?: boolean -} - -export class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root: SchemaEnv - baseId: string // TODO possibly, it should be readonly - schemaPath?: string - localRefs?: LocalRefs - readonly meta?: boolean - readonly $async?: boolean // true if the current schema is asynchronous. - readonly refs: SchemaRefs = {} - readonly dynamicAnchors: {[Ref in string]?: true} = {} - validate?: AnyValidateFunction - validateName?: ValueScopeName - serialize?: (data: unknown) => string - serializeName?: ValueScopeName - parse?: (data: string) => unknown - parseName?: ValueScopeName - - constructor(env: SchemaEnvArgs) { - let schema: AnySchemaObject | undefined - if (typeof env.schema == "object") schema = env.schema - this.schema = env.schema - this.schemaId = env.schemaId - this.root = env.root || this - this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || "$id"]) - this.schemaPath = env.schemaPath - this.localRefs = env.localRefs - this.meta = env.meta - this.$async = schema?.$async - this.refs = {} - } -} - -// let codeSize = 0 -// let nodeCount = 0 - -// Compiles schema in SchemaEnv -export function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - let _ValidationError - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: ValidationError, - code: _`require("ajv/dist/runtime/validation_error").default`, - }) - } - - const validateName = gen.scopeName("validate") - sch.validateName = validateName - - const schemaCxt: SchemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: N.data, - parentData: N.parentData, - parentDataProperty: N.parentDataProperty, - dataNames: [N.data], - dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed? - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue( - "schema", - this.opts.code.source === true - ? {ref: sch.schema, code: stringify(sch.schema)} - : {ref: sch.schema} - ), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: _`""`, - opts: this.opts, - self: this, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - validateFunctionCode(schemaCxt) - gen.optimize(this.opts.code.optimize) - // gen.optimize(1) - const validateCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}` - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch) - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode) - const validate: AnyValidateFunction = makeValidate(this, this.scope.get()) - this.scope.value(validateName, {ref: validate}) - - validate.errors = null - validate.schema = sch.schema - validate.schemaEnv = sch - if (sch.$async) (validate as AsyncValidateFunction).$async = true - if (this.opts.code.source === true) { - validate.source = {validateName, validateCode, scopeValues: gen._values} - } - if (this.opts.unevaluated) { - const {props, items} = schemaCxt - validate.evaluated = { - props: props instanceof Name ? undefined : props, - items: items instanceof Name ? undefined : items, - dynamicProps: props instanceof Name, - dynamicItems: items instanceof Name, - } - if (validate.source) validate.source.evaluated = stringify(validate.evaluated) - } - sch.validate = validate - return sch - } catch (e) { - delete sch.validate - delete sch.validateName - if (sourceCode) this.logger.error("Error compiling schema, function code:", sourceCode) - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e - } finally { - this._compilations.delete(sch) - } -} - -export function resolveRef( - this: Ajv, - root: SchemaEnv, - baseId: string, - ref: string -): AnySchema | SchemaEnv | undefined { - ref = resolveUrl(this.opts.uriResolver, baseId, ref) - const schOrFunc = root.refs[ref] - if (schOrFunc) return schOrFunc - - let _sch = resolve.call(this, root, ref) - if (_sch === undefined) { - const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv - const {schemaId} = this.opts - if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId}) - } - - if (_sch === undefined) return - return (root.refs[ref] = inlineOrCompile.call(this, _sch)) -} - -function inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv { - if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema - return sch.validate ? sch : compileSchema.call(this, sch) -} - -// Index of schema compilation in the currently compiled list -export function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) return sch - } -} - -function sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId -} - -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve( - this: Ajv, - root: SchemaEnv, // information about the root schema for the current schema - ref: string // reference to resolve -): SchemaEnv | undefined { - let sch - while (typeof (sch = this.refs[ref]) == "string") ref = sch - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref) -} - -// Resolve schema, its root and baseId -export function resolveSchema( - this: Ajv, - root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it - ref: string // reference to resolve -): SchemaEnv | undefined { - const p = this.opts.uriResolver.parse(ref) - const refPath = _getFullPath(this.opts.uriResolver, p) - let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined) - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root) - } - - const id = normalizeId(refPath) - const schOrRef = this.refs[id] || this.schemas[id] - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef) - if (typeof sch?.schema !== "object") return - return getJsonPointer.call(this, p, sch) - } - - if (typeof schOrRef?.schema !== "object") return - if (!schOrRef.validate) compileSchema.call(this, schOrRef) - if (id === normalizeId(ref)) { - const {schema} = schOrRef - const {schemaId} = this.opts - const schId = schema[schemaId] - if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - return new SchemaEnv({schema, schemaId, root, baseId}) - } - return getJsonPointer.call(this, p, schOrRef) -} - -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]) - -function getJsonPointer( - this: Ajv, - parsedRef: URI.URIComponents, - {baseId, schema, root}: SchemaEnv -): SchemaEnv | undefined { - if (parsedRef.fragment?.[0] !== "/") return - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") return - const partSchema = schema[unescapeFragment(part)] - if (partSchema === undefined) return - schema = partSchema - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId] - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - } - } - let env: SchemaEnv | undefined - if (typeof schema != "boolean" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) { - const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref) - env = resolveSchema.call(this, root, $ref) - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const {schemaId} = this.opts - env = env || new SchemaEnv({schema, schemaId, root, baseId}) - if (env.schema !== env.root.schema) return env - return undefined -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts deleted file mode 100644 index a0141c77..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +++ /dev/null @@ -1,411 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, or, nil, not, CodeGen, Code, Name, SafeExpr} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {hasPropFunc} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {intRange, IntType} from "../../vocabularies/jtd/type" -import {parseJson, parseJsonNumber, parseJsonString} from "../../runtime/parseJson" -import {useFunc} from "../util" -import validTimestamp from "../../runtime/timestamp" - -type GenParse = (cxt: ParseCxt) => void - -const genParse: {[F in JTDForm]: GenParse} = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -} - -interface ParseCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code - parseName: Name - char: Name -} - -export default function compileParser( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const parseName = gen.scopeName("parse") - const cxt: ParseCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - parseName, - char: gen.name("c"), - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.parseName = parseName - parserFunction(cxt) - gen.optimize(this.opts.code.optimize) - const parseFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${parseFuncCode}` - const makeParse = new Function(`${N.scope}`, sourceCode) - const parse: (json: string) => unknown = makeParse(this.scope.get()) - this.scope.value(parseName, {ref: parse}) - sch.parse = parse - } catch (e) { - if (sourceCode) this.logger.error("Error compiling parser, function code:", sourceCode) - delete sch.parse - delete sch.parseName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -const undef = _`undefined` - -function parserFunction(cxt: ParseCxt): void { - const {gen, parseName, char} = cxt - gen.func(parseName, _`${N.json}, ${N.jsonPos}, ${N.jsonPart}`, false, () => { - gen.let(N.data) - gen.let(char) - gen.assign(_`${parseName}.message`, undef) - gen.assign(_`${parseName}.position`, undef) - gen.assign(N.jsonPos, _`${N.jsonPos} || 0`) - gen.const(N.jsonLen, _`${N.json}.length`) - parseCode(cxt) - skipWhitespace(cxt) - gen.if(N.jsonPart, () => { - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(N.data) - }) - gen.if(_`${N.jsonPos} === ${N.jsonLen}`, () => gen.return(N.data)) - jsonSyntaxError(cxt) - }) -} - -function parseCode(cxt: ParseCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - if (form) parseNullable(cxt, genParse[form]) - else parseEmpty(cxt) -} - -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)) - -function parseNullable(cxt: ParseCxt, parseForm: GenParse): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return parseForm(cxt) - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)) -} - -function parseElements(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "[") - const ix = gen.let("i", 0) - gen.assign(data, _`[]`) - parseItems(cxt, "]", () => { - const el = gen.let("el") - parseCode({...cxt, schema: schema.elements, data: el}) - gen.assign(_`${data}[${ix}++]`, el) - }) -} - -function parseValues(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)) -} - -function parseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - tryParseItems(cxt, endToken, block) - parseToken(cxt, endToken) -} - -function tryParseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - const {gen} = cxt - gen.for(_`;${N.jsonPos}<${N.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block() - tryParseToken(cxt, ",", () => gen.break(), hasItem) - }) - - function hasItem(): void { - tryParseToken(cxt, endToken, () => {}, jsonSyntaxError) - } -} - -function parseKeyValue(cxt: ParseCxt, schema: SchemaObject): void { - const {gen} = cxt - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - parsePropertyValue(cxt, key, schema) -} - -function parseDiscriminator(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const {discriminator, mapping} = schema - parseToken(cxt, "{") - gen.assign(data, _`{}`) - const startPos = gen.const("pos", N.jsonPos) - const value = gen.let("value") - const tag = gen.let("tag") - tryParseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if( - _`${key} === ${discriminator}`, - () => { - parseString({...cxt, data: tag}) - gen.assign(_`${data}[${key}]`, tag) - gen.break() - }, - () => parseEmpty({...cxt, data: value}) // can be discarded/skipped - ) - }) - gen.assign(N.jsonPos, startPos) - gen.if(_`${tag} === undefined`) - parsingError(cxt, str`discriminator tag not found`) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - parseSchemaProperties({...cxt, schema: mapping[tagValue]}, discriminator) - } - gen.else() - parsingError(cxt, str`discriminator value not in schema`) - gen.endIf() -} - -function parseProperties(cxt: ParseCxt): void { - const {gen, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseSchemaProperties(cxt) -} - -function parseSchemaProperties(cxt: ParseCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties, additionalProperties} = schema - parseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if(false) - parseDefinedProperty(cxt, key, properties) - parseDefinedProperty(cxt, key, optionalProperties) - if (discriminator) { - gen.elseIf(_`${key} === ${discriminator}`) - const tag = gen.let("tag") - parseString({...cxt, data: tag}) // can be discarded, it is already assigned - } - gen.else() - if (additionalProperties) { - parseEmpty({...cxt, data: _`${data}[${key}]`}) - } else { - parsingError(cxt, str`property ${key} not allowed`) - } - gen.endIf() - }) - if (properties) { - const hasProp = hasPropFunc(gen) - const allProps: Code = and( - ...Object.keys(properties).map((p): Code => _`${hasProp}.call(${data}, ${p})`) - ) - gen.if(not(allProps), () => parsingError(cxt, str`missing required properties`)) - } -} - -function parseDefinedProperty(cxt: ParseCxt, key: Name, schemas: SchemaObjectMap = {}): void { - const {gen} = cxt - for (const prop in schemas) { - gen.elseIf(_`${key} === ${prop}`) - parsePropertyValue(cxt, key, schemas[prop] as SchemaObject) - } -} - -function parsePropertyValue(cxt: ParseCxt, key: Name, schema: SchemaObject): void { - parseCode({...cxt, schema, data: _`${cxt.data}[${key}]`}) -} - -function parseType(cxt: ParseCxt): void { - const {gen, schema, data, self} = cxt - switch (schema.type) { - case "boolean": - parseBoolean(cxt) - break - case "string": - parseString(cxt) - break - case "timestamp": { - parseString(cxt) - const vts = useFunc(gen, validTimestamp) - const {allowDate, parseDate} = self.opts - const notValid = allowDate ? _`!${vts}(${data}, true)` : _`!${vts}(${data})` - const fail: Code = parseDate - ? or(notValid, _`(${data} = new Date(${data}), false)`, _`isNaN(${data}.valueOf())`) - : notValid - gen.if(fail, () => parsingError(cxt, str`invalid timestamp`)) - break - } - case "float32": - case "float64": - parseNumber(cxt) - break - default: { - const t = schema.type as IntType - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16) // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if(_`${data} < 0`, () => parsingError(cxt, str`integer out of range`)) - } - } else { - const [min, max, maxDigits] = intRange[t] - parseNumber(cxt, maxDigits) - gen.if(_`${data} < ${min} || ${data} > ${max}`, () => - parsingError(cxt, str`integer out of range`) - ) - } - } - } -} - -function parseString(cxt: ParseCxt): void { - parseToken(cxt, '"') - parseWith(cxt, parseJsonString) -} - -function parseEnum(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const enumSch = schema.enum - parseToken(cxt, '"') - // TODO loopEnum - gen.if(false) - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1) // remove starting quote - gen.elseIf(_`${jsonSlice(valueStr.length)} === ${valueStr}`) - gen.assign(data, str`${value}`) - gen.add(N.jsonPos, valueStr.length) - } - gen.else() - jsonSyntaxError(cxt) - gen.endIf() -} - -function parseNumber(cxt: ParseCxt, maxDigits?: number): void { - const {gen} = cxt - skipWhitespace(cxt) - gen.if( - _`"-0123456789".indexOf(${jsonSlice(1)}) < 0`, - () => jsonSyntaxError(cxt), - () => parseWith(cxt, parseJsonNumber, maxDigits) - ) -} - -function parseBooleanToken(bool: boolean, fail: GenParse): GenParse { - return (cxt) => { - const {gen, data} = cxt - tryParseToken( - cxt, - `${bool}`, - () => fail(cxt), - () => gen.assign(data, bool) - ) - } -} - -function parseRef(cxt: ParseCxt): void { - const {gen, self, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return parseCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileParser.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - partialParse(cxt, getParser(gen, sch), true) -} - -function getParser(gen: CodeGen, sch: SchemaEnv): Code { - return sch.parse - ? gen.scopeValue("parse", {ref: sch.parse}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.parse` -} - -function parseEmpty(cxt: ParseCxt): void { - parseWith(cxt, parseJson) -} - -function parseWith(cxt: ParseCxt, parseFunc: {code: string}, args?: SafeExpr): void { - partialParse(cxt, useFunc(cxt.gen, parseFunc), args) -} - -function partialParse(cxt: ParseCxt, parseFunc: Name, args?: SafeExpr): void { - const {gen, data} = cxt - gen.assign(data, _`${parseFunc}(${N.json}, ${N.jsonPos}${args ? _`, ${args}` : nil})`) - gen.assign(N.jsonPos, _`${parseFunc}.position`) - gen.if(_`${data} === undefined`, () => parsingError(cxt, _`${parseFunc}.message`)) -} - -function parseToken(cxt: ParseCxt, tok: string): void { - tryParseToken(cxt, tok, jsonSyntaxError) -} - -function tryParseToken(cxt: ParseCxt, tok: string, fail: GenParse, success?: GenParse): void { - const {gen} = cxt - const n = tok.length - skipWhitespace(cxt) - gen.if( - _`${jsonSlice(n)} === ${tok}`, - () => { - gen.add(N.jsonPos, n) - success?.(cxt) - }, - () => fail(cxt) - ) -} - -function skipWhitespace({gen, char: c}: ParseCxt): void { - gen.code( - _`while((${c}=${N.json}[${N.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${N.jsonPos}++;` - ) -} - -function jsonSlice(len: number | Name): Code { - return len === 1 - ? _`${N.json}[${N.jsonPos}]` - : _`${N.json}.slice(${N.jsonPos}, ${N.jsonPos}+${len})` -} - -function jsonSyntaxError(cxt: ParseCxt): void { - parsingError(cxt, _`"unexpected token " + ${N.json}[${N.jsonPos}]`) -} - -function parsingError({gen, parseName}: ParseCxt, msg: Code): void { - gen.assign(_`${parseName}.message`, msg) - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(undef) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts deleted file mode 100644 index 7ebd26ac..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +++ /dev/null @@ -1,260 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, getProperty, CodeGen, Code, Name} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {isOwnProperty} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {useFunc} from "../util" -import quote from "../../runtime/quote" - -const genSerialize: {[F in JTDForm]: (cxt: SerializeCxt) => void} = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -} - -interface SerializeCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code -} - -export default function compileSerializer( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const serializeName = gen.scopeName("serialize") - const cxt: SerializeCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.serializeName = serializeName - gen.func(serializeName, N.data, false, () => { - gen.let(N.json, str``) - serializeCode(cxt) - gen.return(N.json) - }) - gen.optimize(this.opts.code.optimize) - const serializeFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${serializeFuncCode}` - const makeSerialize = new Function(`${N.scope}`, sourceCode) - const serialize: (data: unknown) => string = makeSerialize(this.scope.get()) - this.scope.value(serializeName, {ref: serialize}) - sch.serialize = serialize - } catch (e) { - if (sourceCode) this.logger.error("Error compiling serializer, function code:", sourceCode) - delete sch.serialize - delete sch.serializeName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -function serializeCode(cxt: SerializeCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty) -} - -function serializeNullable(cxt: SerializeCxt, serializeForm: (_cxt: SerializeCxt) => void): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return serializeForm(cxt) - gen.if( - _`${data} === undefined || ${data} === null`, - () => gen.add(N.json, _`"null"`), - () => serializeForm(cxt) - ) -} - -function serializeElements(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`[`) - const first = gen.let("first", true) - gen.forOf("el", data, (el) => { - addComma(cxt, first) - serializeCode({...cxt, schema: schema.elements, data: el}) - }) - gen.add(N.json, str`]`) -} - -function serializeValues(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`{`) - const first = gen.let("first", true) - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)) - gen.add(N.json, str`}`) -} - -function serializeKeyValue(cxt: SerializeCxt, key: Name, schema: SchemaObject, first: Name): void { - const {gen, data} = cxt - addComma(cxt, first) - serializeString({...cxt, data: key}) - gen.add(N.json, str`:`) - const value = gen.const("value", _`${data}${getProperty(key)}`) - serializeCode({...cxt, schema, data: value}) -} - -function serializeDiscriminator(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - const {discriminator} = schema - gen.add(N.json, str`{${JSON.stringify(discriminator)}:`) - const tag = gen.const("tag", _`${data}${getProperty(discriminator)}`) - serializeString({...cxt, data: tag}) - gen.if(false) - for (const tagValue in schema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - const sch = schema.mapping[tagValue] - serializeSchemaProperties({...cxt, schema: sch}, discriminator) - } - gen.endIf() - gen.add(N.json, str`}`) -} - -function serializeProperties(cxt: SerializeCxt): void { - const {gen} = cxt - gen.add(N.json, str`{`) - serializeSchemaProperties(cxt) - gen.add(N.json, str`}`) -} - -function serializeSchemaProperties(cxt: SerializeCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties} = schema - const props = keys(properties) - const optProps = keys(optionalProperties) - const allProps = allProperties(props.concat(optProps)) - let first = !discriminator - for (const key of props) { - serializeProperty(key, properties[key], keyValue(key)) - } - for (const key of optProps) { - const value = keyValue(key) - gen.if(and(_`${value} !== undefined`, isOwnProperty(gen, data, key)), () => - serializeProperty(key, optionalProperties[key], value) - ) - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => - gen.if(isAdditional(key, allProps), () => - serializeKeyValue(cxt, key, {}, gen.let("first", first)) - ) - ) - } - - function keys(ps?: SchemaObjectMap): string[] { - return ps ? Object.keys(ps) : [] - } - - function allProperties(ps: string[]): string[] { - if (discriminator) ps.push(discriminator) - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap") - } - return ps - } - - function keyValue(key: string): Name { - return gen.const("value", _`${data}${getProperty(key)}`) - } - - function serializeProperty(key: string, propSchema: SchemaObject, value: Name): void { - if (first) first = false - else gen.add(N.json, str`,`) - gen.add(N.json, str`${JSON.stringify(key)}:`) - serializeCode({...cxt, schema: propSchema, data: value}) - } - - function isAdditional(key: Name, ps: string[]): Code | true { - return ps.length ? and(...ps.map((p) => _`${key} !== ${p}`)) : true - } -} - -function serializeType(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - switch (schema.type) { - case "boolean": - gen.add(N.json, _`${data} ? "true" : "false"`) - break - case "string": - serializeString(cxt) - break - case "timestamp": - gen.if( - _`${data} instanceof Date`, - () => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`), - () => serializeString(cxt) - ) - break - default: - serializeNumber(cxt) - } -} - -function serializeString({gen, data}: SerializeCxt): void { - gen.add(N.json, _`${useFunc(gen, quote)}(${data})`) -} - -function serializeNumber({gen, data}: SerializeCxt): void { - gen.add(N.json, _`"" + ${data}`) -} - -function serializeRef(cxt: SerializeCxt): void { - const {gen, self, data, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return serializeCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileSerializer.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - gen.add(N.json, _`${getSerialize(gen, sch)}(${data})`) -} - -function getSerialize(gen: CodeGen, sch: SchemaEnv): Code { - return sch.serialize - ? gen.scopeValue("serialize", {ref: sch.serialize}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.serialize` -} - -function serializeEmpty({gen, data}: SerializeCxt): void { - gen.add(N.json, _`JSON.stringify(${data})`) -} - -function addComma({gen}: SerializeCxt, first: Name): void { - gen.if( - first, - () => gen.assign(first, false), - () => gen.add(N.json, str`,`) - ) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts deleted file mode 100644 index 7f361957..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {SchemaObject} from "../../types" - -export type SchemaObjectMap = {[Ref in string]?: SchemaObject} - -export const jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -] as const - -export type JTDForm = typeof jtdForms[number] diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts deleted file mode 100644 index b4b242e1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {Name} from "./codegen" - -const names = { - // validation function arguments - data: new Name("data"), // data passed to validation function - // args passed from referencing schema - valCxt: new Name("valCxt"), // validation/data context - should not be used directly, it is destructured to the names below - instancePath: new Name("instancePath"), - parentData: new Name("parentData"), - parentDataProperty: new Name("parentDataProperty"), - rootData: new Name("rootData"), // root data - same as the data passed to the first/top validation function - dynamicAnchors: new Name("dynamicAnchors"), // used to support recursiveRef and dynamicRef - // function scoped variables - vErrors: new Name("vErrors"), // null or array of validation errors - errors: new Name("errors"), // counter of validation errors - this: new Name("this"), - // "globals" - self: new Name("self"), - scope: new Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new Name("json"), - jsonPos: new Name("jsonPos"), - jsonLen: new Name("jsonLen"), - jsonPart: new Name("jsonPart"), -} - -export default names diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts deleted file mode 100644 index 386bf049..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {resolveUrl, normalizeId, getFullPath} from "./resolve" -import type {UriResolver} from "../types" - -export default class MissingRefError extends Error { - readonly missingRef: string - readonly missingSchema: string - - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`) - this.missingRef = resolveUrl(resolver, baseId, ref) - this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef)) - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts deleted file mode 100644 index 4360eab0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type {AnySchema, AnySchemaObject, UriResolver} from "../types" -import type Ajv from "../ajv" -import type {URIComponents} from "uri-js" -import {eachItem} from "./util" -import * as equal from "fast-deep-equal" -import * as traverse from "json-schema-traverse" - -// the hash of local references inside the schema (created by getSchemaRefs), used for inline resolution -export type LocalRefs = {[Ref in string]?: AnySchemaObject} - -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]) - -export function inlineRef(schema: AnySchema, limit: boolean | number = true): boolean { - if (typeof schema == "boolean") return true - if (limit === true) return !hasRef(schema) - if (!limit) return false - return countKeys(schema) <= limit -} - -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]) - -function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) return true - const sch = schema[key] - if (Array.isArray(sch) && sch.some(hasRef)) return true - if (typeof sch == "object" && hasRef(sch)) return true - } - return false -} - -function countKeys(schema: AnySchemaObject): number { - let count = 0 - for (const key in schema) { - if (key === "$ref") return Infinity - count++ - if (SIMPLE_INLINED.has(key)) continue - if (typeof schema[key] == "object") { - eachItem(schema[key], (sch) => (count += countKeys(sch))) - } - if (count === Infinity) return Infinity - } - return count -} - -export function getFullPath(resolver: UriResolver, id = "", normalize?: boolean): string { - if (normalize !== false) id = normalizeId(id) - const p = resolver.parse(id) - return _getFullPath(resolver, p) -} - -export function _getFullPath(resolver: UriResolver, p: URIComponents): string { - const serialized = resolver.serialize(p) - return serialized.split("#")[0] + "#" -} - -const TRAILING_SLASH_HASH = /#\/?$/ -export function normalizeId(id: string | undefined): string { - return id ? id.replace(TRAILING_SLASH_HASH, "") : "" -} - -export function resolveUrl(resolver: UriResolver, baseId: string, id: string): string { - id = normalizeId(id) - return resolver.resolve(baseId, id) -} - -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i - -export function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs { - if (typeof schema == "boolean") return {} - const {schemaId, uriResolver} = this.opts - const schId = normalizeId(schema[schemaId] || baseId) - const baseIds: {[JsonPtr in string]?: string} = {"": schId} - const pathPrefix = getFullPath(uriResolver, schId, false) - const localRefs: LocalRefs = {} - const schemaRefs: Set = new Set() - - traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) return - const fullPath = pathPrefix + jsonPtr - let baseId = baseIds[parentJsonPtr] - if (typeof sch[schemaId] == "string") baseId = addRef.call(this, sch[schemaId]) - addAnchor.call(this, sch.$anchor) - addAnchor.call(this, sch.$dynamicAnchor) - baseIds[jsonPtr] = baseId - - function addRef(this: Ajv, ref: string): string { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve - ref = normalizeId(baseId ? _resolve(baseId, ref) : ref) - if (schemaRefs.has(ref)) throw ambiguos(ref) - schemaRefs.add(ref) - let schOrRef = this.refs[ref] - if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef] - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref) - } else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref) - localRefs[ref] = sch - } else { - this.refs[ref] = fullPath - } - } - return ref - } - - function addAnchor(this: Ajv, anchor: unknown): void { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor "${anchor}"`) - addRef.call(this, `#${anchor}`) - } - } - }) - - return localRefs - - function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void { - if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref) - } - - function ambiguos(ref: string): Error { - return new Error(`reference "${ref}" resolves to more than one schema`) - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts deleted file mode 100644 index ea65074f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type {AddedKeywordDefinition} from "../types" - -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"] as const - -export type JSONType = typeof _jsonTypes[number] - -const jsonTypes: Set = new Set(_jsonTypes) - -export function isJSONType(x: unknown): x is JSONType { - return typeof x == "string" && jsonTypes.has(x) -} - -type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined -} - -export interface ValidationRules { - rules: RuleGroup[] - post: RuleGroup - all: {[Key in string]?: boolean | Rule} // rules that have to be validated - keywords: {[Key in string]?: boolean} // all known keywords (superset of "all") - types: ValidationTypes -} - -export interface RuleGroup { - type?: JSONType - rules: Rule[] -} - -// This interface wraps KeywordDefinition because definition can have multiple keywords -export interface Rule { - keyword: string - definition: AddedKeywordDefinition -} - -export function getRules(): ValidationRules { - const groups: Record<"number" | "string" | "array" | "object", RuleGroup> = { - number: {type: "number", rules: []}, - string: {type: "string", rules: []}, - array: {type: "array", rules: []}, - object: {type: "object", rules: []}, - } - return { - types: {...groups, integer: true, boolean: true, null: true}, - rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object], - post: {rules: []}, - all: {}, - keywords: {}, - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts deleted file mode 100644 index cefae51c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +++ /dev/null @@ -1,213 +0,0 @@ -import type {AnySchema, EvaluatedProperties, EvaluatedItems} from "../types" -import type {SchemaCxt, SchemaObjCxt} from "." -import {_, getProperty, Code, Name, CodeGen} from "./codegen" -import {_Code} from "./codegen/code" -import type {Rule, ValidationRules} from "./rules" - -// TODO refactor to use Set -export function toHash(arr: T[]): {[K in T]?: true} { - const hash: {[K in T]?: true} = {} - for (const item of arr) hash[item] = true - return hash -} - -export function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void { - if (typeof schema == "boolean") return schema - if (Object.keys(schema).length === 0) return true - checkUnknownRules(it, schema) - return !schemaHasRules(schema, it.self.RULES.all) -} - -export function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void { - const {opts, self} = it - if (!opts.strictSchema) return - if (typeof schema === "boolean") return - const rules = self.RULES.keywords - for (const key in schema) { - if (!rules[key]) checkStrictMode(it, `unknown keyword: "${key}"`) - } -} - -export function schemaHasRules( - schema: AnySchema, - rules: {[Key in string]?: boolean | Rule} -): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (rules[key]) return true - return false -} - -export function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (key !== "$ref" && RULES.all[key]) return true - return false -} - -export function schemaRefOrVal( - {topSchemaRef, schemaPath}: SchemaObjCxt, - schema: unknown, - keyword: string, - $data?: string | false -): Code | number | boolean { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") return schema - if (typeof schema == "string") return _`${schema}` - } - return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}` -} - -export function unescapeFragment(str: string): string { - return unescapeJsonPointer(decodeURIComponent(str)) -} - -export function escapeFragment(str: string | number): string { - return encodeURIComponent(escapeJsonPointer(str)) -} - -export function escapeJsonPointer(str: string | number): string { - if (typeof str == "number") return `${str}` - return str.replace(/~/g, "~0").replace(/\//g, "~1") -} - -export function unescapeJsonPointer(str: string): string { - return str.replace(/~1/g, "/").replace(/~0/g, "~") -} - -export function eachItem(xs: T | T[], f: (x: T) => void): void { - if (Array.isArray(xs)) { - for (const x of xs) f(x) - } else { - f(xs) - } -} - -type SomeEvaluated = EvaluatedProperties | EvaluatedItems - -type MergeEvaluatedFunc = ( - gen: CodeGen, - from: Name | T, - to: Name | Exclude | undefined, - toName?: typeof Name -) => Name | T - -interface MakeMergeFuncArgs { - mergeNames: (gen: CodeGen, from: Name, to: Name) => void - mergeToName: (gen: CodeGen, from: T, to: Name) => void - mergeValues: (from: T, to: Exclude) => T - resultToName: (gen: CodeGen, res?: T) => Name -} - -function makeMergeEvaluated({ - mergeNames, - mergeToName, - mergeValues, - resultToName, -}: MakeMergeFuncArgs): MergeEvaluatedFunc { - return (gen, from, to, toName) => { - const res = - to === undefined - ? from - : to instanceof Name - ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to) - return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res - } -} - -interface MergeEvaluated { - props: MergeEvaluatedFunc - items: MergeEvaluatedFunc -} - -export const mergeEvaluated: MergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => { - gen.if( - _`${from} === true`, - () => gen.assign(to, true), - () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`) - ) - }), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => { - if (from === true) { - gen.assign(to, true) - } else { - gen.assign(to, _`${to} || {}`) - setEvaluated(gen, to, from) - } - }), - mergeValues: (from, to) => (from === true ? true : {...from, ...to}), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => - gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`) - ), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => - gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`) - ), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -} - -export function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name { - if (ps === true) return gen.var("props", true) - const props = gen.var("props", _`{}`) - if (ps !== undefined) setEvaluated(gen, props, ps) - return props -} - -export function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void { - Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true)) -} - -const snippets: {[S in string]?: _Code} = {} - -export function useFunc(gen: CodeGen, f: {code: string}): Name { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)), - }) -} - -export enum Type { - Num, - Str, -} - -export function getErrorPath( - dataProp: Name | string | number, - dataPropType?: Type, - jsPropertySyntax?: boolean -): Code | string { - // let path - if (dataProp instanceof Name) { - const isNumber = dataPropType === Type.Num - return jsPropertySyntax - ? isNumber - ? _`"[" + ${dataProp} + "]"` - : _`"['" + ${dataProp} + "']"` - : isNumber - ? _`"/" + ${dataProp}` - : _`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")` // TODO maybe use global escapePointer - } - return jsPropertySyntax ? getProperty(dataProp).toString() : "/" + escapeJsonPointer(dataProp) -} - -export function checkStrictMode( - it: SchemaCxt, - msg: string, - mode: boolean | "log" = it.opts.strictSchema -): void { - if (!mode) return - msg = `strict mode: ${msg}` - if (mode === true) throw new Error(msg) - it.self.logger.warn(msg) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts deleted file mode 100644 index 478b704a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {AnySchemaObject} from "../../types" -import type {SchemaObjCxt} from ".." -import type {JSONType, RuleGroup, Rule} from "../rules" - -export function schemaHasRulesForType( - {schema, self}: SchemaObjCxt, - type: JSONType -): boolean | undefined { - const group = self.RULES.types[type] - return group && group !== true && shouldUseGroup(schema, group) -} - -export function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean { - return group.rules.some((rule) => shouldUseRule(schema, rule)) -} - -export function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined { - return ( - schema[rule.keyword] !== undefined || - rule.definition.implements?.some((kwd) => schema[kwd] !== undefined) - ) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts deleted file mode 100644 index 15635501..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt} from "../../types" -import type {SchemaCxt} from ".." -import {reportError} from "../errors" -import {_, Name} from "../codegen" -import N from "../names" - -const boolError: KeywordErrorDefinition = { - message: "boolean schema is false", -} - -export function topBoolOrEmptySchema(it: SchemaCxt): void { - const {gen, schema, validateName} = it - if (schema === false) { - falseSchemaError(it, false) - } else if (typeof schema == "object" && schema.$async === true) { - gen.return(N.data) - } else { - gen.assign(_`${validateName}.errors`, null) - gen.return(true) - } -} - -export function boolOrEmptySchema(it: SchemaCxt, valid: Name): void { - const {gen, schema} = it - if (schema === false) { - gen.var(valid, false) // TODO var - falseSchemaError(it) - } else { - gen.var(valid, true) // TODO var - } -} - -function falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void { - const {gen, data} = it - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt: KeywordErrorCxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - } - reportError(cxt, boolError, undefined, overrideAllErrors) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts deleted file mode 100644 index b315c2ce..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +++ /dev/null @@ -1,229 +0,0 @@ -import type { - KeywordErrorDefinition, - KeywordErrorCxt, - ErrorObject, - AnySchemaObject, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {isJSONType, JSONType} from "../rules" -import {schemaHasRulesForType} from "./applicability" -import {reportError} from "../errors" -import {_, nil, and, not, operators, Code, Name} from "../codegen" -import {toHash, schemaRefOrVal} from "../util" - -export enum DataType { - Correct, - Wrong, -} - -export function getSchemaTypes(schema: AnySchemaObject): JSONType[] { - const types = getJSONTypes(schema.type) - const hasNull = types.includes("null") - if (hasNull) { - if (schema.nullable === false) throw new Error("type: null contradicts nullable: false") - } else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"') - } - if (schema.nullable === true) types.push("null") - } - return types -} - -export function getJSONTypes(ts: unknown | unknown[]): JSONType[] { - const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : [] - if (types.every(isJSONType)) return types - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")) -} - -export function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean { - const {gen, data, opts} = it - const coerceTo = coerceToTypes(types, opts.coerceTypes) - const checkTypes = - types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0])) - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong) - gen.if(wrongType, () => { - if (coerceTo.length) coerceData(it, types, coerceTo) - else reportTypeError(it) - }) - } - return checkTypes -} - -const COERCIBLE: Set = new Set(["string", "number", "integer", "boolean", "null"]) -function coerceToTypes(types: JSONType[], coerceTypes?: boolean | "array"): JSONType[] { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : [] -} - -function coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void { - const {gen, data, opts} = it - const dataType = gen.let("dataType", _`typeof ${data}`) - const coerced = gen.let("coerced", _`undefined`) - if (opts.coerceTypes === "array") { - gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => - gen - .assign(data, _`${data}[0]`) - .assign(dataType, _`typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)) - ) - } - gen.if(_`${coerced} !== undefined`) - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t) - } - } - gen.else() - reportTypeError(it) - gen.endIf() - - gen.if(_`${coerced} !== undefined`, () => { - gen.assign(data, coerced) - assignParentData(it, coerced) - }) - - function coerceSpecificType(t: string): void { - switch (t) { - case "string": - gen - .elseIf(_`${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, _`"" + ${data}`) - .elseIf(_`${data} === null`) - .assign(coerced, _`""`) - return - case "number": - gen - .elseIf( - _`${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})` - ) - .assign(coerced, _`+${data}`) - return - case "integer": - gen - .elseIf( - _`${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))` - ) - .assign(coerced, _`+${data}`) - return - case "boolean": - gen - .elseIf(_`${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf(_`${data} === "true" || ${data} === 1`) - .assign(coerced, true) - return - case "null": - gen.elseIf(_`${data} === "" || ${data} === 0 || ${data} === false`) - gen.assign(coerced, null) - return - - case "array": - gen - .elseIf( - _`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null` - ) - .assign(coerced, _`[${data}]`) - } - } -} - -function assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void { - // TODO use gen.property - gen.if(_`${parentData} !== undefined`, () => - gen.assign(_`${parentData}[${parentDataProperty}]`, expr) - ) -} - -export function checkDataType( - dataType: JSONType, - data: Name, - strictNums?: boolean | "log", - correct = DataType.Correct -): Code { - const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ - let cond: Code - switch (dataType) { - case "null": - return _`${data} ${EQ} null` - case "array": - cond = _`Array.isArray(${data})` - break - case "object": - cond = _`${data} && typeof ${data} == "object" && !Array.isArray(${data})` - break - case "integer": - cond = numCond(_`!(${data} % 1) && !isNaN(${data})`) - break - case "number": - cond = numCond() - break - default: - return _`typeof ${data} ${EQ} ${dataType}` - } - return correct === DataType.Correct ? cond : not(cond) - - function numCond(_cond: Code = nil): Code { - return and(_`typeof ${data} == "number"`, _cond, strictNums ? _`isFinite(${data})` : nil) - } -} - -export function checkDataTypes( - dataTypes: JSONType[], - data: Name, - strictNums?: boolean | "log", - correct?: DataType -): Code { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct) - } - let cond: Code - const types = toHash(dataTypes) - if (types.array && types.object) { - const notObj = _`typeof ${data} != "object"` - cond = types.null ? notObj : _`!${data} || ${notObj}` - delete types.null - delete types.array - delete types.object - } else { - cond = nil - } - if (types.number) delete types.integer - for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct)) - return cond -} - -export type TypeError = ErrorObject<"type", {type: string}> - -const typeError: KeywordErrorDefinition = { - message: ({schema}) => `must be ${schema}`, - params: ({schema, schemaValue}) => - typeof schema == "string" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`, -} - -export function reportTypeError(it: SchemaObjCxt): void { - const cxt = getTypeErrorContext(it) - reportError(cxt, typeError) -} - -function getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt { - const {gen, data, schema} = it - const schemaCode = schemaRefOrVal(it, schema, "type") - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts deleted file mode 100644 index 2ad3d4df..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {SchemaObjCxt} from ".." -import {_, getProperty, stringify} from "../codegen" -import {checkStrictMode} from "../util" - -export function assignDefaults(it: SchemaObjCxt, ty?: string): void { - const {properties, items} = it.schema - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default) - } - } else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i: number) => assignDefault(it, i, sch.default)) - } -} - -function assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void { - const {gen, compositeRule, data, opts} = it - if (defaultValue === undefined) return - const childData = _`${data}${getProperty(prop)}` - if (compositeRule) { - checkStrictMode(it, `default is ignored for: ${childData}`) - return - } - - let condition = _`${childData} === undefined` - if (opts.useDefaults === "empty") { - condition = _`${condition} || ${childData} === null || ${childData} === ""` - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, _`${childData} = ${stringify(defaultValue)}`) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts deleted file mode 100644 index f5910c3a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +++ /dev/null @@ -1,573 +0,0 @@ -import type { - AddedKeywordDefinition, - AnySchema, - AnySchemaObject, - KeywordErrorCxt, - KeywordCxtParams, -} from "../../types" -import type {SchemaCxt, SchemaObjCxt} from ".." -import type {InstanceOptions} from "../../core" -import {boolOrEmptySchema, topBoolOrEmptySchema} from "./boolSchema" -import {coerceAndCheckDataType, getSchemaTypes} from "./dataType" -import {shouldUseGroup, shouldUseRule} from "./applicability" -import {checkDataType, checkDataTypes, reportTypeError, DataType} from "./dataType" -import {assignDefaults} from "./defaults" -import {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from "./keyword" -import {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from "./subschema" -import {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import {resolveUrl} from "../resolve" -import { - schemaRefOrVal, - schemaHasRulesButRef, - checkUnknownRules, - checkStrictMode, - unescapeJsonPointer, - mergeEvaluated, -} from "../util" -import type {JSONType, Rule, RuleGroup} from "../rules" -import { - ErrorPaths, - reportError, - reportExtraError, - resetErrorsCount, - keyword$DataError, -} from "../errors" - -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -export function validateFunctionCode(it: SchemaCxt): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it) - return - } - } - validateFunction(it, () => topBoolOrEmptySchema(it)) -} - -function validateFunction( - {gen, validateName, schema, schemaEnv, opts}: SchemaCxt, - body: Block -): void { - if (opts.code.es5) { - gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => { - gen.code(_`"use strict"; ${funcSourceUrl(schema, opts)}`) - destructureValCxtES5(gen, opts) - gen.code(body) - }) - } else { - gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => - gen.code(funcSourceUrl(schema, opts)).code(body) - ) - } -} - -function destructureValCxt(opts: InstanceOptions): Code { - return _`{${N.instancePath}="", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${ - N.data - }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}` -} - -function destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void { - gen.if( - N.valCxt, - () => { - gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`) - gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`) - gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`) - gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`) - }, - () => { - gen.var(N.instancePath, _`""`) - gen.var(N.parentData, _`undefined`) - gen.var(N.parentDataProperty, _`undefined`) - gen.var(N.rootData, N.data) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`) - } - ) -} - -function topSchemaObjCode(it: SchemaObjCxt): void { - const {schema, opts, gen} = it - validateFunction(it, () => { - if (opts.$comment && schema.$comment) commentKeyword(it) - checkNoDefault(it) - gen.let(N.vErrors, null) - gen.let(N.errors, 0) - if (opts.unevaluated) resetEvaluated(it) - typeAndKeywords(it) - returnResults(it) - }) - return -} - -function resetEvaluated(it: SchemaObjCxt): void { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const {gen, validateName} = it - it.evaluated = gen.const("evaluated", _`${validateName}.evaluated`) - gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`)) - gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`)) -} - -function funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code { - const schId = typeof schema == "object" && schema[opts.schemaId] - return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil -} - -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it: SchemaCxt, valid: Name): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid) - return - } - } - boolOrEmptySchema(it, valid) -} - -function schemaCxtHasRules({schema, self}: SchemaCxt): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (self.RULES.all[key]) return true - return false -} - -function isSchemaObj(it: SchemaCxt): it is SchemaObjCxt { - return typeof it.schema != "boolean" -} - -function subSchemaObjCode(it: SchemaObjCxt, valid: Name): void { - const {schema, gen, opts} = it - if (opts.$comment && schema.$comment) commentKeyword(it) - updateContext(it) - checkAsyncSchema(it) - const errsCount = gen.const("_errs", N.errors) - typeAndKeywords(it, errsCount) - // TODO var - gen.var(valid, _`${errsCount} === ${N.errors}`) -} - -function checkKeywords(it: SchemaObjCxt): void { - checkUnknownRules(it) - checkRefsAndKeywords(it) -} - -function typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void { - if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount) - const types = getSchemaTypes(it.schema) - const checkedTypes = coerceAndCheckDataType(it, types) - schemaKeywords(it, types, !checkedTypes, errsCount) -} - -function checkRefsAndKeywords(it: SchemaObjCxt): void { - const {schema, errSchemaPath, opts, self} = it - if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`) - } -} - -function checkNoDefault(it: SchemaObjCxt): void { - const {schema, opts} = it - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - checkStrictMode(it, "default is ignored in the schema root") - } -} - -function updateContext(it: SchemaObjCxt): void { - const schId = it.schema[it.opts.schemaId] - if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId) -} - -function checkAsyncSchema(it: SchemaObjCxt): void { - if (it.schema.$async && !it.schemaEnv.$async) throw new Error("async schema in sync schema") -} - -function commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void { - const msg = schema.$comment - if (opts.$comment === true) { - gen.code(_`${N.self}.logger.log(${msg})`) - } else if (typeof opts.$comment == "function") { - const schemaPath = str`${errSchemaPath}/$comment` - const rootName = gen.scopeValue("root", {ref: schemaEnv.root}) - gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`) - } -} - -function returnResults(it: SchemaCxt): void { - const {gen, schemaEnv, validateName, ValidationError, opts} = it - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if( - _`${N.errors} === 0`, - () => gen.return(N.data), - () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`) - ) - } else { - gen.assign(_`${validateName}.errors`, N.vErrors) - if (opts.unevaluated) assignEvaluated(it) - gen.return(_`${N.errors} === 0`) - } -} - -function assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void { - if (props instanceof Name) gen.assign(_`${evaluated}.props`, props) - if (items instanceof Name) gen.assign(_`${evaluated}.items`, items) -} - -function schemaKeywords( - it: SchemaObjCxt, - types: JSONType[], - typeErrors: boolean, - errsCount?: Name -): void { - const {gen, schema, data, allErrors, opts, self} = it - const {RULES} = self - if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", (RULES.all.$ref as Rule).definition)) // TODO typecast - return - } - if (!opts.jtd) checkStrictTypes(it, types) - gen.block(() => { - for (const group of RULES.rules) groupKeywords(group) - groupKeywords(RULES.post) - }) - - function groupKeywords(group: RuleGroup): void { - if (!shouldUseGroup(schema, group)) return - if (group.type) { - gen.if(checkDataType(group.type, data, opts.strictNumbers)) - iterateKeywords(it, group) - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else() - reportTypeError(it) - } - gen.endIf() - } else { - iterateKeywords(it, group) - } - // TODO make it "ok" call? - if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`) - } -} - -function iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void { - const { - gen, - schema, - opts: {useDefaults}, - } = it - if (useDefaults) assignDefaults(it, group.type) - gen.block(() => { - for (const rule of group.rules) { - if (shouldUseRule(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type) - } - } - }) -} - -function checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (it.schemaEnv.meta || !it.opts.strictTypes) return - checkContextTypes(it, types) - if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types) - checkKeywordTypes(it, it.dataTypes) -} - -function checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (!types.length) return - if (!it.dataTypes.length) { - it.dataTypes = types - return - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`) - } - }) - it.dataTypes = it.dataTypes.filter((t) => includesType(types, t)) -} - -function checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword") - } -} - -function checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void { - const rules = it.self.RULES.all - for (const keyword in rules) { - const rule = rules[keyword] - if (typeof rule == "object" && shouldUseRule(it.schema, rule)) { - const {type} = rule.definition - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`) - } - } - } -} - -function hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")) -} - -function includesType(ts: JSONType[], t: JSONType): boolean { - return ts.includes(t) || (t === "integer" && ts.includes("number")) -} - -function strictTypesError(it: SchemaObjCxt, msg: string): void { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - msg += ` at "${schemaPath}" (strictTypes)` - checkStrictMode(it, msg, it.opts.strictTypes) -} - -export class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen - readonly allErrors?: boolean - readonly keyword: string - readonly data: Name // Name referencing the current level of the data instance - readonly $data?: string | false - schema: any // keyword value in the schema - readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value - readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data) - readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema - readonly parentSchema: AnySchemaObject - readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword, - // requires option trackErrors in keyword definition - params: KeywordCxtParams // object to pass parameters to error messages from keyword code - readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean) - readonly def: AddedKeywordDefinition - - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) { - validateKeywordUsage(it, def, keyword) - this.gen = it.gen - this.allErrors = it.allErrors - this.keyword = keyword - this.data = it.data - this.schema = it.schema[keyword] - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data - this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data) - this.schemaType = def.schemaType - this.parentSchema = it.schema - this.params = {} - this.it = it - this.def = def - - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)) - } else { - this.schemaCode = this.schemaValue - if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`) - } - } - - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", N.errors) - } - } - - result(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.failResult(not(condition), successAction, failAction) - } - - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.gen.if(condition) - if (failAction) failAction() - else this.error() - if (successAction) { - this.gen.else() - successAction() - if (this.allErrors) this.gen.endIf() - } else { - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - } - - pass(condition: Code, failAction?: () => void): void { - this.failResult(not(condition), undefined, failAction) - } - - fail(condition?: Code): void { - if (condition === undefined) { - this.error() - if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize - return - } - this.gen.if(condition) - this.error() - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - - fail$data(condition: Code): void { - if (!this.$data) return this.fail(condition) - const {schemaCode} = this - this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`) - } - - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void { - if (errorParams) { - this.setParams(errorParams) - this._error(append, errorPaths) - this.setParams({}) - return - } - this._error(append, errorPaths) - } - - private _error(append?: boolean, errorPaths?: ErrorPaths): void { - ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths) - } - - $dataError(): void { - reportError(this, this.def.$dataError || keyword$DataError) - } - - reset(): void { - if (this.errsCount === undefined) throw new Error('add "trackErrors" to keyword definition') - resetErrorsCount(this.gen, this.errsCount) - } - - ok(cond: Code | boolean): void { - if (!this.allErrors) this.gen.if(cond) - } - - setParams(obj: KeywordCxtParams, assign?: true): void { - if (assign) Object.assign(this.params, obj) - else this.params = obj - } - - block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void { - this.gen.block(() => { - this.check$data(valid, $dataValid) - codeBlock() - }) - } - - check$data(valid: Name = nil, $dataValid: Code = nil): void { - if (!this.$data) return - const {gen, schemaCode, schemaType, def} = this - gen.if(or(_`${schemaCode} === undefined`, $dataValid)) - if (valid !== nil) gen.assign(valid, true) - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()) - this.$dataError() - if (valid !== nil) gen.assign(valid, false) - } - gen.else() - } - - invalid$data(): Code { - const {gen, schemaCode, schemaType, def, it} = this - return or(wrong$DataType(), invalid$DataSchema()) - - function wrong$DataType(): Code { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof Name)) throw new Error("ajv implementation error") - const st = Array.isArray(schemaType) ? schemaType : [schemaType] - return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}` - } - return nil - } - - function invalid$DataSchema(): Code { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", {ref: def.validateSchema}) // TODO value.code for standalone - return _`!${validateSchemaRef}(${schemaCode})` - } - return nil - } - } - - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt { - const subschema = getSubschema(this.it, appl) - extendSubschemaData(subschema, this.it, appl) - extendSubschemaMode(subschema, appl) - const nextContext = {...this.it, ...subschema, items: undefined, props: undefined} - subschemaCode(nextContext, valid) - return nextContext - } - - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void { - const {it, gen} = this - if (!it.opts.unevaluated) return - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName) - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName) - } - } - - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void { - const {it, gen} = this - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name)) - return true - } - } -} - -function keywordCode( - it: SchemaObjCxt, - keyword: string, - def: AddedKeywordDefinition, - ruleType?: JSONType -): void { - const cxt = new KeywordCxt(it, def, keyword) - if ("code" in def) { - def.code(cxt, ruleType) - } else if (cxt.$data && def.validate) { - funcKeywordCode(cxt, def) - } else if ("macro" in def) { - macroKeywordCode(cxt, def) - } else if (def.compile || def.validate) { - funcKeywordCode(cxt, def) - } -} - -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/ -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/ -export function getData( - $data: string, - {dataLevel, dataNames, dataPathArr}: SchemaCxt -): Code | number { - let jsonPointer - let data: Code - if ($data === "") return N.rootData - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`) - jsonPointer = $data - data = N.rootData - } else { - const matches = RELATIVE_JSON_POINTER.exec($data) - if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`) - const up: number = +matches[1] - jsonPointer = matches[2] - if (jsonPointer === "#") { - if (up >= dataLevel) throw new Error(errorMsg("property/index", up)) - return dataPathArr[dataLevel - up] - } - if (up > dataLevel) throw new Error(errorMsg("data", up)) - data = dataNames[dataLevel - up] - if (!jsonPointer) return data - } - - let expr = data - const segments = jsonPointer.split("/") - for (const segment of segments) { - if (segment) { - data = _`${data}${getProperty(unescapeJsonPointer(segment))}` - expr = _`${expr} && ${data}` - } - } - return expr - - function errorMsg(pointerType: string, up: number): string { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}` - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts deleted file mode 100644 index f854aa71..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +++ /dev/null @@ -1,171 +0,0 @@ -import type {KeywordCxt} from "." -import type { - AnySchema, - SchemaValidateFunction, - AnyValidateFunction, - AddedKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, nil, not, stringify, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import type {JSONType} from "../rules" -import {callValidateCode} from "../../vocabularies/code" -import {extendErrors} from "../errors" - -type KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction - -export function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, it} = cxt - const macroSchema = def.macro.call(it.self, schema, parentSchema, it) - const schemaRef = useKeyword(gen, keyword, macroSchema) - if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true) - - const valid = gen.name("valid") - cxt.subschema( - { - schema: macroSchema, - schemaPath: nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, - valid - ) - cxt.pass(valid, () => cxt.error(true)) -} - -export function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, $data, it} = cxt - checkAsyncKeyword(it, def) - const validate = - !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate - const validateRef = useKeyword(gen, keyword, validate) - const valid = gen.let("valid") - cxt.block$data(valid, validateKeyword) - cxt.ok(def.valid ?? valid) - - function validateKeyword(): void { - if (def.errors === false) { - assignValid() - if (def.modifying) modifyData(cxt) - reportErrs(() => cxt.error()) - } else { - const ruleErrs = def.async ? validateAsync() : validateSync() - if (def.modifying) modifyData(cxt) - reportErrs(() => addErrs(cxt, ruleErrs)) - } - } - - function validateAsync(): Name { - const ruleErrs = gen.let("ruleErrs", null) - gen.try( - () => assignValid(_`await `), - (e) => - gen.assign(valid, false).if( - _`${e} instanceof ${it.ValidationError as Name}`, - () => gen.assign(ruleErrs, _`${e}.errors`), - () => gen.throw(e) - ) - ) - return ruleErrs - } - - function validateSync(): Code { - const validateErrs = _`${validateRef}.errors` - gen.assign(validateErrs, null) - assignValid(nil) - return validateErrs - } - - function assignValid(_await: Code = def.async ? _`await ` : nil): void { - const passCxt = it.opts.passContext ? N.this : N.self - const passSchema = !(("compile" in def && !$data) || def.schema === false) - gen.assign( - valid, - _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`, - def.modifying - ) - } - - function reportErrs(errors: () => void): void { - gen.if(not(def.valid ?? valid), errors) - } -} - -function modifyData(cxt: KeywordCxt): void { - const {gen, data, it} = cxt - gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`)) -} - -function addErrs(cxt: KeywordCxt, errs: Code): void { - const {gen} = cxt - gen.if( - _`Array.isArray(${errs})`, - () => { - gen - .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) - .assign(N.errors, _`${N.vErrors}.length`) - extendErrors(cxt) - }, - () => cxt.error() - ) -} - -function checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void { - if (def.async && !schemaEnv.$async) throw new Error("async keyword in sync schema") -} - -function useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name { - if (result === undefined) throw new Error(`keyword "${keyword}" failed to compile`) - return gen.scopeValue( - "keyword", - typeof result == "function" ? {ref: result} : {ref: result, code: stringify(result)} - ) -} - -export function validSchemaType( - schema: unknown, - schemaType: JSONType[], - allowUndefined = false -): boolean { - // TODO add tests - return ( - !schemaType.length || - schemaType.some((st) => - st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined") - ) - ) -} - -export function validateKeywordUsage( - {schema, opts, self, errSchemaPath}: SchemaObjCxt, - def: AddedKeywordDefinition, - keyword: string -): void { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error") - } - - const deps = def.dependencies - if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`) - } - - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]) - if (!valid) { - const msg = - `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors) - if (opts.validateSchema === "log") self.logger.error(msg) - else throw new Error(msg) - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts b/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts deleted file mode 100644 index 9072ed77..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type {AnySchema} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, str, getProperty, Code, Name} from "../codegen" -import {escapeFragment, getErrorPath, Type} from "../util" -import type {JSONType} from "../rules" - -export interface SubschemaContext { - // TODO use Optional? align with SchemCxt property types - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef?: Code - errorPath?: Code - dataLevel?: number - dataTypes?: JSONType[] - data?: Name - parentData?: Name - parentDataProperty?: Code | number - dataNames?: Name[] - dataPathArr?: (Code | number)[] - propertyName?: Name - jtdDiscriminator?: string - jtdMetadata?: boolean - compositeRule?: true - createErrors?: boolean - allErrors?: boolean -} - -export type SubschemaArgs = Partial<{ - keyword: string - schemaProp: string | number - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef: Code - data: Name | Code - dataProp: Code | string | number - dataTypes: JSONType[] - definedProperties: Set - propertyName: Name - dataPropType: Type - jtdDiscriminator: string - jtdMetadata: boolean - compositeRule: true - createErrors: boolean - allErrors: boolean -}> - -export function getSubschema( - it: SchemaObjCxt, - {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs -): SubschemaContext { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed') - } - - if (keyword !== undefined) { - const sch = it.schema[keyword] - return schemaProp === undefined - ? { - schema: sch, - schemaPath: _`${it.schemaPath}${getProperty(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`, - } - } - - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"') - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - } - } - - throw new Error('either "keyword" or "schema" must be passed') -} - -export function extendSubschemaData( - subschema: SubschemaContext, - it: SchemaObjCxt, - {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs -): void { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed') - } - - const {gen} = it - - if (dataProp !== undefined) { - const {errorPath, dataPathArr, opts} = it - const nextData = gen.let("data", _`${it.data}${getProperty(dataProp)}`, true) - dataContextProps(nextData) - subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}` - subschema.parentDataProperty = _`${dataProp}` - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty] - } - - if (data !== undefined) { - const nextData = data instanceof Name ? data : gen.let("data", data, true) // replaceable if used once? - dataContextProps(nextData) - if (propertyName !== undefined) subschema.propertyName = propertyName - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - - if (dataTypes) subschema.dataTypes = dataTypes - - function dataContextProps(_nextData: Name): void { - subschema.data = _nextData - subschema.dataLevel = it.dataLevel + 1 - subschema.dataTypes = [] - it.definedProperties = new Set() - subschema.parentData = it.data - subschema.dataNames = [...it.dataNames, _nextData] - } -} - -export function extendSubschemaMode( - subschema: SubschemaContext, - {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs -): void { - if (compositeRule !== undefined) subschema.compositeRule = compositeRule - if (createErrors !== undefined) subschema.createErrors = createErrors - if (allErrors !== undefined) subschema.allErrors = allErrors - subschema.jtdDiscriminator = jtdDiscriminator // not inherited - subschema.jtdMetadata = jtdMetadata // not inherited -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/core.ts b/node_modules/ajv-formats/node_modules/ajv/lib/core.ts deleted file mode 100644 index 3686ffe7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +++ /dev/null @@ -1,887 +0,0 @@ -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - AnyValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {SchemaCxt, SchemaObjCxt} from "./compile" -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv - [prop: string]: any -} - -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -import type { - Schema, - AnySchema, - AnySchemaObject, - SchemaObject, - AsyncSchema, - Vocabulary, - KeywordDefinition, - AddedKeywordDefinition, - AnyValidateFunction, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - Format, - AddedFormat, - RegExpEngine, - UriResolver, -} from "./types" -import type {JSONSchemaType} from "./types/json-schema" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import ValidationError from "./runtime/validation_error" -import MissingRefError from "./compile/ref_error" -import {getRules, ValidationRules, Rule, RuleGroup, JSONType} from "./compile/rules" -import {SchemaEnv, compileSchema, resolveSchema} from "./compile" -import {Code, ValueScope} from "./compile/codegen" -import {normalizeId, getSchemaRefs} from "./compile/resolve" -import {getJSONTypes} from "./compile/validate/dataType" -import {eachItem} from "./compile/util" -import * as $dataRefSchema from "./refs/data.json" - -import DefaultUriResolver from "./runtime/uri" - -const defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags) -defaultRegExp.code = "new RegExp" - -const META_IGNORE_OPTIONS: (keyof Options)[] = ["removeAdditional", "useDefaults", "coerceTypes"] -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]) - -export type Options = CurrentOptions & DeprecatedOptions - -export interface CurrentOptions { - // strict mode options (NEW) - strict?: boolean | "log" - strictSchema?: boolean | "log" - strictNumbers?: boolean | "log" - strictTypes?: boolean | "log" - strictTuples?: boolean | "log" - strictRequired?: boolean | "log" - allowMatchingProperties?: boolean // disables a strict mode restriction - allowUnionTypes?: boolean - validateFormats?: boolean - // validation and reporting options: - $data?: boolean - allErrors?: boolean - verbose?: boolean - discriminator?: boolean - unicodeRegExp?: boolean - timestamp?: "string" | "date" // JTD only - parseDate?: boolean // JTD only - allowDate?: boolean // JTD only - $comment?: - | true - | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown) - formats?: {[Name in string]?: Format} - keywords?: Vocabulary - schemas?: AnySchema[] | {[Key in string]?: AnySchema} - logger?: Logger | false - loadSchema?: (uri: string) => Promise - // options to modify validated data: - removeAdditional?: boolean | "all" | "failing" - useDefaults?: boolean | "empty" - coerceTypes?: boolean | "array" - // advanced options: - next?: boolean // NEW - unevaluated?: boolean // NEW - dynamicRef?: boolean // NEW - schemaId?: "id" | "$id" - jtd?: boolean // NEW - meta?: SchemaObject | boolean - defaultMeta?: string | AnySchemaObject - validateSchema?: boolean | "log" - addUsedSchema?: boolean - inlineRefs?: boolean | number - passContext?: boolean - loopRequired?: number - loopEnum?: number // NEW - ownProperties?: boolean - multipleOfPrecision?: number - int32range?: boolean // JTD only - messages?: boolean - code?: CodeOptions // NEW - uriResolver?: UriResolver -} - -export interface CodeOptions { - es5?: boolean - esm?: boolean - lines?: boolean - optimize?: boolean | number - formats?: Code // code to require (or construct) map of available formats - for standalone code - source?: boolean - process?: (code: string, schema?: SchemaEnv) => string - regExp?: RegExpEngine -} - -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine - optimize: number -} - -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean - /** @deprecated */ - jsPropertySyntax?: boolean // added instead of jsonPointers - /** @deprecated */ - unicode?: boolean -} - -interface RemovedOptions { - format?: boolean - errorDataPath?: "object" | "property" - nullable?: boolean // "nullable" keyword is supported by default - jsonPointers?: boolean - extendRefs?: true | "ignore" | "fail" - missingRefs?: true | "ignore" | "fail" - processCode?: (code: string, schema?: SchemaEnv) => string - sourceCode?: boolean - strictDefaults?: boolean - strictKeywords?: boolean - uniqueItems?: boolean - unknownFormats?: true | string[] | "ignore" - cache?: any - serialize?: (schema: AnySchema) => unknown - ajvErrors?: boolean -} - -type OptionsInfo = { - [K in keyof T]-?: string | undefined -} - -const removedOptions: OptionsInfo = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -} - -const deprecatedOptions: OptionsInfo = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -} - -type RequiredInstanceOptions = { - [K in - | "strictSchema" - | "strictNumbers" - | "strictTypes" - | "strictTuples" - | "strictRequired" - | "inlineRefs" - | "loopRequired" - | "loopEnum" - | "meta" - | "messages" - | "schemaId" - | "addUsedSchema" - | "validateSchema" - | "validateFormats" - | "int32range" - | "unicodeRegExp" - | "uriResolver"]: NonNullable -} & {code: InstanceCodeOptions} - -export type InstanceOptions = Options & RequiredInstanceOptions - -const MAX_EXPRESSION = 200 - -// eslint-disable-next-line complexity -function requiredOptions(o: Options): RequiredInstanceOptions { - const s = o.strict - const _optz = o.code?.optimize - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0 - const regExp = o.code?.regExp ?? defaultRegExp - const uriResolver = o.uriResolver ?? DefaultUriResolver - return { - strictSchema: o.strictSchema ?? s ?? true, - strictNumbers: o.strictNumbers ?? s ?? true, - strictTypes: o.strictTypes ?? s ?? "log", - strictTuples: o.strictTuples ?? s ?? "log", - strictRequired: o.strictRequired ?? s ?? false, - code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp}, - loopRequired: o.loopRequired ?? MAX_EXPRESSION, - loopEnum: o.loopEnum ?? MAX_EXPRESSION, - meta: o.meta ?? true, - messages: o.messages ?? true, - inlineRefs: o.inlineRefs ?? true, - schemaId: o.schemaId ?? "$id", - addUsedSchema: o.addUsedSchema ?? true, - validateSchema: o.validateSchema ?? true, - validateFormats: o.validateFormats ?? true, - unicodeRegExp: o.unicodeRegExp ?? true, - int32range: o.int32range ?? true, - uriResolver: uriResolver, - } -} - -export interface Logger { - log(...args: unknown[]): unknown - warn(...args: unknown[]): unknown - error(...args: unknown[]): unknown -} - -export default class Ajv { - opts: InstanceOptions - errors?: ErrorObject[] | null // errors from the last validation - logger: Logger - // shared external scope values for compiled functions - readonly scope: ValueScope - readonly schemas: {[Key in string]?: SchemaEnv} = {} - readonly refs: {[Ref in string]?: SchemaEnv | string} = {} - readonly formats: {[Name in string]?: AddedFormat} = {} - readonly RULES: ValidationRules - readonly _compilations: Set = new Set() - private readonly _loading: {[Ref in string]?: Promise} = {} - private readonly _cache: Map = new Map() - private readonly _metaOpts: InstanceOptions - - static ValidationError = ValidationError - static MissingRefError = MissingRefError - - constructor(opts: Options = {}) { - opts = this.opts = {...opts, ...requiredOptions(opts)} - const {es5, lines} = this.opts.code - - this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines}) - this.logger = getLogger(opts.logger) - const formatOpt = opts.validateFormats - opts.validateFormats = false - - this.RULES = getRules() - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED") - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn") - this._metaOpts = getMetaSchemaOptions.call(this) - - if (opts.formats) addInitialFormats.call(this) - this._addVocabularies() - this._addDefaultMetaSchema() - if (opts.keywords) addInitialKeywords.call(this, opts.keywords) - if (typeof opts.meta == "object") this.addMetaSchema(opts.meta) - addInitialSchemas.call(this) - opts.validateFormats = formatOpt - } - - _addVocabularies(): void { - this.addKeyword("$async") - } - - _addDefaultMetaSchema(): void { - const {$data, meta, schemaId} = this.opts - let _dataRefSchema: SchemaObject = $dataRefSchema - if (schemaId === "id") { - _dataRefSchema = {...$dataRefSchema} - _dataRefSchema.id = _dataRefSchema.$id - delete _dataRefSchema.$id - } - if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - const {meta, schemaId} = this.opts - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined) - } - - // Validate data using schema - // AnySchema will be compiled and cached using schema itself as a key for Map - validate(schema: Schema | string, data: unknown): boolean - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - validate(schema: JTDSchemaType, data: unknown): data is T - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - validate( - schema: T, - data: unknown - ): data is JTDDataType - validate(schema: AsyncSchema, data: unknown | T): Promise - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise - validate( - schemaKeyRef: AnySchema | string, // key, ref or schema object - data: unknown | T // to be validated - ): boolean | Promise { - let v: AnyValidateFunction | undefined - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef) - if (!v) throw new Error(`no schema with key or ref "${schemaKeyRef}"`) - } else { - v = this.compile(schemaKeyRef) - } - - const valid = v(data) - if (!("$async" in v)) this.errors = v.errors - return valid - } - - // Create validation function for passed schema - // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords. - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - compile( - schema: T, - _meta?: boolean - ): ValidateFunction> - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction { - const sch = this._addSchema(schema, _meta) - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction - } - - // Creates validating function for passed schema with asynchronous loading of missing schemas. - // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema. - // TODO allow passing schema URI - // meta - optional true to compile meta-schema - compileAsync( - schema: SchemaObject | JSONSchemaType, - _meta?: boolean - ): Promise> - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise> - compileAsync(schema: AsyncSchema, meta?: boolean): Promise> - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function") - } - const {loadSchema} = this.opts - return runCompileAsync.call(this, schema, meta) - - async function runCompileAsync( - this: Ajv, - _schema: AnySchemaObject, - _meta?: boolean - ): Promise { - await loadMetaSchema.call(this, _schema.$schema) - const sch = this._addSchema(_schema, _meta) - return sch.validate || _compileAsync.call(this, sch) - } - - async function loadMetaSchema(this: Ajv, $ref?: string): Promise { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, {$ref}, true) - } - } - - async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise { - try { - return this._compileSchemaEnv(sch) - } catch (e) { - if (!(e instanceof MissingRefError)) throw e - checkLoaded.call(this, e) - await loadMissingSchema.call(this, e.missingSchema) - return _compileAsync.call(this, sch) - } - } - - function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`) - } - } - - async function loadMissingSchema(this: Ajv, ref: string): Promise { - const _schema = await _loadSchema.call(this, ref) - if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema) - if (!this.refs[ref]) this.addSchema(_schema, ref, meta) - } - - async function _loadSchema(this: Ajv, ref: string): Promise { - const p = this._loading[ref] - if (p) return p - try { - return await (this._loading[ref] = loadSchema(ref)) - } finally { - delete this._loading[ref] - } - } - } - - // Adds schema to the instance - addSchema( - schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ): Ajv { - if (Array.isArray(schema)) { - for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema) - return this - } - let id: string | undefined - if (typeof schema === "object") { - const {schemaId} = this.opts - id = schema[schemaId] - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`) - } - } - key = normalizeId(key || id) - this._checkUnique(key) - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true) - return this - } - - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema( - schema: AnySchemaObject, - key?: string, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ): Ajv { - this.addSchema(schema, key, true, _validateSchema) - return this - } - - // Validate schema against its meta-schema - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise { - if (typeof schema == "boolean") return true - let $schema: string | AnySchemaObject | undefined - $schema = schema.$schema - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string") - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta() - if (!$schema) { - this.logger.warn("meta-schema not available") - this.errors = null - return true - } - const valid = this.validate($schema, schema) - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText() - if (this.opts.validateSchema === "log") this.logger.error(message) - else throw new Error(message) - } - return valid - } - - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef: string): AnyValidateFunction | undefined { - let sch - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") keyRef = sch - if (sch === undefined) { - const {schemaId} = this.opts - const root = new SchemaEnv({schema: {}, schemaId}) - sch = resolveSchema.call(this, root, keyRef) - if (!sch) return - this.refs[keyRef] = sch - } - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction | undefined - } - - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef) - this._removeAllSchemas(this.refs, schemaKeyRef) - return this - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas) - this._removeAllSchemas(this.refs) - this._cache.clear() - return this - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef) - if (typeof sch == "object") this._cache.delete(sch.schema) - delete this.schemas[schemaKeyRef] - delete this.refs[schemaKeyRef] - return this - } - case "object": { - const cacheKey = schemaKeyRef - this._cache.delete(cacheKey) - let id = schemaKeyRef[this.opts.schemaId] - if (id) { - id = normalizeId(id) - delete this.schemas[id] - delete this.refs[id] - } - return this - } - default: - throw new Error("ajv.removeSchema: invalid parameter") - } - } - - // add "vocabulary" - a collection of keywords - addVocabulary(definitions: Vocabulary): Ajv { - for (const def of definitions) this.addKeyword(def) - return this - } - - addKeyword( - kwdOrDef: string | KeywordDefinition, - def?: KeywordDefinition // deprecated - ): Ajv { - let keyword: string | string[] - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword") - def.keyword = keyword - } - } else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef - keyword = def.keyword - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array") - } - } else { - throw new Error("invalid addKeywords parameters") - } - - checkKeyword.call(this, keyword, def) - if (!def) { - eachItem(keyword, (kwd) => addRule.call(this, kwd)) - return this - } - keywordMetaschema.call(this, def) - const definition: AddedKeywordDefinition = { - ...def, - type: getJSONTypes(def.type), - schemaType: getJSONTypes(def.schemaType), - } - eachItem( - keyword, - definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)) - ) - return this - } - - getKeyword(keyword: string): AddedKeywordDefinition | boolean { - const rule = this.RULES.all[keyword] - return typeof rule == "object" ? rule.definition : !!rule - } - - // Remove keyword - removeKeyword(keyword: string): Ajv { - // TODO return type should be Ajv - const {RULES} = this - delete RULES.keywords[keyword] - delete RULES.all[keyword] - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword) - if (i >= 0) group.rules.splice(i, 1) - } - return this - } - - // Add format - addFormat(name: string, format: Format): Ajv { - if (typeof format == "string") format = new RegExp(format) - this.formats[name] = format - return this - } - - errorsText( - errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors - {separator = ", ", dataVar = "data"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar` - ): string { - if (!errors || errors.length === 0) return "No errors" - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg) - } - - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject { - const rules = this.RULES.all - metaSchema = JSON.parse(JSON.stringify(metaSchema)) - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1) // first segment is an empty string - let keywords = metaSchema - for (const seg of segments) keywords = keywords[seg] as AnySchemaObject - - for (const key in rules) { - const rule = rules[key] - if (typeof rule != "object") continue - const {$data} = rule.definition - const schema = keywords[key] as AnySchemaObject | undefined - if ($data && schema) keywords[key] = schemaOrData(schema) - } - } - - return metaSchema - } - - private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void { - for (const keyRef in schemas) { - const sch = schemas[keyRef] - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef] - } else if (sch && !sch.meta) { - this._cache.delete(sch.schema) - delete schemas[keyRef] - } - } - } - } - - _addSchema( - schema: AnySchema, - meta?: boolean, - baseId?: string, - validateSchema = this.opts.validateSchema, - addSchema = this.opts.addUsedSchema - ): SchemaEnv { - let id: string | undefined - const {schemaId} = this.opts - if (typeof schema == "object") { - id = schema[schemaId] - } else { - if (this.opts.jtd) throw new Error("schema must be object") - else if (typeof schema != "boolean") throw new Error("schema must be object or boolean") - } - let sch = this._cache.get(schema) - if (sch !== undefined) return sch - - baseId = normalizeId(id || baseId) - const localRefs = getSchemaRefs.call(this, schema, baseId) - sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs}) - this._cache.set(sch.schema, sch) - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) this._checkUnique(baseId) - this.refs[baseId] = sch - } - if (validateSchema) this.validateSchema(schema, true) - return sch - } - - private _checkUnique(id: string): void { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`) - } - } - - private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction { - if (sch.meta) this._compileMetaSchema(sch) - else compileSchema.call(this, sch) - - /* istanbul ignore if */ - if (!sch.validate) throw new Error("ajv implementation error") - return sch.validate - } - - private _compileMetaSchema(sch: SchemaEnv): void { - const currentOpts = this.opts - this.opts = this._metaOpts - try { - compileSchema.call(this, sch) - } finally { - this.opts = currentOpts - } - } -} - -export interface ErrorsTextOptions { - separator?: string - dataVar?: string -} - -function checkOptions( - this: Ajv, - checkOpts: OptionsInfo, - options: Options & RemovedOptions, - msg: string, - log: "warn" | "error" = "error" -): void { - for (const key in checkOpts) { - const opt = key as keyof typeof checkOpts - if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`) - } -} - -function getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined { - keyRef = normalizeId(keyRef) // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef] -} - -function addInitialSchemas(this: Ajv): void { - const optsSchemas = this.opts.schemas - if (!optsSchemas) return - if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas) - else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key) -} - -function addInitialFormats(this: Ajv): void { - for (const name in this.opts.formats) { - const format = this.opts.formats[name] - if (format) this.addFormat(name, format) - } -} - -function addInitialKeywords( - this: Ajv, - defs: Vocabulary | {[K in string]?: KeywordDefinition} -): void { - if (Array.isArray(defs)) { - this.addVocabulary(defs) - return - } - this.logger.warn("keywords option as map is deprecated, pass array") - for (const keyword in defs) { - const def = defs[keyword] as KeywordDefinition - if (!def.keyword) def.keyword = keyword - this.addKeyword(def) - } -} - -function getMetaSchemaOptions(this: Ajv): InstanceOptions { - const metaOpts = {...this.opts} - for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt] - return metaOpts -} - -const noLogs = {log() {}, warn() {}, error() {}} - -function getLogger(logger?: Partial | false): Logger { - if (logger === false) return noLogs - if (logger === undefined) return console - if (logger.log && logger.warn && logger.error) return logger as Logger - throw new Error("logger must implement log, warn and error methods") -} - -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i - -function checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void { - const {RULES} = this - eachItem(keyword, (kwd) => { - if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`) - if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`) - }) - if (!def) return - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function') - } -} - -function addRule( - this: Ajv, - keyword: string, - definition?: AddedKeywordDefinition, - dataType?: JSONType -): void { - const post = definition?.post - if (dataType && post) throw new Error('keyword with "post" flag cannot have "type"') - const {RULES} = this - let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType) - if (!ruleGroup) { - ruleGroup = {type: dataType, rules: []} - RULES.rules.push(ruleGroup) - } - RULES.keywords[keyword] = true - if (!definition) return - - const rule: Rule = { - keyword, - definition: { - ...definition, - type: getJSONTypes(definition.type), - schemaType: getJSONTypes(definition.schemaType), - }, - } - if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before) - else ruleGroup.rules.push(rule) - RULES.all[keyword] = rule - definition.implements?.forEach((kwd) => this.addKeyword(kwd)) -} - -function addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before) - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule) - } else { - ruleGroup.rules.push(rule) - this.logger.warn(`rule ${before} is not defined`) - } -} - -function keywordMetaschema(this: Ajv, def: KeywordDefinition): void { - let {metaSchema} = def - if (metaSchema === undefined) return - if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema) - def.validateSchema = this.compile(metaSchema, true) -} - -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -} - -function schemaOrData(schema: AnySchema): AnySchemaObject { - return {anyOf: [schema, $dataRef]} -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts b/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts deleted file mode 100644 index b53749ba..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type {AnySchemaObject, SchemaObject, JTDParser} from "./types" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import AjvCore, {CurrentOptions} from "./core" -import jtdVocabulary from "./vocabularies/jtd" -import jtdMetaSchema from "./refs/jtd-schema" -import compileSerializer from "./compile/jtd/serialize" -import compileParser from "./compile/jtd/parse" -import {SchemaEnv} from "./compile" - -const META_SCHEMA_ID = "JTD-meta-schema" - -type JTDOptions = CurrentOptions & { - // strict mode options not supported with JTD: - strict?: never - allowMatchingProperties?: never - allowUnionTypes?: never - validateFormats?: never - // validation and reporting options not supported with JTD: - $data?: never - verbose?: boolean - $comment?: never - formats?: never - loadSchema?: never - // options to modify validated data: - useDefaults?: never - coerceTypes?: never - // advanced options: - next?: never - unevaluated?: never - dynamicRef?: never - meta?: boolean - defaultMeta?: never - inlineRefs?: boolean - loopRequired?: never - multipleOfPrecision?: never -} - -class Ajv extends AjvCore { - constructor(opts: JTDOptions = {}) { - super({ - ...opts, - jtd: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(jtdVocabulary) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - this.addMetaSchema(jtdMetaSchema, META_SCHEMA_ID, false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } - - compileSerializer(schema: SchemaObject): (data: T) => string - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileSerializer(schema: JTDSchemaType): (data: T) => string - compileSerializer(schema: SchemaObject): (data: T) => string { - const sch = this._addSchema(schema) - return sch.serialize || this._compileSerializer(sch) - } - - compileParser(schema: SchemaObject): JTDParser - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileParser(schema: JTDSchemaType): JTDParser - compileParser(schema: SchemaObject): JTDParser { - const sch = this._addSchema(schema) - return (sch.parse || this._compileParser(sch)) as JTDParser - } - - private _compileSerializer(sch: SchemaEnv): (data: T) => string { - compileSerializer.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.serialize) throw new Error("ajv implementation error") - return sch.serialize - } - - private _compileParser(sch: SchemaEnv): JTDParser { - compileParser.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.parse) throw new Error("ajv implementation error") - return sch.parse - } -} - -module.exports = exports = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, - JTDParser, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {JTDErrorObject} from "./vocabularies/jtd" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} -export {JTDOptions} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts deleted file mode 100644 index b6ea7195..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts deleted file mode 100644 index 8e850d08..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as unevaluated from "./meta/unevaluated.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format-annotation.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json b/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts b/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts deleted file mode 100644 index c0198128..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +++ /dev/null @@ -1,130 +0,0 @@ -import {SchemaObject} from "../types" - -type MetaSchema = (root: boolean) => SchemaObject - -const shared: MetaSchema = (root) => { - const sch: SchemaObject = { - nullable: {type: "boolean"}, - metadata: { - optionalProperties: { - union: {elements: {ref: "schema"}}, - }, - additionalProperties: true, - }, - } - if (root) sch.definitions = {values: {ref: "schema"}} - return sch -} - -const emptyForm: MetaSchema = (root) => ({ - optionalProperties: shared(root), -}) - -const refForm: MetaSchema = (root) => ({ - properties: { - ref: {type: "string"}, - }, - optionalProperties: shared(root), -}) - -const typeForm: MetaSchema = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}) - -const enumForm: MetaSchema = (root) => ({ - properties: { - enum: {elements: {type: "string"}}, - }, - optionalProperties: shared(root), -}) - -const elementsForm: MetaSchema = (root) => ({ - properties: { - elements: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const propertiesForm: MetaSchema = (root) => ({ - properties: { - properties: {values: {ref: "schema"}}, - }, - optionalProperties: { - optionalProperties: {values: {ref: "schema"}}, - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const optionalPropertiesForm: MetaSchema = (root) => ({ - properties: { - optionalProperties: {values: {ref: "schema"}}, - }, - optionalProperties: { - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const discriminatorForm: MetaSchema = (root) => ({ - properties: { - discriminator: {type: "string"}, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}) - -const valuesForm: MetaSchema = (root) => ({ - properties: { - values: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const schema: MetaSchema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}) - -const jtdMetaSchema: SchemaObject = { - definitions: { - schema: schema(false), - }, - ...schema(true), -} - -export default jtdMetaSchema diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts deleted file mode 100644 index 3cb00631..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +++ /dev/null @@ -1,7 +0,0 @@ -// https://github.com/ajv-validator/ajv/issues/889 -import * as equal from "fast-deep-equal" - -type Equal = typeof equal & {code: string} -;(equal as Equal).code = 'require("ajv/dist/runtime/equal").default' - -export default equal as Equal diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts deleted file mode 100644 index 92579afe..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +++ /dev/null @@ -1,176 +0,0 @@ -const rxParseJson = /position\s(\d+)$/ - -export function parseJson(s: string, pos: number): unknown { - let endPos: number | undefined - parseJson.message = undefined - let matches: RegExpExecArray | null - if (pos) s = s.slice(pos) - try { - parseJson.position = pos + s.length - return JSON.parse(s) - } catch (e) { - matches = rxParseJson.exec((e as Error).message) - if (!matches) { - parseJson.message = "unexpected end" - return undefined - } - endPos = +matches[1] - const c = s[endPos] - s = s.slice(0, endPos) - parseJson.position = pos + endPos - try { - return JSON.parse(s) - } catch (e1) { - parseJson.message = `unexpected token ${c}` - return undefined - } - } -} - -parseJson.message = undefined as string | undefined -parseJson.position = 0 as number -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson' - -export function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined { - let numStr = "" - let c: string - parseJsonNumber.message = undefined - if (s[pos] === "-") { - numStr += "-" - pos++ - } - if (s[pos] === "0") { - numStr += "0" - pos++ - } else { - if (!parseDigits(maxDigits)) { - errorMessage() - return undefined - } - } - if (maxDigits) { - parseJsonNumber.position = pos - return +numStr - } - if (s[pos] === ".") { - numStr += "." - pos++ - if (!parseDigits()) { - errorMessage() - return undefined - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e" - pos++ - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c - pos++ - } - if (!parseDigits()) { - errorMessage() - return undefined - } - } - parseJsonNumber.position = pos - return +numStr - - function parseDigits(maxLen?: number): boolean { - let digit = false - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true - numStr += c - pos++ - } - return digit - } - - function errorMessage(): void { - parseJsonNumber.position = pos - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end" - } -} - -parseJsonNumber.message = undefined as string | undefined -parseJsonNumber.position = 0 as number -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber' - -const escapedChars: {[X in string]?: string} = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -} - -const CODE_A: number = "a".charCodeAt(0) -const CODE_0: number = "0".charCodeAt(0) - -export function parseJsonString(s: string, pos: number): string | undefined { - let str = "" - let c: string | undefined - parseJsonString.message = undefined - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++] - if (c === '"') break - if (c === "\\") { - c = s[pos] - if (c in escapedChars) { - str += escapedChars[c] - pos++ - } else if (c === "u") { - pos++ - let count = 4 - let code = 0 - while (count--) { - code <<= 4 - c = s[pos] - if (c === undefined) { - errorMessage("unexpected end") - return undefined - } - c = c.toLowerCase() - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10 - } else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0 - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - pos++ - } - str += String.fromCharCode(code) - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } else if (c === undefined) { - errorMessage("unexpected end") - return undefined - } else { - if (c.charCodeAt(0) >= 0x20) { - str += c - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - } - } - parseJsonString.position = pos - return str - - function errorMessage(msg: string): void { - parseJsonString.position = pos - parseJsonString.message = msg - } -} - -parseJsonString.message = undefined as string | undefined -parseJsonString.position = 0 as number -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString' diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts deleted file mode 100644 index 1160e6a2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +++ /dev/null @@ -1,31 +0,0 @@ -const rxEscapable = - // eslint-disable-next-line no-control-regex, no-misleading-character-class - /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g - -const escaped: {[K in string]?: string} = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -} - -export default function quote(s: string): string { - rxEscapable.lastIndex = 0 - return ( - '"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a] - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) - }) - : s) + - '"' - ) -} - -quote.code = 'require("ajv/dist/runtime/quote").default' diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts deleted file mode 100644 index 0c769bc7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2" - -type Re2 = typeof re2 & {code: string} -;(re2 as Re2).code = 'require("ajv/dist/runtime/re2").default' - -export default re2 as Re2 diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts deleted file mode 100644 index 1625f9a4..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +++ /dev/null @@ -1,46 +0,0 @@ -const DT_SEPARATOR = /t|\s/i -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/ -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - -export default function validTimestamp(str: string, allowDate: boolean): boolean { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt: string[] = str.split(DT_SEPARATOR) - return ( - (dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0])) - ) -} - -function validDate(str: string): boolean { - const matches: string[] | null = DATE.exec(str) - if (!matches) return false - const y: number = +matches[1] - const m: number = +matches[2] - const d: number = +matches[3] - return ( - m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0))) - ) -} - -function validTime(str: string): boolean { - const matches: string[] | null = TIME.exec(str) - if (!matches) return false - const hr: number = +matches[1] - const min: number = +matches[2] - const sec: number = +matches[3] - const tzH: number = +(matches[4] || 0) - const tzM: number = +(matches[5] || 0) - return ( - (hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60) - ) -} - -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default' diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts deleted file mode 100644 index 47d8292b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +++ /dev/null @@ -1,20 +0,0 @@ -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -export default function ucs2length(str: string): number { - const len = str.length - let length = 0 - let pos = 0 - let value: number - while (pos < len) { - length++ - value = str.charCodeAt(pos++) - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos) - if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate - } - } - return length -} - -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default' diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts deleted file mode 100644 index 7dd35f9d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js" - -type URI = typeof uri & {code: string} -;(uri as URI).code = 'require("ajv/dist/runtime/uri").default' - -export default uri as URI diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts b/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts deleted file mode 100644 index 2d19a46a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {ErrorObject} from "../types" - -export default class ValidationError extends Error { - readonly errors: Partial[] - readonly ajv: true - readonly validation: true - - constructor(errors: Partial[]) { - super("validation failed") - this.errors = errors - this.ajv = this.validation = true - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts deleted file mode 100644 index b6129ce9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +++ /dev/null @@ -1,100 +0,0 @@ -import type AjvCore from "../core" -import type {AnyValidateFunction, SourceCode} from "../types" -import type {SchemaEnv} from "../compile" -import {UsedScopeValues, UsedValueState, ValueScopeName, varKinds} from "../compile/codegen/scope" -import {_, nil, _Code, Code, getProperty, getEsmExportName} from "../compile/codegen/code" - -function standaloneCode( - ajv: AjvCore, - refsOrFunc?: {[K in string]?: string} | AnyValidateFunction -): string { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option") - } - const {_n} = ajv.scope.opts - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => - sch.meta ? undefined : ajv.compile(sch.schema) - ) - - function getValidate(id: string): AnyValidateFunction { - const v = ajv.getSchema(id) - if (!v) throw new Error(`moduleCode: no schema with id ${id}`) - return v - } - - function funcExportCode(source?: SourceCode): string { - const usedValues: UsedScopeValues = {} - const n = source?.validateName - const vCode = validateCode(usedValues, source) - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}` - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}` - } - - function multiExportsCode( - schemas: {[K in string]?: T}, - getValidateFunc: (schOrId: T) => AnyValidateFunction | undefined - ): string { - const usedValues: UsedScopeValues = {} - let code = _`"use strict";` - for (const name in schemas) { - const v = getValidateFunc(schemas[name] as T) - if (v) { - const vCode = validateCode(usedValues, v.source) - const exportSyntax = ajv.opts.code.esm - ? _`export const ${getEsmExportName(name)}` - : _`exports${getProperty(name)}` - code = _`${code}${_n}${exportSyntax} = ${v.source?.validateName};${_n}${vCode}` - } - } - return `${code}` - } - - function validateCode(usedValues: UsedScopeValues, s?: SourceCode): Code { - if (!s) throw new Error('moduleCode: function does not have "source" property') - if (usedState(s.validateName) === UsedValueState.Completed) return nil - setUsedState(s.validateName, UsedValueState.Started) - - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode) - const code = new _Code(`${scopeCode}${_n}${s.validateCode}`) - return s.evaluated ? _`${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code - - function refValidateCode(n: ValueScopeName): Code | undefined { - const vRef = n.value?.ref - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef as AnyValidateFunction - return validateCode(usedValues, v.source) - } else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const {validate, validateName} = vRef as SchemaEnv - if (!validateName) throw new Error("ajv internal error") - const def = ajv.opts.code.es5 ? varKinds.var : varKinds.const - const wrapper = _`${def} ${n} = {validate: ${validateName}};` - if (usedState(validateName) === UsedValueState.Started) return wrapper - const vCode = validateCode(usedValues, validate?.source) - return _`${wrapper}${_n}${vCode}` - } - return undefined - } - - function usedState(name: ValueScopeName): UsedValueState | undefined { - return usedValues[name.prefix]?.get(name) - } - - function setUsedState(name: ValueScopeName, state: UsedValueState): void { - const {prefix} = name - const names = (usedValues[prefix] = usedValues[prefix] || new Map()) - names.set(name, state) - } - } -} - -module.exports = exports = standaloneCode -Object.defineProperty(exports, "__esModule", {value: true}) - -export default standaloneCode diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts b/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts deleted file mode 100644 index c4b2c30b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +++ /dev/null @@ -1,36 +0,0 @@ -import Ajv, {AnySchema, AnyValidateFunction, ErrorObject} from "../core" -import standaloneCode from "." -import * as requireFromString from "require-from-string" - -export default class AjvPack { - errors?: ErrorObject[] | null // errors from the last validation - constructor(readonly ajv: Ajv) {} - - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise { - return Ajv.prototype.validate.call(this, schemaKeyRef, data) - } - - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction { - return this.getStandalone(this.ajv.compile(schema, meta)) - } - - getSchema(keyRef: string): AnyValidateFunction | undefined { - const v = this.ajv.getSchema(keyRef) - if (!v) return undefined - return this.getStandalone(v) - } - - private getStandalone(v: AnyValidateFunction): AnyValidateFunction { - return requireFromString(standaloneCode(this.ajv, v)) as AnyValidateFunction - } - - addSchema(...args: Parameters): AjvPack { - this.ajv.addSchema.call(this.ajv, ...args) - return this - } - - addKeyword(...args: Parameters): AjvPack { - this.ajv.addKeyword.call(this.ajv, ...args) - return this - } -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts deleted file mode 100644 index 123d9df1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +++ /dev/null @@ -1,240 +0,0 @@ -import * as URI from "uri-js" -import type {CodeGen, Code, Name, ScopeValueSets, ValueScopeName} from "../compile/codegen" -import type {SchemaEnv, SchemaCxt, SchemaObjCxt} from "../compile" -import type {JSONType} from "../compile/rules" -import type {KeywordCxt} from "../compile/validate" -import type Ajv from "../core" - -interface _SchemaObject { - id?: string - $id?: string - $schema?: string - [x: string]: any // TODO -} - -export interface SchemaObject extends _SchemaObject { - id?: string - $id?: string - $schema?: string - $async?: false - [x: string]: any // TODO -} - -export interface AsyncSchema extends _SchemaObject { - $async: true -} - -export type AnySchemaObject = SchemaObject | AsyncSchema - -export type Schema = SchemaObject | boolean - -export type AnySchema = Schema | AsyncSchema - -export type SchemaMap = {[Key in string]?: AnySchema} - -export interface SourceCode { - validateName: ValueScopeName - validateCode: string - scopeValues: ScopeValueSets - evaluated?: Code -} - -export interface DataValidationCxt { - instancePath: string - parentData: {[K in T]: any} // object or array - parentDataProperty: T // string or number - rootData: Record | any[] - dynamicAnchors: {[Ref in string]?: ValidateFunction} -} - -export interface ValidateFunction { - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T - errors?: null | ErrorObject[] - evaluated?: Evaluated - schema: AnySchema - schemaEnv: SchemaEnv - source?: SourceCode -} - -export interface JTDParser { - (json: string): T | undefined - message?: string - position?: number -} - -export type EvaluatedProperties = {[K in string]?: true} | true - -export type EvaluatedItems = number | true - -export interface Evaluated { - // determined at compile time if staticProps/Items is true - props?: EvaluatedProperties - items?: EvaluatedItems - // whether props/items determined at compile time - dynamicProps: boolean - dynamicItems: boolean -} - -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise - $async: true -} - -export type AnyValidateFunction = ValidateFunction | AsyncValidateFunction - -export interface ErrorObject, S = unknown> { - keyword: K - instancePath: string - schemaPath: string - params: P - // Added to validation errors of "propertyNames" keyword schema - propertyName?: string - // Excluded if option `messages` set to false. - message?: string - // These are added with the `verbose` option. - schema?: S - parentSchema?: AnySchemaObject - data?: unknown -} - -export type ErrorNoParams = ErrorObject, S> - -interface _KeywordDef { - keyword: string | string[] - type?: JSONType | JSONType[] // data types that keyword applies to - schemaType?: JSONType | JSONType[] // allowed type(s) of keyword value in the schema - allowUndefined?: boolean // used for keywords that can be invoked by other keywords, not being present in the schema - $data?: boolean // keyword supports [$data reference](../../docs/guide/combining-schemas.md#data-reference) - implements?: string[] // other schema keywords that this keyword implements - before?: string // keyword should be executed before this keyword (should be applicable to the same type) - post?: boolean // keyword should be executed after other keywords without post flag - metaSchema?: AnySchemaObject // meta-schema for keyword schema value - it is better to use schemaType where applicable - validateSchema?: AnyValidateFunction // compiled keyword metaSchema - should not be passed - dependencies?: string[] // keywords that must be present in the same schema - error?: KeywordErrorDefinition - $dataError?: KeywordErrorDefinition -} - -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void - trackErrors?: boolean -} - -export type MacroKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaCxt -) => AnySchema - -export type CompileKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaObjCxt -) => DataValidateFunction - -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise - errors?: Partial[] -} - -export interface SchemaValidateFunction { - (schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): - | boolean - | Promise - errors?: Partial[] -} - -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction - compile?: CompileKeywordFunc - // schema: false makes validate not to expect schema (DataValidateFunction) - schema?: boolean // requires "validate" - modifying?: boolean - async?: boolean - valid?: boolean - errors?: boolean | "full" -} - -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc -} - -export type KeywordDefinition = - | CodeKeywordDefinition - | FuncKeywordDefinition - | MacroKeywordDefinition - -export type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[] - schemaType: JSONType[] -} - -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code) - params?: Code | ((cxt: KeywordErrorCxt) => Code) -} - -export type Vocabulary = (KeywordDefinition | string)[] - -export interface KeywordErrorCxt { - gen: CodeGen - keyword: string - data: Name - $data?: string | false - schema: any // TODO - parentSchema?: AnySchemaObject - schemaCode: Code | number | boolean - schemaValue: Code | number | boolean - schemaType?: JSONType[] - errsCount?: Name - params: KeywordCxtParams - it: SchemaCxt -} - -export type KeywordCxtParams = {[P in string]?: Code | string | number} - -export type FormatValidator = (data: T) => boolean - -export type FormatCompare = (data1: T, data2: T) => number | undefined - -export type AsyncFormatValidator = (data: T) => Promise - -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: FormatValidator | (T extends string ? string | RegExp : never) - async?: false | undefined - compare?: FormatCompare -} - -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: AsyncFormatValidator - async: true - compare?: FormatCompare -} - -export type AddedFormat = - | true - | RegExp - | FormatValidator - | FormatDefinition - | FormatDefinition - | AsyncFormatDefinition - | AsyncFormatDefinition - -export type Format = AddedFormat | string - -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike - code: string -} - -export interface RegExpLike { - test: (s: string) => boolean -} - -export interface UriResolver { - parse(uri: string): URI.URIComponents - resolve(base: string, path: string): string - serialize(component: URI.URIComponents): string -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts b/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts deleted file mode 100644 index 698e2911..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* eslint-disable @typescript-eslint/no-empty-interface */ -type StrictNullChecksWrapper = undefined extends null - ? `strictNullChecks must be true in tsconfig to use ${Name}` - : Type - -type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void - ? I - : never - -export type SomeJSONSchema = UncheckedJSONSchemaType - -type UncheckedPartialSchema = Partial> - -export type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema> - -type JSONType = IsPartial extends true - ? T | undefined - : T - -interface NumberKeywords { - minimum?: number - maximum?: number - exclusiveMinimum?: number - exclusiveMaximum?: number - multipleOf?: number - format?: string -} - -interface StringKeywords { - minLength?: number - maxLength?: number - pattern?: string - format?: string -} - -type UncheckedJSONSchemaType = ( - | // these two unions allow arbitrary unions of types - { - anyOf: readonly UncheckedJSONSchemaType[] - } - | { - oneOf: readonly UncheckedJSONSchemaType[] - } - // this union allows for { type: (primitive)[] } style schemas - | ({ - type: readonly (T extends number - ? JSONType<"number" | "integer", IsPartial> - : T extends string - ? JSONType<"string", IsPartial> - : T extends boolean - ? JSONType<"boolean", IsPartial> - : never)[] - } & UnionToIntersection< - T extends number - ? NumberKeywords - : T extends string - ? StringKeywords - : T extends boolean - ? // eslint-disable-next-line @typescript-eslint/ban-types - {} - : never - >) - // this covers "normal" types; it's last so typescript looks to it first for errors - | ((T extends number - ? { - type: JSONType<"number" | "integer", IsPartial> - } & NumberKeywords - : T extends string - ? { - type: JSONType<"string", IsPartial> - } & StringKeywords - : T extends boolean - ? { - type: JSONType<"boolean", IsPartial> - } - : T extends readonly [any, ...any[]] - ? { - // JSON AnySchema for tuple - type: JSONType<"array", IsPartial> - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable - } & {length: T["length"]} - minItems: T["length"] - } & ({maxItems: T["length"]} | {additionalItems: false}) - : T extends readonly any[] - ? { - type: JSONType<"array", IsPartial> - items: UncheckedJSONSchemaType - contains?: UncheckedPartialSchema - minItems?: number - maxItems?: number - minContains?: number - maxContains?: number - uniqueItems?: true - additionalItems?: never - } - : T extends Record - ? { - // JSON AnySchema for records and dictionaries - // "required" is not optional because it is often forgotten - // "properties" are optional for more concise dictionary schemas - // "patternProperties" and can be only used with interfaces that have string index - type: JSONType<"object", IsPartial> - additionalProperties?: boolean | UncheckedJSONSchemaType - unevaluatedProperties?: boolean | UncheckedJSONSchemaType - properties?: IsPartial extends true - ? Partial> - : UncheckedPropertiesSchema - patternProperties?: Record> - propertyNames?: Omit, "type"> & {type?: "string"} - dependencies?: {[K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema} - dependentRequired?: {[K in keyof T]?: Readonly<(keyof T)[]>} - dependentSchemas?: {[K in keyof T]?: UncheckedPartialSchema} - minProperties?: number - maxProperties?: number - } & (IsPartial extends true // "required" is not necessary if it's a non-partial type with no required keys // are listed it only asserts that optional cannot be listed. // "required" type does not guarantee that all required properties - ? {required: Readonly<(keyof T)[]>} - : [UncheckedRequiredMembers] extends [never] - ? {required?: Readonly[]>} - : {required: Readonly[]>}) - : T extends null - ? { - type: JSONType<"null", IsPartial> - nullable: true - } - : never) & { - allOf?: Readonly[]> - anyOf?: Readonly[]> - oneOf?: Readonly[]> - if?: UncheckedPartialSchema - then?: UncheckedPartialSchema - else?: UncheckedPartialSchema - not?: UncheckedPartialSchema - }) -) & { - [keyword: string]: any - $id?: string - $ref?: string - $defs?: Record> - definitions?: Record> -} - -export type JSONSchemaType = StrictNullChecksWrapper< - "JSONSchemaType", - UncheckedJSONSchemaType -> - -type Known = - | {[key: string]: Known} - | [Known, ...Known[]] - | Known[] - | number - | string - | boolean - | null - -type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | {$ref: string} -} - -export type PropertiesSchema = StrictNullChecksWrapper< - "PropertiesSchema", - UncheckedPropertiesSchema -> - -type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -export type RequiredMembers = StrictNullChecksWrapper< - "RequiredMembers", - UncheckedRequiredMembers -> - -type Nullable = undefined extends T - ? { - nullable: true - const?: null // any non-null value would fail `const: null`, `null` would fail any other value in const - enum?: Readonly<(T | null)[]> // `null` must be explicitly included in "enum" for `null` to pass - default?: T | null - } - : { - const?: T - enum?: Readonly - default?: T - } diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts b/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts deleted file mode 100644 index 3d5ae4ac..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +++ /dev/null @@ -1,263 +0,0 @@ -/** numeric strings */ -type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -/** string strings */ -type StringType = "string" | "timestamp" - -/** Generic JTD Schema without inference of the represented type */ -export type SomeJTDSchemaType = ( - | // ref - {ref: string} - // primitives - | {type: NumberType | StringType | "boolean"} - // enum - | {enum: string[]} - // elements - | {elements: SomeJTDSchemaType} - // values - | {values: SomeJTDSchemaType} - // properties - | { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - | { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - // discriminator - | {discriminator: string; mapping: Record} - // empty - // NOTE see the end of - // https://github.com/typescript-eslint/typescript-eslint/issues/2063#issuecomment-675156492 - // eslint-disable-next-line @typescript-eslint/ban-types - | {} -) & { - nullable?: boolean - metadata?: Record - definitions?: Record -} - -/** required keys of an object, not undefined */ -type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -/** optional or undifined-able keys of an object */ -type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never -}[keyof T] - -/** type is true if T is a union type */ -type IsUnion_ = false extends ( - T extends unknown ? ([U] extends [T] ? false : true) : never -) - ? false - : true -type IsUnion = IsUnion_ - -/** type is true if T is identically E */ -type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false - -/** type is true if T or null is identically E or null*/ -type NullTypeEquality = TypeEquality - -/** gets only the string literals of a type or null if a type isn't a string literal */ -type EnumString = [T] extends [never] - ? null - : T extends string - ? string extends T - ? null - : T - : null - -/** true if type is a union of string literals */ -type IsEnum = null extends EnumString> ? false : true - -/** true only if all types are array types (not tuples) */ -// NOTE relies on the fact that tuples don't have an index at 0.5, but arrays -// have an index at every number -type IsElements = false extends IsUnion - ? [T] extends [readonly unknown[]] - ? undefined extends T[0.5] - ? false - : true - : false - : false - -/** true if the the type is a values type */ -type IsValues = false extends IsUnion> - ? TypeEquality, string> - : false - -/** true if type is a proeprties type and Union is false, or type is a discriminator type and Union is true */ -type IsRecord = Union extends IsUnion> - ? null extends EnumString> - ? false - : true - : false - -/** actual schema */ -export type JTDSchemaType = Record> = ( - | // refs - where null wasn't specified, must match exactly - (null extends EnumString - ? never - : - | ({[K in keyof D]: [T] extends [D[K]] ? {ref: K} : never}[keyof D] & {nullable?: false}) - // nulled refs - if ref is nullable and nullable is specified, then it can - // match either null or non-null definitions - | (null extends T - ? { - [K in keyof D]: [Exclude] extends [Exclude] - ? {ref: K} - : never - }[keyof D] & {nullable: true} - : never)) - // empty - empty schemas also treat nullable differently in that it's now fully ignored - | (unknown extends T ? {nullable?: boolean} : never) - // all other types // numbers - only accepts the type number - | ((true extends NullTypeEquality - ? {type: NumberType} - : // booleans - accepts the type boolean - true extends NullTypeEquality - ? {type: "boolean"} - : // strings - only accepts the type string - true extends NullTypeEquality - ? {type: StringType} - : // strings - only accepts the type Date - true extends NullTypeEquality - ? {type: "timestamp"} - : // enums - only accepts union of string literals - // TODO we can't actually check that everything in the union was specified - true extends IsEnum - ? {enum: EnumString>[]} - : // arrays - only accepts arrays, could be array of unions to be resolved later - true extends IsElements> - ? T extends readonly (infer E)[] - ? { - elements: JTDSchemaType - } - : never - : // values - true extends IsValues - ? T extends Record - ? { - values: JTDSchemaType - } - : never - : // properties - true extends IsRecord - ? ([RequiredKeys>] extends [never] - ? { - properties?: Record - } - : { - properties: {[K in RequiredKeys]: JTDSchemaType} - }) & - ([OptionalKeys>] extends [never] - ? { - optionalProperties?: Record - } - : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D> - } - }) & { - additionalProperties?: boolean - } - : // discriminator - true extends IsRecord - ? { - [K in keyof Exclude]-?: Exclude[K] extends string - ? { - discriminator: K - mapping: { - // TODO currently allows descriminator to be present in schema - [M in Exclude[K]]: JTDSchemaType< - Omit, - D - > - } - } - : never - }[keyof Exclude] - : never) & - (null extends T - ? { - nullable: true - } - : {nullable?: false})) -) & { - // extra properties - metadata?: Record - // TODO these should only be allowed at the top level - definitions?: {[K in keyof D]: JTDSchemaType} -} - -type JTDDataDef> = - | // ref - (S extends {ref: string} - ? D extends {[K in S["ref"]]: infer V} - ? JTDDataDef - : never - : // type - S extends {type: NumberType} - ? number - : S extends {type: "boolean"} - ? boolean - : S extends {type: "string"} - ? string - : S extends {type: "timestamp"} - ? string | Date - : // enum - S extends {enum: readonly (infer E)[]} - ? string extends E - ? never - : [E] extends [string] - ? E - : never - : // elements - S extends {elements: infer E} - ? JTDDataDef[] - : // properties - S extends { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : S extends { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : // values - S extends {values: infer V} - ? Record> - : // discriminator - S extends {discriminator: infer M; mapping: Record} - ? [M] extends [string] - ? { - [K in keyof S["mapping"]]: JTDDataDef & {[KM in M]: K} - }[keyof S["mapping"]] - : never - : // empty - unknown) - | (S extends {nullable: true} ? null : never) - -export type JTDDataType = S extends {definitions: Record} - ? JTDDataDef - : JTDDataDef> diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts deleted file mode 100644 index 755e5b3d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type AdditionalItemsError = ErrorObject<"additionalItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "additionalItems" as const, - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {parentSchema, it} = cxt - const {items} = parentSchema - if (!Array.isArray(items)) { - checkStrictMode(it, '"additionalItems" is ignored when "items" is not an array of schemas') - return - } - validateAdditionalItems(cxt, items) - }, -} - -export function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void { - const {gen, schema, data, keyword, it} = cxt - it.items = true - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items.length}) - cxt.pass(_`${len} <= ${items.length}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items.length}`) // TODO var - gen.if(not(valid), () => validateItems(valid)) - cxt.ok(valid) - } - - function validateItems(valid: Name): void { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts deleted file mode 100644 index bfb511ce..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +++ /dev/null @@ -1,118 +0,0 @@ -import type { - CodeKeywordDefinition, - AddedKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import {allSchemaProperties, usePattern, isOwnProperty} from "../code" -import {_, nil, or, not, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import type {SubschemaArgs} from "../../compile/validate/subschema" -import {alwaysValidSchema, schemaRefOrVal, Type} from "../../compile/util" - -export type AdditionalPropertiesError = ErrorObject< - "additionalProperties", - {additionalProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have additional properties", - params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -} - -const def: CodeKeywordDefinition & AddedKeywordDefinition = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const {gen, schema, parentSchema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, opts} = it - it.props = true - if (opts.removeAdditional !== "all" && alwaysValidSchema(it, schema)) return - const props = allSchemaProperties(parentSchema.properties) - const patProps = allSchemaProperties(parentSchema.patternProperties) - checkAdditionalProperties() - cxt.ok(_`${errsCount} === ${N.errors}`) - - function checkAdditionalProperties(): void { - gen.forIn("key", data, (key: Name) => { - if (!props.length && !patProps.length) additionalPropertyCode(key) - else gen.if(isAdditional(key), () => additionalPropertyCode(key)) - }) - } - - function isAdditional(key: Name): Code { - let definedProp: Code - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema.properties, "properties") - definedProp = isOwnProperty(gen, propsSchema as Code, key) - } else if (props.length) { - definedProp = or(...props.map((p) => _`${key} === ${p}`)) - } else { - definedProp = nil - } - if (patProps.length) { - definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`)) - } - return not(definedProp) - } - - function deleteAdditional(key: Name): void { - gen.code(_`delete ${data}[${key}]`) - } - - function additionalPropertyCode(key: Name): void { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key) - return - } - - if (schema === false) { - cxt.setParams({additionalProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false) - gen.if(not(valid), () => { - cxt.reset() - deleteAdditional(key) - }) - } else { - applyAdditionalSchema(key, valid) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - } - - function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void { - const subschema: SubschemaArgs = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: Type.Str, - } - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }) - } - cxt.subschema(subschema, valid) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts deleted file mode 100644 index cdfa86ff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "allOf", - schemaType: "array", - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const valid = gen.name("valid") - schema.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - const schCxt = cxt.subschema({keyword: "allOf", schemaProp: i}, valid) - cxt.ok(valid) - cxt.mergeEvaluated(schCxt) - }) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts deleted file mode 100644 index bd331b5a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import {validateUnion} from "../code" - -export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]> - -const def: CodeKeywordDefinition = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in anyOf"}, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts deleted file mode 100644 index d88675c6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type ContainsError = ErrorObject< - "contains", - {minContains: number; maxContains?: number}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: ({params: {min, max}}) => - max === undefined - ? str`must contain at least ${min} valid item(s)` - : str`must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({params: {min, max}}) => - max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - let min: number - let max: number | undefined - const {minContains, maxContains} = parentSchema - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains - max = maxContains - } else { - min = 1 - } - const len = gen.const("len", _`${data}.length`) - cxt.setParams({min, max}) - if (max === undefined && min === 0) { - checkStrictMode(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`) - return - } - if (max !== undefined && min > max) { - checkStrictMode(it, `"minContains" > "maxContains" is always invalid`) - cxt.fail() - return - } - if (alwaysValidSchema(it, schema)) { - let cond = _`${len} >= ${min}` - if (max !== undefined) cond = _`${cond} && ${len} <= ${max}` - cxt.pass(cond) - return - } - - it.items = true - const valid = gen.name("valid") - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())) - } else if (min === 0) { - gen.let(valid, true) - if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount) - } else { - gen.let(valid, false) - validateItemsWithCount() - } - cxt.result(valid, () => cxt.reset()) - - function validateItemsWithCount(): void { - const schValid = gen.name("_valid") - const count = gen.let("count", 0) - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))) - } - - function validateItems(_valid: Name, block: () => void): void { - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword: "contains", - dataProp: i, - dataPropType: Type.Num, - compositeRule: true, - }, - _valid - ) - block() - }) - } - - function checkLimits(count: Name): void { - gen.code(_`${count}++`) - if (max === undefined) { - gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break()) - } else { - gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break()) - if (min === 1) gen.assign(valid, true) - else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true)) - } - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts deleted file mode 100644 index f6761128..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +++ /dev/null @@ -1,112 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaMap, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from "../code" - -export type PropertyDependencies = {[K in string]?: string[]} - -export interface DependenciesErrorParams { - property: string - missingProperty: string - depsCount: number - deps: string // TODO change to string[] -} - -type SchemaDependencies = SchemaMap - -export type DependenciesError = ErrorObject< - "dependencies", - DependenciesErrorParams, - {[K in string]?: string[] | AnySchema} -> - -export const error: KeywordErrorDefinition = { - message: ({params: {property, depsCount, deps}}) => { - const property_ies = depsCount === 1 ? "property" : "properties" - return str`must have ${property_ies} ${deps} when property ${property} is present` - }, - params: ({params: {property, depsCount, deps, missingProperty}}) => - _`{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -} - -const def: CodeKeywordDefinition = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const [propDeps, schDeps] = splitDependencies(cxt) - validatePropertyDeps(cxt, propDeps) - validateSchemaDeps(cxt, schDeps) - }, -} - -function splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] { - const propertyDeps: PropertyDependencies = {} - const schemaDeps: SchemaDependencies = {} - for (const key in schema) { - if (key === "__proto__") continue - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps - deps[key] = schema[key] - } - return [propertyDeps, schemaDeps] -} - -export function validatePropertyDeps( - cxt: KeywordCxt, - propertyDeps: {[K in string]?: string[]} = cxt.schema -): void { - const {gen, data, it} = cxt - if (Object.keys(propertyDeps).length === 0) return - const missing = gen.let("missing") - for (const prop in propertyDeps) { - const deps = propertyDeps[prop] as string[] - if (deps.length === 0) continue - const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties) - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }) - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - checkReportMissingProp(cxt, depProp) - } - }) - } else { - gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`) - reportMissingProp(cxt, missing) - gen.else() - } - } -} - -export function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - for (const prop in schemaDeps) { - if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => { - const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid) - cxt.mergeValidEvaluated(schCxt, valid) - }, - () => gen.var(valid, true) // TODO var - ) - cxt.ok(valid) - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts deleted file mode 100644 index dbd3ae45..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateSchemaDeps} from "./dependencies" - -const def: CodeKeywordDefinition = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => validateSchemaDeps(cxt), -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts deleted file mode 100644 index 5a40d5e3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {SchemaObjCxt} from "../../compile" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" - -export type IfKeywordError = ErrorObject<"if", {failingKeyword: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params}) => str`must match "${params.ifClause}" schema`, - params: ({params}) => _`{failingKeyword: ${params.ifClause}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, parentSchema, it} = cxt - if (parentSchema.then === undefined && parentSchema.else === undefined) { - checkStrictMode(it, '"if" without "then" and "else" is ignored') - } - const hasThen = hasSchema(it, "then") - const hasElse = hasSchema(it, "else") - if (!hasThen && !hasElse) return - - const valid = gen.let("valid", true) - const schValid = gen.name("_valid") - validateIf() - cxt.reset() - - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause") - cxt.setParams({ifClause}) - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)) - } else if (hasThen) { - gen.if(schValid, validateClause("then")) - } else { - gen.if(not(schValid), validateClause("else")) - } - - cxt.pass(valid, () => cxt.error(true)) - - function validateIf(): void { - const schCxt = cxt.subschema( - { - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - schValid - ) - cxt.mergeEvaluated(schCxt) - } - - function validateClause(keyword: string, ifClause?: Name): () => void { - return () => { - const schCxt = cxt.subschema({keyword}, schValid) - gen.assign(valid, schValid) - cxt.mergeValidEvaluated(schCxt, valid) - if (ifClause) gen.assign(ifClause, _`${keyword}`) - else cxt.setParams({ifClause: keyword}) - } - } - }, -} - -function hasSchema(it: SchemaObjCxt, keyword: string): boolean { - const schema = it.schema[keyword] - return schema !== undefined && !alwaysValidSchema(it, schema) -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts deleted file mode 100644 index fc527169..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type {ErrorNoParams, Vocabulary} from "../../types" -import additionalItems, {AdditionalItemsError} from "./additionalItems" -import prefixItems from "./prefixItems" -import items from "./items" -import items2020, {ItemsError} from "./items2020" -import contains, {ContainsError} from "./contains" -import dependencies, {DependenciesError} from "./dependencies" -import propertyNames, {PropertyNamesError} from "./propertyNames" -import additionalProperties, {AdditionalPropertiesError} from "./additionalProperties" -import properties from "./properties" -import patternProperties from "./patternProperties" -import notKeyword, {NotKeywordError} from "./not" -import anyOf, {AnyOfError} from "./anyOf" -import oneOf, {OneOfError} from "./oneOf" -import allOf from "./allOf" -import ifKeyword, {IfKeywordError} from "./if" -import thenElse from "./thenElse" - -export default function getApplicator(draft2020 = false): Vocabulary { - const applicator = [ - // any - notKeyword, - anyOf, - oneOf, - allOf, - ifKeyword, - thenElse, - // object - propertyNames, - additionalProperties, - dependencies, - properties, - patternProperties, - ] - // array - if (draft2020) applicator.push(prefixItems, items2020) - else applicator.push(additionalItems, items) - applicator.push(contains) - return applicator -} - -export type ApplicatorKeywordError = - | ErrorNoParams<"false schema"> - | AdditionalItemsError - | ItemsError - | ContainsError - | AdditionalPropertiesError - | DependenciesError - | IfKeywordError - | AnyOfError - | OneOfError - | NotKeywordError - | PropertyNamesError diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts deleted file mode 100644 index 033cb397..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {alwaysValidSchema, mergeEvaluated, checkStrictMode} from "../../compile/util" -import {validateArray} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt: KeywordCxt) { - const {schema, it} = cxt - if (Array.isArray(schema)) return validateTuple(cxt, "additionalItems", schema) - it.items = true - if (alwaysValidSchema(it, schema)) return - cxt.ok(validateArray(cxt)) - }, -} - -export function validateTuple( - cxt: KeywordCxt, - extraItems: string, - schArr: AnySchema[] = cxt.schema -): void { - const {gen, parentSchema, data, keyword, it} = cxt - checkStrictTuple(parentSchema) - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = mergeEvaluated.items(gen, schArr.length, it.items) - } - const valid = gen.name("valid") - const len = gen.const("len", _`${data}.length`) - schArr.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - gen.if(_`${len} > ${i}`, () => - cxt.subschema( - { - keyword, - schemaProp: i, - dataProp: i, - }, - valid - ) - ) - cxt.ok(valid) - }) - - function checkStrictTuple(sch: AnySchemaObject): void { - const {opts, errSchemaPath} = it - const l = schArr.length - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false) - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"` - checkStrictMode(it, msg, opts.strictTuples) - } - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts deleted file mode 100644 index 2a99b08d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {validateAdditionalItems} from "./additionalItems" - -export type ItemsError = ErrorObject<"items", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {schema, parentSchema, it} = cxt - const {prefixItems} = parentSchema - it.items = true - if (alwaysValidSchema(it, schema)) return - if (prefixItems) validateAdditionalItems(cxt, prefixItems) - else cxt.ok(validateArray(cxt)) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts deleted file mode 100644 index 8691db0b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -export type NotKeywordError = ErrorNoParams<"not", AnySchema> - -const def: CodeKeywordDefinition = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) { - cxt.fail() - return - } - - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - valid - ) - - cxt.failResult( - valid, - () => cxt.reset(), - () => cxt.error() - ) - }, - error: {message: "must NOT be valid"}, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts deleted file mode 100644 index c25353ff..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, Name} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {SchemaCxt} from "../../compile" - -export type OneOfError = ErrorObject< - "oneOf", - {passingSchemas: [number, number] | null}, - AnySchema[] -> - -const error: KeywordErrorDefinition = { - message: "must match exactly one schema in oneOf", - params: ({params}) => _`{passingSchemas: ${params.passing}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - if (it.opts.discriminator && parentSchema.discriminator) return - const schArr: AnySchema[] = schema - const valid = gen.let("valid", false) - const passing = gen.let("passing", null) - const schValid = gen.name("_valid") - cxt.setParams({passing}) - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - - gen.block(validateOneOf) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) - - function validateOneOf(): void { - schArr.forEach((sch: AnySchema, i: number) => { - let schCxt: SchemaCxt | undefined - if (alwaysValidSchema(it, sch)) { - gen.var(schValid, true) - } else { - schCxt = cxt.subschema( - { - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, - schValid - ) - } - - if (i > 0) { - gen - .if(_`${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, _`[${passing}, ${i}]`) - .else() - } - - gen.if(schValid, () => { - gen.assign(valid, true) - gen.assign(passing, i) - if (schCxt) cxt.mergeEvaluated(schCxt, Name) - }) - }) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts deleted file mode 100644 index ea624e23..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {allSchemaProperties, usePattern} from "../code" -import {_, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" -import {evaluatedPropsToName, Type} from "../../compile/util" -import {AnySchema} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, data, parentSchema, it} = cxt - const {opts} = it - const patterns = allSchemaProperties(schema) - const alwaysValidPatterns = patterns.filter((p) => - alwaysValidSchema(it, schema[p] as AnySchema) - ) - - if ( - patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true)) - ) { - return - } - - const checkProperties = - opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties - const valid = gen.name("valid") - if (it.props !== true && !(it.props instanceof Name)) { - it.props = evaluatedPropsToName(gen, it.props) - } - const {props} = it - validatePatternProperties() - - function validatePatternProperties(): void { - for (const pat of patterns) { - if (checkProperties) checkMatchingProperties(pat) - if (it.allErrors) { - validateProperties(pat) - } else { - gen.var(valid, true) // TODO var - validateProperties(pat) - gen.if(valid) - } - } - } - - function checkMatchingProperties(pat: string): void { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - checkStrictMode( - it, - `property ${prop} matches pattern ${pat} (use allowMatchingProperties)` - ) - } - } - } - - function validateProperties(pat: string): void { - gen.forIn("key", data, (key) => { - gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat) - if (!alwaysValid) { - cxt.subschema( - { - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - } - - if (it.opts.unevaluated && props !== true) { - gen.assign(_`${props}[${key}]`, true) - } else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if(not(valid), () => gen.break()) - } - }) - }) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts deleted file mode 100644 index 008fb2db..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateTuple} from "./items" - -const def: CodeKeywordDefinition = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => validateTuple(cxt, "items"), -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts deleted file mode 100644 index a55b19ce..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties} from "../code" -import {alwaysValidSchema, toHash, mergeEvaluated} from "../../compile/util" -import apDef from "./additionalProperties" - -const def: CodeKeywordDefinition = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - apDef.code(new KeywordCxt(it, apDef, "additionalProperties")) - } - const allProps = allSchemaProperties(schema) - for (const prop of allProps) { - it.definedProperties.add(prop) - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = mergeEvaluated.props(gen, toHash(allProps), it.props) - } - const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p])) - if (properties.length === 0) return - const valid = gen.name("valid") - - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop) - } else { - gen.if(propertyInData(gen, data, prop, it.opts.ownProperties)) - applyPropertySchema(prop) - if (!it.allErrors) gen.else().var(valid, true) - gen.endIf() - } - cxt.it.definedProperties.add(prop) - cxt.ok(valid) - } - - function hasDefault(prop: string): boolean | undefined { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined - } - - function applyPropertySchema(prop: string): void { - cxt.subschema( - { - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, - valid - ) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts deleted file mode 100644 index 1c54d605..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" - -export type PropertyNamesError = ErrorObject<"propertyNames", {propertyName: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: "property name must be valid", - params: ({params}) => _`{propertyName: ${params.propertyName}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - - gen.forIn("key", data, (key) => { - cxt.setParams({propertyName: key}) - cxt.subschema( - { - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, - valid - ) - gen.if(not(valid), () => { - cxt.error(true) - if (!it.allErrors) gen.break() - }) - }) - - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts deleted file mode 100644 index 5055182e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.if === undefined) checkStrictMode(it, `"${keyword}" without "if" is ignored`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts deleted file mode 100644 index 92cdd5b0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -import type {AnySchema, SchemaMap} from "../types" -import type {SchemaCxt} from "../compile" -import type {KeywordCxt} from "../compile/validate" -import {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from "../compile/codegen" -import {alwaysValidSchema, Type} from "../compile/util" -import N from "../compile/names" -import {useFunc} from "../compile/util" -export function checkReportMissingProp(cxt: KeywordCxt, prop: string): void { - const {gen, data, it} = cxt - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({missingProperty: _`${prop}`}, true) - cxt.error() - }) -} - -export function checkMissingProp( - {gen, data, it: {opts}}: KeywordCxt, - properties: string[], - missing: Name -): Code { - return or( - ...properties.map((prop) => - and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`) - ) - ) -} - -export function reportMissingProp(cxt: KeywordCxt, missing: Name): void { - cxt.setParams({missingProperty: missing}, true) - cxt.error() -} - -export function hasPropFunc(gen: CodeGen): Name { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: _`Object.prototype.hasOwnProperty`, - }) -} - -export function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code { - return _`${hasPropFunc(gen)}.call(${data}, ${property})` -} - -export function propertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} !== undefined` - return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond -} - -export function noPropertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} === undefined` - return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond -} - -export function allSchemaProperties(schemaMap?: SchemaMap): string[] { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [] -} - -export function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] { - return allSchemaProperties(schemaMap).filter( - (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema) - ) -} - -export function callValidateCode( - {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt, - func: Code, - context: Code, - passSchema?: boolean -): Code { - const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data - const valCxt: [Name, Code | number][] = [ - [N.instancePath, strConcat(N.instancePath, errorPath)], - [N.parentData, it.parentData], - [N.parentDataProperty, it.parentDataProperty], - [N.rootData, N.rootData], - ] - if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors]) - const args = _`${dataAndSchema}, ${gen.object(...valCxt)}` - return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})` -} - -const newRegExp = _`new RegExp` - -export function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name { - const u = opts.unicodeRegExp ? "u" : "" - const {regExp} = opts.code - const rx = regExp(pattern, u) - - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: _`${regExp.code === "new RegExp" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`, - }) -} - -export function validateArray(cxt: KeywordCxt): Name { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - if (it.allErrors) { - const validArr = gen.let("valid", true) - validateItems(() => gen.assign(validArr, false)) - return validArr - } - gen.var(valid, true) - validateItems(() => gen.break()) - return valid - - function validateItems(notValid: () => void): void { - const len = gen.const("len", _`${data}.length`) - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword, - dataProp: i, - dataPropType: Type.Num, - }, - valid - ) - gen.if(not(valid), notValid) - }) - } -} - -export function validateUnion(cxt: KeywordCxt): void { - const {gen, schema, keyword, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch)) - if (alwaysValid && !it.opts.unevaluated) return - - const valid = gen.let("valid", false) - const schValid = gen.name("_valid") - - gen.block(() => - schema.forEach((_sch: AnySchema, i: number) => { - const schCxt = cxt.subschema( - { - keyword, - schemaProp: i, - compositeRule: true, - }, - schValid - ) - gen.assign(valid, _`${valid} || ${schValid}`) - const merged = cxt.mergeValidEvaluated(schCxt, schValid) - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) gen.if(not(valid)) - }) - ) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts deleted file mode 100644 index aa36c4bb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID') - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts deleted file mode 100644 index e63e2895..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {Vocabulary} from "../../types" -import idKeyword from "./id" -import refKeyword from "./ref" - -const core: Vocabulary = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - {keyword: "$comment"}, - "definitions", - idKeyword, - refKeyword, -] - -export default core diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts deleted file mode 100644 index 5d59fbcb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import MissingRefError from "../../compile/ref_error" -import {callValidateCode} from "../code" -import {_, nil, stringify, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, resolveRef} from "../../compile" -import {mergeEvaluated} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$ref", - schemaType: "string", - code(cxt: KeywordCxt): void { - const {gen, schema: $ref, it} = cxt - const {baseId, schemaEnv: env, validateName, opts, self} = it - const {root} = env - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef() - const schOrEnv = resolveRef.call(self, root, baseId, $ref) - if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref) - if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv) - return inlineRefSchema(schOrEnv) - - function callRootRef(): void { - if (env === root) return callRef(cxt, validateName, env, env.$async) - const rootName = gen.scopeValue("root", {ref: root}) - return callRef(cxt, _`${rootName}.validate`, root, root.$async) - } - - function callValidate(sch: SchemaEnv): void { - const v = getValidate(cxt, sch) - callRef(cxt, v, sch, sch.$async) - } - - function inlineRefSchema(sch: AnySchema): void { - const schName = gen.scopeValue( - "schema", - opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch} - ) - const valid = gen.name("valid") - const schCxt = cxt.subschema( - { - schema: sch, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, - valid - ) - cxt.mergeEvaluated(schCxt) - cxt.ok(valid) - } - }, -} - -export function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code { - const {gen} = cxt - return sch.validate - ? gen.scopeValue("validate", {ref: sch.validate}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.validate` -} - -export function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void { - const {gen, it} = cxt - const {allErrors, schemaEnv: env, opts} = it - const passCxt = opts.passContext ? N.this : nil - if ($async) callAsyncRef() - else callSyncRef() - - function callAsyncRef(): void { - if (!env.$async) throw new Error("async schema referenced by sync schema") - const valid = gen.let("valid") - gen.try( - () => { - gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`) - addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result - if (!allErrors) gen.assign(valid, true) - }, - (e) => { - gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e)) - addErrorsFrom(e) - if (!allErrors) gen.assign(valid, false) - } - ) - cxt.ok(valid) - } - - function callSyncRef(): void { - cxt.result( - callValidateCode(cxt, v, passCxt), - () => addEvaluatedFrom(v), - () => addErrorsFrom(v) - ) - } - - function addErrorsFrom(source: Code): void { - const errs = _`${source}.errors` - gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged - gen.assign(N.errors, _`${N.vErrors}.length`) - } - - function addEvaluatedFrom(source: Code): void { - if (!it.opts.unevaluated) return - const schEvaluated = sch?.validate?.evaluated - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props) - } - } else { - const props = gen.var("props", _`${source}.evaluated.props`) - it.props = mergeEvaluated.props(gen, props, it.props, Name) - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items) - } - } else { - const items = gen.var("items", _`${source}.evaluated.items`) - it.items = mergeEvaluated.items(gen, items, it.items, Name) - } - } - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts deleted file mode 100644 index 98f0f8cf..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Name} from "../../compile/codegen" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" -import {resolveRef, SchemaEnv} from "../../compile" -import {schemaHasRulesButRef} from "../../compile/util" - -export type DiscriminatorError = DiscrErrorObj | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: ({params: {discrError, tagName}}) => - discrError === DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({params: {discrError, tag, tagName}}) => - _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const {gen, data, schema, parentSchema, it} = cxt - const {oneOf} = parentSchema - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option") - } - const tagName = schema.propertyName - if (typeof tagName != "string") throw new Error("discriminator: requires propertyName") - if (schema.mapping) throw new Error("discriminator: mapping is not supported") - if (!oneOf) throw new Error("discriminator: requires oneOf keyword") - const valid = gen.let("valid", false) - const tag = gen.const("tag", _`${data}${getProperty(tagName)}`) - gen.if( - _`typeof ${tag} == "string"`, - () => validateMapping(), - () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName}) - ) - cxt.ok(valid) - - function validateMapping(): void { - const mapping = getMapping() - gen.if(false) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(mapping[tagValue])) - } - gen.else() - cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName}) - gen.endIf() - } - - function applyTagSchema(schemaProp?: number): Name { - const _valid = gen.name("valid") - const schCxt = cxt.subschema({keyword: "oneOf", schemaProp}, _valid) - cxt.mergeEvaluated(schCxt, Name) - return _valid - } - - function getMapping(): {[T in string]?: number} { - const oneOfMapping: {[T in string]?: number} = {} - const topRequired = hasRequired(parentSchema) - let tagRequired = true - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i] - if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) { - sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch?.$ref) - if (sch instanceof SchemaEnv) sch = sch.schema - } - const propSch = sch?.properties?.[tagName] - if (typeof propSch != "object") { - throw new Error( - `discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"` - ) - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)) - addMappings(propSch, i) - } - if (!tagRequired) throw new Error(`discriminator: "${tagName}" must be required`) - return oneOfMapping - - function hasRequired({required}: AnySchemaObject): boolean { - return Array.isArray(required) && required.includes(tagName) - } - - function addMappings(sch: AnySchemaObject, i: number): void { - if (sch.const) { - addMapping(sch.const, i) - } else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i) - } - } else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`) - } - } - - function addMapping(tagValue: unknown, i: number): void { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`) - } - oneOfMapping[tagValue] = i - } - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts deleted file mode 100644 index bee5a278..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {ErrorObject} from "../../types" - -export enum DiscrError { - Tag = "tag", - Mapping = "mapping", -} - -export type DiscrErrorObj = ErrorObject< - "discriminator", - {error: E; tag: string; tagValue: unknown}, - string -> diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts deleted file mode 100644 index 47fbf0ee..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import dynamicVocabulary from "./dynamic" -import nextVocabulary from "./next" -import unevaluatedVocabulary from "./unevaluated" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft2020Vocabularies: Vocabulary[] = [ - dynamicVocabulary, - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(true), - formatVocabulary, - metadataVocabulary, - contentVocabulary, - nextVocabulary, - unevaluatedVocabulary, -] - -export default draft2020Vocabularies diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts deleted file mode 100644 index 226a644a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft7Vocabularies: Vocabulary[] = [ - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(), - formatVocabulary, - metadataVocabulary, - contentVocabulary, -] - -export default draft7Vocabularies diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts deleted file mode 100644 index ca1adb91..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, compileSchema} from "../../compile" -import {getValidate} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -} - -export function dynamicAnchor(cxt: KeywordCxt, anchor: string): void { - const {gen, it} = cxt - it.schemaEnv.root.dynamicAnchors[anchor] = true - const v = _`${N.dynamicAnchors}${getProperty(anchor)}` - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt) - gen.if(_`!${v}`, () => gen.assign(v, validate)) -} - -function _getValidate(cxt: KeywordCxt): Code { - const {schemaEnv, schema, self} = cxt.it - const {root, baseId, localRefs, meta} = schemaEnv.root - const {schemaId} = self.opts - const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta}) - compileSchema.call(self, sch) - return getValidate(cxt, sch) -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts deleted file mode 100644 index 6a573f33..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {callRef} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export function dynamicRef(cxt: KeywordCxt, ref: string): void { - const {gen, keyword, it} = cxt - if (ref[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`) - const anchor = ref.slice(1) - if (it.allErrors) { - _dynamicRef() - } else { - const valid = gen.let("valid", false) - _dynamicRef(valid) - cxt.ok(valid) - } - - function _dynamicRef(valid?: Name): void { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", _`${N.dynamicAnchors}${getProperty(anchor)}`) - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)) - } else { - _callRef(it.validateName, valid)() - } - } - - function _callRef(validate: Code, valid?: Name): () => void { - return valid - ? () => - gen.block(() => { - callRef(cxt, validate) - gen.let(valid, true) - }) - : () => callRef(cxt, validate) - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts deleted file mode 100644 index 6d521db6..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type {Vocabulary} from "../../types" -import dynamicAnchor from "./dynamicAnchor" -import dynamicRef from "./dynamicRef" -import recursiveAnchor from "./recursiveAnchor" -import recursiveRef from "./recursiveRef" - -const dynamic: Vocabulary = [dynamicAnchor, dynamicRef, recursiveAnchor, recursiveRef] - -export default dynamic diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts deleted file mode 100644 index 25f3db96..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicAnchor} from "./dynamicAnchor" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) dynamicAnchor(cxt, "") - else checkStrictMode(cxt.it, "$recursiveAnchor: false is ignored") - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts deleted file mode 100644 index c84af0f0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicRef} from "./dynamicRef" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts deleted file mode 100644 index c9ca3f02..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type {TypeError} from "../compile/validate/dataType" -import type {ApplicatorKeywordError} from "./applicator" -import type {ValidationKeywordError} from "./validation" -import type {FormatError} from "./format/format" -import type {UnevaluatedPropertiesError} from "./unevaluated/unevaluatedProperties" -import type {UnevaluatedItemsError} from "./unevaluated/unevaluatedItems" -import type {DependentRequiredError} from "./validation/dependentRequired" -import type {DiscriminatorError} from "./discriminator" - -export type DefinedError = - | TypeError - | ApplicatorKeywordError - | ValidationKeywordError - | FormatError - | UnevaluatedPropertiesError - | UnevaluatedItemsError - | DependentRequiredError - | DiscriminatorError diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts deleted file mode 100644 index 4b1c13e7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +++ /dev/null @@ -1,120 +0,0 @@ -import type { - AddedFormat, - FormatValidator, - AsyncFormatValidator, - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, nil, or, Code, getProperty, regexpCode} from "../../compile/codegen" - -type FormatValidate = - | FormatValidator - | FormatValidator - | AsyncFormatValidator - | AsyncFormatValidator - | RegExp - | string - | true - -export type FormatError = ErrorObject<"format", {format: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match format "${schemaCode}"`, - params: ({schemaCode}) => _`{format: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt, ruleType?: string) { - const {gen, data, $data, schema, schemaCode, it} = cxt - const {opts, errSchemaPath, schemaEnv, self} = it - if (!opts.validateFormats) return - - if ($data) validate$DataFormat() - else validateFormat() - - function validate$DataFormat(): void { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }) - const fDef = gen.const("fDef", _`${fmts}[${schemaCode}]`) - const fType = gen.let("fType") - const format = gen.let("format") - // TODO simplify - gen.if( - _`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, - () => gen.assign(fType, _`${fDef}.type || "string"`).assign(format, _`${fDef}.validate`), - () => gen.assign(fType, _`"string"`).assign(format, fDef) - ) - cxt.fail$data(or(unknownFmt(), invalidFmt())) - - function unknownFmt(): Code { - if (opts.strictSchema === false) return nil - return _`${schemaCode} && !${format}` - } - - function invalidFmt(): Code { - const callFormat = schemaEnv.$async - ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : _`${format}(${data})` - const validData = _`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))` - return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}` - } - } - - function validateFormat(): void { - const formatDef: AddedFormat | undefined = self.formats[schema] - if (!formatDef) { - unknownFormat() - return - } - if (formatDef === true) return - const [fmtType, format, fmtRef] = getFormat(formatDef) - if (fmtType === ruleType) cxt.pass(validCondition()) - - function unknownFormat(): void { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()) - return - } - throw new Error(unknownMsg()) - - function unknownMsg(): string { - return `unknown format "${schema as string}" ignored in schema at path "${errSchemaPath}"` - } - } - - function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] { - const code = - fmtDef instanceof RegExp - ? regexpCode(fmtDef) - : opts.code.formats - ? _`${opts.code.formats}${getProperty(schema)}` - : undefined - const fmt = gen.scopeValue("formats", {key: schema, ref: fmtDef, code}) - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, _`${fmt}.validate`] - } - - return ["string", fmtDef, fmt] - } - - function validCondition(): Code { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) throw new Error("async format in sync schema") - return _`await ${fmtRef}(${data})` - } - return typeof format == "function" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})` - } - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts deleted file mode 100644 index bca2f5b3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type {Vocabulary} from "../../types" -import formatKeyword from "./format" - -const format: Vocabulary = [formatKeyword] - -export default format diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts deleted file mode 100644 index f487c97f..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not, getProperty, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" - -export type JTDDiscriminatorError = - | _JTDTypeError<"discriminator", "object", string> - | DiscrErrorObj - | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? params.discrError === DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? _`{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, parentSchema} = cxt - const [valid, cond] = checkNullableObject(cxt, data) - - gen.if(cond) - validateDiscriminator() - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - cxt.ok(valid) - - function validateDiscriminator(): void { - const tag = gen.const("tag", _`${data}${getProperty(schema)}`) - gen.if(_`${tag} === undefined`) - cxt.error(false, {discrError: DiscrError.Tag, tag}) - gen.elseIf(_`typeof ${tag} == "string"`) - validateMapping(tag) - gen.else() - cxt.error(false, {discrError: DiscrError.Tag, tag}, {instancePath: schema}) - gen.endIf() - } - - function validateMapping(tag: Name): void { - gen.if(false) - for (const tagValue in parentSchema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(tagValue)) - } - gen.else() - cxt.error( - false, - {discrError: DiscrError.Mapping, tag}, - {instancePath: schema, schemaPath: "mapping", parentSchema: true} - ) - gen.endIf() - } - - function applyTagSchema(schemaProp: string): Name { - const _valid = gen.name("valid") - cxt.subschema( - { - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, - _valid - ) - return _valid - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts deleted file mode 100644 index 983af7c0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {_, not} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "elements", - schemaType: "object", - error: typeError("array"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const [valid] = checkNullable(cxt) - gen.if(not(valid), () => - gen.if( - _`Array.isArray(${data})`, - () => gen.assign(valid, validateArray(cxt)), - () => cxt.error() - ) - ) - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts deleted file mode 100644 index 75464ff8..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition, ErrorObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, and, Code} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" - -export type JTDEnumError = ErrorObject<"enum", {allowedValues: string[]}, string[]> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, schemaValue, parentSchema, it} = cxt - if (schema.length === 0) throw new Error("enum must have non-empty array") - if (schema.length !== new Set(schema).size) throw new Error("enum items must be unique") - let valid: Code - const isString = _`typeof ${data} == "string"` - if (schema.length >= it.opts.loopEnum) { - let cond: Code - ;[valid, cond] = checkNullable(cxt, isString) - gen.if(cond, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - valid = and(isString, or(...schema.map((value: string) => _`${data} === ${value}`))) - if (parentSchema.nullable) valid = or(_`${data} === null`, valid) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.forOf("v", schemaValue as Code, (v) => - gen.if(_`${valid} = ${data} === ${v}`, () => gen.break()) - ) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts deleted file mode 100644 index 50693225..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt, ErrorObject} from "../../types" -import {_, Code} from "../../compile/codegen" - -export type _JTDTypeError = ErrorObject< - K, - {type: T; nullable: boolean}, - S -> - -export function typeError(t: string): KeywordErrorDefinition { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - } -} - -export function typeErrorMessage({parentSchema}: KeywordErrorCxt, t: string): string { - return parentSchema?.nullable ? `must be ${t} or null` : `must be ${t}` -} - -export function typeErrorParams({parentSchema}: KeywordErrorCxt, t: string): Code { - return _`{type: ${t}, nullable: ${!!parentSchema?.nullable}}` -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts deleted file mode 100644 index f7baebc3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type {Vocabulary} from "../../types" -import refKeyword from "./ref" -import typeKeyword, {JTDTypeError} from "./type" -import enumKeyword, {JTDEnumError} from "./enum" -import elements, {JTDElementsError} from "./elements" -import properties, {JTDPropertiesError} from "./properties" -import optionalProperties from "./optionalProperties" -import discriminator, {JTDDiscriminatorError} from "./discriminator" -import values, {JTDValuesError} from "./values" -import union from "./union" -import metadata from "./metadata" - -const jtdVocabulary: Vocabulary = [ - "definitions", - refKeyword, - typeKeyword, - enumKeyword, - elements, - properties, - optionalProperties, - discriminator, - values, - union, - metadata, - {keyword: "additionalProperties", schemaType: "boolean"}, - {keyword: "nullable", schemaType: "boolean"}, -] - -export default jtdVocabulary - -export type JTDErrorObject = - | JTDTypeError - | JTDEnumError - | JTDElementsError - | JTDPropertiesError - | JTDDiscriminatorError - | JTDValuesError diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts deleted file mode 100644 index 19eeb8c7..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {KeywordCxt} from "../../ajv" -import type {CodeKeywordDefinition} from "../../types" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "metadata", - schemaType: "object", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - cxt.subschema({keyword: "metadata", jtdMetadata: true}, valid) - cxt.ok(valid) - }, -} - -export function checkMetadata({it, keyword}: KeywordCxt, metadata?: boolean): void { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`) - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts deleted file mode 100644 index c74b05da..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type {KeywordCxt} from "../../compile/validate" -import {_, not, nil, Code, Name} from "../../compile/codegen" - -export function checkNullable( - {gen, data, parentSchema}: KeywordCxt, - cond: Code = nil -): [Name, Code] { - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.let(valid, _`${data} === null`) - cond = not(valid) - } else { - gen.let(valid, false) - } - return [valid, cond] -} - -export function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code] { - const [valid, cond_] = checkNullable(cxt, cond) - return [valid, _`${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`] -} diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts deleted file mode 100644 index 8e91c8d9..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {validateProperties, error} from "./properties" - -const def: CodeKeywordDefinition = { - keyword: "optionalProperties", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - if (cxt.parentSchema.properties) return - validateProperties(cxt) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts deleted file mode 100644 index 728c0b92..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +++ /dev/null @@ -1,177 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties, isOwnProperty} from "../code" -import {alwaysValidSchema, schemaRefOrVal} from "../../compile/util" -import {_, and, not, Code, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -enum PropError { - Additional = "additional", - Missing = "missing", -} - -type PropKeyword = "properties" | "optionalProperties" - -type PropSchema = {[P in string]?: SchemaObject} - -export type JTDPropertiesError = - | _JTDTypeError - | ErrorObject - | ErrorObject - -export const error: KeywordErrorDefinition = { - message: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? _`{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : _`{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "properties", - schemaType: "object", - error, - code: validateProperties, -} - -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } - -export function validateProperties(cxt: KeywordCxt): void { - checkMetadata(cxt) - const {gen, data, parentSchema, it} = cxt - const {additionalProperties, nullable} = parentSchema - if (it.jtdDiscriminator && nullable) throw new Error("JTD: nullable inside discriminator mapping") - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members") - } - const [allProps, properties] = schemaProperties("properties") - const [allOptProps, optProperties] = schemaProperties("optionalProperties") - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return - } - - const [valid, cond] = - it.jtdDiscriminator === undefined - ? checkNullableObject(cxt, data) - : [gen.let("valid", false), true] - gen.if(cond, () => - gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true) - validateProps(optProperties, "optionalProperties") - if (!additionalProperties) validateAdditional() - }) - ) - cxt.pass(valid) - - function commonProperties(): boolean { - const props = parentSchema.properties as Record | undefined - const optProps = parentSchema.optionalProperties as Record | undefined - if (!(props && optProps)) return false - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) return true - } - return false - } - - function schemaProperties(keyword: string): [string[], string[]] { - const schema = parentSchema[keyword] - const allPs = schema ? allSchemaProperties(schema) : [] - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`) - } - const ps = allPs.filter((p) => !alwaysValidSchema(it, schema[p])) - return [allPs, ps] - } - - function validateProps(props: string[], keyword: string, required?: boolean): void { - const _valid = gen.var("valid") - for (const prop of props) { - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => applyPropertySchema(prop, keyword, _valid), - () => missingProperty(prop) - ) - cxt.ok(_valid) - } - - function missingProperty(prop: string): void { - if (required) { - gen.assign(_valid, false) - cxt.error(false, {propError: PropError.Missing, missingProperty: prop}, {schemaPath: prop}) - } else { - gen.assign(_valid, true) - } - } - } - - function applyPropertySchema(prop: string, keyword: string, _valid: Name): void { - cxt.subschema( - { - keyword, - schemaProp: prop, - dataProp: prop, - }, - _valid - ) - } - - function validateAdditional(): void { - gen.forIn("key", data, (key: Name) => { - const _allProps = - it.jtdDiscriminator === undefined ? allProps : [it.jtdDiscriminator].concat(allProps) - const addProp = isAdditional(key, _allProps, "properties") - const addOptProp = isAdditional(key, allOptProps, "optionalProperties") - const extra = - addProp === true ? addOptProp : addOptProp === true ? addProp : and(addProp, addOptProp) - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code(_`delete ${data}[${key}]`) - } else { - cxt.error( - false, - {propError: PropError.Additional, additionalProperty: key}, - {instancePath: key, parentSchema: true} - ) - if (!it.opts.allErrors) gen.break() - } - }) - }) - } - - function isAdditional(key: Name, props: string[], keyword: string): Code | true { - let additional: Code | boolean - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema[keyword], keyword) - additional = not(isOwnProperty(gen, propsSchema as Code, key)) - } else if (props.length) { - additional = and(...props.map((p) => _`${key} !== ${p}`)) - } else { - additional = true - } - return additional - } -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts deleted file mode 100644 index 97646ee1..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {compileSchema, SchemaEnv} from "../../compile" -import {_, not, nil, stringify} from "../../compile/codegen" -import MissingRefError from "../../compile/ref_error" -import N from "../../compile/names" -import {getValidate, callRef} from "../core/ref" -import {checkMetadata} from "./metadata" - -const def: CodeKeywordDefinition = { - keyword: "ref", - schemaType: "string", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema: ref, parentSchema, it} = cxt - const { - schemaEnv: {root}, - } = it - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.var(valid, _`${data} === null`) - gen.if(not(valid), validateJtdRef) - } else { - gen.var(valid, false) - validateJtdRef() - } - cxt.ok(valid) - - function validateJtdRef(): void { - const refSchema = (root.schema as AnySchemaObject).definitions?.[ref] - if (!refSchema) { - throw new MissingRefError(it.opts.uriResolver, "", ref, `No definition ${ref}`) - } - if (hasRef(refSchema) || !it.opts.inlineRefs) callValidate(refSchema) - else inlineRefSchema(refSchema) - } - - function callValidate(schema: AnySchemaObject): void { - const sch = compileSchema.call( - it.self, - new SchemaEnv({schema, root, schemaPath: `/definitions/${ref}`}) - ) - const v = getValidate(cxt, sch) - const errsCount = gen.const("_errs", N.errors) - callRef(cxt, v, sch, sch.$async) - gen.assign(valid, _`${errsCount} === ${N.errors}`) - } - - function inlineRefSchema(schema: AnySchemaObject): void { - const schName = gen.scopeValue( - "schema", - it.opts.code.source === true ? {ref: schema, code: stringify(schema)} : {ref: schema} - ) - cxt.subschema( - { - schema, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, - valid - ) - } - }, -} - -export function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - let sch: AnySchemaObject - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) return true - } - return false -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts deleted file mode 100644 index 17274300..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, nil, or, Code} from "../../compile/codegen" -import validTimestamp from "../../runtime/timestamp" -import {useFunc} from "../../compile/util" -import {checkMetadata} from "./metadata" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -export type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType> - -export type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -export const intRange: {[T in IntType]: [number, number, number]} = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -} - -export type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType - -const error: KeywordErrorDefinition = { - message: (cxt) => typeErrorMessage(cxt, cxt.schema), - params: (cxt) => typeErrorParams(cxt, cxt.schema), -} - -function timestampCode(cxt: KeywordCxt): Code { - const {gen, data, it} = cxt - const {timestamp, allowDate} = it.opts - if (timestamp === "date") return _`${data} instanceof Date ` - const vts = useFunc(gen, validTimestamp) - const allowDateArg = allowDate ? _`, true` : nil - const validString = _`typeof ${data} == "string" && ${vts}(${data}${allowDateArg})` - return timestamp === "string" ? validString : or(_`${data} instanceof Date`, validString) -} - -const def: CodeKeywordDefinition = { - keyword: "type", - schemaType: "string", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {data, schema, parentSchema, it} = cxt - let cond: Code - switch (schema) { - case "boolean": - case "string": - cond = _`typeof ${data} == ${schema}` - break - case "timestamp": { - cond = timestampCode(cxt) - break - } - case "float32": - case "float64": - cond = _`typeof ${data} == "number"` - break - default: { - const sch = schema as IntType - cond = _`typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)` - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") cond = _`${cond} && ${data} >= 0` - } else { - const [min, max] = intRange[sch] - cond = _`${cond} && ${data} >= ${min} && ${data} <= ${max}` - } - } - } - cxt.pass(parentSchema.nullable ? or(_`${data} === null`, cond) : cond) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts deleted file mode 100644 index 588f07ab..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateUnion} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in union"}, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts deleted file mode 100644 index 86091b8c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema, Type} from "../../compile/util" -import {not, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "values", - schemaType: "object", - error: typeError("object"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const [valid, cond] = checkNullableObject(cxt, data) - gen.if(cond) - gen.assign(valid, validateMap()) - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - cxt.ok(valid) - - function validateMap(): Name | boolean { - const _valid = gen.name("valid") - if (it.allErrors) { - const validMap = gen.let("valid", true) - validateValues(() => gen.assign(validMap, false)) - return validMap - } - gen.var(_valid, true) - validateValues(() => gen.break()) - return _valid - - function validateValues(notValid: () => void): void { - gen.forIn("key", data, (key) => { - cxt.subschema( - { - keyword: "values", - dataProp: key, - dataPropType: Type.Str, - }, - _valid - ) - gen.if(not(_valid), notValid) - }) - } - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts deleted file mode 100644 index b9d5af85..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" - -export const metadataVocabulary: Vocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -] - -export const contentVocabulary: Vocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -] diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts deleted file mode 100644 index 1e987ad2..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {Vocabulary} from "../types" -import dependentRequired from "./validation/dependentRequired" -import dependentSchemas from "./applicator/dependentSchemas" -import limitContains from "./validation/limitContains" - -const next: Vocabulary = [dependentRequired, dependentSchemas, limitContains] - -export default next diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts deleted file mode 100644 index f7f0815d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Vocabulary} from "../../types" -import unevaluatedProperties from "./unevaluatedProperties" -import unevaluatedItems from "./unevaluatedItems" - -const unevaluated: Vocabulary = [unevaluatedProperties, unevaluatedItems] - -export default unevaluated diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts deleted file mode 100644 index 50bf0e7c..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" - -export type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - const items = it.items || 0 - if (items === true) return - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items}) - cxt.fail(_`${len} > ${items}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items}`) - gen.if(not(valid), () => validateItems(valid, items)) - cxt.ok(valid) - } - it.items = true - - function validateItems(valid: Name, from: Name | number): void { - gen.forRange("i", from, len, (i) => { - cxt.subschema({keyword: "unevaluatedItems", dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts deleted file mode 100644 index 0e6868fa..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +++ /dev/null @@ -1,85 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import {_, not, and, Name, Code} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" -import N from "../../compile/names" - -export type UnevaluatedPropertiesError = ErrorObject< - "unevaluatedProperties", - {unevaluatedProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have unevaluated properties", - params: ({params}) => _`{unevaluatedProperty: ${params.unevaluatedProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const {gen, schema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, props} = it - if (props instanceof Name) { - gen.if(_`${props} !== true`, () => - gen.forIn("key", data, (key: Name) => - gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)) - ) - ) - } else if (props !== true) { - gen.forIn("key", data, (key: Name) => - props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)) - ) - } - it.props = true - cxt.ok(_`${errsCount} === ${N.errors}`) - - function unevaluatedPropCode(key: Name): void { - if (schema === false) { - cxt.setParams({unevaluatedProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (!alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - - function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code { - return _`!${evaluatedProps} || !${evaluatedProps}[${key}]` - } - - function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code { - const ps: Code[] = [] - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`) - } - return and(...ps) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts deleted file mode 100644 index a3b94a5d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type ConstError = ErrorObject<"const", {allowedValue: any}> - -const error: KeywordErrorDefinition = { - message: "must be equal to constant", - params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "const", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schemaCode, schema} = cxt - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`) - } else { - cxt.fail(_`${schema} !== ${data}`) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts deleted file mode 100644 index 4c616cfa..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject} from "../../types" -import { - validatePropertyDeps, - error, - DependenciesErrorParams, - PropertyDependencies, -} from "../applicator/dependencies" - -export type DependentRequiredError = ErrorObject< - "dependentRequired", - DependenciesErrorParams, - PropertyDependencies -> - -const def: CodeKeywordDefinition = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error, - code: (cxt) => validatePropertyDeps(cxt), -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts deleted file mode 100644 index 76377fb0..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, Name, Code} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type EnumError = ErrorObject<"enum", {allowedValues: any[]}, any[] | {$data: string}> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, schemaCode, it} = cxt - if (!$data && schema.length === 0) throw new Error("enum must have non-empty array") - const useLoop = schema.length >= it.opts.loopEnum - let eql: Name | undefined - const getEql = (): Name => (eql ??= useFunc(gen, equal)) - - let valid: Code - if (useLoop || $data) { - valid = gen.let("valid") - cxt.block$data(valid, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const vSchema = gen.const("vSchema", schemaCode) - valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i))) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.assign(valid, false) - gen.forOf("v", schemaCode as Code, (v) => - gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()) - ) - } - - function equalCode(vSchema: Name, i: number): Code { - const sch = schema[i] - return typeof sch === "object" && sch !== null - ? _`${getEql()}(${data}, ${vSchema}[${i}])` - : _`${data} === ${sch}` - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts deleted file mode 100644 index 3531b196..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type {ErrorObject, Vocabulary} from "../../types" -import limitNumber, {LimitNumberError} from "./limitNumber" -import multipleOf, {MultipleOfError} from "./multipleOf" -import limitLength from "./limitLength" -import pattern, {PatternError} from "./pattern" -import limitProperties from "./limitProperties" -import required, {RequiredError} from "./required" -import limitItems from "./limitItems" -import uniqueItems, {UniqueItemsError} from "./uniqueItems" -import constKeyword, {ConstError} from "./const" -import enumKeyword, {EnumError} from "./enum" - -const validation: Vocabulary = [ - // number - limitNumber, - multipleOf, - // string - limitLength, - pattern, - // object - limitProperties, - required, - // array - limitItems, - uniqueItems, - // any - {keyword: "type", schemaType: ["string", "array"]}, - {keyword: "nullable", schemaType: "boolean"}, - constKeyword, - enumKeyword, -] - -export default validation - -type LimitError = ErrorObject< - "maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", - {limit: number}, - number | {$data: string} -> - -export type ValidationKeywordError = - | LimitError - | LimitNumberError - | MultipleOfError - | PatternError - | RequiredError - | UniqueItemsError - | ConstError - | EnumError diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts deleted file mode 100644 index 8bb43c1a..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.contains === undefined) { - checkStrictMode(it, `"${keyword}" without "contains" is ignored`) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts deleted file mode 100644 index 566de858..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxItems" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} items` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxItems" ? operators.GT : operators.LT - cxt.fail$data(_`${data}.length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts deleted file mode 100644 index f4f94725..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import ucs2length from "../../runtime/ucs2length" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxLength" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} characters` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode, it} = cxt - const op = keyword === "maxLength" ? operators.GT : operators.LT - const len = - it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})` - cxt.fail$data(_`${len} ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts deleted file mode 100644 index 5499202e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators, Code} from "../../compile/codegen" - -const ops = operators - -type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum" - -type Comparison = "<=" | ">=" | "<" | ">" - -const KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = { - maximum: {okStr: "<=", ok: ops.LTE, fail: ops.GT}, - minimum: {okStr: ">=", ok: ops.GTE, fail: ops.LT}, - exclusiveMaximum: {okStr: "<", ok: ops.LT, fail: ops.GTE}, - exclusiveMinimum: {okStr: ">", ok: ops.GT, fail: ops.LTE}, -} - -export type LimitNumberError = ErrorObject< - Kwd, - {limit: number; comparison: Comparison}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`, - params: ({keyword, schemaCode}) => - _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts deleted file mode 100644 index 07fffa8b..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxProperties" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} properties` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxProperties" ? operators.GT : operators.LT - cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts deleted file mode 100644 index 1fd79abb..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" - -export type MultipleOfError = ErrorObject< - "multipleOf", - {multipleOf: number}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must be multiple of ${schemaCode}`, - params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, schemaCode, it} = cxt - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision - const res = gen.let("res") - const invalid = prec - ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : _`${res} !== parseInt(${res})` - cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts deleted file mode 100644 index 7b27b7d3..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {usePattern} from "../code" -import {_, str} from "../../compile/codegen" - -export type PatternError = ErrorObject<"pattern", {pattern: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match pattern "${schemaCode}"`, - params: ({schemaCode}) => _`{pattern: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt) { - const {data, $data, schema, schemaCode, it} = cxt - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : "" - const regExp = $data ? _`(new RegExp(${schemaCode}, ${u}))` : usePattern(cxt, schema) - cxt.fail$data(_`!${regExp}.test(${data})`) - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts deleted file mode 100644 index fea7367e..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import { - checkReportMissingProp, - checkMissingProp, - reportMissingProp, - propertyInData, - noPropertyInData, -} from "../code" -import {_, str, nil, not, Name, Code} from "../../compile/codegen" -import {checkStrictMode} from "../../compile/util" - -export type RequiredError = ErrorObject< - "required", - {missingProperty: string}, - string[] | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`, - params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, schemaCode, data, $data, it} = cxt - const {opts} = it - if (!$data && schema.length === 0) return - const useLoop = schema.length >= opts.loopRequired - if (it.allErrors) allErrorsMode() - else exitOnErrorMode() - - if (opts.strictRequired) { - const props = cxt.parentSchema.properties - const {definedProperties} = cxt.it - for (const requiredKey of schema) { - if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)` - checkStrictMode(it, msg, it.opts.strictRequired) - } - } - } - - function allErrorsMode(): void { - if (useLoop || $data) { - cxt.block$data(nil, loopAllRequired) - } else { - for (const prop of schema) { - checkReportMissingProp(cxt, prop) - } - } - } - - function exitOnErrorMode(): void { - const missing = gen.let("missing") - if (useLoop || $data) { - const valid = gen.let("valid", true) - cxt.block$data(valid, () => loopUntilMissing(missing, valid)) - cxt.ok(valid) - } else { - gen.if(checkMissingProp(cxt, schema, missing)) - reportMissingProp(cxt, missing) - gen.else() - } - } - - function loopAllRequired(): void { - gen.forOf("prop", schemaCode as Code, (prop) => { - cxt.setParams({missingProperty: prop}) - gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error()) - }) - } - - function loopUntilMissing(missing: Name, valid: Name): void { - cxt.setParams({missingProperty: missing}) - gen.forOf( - missing, - schemaCode as Code, - () => { - gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties)) - gen.if(not(valid), () => { - cxt.error() - gen.break() - }) - }, - nil - ) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts b/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts deleted file mode 100644 index 765c4d04..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkDataTypes, getSchemaTypes, DataType} from "../../compile/validate/dataType" -import {_, str, Name} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type UniqueItemsError = ErrorObject< - "uniqueItems", - {i: number; j: number}, - boolean | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {i, j}}) => - str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt - if (!$data && !schema) return - const valid = gen.let("valid") - const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : [] - cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`) - cxt.ok(valid) - - function validateUniqueItems(): void { - const i = gen.let("i", _`${data}.length`) - const j = gen.let("j") - cxt.setParams({i, j}) - gen.assign(valid, true) - gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)) - } - - function canOptimize(): boolean { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array") - } - - function loopN(i: Name, j: Name): void { - const item = gen.name("item") - const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong) - const indices = gen.const("indices", _`{}`) - gen.for(_`;${i}--;`, () => { - gen.let(item, _`${data}[${i}]`) - gen.if(wrongType, _`continue`) - if (itemTypes.length > 1) gen.if(_`typeof ${item} == "string"`, _`${item} += "_"`) - gen - .if(_`typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, _`${indices}[${item}]`) - cxt.error() - gen.assign(valid, false).break() - }) - .code(_`${indices}[${item}] = ${i}`) - }) - } - - function loopN2(i: Name, j: Name): void { - const eql = useFunc(gen, equal) - const outer = gen.name("outer") - gen.label(outer).for(_`;${i}--;`, () => - gen.for(_`${j} = ${i}; ${j}--;`, () => - gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error() - gen.assign(valid, false).break(outer) - }) - ) - ) - } - }, -} - -export default def diff --git a/node_modules/ajv-formats/node_modules/ajv/package.json b/node_modules/ajv-formats/node_modules/ajv/package.json deleted file mode 100644 index c277d94d..00000000 --- a/node_modules/ajv-formats/node_modules/ajv/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "name": "ajv", - "version": "8.11.0", - "description": "Another JSON Schema Validator", - "main": "dist/ajv.js", - "types": "dist/ajv.d.ts", - "files": [ - "lib/", - "dist/", - ".runkit_example.js" - ], - "scripts": { - "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite", - "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"", - "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"", - "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot", - "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec", - "test-debug": "npm run test-spec -- --inspect-brk", - "test-cov": "nyc npm run test-spec", - "rollup": "rm -rf bundle && rollup -c", - "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD", - "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts", - "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests", - "test-karma": "karma start", - "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start", - "test-all": "npm run test-cov && if-node-version 12 npm run test-browser", - "test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov", - "test-ci": "AJV_FULL_TEST=true npm test", - "prepublish": "npm run build", - "benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd", - "docs:dev": "./scripts/prepare-site && vuepress dev docs", - "docs:build": "./scripts/prepare-site && vuepress build docs" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "repository": "ajv-validator/ajv", - "keywords": [ - "JSON", - "schema", - "validator", - "validation", - "jsonschema", - "json-schema", - "json-schema-validator", - "json-schema-validation" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": "https://github.com/ajv-validator/ajv/issues", - "homepage": "https://ajv.js.org", - "runkitExampleFilename": ".runkit_example.js", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "devDependencies": { - "@ajv-validator/config": "^0.3.0", - "@rollup/plugin-commonjs": "^21.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.0.0", - "@rollup/plugin-typescript": "^8.2.1", - "@types/chai": "^4.2.12", - "@types/mocha": "^9.0.0", - "@types/node": "^17.0.0", - "@types/require-from-string": "^1.2.0", - "@typescript-eslint/eslint-plugin": "^3.8.0", - "@typescript-eslint/parser": "^3.8.0", - "ajv-formats": "^3.0.0-rc.0", - "browserify": "^17.0.0", - "chai": "^4.0.1", - "cross-env": "^7.0.2", - "dayjs": "^1.10.4", - "dayjs-plugin-utc": "^0.1.2", - "eslint": "^7.8.1", - "eslint-config-prettier": "^7.0.0", - "fast-uri": "^1.0.0", - "glob": "^7.0.0", - "husky": "^7.0.1", - "if-node-version": "^1.0.0", - "jimp": "^0.16.1", - "js-beautify": "^1.7.3", - "json-schema-test": "^2.0.0", - "karma": "^6.0.0", - "karma-chrome-launcher": "^3.0.0", - "karma-mocha": "^2.0.0", - "lint-staged": "^12.1.1", - "mocha": "^9.0.2", - "module-from-string": "^3.1.3", - "node-fetch": "^3.0.0", - "nyc": "^15.0.0", - "prettier": "^2.3.1", - "re2": "^1.16.0", - "rollup": "^2.44.0", - "rollup-plugin-terser": "^7.0.2", - "ts-node": "^10.0.0", - "tsify": "^5.0.2", - "typescript": "^4.2.0" - }, - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/ajv" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - }, - "prettier": "@ajv-validator/config/prettierrc.json", - "husky": { - "hooks": { - "pre-commit": "lint-staged && npm test" - } - }, - "lint-staged": { - "*.{json,yaml,js,ts}": "prettier --write" - } -} diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/.eslintrc.yml b/node_modules/ajv-formats/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index 618559ab..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 15] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/FUNDING.yml b/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/FUNDING.yml deleted file mode 100644 index 44f80f41..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: epoberezkin -tidelift: "npm/json-schema-traverse" diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/build.yml b/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/build.yml deleted file mode 100644 index f8ef5ba8..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: build - -on: - push: - branches: [master] - pull_request: - branches: ["*"] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/publish.yml b/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/publish.yml deleted file mode 100644 index 924825b1..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/publish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish - -on: - release: - types: [published] - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm test - - name: Publish beta version to npm - if: "github.event.release.prerelease" - run: npm publish --tag beta - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish to npm - if: "!github.event.release.prerelease" - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/LICENSE b/node_modules/ajv-formats/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/README.md b/node_modules/ajv-formats/node_modules/json-schema-traverse/README.md deleted file mode 100644 index f3e60073..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse) -[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## Enterprise support - -json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/index.d.ts b/node_modules/ajv-formats/node_modules/json-schema-traverse/index.d.ts deleted file mode 100644 index 0772daed..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -declare function traverse( - schema: traverse.SchemaObject, - opts: traverse.Options, - cb?: traverse.Callback -): void; - -declare function traverse( - schema: traverse.SchemaObject, - cb: traverse.Callback -): void; - -declare namespace traverse { - interface SchemaObject { - $id?: string; - $schema?: string; - [x: string]: any; - } - - type Callback = ( - schema: SchemaObject, - jsonPtr: string, - rootSchema: SchemaObject, - parentJsonPtr?: string, - parentKeyword?: string, - parentSchema?: SchemaObject, - keyIndex?: string | number - ) => void; - - interface Options { - allKeys?: boolean; - cb?: - | Callback - | { - pre?: Callback; - post?: Callback; - }; - } -} - -export = traverse; diff --git a/node_modules/ajv-formats/node_modules/json-schema-traverse/index.js b/node_modules/ajv-formats/node_modules/json-schema-traverse/index.js deleted file mode 100644 index e521bfa8..00000000 --- a/node_modules/ajv-formats/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i\+ - [Keywords for numbers](#keywords-for-numbers) - [range and exclusiveRange](#range-and-exclusiverange) - [Keywords for strings](#keywords-for-strings) - [regexp](#regexp) - - [formatMaximum / formatMinimum and formatExclusiveMaximum / formatExclusiveMinimum](#formatmaximum--formatminimum-and-formatexclusivemaximum--formatexclusiveminimum) - [transform](#transform)\* - [Keywords for arrays](#keywords-for-arrays) - - [uniqueItemProperties](#uniqueitemproperties) + - [uniqueItemProperties](#uniqueitemproperties)\+ - [Keywords for objects](#keywords-for-objects) - [allRequired](#allrequired) - [anyRequired](#anyrequired) @@ -34,56 +35,75 @@ Custom JSON-Schema keywords for [Ajv](https://github.com/epoberezkin/ajv) valida - [prohibited](#prohibited) - [deepProperties](#deepproperties) - [deepRequired](#deeprequired) - - [Compound keywords](#compound-keywords) - - [switch](#switch) (deprecated) - - [select/selectCases/selectDefault](#selectselectcasesselectdefault) (BETA) + - [dynamicDefaults](#dynamicdefaults)\*\+ - [Keywords for all types](#keywords-for-all-types) - - [dynamicDefaults](#dynamicdefaults)\* + - [select/selectCases/selectDefault](#selectselectcasesselectdefault) - [Security contact](#security-contact) - [Open-source software support](#open-source-software-support) - [License](#license) \* - keywords that modify data - +\+ - keywords that are not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) ## Install +To install version 4 to use with [Ajv v7](https://github.com/ajv-validator/ajv): + ``` npm install ajv-keywords ``` - ## Usage To add all available keywords: ```javascript -var Ajv = require('ajv'); -var ajv = new Ajv; -require('ajv-keywords')(ajv); +const Ajv = require("ajv") +const ajv = new Ajv() +require("ajv-keywords")(ajv) -ajv.validate({ instanceof: 'RegExp' }, /.*/); // true -ajv.validate({ instanceof: 'RegExp' }, '.*'); // false +ajv.validate({instanceof: "RegExp"}, /.*/) // true +ajv.validate({instanceof: "RegExp"}, ".*") // false ``` To add a single keyword: ```javascript -require('ajv-keywords')(ajv, 'instanceof'); +require("ajv-keywords")(ajv, "instanceof") ``` To add multiple keywords: ```javascript -require('ajv-keywords')(ajv, ['typeof', 'instanceof']); +require("ajv-keywords")(ajv, ["typeof", "instanceof"]) ``` -To add a single keyword in browser (to avoid adding unused code): +To add a single keyword directly (to avoid adding unused code): ```javascript -require('ajv-keywords/keywords/instanceof')(ajv); +require("ajv-keywords/dist/keywords/select")(ajv, opts) ``` +To add all keywords via Ajv options: + +```javascript +const ajv = new Ajv({keywords: require("ajv-keywords/dist/definitions")(opts)}) +``` + +To add one or several keywords via options: + +```javascript +const ajv = new Ajv({ + keywords: [ + require("ajv-keywords/dist/definitions/typeof")(), + require("ajv-keywords/dist/definitions/instanceof")(), + // select exports an array of 3 definitions - see "select" in docs + ...require("ajv-keywords/dist/definitions/select")(opts), + ], +}) +``` + +`opts` is an optional object with a property `defaultMeta` - URI of meta-schema to use for keywords that use subschemas (`select` and `deepProperties`). The default is `"http://json-schema.org/schema"`. ## Keywords @@ -93,187 +113,154 @@ require('ajv-keywords/keywords/instanceof')(ajv); Based on JavaScript `typeof` operation. -The value of the keyword should be a string (`"undefined"`, `"string"`, `"number"`, `"object"`, `"function"`, `"boolean"` or `"symbol"`) or array of strings. +The value of the keyword should be a string (`"undefined"`, `"string"`, `"number"`, `"object"`, `"function"`, `"boolean"` or `"symbol"`) or an array of strings. To pass validation the result of `typeof` operation on the value should be equal to the string (or one of the strings in the array). +```javascript +ajv.validate({typeof: "undefined"}, undefined) // true +ajv.validate({typeof: "undefined"}, null) // false +ajv.validate({typeof: ["undefined", "object"]}, null) // true ``` -ajv.validate({ typeof: 'undefined' }, undefined); // true -ajv.validate({ typeof: 'undefined' }, null); // false -ajv.validate({ typeof: ['undefined', 'object'] }, null); // true -``` - #### `instanceof` Based on JavaScript `instanceof` operation. -The value of the keyword should be a string (`"Object"`, `"Array"`, `"Function"`, `"Number"`, `"String"`, `"Date"`, `"RegExp"`, `"Promise"` or `"Buffer"`) or array of strings. +The value of the keyword should be a string (`"Object"`, `"Array"`, `"Function"`, `"Number"`, `"String"`, `"Date"`, `"RegExp"` or `"Promise"`) or an array of strings. To pass validation the result of `data instanceof ...` operation on the value should be true: -``` -ajv.validate({ instanceof: 'Array' }, []); // true -ajv.validate({ instanceof: 'Array' }, {}); // false -ajv.validate({ instanceof: ['Array', 'Function'] }, function(){}); // true +```javascript +ajv.validate({instanceof: "Array"}, []) // true +ajv.validate({instanceof: "Array"}, {}) // false +ajv.validate({instanceof: ["Array", "Function"]}, function () {}) // true ``` You can add your own constructor function to be recognised by this keyword: ```javascript -function MyClass() {} -var instanceofDefinition = require('ajv-keywords').get('instanceof').definition; -// or require('ajv-keywords/keywords/instanceof').definition; -instanceofDefinition.CONSTRUCTORS.MyClass = MyClass; - -ajv.validate({ instanceof: 'MyClass' }, new MyClass); // true +class MyClass {} +const instanceofDef = require("ajv-keywords/dist/definitions/instanceof") +instanceofDef.CONSTRUCTORS.MyClass = MyClass +ajv.validate({instanceof: "MyClass"}, new MyClass()) // true ``` +**Please note**: currently `instanceof` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). ### Keywords for numbers #### `range` and `exclusiveRange` -Syntax sugar for the combination of minimum and maximum keywords, also fails schema compilation if there are no numbers in the range. +Syntax sugar for the combination of minimum and maximum keywords (or exclusiveMinimum and exclusiveMaximum), also fails schema compilation if there are no numbers in the range. -The value of this keyword must be the array consisting of two numbers, the second must be greater or equal than the first one. +The value of these keywords must be an array consisting of two numbers, the second must be greater or equal than the first one. -If the validated value is not a number the validation passes, otherwise to pass validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. If `exclusiveRange` keyword is present in the same schema and its value is true, the validated value must not be equal to the range boundaries. +If the validated value is not a number the validation passes, otherwise to pass validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. ```javascript -var schema = { range: [1, 3] }; -ajv.validate(schema, 1); // true -ajv.validate(schema, 2); // true -ajv.validate(schema, 3); // true -ajv.validate(schema, 0.99); // false -ajv.validate(schema, 3.01); // false - -var schema = { range: [1, 3], exclusiveRange: true }; -ajv.validate(schema, 1.01); // true -ajv.validate(schema, 2); // true -ajv.validate(schema, 2.99); // true -ajv.validate(schema, 1); // false -ajv.validate(schema, 3); // false -``` +const schema = {type: "number", range: [1, 3]} +ajv.validate(schema, 1) // true +ajv.validate(schema, 2) // true +ajv.validate(schema, 3) // true +ajv.validate(schema, 0.99) // false +ajv.validate(schema, 3.01) // false +const schema = {type: "number", exclusiveRange: [1, 3]} +ajv.validate(schema, 1.01) // true +ajv.validate(schema, 2) // true +ajv.validate(schema, 2.99) // true +ajv.validate(schema, 1) // false +ajv.validate(schema, 3) // false +``` ### Keywords for strings #### `regexp` -This keyword allows to use regular expressions with flags in schemas (the standard `pattern` keyword does not support flags). +This keyword allows to use regular expressions with flags in schemas, and also without `"u"` flag when needed (the standard `pattern` keyword does not support flags and implies the presence of `"u"` flag). This keyword applies only to strings. If the data is not a string, the validation succeeds. The value of this keyword can be either a string (the result of `regexp.toString()`) or an object with the properties `pattern` and `flags` (the same strings that should be passed to RegExp constructor). ```javascript -var schema = { - type: 'object', +const schema = { + type: "object", properties: { - foo: { regexp: '/foo/i' }, - bar: { regexp: { pattern: 'bar', flags: 'i' } } - } -}; - -var validData = { - foo: 'Food', - bar: 'Barmen' -}; - -var invalidData = { - foo: 'fog', - bar: 'bad' -}; -``` - - -#### `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum` - -These keywords allow to define minimum/maximum constraints when the format keyword defines ordering. - -These keywords apply only to strings. If the data is not a string, the validation succeeds. - -The value of keyword `formatMaximum` (`formatMinimum`) should be a string. This value is the maximum (minimum) allowed value for the data to be valid as determined by `format` keyword. If `format` is not present schema compilation will throw exception. - -When this keyword is added, it defines comparison rules for formats `"date"`, `"time"` and `"date-time"`. Custom formats also can have comparison rules. See [addFormat](https://github.com/epoberezkin/ajv#api-addformat) method. - -The value of keyword `formatExclusiveMaximum` (`formatExclusiveMinimum`) should be a boolean value. These keyword cannot be used without `formatMaximum` (`formatMinimum`). If this keyword value is equal to `true`, the data to be valid should not be equal to the value in `formatMaximum` (`formatMinimum`) keyword. - -```javascript -require('ajv-keywords')(ajv, ['formatMinimum', 'formatMaximum']); - -var schema = { - format: 'date', - formatMinimum: '2016-02-06', - formatMaximum: '2016-12-27', - formatExclusiveMaximum: true + foo: {type: "string", regexp: "/foo/i"}, + bar: {type: "string", regexp: {pattern: "bar", flags: "i"}}, + }, } -var validDataList = ['2016-02-06', '2016-12-26', 1]; +const validData = { + foo: "Food", + bar: "Barmen", +} -var invalidDataList = ['2016-02-05', '2016-12-27', 'abc']; +const invalidData = { + foo: "fog", + bar: "bad", +} ``` - #### `transform` -This keyword allows a string to be modified before validation. +This keyword allows a string to be modified during validation. + +This keyword applies only to strings. If the data is not a string, the `transform` keyword is ignored. -These keywords apply only to strings. If the data is not a string, the transform is skipped. +A standalone string cannot be modified, i.e. `data = 'a'; ajv.validate(schema, data);`, because strings are passed by value -There are limitation due to how ajv is written: -- a stand alone string cannot be transformed. ie `data = 'a'; ajv.validate(schema, data);` -- currently cannot work with `ajv-pack` +**Supported transformations:** -**Supported options:** - `trim`: remove whitespace from start and end -- `trimLeft`: remove whitespace from start -- `trimRight`: remove whitespace from end -- `toLowerCase`: case string to all lower case -- `toUpperCase`: case string to all upper case -- `toEnumCase`: case string to match case in schema +- `trimStart`/`trimLeft`: remove whitespace from start +- `trimEnd`/`trimRight`: remove whitespace from end +- `toLowerCase`: convert to lower case +- `toUpperCase`: convert to upper case +- `toEnumCase`: change string case to be equal to one of `enum` values in the schema -Options are applied in the order they are listed. +Transformations are applied in the order they are listed. Note: `toEnumCase` requires that all allowed values are unique when case insensitive. -**Example: multiple options** +**Example: multiple transformations** + ```javascript -require('ajv-keywords')(ajv, ['transform']); +require("ajv-keywords")(ajv, "transform") -var schema = { - type: 'array', +const schema = { + type: "array", items: { - type:'string', - transform:['trim','toLowerCase'] - } -}; - -var data = [' MixCase ']; -ajv.validate(schema, data); -console.log(data); // ['mixcase'] + type: "string", + transform: ["trim", "toLowerCase"], + }, +} +const data = [" MixCase "] +ajv.validate(schema, data) +console.log(data) // ['mixcase'] ``` **Example: `enumcase`** + ```javascript -require('ajv-keywords')(ajv, ['transform']); +require("ajv-keywords")(ajv, ["transform"]) -var schema = { - type: 'array', +const schema = { + type: "array", items: { - type:'string', - transform:['trim','toEnumCase'], - enum:['pH'] - } -}; - -var data = ['ph',' Ph','PH','pH ']; -ajv.validate(schema, data); -console.log(data); // ['pH','pH','pH','pH'] -``` + type: "string", + transform: ["trim", "toEnumCase"], + enum: ["pH"], + }, +} +const data = ["ph", " Ph", "PH", "pH "] +ajv.validate(schema, data) +console.log(data) // ['pH','pH','pH','pH'] +``` ### Keywords for arrays @@ -286,29 +273,29 @@ This keyword applies only to arrays. If the data is not an array, the validation The value of this keyword must be an array of strings - property names that should have unique values across all items. ```javascript -var schema = { uniqueItemProperties: [ "id", "name" ] }; - -var validData = [ - { id: 1 }, - { id: 2 }, - { id: 3 } -]; - -var invalidData1 = [ - { id: 1 }, - { id: 1 }, // duplicate "id" - { id: 3 } -]; - -var invalidData2 = [ - { id: 1, name: "taco" }, - { id: 2, name: "taco" }, // duplicate "name" - { id: 3, name: "salsa" } -]; +const schema = { + type: "array", + uniqueItemProperties: ["id", "name"], +} + +const validData = [{id: 1}, {id: 2}, {id: 3}] + +const invalidData1 = [ + {id: 1}, + {id: 1}, // duplicate "id" + {id: 3}, +] + +const invalidData2 = [ + {id: 1, name: "taco"}, + {id: 2, name: "taco"}, // duplicate "name" + {id: 3, name: "salsa"}, +] ``` This keyword is contributed by [@blainesch](https://github.com/blainesch). +**Please note**: currently `uniqueItemProperties` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). ### Keywords for objects @@ -327,21 +314,21 @@ If the value of the keyword is `true`, the validation succeeds if the data conta If the `properties` keyword is not present in the same schema object, schema compilation will throw exception. ```javascript -var schema = { +const schema = { + type: "object", properties: { - foo: {type: 'number'}, - bar: {type: 'number'} - } - allRequired: true -}; + foo: {type: "number"}, + bar: {type: "number"}, + }, + allRequired: true, +} -var validData = { foo: 1, bar: 2 }; -var alsoValidData = { foo: 1, bar: 2, baz: 3 }; +const validData = {foo: 1, bar: 2} +const alsoValidData = {foo: 1, bar: 2, baz: 3} -var invalidDataList = [ {}, { foo: 1 }, { bar: 2 } ]; +const invalidDataList = [{}, {foo: 1}, {bar: 2}] ``` - #### `anyRequired` This keyword allows to require the presence of any (at least one) property from the list. @@ -351,17 +338,17 @@ This keyword applies only to objects. If the data is not an object, the validati The value of this keyword must be an array of strings, each string being a property name. For data object to be valid at least one of the properties in this array should be present in the object. ```javascript -var schema = { - anyRequired: ['foo', 'bar'] -}; +const schema = { + type: "object", + anyRequired: ["foo", "bar"], +} -var validData = { foo: 1 }; -var alsoValidData = { foo: 1, bar: 2 }; +const validData = {foo: 1} +const alsoValidData = {foo: 1, bar: 2} -var invalidDataList = [ {}, { baz: 3 } ]; +const invalidDataList = [{}, {baz: 3}] ``` - #### `oneRequired` This keyword allows to require the presence of only one property from the list. @@ -371,17 +358,17 @@ This keyword applies only to objects. If the data is not an object, the validati The value of this keyword must be an array of strings, each string being a property name. For data object to be valid exactly one of the properties in this array should be present in the object. ```javascript -var schema = { - oneRequired: ['foo', 'bar'] -}; +const schema = { + type: "object", + oneRequired: ["foo", "bar"], +} -var validData = { foo: 1 }; -var alsoValidData = { bar: 2, baz: 3 }; +const validData = {foo: 1} +const alsoValidData = {bar: 2, baz: 3} -var invalidDataList = [ {}, { baz: 3 }, { foo: 1, bar: 2 } ]; +const invalidDataList = [{}, {baz: 3}, {foo: 1, bar: 2}] ``` - #### `patternRequired` This keyword allows to require the presence of properties that match some pattern(s). @@ -393,15 +380,17 @@ The value of this keyword should be an array of strings, each string being a reg If the array contains multiple regular expressions, more than one expression can match the same property name. ```javascript -var schema = { patternRequired: [ 'f.*o', 'b.*r' ] }; +const schema = { + type: "object", + patternRequired: ["f.*o", "b.*r"], +} -var validData = { foo: 1, bar: 2 }; -var alsoValidData = { foobar: 3 }; +const validData = {foo: 1, bar: 2} +const alsoValidData = {foobar: 3} -var invalidDataList = [ {}, { foo: 1 }, { bar: 2 } ]; +const invalidDataList = [{}, {foo: 1}, {bar: 2}] ``` - #### `prohibited` This keyword allows to prohibit that any of the properties in the list is present in the object. @@ -410,21 +399,19 @@ This keyword applies only to objects. If the data is not an object, the validati The value of this keyword should be an array of strings, each string being a property name. For data object to be valid none of the properties in this array should be present in the object. -``` -var schema = { prohibited: ['foo', 'bar']}; +```javascript +const schema = { + type: "object", + prohibited: ["foo", "bar"], +} -var validData = { baz: 1 }; -var alsoValidData = {}; +const validData = {baz: 1} +const alsoValidData = {} -var invalidDataList = [ - { foo: 1 }, - { bar: 2 }, - { foo: 1, bar: 2} -]; +const invalidDataList = [{foo: 1}, {bar: 2}, {foo: 1, bar: 2}] ``` -__Please note__: `{prohibited: ['foo', 'bar']}` is equivalent to `{not: {anyRequired: ['foo', 'bar']}}` (i.e. it has the same validation result for any data). - +**Please note**: `{prohibited: ['foo', 'bar']}` is equivalent to `{not: {anyRequired: ['foo', 'bar']}}` (i.e. it has the same validation result for any data). #### `deepProperties` @@ -435,53 +422,52 @@ This keyword applies only to objects. If the data is not an object, the validati The value should be an object, where keys are JSON pointers to the data, starting from the current position in data, and the values are JSON schemas. For data object to be valid the value of each JSON pointer should be valid according to the corresponding schema. ```javascript -var schema = { - type: 'object', +const schema = { + type: "object", deepProperties: { - "/users/1/role": { "enum": ["admin"] } - } -}; + "/users/1/role": {enum: ["admin"]}, + }, +} -var validData = { +const validData = { users: [ {}, { id: 123, - role: 'admin' - } - ] -}; + role: "admin", + }, + ], +} -var alsoValidData = { +const alsoValidData = { users: { - "1": { + 1: { id: 123, - role: 'admin' - } - } -}; + role: "admin", + }, + }, +} -var invalidData = { +const invalidData = { users: [ {}, { id: 123, - role: 'user' - } - ] -}; + role: "user", + }, + ], +} -var alsoInvalidData = { +const alsoInvalidData = { users: { - "1": { + 1: { id: 123, - role: 'user' - } - } -}; + role: "user", + }, + }, +} ``` - #### `deepRequired` This keyword allows to check that some deep properties (identified by JSON pointers) are available. @@ -491,184 +477,111 @@ This keyword applies only to objects. If the data is not an object, the validati The value should be an array of JSON pointers to the data, starting from the current position in data. For data object to be valid each JSON pointer should be some existing part of the data. ```javascript -var schema = { - type: 'object', - deepRequired: ["/users/1/role"] -}; +const schema = { + type: "object", + deepRequired: ["/users/1/role"], +} -var validData = { +const validData = { users: [ {}, { id: 123, - role: 'admin' - } - ] -}; + role: "admin", + }, + ], +} -var invalidData = { +const invalidData = { users: [ {}, { - id: 123 - } - ] -}; + id: 123, + }, + ], +} ``` See [json-schema-org/json-schema-spec#203](https://github.com/json-schema-org/json-schema-spec/issues/203#issue-197211916) for an example of the equivalent schema without `deepRequired` keyword. - -### Compound keywords - -#### `switch` (deprecated) - -__Please note__: this keyword is provided to preserve backward compatibility with previous versions of Ajv. It is strongly recommended to use `if`/`then`/`else` keywords instead, as they have been added to the draft-07 of JSON Schema specification. - -This keyword allows to perform advanced conditional validation. - -The value of the keyword is the array of if/then clauses. Each clause is the object with the following properties: - -- `if` (optional) - the value is JSON-schema -- `then` (required) - the value is JSON-schema or boolean -- `continue` (optional) - the value is boolean - -The validation process is dynamic; all clauses are executed sequentially in the following way: - -1. `if`: - 1. `if` property is JSON-schema according to which the data is: - 1. valid => go to step 2. - 2. invalid => go to the NEXT clause, if this was the last clause the validation of `switch` SUCCEEDS. - 2. `if` property is absent => go to step 2. -2. `then`: - 1. `then` property is `true` or it is JSON-schema according to which the data is valid => go to step 3. - 2. `then` property is `false` or it is JSON-schema according to which the data is invalid => the validation of `switch` FAILS. -3. `continue`: - 1. `continue` property is `true` => go to the NEXT clause, if this was the last clause the validation of `switch` SUCCEEDS. - 2. `continue` property is `false` or absent => validation of `switch` SUCCEEDS. - -```javascript -require('ajv-keywords')(ajv, 'switch'); - -var schema = { - type: 'array', - items: { - type: 'integer', - 'switch': [ - { if: { not: { minimum: 1 } }, then: false }, - { if: { maximum: 10 }, then: true }, - { if: { maximum: 100 }, then: { multipleOf: 10 } }, - { if: { maximum: 1000 }, then: { multipleOf: 100 } }, - { then: false } - ] - } -}; - -var validItems = [1, 5, 10, 20, 50, 100, 200, 500, 1000]; - -var invalidItems = [1, 0, 2000, 11, 57, 123, 'foo']; -``` - -The above schema is equivalent to (for example): - -```javascript -{ - type: 'array', - items: { - type: 'integer', - if: { minimum: 1, maximum: 10 }, - then: true, - else: { - if: { maximum: 100 }, - then: { multipleOf: 10 }, - else: { - if: { maximum: 1000 }, - then: { multipleOf: 100 }, - else: false - } - } - } -} -``` - +### Keywords for all types #### `select`/`selectCases`/`selectDefault` +**Please note**: these keywords are deprecated. It is recommended to use OpenAPI [discriminator](https://ajv.js.org/json-schema.html#discriminator) keyword supported by Ajv v8 instead of `select`. + These keywords allow to choose the schema to validate the data based on the value of some property in the validated data. These keywords must be present in the same schema object (`selectDefault` is optional). -The value of `select` keyword should be a [$data reference](https://github.com/epoberezkin/ajv/tree/5.0.2-beta.0#data-reference) that points to any primitive JSON type (string, number, boolean or null) in the data that is validated. You can also use a constant of primitive type as the value of this keyword (e.g., for debugging purposes). +The value of `select` keyword should be a [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference) that points to any primitive JSON type (string, number, boolean or null) in the data that is validated. You can also use a constant of primitive type as the value of this keyword (e.g., for debugging purposes). The value of `selectCases` keyword must be an object where each property name is a possible string representation of the value of `select` keyword and each property value is a corresponding schema (from draft-06 it can be boolean) that must be used to validate the data. -The value of `selectDefault` keyword is a schema (from draft-06 it can be boolean) that must be used to validate the data in case `selectCases` has no key equal to the stringified value of `select` keyword. +The value of `selectDefault` keyword is a schema (also can be boolean) that must be used to validate the data in case `selectCases` has no key equal to the stringified value of `select` keyword. The validation succeeds in one of the following cases: + - the validation of data using selected schema succeeds, - none of the schemas is selected for validation, - the value of select is undefined (no property in the data that the data reference points to). If `select` value (in data) is not a primitive type the validation fails. -__Please note__: these keywords require Ajv `$data` option to support [$data reference](https://github.com/epoberezkin/ajv/tree/5.0.2-beta.0#data-reference). +This keyword correctly tracks evaluated properties and items to work with `unevaluatedProperties` and `unevaluatedItems` keywords - only properties and items from the subschema that was used (one of `selectCases` subschemas or `selectDefault` subschema) are marked as evaluated. +**Please note**: these keywords require Ajv `$data` option to support [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference). ```javascript -require('ajv-keywords')(ajv, 'select'); +require("ajv-keywords")(ajv, "select") -var schema = { - type: object, - required: ['kind'], +const schema = { + type: "object", + required: ["kind"], properties: { - kind: { type: 'string' } + kind: {type: "string"}, }, - select: { $data: '0/kind' }, + select: {$data: "0/kind"}, selectCases: { foo: { - required: ['foo'], + required: ["foo"], properties: { kind: {}, - foo: { type: 'string' } + foo: {type: "string"}, }, - additionalProperties: false + additionalProperties: false, }, bar: { - required: ['bar'], + required: ["bar"], properties: { kind: {}, - bar: { type: 'number' } + bar: {type: "number"}, }, - additionalProperties: false - } + additionalProperties: false, + }, }, selectDefault: { propertyNames: { - not: { enum: ['foo', 'bar'] } - } - } -}; - -var validDataList = [ - { kind: 'foo', foo: 'any' }, - { kind: 'bar', bar: 1 }, - { kind: 'anything_else', not_bar_or_foo: 'any value' } -]; - -var invalidDataList = [ - { kind: 'foo' }, // no propery foo - { kind: 'bar' }, // no propery bar - { kind: 'foo', foo: 'any', another: 'any value' }, // additional property - { kind: 'bar', bar: 1, another: 'any value' }, // additional property - { kind: 'anything_else', foo: 'any' } // property foo not allowed - { kind: 'anything_else', bar: 1 } // property bar not allowed -]; -``` - -__Please note__: the current implementation is BETA. It does not allow using relative URIs in $ref keywords in schemas in `selectCases` and `selectDefault` that point outside of these schemas. The workaround is to use absolute URIs (that can point to any (sub-)schema added to Ajv, including those inside the current root schema where `select` is used). See [tests](https://github.com/epoberezkin/ajv-keywords/blob/v2.0.0/spec/tests/select.json#L314). + not: {enum: ["foo", "bar"]}, + }, + }, +} +const validDataList = [ + {kind: "foo", foo: "any"}, + {kind: "bar", bar: 1}, + {kind: "anything_else", not_bar_or_foo: "any value"}, +] -### Keywords for all types +const invalidDataList = [ + {kind: "foo"}, // no property foo + {kind: "bar"}, // no property bar + {kind: "foo", foo: "any", another: "any value"}, // additional property + {kind: "bar", bar: 1, another: "any value"}, // additional property + {kind: "anything_else", foo: "any"}, // property foo not allowed + {kind: "anything_else", bar: 1}, // property bar not allowed +] +``` #### `dynamicDefaults` @@ -678,10 +591,10 @@ This keyword only works if `useDefaults` options is used and not inside `anyOf` The keyword should be added on the object level. Its value should be an object with each property corresponding to a property name, in the same way as in standard `properties` keyword. The value of each property can be: -- an identifier of default function (a string) +- an identifier of dynamic default function (a string) - an object with properties `func` (an identifier) and `args` (an object with parameters that will be passed to this function during schema compilation - see examples). -The properties used in `dynamicDefaults` should not be added to `required` keyword (or validation will fail), because unlike `default` this keyword is processed after validation. +The properties used in `dynamicDefaults` should not be added to `required` keyword in the same schema (or validation will fail), because unlike `default` this keyword is processed after validation. There are several predefined dynamic default functions: @@ -694,128 +607,126 @@ There are several predefined dynamic default functions: - `"seq"` - sequential integer number starting from 0. If string is used as a property value, the default sequence will be used. If object `{ func: 'seq', args: { name: 'foo'} }` is used then the sequence with name `"foo"` will be used. Sequences are global, even if different ajv instances are used. ```javascript -var schema = { - type: 'object', +const schema = { + type: "object", dynamicDefaults: { - ts: 'datetime', - r: { func: 'randomint', args: { max: 100 } }, - id: { func: 'seq', args: { name: 'id' } } + ts: "datetime", + r: {func: "randomint", args: {max: 100}}, + id: {func: "seq", args: {name: "id"}}, }, properties: { ts: { - type: 'string', - format: 'date-time' + type: "string", + format: "date-time", }, r: { - type: 'integer', + type: "integer", minimum: 0, - exclusiveMaximum: 100 + exclusiveMaximum: 100, }, id: { - type: 'integer', - minimum: 0 - } - } -}; - -var data = {}; -ajv.validate(data); // true -data; // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } - -var data1 = {}; -ajv.validate(data1); // true -data1; // { ts: '2016-12-01T22:07:29.832Z', r: 68, id: 1 } - -ajv.validate(data1); // true -data1; // didn't change, as all properties were defined + type: "integer", + minimum: 0, + }, + }, +} + +const data = {} +ajv.validate(data) // true +data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } + +const data1 = {} +ajv.validate(data1) // true +data1 // { ts: '2016-12-01T22:07:29.832Z', r: 68, id: 1 } + +ajv.validate(data1) // true +data1 // didn't change, as all properties were defined ``` -When using the `useDefaults` option value `"empty"`, properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. Use the `allOf` [compound keyword](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) to execute `dynamicDefaults` before validation. +When using the `useDefaults` option value `"empty"`, properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. Use `allOf` [compound keyword](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) to execute `dynamicDefaults` before validation. ```javascript -var schema = { +const schema = { + type: "object", allOf: [ { dynamicDefaults: { - ts: 'datetime', - r: { func: 'randomint', args: { min: 5, max: 100 } }, - id: { func: 'seq', args: { name: 'id' } } - } + ts: "datetime", + r: {func: "randomint", args: {min: 5, max: 100}}, + id: {func: "seq", args: {name: "id"}}, + }, }, { - type: 'object', properties: { ts: { - type: 'string' + type: "string", }, r: { - type: 'number', + type: "number", minimum: 5, - exclusiveMaximum: 100 + exclusiveMaximum: 100, }, id: { - type: 'integer', - minimum: 0 - } - } - } - ] -}; - -var data = { ts: '', r: null }; -ajv.validate(data); // true -data; // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } + type: "integer", + minimum: 0, + }, + }, + }, + ], +} + +const data = {ts: "", r: null} +ajv.validate(data) // true +data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } ``` You can add your own dynamic default function to be recognised by this keyword: ```javascript -var uuid = require('uuid'); - -function uuidV4() { return uuid.v4(); } +const uuid = require("uuid") -var definition = require('ajv-keywords').get('dynamicDefaults').definition; -// or require('ajv-keywords/keywords/dynamicDefaults').definition; -definition.DEFAULTS.uuid = uuidV4; +const def = require("ajv-keywords/dist/definitions/dynamicDefaults") +def.DEFAULTS.uuid = () => uuid.v4 -var schema = { - dynamicDefaults: { id: 'uuid' }, - properties: { id: { type: 'string', format: 'uuid' } } -}; +const schema = { + dynamicDefaults: {id: "uuid"}, + properties: {id: {type: "string", format: "uuid"}}, +} -var data = {}; -ajv.validate(schema, data); // true -data; // { id: 'a1183fbe-697b-4030-9bcc-cfeb282a9150' }; +const data = {} +ajv.validate(schema, data) // true +data // { id: 'a1183fbe-697b-4030-9bcc-cfeb282a9150' }; -var data1 = {}; -ajv.validate(schema, data1); // true -data1; // { id: '5b008de7-1669-467a-a5c6-70fa244d7209' } +const data1 = {} +ajv.validate(schema, data1) // true +data1 // { id: '5b008de7-1669-467a-a5c6-70fa244d7209' } ``` -You also can define dynamic default that accepts parameters, e.g. version of uuid: +You also can define dynamic default that accept parameters, e.g. version of uuid: ```javascript -var uuid = require('uuid'); +const uuid = require("uuid") function getUuid(args) { - var version = 'v' + (arvs && args.v || 4); - return function() { - return uuid[version](); - }; + const version = "v" + ((arvs && args.v) || "4") + return uuid[version] } -var definition = require('ajv-keywords').get('dynamicDefaults').definition; -definition.DEFAULTS.uuid = getUuid; +const def = require("ajv-keywords/dist/definitions/dynamicDefaults") +def.DEFAULTS.uuid = getUuid -var schema = { +const schema = { dynamicDefaults: { - id1: 'uuid', // v4 - id2: { func: 'uuid', v: 4 }, // v4 - id3: { func: 'uuid', v: 1 } // v1 - } -}; + id1: "uuid", // v4 + id2: {func: "uuid", v: 4}, // v4 + id3: {func: "uuid", v: 1}, // v1 + }, +} ``` +**Please note**: dynamic default functions are differentiated by the number of parameters they have (`function.length`). Functions that do not expect default must have one non-optional argument so that `function.length` > 0. + +`dynamicDefaults` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md). ## Security contact @@ -825,12 +736,10 @@ Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - ## Open-source software support Ajv-keywords is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv-keywords?utm_source=npm-ajv-keywords&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - ## License [MIT](https://github.com/epoberezkin/ajv-keywords/blob/master/LICENSE) diff --git a/node_modules/ajv-keywords/ajv-keywords.d.ts b/node_modules/ajv-keywords/ajv-keywords.d.ts deleted file mode 100644 index 2d562ee4..00000000 --- a/node_modules/ajv-keywords/ajv-keywords.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare module 'ajv-keywords' { - import { Ajv } from 'ajv'; - - function keywords(ajv: Ajv, include?: string | string[]): Ajv; - - export = keywords; -} diff --git a/node_modules/ajv-keywords/index.js b/node_modules/ajv-keywords/index.js deleted file mode 100644 index 07a8edab..00000000 --- a/node_modules/ajv-keywords/index.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var KEYWORDS = require('./keywords'); - -module.exports = defineKeywords; - - -/** - * Defines one or several keywords in ajv instance - * @param {Ajv} ajv validator instance - * @param {String|Array|undefined} keyword keyword(s) to define - * @return {Ajv} ajv instance (for chaining) - */ -function defineKeywords(ajv, keyword) { - if (Array.isArray(keyword)) { - for (var i=0; i d2) return 1; - if (d1 < d2) return -1; - if (d1 === d2) return 0; -} - - -function compareTime(t1, t2) { - if (!(t1 && t2)) return; - t1 = t1.match(TIME); - t2 = t2.match(TIME); - if (!(t1 && t2)) return; - t1 = t1[1] + t1[2] + t1[3] + (t1[4]||''); - t2 = t2[1] + t2[2] + t2[3] + (t2[4]||''); - if (t1 > t2) return 1; - if (t1 < t2) return -1; - if (t1 === t2) return 0; -} - - -function compareDateTime(dt1, dt2) { - if (!(dt1 && dt2)) return; - dt1 = dt1.split(DATE_TIME_SEPARATOR); - dt2 = dt2.split(DATE_TIME_SEPARATOR); - var res = compareDate(dt1[0], dt2[0]); - if (res === undefined) return; - return res || compareTime(dt1[1], dt2[1]); -} diff --git a/node_modules/ajv-keywords/keywords/_util.js b/node_modules/ajv-keywords/keywords/_util.js deleted file mode 100644 index dd52df72..00000000 --- a/node_modules/ajv-keywords/keywords/_util.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = { - metaSchemaRef: metaSchemaRef -}; - -var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; - -function metaSchemaRef(ajv) { - var defaultMeta = ajv._opts.defaultMeta; - if (typeof defaultMeta == 'string') return { $ref: defaultMeta }; - if (ajv.getSchema(META_SCHEMA_ID)) return { $ref: META_SCHEMA_ID }; - console.warn('meta schema not defined'); - return {}; -} diff --git a/node_modules/ajv-keywords/keywords/allRequired.js b/node_modules/ajv-keywords/keywords/allRequired.js deleted file mode 100644 index afc73ebf..00000000 --- a/node_modules/ajv-keywords/keywords/allRequired.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - type: 'object', - macro: function (schema, parentSchema) { - if (!schema) return true; - var properties = Object.keys(parentSchema.properties); - if (properties.length == 0) return true; - return {required: properties}; - }, - metaSchema: {type: 'boolean'}, - dependencies: ['properties'] - }; - - ajv.addKeyword('allRequired', defFunc.definition); - return ajv; -}; diff --git a/node_modules/ajv-keywords/keywords/anyRequired.js b/node_modules/ajv-keywords/keywords/anyRequired.js deleted file mode 100644 index acc55a92..00000000 --- a/node_modules/ajv-keywords/keywords/anyRequired.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - type: 'object', - macro: function (schema) { - if (schema.length == 0) return true; - if (schema.length == 1) return {required: schema}; - var schemas = schema.map(function (prop) { - return {required: [prop]}; - }); - return {anyOf: schemas}; - }, - metaSchema: { - type: 'array', - items: { - type: 'string' - } - } - }; - - ajv.addKeyword('anyRequired', defFunc.definition); - return ajv; -}; diff --git a/node_modules/ajv-keywords/keywords/deepProperties.js b/node_modules/ajv-keywords/keywords/deepProperties.js deleted file mode 100644 index e5aff605..00000000 --- a/node_modules/ajv-keywords/keywords/deepProperties.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - -var util = require('./_util'); - -module.exports = function defFunc(ajv) { - defFunc.definition = { - type: 'object', - macro: function (schema) { - var schemas = []; - for (var pointer in schema) - schemas.push(getSchema(pointer, schema[pointer])); - return {'allOf': schemas}; - }, - metaSchema: { - type: 'object', - propertyNames: { - type: 'string', - format: 'json-pointer' - }, - additionalProperties: util.metaSchemaRef(ajv) - } - }; - - ajv.addKeyword('deepProperties', defFunc.definition); - return ajv; -}; - - -function getSchema(jsonPointer, schema) { - var segments = jsonPointer.split('/'); - var rootSchema = {}; - var pointerSchema = rootSchema; - for (var i=1; i' - , $result = 'result' + $lvl; -}} - -{{# def.$data }} - - -{{? $isDataExcl }} - {{ - var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr) - , $exclusive = 'exclusive' + $lvl - , $opExpr = 'op' + $lvl - , $opStr = '\' + ' + $opExpr + ' + \''; - }} - var schemaExcl{{=$lvl}} = {{=$schemaValueExcl}}; - {{ $schemaValueExcl = 'schemaExcl' + $lvl; }} - - if (typeof {{=$schemaValueExcl}} != 'boolean' && {{=$schemaValueExcl}} !== undefined) { - {{=$valid}} = false; - {{ var $errorKeyword = $exclusiveKeyword; }} - {{# def.error:'_formatExclusiveLimit' }} - } - - {{# def.elseIfValid }} - - {{# def.compareFormat }} - var {{=$exclusive}} = {{=$schemaValueExcl}} === true; - - if ({{=$valid}} === undefined) { - {{=$valid}} = {{=$exclusive}} - ? {{=$result}} {{=$op}} 0 - : {{=$result}} {{=$op}}= 0; - } - - if (!{{=$valid}}) var op{{=$lvl}} = {{=$exclusive}} ? '{{=$op}}' : '{{=$op}}='; -{{??}} - {{ - var $exclusive = $schemaExcl === true - , $opStr = $op; /*used in error*/ - if (!$exclusive) $opStr += '='; - var $opExpr = '\'' + $opStr + '\''; /*used in error*/ - }} - - {{# def.compareFormat }} - - if ({{=$valid}} === undefined) - {{=$valid}} = {{=$result}} {{=$op}}{{?!$exclusive}}={{?}} 0; -{{?}} - -{{= $closingBraces }} - -if (!{{=$valid}}) { - {{ var $errorKeyword = $keyword; }} - {{# def.error:'_formatLimit' }} -} diff --git a/node_modules/ajv-keywords/keywords/dot/patternRequired.jst b/node_modules/ajv-keywords/keywords/dot/patternRequired.jst deleted file mode 100644 index 6f82f626..00000000 --- a/node_modules/ajv-keywords/keywords/dot/patternRequired.jst +++ /dev/null @@ -1,33 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} - -{{ - var $key = 'key' + $lvl - , $idx = 'idx' + $lvl - , $matched = 'patternMatched' + $lvl - , $dataProperties = 'dataProperties' + $lvl - , $closingBraces = '' - , $ownProperties = it.opts.ownProperties; -}} - -var {{=$valid}} = true; -{{? $ownProperties }} - var {{=$dataProperties}} = undefined; -{{?}} - -{{~ $schema:$pProperty }} - var {{=$matched}} = false; - {{# def.iterateProperties }} - {{=$matched}} = {{= it.usePattern($pProperty) }}.test({{=$key}}); - if ({{=$matched}}) break; - } - - {{ var $missingPattern = it.util.escapeQuotes($pProperty); }} - if (!{{=$matched}}) { - {{=$valid}} = false; - {{# def.addError:'patternRequired' }} - } {{# def.elseIfValid }} -{{~}} - -{{= $closingBraces }} diff --git a/node_modules/ajv-keywords/keywords/dot/switch.jst b/node_modules/ajv-keywords/keywords/dot/switch.jst deleted file mode 100644 index 24d68cfc..00000000 --- a/node_modules/ajv-keywords/keywords/dot/switch.jst +++ /dev/null @@ -1,71 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{## def.validateIf: - {{# def.setCompositeRule }} - {{ $it.createErrors = false; }} - {{# def._validateSwitchRule:if }} - {{ $it.createErrors = true; }} - {{# def.resetCompositeRule }} - {{=$ifPassed}} = {{=$nextValid}}; -#}} - -{{## def.validateThen: - {{? typeof $sch.then == 'boolean' }} - {{? $sch.then === false }} - {{# def.error:'switch' }} - {{?}} - var {{=$nextValid}} = {{= $sch.then }}; - {{??}} - {{# def._validateSwitchRule:then }} - {{?}} -#}} - -{{## def._validateSwitchRule:_clause: - {{ - $it.schema = $sch._clause; - $it.schemaPath = $schemaPath + '[' + $caseIndex + ']._clause'; - $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/_clause'; - }} - {{# def.insertSubschemaCode }} -#}} - -{{## def.switchCase: - {{? $sch.if && {{# def.nonEmptySchema:$sch.if }} }} - var {{=$errs}} = errors; - {{# def.validateIf }} - if ({{=$ifPassed}}) { - {{# def.validateThen }} - } else { - {{# def.resetErrors }} - } - {{??}} - {{=$ifPassed}} = true; - {{# def.validateThen }} - {{?}} -#}} - - -{{ - var $ifPassed = 'ifPassed' + it.level - , $currentBaseId = $it.baseId - , $shouldContinue; -}} -var {{=$ifPassed}}; - -{{~ $schema:$sch:$caseIndex }} - {{? $caseIndex && !$shouldContinue }} - if (!{{=$ifPassed}}) { - {{ $closingBraces+= '}'; }} - {{?}} - - {{# def.switchCase }} - {{ $shouldContinue = $sch.continue }} -{{~}} - -{{= $closingBraces }} - -var {{=$valid}} = {{=$nextValid}}; diff --git a/node_modules/ajv-keywords/keywords/dotjs/README.md b/node_modules/ajv-keywords/keywords/dotjs/README.md deleted file mode 100644 index e2846c86..00000000 --- a/node_modules/ajv-keywords/keywords/dotjs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -These files are compiled dot templates from dot folder. - -Do NOT edit them directly, edit the templates and run `npm run build` from main ajv-keywords folder. diff --git a/node_modules/ajv-keywords/keywords/dotjs/_formatLimit.js b/node_modules/ajv-keywords/keywords/dotjs/_formatLimit.js deleted file mode 100644 index d2af6388..00000000 --- a/node_modules/ajv-keywords/keywords/dotjs/_formatLimit.js +++ /dev/null @@ -1,178 +0,0 @@ -'use strict'; -module.exports = function generate__formatLimit(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - out += 'var ' + ($valid) + ' = undefined;'; - if (it.opts.format === false) { - out += ' ' + ($valid) + ' = true; '; - return out; - } - var $schemaFormat = it.schema.format, - $isDataFormat = it.opts.$data && $schemaFormat.$data, - $closingBraces = ''; - if ($isDataFormat) { - var $schemaValueFormat = it.util.getData($schemaFormat.$data, $dataLvl, it.dataPathArr), - $format = 'format' + $lvl, - $compare = 'compare' + $lvl; - out += ' var ' + ($format) + ' = formats[' + ($schemaValueFormat) + '] , ' + ($compare) + ' = ' + ($format) + ' && ' + ($format) + '.compare;'; - } else { - var $format = it.formats[$schemaFormat]; - if (!($format && $format.compare)) { - out += ' ' + ($valid) + ' = true; '; - return out; - } - var $compare = 'formats' + it.util.getProperty($schemaFormat) + '.compare'; - } - var $isMax = $keyword == 'formatMaximum', - $exclusiveKeyword = 'formatExclusive' + ($isMax ? 'Maximum' : 'Minimum'), - $schemaExcl = it.schema[$exclusiveKeyword], - $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data, - $op = $isMax ? '<' : '>', - $result = 'result' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if ($isDataExcl) { - var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), - $exclusive = 'exclusive' + $lvl, - $opExpr = 'op' + $lvl, - $opStr = '\' + ' + $opExpr + ' + \''; - out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; - $schemaValueExcl = 'schemaExcl' + $lvl; - out += ' if (typeof ' + ($schemaValueExcl) + ' != \'boolean\' && ' + ($schemaValueExcl) + ' !== undefined) { ' + ($valid) + ' = false; '; - var $errorKeyword = $exclusiveKeyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_formatExclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - $closingBraces += '}'; - out += ' else { '; - } - if ($isData) { - out += ' if (' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'string\') ' + ($valid) + ' = false; else { '; - $closingBraces += '}'; - } - if ($isDataFormat) { - out += ' if (!' + ($compare) + ') ' + ($valid) + ' = true; else { '; - $closingBraces += '}'; - } - out += ' var ' + ($result) + ' = ' + ($compare) + '(' + ($data) + ', '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' ); if (' + ($result) + ' === undefined) ' + ($valid) + ' = false; var ' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true; if (' + ($valid) + ' === undefined) { ' + ($valid) + ' = ' + ($exclusive) + ' ? ' + ($result) + ' ' + ($op) + ' 0 : ' + ($result) + ' ' + ($op) + '= 0; } if (!' + ($valid) + ') var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\';'; - } else { - var $exclusive = $schemaExcl === true, - $opStr = $op; - if (!$exclusive) $opStr += '='; - var $opExpr = '\'' + $opStr + '\''; - if ($isData) { - out += ' if (' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'string\') ' + ($valid) + ' = false; else { '; - $closingBraces += '}'; - } - if ($isDataFormat) { - out += ' if (!' + ($compare) + ') ' + ($valid) + ' = true; else { '; - $closingBraces += '}'; - } - out += ' var ' + ($result) + ' = ' + ($compare) + '(' + ($data) + ', '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' ); if (' + ($result) + ' === undefined) ' + ($valid) + ' = false; if (' + ($valid) + ' === undefined) ' + ($valid) + ' = ' + ($result) + ' ' + ($op); - if (!$exclusive) { - out += '='; - } - out += ' 0;'; - } - out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_formatLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , exclusive: ' + ($exclusive) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be ' + ($opStr) + ' "'; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + (it.util.escapeQuotes($schema)); - } - out += '"\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '}'; - return out; -} diff --git a/node_modules/ajv-keywords/keywords/dotjs/patternRequired.js b/node_modules/ajv-keywords/keywords/dotjs/patternRequired.js deleted file mode 100644 index 31bd0b68..00000000 --- a/node_modules/ajv-keywords/keywords/dotjs/patternRequired.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; -module.exports = function generate_patternRequired(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $key = 'key' + $lvl, - $idx = 'idx' + $lvl, - $matched = 'patternMatched' + $lvl, - $dataProperties = 'dataProperties' + $lvl, - $closingBraces = '', - $ownProperties = it.opts.ownProperties; - out += 'var ' + ($valid) + ' = true;'; - if ($ownProperties) { - out += ' var ' + ($dataProperties) + ' = undefined;'; - } - var arr1 = $schema; - if (arr1) { - var $pProperty, i1 = -1, - l1 = arr1.length - 1; - while (i1 < l1) { - $pProperty = arr1[i1 += 1]; - out += ' var ' + ($matched) + ' = false; '; - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - out += ' ' + ($matched) + ' = ' + (it.usePattern($pProperty)) + '.test(' + ($key) + '); if (' + ($matched) + ') break; } '; - var $missingPattern = it.util.escapeQuotes($pProperty); - out += ' if (!' + ($matched) + ') { ' + ($valid) + ' = false; var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('patternRequired') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingPattern: \'' + ($missingPattern) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should have property matching pattern \\\'' + ($missingPattern) + '\\\'\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; - if ($breakOnError) { - $closingBraces += '}'; - out += ' else { '; - } - } - } - out += '' + ($closingBraces); - return out; -} diff --git a/node_modules/ajv-keywords/keywords/dotjs/switch.js b/node_modules/ajv-keywords/keywords/dotjs/switch.js deleted file mode 100644 index 0a3fb80c..00000000 --- a/node_modules/ajv-keywords/keywords/dotjs/switch.js +++ /dev/null @@ -1,129 +0,0 @@ -'use strict'; -module.exports = function generate_switch(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $ifPassed = 'ifPassed' + it.level, - $currentBaseId = $it.baseId, - $shouldContinue; - out += 'var ' + ($ifPassed) + ';'; - var arr1 = $schema; - if (arr1) { - var $sch, $caseIndex = -1, - l1 = arr1.length - 1; - while ($caseIndex < l1) { - $sch = arr1[$caseIndex += 1]; - if ($caseIndex && !$shouldContinue) { - out += ' if (!' + ($ifPassed) + ') { '; - $closingBraces += '}'; - } - if ($sch.if && (it.opts.strictKeywords ? typeof $sch.if == 'object' && Object.keys($sch.if).length > 0 : it.util.schemaHasRules($sch.if, it.RULES.all))) { - out += ' var ' + ($errs) + ' = errors; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.createErrors = false; - $it.schema = $sch.if; - $it.schemaPath = $schemaPath + '[' + $caseIndex + '].if'; - $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/if'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - $it.createErrors = true; - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($ifPassed) + ' = ' + ($nextValid) + '; if (' + ($ifPassed) + ') { '; - if (typeof $sch.then == 'boolean') { - if ($sch.then === false) { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('switch') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { caseIndex: ' + ($caseIndex) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should pass "switch" keyword validation\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } - out += ' var ' + ($nextValid) + ' = ' + ($sch.then) + '; '; - } else { - $it.schema = $sch.then; - $it.schemaPath = $schemaPath + '[' + $caseIndex + '].then'; - $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/then'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - } - out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } } '; - } else { - out += ' ' + ($ifPassed) + ' = true; '; - if (typeof $sch.then == 'boolean') { - if ($sch.then === false) { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('switch') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { caseIndex: ' + ($caseIndex) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should pass "switch" keyword validation\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } - out += ' var ' + ($nextValid) + ' = ' + ($sch.then) + '; '; - } else { - $it.schema = $sch.then; - $it.schemaPath = $schemaPath + '[' + $caseIndex + '].then'; - $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/then'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - } - } - $shouldContinue = $sch.continue - } - } - out += '' + ($closingBraces) + 'var ' + ($valid) + ' = ' + ($nextValid) + ';'; - return out; -} diff --git a/node_modules/ajv-keywords/keywords/dynamicDefaults.js b/node_modules/ajv-keywords/keywords/dynamicDefaults.js deleted file mode 100644 index 5323bb8c..00000000 --- a/node_modules/ajv-keywords/keywords/dynamicDefaults.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -var sequences = {}; - -var DEFAULTS = { - timestamp: function() { return Date.now(); }, - datetime: function() { return (new Date).toISOString(); }, - date: function() { return (new Date).toISOString().slice(0, 10); }, - time: function() { return (new Date).toISOString().slice(11); }, - random: function() { return Math.random(); }, - randomint: function (args) { - var limit = args && args.max || 2; - return function() { return Math.floor(Math.random() * limit); }; - }, - seq: function (args) { - var name = args && args.name || ''; - sequences[name] = sequences[name] || 0; - return function() { return sequences[name]++; }; - } -}; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - compile: function (schema, parentSchema, it) { - var funcs = {}; - - for (var key in schema) { - var d = schema[key]; - var func = getDefault(typeof d == 'string' ? d : d.func); - funcs[key] = func.length ? func(d.args) : func; - } - - return it.opts.useDefaults && !it.compositeRule - ? assignDefaults - : noop; - - function assignDefaults(data) { - for (var prop in schema){ - if (data[prop] === undefined - || (it.opts.useDefaults == 'empty' - && (data[prop] === null || data[prop] === ''))) - data[prop] = funcs[prop](); - } - return true; - } - - function noop() { return true; } - }, - DEFAULTS: DEFAULTS, - metaSchema: { - type: 'object', - additionalProperties: { - type: ['string', 'object'], - additionalProperties: false, - required: ['func', 'args'], - properties: { - func: { type: 'string' }, - args: { type: 'object' } - } - } - } - }; - - ajv.addKeyword('dynamicDefaults', defFunc.definition); - return ajv; - - function getDefault(d) { - var def = DEFAULTS[d]; - if (def) return def; - throw new Error('invalid "dynamicDefaults" keyword property value: ' + d); - } -}; diff --git a/node_modules/ajv-keywords/keywords/formatMaximum.js b/node_modules/ajv-keywords/keywords/formatMaximum.js deleted file mode 100644 index e7daabf8..00000000 --- a/node_modules/ajv-keywords/keywords/formatMaximum.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./_formatLimit')('Maximum'); diff --git a/node_modules/ajv-keywords/keywords/formatMinimum.js b/node_modules/ajv-keywords/keywords/formatMinimum.js deleted file mode 100644 index eddd6e40..00000000 --- a/node_modules/ajv-keywords/keywords/formatMinimum.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./_formatLimit')('Minimum'); diff --git a/node_modules/ajv-keywords/keywords/index.js b/node_modules/ajv-keywords/keywords/index.js deleted file mode 100644 index 99534ec2..00000000 --- a/node_modules/ajv-keywords/keywords/index.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -module.exports = { - 'instanceof': require('./instanceof'), - range: require('./range'), - regexp: require('./regexp'), - 'typeof': require('./typeof'), - dynamicDefaults: require('./dynamicDefaults'), - allRequired: require('./allRequired'), - anyRequired: require('./anyRequired'), - oneRequired: require('./oneRequired'), - prohibited: require('./prohibited'), - uniqueItemProperties: require('./uniqueItemProperties'), - deepProperties: require('./deepProperties'), - deepRequired: require('./deepRequired'), - formatMinimum: require('./formatMinimum'), - formatMaximum: require('./formatMaximum'), - patternRequired: require('./patternRequired'), - 'switch': require('./switch'), - select: require('./select'), - transform: require('./transform') -}; diff --git a/node_modules/ajv-keywords/keywords/instanceof.js b/node_modules/ajv-keywords/keywords/instanceof.js deleted file mode 100644 index ea88f5ca..00000000 --- a/node_modules/ajv-keywords/keywords/instanceof.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -var CONSTRUCTORS = { - Object: Object, - Array: Array, - Function: Function, - Number: Number, - String: String, - Date: Date, - RegExp: RegExp -}; - -module.exports = function defFunc(ajv) { - /* istanbul ignore else */ - if (typeof Buffer != 'undefined') - CONSTRUCTORS.Buffer = Buffer; - - /* istanbul ignore else */ - if (typeof Promise != 'undefined') - CONSTRUCTORS.Promise = Promise; - - defFunc.definition = { - compile: function (schema) { - if (typeof schema == 'string') { - var Constructor = getConstructor(schema); - return function (data) { - return data instanceof Constructor; - }; - } - - var constructors = schema.map(getConstructor); - return function (data) { - for (var i=0; i max || (exclusive && min == max)) - throw new Error('There are no numbers in range'); - } -}; diff --git a/node_modules/ajv-keywords/keywords/regexp.js b/node_modules/ajv-keywords/keywords/regexp.js deleted file mode 100644 index 973628c3..00000000 --- a/node_modules/ajv-keywords/keywords/regexp.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - type: 'string', - inline: function (it, keyword, schema) { - return getRegExp() + '.test(data' + (it.dataLevel || '') + ')'; - - function getRegExp() { - try { - if (typeof schema == 'object') - return new RegExp(schema.pattern, schema.flags); - - var rx = schema.match(/^\/(.*)\/([gimuy]*)$/); - if (rx) return new RegExp(rx[1], rx[2]); - throw new Error('cannot parse string into RegExp'); - } catch(e) { - console.error('regular expression', schema, 'is invalid'); - throw e; - } - } - }, - metaSchema: { - type: ['string', 'object'], - properties: { - pattern: { type: 'string' }, - flags: { type: 'string' } - }, - required: ['pattern'], - additionalProperties: false - } - }; - - ajv.addKeyword('regexp', defFunc.definition); - return ajv; -}; diff --git a/node_modules/ajv-keywords/keywords/select.js b/node_modules/ajv-keywords/keywords/select.js deleted file mode 100644 index f79c6c7a..00000000 --- a/node_modules/ajv-keywords/keywords/select.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -var util = require('./_util'); - -module.exports = function defFunc(ajv) { - if (!ajv._opts.$data) { - console.warn('keyword select requires $data option'); - return ajv; - } - var metaSchemaRef = util.metaSchemaRef(ajv); - var compiledCaseSchemas = []; - - defFunc.definition = { - validate: function v(schema, data, parentSchema) { - if (parentSchema.selectCases === undefined) - throw new Error('keyword "selectCases" is absent'); - var compiled = getCompiledSchemas(parentSchema, false); - var validate = compiled.cases[schema]; - if (validate === undefined) validate = compiled.default; - if (typeof validate == 'boolean') return validate; - var valid = validate(data); - if (!valid) v.errors = validate.errors; - return valid; - }, - $data: true, - metaSchema: { type: ['string', 'number', 'boolean', 'null'] } - }; - - ajv.addKeyword('select', defFunc.definition); - ajv.addKeyword('selectCases', { - compile: function (schemas, parentSchema) { - var compiled = getCompiledSchemas(parentSchema); - for (var value in schemas) - compiled.cases[value] = compileOrBoolean(schemas[value]); - return function() { return true; }; - }, - valid: true, - metaSchema: { - type: 'object', - additionalProperties: metaSchemaRef - } - }); - ajv.addKeyword('selectDefault', { - compile: function (schema, parentSchema) { - var compiled = getCompiledSchemas(parentSchema); - compiled.default = compileOrBoolean(schema); - return function() { return true; }; - }, - valid: true, - metaSchema: metaSchemaRef - }); - return ajv; - - - function getCompiledSchemas(parentSchema, create) { - var compiled; - compiledCaseSchemas.some(function (c) { - if (c.parentSchema === parentSchema) { - compiled = c; - return true; - } - }); - if (!compiled && create !== false) { - compiled = { - parentSchema: parentSchema, - cases: {}, - default: true - }; - compiledCaseSchemas.push(compiled); - } - return compiled; - } - - function compileOrBoolean(schema) { - return typeof schema == 'boolean' - ? schema - : ajv.compile(schema); - } -}; diff --git a/node_modules/ajv-keywords/keywords/switch.js b/node_modules/ajv-keywords/keywords/switch.js deleted file mode 100644 index 5b0f3f83..00000000 --- a/node_modules/ajv-keywords/keywords/switch.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -var util = require('./_util'); - -module.exports = function defFunc(ajv) { - if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return; - - var metaSchemaRef = util.metaSchemaRef(ajv); - - defFunc.definition = { - inline: require('./dotjs/switch'), - statements: true, - errors: 'full', - metaSchema: { - type: 'array', - items: { - required: [ 'then' ], - properties: { - 'if': metaSchemaRef, - 'then': { - anyOf: [ - { type: 'boolean' }, - metaSchemaRef - ] - }, - 'continue': { type: 'boolean' } - }, - additionalProperties: false, - dependencies: { - 'continue': [ 'if' ] - } - } - } - }; - - ajv.addKeyword('switch', defFunc.definition); - return ajv; -}; diff --git a/node_modules/ajv-keywords/keywords/transform.js b/node_modules/ajv-keywords/keywords/transform.js deleted file mode 100644 index d715452b..00000000 --- a/node_modules/ajv-keywords/keywords/transform.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; - -module.exports = function defFunc (ajv) { - var transform = { - trimLeft: function (value) { - return value.replace(/^[\s]+/, ''); - }, - trimRight: function (value) { - return value.replace(/[\s]+$/, ''); - }, - trim: function (value) { - return value.trim(); - }, - toLowerCase: function (value) { - return value.toLowerCase(); - }, - toUpperCase: function (value) { - return value.toUpperCase(); - }, - toEnumCase: function (value, cfg) { - return cfg.hash[makeHashTableKey(value)] || value; - } - }; - - defFunc.definition = { - type: 'string', - errors: false, - modifying: true, - valid: true, - compile: function (schema, parentSchema) { - var cfg; - - if (schema.indexOf('toEnumCase') !== -1) { - // build hash table to enum values - cfg = {hash: {}}; - - // requires `enum` in schema - if (!parentSchema.enum) - throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.'); - for (var i = parentSchema.enum.length; i--; i) { - var v = parentSchema.enum[i]; - if (typeof v !== 'string') continue; - var k = makeHashTableKey(v); - // requires all `enum` values have unique keys - if (cfg.hash[k]) - throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.'); - cfg.hash[k] = v; - } - } - - return function (data, dataPath, object, key) { - // skip if value only - if (!object) return; - - // apply transform in order provided - for (var j = 0, l = schema.length; j < l; j++) - data = transform[schema[j]](data, cfg); - - object[key] = data; - }; - }, - metaSchema: { - type: 'array', - items: { - type: 'string', - enum: [ - 'trimLeft', 'trimRight', 'trim', - 'toLowerCase', 'toUpperCase', 'toEnumCase' - ] - } - } - }; - - ajv.addKeyword('transform', defFunc.definition); - return ajv; - - function makeHashTableKey (value) { - return value.toLowerCase(); - } -}; diff --git a/node_modules/ajv-keywords/keywords/typeof.js b/node_modules/ajv-keywords/keywords/typeof.js deleted file mode 100644 index 3a3574d8..00000000 --- a/node_modules/ajv-keywords/keywords/typeof.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -var KNOWN_TYPES = ['undefined', 'string', 'number', 'object', 'function', 'boolean', 'symbol']; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - inline: function (it, keyword, schema) { - var data = 'data' + (it.dataLevel || ''); - if (typeof schema == 'string') return 'typeof ' + data + ' == "' + schema + '"'; - schema = 'validate.schema' + it.schemaPath + '.' + keyword; - return schema + '.indexOf(typeof ' + data + ') >= 0'; - }, - metaSchema: { - anyOf: [ - { - type: 'string', - enum: KNOWN_TYPES - }, - { - type: 'array', - items: { - type: 'string', - enum: KNOWN_TYPES - } - } - ] - } - }; - - ajv.addKeyword('typeof', defFunc.definition); - return ajv; -}; diff --git a/node_modules/ajv-keywords/keywords/uniqueItemProperties.js b/node_modules/ajv-keywords/keywords/uniqueItemProperties.js deleted file mode 100644 index cd670dac..00000000 --- a/node_modules/ajv-keywords/keywords/uniqueItemProperties.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -var SCALAR_TYPES = ['number', 'integer', 'string', 'boolean', 'null']; - -module.exports = function defFunc(ajv) { - defFunc.definition = { - type: 'array', - compile: function(keys, parentSchema, it) { - var equal = it.util.equal; - var scalar = getScalarKeys(keys, parentSchema); - - return function(data) { - if (data.length > 1) { - for (var k=0; k < keys.length; k++) { - var i, key = keys[k]; - if (scalar[k]) { - var hash = {}; - for (i = data.length; i--;) { - if (!data[i] || typeof data[i] != 'object') continue; - var prop = data[i][key]; - if (prop && typeof prop == 'object') continue; - if (typeof prop == 'string') prop = '"' + prop; - if (hash[prop]) return false; - hash[prop] = true; - } - } else { - for (i = data.length; i--;) { - if (!data[i] || typeof data[i] != 'object') continue; - for (var j = i; j--;) { - if (data[j] && typeof data[j] == 'object' && equal(data[i][key], data[j][key])) - return false; - } - } - } - } - } - return true; - }; - }, - metaSchema: { - type: 'array', - items: {type: 'string'} - } - }; - - ajv.addKeyword('uniqueItemProperties', defFunc.definition); - return ajv; -}; - - -function getScalarKeys(keys, schema) { - return keys.map(function(key) { - var properties = schema.items && schema.items.properties; - var propType = properties && properties[key] && properties[key].type; - return Array.isArray(propType) - ? propType.indexOf('object') < 0 && propType.indexOf('array') < 0 - : SCALAR_TYPES.indexOf(propType) >= 0; - }); -} diff --git a/node_modules/ajv-keywords/package.json b/node_modules/ajv-keywords/package.json index fbd29d05..515f5837 100644 --- a/node_modules/ajv-keywords/package.json +++ b/node_modules/ajv-keywords/package.json @@ -1,16 +1,18 @@ { "name": "ajv-keywords", - "version": "3.5.2", - "description": "Custom JSON-Schema keywords for Ajv validator", - "main": "index.js", - "typings": "ajv-keywords.d.ts", + "version": "5.1.0", + "description": "Additional JSON-Schema keywords for Ajv JSON validator", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { - "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib keywords", + "build": "rm -rf dist && tsc", "prepublish": "npm run build", - "test": "npm run build && npm run eslint && npm run test-cov", - "eslint": "eslint index.js keywords/*.js spec", - "test-spec": "mocha spec/*.spec.js -R spec", - "test-cov": "istanbul cover -x 'spec/**' node_modules/mocha/bin/_mocha -- spec/*.spec.js -R spec" + "prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"", + "prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"", + "test": "npm link && npm link ajv-keywords && npm run eslint && npm run test-cov", + "eslint": "eslint \"src/**/*.*s\" \"spec/**/*.*s\"", + "test-spec": "jest spec/*.ts", + "test-cov": "jest spec/*.ts --coverage" }, "repository": { "type": "git", @@ -22,9 +24,9 @@ "keywords" ], "files": [ - "index.js", - "ajv-keywords.d.ts", - "keywords" + "src", + "dist", + "ajv-keywords.d.ts" ], "author": "Evgeny Poberezkin", "license": "MIT", @@ -32,22 +34,41 @@ "url": "https://github.com/epoberezkin/ajv-keywords/issues" }, "homepage": "https://github.com/epoberezkin/ajv-keywords#readme", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, "peerDependencies": { - "ajv": "^6.9.1" + "ajv": "^8.8.2" }, "devDependencies": { - "ajv": "^6.9.1", - "ajv-pack": "^0.3.0", + "@ajv-validator/config": "^0.2.3", + "@types/chai": "^4.2.14", + "@types/jest": "^26.0.14", + "@types/node": "^16.4.10", + "@types/uuid": "^8.3.0", + "@typescript-eslint/eslint-plugin": "^4.4.1", + "@typescript-eslint/parser": "^4.4.1", + "ajv": "^8.8.2", + "ajv-formats": "^2.0.0", "chai": "^4.2.0", - "coveralls": "^3.0.2", - "dot": "^1.1.1", "eslint": "^7.2.0", - "glob": "^7.1.3", - "istanbul": "^0.4.3", - "js-beautify": "^1.8.9", + "eslint-config-prettier": "^7.0.0", + "husky": "^7.0.1", + "jest": "^26.5.3", "json-schema-test": "^2.0.0", - "mocha": "^8.0.1", - "pre-commit": "^1.1.3", + "lint-staged": "^11.1.1", + "prettier": "^2.1.2", + "ts-jest": "^26.4.1", + "typescript": "^4.2.0", "uuid": "^8.1.0" + }, + "prettier": "@ajv-validator/config/prettierrc.json", + "husky": { + "hooks": { + "pre-commit": "lint-staged && npm test" + } + }, + "lint-staged": { + "*.{md,json,yaml,js,ts}": "prettier --write" } } diff --git a/node_modules/ajv/.DS_Store b/node_modules/ajv/.DS_Store deleted file mode 100644 index 85a305ce..00000000 Binary files a/node_modules/ajv/.DS_Store and /dev/null differ diff --git a/node_modules/ajv/.tonic_example.js b/node_modules/ajv/.tonic_example.js deleted file mode 100644 index aa11812d..00000000 --- a/node_modules/ajv/.tonic_example.js +++ /dev/null @@ -1,20 +0,0 @@ -var Ajv = require('ajv'); -var ajv = new Ajv({allErrors: true}); - -var schema = { - "properties": { - "foo": { "type": "string" }, - "bar": { "type": "number", "maximum": 3 } - } -}; - -var validate = ajv.compile(schema); - -test({"foo": "abc", "bar": 2}); -test({"foo": 2, "bar": 4}); - -function test(data) { - var valid = validate(data); - if (valid) console.log('Valid!'); - else console.log('Invalid: ' + ajv.errorsText(validate.errors)); -} \ No newline at end of file diff --git a/node_modules/ajv/LICENSE b/node_modules/ajv/LICENSE index 96ee7199..139162ad 100644 --- a/node_modules/ajv/LICENSE +++ b/node_modules/ajv/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2017 Evgeny Poberezkin +Copyright (c) 2015-2021 Evgeny Poberezkin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/ajv/README.md b/node_modules/ajv/README.md index 5aa2078d..c10422e6 100644 --- a/node_modules/ajv/README.md +++ b/node_modules/ajv/README.md @@ -1,70 +1,63 @@ -Ajv logo +Ajv logo -# Ajv: Another JSON Schema Validator +  -The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07. +# Ajv JSON schema validator -[![Build Status](https://travis-ci.org/ajv-validator/ajv.svg?branch=master)](https://travis-ci.org/ajv-validator/ajv) +The fastest JSON validator for Node.js and browser. + +Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). + +[![build](https://github.com/ajv-validator/ajv/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild) [![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) -[![npm (beta)](https://img.shields.io/npm/v/ajv/beta)](https://www.npmjs.com/package/ajv/v/7.0.0-beta.0) [![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) [![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master) +[![SimpleX](https://img.shields.io/badge/chat-on%20SimpleX-70F0F9)](https://simplex.chat/contact#/?v=1-2&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqASV4yROM28Er0luVTx5X1CsMrU%3D%40smp4.simplex.im%2F8KvvURM6J38Gdq9dCuPswMOkMny0xCOJ%23%2F%3Fv%3D1-2%26dh%3DMCowBQYDK2VuAyEAr8rPVRuMOXv6kwF2yUAap-eoVg-9ssOFCi1fIrxTUw0%253D%26srv%3Do5vmywmrnaxalvz6wi3zicyftgio6psuvyniis6gco6bp6ekl4cqj4id.onion&data=%7B%22type%22%3A%22group%22%2C%22groupLinkId%22%3A%224pwLRgWHU9tlroMWHz0uOg%3D%3D%22%7D) [![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) [![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin) +## Ajv sponsors -## Ajv v7 beta is released - -[Ajv version 7.0.0-beta.0](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes: - -- to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](./docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements. -- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe. -- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas. -- schemas are compiled to ES6 code (ES5 code generation is supported with an option). -- to improve reliability and maintainability the code is migrated to TypeScript. +[Mozilla](https://www.mozilla.org)[](https://opencollective.com/ajv) -**Please note**: +[Microsoft](https://opensource.microsoft.com)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) -- the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "\$id" (or continue using version 6 that will be supported until 02/28/2021). -- all formats are separated to ajv-formats package - they have to be explicitely added if you use them. - -See [release notes](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) for the details. - -To install the new version: - -```bash -npm install ajv@beta -``` +[Retool](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)[Tidelift](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)[SimpleX](https://github.com/simplex-chat/simplex-chat)[](https://opencollective.com/ajv) -See [Getting started with v7](https://github.com/ajv-validator/ajv/tree/v7-beta#usage) for code example. - - -## Mozilla MOSS grant and OpenJS Foundation +## Contributing -[](https://www.mozilla.org/en-US/moss/)     [](https://openjsf.org/blog/2020/08/14/ajv-joins-openjs-foundation-as-an-incubation-project/) +More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation. -Ajv has been awarded a grant from Mozilla’s [Open Source Support (MOSS) program](https://www.mozilla.org/en-US/moss/) in the “Foundational Technology” track! It will sponsor the development of Ajv support of [JSON Schema version 2019-09](https://tools.ietf.org/html/draft-handrews-json-schema-02) and of [JSON Type Definition](https://tools.ietf.org/html/draft-ucarion-json-type-definition-04). +Please review [Contributing guidelines](./CONTRIBUTING.md) and [Code components](https://ajv.js.org/components.html). -Ajv also joined [OpenJS Foundation](https://openjsf.org/) – having this support will help ensure the longevity and stability of Ajv for all its users. +## Documentation -This [blog post](https://www.poberezkin.com/posts/2020-08-14-ajv-json-validator-mozilla-open-source-grant-openjs-foundation.html) has more details. +All documentation is available on the [Ajv website](https://ajv.js.org). -I am looking for the long term maintainers of Ajv – working with [ReadySet](https://www.thereadyset.co/), also sponsored by Mozilla, to establish clear guidelines for the role of a "maintainer" and the contribution standards, and to encourage a wider, more inclusive, contribution from the community. +Some useful site links: +- [Getting started](https://ajv.js.org/guide/getting-started.html) +- [JSON Schema vs JSON Type Definition](https://ajv.js.org/guide/schema-language.html) +- [API reference](https://ajv.js.org/api.html) +- [Strict mode](https://ajv.js.org/strict-mode.html) +- [Standalone validation code](https://ajv.js.org/standalone.html) +- [Security considerations](https://ajv.js.org/security.html) +- [Command line interface](https://ajv.js.org/packages/ajv-cli.html) +- [Frequently Asked Questions](https://ajv.js.org/faq.html) -## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin) +## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin) Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant! Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released. Please sponsor Ajv via: + - [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it) -- [Ajv Open Collective️](https://opencollective.com/ajv) +- [Ajv Open Collective](https://opencollective.com/ajv) Thank you. - #### Open Collective sponsors @@ -79,73 +72,25 @@ Thank you. - - -## Using version 6 - -[JSON Schema draft-07](http://json-schema.org/latest/json-schema-validation.html) is published. - -[Ajv version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes). - -__Please note__: To use Ajv with draft-06 schemas you need to explicitly add the meta-schema to the validator instance: - -```javascript -ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json')); -``` - -To use Ajv with draft-04 schemas in addition to explicitly adding meta-schema you also need to use option schemaId: - -```javascript -var ajv = new Ajv({schemaId: 'id'}); -// If you want to use both draft-04 and draft-06/07 schemas: -// var ajv = new Ajv({schemaId: 'auto'}); -ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json')); -``` - - -## Contents - -- [Performance](#performance) -- [Features](#features) -- [Getting started](#getting-started) -- [Frequently Asked Questions](https://github.com/ajv-validator/ajv/blob/master/FAQ.md) -- [Using in browser](#using-in-browser) - - [Ajv and Content Security Policies (CSP)](#ajv-and-content-security-policies-csp) -- [Command line interface](#command-line-interface) -- Validation - - [Keywords](#validation-keywords) - - [Annotation keywords](#annotation-keywords) - - [Formats](#formats) - - [Combining schemas with $ref](#ref) - - [$data reference](#data-reference) - - NEW: [$merge and $patch keywords](#merge-and-patch-keywords) - - [Defining custom keywords](#defining-custom-keywords) - - [Asynchronous schema compilation](#asynchronous-schema-compilation) - - [Asynchronous validation](#asynchronous-validation) -- [Security considerations](#security-considerations) - - [Security contact](#security-contact) - - [Untrusted schemas](#untrusted-schemas) - - [Circular references in objects](#circular-references-in-javascript-objects) - - [Trusted schemas](#security-risks-of-trusted-schemas) - - [ReDoS attack](#redos-attack) -- Modifying data during validation - - [Filtering data](#filtering-data) - - [Assigning defaults](#assigning-defaults) - - [Coercing data types](#coercing-data-types) -- API - - [Methods](#api) - - [Options](#options) - - [Validation errors](#validation-errors) -- [Plugins](#plugins) -- [Related packages](#related-packages) -- [Some packages using Ajv](#some-packages-using-ajv) -- [Tests, Contributing, Changes history](#tests) -- [Support, Code of conduct, License](#open-source-software-support) - + + + + + + + + + + + + + + + ## Performance -Ajv generates code using [doT templates](https://github.com/olado/doT) to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. +Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: @@ -154,1344 +99,109 @@ Currently Ajv is the fastest and the most standard compliant validator according - [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) - [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) - Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): -[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=32,4,1&chs=600x416&chxl=-1:|djv|ajv|json-schema-validator-generator|jsen|is-my-json-valid|themis|z-schema|jsck|skeemas|json-schema-library|tv4&chd=t:100,98,72.1,66.8,50.1,15.1,6.1,3.8,1.2,0.7,0.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) - +[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|ajv|@exodus/schemasafe|is-my-json-valid|djv|@cfworker/json-schema|jsonschema/=t:100,69.2,51.5,13.1,5.1,1.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) ## Features -- Ajv implements full JSON Schema [draft-06/07](http://json-schema.org/) and draft-04 standards: - - all validation keywords (see [JSON Schema validation keywords](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md)) - - full support of remote refs (remote schemas have to be added with `addSchema` or compiled to be available) - - support of circular references between schemas - - correct string lengths for strings with unicode pairs (can be turned off) - - [formats](#formats) defined by JSON Schema draft-07 standard and custom formats (can be turned off) - - [validates schemas against meta-schema](#api-validateschema) -- supports [browsers](#using-in-browser) and Node.js 0.10-14.x -- [asynchronous loading](#asynchronous-schema-compilation) of referenced schemas during compilation -- "All errors" validation mode with [option allErrors](#options) -- [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages +- Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6): + - all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html)) + - [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions: + - NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator). + - keyword [nullable](https://ajv.js.org/json-schema.html#nullable). + - full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available) + - support of recursive references between schemas + - correct string lengths for strings with unicode pairs + - JSON Schema [formats](https://ajv.js.org/guide/formats.html) (with [ajv-formats](https://github.com/ajv-validator/ajv-formats) plugin). + - [validates schemas against meta-schema](https://ajv.js.org/api.html#api-validateschema) +- NEW: supports [JSON Type Definition](https://datatracker.ietf.org/doc/rfc8927/): + - all keywords (see [JSON Type Definition schema forms](https://ajv.js.org/json-type-definition.html)) + - meta-schema for JTD schemas + - "union" keyword and user-defined keywords (can be used inside "metadata" member of the schema) +- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 10.x - current +- [asynchronous loading](https://ajv.js.org/guide/managing-schemas.html#asynchronous-schema-loading) of referenced schemas during compilation +- "All errors" validation mode with [option allErrors](https://ajv.js.org/options.html#allerrors) +- [error messages with parameters](https://ajv.js.org/api.html#validation-errors) describing error reasons to allow error message generation - i18n error messages support with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package -- [filtering data](#filtering-data) from additional properties -- [assigning defaults](#assigning-defaults) to missing properties and items -- [coercing data](#coercing-data-types) to the types specified in `type` keywords -- [custom keywords](#defining-custom-keywords) -- draft-06/07 keywords `const`, `contains`, `propertyNames` and `if/then/else` -- draft-06 boolean schemas (`true`/`false` as a schema to always pass/fail). -- keywords `switch`, `patternRequired`, `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum` from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package -- [$data reference](#data-reference) to use values from the validated data as values for the schema keywords -- [asynchronous validation](#asynchronous-validation) of custom formats and keywords - +- [removing-additional-properties](https://ajv.js.org/guide/modifying-data.html#removing-additional-properties) +- [assigning defaults](https://ajv.js.org/guide/modifying-data.html#assigning-defaults) to missing properties and items +- [coercing data](https://ajv.js.org/guide/modifying-data.html#coercing-data-types) to the types specified in `type` keywords +- [user-defined keywords](https://ajv.js.org/guide/user-keywords.html) +- additional extension keywords with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package +- [\$data reference](https://ajv.js.org/guide/combining-schemas.html#data-reference) to use values from the validated data as values for the schema keywords +- [asynchronous validation](https://ajv.js.org/guide/async-validation.html) of user-defined formats and keywords ## Install +To install version 8: + ``` npm install ajv ``` - ## Getting started -Try it in the Node.js REPL: https://tonicdev.com/npm/ajv +Try it in the Node.js REPL: https://runkit.com/npm/ajv - -The fastest validation call: +In JavaScript: ```javascript -// Node.js require: -var Ajv = require('ajv'); // or ESM/TypeScript import -import Ajv from 'ajv'; - -var ajv = new Ajv(); // options can be passed, e.g. {allErrors: true} -var validate = ajv.compile(schema); -var valid = validate(data); -if (!valid) console.log(validate.errors); -``` - -or with less code - -```javascript -// ... -var valid = ajv.validate(schema, data); -if (!valid) console.log(ajv.errors); -// ... -``` - -or - -```javascript -// ... -var valid = ajv.addSchema(schema, 'mySchema') - .validate('mySchema', data); -if (!valid) console.log(ajv.errorsText()); -// ... -``` - -See [API](#api) and [Options](#options) for more details. - -Ajv compiles schemas to functions and caches them in all cases (using schema serialized with [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) or a custom function as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again. - -The best performance is achieved when using compiled functions returned by `compile` or `getSchema` methods (there is no additional function call). - -__Please note__: every time a validation function or `ajv.validate` are called `errors` property is overwritten. You need to copy `errors` array reference to another variable if you want to use it later (e.g., in the callback). See [Validation errors](#validation-errors) - -__Note for TypeScript users__: `ajv` provides its own TypeScript declarations -out of the box, so you don't need to install the deprecated `@types/ajv` -module. - - -## Using in browser - -You can require Ajv directly from the code you browserify - in this case Ajv will be a part of your bundle. - -If you need to use Ajv in several bundles you can create a separate UMD bundle using `npm run bundle` script (thanks to [siddo420](https://github.com/siddo420)). - -Then you need to load Ajv in the browser: -```html - -``` - -This bundle can be used with different module systems; it creates global `Ajv` if no module system is found. - -The browser bundle is available on [cdnjs](https://cdnjs.com/libraries/ajv). - -Ajv is tested with these browsers: - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/epoberezkin.svg)](https://saucelabs.com/u/epoberezkin) - -__Please note__: some frameworks, e.g. Dojo, may redefine global require in such way that is not compatible with CommonJS module format. In such case Ajv bundle has to be loaded before the framework and then you can use global Ajv (see issue [#234](https://github.com/ajv-validator/ajv/issues/234)). - - -### Ajv and Content Security Policies (CSP) - -If you're using Ajv to compile a schema (the typical use) in a browser document that is loaded with a Content Security Policy (CSP), that policy will require a `script-src` directive that includes the value `'unsafe-eval'`. -:warning: NOTE, however, that `unsafe-eval` is NOT recommended in a secure CSP[[1]](https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-eval), as it has the potential to open the document to cross-site scripting (XSS) attacks. - -In order to make use of Ajv without easing your CSP, you can [pre-compile a schema using the CLI](https://github.com/ajv-validator/ajv-cli#compile-schemas). This will transpile the schema JSON into a JavaScript file that exports a `validate` function that works simlarly to a schema compiled at runtime. - -Note that pre-compilation of schemas is performed using [ajv-pack](https://github.com/ajv-validator/ajv-pack) and there are [some limitations to the schema features it can compile](https://github.com/ajv-validator/ajv-pack#limitations). A successfully pre-compiled schema is equivalent to the same schema compiled at runtime. - - -## Command line interface - -CLI is available as a separate npm package [ajv-cli](https://github.com/ajv-validator/ajv-cli). It supports: - -- compiling JSON Schemas to test their validity -- BETA: generating standalone module exporting a validation function to be used without Ajv (using [ajv-pack](https://github.com/ajv-validator/ajv-pack)) -- migrate schemas to draft-07 (using [json-schema-migrate](https://github.com/epoberezkin/json-schema-migrate)) -- validating data file(s) against JSON Schema -- testing expected validity of data against JSON Schema -- referenced schemas -- custom meta-schemas -- files in JSON, JSON5, YAML, and JavaScript format -- all Ajv options -- reporting changes in data after validation in [JSON-patch](https://tools.ietf.org/html/rfc6902) format - - -## Validation keywords - -Ajv supports all validation keywords from draft-07 of JSON Schema standard: - -- [type](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#type) -- [for numbers](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-numbers) - maximum, minimum, exclusiveMaximum, exclusiveMinimum, multipleOf -- [for strings](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-strings) - maxLength, minLength, pattern, format -- [for arrays](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-arrays) - maxItems, minItems, uniqueItems, items, additionalItems, [contains](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#contains) -- [for objects](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-objects) - maxProperties, minProperties, required, properties, patternProperties, additionalProperties, dependencies, [propertyNames](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#propertynames) -- [for all types](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-all-types) - enum, [const](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#const) -- [compound keywords](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#compound-keywords) - not, oneOf, anyOf, allOf, [if/then/else](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#ifthenelse) - -With [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package Ajv also supports validation keywords from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) for JSON Schema standard: - -- [patternRequired](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#patternrequired-proposed) - like `required` but with patterns that some property should match. -- [formatMaximum, formatMinimum, formatExclusiveMaximum, formatExclusiveMinimum](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#formatmaximum--formatminimum-and-exclusiveformatmaximum--exclusiveformatminimum-proposed) - setting limits for date, time, etc. - -See [JSON Schema validation keywords](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md) for more details. - - -## Annotation keywords - -JSON Schema specification defines several annotation keywords that describe schema itself but do not perform any validation. - -- `title` and `description`: information about the data represented by that schema -- `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options). -- `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults). -- `examples` (NEW in draft-06): an array of data instances. Ajv does not check the validity of these instances against the schema. -- `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.). -- `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64". -- `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png". - -__Please note__: Ajv does not implement validation of the keywords `examples`, `contentEncoding` and `contentMediaType` but it reserves them. If you want to create a plugin that implements some of them, it should remove these keywords from the instance. - - -## Formats - -Ajv implements formats defined by JSON Schema specification and several other formats. It is recommended NOT to use "format" keyword implementations with untrusted data, as they use potentially unsafe regular expressions - see [ReDoS attack](#redos-attack). - -__Please note__: if you need to use "format" keyword to validate untrusted data, you MUST assess their suitability and safety for your validation scenarios. - -The following formats are implemented for string validation with "format" keyword: - -- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6). -- _time_: time with optional time-zone. -- _date-time_: date-time from the same source (time-zone is mandatory). `date`, `time` and `date-time` validate ranges in `full` mode and only regexp in `fast` mode (see [options](#options)). -- _uri_: full URI. -- _uri-reference_: URI reference, including full and relative URIs. -- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570) -- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url). -- _email_: email address. -- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5). -- _ipv4_: IP address v4. -- _ipv6_: IP address v6. -- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor. -- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122). -- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901). -- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00). - -__Please note__: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. Ajv does not implement these formats. If you create Ajv plugin that implements them please make a PR to mention this plugin here. - -There are two modes of format validation: `fast` and `full`. This mode affects formats `date`, `time`, `date-time`, `uri`, `uri-reference`, and `email`. See [Options](#options) for details. - -You can add additional formats and replace any of the formats above using [addFormat](#api-addformat) method. - -The option `unknownFormats` allows changing the default behaviour when an unknown format is encountered. In this case Ajv can either fail schema compilation (default) or ignore it (default in versions before 5.0.0). You also can allow specific format(s) that will be ignored. See [Options](#options) for details. - -You can find regular expressions used for format validation and the sources that were used in [formats.js](https://github.com/ajv-validator/ajv/blob/master/lib/compile/formats.js). - - -## Combining schemas with $ref - -You can structure your validation logic across multiple schema files and have schemas reference each other using `$ref` keyword. - -Example: - -```javascript -var schema = { - "$id": "http://example.com/schemas/schema.json", - "type": "object", - "properties": { - "foo": { "$ref": "defs.json#/definitions/int" }, - "bar": { "$ref": "defs.json#/definitions/str" } - } -}; - -var defsSchema = { - "$id": "http://example.com/schemas/defs.json", - "definitions": { - "int": { "type": "integer" }, - "str": { "type": "string" } - } -}; -``` - -Now to compile your schema you can either pass all schemas to Ajv instance: - -```javascript -var ajv = new Ajv({schemas: [schema, defsSchema]}); -var validate = ajv.getSchema('http://example.com/schemas/schema.json'); -``` - -or use `addSchema` method: - -```javascript -var ajv = new Ajv; -var validate = ajv.addSchema(defsSchema) - .compile(schema); -``` - -See [Options](#options) and [addSchema](#api) method. - -__Please note__: -- `$ref` is resolved as the uri-reference using schema $id as the base URI (see the example). -- References can be recursive (and mutually recursive) to implement the schemas for different data structures (such as linked lists, trees, graphs, etc.). -- You don't have to host your schema files at the URIs that you use as schema $id. These URIs are only used to identify the schemas, and according to JSON Schema specification validators should not expect to be able to download the schemas from these URIs. -- The actual location of the schema file in the file system is not used. -- You can pass the identifier of the schema as the second parameter of `addSchema` method or as a property name in `schemas` option. This identifier can be used instead of (or in addition to) schema $id. -- You cannot have the same $id (or the schema identifier) used for more than one schema - the exception will be thrown. -- You can implement dynamic resolution of the referenced schemas using `compileAsync` method. In this way you can store schemas in any system (files, web, database, etc.) and reference them without explicitly adding to Ajv instance. See [Asynchronous schema compilation](#asynchronous-schema-compilation). - - -## $data reference - -With `$data` option you can use values from the validated data as the values for the schema keywords. See [proposal](https://github.com/json-schema-org/json-schema-spec/issues/51) for more information about how it works. - -`$data` reference is supported in the keywords: const, enum, format, maximum/minimum, exclusiveMaximum / exclusiveMinimum, maxLength / minLength, maxItems / minItems, maxProperties / minProperties, formatMaximum / formatMinimum, formatExclusiveMaximum / formatExclusiveMinimum, multipleOf, pattern, required, uniqueItems. - -The value of "$data" should be a [JSON-pointer](https://tools.ietf.org/html/rfc6901) to the data (the root is always the top level data object, even if the $data reference is inside a referenced subschema) or a [relative JSON-pointer](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) (it is relative to the current point in data; if the $data reference is inside a referenced subschema it cannot point to the data outside of the root level for this subschema). - -Examples. - -This schema requires that the value in property `smaller` is less or equal than the value in the property larger: - -```javascript -var ajv = new Ajv({$data: true}); - -var schema = { - "properties": { - "smaller": { - "type": "number", - "maximum": { "$data": "1/larger" } - }, - "larger": { "type": "number" } - } -}; - -var validData = { - smaller: 5, - larger: 7 -}; - -ajv.validate(schema, validData); // true -``` - -This schema requires that the properties have the same format as their field names: - -```javascript -var schema = { - "additionalProperties": { - "type": "string", - "format": { "$data": "0#" } - } -}; - -var validData = { - 'date-time': '1963-06-19T08:30:06.283185Z', - email: 'joe.bloggs@example.com' -} -``` - -`$data` reference is resolved safely - it won't throw even if some property is undefined. If `$data` resolves to `undefined` the validation succeeds (with the exclusion of `const` keyword). If `$data` resolves to incorrect type (e.g. not "number" for maximum keyword) the validation fails. - - -## $merge and $patch keywords - -With the package [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) you can use the keywords `$merge` and `$patch` that allow extending JSON Schemas with patches using formats [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) and [JSON Patch (RFC 6902)](https://tools.ietf.org/html/rfc6902). - -To add keywords `$merge` and `$patch` to Ajv instance use this code: - -```javascript -require('ajv-merge-patch')(ajv); -``` - -Examples. - -Using `$merge`: - -```json -{ - "$merge": { - "source": { - "type": "object", - "properties": { "p": { "type": "string" } }, - "additionalProperties": false - }, - "with": { - "properties": { "q": { "type": "number" } } - } - } -} -``` - -Using `$patch`: - -```json -{ - "$patch": { - "source": { - "type": "object", - "properties": { "p": { "type": "string" } }, - "additionalProperties": false - }, - "with": [ - { "op": "add", "path": "/properties/q", "value": { "type": "number" } } - ] - } -} -``` +import Ajv from "ajv" +// Node.js require: +const Ajv = require("ajv") -The schemas above are equivalent to this schema: +const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} -```json -{ - "type": "object", - "properties": { - "p": { "type": "string" }, - "q": { "type": "number" } +const schema = { + type: "object", + properties: { + foo: {type: "integer"}, + bar: {type: "string"}, }, - "additionalProperties": false + required: ["foo"], + additionalProperties: false, } -``` -The properties `source` and `with` in the keywords `$merge` and `$patch` can use absolute or relative `$ref` to point to other schemas previously added to the Ajv instance or to the fragments of the current schema. - -See the package [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) for more information. - - -## Defining custom keywords - -The advantages of using custom keywords are: - -- allow creating validation scenarios that cannot be expressed using JSON Schema -- simplify your schemas -- help bringing a bigger part of the validation logic to your schemas -- make your schemas more expressive, less verbose and closer to your application domain -- implement custom data processors that modify your data (`modifying` option MUST be used in keyword definition) and/or create side effects while the data is being validated - -If a keyword is used only for side-effects and its validation result is pre-defined, use option `valid: true/false` in keyword definition to simplify both generated code (no error handling in case of `valid: true`) and your keyword functions (no need to return any validation result). - -The concerns you have to be aware of when extending JSON Schema standard with custom keywords are the portability and understanding of your schemas. You will have to support these custom keywords on other platforms and to properly document these keywords so that everybody can understand them in your schemas. - -You can define custom keywords with [addKeyword](#api-addkeyword) method. Keywords are defined on the `ajv` instance level - new instances will not have previously defined keywords. - -Ajv allows defining keywords with: -- validation function -- compilation function -- macro function -- inline compilation function that should return code (as string) that will be inlined in the currently compiled schema. - -Example. `range` and `exclusiveRange` keywords using compiled schema: - -```javascript -ajv.addKeyword('range', { - type: 'number', - compile: function (sch, parentSchema) { - var min = sch[0]; - var max = sch[1]; - - return parentSchema.exclusiveRange === true - ? function (data) { return data > min && data < max; } - : function (data) { return data >= min && data <= max; } - } -}); - -var schema = { "range": [2, 4], "exclusiveRange": true }; -var validate = ajv.compile(schema); -console.log(validate(2.01)); // true -console.log(validate(3.99)); // true -console.log(validate(2)); // false -console.log(validate(4)); // false -``` - -Several custom keywords (typeof, instanceof, range and propertyNames) are defined in [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package - they can be used for your schemas and as a starting point for your own custom keywords. - -See [Defining custom keywords](https://github.com/ajv-validator/ajv/blob/master/CUSTOM.md) for more details. - - -## Asynchronous schema compilation - -During asynchronous compilation remote references are loaded using supplied function. See `compileAsync` [method](#api-compileAsync) and `loadSchema` [option](#options). - -Example: - -```javascript -var ajv = new Ajv({ loadSchema: loadSchema }); - -ajv.compileAsync(schema).then(function (validate) { - var valid = validate(data); - // ... -}); - -function loadSchema(uri) { - return request.json(uri).then(function (res) { - if (res.statusCode >= 400) - throw new Error('Loading error: ' + res.statusCode); - return res.body; - }); +const data = { + foo: 1, + bar: "abc", } -``` - -__Please note__: [Option](#options) `missingRefs` should NOT be set to `"ignore"` or `"fail"` for asynchronous compilation to work. - - -## Asynchronous validation - -Example in Node.js REPL: https://tonicdev.com/esp/ajv-asynchronous-validation -You can define custom formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](#api-addformat), [addKeyword](#api-addkeyword) and [Defining custom keywords](#defining-custom-keywords)). - -If your schema uses asynchronous formats/keywords or refers to some schema that contains them it should have `"$async": true` keyword so that Ajv can compile it correctly. If asynchronous format/keyword or reference to asynchronous schema is used in the schema without `$async` keyword Ajv will throw an exception during schema compilation. - -__Please note__: all asynchronous subschemas that are referenced from the current or other schemas should have `"$async": true` keyword as well, otherwise the schema compilation will fail. - -Validation function for an asynchronous custom format/keyword should return a promise that resolves with `true` or `false` (or rejects with `new Ajv.ValidationError(errors)` if you want to return custom errors from the keyword function). - -Ajv compiles asynchronous schemas to [es7 async functions](http://tc39.github.io/ecmascript-asyncawait/) that can optionally be transpiled with [nodent](https://github.com/MatAtBread/nodent). Async functions are supported in Node.js 7+ and all modern browsers. You can also supply any other transpiler as a function via `processCode` option. See [Options](#options). - -The compiled validation function has `$async: true` property (if the schema is asynchronous), so you can differentiate these functions if you are using both synchronous and asynchronous schemas. - -Validation result will be a promise that resolves with validated data or rejects with an exception `Ajv.ValidationError` that contains the array of validation errors in `errors` property. - - -Example: - -```javascript -var ajv = new Ajv; -// require('ajv-async')(ajv); - -ajv.addKeyword('idExists', { - async: true, - type: 'number', - validate: checkIdExists -}); - - -function checkIdExists(schema, data) { - return knex(schema.table) - .select('id') - .where('id', data) - .then(function (rows) { - return !!rows.length; // true if record is found - }); -} - -var schema = { - "$async": true, - "properties": { - "userId": { - "type": "integer", - "idExists": { "table": "users" } - }, - "postId": { - "type": "integer", - "idExists": { "table": "posts" } - } - } -}; - -var validate = ajv.compile(schema); - -validate({ userId: 1, postId: 19 }) -.then(function (data) { - console.log('Data is valid', data); // { userId: 1, postId: 19 } -}) -.catch(function (err) { - if (!(err instanceof Ajv.ValidationError)) throw err; - // data is invalid - console.log('Validation errors:', err.errors); -}); +const validate = ajv.compile(schema) +const valid = validate(data) +if (!valid) console.log(validate.errors) ``` -### Using transpilers with asynchronous validation functions. - -[ajv-async](https://github.com/ajv-validator/ajv-async) uses [nodent](https://github.com/MatAtBread/nodent) to transpile async functions. To use another transpiler you should separately install it (or load its bundle in the browser). - - -#### Using nodent - -```javascript -var ajv = new Ajv; -require('ajv-async')(ajv); -// in the browser if you want to load ajv-async bundle separately you can: -// window.ajvAsync(ajv); -var validate = ajv.compile(schema); // transpiled es7 async function -validate(data).then(successFunc).catch(errorFunc); -``` +Learn how to use Ajv and see more examples in the [Guide: getting started](https://ajv.js.org/guide/getting-started.html) +## Changes history -#### Using other transpilers +See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases) -```javascript -var ajv = new Ajv({ processCode: transpileFunc }); -var validate = ajv.compile(schema); // transpiled es7 async function -validate(data).then(successFunc).catch(errorFunc); -``` +**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) -See [Options](#options). +[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) +[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). -## Security considerations +## Code of conduct -JSON Schema, if properly used, can replace data sanitisation. It doesn't replace other API security considerations. It also introduces additional security aspects to consider. +Please review and follow the [Code of conduct](./CODE_OF_CONDUCT.md). +Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. -##### Security contact +## Security contact To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - -##### Untrusted schemas - -Ajv treats JSON schemas as trusted as your application code. This security model is based on the most common use case, when the schemas are static and bundled together with the application. - -If your schemas are received from untrusted sources (or generated from untrusted data) there are several scenarios you need to prevent: -- compiling schemas can cause stack overflow (if they are too deep) -- compiling schemas can be slow (e.g. [#557](https://github.com/ajv-validator/ajv/issues/557)) -- validating certain data can be slow - -It is difficult to predict all the scenarios, but at the very least it may help to limit the size of untrusted schemas (e.g. limit JSON string length) and also the maximum schema object depth (that can be high for relatively small JSON strings). You also may want to mitigate slow regular expressions in `pattern` and `patternProperties` keywords. - -Regardless the measures you take, using untrusted schemas increases security risks. - - -##### Circular references in JavaScript objects - -Ajv does not support schemas and validated data that have circular references in objects. See [issue #802](https://github.com/ajv-validator/ajv/issues/802). - -An attempt to compile such schemas or validate such data would cause stack overflow (or will not complete in case of asynchronous validation). Depending on the parser you use, untrusted data can lead to circular references. - - -##### Security risks of trusted schemas - -Some keywords in JSON Schemas can lead to very slow validation for certain data. These keywords include (but may be not limited to): - -- `pattern` and `format` for large strings - in some cases using `maxLength` can help mitigate it, but certain regular expressions can lead to exponential validation time even with relatively short strings (see [ReDoS attack](#redos-attack)). -- `patternProperties` for large property names - use `propertyNames` to mitigate, but some regular expressions can have exponential evaluation time as well. -- `uniqueItems` for large non-scalar arrays - use `maxItems` to mitigate - -__Please note__: The suggestions above to prevent slow validation would only work if you do NOT use `allErrors: true` in production code (using it would continue validation after validation errors). - -You can validate your JSON schemas against [this meta-schema](https://github.com/ajv-validator/ajv/blob/master/lib/refs/json-schema-secure.json) to check that these recommendations are followed: - -```javascript -const isSchemaSecure = ajv.compile(require('ajv/lib/refs/json-schema-secure.json')); - -const schema1 = {format: 'email'}; -isSchemaSecure(schema1); // false - -const schema2 = {format: 'email', maxLength: MAX_LENGTH}; -isSchemaSecure(schema2); // true -``` - -__Please note__: following all these recommendation is not a guarantee that validation of untrusted data is safe - it can still lead to some undesirable results. - - -##### Content Security Policies (CSP) -See [Ajv and Content Security Policies (CSP)](#ajv-and-content-security-policies-csp) - - -## ReDoS attack - -Certain regular expressions can lead to the exponential evaluation time even with relatively short strings. - -Please assess the regular expressions you use in the schemas on their vulnerability to this attack - see [safe-regex](https://github.com/substack/safe-regex), for example. - -__Please note__: some formats that Ajv implements use [regular expressions](https://github.com/ajv-validator/ajv/blob/master/lib/compile/formats.js) that can be vulnerable to ReDoS attack, so if you use Ajv to validate data from untrusted sources __it is strongly recommended__ to consider the following: - -- making assessment of "format" implementations in Ajv. -- using `format: 'fast'` option that simplifies some of the regular expressions (although it does not guarantee that they are safe). -- replacing format implementations provided by Ajv with your own implementations of "format" keyword that either uses different regular expressions or another approach to format validation. Please see [addFormat](#api-addformat) method. -- disabling format validation by ignoring "format" keyword with option `format: false` - -Whatever mitigation you choose, please assume all formats provided by Ajv as potentially unsafe and make your own assessment of their suitability for your validation scenarios. - - -## Filtering data - -With [option `removeAdditional`](#options) (added by [andyscott](https://github.com/andyscott)) you can filter data during the validation. - -This option modifies original data. - -Example: - -```javascript -var ajv = new Ajv({ removeAdditional: true }); -var schema = { - "additionalProperties": false, - "properties": { - "foo": { "type": "number" }, - "bar": { - "additionalProperties": { "type": "number" }, - "properties": { - "baz": { "type": "string" } - } - } - } -} - -var data = { - "foo": 0, - "additional1": 1, // will be removed; `additionalProperties` == false - "bar": { - "baz": "abc", - "additional2": 2 // will NOT be removed; `additionalProperties` != false - }, -} - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 0, "bar": { "baz": "abc", "additional2": 2 } -``` - -If `removeAdditional` option in the example above were `"all"` then both `additional1` and `additional2` properties would have been removed. - -If the option were `"failing"` then property `additional1` would have been removed regardless of its value and property `additional2` would have been removed only if its value were failing the schema in the inner `additionalProperties` (so in the example above it would have stayed because it passes the schema, but any non-number would have been removed). - -__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example: - -```json -{ - "type": "object", - "oneOf": [ - { - "properties": { - "foo": { "type": "string" } - }, - "required": [ "foo" ], - "additionalProperties": false - }, - { - "properties": { - "bar": { "type": "integer" } - }, - "required": [ "bar" ], - "additionalProperties": false - } - ] -} -``` - -The intention of the schema above is to allow objects with either the string property "foo" or the integer property "bar", but not with both and not with any other properties. - -With the option `removeAdditional: true` the validation will pass for the object `{ "foo": "abc"}` but will fail for the object `{"bar": 1}`. It happens because while the first subschema in `oneOf` is validated, the property `bar` is removed because it is an additional property according to the standard (because it is not included in `properties` keyword in the same schema). - -While this behaviour is unexpected (issues [#129](https://github.com/ajv-validator/ajv/issues/129), [#134](https://github.com/ajv-validator/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way: - -```json -{ - "type": "object", - "properties": { - "foo": { "type": "string" }, - "bar": { "type": "integer" } - }, - "additionalProperties": false, - "oneOf": [ - { "required": [ "foo" ] }, - { "required": [ "bar" ] } - ] -} -``` - -The schema above is also more efficient - it will compile into a faster function. - - -## Assigning defaults - -With [option `useDefaults`](#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items. - -With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. - -This option modifies original data. - -__Please note__: the default value is inserted in the generated validation code as a literal, so the value inserted in the data will be the deep clone of the default in the schema. - - -Example 1 (`default` in `properties`): - -```javascript -var ajv = new Ajv({ useDefaults: true }); -var schema = { - "type": "object", - "properties": { - "foo": { "type": "number" }, - "bar": { "type": "string", "default": "baz" } - }, - "required": [ "foo", "bar" ] -}; - -var data = { "foo": 1 }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 1, "bar": "baz" } -``` - -Example 2 (`default` in `items`): - -```javascript -var schema = { - "type": "array", - "items": [ - { "type": "number" }, - { "type": "string", "default": "foo" } - ] -} - -var data = [ 1 ]; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // [ 1, "foo" ] -``` - -`default` keywords in other cases are ignored: - -- not in `properties` or `items` subschemas -- in schemas inside `anyOf`, `oneOf` and `not` (see [#42](https://github.com/ajv-validator/ajv/issues/42)) -- in `if` subschema of `switch` keyword -- in schemas generated by custom macro keywords - -The [`strictDefaults` option](#options) customizes Ajv's behavior for the defaults that Ajv ignores (`true` raises an error, and `"log"` outputs a warning). - - -## Coercing data types - -When you are validating user inputs all your data properties are usually strings. The option `coerceTypes` allows you to have your data types coerced to the types specified in your schema `type` keywords, both to pass the validation and to use the correctly typed data afterwards. - -This option modifies original data. - -__Please note__: if you pass a scalar value to the validating function its type will be coerced and it will pass the validation, but the value of the variable you pass won't be updated because scalars are passed by value. - - -Example 1: - -```javascript -var ajv = new Ajv({ coerceTypes: true }); -var schema = { - "type": "object", - "properties": { - "foo": { "type": "number" }, - "bar": { "type": "boolean" } - }, - "required": [ "foo", "bar" ] -}; - -var data = { "foo": "1", "bar": "false" }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 1, "bar": false } -``` - -Example 2 (array coercions): - -```javascript -var ajv = new Ajv({ coerceTypes: 'array' }); -var schema = { - "properties": { - "foo": { "type": "array", "items": { "type": "number" } }, - "bar": { "type": "boolean" } - } -}; - -var data = { "foo": "1", "bar": ["false"] }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": [1], "bar": false } -``` - -The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords). - -See [Coercion rules](https://github.com/ajv-validator/ajv/blob/master/COERCION.md) for details. - - -## API - -##### new Ajv(Object options) -> Object - -Create Ajv instance. - - -##### .compile(Object schema) -> Function<Object data> - -Generate validating function and cache the compiled schema for future use. - -Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema. - -The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options). - - -##### .compileAsync(Object schema [, Boolean meta] [, Function callback]) -> Promise - -Asynchronous version of `compile` method that loads missing remote schemas using asynchronous function in `options.loadSchema`. This function returns a Promise that resolves to a validation function. An optional callback passed to `compileAsync` will be called with 2 parameters: error (or null) and validating function. The returned promise will reject (and the callback will be called with an error) when: - -- missing schema can't be loaded (`loadSchema` returns a Promise that rejects). -- a schema containing a missing reference is loaded, but the reference cannot be resolved. -- schema (or some loaded/referenced schema) is invalid. - -The function compiles schema and loads the first missing schema (or meta-schema) until all missing schemas are loaded. - -You can asynchronously compile meta-schema by passing `true` as the second parameter. - -See example in [Asynchronous compilation](#asynchronous-schema-compilation). - - -##### .validate(Object schema|String key|String ref, data) -> Boolean - -Validate data using passed schema (it will be compiled and cached). - -Instead of the schema you can use the key that was previously passed to `addSchema`, the schema id if it was present in the schema or any previously resolved reference. - -Validation errors will be available in the `errors` property of Ajv instance (`null` if there were no errors). - -__Please note__: every time this method is called the errors are overwritten so you need to copy them to another variable if you want to use them later. - -If the schema is asynchronous (has `$async` keyword on the top level) this method returns a Promise. See [Asynchronous validation](#asynchronous-validation). - - -##### .addSchema(Array<Object>|Object schema [, String key]) -> Ajv - -Add schema(s) to validator instance. This method does not compile schemas (but it still validates them). Because of that dependencies can be added in any order and circular dependencies are supported. It also prevents unnecessary compilation of schemas that are containers for other schemas but not used as a whole. - -Array of schemas can be passed (schemas should have ids), the second parameter will be ignored. - -Key can be passed that can be used to reference the schema and will be used as the schema id if there is no id inside the schema. If the key is not passed, the schema id will be used as the key. - - -Once the schema is added, it (and all the references inside it) can be referenced in other schemas and used to validate data. - -Although `addSchema` does not compile schemas, explicit compilation is not required - the schema will be compiled when it is used first time. - -By default the schema is validated against meta-schema before it is added, and if the schema does not pass validation the exception is thrown. This behaviour is controlled by `validateSchema` option. - -__Please note__: Ajv uses the [method chaining syntax](https://en.wikipedia.org/wiki/Method_chaining) for all methods with the prefix `add*` and `remove*`. -This allows you to do nice things like the following. - -```javascript -var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri); -``` - -##### .addMetaSchema(Array<Object>|Object schema [, String key]) -> Ajv - -Adds meta schema(s) that can be used to validate other schemas. That function should be used instead of `addSchema` because there may be instance options that would compile a meta schema incorrectly (at the moment it is `removeAdditional` option). - -There is no need to explicitly add draft-07 meta schema (http://json-schema.org/draft-07/schema) - it is added by default, unless option `meta` is set to `false`. You only need to use it if you have a changed meta-schema that you want to use to validate your schemas. See `validateSchema`. - - -##### .validateSchema(Object schema) -> Boolean - -Validates schema. This method should be used to validate schemas rather than `validate` due to the inconsistency of `uri` format in JSON Schema standard. - -By default this method is called automatically when the schema is added, so you rarely need to use it directly. - -If schema doesn't have `$schema` property, it is validated against draft 6 meta-schema (option `meta` should not be false). - -If schema has `$schema` property, then the schema with this id (that should be previously added) is used to validate passed schema. - -Errors will be available at `ajv.errors`. - - -##### .getSchema(String key) -> Function<Object data> - -Retrieve compiled schema previously added with `addSchema` by the key passed to `addSchema` or by its full reference (id). The returned validating function has `schema` property with the reference to the original schema. - - -##### .removeSchema([Object schema|String key|String ref|RegExp pattern]) -> Ajv - -Remove added/cached schema. Even if schema is referenced by other schemas it can be safely removed as dependent schemas have local references. - -Schema can be removed using: -- key passed to `addSchema` -- it's full reference (id) -- RegExp that should match schema id or key (meta-schemas won't be removed) -- actual schema object that will be stable-stringified to remove schema from cache - -If no parameter is passed all schemas but meta-schemas will be removed and the cache will be cleared. - - -##### .addFormat(String name, String|RegExp|Function|Object format) -> Ajv - -Add custom format to validate strings or numbers. It can also be used to replace pre-defined formats for Ajv instance. - -Strings are converted to RegExp. - -Function should return validation result as `true` or `false`. - -If object is passed it should have properties `validate`, `compare` and `async`: - -- _validate_: a string, RegExp or a function as described above. -- _compare_: an optional comparison function that accepts two strings and compares them according to the format meaning. This function is used with keywords `formatMaximum`/`formatMinimum` (defined in [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package). It should return `1` if the first value is bigger than the second value, `-1` if it is smaller and `0` if it is equal. -- _async_: an optional `true` value if `validate` is an asynchronous function; in this case it should return a promise that resolves with a value `true` or `false`. -- _type_: an optional type of data that the format applies to. It can be `"string"` (default) or `"number"` (see https://github.com/ajv-validator/ajv/issues/291#issuecomment-259923858). If the type of data is different, the validation will pass. - -Custom formats can be also added via `formats` option. - - -##### .addKeyword(String keyword, Object definition) -> Ajv - -Add custom validation keyword to Ajv instance. - -Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance. - -Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`. -It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions. - -Example Keywords: -- `"xyz-example"`: valid, and uses prefix for the xyz project to avoid name collisions. -- `"example"`: valid, but not recommended as it could collide with future versions of JSON Schema etc. -- `"3-example"`: invalid as numbers are not allowed to be the first character in a keyword - -Keyword definition is an object with the following properties: - -- _type_: optional string or array of strings with data type(s) that the keyword applies to. If not present, the keyword will apply to all types. -- _validate_: validating function -- _compile_: compiling function -- _macro_: macro function -- _inline_: compiling function that returns code (as string) -- _schema_: an optional `false` value used with "validate" keyword to not pass schema -- _metaSchema_: an optional meta-schema for keyword schema -- _dependencies_: an optional list of properties that must be present in the parent schema - it will be checked during schema compilation -- _modifying_: `true` MUST be passed if keyword modifies data -- _statements_: `true` can be passed in case inline keyword generates statements (as opposed to expression) -- _valid_: pass `true`/`false` to pre-define validation result, the result returned from validation function will be ignored. This option cannot be used with macro keywords. -- _$data_: an optional `true` value to support [$data reference](#data-reference) as the value of custom keyword. The reference will be resolved at validation time. If the keyword has meta-schema it would be extended to allow $data and it will be used to validate the resolved value. Supporting $data reference requires that keyword has validating function (as the only option or in addition to compile, macro or inline function). -- _async_: an optional `true` value if the validation function is asynchronous (whether it is compiled or passed in _validate_ property); in this case it should return a promise that resolves with a value `true` or `false`. This option is ignored in case of "macro" and "inline" keywords. -- _errors_: an optional boolean or string `"full"` indicating whether keyword returns errors. If this property is not set Ajv will determine if the errors were set in case of failed validation. - -_compile_, _macro_ and _inline_ are mutually exclusive, only one should be used at a time. _validate_ can be used separately or in addition to them to support $data reference. - -__Please note__: If the keyword is validating data type that is different from the type(s) in its definition, the validation function will not be called (and expanded macro will not be used), so there is no need to check for data type inside validation function or inside schema returned by macro function (unless you want to enforce a specific type and for some reason do not want to use a separate `type` keyword for that). In the same way as standard keywords work, if the keyword does not apply to the data type being validated, the validation of this keyword will succeed. - -See [Defining custom keywords](#defining-custom-keywords) for more details. - - -##### .getKeyword(String keyword) -> Object|Boolean - -Returns custom keyword definition, `true` for pre-defined keywords and `false` if the keyword is unknown. - - -##### .removeKeyword(String keyword) -> Ajv - -Removes custom or pre-defined keyword so you can redefine them. - -While this method can be used to extend pre-defined keywords, it can also be used to completely change their meaning - it may lead to unexpected results. - -__Please note__: schemas compiled before the keyword is removed will continue to work without changes. To recompile schemas use `removeSchema` method and compile them again. - - -##### .errorsText([Array<Object> errors [, Object options]]) -> String - -Returns the text with all errors in a String. - -Options can have properties `separator` (string used to separate errors, ", " by default) and `dataVar` (the variable name that dataPaths are prefixed with, "data" by default). - - -## Options - -Defaults: - -```javascript -{ - // validation and reporting options: - $data: false, - allErrors: false, - verbose: false, - $comment: false, // NEW in Ajv version 6.0 - jsonPointers: false, - uniqueItems: true, - unicode: true, - nullable: false, - format: 'fast', - formats: {}, - unknownFormats: true, - schemas: {}, - logger: undefined, - // referenced schema options: - schemaId: '$id', - missingRefs: true, - extendRefs: 'ignore', // recommended 'fail' - loadSchema: undefined, // function(uri: string): Promise {} - // options to modify validated data: - removeAdditional: false, - useDefaults: false, - coerceTypes: false, - // strict mode options - strictDefaults: false, - strictKeywords: false, - strictNumbers: false, - // asynchronous validation options: - transpile: undefined, // requires ajv-async package - // advanced options: - meta: true, - validateSchema: true, - addUsedSchema: true, - inlineRefs: true, - passContext: false, - loopRequired: Infinity, - ownProperties: false, - multipleOfPrecision: false, - errorDataPath: 'object', // deprecated - messages: true, - sourceCode: false, - processCode: undefined, // function (str: string, schema: object): string {} - cache: new Cache, - serialize: undefined -} -``` - -##### Validation and reporting options - -- _$data_: support [$data references](#data-reference). Draft 6 meta-schema that is added by default will be extended to allow them. If you want to use another meta-schema you need to use $dataMetaSchema method to add support for $data reference. See [API](#api). -- _allErrors_: check all rules collecting all errors. Default is to return after the first error. -- _verbose_: include the reference to the part of the schema (`schema` and `parentSchema`) and validated data in errors (false by default). -- _$comment_ (NEW in Ajv version 6.0): log or pass the value of `$comment` keyword to a function. Option values: - - `false` (default): ignore $comment keyword. - - `true`: log the keyword value to console. - - function: pass the keyword value, its schema path and root schema to the specified function -- _jsonPointers_: set `dataPath` property of errors using [JSON Pointers](https://tools.ietf.org/html/rfc6901) instead of JavaScript property access notation. -- _uniqueItems_: validate `uniqueItems` keyword (true by default). -- _unicode_: calculate correct length of strings with unicode pairs (true by default). Pass `false` to use `.length` of strings that is faster, but gives "incorrect" lengths of strings with unicode pairs - each unicode pair is counted as two characters. -- _nullable_: support keyword "nullable" from [Open API 3 specification](https://swagger.io/docs/specification/data-models/data-types/). -- _format_: formats validation mode. Option values: - - `"fast"` (default) - simplified and fast validation (see [Formats](#formats) for details of which formats are available and affected by this option). - - `"full"` - more restrictive and slow validation. E.g., 25:00:00 and 2015/14/33 will be invalid time and date in 'full' mode but it will be valid in 'fast' mode. - - `false` - ignore all format keywords. -- _formats_: an object with custom formats. Keys and values will be passed to `addFormat` method. -- _keywords_: an object with custom keywords. Keys and values will be passed to `addKeyword` method. -- _unknownFormats_: handling of unknown formats. Option values: - - `true` (default) - if an unknown format is encountered the exception is thrown during schema compilation. If `format` keyword value is [$data reference](#data-reference) and it is unknown the validation will fail. - - `[String]` - an array of unknown format names that will be ignored. This option can be used to allow usage of third party schemas with format(s) for which you don't have definitions, but still fail if another unknown format is used. If `format` keyword value is [$data reference](#data-reference) and it is not in this array the validation will fail. - - `"ignore"` - to log warning during schema compilation and always pass validation (the default behaviour in versions before 5.0.0). This option is not recommended, as it allows to mistype format name and it won't be validated without any error message. This behaviour is required by JSON Schema specification. -- _schemas_: an array or object of schemas that will be added to the instance. In case you pass the array the schemas must have IDs in them. When the object is passed the method `addSchema(value, key)` will be called for each schema in this object. -- _logger_: sets the logging method. Default is the global `console` object that should have methods `log`, `warn` and `error`. See [Error logging](#error-logging). Option values: - - custom logger - it should have methods `log`, `warn` and `error`. If any of these methods is missing an exception will be thrown. - - `false` - logging is disabled. - - -##### Referenced schema options - -- _schemaId_: this option defines which keywords are used as schema URI. Option value: - - `"$id"` (default) - only use `$id` keyword as schema URI (as specified in JSON Schema draft-06/07), ignore `id` keyword (if it is present a warning will be logged). - - `"id"` - only use `id` keyword as schema URI (as specified in JSON Schema draft-04), ignore `$id` keyword (if it is present a warning will be logged). - - `"auto"` - use both `$id` and `id` keywords as schema URI. If both are present (in the same schema object) and different the exception will be thrown during schema compilation. -- _missingRefs_: handling of missing referenced schemas. Option values: - - `true` (default) - if the reference cannot be resolved during compilation the exception is thrown. The thrown error has properties `missingRef` (with hash fragment) and `missingSchema` (without it). Both properties are resolved relative to the current base id (usually schema id, unless it was substituted). - - `"ignore"` - to log error during compilation and always pass validation. - - `"fail"` - to log error and successfully compile schema but fail validation if this rule is checked. -- _extendRefs_: validation of other keywords when `$ref` is present in the schema. Option values: - - `"ignore"` (default) - when `$ref` is used other keywords are ignored (as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03#section-3) standard). A warning will be logged during the schema compilation. - - `"fail"` (recommended) - if other validation keywords are used together with `$ref` the exception will be thrown when the schema is compiled. This option is recommended to make sure schema has no keywords that are ignored, which can be confusing. - - `true` - validate all keywords in the schemas with `$ref` (the default behaviour in versions before 5.0.0). -- _loadSchema_: asynchronous function that will be used to load remote schemas when `compileAsync` [method](#api-compileAsync) is used and some reference is missing (option `missingRefs` should NOT be 'fail' or 'ignore'). This function should accept remote schema uri as a parameter and return a Promise that resolves to a schema. See example in [Asynchronous compilation](#asynchronous-schema-compilation). - - -##### Options to modify validated data - -- _removeAdditional_: remove additional properties - see example in [Filtering data](#filtering-data). This option is not used if schema is added with `addMetaSchema` method. Option values: - - `false` (default) - not to remove additional properties - - `"all"` - all additional properties are removed, regardless of `additionalProperties` keyword in schema (and no validation is made for them). - - `true` - only additional properties with `additionalProperties` keyword equal to `false` are removed. - - `"failing"` - additional properties that fail schema validation will be removed (where `additionalProperties` keyword is `false` or schema). -- _useDefaults_: replace missing or undefined properties and items with the values from corresponding `default` keywords. Default behaviour is to ignore `default` keywords. This option is not used if schema is added with `addMetaSchema` method. See examples in [Assigning defaults](#assigning-defaults). Option values: - - `false` (default) - do not use defaults - - `true` - insert defaults by value (object literal is used). - - `"empty"` - in addition to missing or undefined, use defaults for properties and items that are equal to `null` or `""` (an empty string). - - `"shared"` (deprecated) - insert defaults by reference. If the default is an object, it will be shared by all instances of validated data. If you modify the inserted default in the validated data, it will be modified in the schema as well. -- _coerceTypes_: change data type of data to match `type` keyword. See the example in [Coercing data types](#coercing-data-types) and [coercion rules](https://github.com/ajv-validator/ajv/blob/master/COERCION.md). Option values: - - `false` (default) - no type coercion. - - `true` - coerce scalar data types. - - `"array"` - in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema). - - -##### Strict mode options - -- _strictDefaults_: report ignored `default` keywords in schemas. Option values: - - `false` (default) - ignored defaults are not reported - - `true` - if an ignored default is present, throw an error - - `"log"` - if an ignored default is present, log warning -- _strictKeywords_: report unknown keywords in schemas. Option values: - - `false` (default) - unknown keywords are not reported - - `true` - if an unknown keyword is present, throw an error - - `"log"` - if an unknown keyword is present, log warning -- _strictNumbers_: validate numbers strictly, failing validation for NaN and Infinity. Option values: - - `false` (default) - NaN or Infinity will pass validation for numeric types - - `true` - NaN or Infinity will not pass validation for numeric types - -##### Asynchronous validation options - -- _transpile_: Requires [ajv-async](https://github.com/ajv-validator/ajv-async) package. It determines whether Ajv transpiles compiled asynchronous validation function. Option values: - - `undefined` (default) - transpile with [nodent](https://github.com/MatAtBread/nodent) if async functions are not supported. - - `true` - always transpile with nodent. - - `false` - do not transpile; if async functions are not supported an exception will be thrown. - - -##### Advanced options - -- _meta_: add [meta-schema](http://json-schema.org/documentation.html) so it can be used by other schemas (true by default). If an object is passed, it will be used as the default meta-schema for schemas that have no `$schema` keyword. This default meta-schema MUST have `$schema` keyword. -- _validateSchema_: validate added/compiled schemas against meta-schema (true by default). `$schema` property in the schema can be http://json-schema.org/draft-07/schema or absent (draft-07 meta-schema will be used) or can be a reference to the schema previously added with `addMetaSchema` method. Option values: - - `true` (default) - if the validation fails, throw the exception. - - `"log"` - if the validation fails, log error. - - `false` - skip schema validation. -- _addUsedSchema_: by default methods `compile` and `validate` add schemas to the instance if they have `$id` (or `id`) property that doesn't start with "#". If `$id` is present and it is not unique the exception will be thrown. Set this option to `false` to skip adding schemas to the instance and the `$id` uniqueness check when these methods are used. This option does not affect `addSchema` method. -- _inlineRefs_: Affects compilation of referenced schemas. Option values: - - `true` (default) - the referenced schemas that don't have refs in them are inlined, regardless of their size - that substantially improves performance at the cost of the bigger size of compiled schema functions. - - `false` - to not inline referenced schemas (they will be compiled as separate functions). - - integer number - to limit the maximum number of keywords of the schema that will be inlined. -- _passContext_: pass validation context to custom keyword functions. If this option is `true` and you pass some context to the compiled validation function with `validate.call(context, data)`, the `context` will be available as `this` in your custom keywords. By default `this` is Ajv instance. -- _loopRequired_: by default `required` keyword is compiled into a single expression (or a sequence of statements in `allErrors` mode). In case of a very large number of properties in this keyword it may result in a very big validation function. Pass integer to set the number of properties above which `required` keyword will be validated in a loop - smaller validation function size but also worse performance. -- _ownProperties_: by default Ajv iterates over all enumerable object properties; when this option is `true` only own enumerable object properties (i.e. found directly on the object rather than on its prototype) are iterated. Contributed by @mbroadst. -- _multipleOfPrecision_: by default `multipleOf` keyword is validated by comparing the result of division with parseInt() of that result. It works for dividers that are bigger than 1. For small dividers such as 0.01 the result of the division is usually not integer (even when it should be integer, see issue [#84](https://github.com/ajv-validator/ajv/issues/84)). If you need to use fractional dividers set this option to some positive integer N to have `multipleOf` validated using this formula: `Math.abs(Math.round(division) - division) < 1e-N` (it is slower but allows for float arithmetics deviations). -- _errorDataPath_ (deprecated): set `dataPath` to point to 'object' (default) or to 'property' when validating keywords `required`, `additionalProperties` and `dependencies`. -- _messages_: Include human-readable messages in errors. `true` by default. `false` can be passed when custom messages are used (e.g. with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n)). -- _sourceCode_: add `sourceCode` property to validating function (for debugging; this code can be different from the result of toString call). -- _processCode_: an optional function to process generated code before it is passed to Function constructor. It can be used to either beautify (the validating function is generated without line-breaks) or to transpile code. Starting from version 5.0.0 this option replaced options: - - `beautify` that formatted the generated function using [js-beautify](https://github.com/beautify-web/js-beautify). If you want to beautify the generated code pass a function calling `require('js-beautify').js_beautify` as `processCode: code => js_beautify(code)`. - - `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/ajv-validator/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information. -- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`. -- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used. - - -## Validation errors - -In case of validation failure, Ajv assigns the array of errors to `errors` property of validation function (or to `errors` property of Ajv instance when `validate` or `validateSchema` methods were called). In case of [asynchronous validation](#asynchronous-validation), the returned promise is rejected with exception `Ajv.ValidationError` that has `errors` property. - - -### Error objects - -Each error is an object with the following properties: - -- _keyword_: validation keyword. -- _dataPath_: the path to the part of the data that was validated. By default `dataPath` uses JavaScript property access notation (e.g., `".prop[1].subProp"`). When the option `jsonPointers` is true (see [Options](#options)) `dataPath` will be set using JSON pointer standard (e.g., `"/prop/1/subProp"`). -- _schemaPath_: the path (JSON-pointer as a URI fragment) to the schema of the keyword that failed validation. -- _params_: the object with the additional information about error that can be used to create custom error messages (e.g., using [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package). See below for parameters set by all keywords. -- _message_: the standard error message (can be excluded with option `messages` set to false). -- _schema_: the schema of the keyword (added with `verbose` option). -- _parentSchema_: the schema containing the keyword (added with `verbose` option) -- _data_: the data validated by the keyword (added with `verbose` option). - -__Please note__: `propertyNames` keyword schema validation errors have an additional property `propertyName`, `dataPath` points to the object. After schema validation for each property name, if it is invalid an additional error is added with the property `keyword` equal to `"propertyNames"`. - - -### Error parameters - -Properties of `params` object in errors depend on the keyword that failed validation. - -- `maxItems`, `minItems`, `maxLength`, `minLength`, `maxProperties`, `minProperties` - property `limit` (number, the schema of the keyword). -- `additionalItems` - property `limit` (the maximum number of allowed items in case when `items` keyword is an array of schemas and `additionalItems` is false). -- `additionalProperties` - property `additionalProperty` (the property not used in `properties` and `patternProperties` keywords). -- `dependencies` - properties: - - `property` (dependent property), - - `missingProperty` (required missing dependency - only the first one is reported currently) - - `deps` (required dependencies, comma separated list as a string), - - `depsCount` (the number of required dependencies). -- `format` - property `format` (the schema of the keyword). -- `maximum`, `minimum` - properties: - - `limit` (number, the schema of the keyword), - - `exclusive` (boolean, the schema of `exclusiveMaximum` or `exclusiveMinimum`), - - `comparison` (string, comparison operation to compare the data to the limit, with the data on the left and the limit on the right; can be "<", "<=", ">", ">=") -- `multipleOf` - property `multipleOf` (the schema of the keyword) -- `pattern` - property `pattern` (the schema of the keyword) -- `required` - property `missingProperty` (required property that is missing). -- `propertyNames` - property `propertyName` (an invalid property name). -- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property). -- `type` - property `type` (required type(s), a string, can be a comma-separated list) -- `uniqueItems` - properties `i` and `j` (indices of duplicate items). -- `const` - property `allowedValue` pointing to the value (the schema of the keyword). -- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword). -- `$ref` - property `ref` with the referenced schema URI. -- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes). -- custom keywords (in case keyword definition doesn't create errors) - property `keyword` (the keyword name). - - -### Error logging - -Using the `logger` option when initiallizing Ajv will allow you to define custom logging. Here you can build upon the exisiting logging. The use of other logging packages is supported as long as the package or its associated wrapper exposes the required methods. If any of the required methods are missing an exception will be thrown. -- **Required Methods**: `log`, `warn`, `error` - -```javascript -var otherLogger = new OtherLogger(); -var ajv = new Ajv({ - logger: { - log: console.log.bind(console), - warn: function warn() { - otherLogger.logWarn.apply(otherLogger, arguments); - }, - error: function error() { - otherLogger.logError.apply(otherLogger, arguments); - console.error.apply(console, arguments); - } - } -}); -``` - - -## Plugins - -Ajv can be extended with plugins that add custom keywords, formats or functions to process generated code. When such plugin is published as npm package it is recommended that it follows these conventions: - -- it exports a function -- this function accepts ajv instance as the first parameter and returns the same instance to allow chaining -- this function can accept an optional configuration as the second parameter - -If you have published a useful plugin please submit a PR to add it to the next section. - - -## Related packages - -- [ajv-async](https://github.com/ajv-validator/ajv-async) - plugin to configure async validation mode -- [ajv-bsontype](https://github.com/BoLaMN/ajv-bsontype) - plugin to validate mongodb's bsonType formats -- [ajv-cli](https://github.com/jessedc/ajv-cli) - command line interface -- [ajv-errors](https://github.com/ajv-validator/ajv-errors) - plugin for custom error messages -- [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) - internationalised error messages -- [ajv-istanbul](https://github.com/ajv-validator/ajv-istanbul) - plugin to instrument generated validation code to measure test coverage of your schemas -- [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) - plugin with custom validation keywords (select, typeof, etc.) -- [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) - plugin with keywords $merge and $patch -- [ajv-pack](https://github.com/ajv-validator/ajv-pack) - produces a compact module exporting validation functions -- [ajv-formats-draft2019](https://github.com/luzlab/ajv-formats-draft2019) - format validators for draft2019 that aren't already included in ajv (ie. `idn-hostname`, `idn-email`, `iri`, `iri-reference` and `duration`). - -## Some packages using Ajv - -- [webpack](https://github.com/webpack/webpack) - a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser -- [jsonscript-js](https://github.com/JSONScript/jsonscript-js) - the interpreter for [JSONScript](http://www.jsonscript.org) - scripted processing of existing endpoints and services -- [osprey-method-handler](https://github.com/mulesoft-labs/osprey-method-handler) - Express middleware for validating requests and responses based on a RAML method object, used in [osprey](https://github.com/mulesoft/osprey) - validating API proxy generated from a RAML definition -- [har-validator](https://github.com/ahmadnassri/har-validator) - HTTP Archive (HAR) validator -- [jsoneditor](https://github.com/josdejong/jsoneditor) - a web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org -- [JSON Schema Lint](https://github.com/nickcmaynard/jsonschemalint) - a web tool to validate JSON/YAML document against a single JSON Schema http://jsonschemalint.com -- [objection](https://github.com/vincit/objection.js) - SQL-friendly ORM for Node.js -- [table](https://github.com/gajus/table) - formats data into a string table -- [ripple-lib](https://github.com/ripple/ripple-lib) - a JavaScript API for interacting with [Ripple](https://ripple.com) in Node.js and the browser -- [restbase](https://github.com/wikimedia/restbase) - distributed storage with REST API & dispatcher for backend services built to provide a low-latency & high-throughput API for Wikipedia / Wikimedia content -- [hippie-swagger](https://github.com/CacheControl/hippie-swagger) - [Hippie](https://github.com/vesln/hippie) wrapper that provides end to end API testing with swagger validation -- [react-form-controlled](https://github.com/seeden/react-form-controlled) - React controlled form components with validation -- [rabbitmq-schema](https://github.com/tjmehta/rabbitmq-schema) - a schema definition module for RabbitMQ graphs and messages -- [@query/schema](https://www.npmjs.com/package/@query/schema) - stream filtering with a URI-safe query syntax parsing to JSON Schema -- [chai-ajv-json-schema](https://github.com/peon374/chai-ajv-json-schema) - chai plugin to us JSON Schema with expect in mocha tests -- [grunt-jsonschema-ajv](https://github.com/SignpostMarv/grunt-jsonschema-ajv) - Grunt plugin for validating files against JSON Schema -- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) - extract text from bundle into a file -- [electron-builder](https://github.com/electron-userland/electron-builder) - a solution to package and build a ready for distribution Electron app -- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter -- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages -- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX - - -## Tests - -``` -npm install -git submodule update --init -npm test -``` - -## Contributing - -All validation functions are generated using doT templates in [dot](https://github.com/ajv-validator/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency. - -`npm run build` - compiles templates to [dotjs](https://github.com/ajv-validator/ajv/tree/master/lib/dotjs) folder. - -`npm run watch` - automatically compiles templates when files in dot folder change - -Please see [Contributing guidelines](https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md) - - -## Changes history - -See https://github.com/ajv-validator/ajv/releases - -__Please note__: [Changes in version 7.0.0-beta](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) - -[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). - -## Code of conduct - -Please review and follow the [Code of conduct](https://github.com/ajv-validator/ajv/blob/master/CODE_OF_CONDUCT.md). - -Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. - - ## Open-source software support Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - ## License -[MIT](https://github.com/ajv-validator/ajv/blob/master/LICENSE) +[MIT](./LICENSE) diff --git a/node_modules/ajv/dist/ajv.bundle.js b/node_modules/ajv/dist/ajv.bundle.js deleted file mode 100644 index e4d9d156..00000000 --- a/node_modules/ajv/dist/ajv.bundle.js +++ /dev/null @@ -1,7189 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Ajv = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i%\\^`{|}]|%[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; -// For the source: https://gist.github.com/dperini/729294 -// For test cases: https://mathiasbynens.be/demo/url-regex -// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. -// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!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-z\u{00a1}-\u{ffff}0-9]+-)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; -var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; -var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; -var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; -var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; -var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; - - -module.exports = formats; - -function formats(mode) { - mode = mode == 'full' ? 'full' : 'fast'; - return util.copy(formats[mode]); -} - - -formats.fast = { - // date: http://tools.ietf.org/html/rfc3339#section-5.6 - date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, - // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 - time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, - 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, - // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js - uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, - 'uri-reference': /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, - 'uri-template': URITEMPLATE, - url: URL, - // email (sources from jsen validator): - // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 - // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') - email: /^[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, - hostname: HOSTNAME, - // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, - // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses - ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-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))(?:%.+)?\s*$/i, - regex: regex, - // uuid: http://tools.ietf.org/html/rfc4122 - uuid: UUID, - // JSON-pointer: https://tools.ietf.org/html/rfc6901 - // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A - 'json-pointer': JSON_POINTER, - 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, - // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 - 'relative-json-pointer': RELATIVE_JSON_POINTER -}; - - -formats.full = { - date: date, - time: time, - 'date-time': date_time, - uri: uri, - 'uri-reference': URIREF, - 'uri-template': URITEMPLATE, - url: URL, - email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, - hostname: HOSTNAME, - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, - ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, - regex: regex, - uuid: UUID, - 'json-pointer': JSON_POINTER, - 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, - 'relative-json-pointer': RELATIVE_JSON_POINTER -}; - - -function isLeapYear(year) { - // https://tools.ietf.org/html/rfc3339#appendix-C - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -} - - -function date(str) { - // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 - var matches = str.match(DATE); - if (!matches) return false; - - var year = +matches[1]; - var month = +matches[2]; - var day = +matches[3]; - - return month >= 1 && month <= 12 && day >= 1 && - day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); -} - - -function time(str, full) { - var matches = str.match(TIME); - if (!matches) return false; - - var hour = matches[1]; - var minute = matches[2]; - var second = matches[3]; - var timeZone = matches[5]; - return ((hour <= 23 && minute <= 59 && second <= 59) || - (hour == 23 && minute == 59 && second == 60)) && - (!full || timeZone); -} - - -var DATE_TIME_SEPARATOR = /t|\s/i; -function date_time(str) { - // http://tools.ietf.org/html/rfc3339#section-5.6 - var dateTime = str.split(DATE_TIME_SEPARATOR); - return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); -} - - -var NOT_URI_FRAGMENT = /\/|:/; -function uri(str) { - // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." - return NOT_URI_FRAGMENT.test(str) && URI.test(str); -} - - -var Z_ANCHOR = /[^\\]\\Z/; -function regex(str) { - if (Z_ANCHOR.test(str)) return false; - try { - new RegExp(str); - return true; - } catch(e) { - return false; - } -} - -},{"./util":10}],5:[function(require,module,exports){ -'use strict'; - -var resolve = require('./resolve') - , util = require('./util') - , errorClasses = require('./error_classes') - , stableStringify = require('fast-json-stable-stringify'); - -var validateGenerator = require('../dotjs/validate'); - -/** - * Functions below are used inside compiled validations function - */ - -var ucs2length = util.ucs2length; -var equal = require('fast-deep-equal'); - -// this error is thrown by async schemas to return validation errors via exception -var ValidationError = errorClasses.Validation; - -module.exports = compile; - - -/** - * Compiles schema to validation function - * @this Ajv - * @param {Object} schema schema object - * @param {Object} root object with information about the root schema for this schema - * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution - * @param {String} baseId base ID for IDs in the schema - * @return {Function} validation function - */ -function compile(schema, root, localRefs, baseId) { - /* jshint validthis: true, evil: true */ - /* eslint no-shadow: 0 */ - var self = this - , opts = this._opts - , refVal = [ undefined ] - , refs = {} - , patterns = [] - , patternsHash = {} - , defaults = [] - , defaultsHash = {} - , customRules = []; - - root = root || { schema: schema, refVal: refVal, refs: refs }; - - var c = checkCompiling.call(this, schema, root, baseId); - var compilation = this._compilations[c.index]; - if (c.compiling) return (compilation.callValidate = callValidate); - - var formats = this._formats; - var RULES = this.RULES; - - try { - var v = localCompile(schema, root, localRefs, baseId); - compilation.validate = v; - var cv = compilation.callValidate; - if (cv) { - cv.schema = v.schema; - cv.errors = null; - cv.refs = v.refs; - cv.refVal = v.refVal; - cv.root = v.root; - cv.$async = v.$async; - if (opts.sourceCode) cv.source = v.source; - } - return v; - } finally { - endCompiling.call(this, schema, root, baseId); - } - - /* @this {*} - custom context, see passContext option */ - function callValidate() { - /* jshint validthis: true */ - var validate = compilation.validate; - var result = validate.apply(this, arguments); - callValidate.errors = validate.errors; - return result; - } - - function localCompile(_schema, _root, localRefs, baseId) { - var isRoot = !_root || (_root && _root.schema == _schema); - if (_root.schema != root.schema) - return compile.call(self, _schema, _root, localRefs, baseId); - - var $async = _schema.$async === true; - - var sourceCode = validateGenerator({ - isTop: true, - schema: _schema, - isRoot: isRoot, - baseId: baseId, - root: _root, - schemaPath: '', - errSchemaPath: '#', - errorPath: '""', - MissingRefError: errorClasses.MissingRef, - RULES: RULES, - validate: validateGenerator, - util: util, - resolve: resolve, - resolveRef: resolveRef, - usePattern: usePattern, - useDefault: useDefault, - useCustomRule: useCustomRule, - opts: opts, - formats: formats, - logger: self.logger, - self: self - }); - - sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) - + vars(defaults, defaultCode) + vars(customRules, customRuleCode) - + sourceCode; - - if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema); - // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); - var validate; - try { - var makeValidate = new Function( - 'self', - 'RULES', - 'formats', - 'root', - 'refVal', - 'defaults', - 'customRules', - 'equal', - 'ucs2length', - 'ValidationError', - sourceCode - ); - - validate = makeValidate( - self, - RULES, - formats, - root, - refVal, - defaults, - customRules, - equal, - ucs2length, - ValidationError - ); - - refVal[0] = validate; - } catch(e) { - self.logger.error('Error compiling schema, function code:', sourceCode); - throw e; - } - - validate.schema = _schema; - validate.errors = null; - validate.refs = refs; - validate.refVal = refVal; - validate.root = isRoot ? validate : _root; - if ($async) validate.$async = true; - if (opts.sourceCode === true) { - validate.source = { - code: sourceCode, - patterns: patterns, - defaults: defaults - }; - } - - return validate; - } - - function resolveRef(baseId, ref, isRoot) { - ref = resolve.url(baseId, ref); - var refIndex = refs[ref]; - var _refVal, refCode; - if (refIndex !== undefined) { - _refVal = refVal[refIndex]; - refCode = 'refVal[' + refIndex + ']'; - return resolvedRef(_refVal, refCode); - } - if (!isRoot && root.refs) { - var rootRefId = root.refs[ref]; - if (rootRefId !== undefined) { - _refVal = root.refVal[rootRefId]; - refCode = addLocalRef(ref, _refVal); - return resolvedRef(_refVal, refCode); - } - } - - refCode = addLocalRef(ref); - var v = resolve.call(self, localCompile, root, ref); - if (v === undefined) { - var localSchema = localRefs && localRefs[ref]; - if (localSchema) { - v = resolve.inlineRef(localSchema, opts.inlineRefs) - ? localSchema - : compile.call(self, localSchema, root, localRefs, baseId); - } - } - - if (v === undefined) { - removeLocalRef(ref); - } else { - replaceLocalRef(ref, v); - return resolvedRef(v, refCode); - } - } - - function addLocalRef(ref, v) { - var refId = refVal.length; - refVal[refId] = v; - refs[ref] = refId; - return 'refVal' + refId; - } - - function removeLocalRef(ref) { - delete refs[ref]; - } - - function replaceLocalRef(ref, v) { - var refId = refs[ref]; - refVal[refId] = v; - } - - function resolvedRef(refVal, code) { - return typeof refVal == 'object' || typeof refVal == 'boolean' - ? { code: code, schema: refVal, inline: true } - : { code: code, $async: refVal && !!refVal.$async }; - } - - function usePattern(regexStr) { - var index = patternsHash[regexStr]; - if (index === undefined) { - index = patternsHash[regexStr] = patterns.length; - patterns[index] = regexStr; - } - return 'pattern' + index; - } - - function useDefault(value) { - switch (typeof value) { - case 'boolean': - case 'number': - return '' + value; - case 'string': - return util.toQuotedString(value); - case 'object': - if (value === null) return 'null'; - var valueStr = stableStringify(value); - var index = defaultsHash[valueStr]; - if (index === undefined) { - index = defaultsHash[valueStr] = defaults.length; - defaults[index] = value; - } - return 'default' + index; - } - } - - function useCustomRule(rule, schema, parentSchema, it) { - if (self._opts.validateSchema !== false) { - var deps = rule.definition.dependencies; - if (deps && !deps.every(function(keyword) { - return Object.prototype.hasOwnProperty.call(parentSchema, keyword); - })) - throw new Error('parent schema must have all required keywords: ' + deps.join(',')); - - var validateSchema = rule.definition.validateSchema; - if (validateSchema) { - var valid = validateSchema(schema); - if (!valid) { - var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); - if (self._opts.validateSchema == 'log') self.logger.error(message); - else throw new Error(message); - } - } - } - - var compile = rule.definition.compile - , inline = rule.definition.inline - , macro = rule.definition.macro; - - var validate; - if (compile) { - validate = compile.call(self, schema, parentSchema, it); - } else if (macro) { - validate = macro.call(self, schema, parentSchema, it); - if (opts.validateSchema !== false) self.validateSchema(validate, true); - } else if (inline) { - validate = inline.call(self, it, rule.keyword, schema, parentSchema); - } else { - validate = rule.definition.validate; - if (!validate) return; - } - - if (validate === undefined) - throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); - - var index = customRules.length; - customRules[index] = validate; - - return { - code: 'customRule' + index, - validate: validate - }; - } -} - - -/** - * Checks if the schema is currently compiled - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) - */ -function checkCompiling(schema, root, baseId) { - /* jshint validthis: true */ - var index = compIndex.call(this, schema, root, baseId); - if (index >= 0) return { index: index, compiling: true }; - index = this._compilations.length; - this._compilations[index] = { - schema: schema, - root: root, - baseId: baseId - }; - return { index: index, compiling: false }; -} - - -/** - * Removes the schema from the currently compiled list - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - */ -function endCompiling(schema, root, baseId) { - /* jshint validthis: true */ - var i = compIndex.call(this, schema, root, baseId); - if (i >= 0) this._compilations.splice(i, 1); -} - - -/** - * Index of schema compilation in the currently compiled list - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - * @return {Integer} compilation index - */ -function compIndex(schema, root, baseId) { - /* jshint validthis: true */ - for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos); - if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate - } - } - return length; -}; - -},{}],10:[function(require,module,exports){ -'use strict'; - - -module.exports = { - copy: copy, - checkDataType: checkDataType, - checkDataTypes: checkDataTypes, - coerceToTypes: coerceToTypes, - toHash: toHash, - getProperty: getProperty, - escapeQuotes: escapeQuotes, - equal: require('fast-deep-equal'), - ucs2length: require('./ucs2length'), - varOccurences: varOccurences, - varReplace: varReplace, - schemaHasRules: schemaHasRules, - schemaHasRulesExcept: schemaHasRulesExcept, - schemaUnknownRules: schemaUnknownRules, - toQuotedString: toQuotedString, - getPathExpr: getPathExpr, - getPath: getPath, - getData: getData, - unescapeFragment: unescapeFragment, - unescapeJsonPointer: unescapeJsonPointer, - escapeFragment: escapeFragment, - escapeJsonPointer: escapeJsonPointer -}; - - -function copy(o, to) { - to = to || {}; - for (var key in o) to[key] = o[key]; - return to; -} - - -function checkDataType(dataType, data, strictNumbers, negate) { - var EQUAL = negate ? ' !== ' : ' === ' - , AND = negate ? ' || ' : ' && ' - , OK = negate ? '!' : '' - , NOT = negate ? '' : '!'; - switch (dataType) { - case 'null': return data + EQUAL + 'null'; - case 'array': return OK + 'Array.isArray(' + data + ')'; - case 'object': return '(' + OK + data + AND + - 'typeof ' + data + EQUAL + '"object"' + AND + - NOT + 'Array.isArray(' + data + '))'; - case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + - NOT + '(' + data + ' % 1)' + - AND + data + EQUAL + data + - (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')'; - case 'number': return '(typeof ' + data + EQUAL + '"' + dataType + '"' + - (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')'; - default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; - } -} - - -function checkDataTypes(dataTypes, data, strictNumbers) { - switch (dataTypes.length) { - case 1: return checkDataType(dataTypes[0], data, strictNumbers, true); - default: - var code = ''; - var types = toHash(dataTypes); - if (types.array && types.object) { - code = types.null ? '(': '(!' + data + ' || '; - code += 'typeof ' + data + ' !== "object")'; - delete types.null; - delete types.array; - delete types.object; - } - if (types.number) delete types.integer; - for (var t in types) - code += (code ? ' && ' : '' ) + checkDataType(t, data, strictNumbers, true); - - return code; - } -} - - -var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); -function coerceToTypes(optionCoerceTypes, dataTypes) { - if (Array.isArray(dataTypes)) { - var types = []; - for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); - return paths[lvl - up]; - } - - if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); - data = 'data' + ((lvl - up) || ''); - if (!jsonPointer) return data; - } - - var expr = data; - var segments = jsonPointer.split('/'); - for (var i=0; i', - $notOp = $isMax ? '>' : '<', - $errorKeyword = undefined; - if (!($isData || typeof $schema == 'number' || $schema === undefined)) { - throw new Error($keyword + ' must be number'); - } - if (!($isDataExcl || $schemaExcl === undefined || typeof $schemaExcl == 'number' || typeof $schemaExcl == 'boolean')) { - throw new Error($exclusiveKeyword + ' must be number or boolean'); - } - if ($isDataExcl) { - var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), - $exclusive = 'exclusive' + $lvl, - $exclType = 'exclType' + $lvl, - $exclIsNumber = 'exclIsNumber' + $lvl, - $opExpr = 'op' + $lvl, - $opStr = '\' + ' + $opExpr + ' + \''; - out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; - $schemaValueExcl = 'schemaExcl' + $lvl; - out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; - var $errorKeyword = $exclusiveKeyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; - if ($schema === undefined) { - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $schemaValue = $schemaValueExcl; - $isData = $isDataExcl; - } - } else { - var $exclIsNumber = typeof $schemaExcl == 'number', - $opStr = $op; - if ($exclIsNumber && $isData) { - var $opExpr = '\'' + $opStr + '\''; - out += ' if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; - } else { - if ($exclIsNumber && $schema === undefined) { - $exclusive = true; - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $schemaValue = $schemaExcl; - $notOp += '='; - } else { - if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); - if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { - $exclusive = true; - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $notOp += '='; - } else { - $exclusive = false; - $opStr += '='; - } - } - var $opExpr = '\'' + $opStr + '\''; - out += ' if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; - } - } - $errorKeyword = $errorKeyword || $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be ' + ($opStr) + ' '; - if ($isData) { - out += '\' + ' + ($schemaValue); - } else { - out += '' + ($schemaValue) + '\''; - } - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],14:[function(require,module,exports){ -'use strict'; -module.exports = function generate__limitItems(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxItems' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have '; - if ($keyword == 'maxItems') { - out += 'more'; - } else { - out += 'fewer'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' items\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],15:[function(require,module,exports){ -'use strict'; -module.exports = function generate__limitLength(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxLength' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - if (it.opts.unicode === false) { - out += ' ' + ($data) + '.length '; - } else { - out += ' ucs2length(' + ($data) + ') '; - } - out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be '; - if ($keyword == 'maxLength') { - out += 'longer'; - } else { - out += 'shorter'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' characters\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],16:[function(require,module,exports){ -'use strict'; -module.exports = function generate__limitProperties(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxProperties' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have '; - if ($keyword == 'maxProperties') { - out += 'more'; - } else { - out += 'fewer'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' properties\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],17:[function(require,module,exports){ -'use strict'; -module.exports = function generate_allOf(it, $keyword, $ruleType) { - var out = ' '; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $currentBaseId = $it.baseId, - $allSchemasEmpty = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $allSchemasEmpty = false; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if ($breakOnError) { - if ($allSchemasEmpty) { - out += ' if (true) { '; - } else { - out += ' ' + ($closingBraces.slice(0, -1)) + ' '; - } - } - return out; -} - -},{}],18:[function(require,module,exports){ -'use strict'; -module.exports = function generate_anyOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $noEmptySchema = $schema.every(function($sch) { - return (it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)); - }); - if ($noEmptySchema) { - var $currentBaseId = $it.baseId; - out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; - $closingBraces += '}'; - } - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should match some schema in anyOf\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - if (it.opts.allErrors) { - out += ' } '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} - -},{}],19:[function(require,module,exports){ -'use strict'; -module.exports = function generate_comment(it, $keyword, $ruleType) { - var out = ' '; - var $schema = it.schema[$keyword]; - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $comment = it.util.toQuotedString($schema); - if (it.opts.$comment === true) { - out += ' console.log(' + ($comment) + ');'; - } else if (typeof it.opts.$comment == 'function') { - out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; - } - return out; -} - -},{}],20:[function(require,module,exports){ -'use strict'; -module.exports = function generate_const(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!$isData) { - out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; - } - out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be equal to constant\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' }'; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],21:[function(require,module,exports){ -'use strict'; -module.exports = function generate_contains(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $idx = 'i' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $currentBaseId = it.baseId, - $nonEmptySchema = (it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all)); - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if ($nonEmptySchema) { - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' if (' + ($nextValid) + ') break; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; - } else { - out += ' if (' + ($data) + '.length == 0) {'; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should contain a valid item\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - if ($nonEmptySchema) { - out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - } - if (it.opts.allErrors) { - out += ' } '; - } - return out; -} - -},{}],22:[function(require,module,exports){ -'use strict'; -module.exports = function generate_custom(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $rule = this, - $definition = 'definition' + $lvl, - $rDef = $rule.definition, - $closingBraces = ''; - var $compile, $inline, $macro, $ruleValidate, $validateCode; - if ($isData && $rDef.$data) { - $validateCode = 'keywordValidate' + $lvl; - var $validateSchema = $rDef.validateSchema; - out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; - } else { - $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); - if (!$ruleValidate) return; - $schemaValue = 'validate.schema' + $schemaPath; - $validateCode = $ruleValidate.code; - $compile = $rDef.compile; - $inline = $rDef.inline; - $macro = $rDef.macro; - } - var $ruleErrs = $validateCode + '.errors', - $i = 'i' + $lvl, - $ruleErr = 'ruleErr' + $lvl, - $asyncKeyword = $rDef.async; - if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); - if (!($inline || $macro)) { - out += '' + ($ruleErrs) + ' = null;'; - } - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if ($isData && $rDef.$data) { - $closingBraces += '}'; - out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; - if ($validateSchema) { - $closingBraces += '}'; - out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; - } - } - if ($inline) { - if ($rDef.statements) { - out += ' ' + ($ruleValidate.validate) + ' '; - } else { - out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; - } - } else if ($macro) { - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - $it.schema = $ruleValidate.validate; - $it.schemaPath = ''; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($code); - } else { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; - out += ' ' + ($validateCode) + '.call( '; - if (it.opts.passContext) { - out += 'this'; - } else { - out += 'self'; - } - if ($compile || $rDef.schema === false) { - out += ' , ' + ($data) + ' '; - } else { - out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; - } - out += ' , (dataPath || \'\')'; - if (it.errorPath != '""') { - out += ' + ' + (it.errorPath); - } - var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', - $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; - out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; - var def_callRuleValidate = out; - out = $$outStack.pop(); - if ($rDef.errors === false) { - out += ' ' + ($valid) + ' = '; - if ($asyncKeyword) { - out += 'await '; - } - out += '' + (def_callRuleValidate) + '; '; - } else { - if ($asyncKeyword) { - $ruleErrs = 'customErrors' + $lvl; - out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; - } else { - out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; - } - } - } - if ($rDef.modifying) { - out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; - } - out += '' + ($closingBraces); - if ($rDef.valid) { - if ($breakOnError) { - out += ' if (true) { '; - } - } else { - out += ' if ( '; - if ($rDef.valid === undefined) { - out += ' !'; - if ($macro) { - out += '' + ($nextValid); - } else { - out += '' + ($valid); - } - } else { - out += ' ' + (!$rDef.valid) + ' '; - } - out += ') { '; - $errorKeyword = $rule.keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - var def_customError = out; - out = $$outStack.pop(); - if ($inline) { - if ($rDef.errors) { - if ($rDef.errors != 'full') { - out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') '; - } - out += ') { '; - $it.schema = $sch; - $it.schemaPath = $schemaPath + it.util.getProperty($property); - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} - -},{}],24:[function(require,module,exports){ -'use strict'; -module.exports = function generate_enum(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $i = 'i' + $lvl, - $vSchema = 'schema' + $lvl; - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';'; - } - out += 'var ' + ($valid) + ';'; - if ($isData) { - out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; - } - out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }'; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be equal to one of the allowed values\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' }'; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],25:[function(require,module,exports){ -'use strict'; -module.exports = function generate_format(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - if (it.opts.format === false) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $unknownFormats = it.opts.unknownFormats, - $allowUnknown = Array.isArray($unknownFormats); - if ($isData) { - var $format = 'format' + $lvl, - $isObject = 'isObject' + $lvl, - $formatType = 'formatType' + $lvl; - out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { '; - if (it.async) { - out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; '; - } - out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; - } - out += ' ('; - if ($unknownFormats != 'ignore') { - out += ' (' + ($schemaValue) + ' && !' + ($format) + ' '; - if ($allowUnknown) { - out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 '; - } - out += ') || '; - } - out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? '; - if (it.async) { - out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) '; - } else { - out += ' ' + ($format) + '(' + ($data) + ') '; - } - out += ' : ' + ($format) + '.test(' + ($data) + '))))) {'; - } else { - var $format = it.formats[$schema]; - if (!$format) { - if ($unknownFormats == 'ignore') { - it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } else { - throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); - } - } - var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; - var $formatType = $isObject && $format.type || 'string'; - if ($isObject) { - var $async = $format.async === true; - $format = $format.validate; - } - if ($formatType != $ruleType) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } - if ($async) { - if (!it.async) throw new Error('async format in sync schema'); - var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; - out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; - } else { - out += ' if (! '; - var $formatRef = 'formats' + it.util.getProperty($schema); - if ($isObject) $formatRef += '.validate'; - if (typeof $format == 'function') { - out += ' ' + ($formatRef) + '(' + ($data) + ') '; - } else { - out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; - } - out += ') { '; - } - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match format "'; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + (it.util.escapeQuotes($schema)); - } - out += '"\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],26:[function(require,module,exports){ -'use strict'; -module.exports = function generate_if(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - $it.level++; - var $nextValid = 'valid' + $it.level; - var $thenSch = it.schema['then'], - $elseSch = it.schema['else'], - $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? (typeof $thenSch == 'object' && Object.keys($thenSch).length > 0) || $thenSch === false : it.util.schemaHasRules($thenSch, it.RULES.all)), - $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? (typeof $elseSch == 'object' && Object.keys($elseSch).length > 0) || $elseSch === false : it.util.schemaHasRules($elseSch, it.RULES.all)), - $currentBaseId = $it.baseId; - if ($thenPresent || $elsePresent) { - var $ifClause; - $it.createErrors = false; - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - $it.createErrors = true; - out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - if ($thenPresent) { - out += ' if (' + ($nextValid) + ') { '; - $it.schema = it.schema['then']; - $it.schemaPath = it.schemaPath + '.then'; - $it.errSchemaPath = it.errSchemaPath + '/then'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; - if ($thenPresent && $elsePresent) { - $ifClause = 'ifClause' + $lvl; - out += ' var ' + ($ifClause) + ' = \'then\'; '; - } else { - $ifClause = '\'then\''; - } - out += ' } '; - if ($elsePresent) { - out += ' else { '; - } - } else { - out += ' if (!' + ($nextValid) + ') { '; - } - if ($elsePresent) { - $it.schema = it.schema['else']; - $it.schemaPath = it.schemaPath + '.else'; - $it.errSchemaPath = it.errSchemaPath + '/else'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; - if ($thenPresent && $elsePresent) { - $ifClause = 'ifClause' + $lvl; - out += ' var ' + ($ifClause) + ' = \'else\'; '; - } else { - $ifClause = '\'else\''; - } - out += ' } '; - } - out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} - -},{}],27:[function(require,module,exports){ -'use strict'; - -//all requires must be explicit because browserify won't work with dynamic requires -module.exports = { - '$ref': require('./ref'), - allOf: require('./allOf'), - anyOf: require('./anyOf'), - '$comment': require('./comment'), - const: require('./const'), - contains: require('./contains'), - dependencies: require('./dependencies'), - 'enum': require('./enum'), - format: require('./format'), - 'if': require('./if'), - items: require('./items'), - maximum: require('./_limit'), - minimum: require('./_limit'), - maxItems: require('./_limitItems'), - minItems: require('./_limitItems'), - maxLength: require('./_limitLength'), - minLength: require('./_limitLength'), - maxProperties: require('./_limitProperties'), - minProperties: require('./_limitProperties'), - multipleOf: require('./multipleOf'), - not: require('./not'), - oneOf: require('./oneOf'), - pattern: require('./pattern'), - properties: require('./properties'), - propertyNames: require('./propertyNames'), - required: require('./required'), - uniqueItems: require('./uniqueItems'), - validate: require('./validate') -}; - -},{"./_limit":13,"./_limitItems":14,"./_limitLength":15,"./_limitProperties":16,"./allOf":17,"./anyOf":18,"./comment":19,"./const":20,"./contains":21,"./dependencies":23,"./enum":24,"./format":25,"./if":26,"./items":28,"./multipleOf":29,"./not":30,"./oneOf":31,"./pattern":32,"./properties":33,"./propertyNames":34,"./ref":35,"./required":36,"./uniqueItems":37,"./validate":38}],28:[function(require,module,exports){ -'use strict'; -module.exports = function generate_items(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $idx = 'i' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $currentBaseId = it.baseId; - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if (Array.isArray($schema)) { - var $additionalItems = it.schema.additionalItems; - if ($additionalItems === false) { - out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalItems'; - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - $errSchemaPath = $currErrSchemaPath; - if ($breakOnError) { - $closingBraces += '}'; - out += ' else { '; - } - } - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; - var $passData = $data + '[' + $i + ']'; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); - $it.dataPathArr[$dataNxt] = $i; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? (typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0) || $additionalItems === false : it.util.schemaHasRules($additionalItems, it.RULES.all))) { - $it.schema = $additionalItems; - $it.schemaPath = it.schemaPath + '.additionalItems'; - $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; - out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' } } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } else if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' }'; - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} - -},{}],29:[function(require,module,exports){ -'use strict'; -module.exports = function generate_multipleOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - out += 'var division' + ($lvl) + ';if ('; - if ($isData) { - out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; - } - out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; - if (it.opts.multipleOfPrecision) { - out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; - } else { - out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; - } - out += ' ) '; - if ($isData) { - out += ' ) '; - } - out += ' ) { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be multiple of '; - if ($isData) { - out += '\' + ' + ($schemaValue); - } else { - out += '' + ($schemaValue) + '\''; - } - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],30:[function(require,module,exports){ -'use strict'; -module.exports = function generate_not(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - $it.level++; - var $nextValid = 'valid' + $it.level; - if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($errs) + ' = errors; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.createErrors = false; - var $allErrorsOption; - if ($it.opts.allErrors) { - $allErrorsOption = $it.opts.allErrors; - $it.opts.allErrors = false; - } - out += ' ' + (it.validate($it)) + ' '; - $it.createErrors = true; - if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' if (' + ($nextValid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be valid\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - if (it.opts.allErrors) { - out += ' } '; - } - } else { - out += ' var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be valid\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if ($breakOnError) { - out += ' if (false) { '; - } - } - return out; -} - -},{}],31:[function(require,module,exports){ -'use strict'; -module.exports = function generate_oneOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $currentBaseId = $it.baseId, - $prevValid = 'prevValid' + $lvl, - $passingSchemas = 'passingSchemas' + $lvl; - out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - } else { - out += ' var ' + ($nextValid) + ' = true; '; - } - if ($i) { - out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; - $closingBraces += '}'; - } - out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; - } - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match exactly one schema in oneOf\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; - if (it.opts.allErrors) { - out += ' } '; - } - return out; -} - -},{}],32:[function(require,module,exports){ -'use strict'; -module.exports = function generate_pattern(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; - } - out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match pattern "'; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + (it.util.escapeQuotes($schema)); - } - out += '"\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} - -},{}],33:[function(require,module,exports){ -'use strict'; -module.exports = function generate_properties(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $key = 'key' + $lvl, - $idx = 'idx' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $dataProperties = 'dataProperties' + $lvl; - var $schemaKeys = Object.keys($schema || {}).filter(notProto), - $pProperties = it.schema.patternProperties || {}, - $pPropertyKeys = Object.keys($pProperties).filter(notProto), - $aProperties = it.schema.additionalProperties, - $someProperties = $schemaKeys.length || $pPropertyKeys.length, - $noAdditional = $aProperties === false, - $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, - $removeAdditional = it.opts.removeAdditional, - $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, - $ownProperties = it.opts.ownProperties, - $currentBaseId = it.baseId; - var $required = it.schema.required; - if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) { - var $requiredHash = it.util.toHash($required); - } - - function notProto(p) { - return p !== '__proto__'; - } - out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; - if ($ownProperties) { - out += ' var ' + ($dataProperties) + ' = undefined;'; - } - if ($checkAdditional) { - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - if ($someProperties) { - out += ' var isAdditional' + ($lvl) + ' = !(false '; - if ($schemaKeys.length) { - if ($schemaKeys.length > 8) { - out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; - } else { - var arr1 = $schemaKeys; - if (arr1) { - var $propertyKey, i1 = -1, - l1 = arr1.length - 1; - while (i1 < l1) { - $propertyKey = arr1[i1 += 1]; - out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; - } - } - } - } - if ($pPropertyKeys.length) { - var arr2 = $pPropertyKeys; - if (arr2) { - var $pProperty, $i = -1, - l2 = arr2.length - 1; - while ($i < l2) { - $pProperty = arr2[$i += 1]; - out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; - } - } - } - out += ' ); if (isAdditional' + ($lvl) + ') { '; - } - if ($removeAdditional == 'all') { - out += ' delete ' + ($data) + '[' + ($key) + ']; '; - } else { - var $currentErrorPath = it.errorPath; - var $additionalProperty = '\' + ' + $key + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - } - if ($noAdditional) { - if ($removeAdditional) { - out += ' delete ' + ($data) + '[' + ($key) + ']; '; - } else { - out += ' ' + ($nextValid) + ' = false; '; - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalProperties'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is an invalid additional property'; - } else { - out += 'should NOT have additional properties'; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - $errSchemaPath = $currErrSchemaPath; - if ($breakOnError) { - out += ' break; '; - } - } - } else if ($additionalIsSchema) { - if ($removeAdditional == 'failing') { - out += ' var ' + ($errs) + ' = errors; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.schema = $aProperties; - $it.schemaPath = it.schemaPath + '.additionalProperties'; - $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; - $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - } else { - $it.schema = $aProperties; - $it.schemaPath = it.schemaPath + '.additionalProperties'; - $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; - $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - } - } - it.errorPath = $currentErrorPath; - } - if ($someProperties) { - out += ' } '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - var $useDefaults = it.opts.useDefaults && !it.compositeRule; - if ($schemaKeys.length) { - var arr3 = $schemaKeys; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $sch = $schema[$propertyKey]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - var $prop = it.util.getProperty($propertyKey), - $passData = $data + $prop, - $hasDefault = $useDefaults && $sch.default !== undefined; - $it.schema = $sch; - $it.schemaPath = $schemaPath + $prop; - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); - $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); - $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - $code = it.util.varReplace($code, $nextData, $passData); - var $useData = $passData; - } else { - var $useData = $nextData; - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; - } - if ($hasDefault) { - out += ' ' + ($code) + ' '; - } else { - if ($requiredHash && $requiredHash[$propertyKey]) { - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { ' + ($nextValid) + ' = false; '; - var $currentErrorPath = it.errorPath, - $currErrSchemaPath = $errSchemaPath, - $missingProperty = it.util.escapeQuotes($propertyKey); - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - $errSchemaPath = it.errSchemaPath + '/required'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - $errSchemaPath = $currErrSchemaPath; - it.errorPath = $currentErrorPath; - out += ' } else { '; - } else { - if ($breakOnError) { - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { ' + ($nextValid) + ' = true; } else { '; - } else { - out += ' if (' + ($useData) + ' !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ' ) { '; - } - } - out += ' ' + ($code) + ' } '; - } - } - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if ($pPropertyKeys.length) { - var arr4 = $pPropertyKeys; - if (arr4) { - var $pProperty, i4 = -1, - l4 = arr4.length - 1; - while (i4 < l4) { - $pProperty = arr4[i4 += 1]; - var $sch = $pProperties[$pProperty]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $it.schema = $sch; - $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); - $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else ' + ($nextValid) + ' = true; '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} - -},{}],34:[function(require,module,exports){ -'use strict'; -module.exports = function generate_propertyNames(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - out += 'var ' + ($errs) + ' = errors;'; - if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - var $key = 'key' + $lvl, - $idx = 'idx' + $lvl, - $i = 'i' + $lvl, - $invalidName = '\' + ' + $key + ' + \'', - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $dataProperties = 'dataProperties' + $lvl, - $ownProperties = it.opts.ownProperties, - $currentBaseId = it.baseId; - if ($ownProperties) { - out += ' var ' + ($dataProperties) + ' = undefined; '; - } - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - out += ' var startErrs' + ($lvl) + ' = errors; '; - var $passData = $key; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' 0) || $propertySch === false : it.util.schemaHasRules($propertySch, it.RULES.all)))) { - $required[$required.length] = $property; - } - } - } - } else { - var $required = $schema; - } - } - if ($isData || $required.length) { - var $currentErrorPath = it.errorPath, - $loopRequired = $isData || $required.length >= it.opts.loopRequired, - $ownProperties = it.opts.ownProperties; - if ($breakOnError) { - out += ' var missing' + ($lvl) + '; '; - if ($loopRequired) { - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; - } - var $i = 'i' + $lvl, - $propertyPath = 'schema' + $lvl + '[' + $i + ']', - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); - } - out += ' var ' + ($valid) + ' = true; '; - if ($isData) { - out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; - } - out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; - } - out += '; if (!' + ($valid) + ') break; } '; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - } else { - out += ' if ( '; - var arr2 = $required; - if (arr2) { - var $propertyKey, $i = -1, - l2 = arr2.length - 1; - while ($i < l2) { - $propertyKey = arr2[$i += 1]; - if ($i) { - out += ' || '; - } - var $prop = it.util.getProperty($propertyKey), - $useData = $data + $prop; - out += ' ( ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; - } - } - out += ') { '; - var $propertyPath = 'missing' + $lvl, - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - } - } else { - if ($loopRequired) { - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; - } - var $i = 'i' + $lvl, - $propertyPath = 'schema' + $lvl + '[' + $i + ']', - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); - } - if ($isData) { - out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; - } - out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; - } - out += ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; - if ($isData) { - out += ' } '; - } - } else { - var arr3 = $required; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $prop = it.util.getProperty($propertyKey), - $missingProperty = it.util.escapeQuotes($propertyKey), - $useData = $data + $prop; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; - } - } - } - } - it.errorPath = $currentErrorPath; - } else if ($breakOnError) { - out += ' if (true) {'; - } - return out; -} - -},{}],37:[function(require,module,exports){ -'use strict'; -module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (($schema || $isData) && it.opts.uniqueItems !== false) { - if ($isData) { - out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; - } - out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; - var $itemType = it.schema.items && it.schema.items.type, - $typeIsArray = Array.isArray($itemType); - if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { - out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; - } else { - out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; - var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); - out += ' if (' + (it.util[$method]($itemType, 'item', it.opts.strictNumbers, true)) + ') continue; '; - if ($typeIsArray) { - out += ' if (typeof item == \'string\') item = \'"\' + item; '; - } - out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; - } - out += ' } '; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} - -},{}],38:[function(require,module,exports){ -'use strict'; -module.exports = function generate_validate(it, $keyword, $ruleType) { - var out = ''; - var $async = it.schema.$async === true, - $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), - $id = it.self._getId(it.schema); - if (it.opts.strictKeywords) { - var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); - if ($unknownKwd) { - var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; - if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); - else throw new Error($keywordsMsg); - } - } - if (it.isTop) { - out += ' var validate = '; - if ($async) { - it.async = true; - out += 'async '; - } - out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; - if ($id && (it.opts.sourceCode || it.opts.processCode)) { - out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; - } - } - if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { - var $keyword = 'false schema'; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - if (it.schema === false) { - if (it.isTop) { - $breakOnError = true; - } else { - out += ' var ' + ($valid) + ' = false; '; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'boolean schema is false\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } else { - if (it.isTop) { - if ($async) { - out += ' return data; '; - } else { - out += ' validate.errors = null; return true; '; - } - } else { - out += ' var ' + ($valid) + ' = true; '; - } - } - if (it.isTop) { - out += ' }; return validate; '; - } - return out; - } - if (it.isTop) { - var $top = it.isTop, - $lvl = it.level = 0, - $dataLvl = it.dataLevel = 0, - $data = 'data'; - it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); - it.baseId = it.baseId || it.rootId; - delete it.isTop; - it.dataPathArr = [""]; - if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored in the schema root'; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - out += ' var vErrors = null; '; - out += ' var errors = 0; '; - out += ' if (rootData === undefined) rootData = data; '; - } else { - var $lvl = it.level, - $dataLvl = it.dataLevel, - $data = 'data' + ($dataLvl || ''); - if ($id) it.baseId = it.resolve.url(it.baseId, $id); - if ($async && !it.async) throw new Error('async schema in sync schema'); - out += ' var errs_' + ($lvl) + ' = errors;'; - } - var $valid = 'valid' + $lvl, - $breakOnError = !it.opts.allErrors, - $closingBraces1 = '', - $closingBraces2 = ''; - var $errorKeyword; - var $typeSchema = it.schema.type, - $typeIsArray = Array.isArray($typeSchema); - if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { - if ($typeIsArray) { - if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); - } else if ($typeSchema != 'null') { - $typeSchema = [$typeSchema, 'null']; - $typeIsArray = true; - } - } - if ($typeIsArray && $typeSchema.length == 1) { - $typeSchema = $typeSchema[0]; - $typeIsArray = false; - } - if (it.schema.$ref && $refKeywords) { - if (it.opts.extendRefs == 'fail') { - throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); - } else if (it.opts.extendRefs !== true) { - $refKeywords = false; - it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); - } - } - if (it.schema.$comment && it.opts.$comment) { - out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); - } - if ($typeSchema) { - if (it.opts.coerceTypes) { - var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); - } - var $rulesGroup = it.RULES.types[$typeSchema]; - if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type'; - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type', - $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; - out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { '; - if ($coerceToTypes) { - var $dataType = 'dataType' + $lvl, - $coerced = 'coerced' + $lvl; - out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; '; - if (it.opts.coerceTypes == 'array') { - out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } '; - } - out += ' if (' + ($coerced) + ' !== undefined) ; '; - var arr1 = $coerceToTypes; - if (arr1) { - var $type, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $type = arr1[$i += 1]; - if ($type == 'string') { - out += ' else if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; - } else if ($type == 'number' || $type == 'integer') { - out += ' else if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; - if ($type == 'integer') { - out += ' && !(' + ($data) + ' % 1)'; - } - out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; - } else if ($type == 'boolean') { - out += ' else if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; - } else if ($type == 'null') { - out += ' else if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; - } else if (it.opts.coerceTypes == 'array' && $type == 'array') { - out += ' else if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; - } - } - } - out += ' else { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } if (' + ($coerced) + ' !== undefined) { '; - var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', - $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; - out += ' ' + ($data) + ' = ' + ($coerced) + '; '; - if (!$dataLvl) { - out += 'if (' + ($parentData) + ' !== undefined)'; - } - out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; - } else { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } - out += ' } '; - } - } - if (it.schema.$ref && !$refKeywords) { - out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; - if ($breakOnError) { - out += ' } if (errors === '; - if ($top) { - out += '0'; - } else { - out += 'errs_' + ($lvl); - } - out += ') { '; - $closingBraces2 += '}'; - } - } else { - var arr2 = it.RULES; - if (arr2) { - var $rulesGroup, i2 = -1, - l2 = arr2.length - 1; - while (i2 < l2) { - $rulesGroup = arr2[i2 += 1]; - if ($shouldUseGroup($rulesGroup)) { - if ($rulesGroup.type) { - out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { '; - } - if (it.opts.useDefaults) { - if ($rulesGroup.type == 'object' && it.schema.properties) { - var $schema = it.schema.properties, - $schemaKeys = Object.keys($schema); - var arr3 = $schemaKeys; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $sch = $schema[$propertyKey]; - if ($sch.default !== undefined) { - var $passData = $data + it.util.getProperty($propertyKey); - if (it.compositeRule) { - if (it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored for: ' + $passData; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - } else { - out += ' if (' + ($passData) + ' === undefined '; - if (it.opts.useDefaults == 'empty') { - out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; - } - out += ' ) ' + ($passData) + ' = '; - if (it.opts.useDefaults == 'shared') { - out += ' ' + (it.useDefault($sch.default)) + ' '; - } else { - out += ' ' + (JSON.stringify($sch.default)) + ' '; - } - out += '; '; - } - } - } - } - } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { - var arr4 = it.schema.items; - if (arr4) { - var $sch, $i = -1, - l4 = arr4.length - 1; - while ($i < l4) { - $sch = arr4[$i += 1]; - if ($sch.default !== undefined) { - var $passData = $data + '[' + $i + ']'; - if (it.compositeRule) { - if (it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored for: ' + $passData; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - } else { - out += ' if (' + ($passData) + ' === undefined '; - if (it.opts.useDefaults == 'empty') { - out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; - } - out += ' ) ' + ($passData) + ' = '; - if (it.opts.useDefaults == 'shared') { - out += ' ' + (it.useDefault($sch.default)) + ' '; - } else { - out += ' ' + (JSON.stringify($sch.default)) + ' '; - } - out += '; '; - } - } - } - } - } - } - var arr5 = $rulesGroup.rules; - if (arr5) { - var $rule, i5 = -1, - l5 = arr5.length - 1; - while (i5 < l5) { - $rule = arr5[i5 += 1]; - if ($shouldUseRule($rule)) { - var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); - if ($code) { - out += ' ' + ($code) + ' '; - if ($breakOnError) { - $closingBraces1 += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces1) + ' '; - $closingBraces1 = ''; - } - if ($rulesGroup.type) { - out += ' } '; - if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { - out += ' else { '; - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - } - } - if ($breakOnError) { - out += ' if (errors === '; - if ($top) { - out += '0'; - } else { - out += 'errs_' + ($lvl); - } - out += ') { '; - $closingBraces2 += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces2) + ' '; - } - if ($top) { - if ($async) { - out += ' if (errors === 0) return data; '; - out += ' else throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; '; - out += ' return errors === 0; '; - } - out += ' }; return validate;'; - } else { - out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; - } - - function $shouldUseGroup($rulesGroup) { - var rules = $rulesGroup.rules; - for (var i = 0; i < rules.length; i++) - if ($shouldUseRule(rules[i])) return true; - } - - function $shouldUseRule($rule) { - return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); - } - - function $ruleImplementsSomeKeyword($rule) { - var impl = $rule.implements; - for (var i = 0; i < impl.length; i++) - if (it.schema[impl[i]] !== undefined) return true; - } - return out; -} - -},{}],39:[function(require,module,exports){ -'use strict'; - -var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; -var customRuleCode = require('./dotjs/custom'); -var definitionSchema = require('./definition_schema'); - -module.exports = { - add: addKeyword, - get: getKeyword, - remove: removeKeyword, - validate: validateKeyword -}; - - -/** - * Define custom keyword - * @this Ajv - * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). - * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. - * @return {Ajv} this for method chaining - */ -function addKeyword(keyword, definition) { - /* jshint validthis: true */ - /* eslint no-shadow: 0 */ - var RULES = this.RULES; - if (RULES.keywords[keyword]) - throw new Error('Keyword ' + keyword + ' is already defined'); - - if (!IDENTIFIER.test(keyword)) - throw new Error('Keyword ' + keyword + ' is not a valid identifier'); - - if (definition) { - this.validateKeyword(definition, true); - - var dataType = definition.type; - if (Array.isArray(dataType)) { - for (var i=0; i 1) { - sets[0] = sets[0].slice(0, -1); - var xl = sets.length - 1; - for (var x = 1; x < xl; ++x) { - sets[x] = sets[x].slice(1, -1); - } - sets[xl] = sets[xl].slice(1); - return sets.join(''); - } else { - return sets[0]; - } -} -function subexp(str) { - return "(?:" + str + ")"; -} -function typeOf(o) { - return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase(); -} -function toUpperCase(str) { - return str.toUpperCase(); -} -function toArray(obj) { - return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : []; -} -function assign(target, source) { - var obj = target; - if (source) { - for (var key in source) { - obj[key] = source[key]; - } - } - return obj; -} - -function buildExps(isIRI) { - var ALPHA$$ = "[A-Za-z]", - CR$ = "[\\x0D]", - DIGIT$$ = "[0-9]", - DQUOTE$$ = "[\\x22]", - HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), - //case-insensitive - LF$$ = "[\\x0A]", - SP$$ = "[\\x20]", - PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), - //expanded - GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", - SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", - RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), - UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", - //subset, excludes bidi control characters - IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", - //subset - UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), - SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), - USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), - DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), - DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), - //relaxed parsing rules - IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), - H16$ = subexp(HEXDIG$$ + "{1,4}"), - LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), - IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), - // 6( h16 ":" ) ls32 - IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), - // "::" 5( h16 ":" ) ls32 - IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), - //[ h16 ] "::" 4( h16 ":" ) ls32 - IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), - //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 - IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), - //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 - IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), - //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 - IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), - //[ *4( h16 ":" ) h16 ] "::" ls32 - IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), - //[ *5( h16 ":" ) h16 ] "::" h16 - IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), - //[ *6( h16 ":" ) h16 ] "::" - IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), - ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), - //RFC 6874 - IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), - //RFC 6874 - IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), - //RFC 6874, with relaxed parsing rules - IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), - IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), - //RFC 6874 - REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), - HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), - PORT$ = subexp(DIGIT$$ + "*"), - AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), - PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), - SEGMENT$ = subexp(PCHAR$ + "*"), - SEGMENT_NZ$ = subexp(PCHAR$ + "+"), - SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), - PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), - PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), - //simplified - PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), - //simplified - PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), - //simplified - PATH_EMPTY$ = "(?!" + PCHAR$ + ")", - PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), - QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), - FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), - HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), - URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), - RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), - RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), - URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), - ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), - GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", - SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"; - return { - NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"), - NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"), - NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"), - ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"), - UNRESERVED: new RegExp(UNRESERVED$$, "g"), - OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"), - PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"), - IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"), - IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules - }; -} -var URI_PROTOCOL = buildExps(false); - -var IRI_PROTOCOL = buildExps(true); - -var slicedToArray = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"]) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; - } - - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if (Symbol.iterator in Object(arr)) { - return sliceIterator(arr, i); - } else { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); - } - }; -}(); - - - - - - - - - - - - - -var toConsumableArray = function (arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - - return arr2; - } else { - return Array.from(arr); - } -}; - -/** Highest positive signed 32-bit float value */ - -var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 - -/** Bootstring parameters */ -var base = 36; -var tMin = 1; -var tMax = 26; -var skew = 38; -var damp = 700; -var initialBias = 72; -var initialN = 128; // 0x80 -var delimiter = '-'; // '\x2D' - -/** Regular expressions */ -var regexPunycode = /^xn--/; -var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars -var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators - -/** Error messages */ -var errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' -}; - -/** Convenience shortcuts */ -var baseMinusTMin = base - tMin; -var floor = Math.floor; -var stringFromCharCode = String.fromCharCode; - -/*--------------------------------------------------------------------------*/ - -/** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ -function error$1(type) { - throw new RangeError(errors[type]); -} - -/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ -function map(array, fn) { - var result = []; - var length = array.length; - while (length--) { - result[length] = fn(array[length]); - } - return result; -} - -/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ -function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; -} - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ -function ucs2decode(string) { - var output = []; - var counter = 0; - var length = string.length; - while (counter < length) { - var value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - var extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { - // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -} - -/** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ -var ucs2encode = function ucs2encode(array) { - return String.fromCodePoint.apply(String, toConsumableArray(array)); -}; - -/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ -var basicToDigit = function basicToDigit(codePoint) { - if (codePoint - 0x30 < 0x0A) { - return codePoint - 0x16; - } - if (codePoint - 0x41 < 0x1A) { - return codePoint - 0x41; - } - if (codePoint - 0x61 < 0x1A) { - return codePoint - 0x61; - } - return base; -}; - -/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ -var digitToBasic = function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ -var adapt = function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ -var decode = function decode(input) { - // Don't use UCS-2. - var output = []; - var inputLength = input.length; - var i = 0; - var n = initialN; - var bias = initialBias; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - var basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (var j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error$1('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{ - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - var oldi = i; - for (var w = 1, k = base;; /* no condition */k += base) { - - if (index >= inputLength) { - error$1('invalid-input'); - } - - var digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error$1('overflow'); - } - - i += digit * w; - var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - - if (digit < t) { - break; - } - - var baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error$1('overflow'); - } - - w *= baseMinusT; - } - - var out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error$1('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output. - output.splice(i++, 0, n); - } - - return String.fromCodePoint.apply(String, output); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ -var encode = function encode(input) { - var output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - var inputLength = input.length; - - // Initialize the state. - var n = initialN; - var delta = 0; - var bias = initialBias; - - // Handle the basic code points. - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var _currentValue2 = _step.value; - - if (_currentValue2 < 0x80) { - output.push(stringFromCharCode(_currentValue2)); - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - var basicLength = output.length; - var handledCPCount = basicLength; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - var m = maxInt; - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var currentValue = _step2.value; - - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow. - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } - - var handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error$1('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - var _iteratorNormalCompletion3 = true; - var _didIteratorError3 = false; - var _iteratorError3 = undefined; - - try { - for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { - var _currentValue = _step3.value; - - if (_currentValue < n && ++delta > maxInt) { - error$1('overflow'); - } - if (_currentValue == n) { - // Represent delta as a generalized variable-length integer. - var q = delta; - for (var k = base;; /* no condition */k += base) { - var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - if (q < t) { - break; - } - var qMinusT = q - t; - var baseMinusT = base - t; - output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - } catch (err) { - _didIteratorError3 = true; - _iteratorError3 = err; - } finally { - try { - if (!_iteratorNormalCompletion3 && _iterator3.return) { - _iterator3.return(); - } - } finally { - if (_didIteratorError3) { - throw _iteratorError3; - } - } - } - - ++delta; - ++n; - } - return output.join(''); -}; - -/** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ -var toUnicode = function toUnicode(input) { - return mapDomain(input, function (string) { - return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; - }); -}; - -/** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ -var toASCII = function toASCII(input) { - return mapDomain(input, function (string) { - return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; - }); -}; - -/*--------------------------------------------------------------------------*/ - -/** Define the public API */ -var punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '2.1.0', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode -}; - -/** - * URI.js - * - * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. - * @author Gary Court - * @see http://github.com/garycourt/uri-js - */ -/** - * Copyright 2011 Gary Court. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are - * permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * The views and conclusions contained in the software and documentation are those of the - * authors and should not be interpreted as representing official policies, either expressed - * or implied, of Gary Court. - */ -var SCHEMES = {}; -function pctEncChar(chr) { - var c = chr.charCodeAt(0); - var e = void 0; - if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase(); - return e; -} -function pctDecChars(str) { - var newStr = ""; - var i = 0; - var il = str.length; - while (i < il) { - var c = parseInt(str.substr(i + 1, 2), 16); - if (c < 128) { - newStr += String.fromCharCode(c); - i += 3; - } else if (c >= 194 && c < 224) { - if (il - i >= 6) { - var c2 = parseInt(str.substr(i + 4, 2), 16); - newStr += String.fromCharCode((c & 31) << 6 | c2 & 63); - } else { - newStr += str.substr(i, 6); - } - i += 6; - } else if (c >= 224) { - if (il - i >= 9) { - var _c = parseInt(str.substr(i + 4, 2), 16); - var c3 = parseInt(str.substr(i + 7, 2), 16); - newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63); - } else { - newStr += str.substr(i, 9); - } - i += 9; - } else { - newStr += str.substr(i, 3); - i += 3; - } - } - return newStr; -} -function _normalizeComponentEncoding(components, protocol) { - function decodeUnreserved(str) { - var decStr = pctDecChars(str); - return !decStr.match(protocol.UNRESERVED) ? str : decStr; - } - if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, ""); - if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - return components; -} - -function _stripLeadingZeros(str) { - return str.replace(/^0*(.*)/, "$1") || "0"; -} -function _normalizeIPv4(host, protocol) { - var matches = host.match(protocol.IPV4ADDRESS) || []; - - var _matches = slicedToArray(matches, 2), - address = _matches[1]; - - if (address) { - return address.split(".").map(_stripLeadingZeros).join("."); - } else { - return host; - } -} -function _normalizeIPv6(host, protocol) { - var matches = host.match(protocol.IPV6ADDRESS) || []; - - var _matches2 = slicedToArray(matches, 3), - address = _matches2[1], - zone = _matches2[2]; - - if (address) { - var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(), - _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), - last = _address$toLowerCase$2[0], - first = _address$toLowerCase$2[1]; - - var firstFields = first ? first.split(":").map(_stripLeadingZeros) : []; - var lastFields = last.split(":").map(_stripLeadingZeros); - var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]); - var fieldCount = isLastFieldIPv4Address ? 7 : 8; - var lastFieldsStart = lastFields.length - fieldCount; - var fields = Array(fieldCount); - for (var x = 0; x < fieldCount; ++x) { - fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || ''; - } - if (isLastFieldIPv4Address) { - fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol); - } - var allZeroFields = fields.reduce(function (acc, field, index) { - if (!field || field === "0") { - var lastLongest = acc[acc.length - 1]; - if (lastLongest && lastLongest.index + lastLongest.length === index) { - lastLongest.length++; - } else { - acc.push({ index: index, length: 1 }); - } - } - return acc; - }, []); - var longestZeroFields = allZeroFields.sort(function (a, b) { - return b.length - a.length; - })[0]; - var newHost = void 0; - if (longestZeroFields && longestZeroFields.length > 1) { - var newFirst = fields.slice(0, longestZeroFields.index); - var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length); - newHost = newFirst.join(":") + "::" + newLast.join(":"); - } else { - newHost = fields.join(":"); - } - if (zone) { - newHost += "%" + zone; - } - return newHost; - } else { - return host; - } -} -var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i; -var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined; -function parse(uriString) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var components = {}; - var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; - if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString; - var matches = uriString.match(URI_PARSE); - if (matches) { - if (NO_MATCH_IS_UNDEFINED) { - //store each component - components.scheme = matches[1]; - components.userinfo = matches[3]; - components.host = matches[4]; - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = matches[7]; - components.fragment = matches[8]; - //fix port number - if (isNaN(components.port)) { - components.port = matches[5]; - } - } else { - //IE FIX for improper RegExp matching - //store each component - components.scheme = matches[1] || undefined; - components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined; - components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined; - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined; - components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined; - //fix port number - if (isNaN(components.port)) { - components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined; - } - } - if (components.host) { - //normalize IP hosts - components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol); - } - //determine reference type - if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) { - components.reference = "same-document"; - } else if (components.scheme === undefined) { - components.reference = "relative"; - } else if (components.fragment === undefined) { - components.reference = "absolute"; - } else { - components.reference = "uri"; - } - //check for reference errors - if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) { - components.error = components.error || "URI is not a " + options.reference + " reference."; - } - //find scheme handler - var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //check if scheme can't handle IRIs - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - //if host component is a domain name - if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) { - //convert Unicode IDN -> ASCII IDN - try { - components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()); - } catch (e) { - components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e; - } - } - //convert IRI -> URI - _normalizeComponentEncoding(components, URI_PROTOCOL); - } else { - //normalize encodings - _normalizeComponentEncoding(components, protocol); - } - //perform scheme specific parsing - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(components, options); - } - } else { - components.error = components.error || "URI can not be parsed."; - } - return components; -} - -function _recomposeAuthority(components, options) { - var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; - var uriTokens = []; - if (components.userinfo !== undefined) { - uriTokens.push(components.userinfo); - uriTokens.push("@"); - } - if (components.host !== undefined) { - //normalize IP hosts, add brackets and escape zone separator for IPv6 - uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) { - return "[" + $1 + ($2 ? "%25" + $2 : "") + "]"; - })); - } - if (typeof components.port === "number" || typeof components.port === "string") { - uriTokens.push(":"); - uriTokens.push(String(components.port)); - } - return uriTokens.length ? uriTokens.join("") : undefined; -} - -var RDS1 = /^\.\.?\//; -var RDS2 = /^\/\.(\/|$)/; -var RDS3 = /^\/\.\.(\/|$)/; -var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/; -function removeDotSegments(input) { - var output = []; - while (input.length) { - if (input.match(RDS1)) { - input = input.replace(RDS1, ""); - } else if (input.match(RDS2)) { - input = input.replace(RDS2, "/"); - } else if (input.match(RDS3)) { - input = input.replace(RDS3, "/"); - output.pop(); - } else if (input === "." || input === "..") { - input = ""; - } else { - var im = input.match(RDS5); - if (im) { - var s = im[0]; - input = input.slice(s.length); - output.push(s); - } else { - throw new Error("Unexpected dot segment condition"); - } - } - } - return output.join(""); -} - -function serialize(components) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL; - var uriTokens = []; - //find scheme handler - var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //perform scheme specific serialization - if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options); - if (components.host) { - //if host component is an IPv6 address - if (protocol.IPV6ADDRESS.test(components.host)) {} - //TODO: normalize IPv6 address as per RFC 5952 - - //if host component is a domain name - else if (options.domainHost || schemeHandler && schemeHandler.domainHost) { - //convert IDN via punycode - try { - components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host); - } catch (e) { - components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - } - } - //normalize encoding - _normalizeComponentEncoding(components, protocol); - if (options.reference !== "suffix" && components.scheme) { - uriTokens.push(components.scheme); - uriTokens.push(":"); - } - var authority = _recomposeAuthority(components, options); - if (authority !== undefined) { - if (options.reference !== "suffix") { - uriTokens.push("//"); - } - uriTokens.push(authority); - if (components.path && components.path.charAt(0) !== "/") { - uriTokens.push("/"); - } - } - if (components.path !== undefined) { - var s = components.path; - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s); - } - if (authority === undefined) { - s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//" - } - uriTokens.push(s); - } - if (components.query !== undefined) { - uriTokens.push("?"); - uriTokens.push(components.query); - } - if (components.fragment !== undefined) { - uriTokens.push("#"); - uriTokens.push(components.fragment); - } - return uriTokens.join(""); //merge tokens into a string -} - -function resolveComponents(base, relative) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var skipNormalization = arguments[3]; - - var target = {}; - if (!skipNormalization) { - base = parse(serialize(base, options), options); //normalize base components - relative = parse(serialize(relative, options), options); //normalize relative components - } - options = options || {}; - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme; - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (!relative.path) { - target.path = base.path; - if (relative.query !== undefined) { - target.query = relative.query; - } else { - target.query = base.query; - } - } else { - if (relative.path.charAt(0) === "/") { - target.path = removeDotSegments(relative.path); - } else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = "/" + relative.path; - } else if (!base.path) { - target.path = relative.path; - } else { - target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; - } - target.path = removeDotSegments(target.path); - } - target.query = relative.query; - } - //target.authority = base.authority; - target.userinfo = base.userinfo; - target.host = base.host; - target.port = base.port; - } - target.scheme = base.scheme; - } - target.fragment = relative.fragment; - return target; -} - -function resolve(baseURI, relativeURI, options) { - var schemelessOptions = assign({ scheme: 'null' }, options); - return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions); -} - -function normalize(uri, options) { - if (typeof uri === "string") { - uri = serialize(parse(uri, options), options); - } else if (typeOf(uri) === "object") { - uri = parse(serialize(uri, options), options); - } - return uri; -} - -function equal(uriA, uriB, options) { - if (typeof uriA === "string") { - uriA = serialize(parse(uriA, options), options); - } else if (typeOf(uriA) === "object") { - uriA = serialize(uriA, options); - } - if (typeof uriB === "string") { - uriB = serialize(parse(uriB, options), options); - } else if (typeOf(uriB) === "object") { - uriB = serialize(uriB, options); - } - return uriA === uriB; -} - -function escapeComponent(str, options) { - return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar); -} - -function unescapeComponent(str, options) { - return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars); -} - -var handler = { - scheme: "http", - domainHost: true, - parse: function parse(components, options) { - //report missing host - if (!components.host) { - components.error = components.error || "HTTP URIs must have a host."; - } - return components; - }, - serialize: function serialize(components, options) { - var secure = String(components.scheme).toLowerCase() === "https"; - //normalize the default port - if (components.port === (secure ? 443 : 80) || components.port === "") { - components.port = undefined; - } - //normalize the empty path - if (!components.path) { - components.path = "/"; - } - //NOTE: We do not parse query strings for HTTP URIs - //as WWW Form Url Encoded query strings are part of the HTML4+ spec, - //and not the HTTP spec. - return components; - } -}; - -var handler$1 = { - scheme: "https", - domainHost: handler.domainHost, - parse: handler.parse, - serialize: handler.serialize -}; - -function isSecure(wsComponents) { - return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss"; -} -//RFC 6455 -var handler$2 = { - scheme: "ws", - domainHost: true, - parse: function parse(components, options) { - var wsComponents = components; - //indicate if the secure flag is set - wsComponents.secure = isSecure(wsComponents); - //construct resouce name - wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : ''); - wsComponents.path = undefined; - wsComponents.query = undefined; - return wsComponents; - }, - serialize: function serialize(wsComponents, options) { - //normalize the default port - if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") { - wsComponents.port = undefined; - } - //ensure scheme matches secure flag - if (typeof wsComponents.secure === 'boolean') { - wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws'; - wsComponents.secure = undefined; - } - //reconstruct path from resource name - if (wsComponents.resourceName) { - var _wsComponents$resourc = wsComponents.resourceName.split('?'), - _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), - path = _wsComponents$resourc2[0], - query = _wsComponents$resourc2[1]; - - wsComponents.path = path && path !== '/' ? path : undefined; - wsComponents.query = query; - wsComponents.resourceName = undefined; - } - //forbid fragment component - wsComponents.fragment = undefined; - return wsComponents; - } -}; - -var handler$3 = { - scheme: "wss", - domainHost: handler$2.domainHost, - parse: handler$2.parse, - serialize: handler$2.serialize -}; - -var O = {}; -var isIRI = true; -//RFC 3986 -var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]"; -var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive -var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded -//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; = -//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127) -//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext -//const VCHAR$$ = "[\\x21-\\x7E]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext -//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+"); -//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$); -//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"'); -var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]"; -var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]"; -var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]"); -var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"; -var UNRESERVED = new RegExp(UNRESERVED$$, "g"); -var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g"); -var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g"); -var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g"); -var NOT_HFVALUE = NOT_HFNAME; -function decodeUnreserved(str) { - var decStr = pctDecChars(str); - return !decStr.match(UNRESERVED) ? str : decStr; -} -var handler$4 = { - scheme: "mailto", - parse: function parse$$1(components, options) { - var mailtoComponents = components; - var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : []; - mailtoComponents.path = undefined; - if (mailtoComponents.query) { - var unknownHeaders = false; - var headers = {}; - var hfields = mailtoComponents.query.split("&"); - for (var x = 0, xl = hfields.length; x < xl; ++x) { - var hfield = hfields[x].split("="); - switch (hfield[0]) { - case "to": - var toAddrs = hfield[1].split(","); - for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) { - to.push(toAddrs[_x]); - } - break; - case "subject": - mailtoComponents.subject = unescapeComponent(hfield[1], options); - break; - case "body": - mailtoComponents.body = unescapeComponent(hfield[1], options); - break; - default: - unknownHeaders = true; - headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options); - break; - } - } - if (unknownHeaders) mailtoComponents.headers = headers; - } - mailtoComponents.query = undefined; - for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) { - var addr = to[_x2].split("@"); - addr[0] = unescapeComponent(addr[0]); - if (!options.unicodeSupport) { - //convert Unicode IDN -> ASCII IDN - try { - addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase()); - } catch (e) { - mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e; - } - } else { - addr[1] = unescapeComponent(addr[1], options).toLowerCase(); - } - to[_x2] = addr.join("@"); - } - return mailtoComponents; - }, - serialize: function serialize$$1(mailtoComponents, options) { - var components = mailtoComponents; - var to = toArray(mailtoComponents.to); - if (to) { - for (var x = 0, xl = to.length; x < xl; ++x) { - var toAddr = String(to[x]); - var atIdx = toAddr.lastIndexOf("@"); - var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar); - var domain = toAddr.slice(atIdx + 1); - //convert IDN via punycode - try { - domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain); - } catch (e) { - components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - to[x] = localPart + "@" + domain; - } - components.path = to.join(","); - } - var headers = mailtoComponents.headers = mailtoComponents.headers || {}; - if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject; - if (mailtoComponents.body) headers["body"] = mailtoComponents.body; - var fields = []; - for (var name in headers) { - if (headers[name] !== O[name]) { - fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)); - } - } - if (fields.length) { - components.query = fields.join("&"); - } - return components; - } -}; - -var URN_PARSE = /^([^\:]+)\:(.*)/; -//RFC 2141 -var handler$5 = { - scheme: "urn", - parse: function parse$$1(components, options) { - var matches = components.path && components.path.match(URN_PARSE); - var urnComponents = components; - if (matches) { - var scheme = options.scheme || urnComponents.scheme || "urn"; - var nid = matches[1].toLowerCase(); - var nss = matches[2]; - var urnScheme = scheme + ":" + (options.nid || nid); - var schemeHandler = SCHEMES[urnScheme]; - urnComponents.nid = nid; - urnComponents.nss = nss; - urnComponents.path = undefined; - if (schemeHandler) { - urnComponents = schemeHandler.parse(urnComponents, options); - } - } else { - urnComponents.error = urnComponents.error || "URN can not be parsed."; - } - return urnComponents; - }, - serialize: function serialize$$1(urnComponents, options) { - var scheme = options.scheme || urnComponents.scheme || "urn"; - var nid = urnComponents.nid; - var urnScheme = scheme + ":" + (options.nid || nid); - var schemeHandler = SCHEMES[urnScheme]; - if (schemeHandler) { - urnComponents = schemeHandler.serialize(urnComponents, options); - } - var uriComponents = urnComponents; - var nss = urnComponents.nss; - uriComponents.path = (nid || options.nid) + ":" + nss; - return uriComponents; - } -}; - -var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/; -//RFC 4122 -var handler$6 = { - scheme: "urn:uuid", - parse: function parse(urnComponents, options) { - var uuidComponents = urnComponents; - uuidComponents.uuid = uuidComponents.nss; - uuidComponents.nss = undefined; - if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) { - uuidComponents.error = uuidComponents.error || "UUID is not valid."; - } - return uuidComponents; - }, - serialize: function serialize(uuidComponents, options) { - var urnComponents = uuidComponents; - //normalize UUID - urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); - return urnComponents; - } -}; - -SCHEMES[handler.scheme] = handler; -SCHEMES[handler$1.scheme] = handler$1; -SCHEMES[handler$2.scheme] = handler$2; -SCHEMES[handler$3.scheme] = handler$3; -SCHEMES[handler$4.scheme] = handler$4; -SCHEMES[handler$5.scheme] = handler$5; -SCHEMES[handler$6.scheme] = handler$6; - -exports.SCHEMES = SCHEMES; -exports.pctEncChar = pctEncChar; -exports.pctDecChars = pctDecChars; -exports.parse = parse; -exports.removeDotSegments = removeDotSegments; -exports.serialize = serialize; -exports.resolveComponents = resolveComponents; -exports.resolve = resolve; -exports.normalize = normalize; -exports.equal = equal; -exports.escapeComponent = escapeComponent; -exports.unescapeComponent = unescapeComponent; - -Object.defineProperty(exports, '__esModule', { value: true }); - -}))); - - -},{}],"ajv":[function(require,module,exports){ -'use strict'; - -var compileSchema = require('./compile') - , resolve = require('./compile/resolve') - , Cache = require('./cache') - , SchemaObject = require('./compile/schema_obj') - , stableStringify = require('fast-json-stable-stringify') - , formats = require('./compile/formats') - , rules = require('./compile/rules') - , $dataMetaSchema = require('./data') - , util = require('./compile/util'); - -module.exports = Ajv; - -Ajv.prototype.validate = validate; -Ajv.prototype.compile = compile; -Ajv.prototype.addSchema = addSchema; -Ajv.prototype.addMetaSchema = addMetaSchema; -Ajv.prototype.validateSchema = validateSchema; -Ajv.prototype.getSchema = getSchema; -Ajv.prototype.removeSchema = removeSchema; -Ajv.prototype.addFormat = addFormat; -Ajv.prototype.errorsText = errorsText; - -Ajv.prototype._addSchema = _addSchema; -Ajv.prototype._compile = _compile; - -Ajv.prototype.compileAsync = require('./compile/async'); -var customKeyword = require('./keyword'); -Ajv.prototype.addKeyword = customKeyword.add; -Ajv.prototype.getKeyword = customKeyword.get; -Ajv.prototype.removeKeyword = customKeyword.remove; -Ajv.prototype.validateKeyword = customKeyword.validate; - -var errorClasses = require('./compile/error_classes'); -Ajv.ValidationError = errorClasses.Validation; -Ajv.MissingRefError = errorClasses.MissingRef; -Ajv.$dataMetaSchema = $dataMetaSchema; - -var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; - -var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; -var META_SUPPORT_DATA = ['/properties']; - -/** - * Creates validator instance. - * Usage: `Ajv(opts)` - * @param {Object} opts optional options - * @return {Object} ajv instance - */ -function Ajv(opts) { - if (!(this instanceof Ajv)) return new Ajv(opts); - opts = this._opts = util.copy(opts) || {}; - setLogger(this); - this._schemas = {}; - this._refs = {}; - this._fragments = {}; - this._formats = formats(opts.format); - - this._cache = opts.cache || new Cache; - this._loadingSchemas = {}; - this._compilations = []; - this.RULES = rules(); - this._getId = chooseGetId(opts); - - opts.loopRequired = opts.loopRequired || Infinity; - if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; - if (opts.serialize === undefined) opts.serialize = stableStringify; - this._metaOpts = getMetaSchemaOptions(this); - - if (opts.formats) addInitialFormats(this); - if (opts.keywords) addInitialKeywords(this); - addDefaultMetaSchema(this); - if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); - if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); - addInitialSchemas(this); -} - - - -/** - * Validate data using schema - * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. - * @this Ajv - * @param {String|Object} schemaKeyRef key, ref or schema object - * @param {Any} data to be validated - * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). - */ -function validate(schemaKeyRef, data) { - var v; - if (typeof schemaKeyRef == 'string') { - v = this.getSchema(schemaKeyRef); - if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); - } else { - var schemaObj = this._addSchema(schemaKeyRef); - v = schemaObj.validate || this._compile(schemaObj); - } - - var valid = v(data); - if (v.$async !== true) this.errors = v.errors; - return valid; -} - - -/** - * Create validating function for passed schema. - * @this Ajv - * @param {Object} schema schema object - * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. - * @return {Function} validating function - */ -function compile(schema, _meta) { - var schemaObj = this._addSchema(schema, undefined, _meta); - return schemaObj.validate || this._compile(schemaObj); -} - - -/** - * Adds schema to the instance. - * @this Ajv - * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. - * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. - * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - * @return {Ajv} this for method chaining - */ -function addSchema(schema, key, _skipValidation, _meta) { - if (Array.isArray(schema)){ - for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. - * @param {Object} options optional options with properties `separator` and `dataVar`. - * @return {String} human readable string with all errors descriptions - */ -function errorsText(errors, options) { - errors = errors || this.errors; - if (!errors) return 'No errors'; - options = options || {}; - var separator = options.separator === undefined ? ', ' : options.separator; - var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; - - var text = ''; - for (var i=0; i%\\^`{|}]|%[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,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return a.copy(m[e="full"==e?"full":"fast"])}function v(e){var r=e.match(o);if(!r)return!1;var t,a=+r[2],s=+r[3];return 1<=a&&a<=12&&1<=s&&s<=(2!=a||((t=+r[1])%4!=0||t%100==0&&t%400!=0)?i[a]:29)}function y(e,r){var t=e.match(n);if(!t)return!1;var a=t[1],s=t[2],o=t[3];return(a<=23&&s<=59&&o<=59||23==a&&59==s&&60==o)&&(!r||t[5])}(r.exports=m).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[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,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":p,"relative-json-pointer":f},m.full={date:v,time:y,"date-time":function(e){var r=e.split(g);return 2==r.length&&v(r[0])&&y(r[1],!0)},uri:function(e){return P.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}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(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":p,"relative-json-pointer":f};var g=/t|\s/i;var P=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},{"./util":10}],5:[function(e,r,t){"use strict";var R=e("./resolve"),$=e("./util"),j=e("./error_classes"),D=e("fast-json-stable-stringify"),O=e("../dotjs/validate"),I=$.ucs2length,A=e("fast-deep-equal"),k=j.Validation;function C(e,c,u,r){var d=this,p=this._opts,h=[void 0],f={},l=[],t={},m=[],a={},v=[],s=function(e,r,t){var a=L.call(this,e,r,t);return 0<=a?{index:a,compiling:!0}:{index:a=this._compilations.length,compiling:!(this._compilations[a]={schema:e,root:r,baseId:t})}}.call(this,e,c=c||{schema:e,refVal:h,refs:f},r),o=this._compilations[s.index];if(s.compiling)return o.callValidate=P;var y=this._formats,g=this.RULES;try{var i=E(e,c,u,r);o.validate=i;var n=o.callValidate;return n&&(n.schema=i.schema,n.errors=null,n.refs=i.refs,n.refVal=i.refVal,n.root=i.root,n.$async=i.$async,p.sourceCode&&(n.source=i.source)),i}finally{(function(e,r,t){var a=L.call(this,e,r,t);0<=a&&this._compilations.splice(a,1)}).call(this,e,c,r)}function P(){var e=o.validate,r=e.apply(this,arguments);return P.errors=e.errors,r}function E(e,r,t,a){var s=!r||r&&r.schema==e;if(r.schema!=c.schema)return C.call(d,e,r,t,a);var o=!0===e.$async,i=O({isTop:!0,schema:e,isRoot:s,baseId:a,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:j.MissingRef,RULES:g,validate:O,util:$,resolve:R,resolveRef:w,usePattern:_,useDefault:F,useCustomRule:x,opts:p,formats:y,logger:d.logger,self:d}),i=Q(h,z)+Q(l,N)+Q(m,q)+Q(v,T)+i;p.processCode&&(i=p.processCode(i,e));try{var n=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",i)(d,g,y,c,h,m,v,A,I,k);h[0]=n}catch(e){throw d.logger.error("Error compiling schema, function code:",i),e}return n.schema=e,n.errors=null,n.refs=f,n.refVal=h,n.root=s?n:r,o&&(n.$async=!0),!0===p.sourceCode&&(n.source={code:i,patterns:l,defaults:m}),n}function w(e,r,t){r=R.url(e,r);var a,s,o=f[r];if(void 0!==o)return S(a=h[o],s="refVal["+o+"]");if(!t&&c.refs){var i=c.refs[r];if(void 0!==i)return S(a=c.refVal[i],s=b(r,a))}s=b(r);var n,l=R.call(d,E,c,r);if(void 0!==l||(n=u&&u[r])&&(l=R.inlineRef(n,p.inlineRefs)?n:C.call(d,n,c,u,e)),void 0!==l)return S(h[f[r]]=l,s);delete f[r]}function b(e,r){var t=h.length;return h[t]=r,"refVal"+(f[e]=t)}function S(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function _(e){var r=t[e];return void 0===r&&(r=t[e]=l.length,l[r]=e),"pattern"+r}function F(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return $.toQuotedString(e);case"object":if(null===e)return"null";var r=D(e),t=a[r];return void 0===t&&(t=a[r]=m.length,m[t]=e),"default"+t}}function x(e,r,t,a){if(!1!==d._opts.validateSchema){var s=e.definition.dependencies;if(s&&!s.every(function(e){return Object.prototype.hasOwnProperty.call(t,e)}))throw new Error("parent schema must have all required keywords: "+s.join(","));var o=e.definition.validateSchema;if(o)if(!o(r)){var i="keyword schema is invalid: "+d.errorsText(o.errors);if("log"!=d._opts.validateSchema)throw new Error(i);d.logger.error(i)}}var n,l=e.definition.compile,c=e.definition.inline,u=e.definition.macro;if(l)n=l.call(d,r,t,a);else if(u)n=u.call(d,r,t,a),!1!==p.validateSchema&&d.validateSchema(n,!0);else if(c)n=c.call(d,a,e.keyword,r,t);else if(!(n=e.definition.validate))return;if(void 0===n)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=v.length;return{code:"customRule"+h,validate:v[h]=n}}}function L(e,r,t){for(var a=0;a",_=P?">":"<",F=void 0;if(!y&&"number"!=typeof d&&void 0!==d)throw new Error(r+" must be number");if(!b&&void 0!==w&&"number"!=typeof w&&"boolean"!=typeof w)throw new Error(E+" must be number or boolean");b?(o="exclIsNumber"+u,i="' + "+(n="op"+u)+" + '",c+=" var schemaExcl"+u+" = "+(t=e.util.getData(w.$data,h,e.dataPathArr))+"; ",F=E,(l=l||[]).push(c+=" var "+(a="exclusive"+u)+"; var "+(s="exclType"+u)+" = typeof "+(t="schemaExcl"+u)+"; if ("+s+" != 'boolean' && "+s+" != 'undefined' && "+s+" != 'number') { "),c="",!1!==e.createErrors?(c+=" { keyword: '"+(F||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(c+=" , message: '"+E+" should be boolean' "),e.opts.verbose&&(c+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",x=c,c=l.pop(),c+=!e.compositeRule&&m?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } else if ( ",y&&(c+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),c+=" "+s+" == 'number' ? ( ("+a+" = "+g+" === undefined || "+t+" "+S+"= "+g+") ? "+v+" "+_+"= "+t+" : "+v+" "+_+" "+g+" ) : ( ("+a+" = "+t+" === true) ? "+v+" "+_+"= "+g+" : "+v+" "+_+" "+g+" ) || "+v+" !== "+v+") { var op"+u+" = "+a+" ? '"+S+"' : '"+S+"='; ",void 0===d&&(f=e.errSchemaPath+"/"+(F=E),g=t,y=b)):(i=S,(o="number"==typeof w)&&y?(n="'"+i+"'",c+=" if ( ",y&&(c+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),c+=" ( "+g+" === undefined || "+w+" "+S+"= "+g+" ? "+v+" "+_+"= "+w+" : "+v+" "+_+" "+g+" ) || "+v+" !== "+v+") { "):(o&&void 0===d?(a=!0,f=e.errSchemaPath+"/"+(F=E),g=w,_+="="):(o&&(g=Math[P?"min":"max"](w,d)),w===(!o||g)?(a=!0,f=e.errSchemaPath+"/"+(F=E),_+="="):(a=!1,i+="=")),n="'"+i+"'",c+=" if ( ",y&&(c+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),c+=" "+v+" "+_+" "+g+" || "+v+" !== "+v+") { ")),F=F||r,(l=l||[]).push(c),c="",!1!==e.createErrors?(c+=" { keyword: '"+(F||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { comparison: "+n+", limit: "+g+", exclusive: "+a+" } ",!1!==e.opts.messages&&(c+=" , message: 'should be "+i+" ",c+=y?"' + "+g:g+"'"),e.opts.verbose&&(c+=" , schema: ",c+=y?"validate.schema"+p:""+d,c+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ";var x=c;return c=l.pop(),c+=!e.compositeRule&&m?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } ",m&&(c+=" else { "),c}},{}],14:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u=e.opts.$data&&o&&o.$data,h=u?(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ","schema"+a):o;if(!u&&"number"!=typeof o)throw new Error(r+" must be number");t+="if ( ",u&&(t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || ");var d=r,p=p||[];p.push(t+=" "+c+".length "+("maxItems"==r?">":"<")+" "+h+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { limit: "+h+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have ",t+="maxItems"==r?"more":"fewer",t+=" than ",t+=u?"' + "+h+" + '":""+o,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",t+=u?"validate.schema"+i:""+o,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var f=t,t=p.pop();return t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",l&&(t+=" else { "),t}},{}],15:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u=e.opts.$data&&o&&o.$data,h=u?(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ","schema"+a):o;if(!u&&"number"!=typeof o)throw new Error(r+" must be number");t+="if ( ",u&&(t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),t+=!1===e.opts.unicode?" "+c+".length ":" ucs2length("+c+") ";var d=r,p=p||[];p.push(t+=" "+("maxLength"==r?">":"<")+" "+h+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { limit: "+h+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT be ",t+="maxLength"==r?"longer":"shorter",t+=" than ",t+=u?"' + "+h+" + '":""+o,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",t+=u?"validate.schema"+i:""+o,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var f=t,t=p.pop();return t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",l&&(t+=" else { "),t}},{}],16:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u=e.opts.$data&&o&&o.$data,h=u?(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ","schema"+a):o;if(!u&&"number"!=typeof o)throw new Error(r+" must be number");t+="if ( ",u&&(t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || ");var d=r,p=p||[];p.push(t+=" Object.keys("+c+").length "+("maxProperties"==r?">":"<")+" "+h+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { limit: "+h+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have ",t+="maxProperties"==r?"more":"fewer",t+=" than ",t+=u?"' + "+h+" + '":""+o,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",t+=u?"validate.schema"+i:""+o,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var f=t,t=p.pop();return t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",l&&(t+=" else { "),t}},{}],17:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,i=!e.opts.allErrors,n=e.util.copy(e),l="";n.level++;var c="valid"+n.level,u=n.baseId,h=!0,d=a;if(d)for(var p,f=-1,m=d.length-1;f "+_+") { ",x=c+"["+_+"]",d.schema=$,d.schemaPath=i+"["+_+"]",d.errSchemaPath=n+"/"+_,d.errorPath=e.util.getPathExpr(e.errorPath,_,e.opts.jsonPointers,!0),d.dataPathArr[v]=_,R=e.validate(d),d.baseId=g,e.util.varOccurences(R,y)<2?t+=" "+e.util.varReplace(R,y,x)+" ":t+=" var "+y+" = "+x+"; "+R+" ",t+=" } ",l&&(t+=" if ("+f+") { ",p+="}"))}"object"==typeof b&&(e.opts.strictKeywords?"object"==typeof b&&0 "+o.length+") { for (var "+m+" = "+o.length+"; "+m+" < "+c+".length; "+m+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0),x=c+"["+m+"]",d.dataPathArr[v]=m,R=e.validate(d),d.baseId=g,e.util.varOccurences(R,y)<2?t+=" "+e.util.varReplace(R,y,x)+" ":t+=" var "+y+" = "+x+"; "+R+" ",l&&(t+=" if (!"+f+") break; "),t+=" } } ",l&&(t+=" if ("+f+") { ",p+="}"))}else{(e.opts.strictKeywords?"object"==typeof o&&0 1e-"+e.opts.multipleOfPrecision+" ":" division"+a+" !== parseInt(division"+a+") ",t+=" ) ",u&&(t+=" ) ");var d=d||[];d.push(t+=" ) { "),t="",!1!==e.createErrors?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { multipleOf: "+h+" } ",!1!==e.opts.messages&&(t+=" , message: 'should be multiple of ",t+=u?"' + "+h:h+"'"),e.opts.verbose&&(t+=" , schema: ",t+=u?"validate.schema"+i:""+o,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var p=t,t=d.pop();return t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",l&&(t+=" else { "),t}},{}],30:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="errs__"+a,h=e.util.copy(e);h.level++;var d,p,f,m,v="valid"+h.level;return(e.opts.strictKeywords?"object"==typeof o&&0 1) { ",t=e.schema.items&&e.schema.items.type,a=Array.isArray(t),!t||"object"==t||"array"==t||a&&(0<=t.indexOf("object")||0<=t.indexOf("array"))?i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+f+" = false; break outer; } } } ":(i+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ",i+=" if ("+e.util["checkDataType"+(a?"s":"")](t,"item",e.opts.strictNumbers,!0)+") continue; ",a&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),i+=" } ",m&&(i+=" } "),(s=s||[]).push(i+=" if (!"+f+") { "),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=m?"validate.schema"+u:""+c,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",o=i,i=s.pop(),i+=!e.compositeRule&&d?e.async?" throw new ValidationError(["+o+"]); ":" validate.errors = ["+o+"]; return false; ":" var err = "+o+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d&&(i+=" else { ")):d&&(i+=" if (true) { "),i}},{}],38:[function(e,r,t){"use strict";r.exports=function(a,e){var r="",t=!0===a.schema.$async,s=a.util.schemaHasRulesExcept(a.schema,a.RULES.all,"$ref"),o=a.self._getId(a.schema);if(a.opts.strictKeywords){var i=a.util.schemaUnknownRules(a.schema,a.RULES.keywords);if(i){var n="unknown keyword: "+i;if("log"!==a.opts.strictKeywords)throw new Error(n);a.logger.warn(n)}}if(a.isTop&&(r+=" var validate = ",t&&(a.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(a.opts.sourceCode||a.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof a.schema||!s&&!a.schema.$ref){var l=a.level,c=a.dataLevel,u=a.schema[e="false schema"],h=a.schemaPath+a.util.getProperty(e),d=a.errSchemaPath+"/"+e,p=!a.opts.allErrors,f="data"+(c||""),m="valid"+l;return!1===a.schema?(a.isTop?p=!0:r+=" var "+m+" = false; ",(U=U||[]).push(r),r="",!1!==a.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: {} ",!1!==a.opts.messages&&(r+=" , message: 'boolean schema is false' "),a.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ",D=r,r=U.pop(),r+=!a.compositeRule&&p?a.async?" throw new ValidationError(["+D+"]); ":" validate.errors = ["+D+"]; return false; ":" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):r+=a.isTop?t?" return data; ":" validate.errors = null; return true; ":" var "+m+" = true; ",a.isTop&&(r+=" }; return validate; "),r}if(a.isTop){var v=a.isTop,l=a.level=0,c=a.dataLevel=0,f="data";if(a.rootId=a.resolve.fullPath(a.self._getId(a.root.schema)),a.baseId=a.baseId||a.rootId,delete a.isTop,a.dataPathArr=[""],void 0!==a.schema.default&&a.opts.useDefaults&&a.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==a.opts.strictDefaults)throw new Error(y);a.logger.warn(y)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=a.level,f="data"+((c=a.dataLevel)||"");if(o&&(a.baseId=a.resolve.url(a.baseId,o)),t&&!a.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}var g,m="valid"+l,p=!a.opts.allErrors,P="",E="",w=a.schema.type,b=Array.isArray(w);if(w&&a.opts.nullable&&!0===a.schema.nullable&&(b?-1==w.indexOf("null")&&(w=w.concat("null")):"null"!=w&&(w=[w,"null"],b=!0)),b&&1==w.length&&(w=w[0],b=!1),a.schema.$ref&&s){if("fail"==a.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+a.errSchemaPath+'" (see option extendRefs)');!0!==a.opts.extendRefs&&(s=!1,a.logger.warn('$ref: keywords ignored in schema at path "'+a.errSchemaPath+'"'))}if(a.schema.$comment&&a.opts.$comment&&(r+=" "+a.RULES.all.$comment.code(a,"$comment")),w){a.opts.coerceTypes&&(g=a.util.coerceToTypes(a.opts.coerceTypes,w));var S=a.RULES.types[w];if(g||b||!0===S||S&&!Z(S)){h=a.schemaPath+".type",d=a.errSchemaPath+"/type",h=a.schemaPath+".type",d=a.errSchemaPath+"/type";if(r+=" if ("+a.util[b?"checkDataTypes":"checkDataType"](w,f,a.opts.strictNumbers,!0)+") { ",g){var _="dataType"+l,F="coerced"+l;r+=" var "+_+" = typeof "+f+"; var "+F+" = undefined; ","array"==a.opts.coerceTypes&&(r+=" if ("+_+" == 'object' && Array.isArray("+f+") && "+f+".length == 1) { "+f+" = "+f+"[0]; "+_+" = typeof "+f+"; if ("+a.util.checkDataType(a.schema.type,f,a.opts.strictNumbers)+") "+F+" = "+f+"; } "),r+=" if ("+F+" !== undefined) ; ";var x=g;if(x)for(var R,$=-1,j=x.length-1;$= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=Math.floor,C=String.fromCharCode;function L(e){throw new RangeError(i[e])}function n(e,r){var t=e.split("@"),a="";return 1>1,e+=k(e/r);455k((A-a)/h))&&L("overflow"),a+=p*h;var f=d<=o?1:o+26<=d?26:d-o;if(pk(A/m)&&L("overflow"),h*=m}var v=r.length+1,o=z(a-u,v,0==u);k(a/v)>A-s&&L("overflow"),s+=k(a/v),a%=v,r.splice(a++,0,s)}return String.fromCodePoint.apply(String,r)}function c(e){var r=[],t=(e=N(e)).length,a=128,s=0,o=72,i=!0,n=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var h=c.value;h<128&&r.push(C(h))}}catch(e){n=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(n)throw l}}var d=r.length,p=d;for(d&&r.push("-");pk((A-s)/w)&&L("overflow"),s+=(f-a)*w,a=f;var b=!0,S=!1,_=void 0;try{for(var F,x=e[Symbol.iterator]();!(b=(F=x.next()).done);b=!0){var R=F.value;if(RA&&L("overflow"),R==a){for(var $=s,j=36;;j+=36){var D=j<=o?1:o+26<=j?26:j-o;if($>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function p(e){for(var r="",t=0,a=e.length;tA-Z\\x5E-\\x7E]",'[\\"\\\\]')),Y=new RegExp(K,"g"),W=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),X=new RegExp(J("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',G),"g"),ee=new RegExp(J("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=ee;function te(e){var r=p(e);return r.match(Y)?r:e}var ae={scheme:"mailto",parse:function(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var s=!1,o={},i=t.query.split("&"),n=0,l=i.length;n); - - message: string; - errors: Array; - ajv: true; - validation: true; - } - - class MissingRefError extends Error { - constructor(baseId: string, ref: string, message?: string); - static message: (baseId: string, ref: string) => string; - - message: string; - missingRef: string; - missingSchema: string; - } -} - -declare namespace ajv { - type ValidationError = AjvErrors.ValidationError; - - type MissingRefError = AjvErrors.MissingRefError; - - interface Ajv { - /** - * Validate data using schema - * Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize by default). - * @param {string|object|Boolean} schemaKeyRef key, ref or schema object - * @param {Any} data to be validated - * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). - */ - validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike; - /** - * Create validating function for passed schema. - * @param {object|Boolean} schema schema object - * @return {Function} validating function - */ - compile(schema: object | boolean): ValidateFunction; - /** - * Creates validating function for passed schema with asynchronous loading of missing schemas. - * `loadSchema` option should be a function that accepts schema uri and node-style callback. - * @this Ajv - * @param {object|Boolean} schema schema object - * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped - * @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function. - * @return {PromiseLike} validating function - */ - compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike; - /** - * Adds schema to the instance. - * @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. - * @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - * @return {Ajv} this for method chaining - */ - addSchema(schema: Array | object, key?: string): Ajv; - /** - * Add schema that will be used to validate other schemas - * options in META_IGNORE_OPTIONS are alway set to false - * @param {object} schema schema object - * @param {string} key optional schema key - * @return {Ajv} this for method chaining - */ - addMetaSchema(schema: object, key?: string): Ajv; - /** - * Validate schema - * @param {object|Boolean} schema schema to validate - * @return {Boolean} true if schema is valid - */ - validateSchema(schema: object | boolean): boolean; - /** - * Get compiled schema from the instance by `key` or `ref`. - * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id). - * @return {Function} schema validating function (with property `schema`). Returns undefined if keyRef can't be resolved to an existing schema. - */ - getSchema(keyRef: string): ValidateFunction | undefined; - /** - * Remove cached schema(s). - * If no parameter is passed all schemas but meta-schemas are removed. - * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - * Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - * @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object - * @return {Ajv} this for method chaining - */ - removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv; - /** - * Add custom format - * @param {string} name format name - * @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid) - * @return {Ajv} this for method chaining - */ - addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv; - /** - * Define custom keyword - * @this Ajv - * @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords. - * @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. - * @return {Ajv} this for method chaining - */ - addKeyword(keyword: string, definition: KeywordDefinition): Ajv; - /** - * Get keyword definition - * @this Ajv - * @param {string} keyword pre-defined or custom keyword. - * @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise. - */ - getKeyword(keyword: string): object | boolean; - /** - * Remove keyword - * @this Ajv - * @param {string} keyword pre-defined or custom keyword. - * @return {Ajv} this for method chaining - */ - removeKeyword(keyword: string): Ajv; - /** - * Validate keyword - * @this Ajv - * @param {object} definition keyword definition object - * @param {boolean} throwError true to throw exception if definition is invalid - * @return {boolean} validation result - */ - validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean; - /** - * Convert array of error message objects to string - * @param {Array} errors optional array of validation errors, if not passed errors from the instance are used. - * @param {object} options optional options with properties `separator` and `dataVar`. - * @return {string} human readable string with all errors descriptions - */ - errorsText(errors?: Array | null, options?: ErrorsTextOptions): string; - errors?: Array | null; - _opts: Options; - } - - interface CustomLogger { - log(...args: any[]): any; - warn(...args: any[]): any; - error(...args: any[]): any; - } - - interface ValidateFunction { - ( - data: any, - dataPath?: string, - parentData?: object | Array, - parentDataProperty?: string | number, - rootData?: object | Array - ): boolean | PromiseLike; - schema?: object | boolean; - errors?: null | Array; - refs?: object; - refVal?: Array; - root?: ValidateFunction | object; - $async?: true; - source?: object; - } - - interface Options { - $data?: boolean; - allErrors?: boolean; - verbose?: boolean; - jsonPointers?: boolean; - uniqueItems?: boolean; - unicode?: boolean; - format?: false | string; - formats?: object; - keywords?: object; - unknownFormats?: true | string[] | 'ignore'; - schemas?: Array | object; - schemaId?: '$id' | 'id' | 'auto'; - missingRefs?: true | 'ignore' | 'fail'; - extendRefs?: true | 'ignore' | 'fail'; - loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike; - removeAdditional?: boolean | 'all' | 'failing'; - useDefaults?: boolean | 'empty' | 'shared'; - coerceTypes?: boolean | 'array'; - strictDefaults?: boolean | 'log'; - strictKeywords?: boolean | 'log'; - strictNumbers?: boolean; - async?: boolean | string; - transpile?: string | ((code: string) => string); - meta?: boolean | object; - validateSchema?: boolean | 'log'; - addUsedSchema?: boolean; - inlineRefs?: boolean | number; - passContext?: boolean; - loopRequired?: number; - ownProperties?: boolean; - multipleOfPrecision?: boolean | number; - errorDataPath?: string, - messages?: boolean; - sourceCode?: boolean; - processCode?: (code: string, schema: object) => string; - cache?: object; - logger?: CustomLogger | false; - nullable?: boolean; - serialize?: ((schema: object | boolean) => any) | false; - } - - type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike); - type NumberFormatValidator = ((data: number) => boolean | PromiseLike); - - interface NumberFormatDefinition { - type: "number", - validate: NumberFormatValidator; - compare?: (data1: number, data2: number) => number; - async?: boolean; - } - - interface StringFormatDefinition { - type?: "string", - validate: FormatValidator; - compare?: (data1: string, data2: string) => number; - async?: boolean; - } - - type FormatDefinition = NumberFormatDefinition | StringFormatDefinition; - - interface KeywordDefinition { - type?: string | Array; - async?: boolean; - $data?: boolean; - errors?: boolean | string; - metaSchema?: object; - // schema: false makes validate not to expect schema (ValidateFunction) - schema?: boolean; - statements?: boolean; - dependencies?: Array; - modifying?: boolean; - valid?: boolean; - // one and only one of the following properties should be present - validate?: SchemaValidateFunction | ValidateFunction; - compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction; - macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean; - inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string; - } - - interface CompilationContext { - level: number; - dataLevel: number; - dataPathArr: string[]; - schema: any; - schemaPath: string; - baseId: string; - async: boolean; - opts: Options; - formats: { - [index: string]: FormatDefinition | undefined; - }; - keywords: { - [index: string]: KeywordDefinition | undefined; - }; - compositeRule: boolean; - validate: (schema: object) => boolean; - util: { - copy(obj: any, target?: any): any; - toHash(source: string[]): { [index: string]: true | undefined }; - equal(obj: any, target: any): boolean; - getProperty(str: string): string; - schemaHasRules(schema: object, rules: any): string; - escapeQuotes(str: string): string; - toQuotedString(str: string): string; - getData(jsonPointer: string, dataLevel: number, paths: string[]): string; - escapeJsonPointer(str: string): string; - unescapeJsonPointer(str: string): string; - escapeFragment(str: string): string; - unescapeFragment(str: string): string; - }; - self: Ajv; - } - - interface SchemaValidateFunction { - ( - schema: any, - data: any, - parentSchema?: object, - dataPath?: string, - parentData?: object | Array, - parentDataProperty?: string | number, - rootData?: object | Array - ): boolean | PromiseLike; - errors?: Array; - } - - interface ErrorsTextOptions { - separator?: string; - dataVar?: string; - } - - interface ErrorObject { - keyword: string; - dataPath: string; - schemaPath: string; - params: ErrorParameters; - // Added to validation errors of propertyNames keyword schema - propertyName?: string; - // Excluded if messages set to false. - message?: string; - // These are added with the `verbose` option. - schema?: any; - parentSchema?: object; - data?: any; - } - - type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams | - DependenciesParams | FormatParams | ComparisonParams | - MultipleOfParams | PatternParams | RequiredParams | - TypeParams | UniqueItemsParams | CustomParams | - PatternRequiredParams | PropertyNamesParams | - IfParams | SwitchParams | NoParams | EnumParams; - - interface RefParams { - ref: string; - } - - interface LimitParams { - limit: number; - } - - interface AdditionalPropertiesParams { - additionalProperty: string; - } - - interface DependenciesParams { - property: string; - missingProperty: string; - depsCount: number; - deps: string; - } - - interface FormatParams { - format: string - } - - interface ComparisonParams { - comparison: string; - limit: number | string; - exclusive: boolean; - } - - interface MultipleOfParams { - multipleOf: number; - } - - interface PatternParams { - pattern: string; - } - - interface RequiredParams { - missingProperty: string; - } - - interface TypeParams { - type: string; - } - - interface UniqueItemsParams { - i: number; - j: number; - } - - interface CustomParams { - keyword: string; - } - - interface PatternRequiredParams { - missingPattern: string; - } - - interface PropertyNamesParams { - propertyName: string; - } - - interface IfParams { - failingKeyword: string; - } - - interface SwitchParams { - caseIndex: number; - } - - interface NoParams { } - - interface EnumParams { - allowedValues: Array; - } -} - -export = ajv; diff --git a/node_modules/ajv/lib/ajv.js b/node_modules/ajv/lib/ajv.js deleted file mode 100644 index 06a45b65..00000000 --- a/node_modules/ajv/lib/ajv.js +++ /dev/null @@ -1,506 +0,0 @@ -'use strict'; - -var compileSchema = require('./compile') - , resolve = require('./compile/resolve') - , Cache = require('./cache') - , SchemaObject = require('./compile/schema_obj') - , stableStringify = require('fast-json-stable-stringify') - , formats = require('./compile/formats') - , rules = require('./compile/rules') - , $dataMetaSchema = require('./data') - , util = require('./compile/util'); - -module.exports = Ajv; - -Ajv.prototype.validate = validate; -Ajv.prototype.compile = compile; -Ajv.prototype.addSchema = addSchema; -Ajv.prototype.addMetaSchema = addMetaSchema; -Ajv.prototype.validateSchema = validateSchema; -Ajv.prototype.getSchema = getSchema; -Ajv.prototype.removeSchema = removeSchema; -Ajv.prototype.addFormat = addFormat; -Ajv.prototype.errorsText = errorsText; - -Ajv.prototype._addSchema = _addSchema; -Ajv.prototype._compile = _compile; - -Ajv.prototype.compileAsync = require('./compile/async'); -var customKeyword = require('./keyword'); -Ajv.prototype.addKeyword = customKeyword.add; -Ajv.prototype.getKeyword = customKeyword.get; -Ajv.prototype.removeKeyword = customKeyword.remove; -Ajv.prototype.validateKeyword = customKeyword.validate; - -var errorClasses = require('./compile/error_classes'); -Ajv.ValidationError = errorClasses.Validation; -Ajv.MissingRefError = errorClasses.MissingRef; -Ajv.$dataMetaSchema = $dataMetaSchema; - -var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; - -var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; -var META_SUPPORT_DATA = ['/properties']; - -/** - * Creates validator instance. - * Usage: `Ajv(opts)` - * @param {Object} opts optional options - * @return {Object} ajv instance - */ -function Ajv(opts) { - if (!(this instanceof Ajv)) return new Ajv(opts); - opts = this._opts = util.copy(opts) || {}; - setLogger(this); - this._schemas = {}; - this._refs = {}; - this._fragments = {}; - this._formats = formats(opts.format); - - this._cache = opts.cache || new Cache; - this._loadingSchemas = {}; - this._compilations = []; - this.RULES = rules(); - this._getId = chooseGetId(opts); - - opts.loopRequired = opts.loopRequired || Infinity; - if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; - if (opts.serialize === undefined) opts.serialize = stableStringify; - this._metaOpts = getMetaSchemaOptions(this); - - if (opts.formats) addInitialFormats(this); - if (opts.keywords) addInitialKeywords(this); - addDefaultMetaSchema(this); - if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); - if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); - addInitialSchemas(this); -} - - - -/** - * Validate data using schema - * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. - * @this Ajv - * @param {String|Object} schemaKeyRef key, ref or schema object - * @param {Any} data to be validated - * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). - */ -function validate(schemaKeyRef, data) { - var v; - if (typeof schemaKeyRef == 'string') { - v = this.getSchema(schemaKeyRef); - if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); - } else { - var schemaObj = this._addSchema(schemaKeyRef); - v = schemaObj.validate || this._compile(schemaObj); - } - - var valid = v(data); - if (v.$async !== true) this.errors = v.errors; - return valid; -} - - -/** - * Create validating function for passed schema. - * @this Ajv - * @param {Object} schema schema object - * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. - * @return {Function} validating function - */ -function compile(schema, _meta) { - var schemaObj = this._addSchema(schema, undefined, _meta); - return schemaObj.validate || this._compile(schemaObj); -} - - -/** - * Adds schema to the instance. - * @this Ajv - * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. - * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. - * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - * @return {Ajv} this for method chaining - */ -function addSchema(schema, key, _skipValidation, _meta) { - if (Array.isArray(schema)){ - for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. - * @param {Object} options optional options with properties `separator` and `dataVar`. - * @return {String} human readable string with all errors descriptions - */ -function errorsText(errors, options) { - errors = errors || this.errors; - if (!errors) return 'No errors'; - options = options || {}; - var separator = options.separator === undefined ? ', ' : options.separator; - var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; - - var text = ''; - for (var i=0; i%\\^`{|}]|%[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; -// For the source: https://gist.github.com/dperini/729294 -// For test cases: https://mathiasbynens.be/demo/url-regex -// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. -// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!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-z\u{00a1}-\u{ffff}0-9]+-)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; -var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; -var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; -var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; -var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; -var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; - - -module.exports = formats; - -function formats(mode) { - mode = mode == 'full' ? 'full' : 'fast'; - return util.copy(formats[mode]); -} - - -formats.fast = { - // date: http://tools.ietf.org/html/rfc3339#section-5.6 - date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, - // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 - time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, - 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, - // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js - uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, - 'uri-reference': /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, - 'uri-template': URITEMPLATE, - url: URL, - // email (sources from jsen validator): - // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 - // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') - email: /^[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, - hostname: HOSTNAME, - // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, - // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses - ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, - regex: regex, - // uuid: http://tools.ietf.org/html/rfc4122 - uuid: UUID, - // JSON-pointer: https://tools.ietf.org/html/rfc6901 - // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A - 'json-pointer': JSON_POINTER, - 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, - // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 - 'relative-json-pointer': RELATIVE_JSON_POINTER -}; - - -formats.full = { - date: date, - time: time, - 'date-time': date_time, - uri: uri, - 'uri-reference': URIREF, - 'uri-template': URITEMPLATE, - url: URL, - email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, - hostname: HOSTNAME, - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, - ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, - regex: regex, - uuid: UUID, - 'json-pointer': JSON_POINTER, - 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, - 'relative-json-pointer': RELATIVE_JSON_POINTER -}; - - -function isLeapYear(year) { - // https://tools.ietf.org/html/rfc3339#appendix-C - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -} - - -function date(str) { - // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 - var matches = str.match(DATE); - if (!matches) return false; - - var year = +matches[1]; - var month = +matches[2]; - var day = +matches[3]; - - return month >= 1 && month <= 12 && day >= 1 && - day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); -} - - -function time(str, full) { - var matches = str.match(TIME); - if (!matches) return false; - - var hour = matches[1]; - var minute = matches[2]; - var second = matches[3]; - var timeZone = matches[5]; - return ((hour <= 23 && minute <= 59 && second <= 59) || - (hour == 23 && minute == 59 && second == 60)) && - (!full || timeZone); -} - - -var DATE_TIME_SEPARATOR = /t|\s/i; -function date_time(str) { - // http://tools.ietf.org/html/rfc3339#section-5.6 - var dateTime = str.split(DATE_TIME_SEPARATOR); - return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); -} - - -var NOT_URI_FRAGMENT = /\/|:/; -function uri(str) { - // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." - return NOT_URI_FRAGMENT.test(str) && URI.test(str); -} - - -var Z_ANCHOR = /[^\\]\\Z/; -function regex(str) { - if (Z_ANCHOR.test(str)) return false; - try { - new RegExp(str); - return true; - } catch(e) { - return false; - } -} diff --git a/node_modules/ajv/lib/compile/index.js b/node_modules/ajv/lib/compile/index.js deleted file mode 100644 index 97518c42..00000000 --- a/node_modules/ajv/lib/compile/index.js +++ /dev/null @@ -1,387 +0,0 @@ -'use strict'; - -var resolve = require('./resolve') - , util = require('./util') - , errorClasses = require('./error_classes') - , stableStringify = require('fast-json-stable-stringify'); - -var validateGenerator = require('../dotjs/validate'); - -/** - * Functions below are used inside compiled validations function - */ - -var ucs2length = util.ucs2length; -var equal = require('fast-deep-equal'); - -// this error is thrown by async schemas to return validation errors via exception -var ValidationError = errorClasses.Validation; - -module.exports = compile; - - -/** - * Compiles schema to validation function - * @this Ajv - * @param {Object} schema schema object - * @param {Object} root object with information about the root schema for this schema - * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution - * @param {String} baseId base ID for IDs in the schema - * @return {Function} validation function - */ -function compile(schema, root, localRefs, baseId) { - /* jshint validthis: true, evil: true */ - /* eslint no-shadow: 0 */ - var self = this - , opts = this._opts - , refVal = [ undefined ] - , refs = {} - , patterns = [] - , patternsHash = {} - , defaults = [] - , defaultsHash = {} - , customRules = []; - - root = root || { schema: schema, refVal: refVal, refs: refs }; - - var c = checkCompiling.call(this, schema, root, baseId); - var compilation = this._compilations[c.index]; - if (c.compiling) return (compilation.callValidate = callValidate); - - var formats = this._formats; - var RULES = this.RULES; - - try { - var v = localCompile(schema, root, localRefs, baseId); - compilation.validate = v; - var cv = compilation.callValidate; - if (cv) { - cv.schema = v.schema; - cv.errors = null; - cv.refs = v.refs; - cv.refVal = v.refVal; - cv.root = v.root; - cv.$async = v.$async; - if (opts.sourceCode) cv.source = v.source; - } - return v; - } finally { - endCompiling.call(this, schema, root, baseId); - } - - /* @this {*} - custom context, see passContext option */ - function callValidate() { - /* jshint validthis: true */ - var validate = compilation.validate; - var result = validate.apply(this, arguments); - callValidate.errors = validate.errors; - return result; - } - - function localCompile(_schema, _root, localRefs, baseId) { - var isRoot = !_root || (_root && _root.schema == _schema); - if (_root.schema != root.schema) - return compile.call(self, _schema, _root, localRefs, baseId); - - var $async = _schema.$async === true; - - var sourceCode = validateGenerator({ - isTop: true, - schema: _schema, - isRoot: isRoot, - baseId: baseId, - root: _root, - schemaPath: '', - errSchemaPath: '#', - errorPath: '""', - MissingRefError: errorClasses.MissingRef, - RULES: RULES, - validate: validateGenerator, - util: util, - resolve: resolve, - resolveRef: resolveRef, - usePattern: usePattern, - useDefault: useDefault, - useCustomRule: useCustomRule, - opts: opts, - formats: formats, - logger: self.logger, - self: self - }); - - sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) - + vars(defaults, defaultCode) + vars(customRules, customRuleCode) - + sourceCode; - - if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema); - // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); - var validate; - try { - var makeValidate = new Function( - 'self', - 'RULES', - 'formats', - 'root', - 'refVal', - 'defaults', - 'customRules', - 'equal', - 'ucs2length', - 'ValidationError', - sourceCode - ); - - validate = makeValidate( - self, - RULES, - formats, - root, - refVal, - defaults, - customRules, - equal, - ucs2length, - ValidationError - ); - - refVal[0] = validate; - } catch(e) { - self.logger.error('Error compiling schema, function code:', sourceCode); - throw e; - } - - validate.schema = _schema; - validate.errors = null; - validate.refs = refs; - validate.refVal = refVal; - validate.root = isRoot ? validate : _root; - if ($async) validate.$async = true; - if (opts.sourceCode === true) { - validate.source = { - code: sourceCode, - patterns: patterns, - defaults: defaults - }; - } - - return validate; - } - - function resolveRef(baseId, ref, isRoot) { - ref = resolve.url(baseId, ref); - var refIndex = refs[ref]; - var _refVal, refCode; - if (refIndex !== undefined) { - _refVal = refVal[refIndex]; - refCode = 'refVal[' + refIndex + ']'; - return resolvedRef(_refVal, refCode); - } - if (!isRoot && root.refs) { - var rootRefId = root.refs[ref]; - if (rootRefId !== undefined) { - _refVal = root.refVal[rootRefId]; - refCode = addLocalRef(ref, _refVal); - return resolvedRef(_refVal, refCode); - } - } - - refCode = addLocalRef(ref); - var v = resolve.call(self, localCompile, root, ref); - if (v === undefined) { - var localSchema = localRefs && localRefs[ref]; - if (localSchema) { - v = resolve.inlineRef(localSchema, opts.inlineRefs) - ? localSchema - : compile.call(self, localSchema, root, localRefs, baseId); - } - } - - if (v === undefined) { - removeLocalRef(ref); - } else { - replaceLocalRef(ref, v); - return resolvedRef(v, refCode); - } - } - - function addLocalRef(ref, v) { - var refId = refVal.length; - refVal[refId] = v; - refs[ref] = refId; - return 'refVal' + refId; - } - - function removeLocalRef(ref) { - delete refs[ref]; - } - - function replaceLocalRef(ref, v) { - var refId = refs[ref]; - refVal[refId] = v; - } - - function resolvedRef(refVal, code) { - return typeof refVal == 'object' || typeof refVal == 'boolean' - ? { code: code, schema: refVal, inline: true } - : { code: code, $async: refVal && !!refVal.$async }; - } - - function usePattern(regexStr) { - var index = patternsHash[regexStr]; - if (index === undefined) { - index = patternsHash[regexStr] = patterns.length; - patterns[index] = regexStr; - } - return 'pattern' + index; - } - - function useDefault(value) { - switch (typeof value) { - case 'boolean': - case 'number': - return '' + value; - case 'string': - return util.toQuotedString(value); - case 'object': - if (value === null) return 'null'; - var valueStr = stableStringify(value); - var index = defaultsHash[valueStr]; - if (index === undefined) { - index = defaultsHash[valueStr] = defaults.length; - defaults[index] = value; - } - return 'default' + index; - } - } - - function useCustomRule(rule, schema, parentSchema, it) { - if (self._opts.validateSchema !== false) { - var deps = rule.definition.dependencies; - if (deps && !deps.every(function(keyword) { - return Object.prototype.hasOwnProperty.call(parentSchema, keyword); - })) - throw new Error('parent schema must have all required keywords: ' + deps.join(',')); - - var validateSchema = rule.definition.validateSchema; - if (validateSchema) { - var valid = validateSchema(schema); - if (!valid) { - var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); - if (self._opts.validateSchema == 'log') self.logger.error(message); - else throw new Error(message); - } - } - } - - var compile = rule.definition.compile - , inline = rule.definition.inline - , macro = rule.definition.macro; - - var validate; - if (compile) { - validate = compile.call(self, schema, parentSchema, it); - } else if (macro) { - validate = macro.call(self, schema, parentSchema, it); - if (opts.validateSchema !== false) self.validateSchema(validate, true); - } else if (inline) { - validate = inline.call(self, it, rule.keyword, schema, parentSchema); - } else { - validate = rule.definition.validate; - if (!validate) return; - } - - if (validate === undefined) - throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); - - var index = customRules.length; - customRules[index] = validate; - - return { - code: 'customRule' + index, - validate: validate - }; - } -} - - -/** - * Checks if the schema is currently compiled - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) - */ -function checkCompiling(schema, root, baseId) { - /* jshint validthis: true */ - var index = compIndex.call(this, schema, root, baseId); - if (index >= 0) return { index: index, compiling: true }; - index = this._compilations.length; - this._compilations[index] = { - schema: schema, - root: root, - baseId: baseId - }; - return { index: index, compiling: false }; -} - - -/** - * Removes the schema from the currently compiled list - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - */ -function endCompiling(schema, root, baseId) { - /* jshint validthis: true */ - var i = compIndex.call(this, schema, root, baseId); - if (i >= 0) this._compilations.splice(i, 1); -} - - -/** - * Index of schema compilation in the currently compiled list - * @this Ajv - * @param {Object} schema schema to compile - * @param {Object} root root object - * @param {String} baseId base schema ID - * @return {Integer} compilation index - */ -function compIndex(schema, root, baseId) { - /* jshint validthis: true */ - for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos); - if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate - } - } - return length; -}; diff --git a/node_modules/ajv/lib/compile/util.js b/node_modules/ajv/lib/compile/util.js deleted file mode 100644 index ef07b8c7..00000000 --- a/node_modules/ajv/lib/compile/util.js +++ /dev/null @@ -1,239 +0,0 @@ -'use strict'; - - -module.exports = { - copy: copy, - checkDataType: checkDataType, - checkDataTypes: checkDataTypes, - coerceToTypes: coerceToTypes, - toHash: toHash, - getProperty: getProperty, - escapeQuotes: escapeQuotes, - equal: require('fast-deep-equal'), - ucs2length: require('./ucs2length'), - varOccurences: varOccurences, - varReplace: varReplace, - schemaHasRules: schemaHasRules, - schemaHasRulesExcept: schemaHasRulesExcept, - schemaUnknownRules: schemaUnknownRules, - toQuotedString: toQuotedString, - getPathExpr: getPathExpr, - getPath: getPath, - getData: getData, - unescapeFragment: unescapeFragment, - unescapeJsonPointer: unescapeJsonPointer, - escapeFragment: escapeFragment, - escapeJsonPointer: escapeJsonPointer -}; - - -function copy(o, to) { - to = to || {}; - for (var key in o) to[key] = o[key]; - return to; -} - - -function checkDataType(dataType, data, strictNumbers, negate) { - var EQUAL = negate ? ' !== ' : ' === ' - , AND = negate ? ' || ' : ' && ' - , OK = negate ? '!' : '' - , NOT = negate ? '' : '!'; - switch (dataType) { - case 'null': return data + EQUAL + 'null'; - case 'array': return OK + 'Array.isArray(' + data + ')'; - case 'object': return '(' + OK + data + AND + - 'typeof ' + data + EQUAL + '"object"' + AND + - NOT + 'Array.isArray(' + data + '))'; - case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + - NOT + '(' + data + ' % 1)' + - AND + data + EQUAL + data + - (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')'; - case 'number': return '(typeof ' + data + EQUAL + '"' + dataType + '"' + - (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')'; - default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; - } -} - - -function checkDataTypes(dataTypes, data, strictNumbers) { - switch (dataTypes.length) { - case 1: return checkDataType(dataTypes[0], data, strictNumbers, true); - default: - var code = ''; - var types = toHash(dataTypes); - if (types.array && types.object) { - code = types.null ? '(': '(!' + data + ' || '; - code += 'typeof ' + data + ' !== "object")'; - delete types.null; - delete types.array; - delete types.object; - } - if (types.number) delete types.integer; - for (var t in types) - code += (code ? ' && ' : '' ) + checkDataType(t, data, strictNumbers, true); - - return code; - } -} - - -var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); -function coerceToTypes(optionCoerceTypes, dataTypes) { - if (Array.isArray(dataTypes)) { - var types = []; - for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); - return paths[lvl - up]; - } - - if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); - data = 'data' + ((lvl - up) || ''); - if (!jsonPointer) return data; - } - - var expr = data; - var segments = jsonPointer.split('/'); - for (var i=0; i' - , $notOp = $isMax ? '>' : '<' - , $errorKeyword = undefined; - - if (!($isData || typeof $schema == 'number' || $schema === undefined)) { - throw new Error($keyword + ' must be number'); - } - if (!($isDataExcl || $schemaExcl === undefined - || typeof $schemaExcl == 'number' - || typeof $schemaExcl == 'boolean')) { - throw new Error($exclusiveKeyword + ' must be number or boolean'); - } -}} - -{{? $isDataExcl }} - {{ - var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr) - , $exclusive = 'exclusive' + $lvl - , $exclType = 'exclType' + $lvl - , $exclIsNumber = 'exclIsNumber' + $lvl - , $opExpr = 'op' + $lvl - , $opStr = '\' + ' + $opExpr + ' + \''; - }} - var schemaExcl{{=$lvl}} = {{=$schemaValueExcl}}; - {{ $schemaValueExcl = 'schemaExcl' + $lvl; }} - - var {{=$exclusive}}; - var {{=$exclType}} = typeof {{=$schemaValueExcl}}; - if ({{=$exclType}} != 'boolean' && {{=$exclType}} != 'undefined' && {{=$exclType}} != 'number') { - {{ var $errorKeyword = $exclusiveKeyword; }} - {{# def.error:'_exclusiveLimit' }} - } else if ({{# def.$dataNotType:'number' }} - {{=$exclType}} == 'number' - ? ( - ({{=$exclusive}} = {{=$schemaValue}} === undefined || {{=$schemaValueExcl}} {{=$op}}= {{=$schemaValue}}) - ? {{=$data}} {{=$notOp}}= {{=$schemaValueExcl}} - : {{=$data}} {{=$notOp}} {{=$schemaValue}} - ) - : ( - ({{=$exclusive}} = {{=$schemaValueExcl}} === true) - ? {{=$data}} {{=$notOp}}= {{=$schemaValue}} - : {{=$data}} {{=$notOp}} {{=$schemaValue}} - ) - || {{=$data}} !== {{=$data}}) { - var op{{=$lvl}} = {{=$exclusive}} ? '{{=$op}}' : '{{=$op}}='; - {{ - if ($schema === undefined) { - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $schemaValue = $schemaValueExcl; - $isData = $isDataExcl; - } - }} -{{??}} - {{ - var $exclIsNumber = typeof $schemaExcl == 'number' - , $opStr = $op; /*used in error*/ - }} - - {{? $exclIsNumber && $isData }} - {{ var $opExpr = '\'' + $opStr + '\''; /*used in error*/ }} - if ({{# def.$dataNotType:'number' }} - ( {{=$schemaValue}} === undefined - || {{=$schemaExcl}} {{=$op}}= {{=$schemaValue}} - ? {{=$data}} {{=$notOp}}= {{=$schemaExcl}} - : {{=$data}} {{=$notOp}} {{=$schemaValue}} ) - || {{=$data}} !== {{=$data}}) { - {{??}} - {{ - if ($exclIsNumber && $schema === undefined) { - {{# def.setExclusiveLimit }} - $schemaValue = $schemaExcl; - $notOp += '='; - } else { - if ($exclIsNumber) - $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); - - if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { - {{# def.setExclusiveLimit }} - $notOp += '='; - } else { - $exclusive = false; - $opStr += '='; - } - } - - var $opExpr = '\'' + $opStr + '\''; /*used in error*/ - }} - - if ({{# def.$dataNotType:'number' }} - {{=$data}} {{=$notOp}} {{=$schemaValue}} - || {{=$data}} !== {{=$data}}) { - {{?}} -{{?}} - {{ $errorKeyword = $errorKeyword || $keyword; }} - {{# def.error:'_limit' }} - } {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitItems.jst b/node_modules/ajv/lib/dot/_limitItems.jst deleted file mode 100644 index 741329e7..00000000 --- a/node_modules/ajv/lib/dot/_limitItems.jst +++ /dev/null @@ -1,12 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{# def.numberKeyword }} - -{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }} -if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) { - {{ var $errorKeyword = $keyword; }} - {{# def.error:'_limitItems' }} -} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitLength.jst b/node_modules/ajv/lib/dot/_limitLength.jst deleted file mode 100644 index 285c66bd..00000000 --- a/node_modules/ajv/lib/dot/_limitLength.jst +++ /dev/null @@ -1,12 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{# def.numberKeyword }} - -{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }} -if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) { - {{ var $errorKeyword = $keyword; }} - {{# def.error:'_limitLength' }} -} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitProperties.jst b/node_modules/ajv/lib/dot/_limitProperties.jst deleted file mode 100644 index c4c21551..00000000 --- a/node_modules/ajv/lib/dot/_limitProperties.jst +++ /dev/null @@ -1,12 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{# def.numberKeyword }} - -{{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }} -if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) { - {{ var $errorKeyword = $keyword; }} - {{# def.error:'_limitProperties' }} -} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/allOf.jst b/node_modules/ajv/lib/dot/allOf.jst deleted file mode 100644 index 0e782fe9..00000000 --- a/node_modules/ajv/lib/dot/allOf.jst +++ /dev/null @@ -1,32 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - -{{ - var $currentBaseId = $it.baseId - , $allSchemasEmpty = true; -}} - -{{~ $schema:$sch:$i }} - {{? {{# def.nonEmptySchema:$sch }} }} - {{ - $allSchemasEmpty = false; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - }} - - {{# def.insertSubschemaCode }} - - {{# def.ifResultValid }} - {{?}} -{{~}} - -{{? $breakOnError }} - {{? $allSchemasEmpty }} - if (true) { - {{??}} - {{= $closingBraces.slice(0,-1) }} - {{?}} -{{?}} diff --git a/node_modules/ajv/lib/dot/anyOf.jst b/node_modules/ajv/lib/dot/anyOf.jst deleted file mode 100644 index ea909ee6..00000000 --- a/node_modules/ajv/lib/dot/anyOf.jst +++ /dev/null @@ -1,46 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - -{{ - var $noEmptySchema = $schema.every(function($sch) { - return {{# def.nonEmptySchema:$sch }}; - }); -}} -{{? $noEmptySchema }} - {{ var $currentBaseId = $it.baseId; }} - var {{=$errs}} = errors; - var {{=$valid}} = false; - - {{# def.setCompositeRule }} - - {{~ $schema:$sch:$i }} - {{ - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - }} - - {{# def.insertSubschemaCode }} - - {{=$valid}} = {{=$valid}} || {{=$nextValid}}; - - if (!{{=$valid}}) { - {{ $closingBraces += '}'; }} - {{~}} - - {{# def.resetCompositeRule }} - - {{= $closingBraces }} - - if (!{{=$valid}}) { - {{# def.extraError:'anyOf' }} - } else { - {{# def.resetErrors }} - {{? it.opts.allErrors }} } {{?}} -{{??}} - {{? $breakOnError }} - if (true) { - {{?}} -{{?}} diff --git a/node_modules/ajv/lib/dot/coerce.def b/node_modules/ajv/lib/dot/coerce.def deleted file mode 100644 index c947ed6a..00000000 --- a/node_modules/ajv/lib/dot/coerce.def +++ /dev/null @@ -1,51 +0,0 @@ -{{## def.coerceType: - {{ - var $dataType = 'dataType' + $lvl - , $coerced = 'coerced' + $lvl; - }} - var {{=$dataType}} = typeof {{=$data}}; - var {{=$coerced}} = undefined; - - {{? it.opts.coerceTypes == 'array' }} - if ({{=$dataType}} == 'object' && Array.isArray({{=$data}}) && {{=$data}}.length == 1) { - {{=$data}} = {{=$data}}[0]; - {{=$dataType}} = typeof {{=$data}}; - if ({{=it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)}}) {{=$coerced}} = {{=$data}}; - } - {{?}} - - if ({{=$coerced}} !== undefined) ; - {{~ $coerceToTypes:$type:$i }} - {{? $type == 'string' }} - else if ({{=$dataType}} == 'number' || {{=$dataType}} == 'boolean') - {{=$coerced}} = '' + {{=$data}}; - else if ({{=$data}} === null) {{=$coerced}} = ''; - {{?? $type == 'number' || $type == 'integer' }} - else if ({{=$dataType}} == 'boolean' || {{=$data}} === null - || ({{=$dataType}} == 'string' && {{=$data}} && {{=$data}} == +{{=$data}} - {{? $type == 'integer' }} && !({{=$data}} % 1){{?}})) - {{=$coerced}} = +{{=$data}}; - {{?? $type == 'boolean' }} - else if ({{=$data}} === 'false' || {{=$data}} === 0 || {{=$data}} === null) - {{=$coerced}} = false; - else if ({{=$data}} === 'true' || {{=$data}} === 1) - {{=$coerced}} = true; - {{?? $type == 'null' }} - else if ({{=$data}} === '' || {{=$data}} === 0 || {{=$data}} === false) - {{=$coerced}} = null; - {{?? it.opts.coerceTypes == 'array' && $type == 'array' }} - else if ({{=$dataType}} == 'string' || {{=$dataType}} == 'number' || {{=$dataType}} == 'boolean' || {{=$data}} == null) - {{=$coerced}} = [{{=$data}}]; - {{?}} - {{~}} - else { - {{# def.error:'type' }} - } - - if ({{=$coerced}} !== undefined) { - {{# def.setParentData }} - {{=$data}} = {{=$coerced}}; - {{? !$dataLvl }}if ({{=$parentData}} !== undefined){{?}} - {{=$parentData}}[{{=$parentDataProperty}}] = {{=$coerced}}; - } -#}} diff --git a/node_modules/ajv/lib/dot/comment.jst b/node_modules/ajv/lib/dot/comment.jst deleted file mode 100644 index f9591503..00000000 --- a/node_modules/ajv/lib/dot/comment.jst +++ /dev/null @@ -1,9 +0,0 @@ -{{# def.definitions }} -{{# def.setupKeyword }} - -{{ var $comment = it.util.toQuotedString($schema); }} -{{? it.opts.$comment === true }} - console.log({{=$comment}}); -{{?? typeof it.opts.$comment == 'function' }} - self._opts.$comment({{=$comment}}, {{=it.util.toQuotedString($errSchemaPath)}}, validate.root.schema); -{{?}} diff --git a/node_modules/ajv/lib/dot/const.jst b/node_modules/ajv/lib/dot/const.jst deleted file mode 100644 index 2aa22980..00000000 --- a/node_modules/ajv/lib/dot/const.jst +++ /dev/null @@ -1,11 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{? !$isData }} - var schema{{=$lvl}} = validate.schema{{=$schemaPath}}; -{{?}} -var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}}); -{{# def.checkError:'const' }} -{{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/contains.jst b/node_modules/ajv/lib/dot/contains.jst deleted file mode 100644 index 4dc99674..00000000 --- a/node_modules/ajv/lib/dot/contains.jst +++ /dev/null @@ -1,55 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{ - var $idx = 'i' + $lvl - , $dataNxt = $it.dataLevel = it.dataLevel + 1 - , $nextData = 'data' + $dataNxt - , $currentBaseId = it.baseId - , $nonEmptySchema = {{# def.nonEmptySchema:$schema }}; -}} - -var {{=$errs}} = errors; -var {{=$valid}}; - -{{? $nonEmptySchema }} - {{# def.setCompositeRule }} - - {{ - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - }} - - var {{=$nextValid}} = false; - - for (var {{=$idx}} = 0; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { - {{ - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - }} - - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} - - if ({{=$nextValid}}) break; - } - - {{# def.resetCompositeRule }} - {{= $closingBraces }} - - if (!{{=$nextValid}}) { -{{??}} - if ({{=$data}}.length == 0) { -{{?}} - - {{# def.error:'contains' }} - } else { - {{? $nonEmptySchema }} - {{# def.resetErrors }} - {{?}} - {{? it.opts.allErrors }} } {{?}} diff --git a/node_modules/ajv/lib/dot/custom.jst b/node_modules/ajv/lib/dot/custom.jst deleted file mode 100644 index d30588fb..00000000 --- a/node_modules/ajv/lib/dot/custom.jst +++ /dev/null @@ -1,191 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{ - var $rule = this - , $definition = 'definition' + $lvl - , $rDef = $rule.definition - , $closingBraces = ''; - var $validate = $rDef.validate; - var $compile, $inline, $macro, $ruleValidate, $validateCode; -}} - -{{? $isData && $rDef.$data }} - {{ - $validateCode = 'keywordValidate' + $lvl; - var $validateSchema = $rDef.validateSchema; - }} - var {{=$definition}} = RULES.custom['{{=$keyword}}'].definition; - var {{=$validateCode}} = {{=$definition}}.validate; -{{??}} - {{ - $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); - if (!$ruleValidate) return; - $schemaValue = 'validate.schema' + $schemaPath; - $validateCode = $ruleValidate.code; - $compile = $rDef.compile; - $inline = $rDef.inline; - $macro = $rDef.macro; - }} -{{?}} - -{{ - var $ruleErrs = $validateCode + '.errors' - , $i = 'i' + $lvl - , $ruleErr = 'ruleErr' + $lvl - , $asyncKeyword = $rDef.async; - - if ($asyncKeyword && !it.async) - throw new Error('async keyword in sync schema'); -}} - - -{{? !($inline || $macro) }}{{=$ruleErrs}} = null;{{?}} -var {{=$errs}} = errors; -var {{=$valid}}; - -{{## def.callRuleValidate: - {{=$validateCode}}.call( - {{? it.opts.passContext }}this{{??}}self{{?}} - {{? $compile || $rDef.schema === false }} - , {{=$data}} - {{??}} - , {{=$schemaValue}} - , {{=$data}} - , validate.schema{{=it.schemaPath}} - {{?}} - , {{# def.dataPath }} - {{# def.passParentData }} - , rootData - ) -#}} - -{{## def.extendErrors:_inline: - for (var {{=$i}}={{=$errs}}; {{=$i}} 0) - || _schema === false - : it.util.schemaHasRules(_schema, it.RULES.all)) -#}} - - -{{## def.strLength: - {{? it.opts.unicode === false }} - {{=$data}}.length - {{??}} - ucs2length({{=$data}}) - {{?}} -#}} - - -{{## def.willOptimize: - it.util.varOccurences($code, $nextData) < 2 -#}} - - -{{## def.generateSubschemaCode: - {{ - var $code = it.validate($it); - $it.baseId = $currentBaseId; - }} -#}} - - -{{## def.insertSubschemaCode: - {{= it.validate($it) }} - {{ $it.baseId = $currentBaseId; }} -#}} - - -{{## def._optimizeValidate: - it.util.varReplace($code, $nextData, $passData) -#}} - - -{{## def.optimizeValidate: - {{? {{# def.willOptimize}} }} - {{= {{# def._optimizeValidate }} }} - {{??}} - var {{=$nextData}} = {{=$passData}}; - {{= $code }} - {{?}} -#}} - - -{{## def.$data: - {{ - var $isData = it.opts.$data && $schema && $schema.$data - , $schemaValue; - }} - {{? $isData }} - var schema{{=$lvl}} = {{= it.util.getData($schema.$data, $dataLvl, it.dataPathArr) }}; - {{ $schemaValue = 'schema' + $lvl; }} - {{??}} - {{ $schemaValue = $schema; }} - {{?}} -#}} - - -{{## def.$dataNotType:_type: - {{?$isData}} ({{=$schemaValue}} !== undefined && typeof {{=$schemaValue}} != _type) || {{?}} -#}} - - -{{## def.check$dataIsArray: - if (schema{{=$lvl}} === undefined) {{=$valid}} = true; - else if (!Array.isArray(schema{{=$lvl}})) {{=$valid}} = false; - else { -#}} - - -{{## def.numberKeyword: - {{? !($isData || typeof $schema == 'number') }} - {{ throw new Error($keyword + ' must be number'); }} - {{?}} -#}} - - -{{## def.beginDefOut: - {{ - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; - }} -#}} - - -{{## def.storeDefOut:_variable: - {{ - var _variable = out; - out = $$outStack.pop(); - }} -#}} - - -{{## def.dataPath:(dataPath || ''){{? it.errorPath != '""'}} + {{= it.errorPath }}{{?}}#}} - -{{## def.setParentData: - {{ - var $parentData = $dataLvl ? 'data' + (($dataLvl-1)||'') : 'parentData' - , $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; - }} -#}} - -{{## def.passParentData: - {{# def.setParentData }} - , {{= $parentData }} - , {{= $parentDataProperty }} -#}} - - -{{## def.iterateProperties: - {{? $ownProperties }} - {{=$dataProperties}} = {{=$dataProperties}} || Object.keys({{=$data}}); - for (var {{=$idx}}=0; {{=$idx}}<{{=$dataProperties}}.length; {{=$idx}}++) { - var {{=$key}} = {{=$dataProperties}}[{{=$idx}}]; - {{??}} - for (var {{=$key}} in {{=$data}}) { - {{?}} -#}} - - -{{## def.noPropertyInData: - {{=$useData}} === undefined - {{? $ownProperties }} - || !{{# def.isOwnProperty }} - {{?}} -#}} - - -{{## def.isOwnProperty: - Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($propertyKey)}}') -#}} diff --git a/node_modules/ajv/lib/dot/dependencies.jst b/node_modules/ajv/lib/dot/dependencies.jst deleted file mode 100644 index e4bdddec..00000000 --- a/node_modules/ajv/lib/dot/dependencies.jst +++ /dev/null @@ -1,79 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.missing }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{## def.propertyInData: - {{=$data}}{{= it.util.getProperty($property) }} !== undefined - {{? $ownProperties }} - && Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($property)}}') - {{?}} -#}} - - -{{ - var $schemaDeps = {} - , $propertyDeps = {} - , $ownProperties = it.opts.ownProperties; - - for ($property in $schema) { - if ($property == '__proto__') continue; - var $sch = $schema[$property]; - var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps; - $deps[$property] = $sch; - } -}} - -var {{=$errs}} = errors; - -{{ var $currentErrorPath = it.errorPath; }} - -var missing{{=$lvl}}; -{{ for (var $property in $propertyDeps) { }} - {{ $deps = $propertyDeps[$property]; }} - {{? $deps.length }} - if ({{# def.propertyInData }} - {{? $breakOnError }} - && ({{# def.checkMissingProperty:$deps }})) { - {{# def.errorMissingProperty:'dependencies' }} - {{??}} - ) { - {{~ $deps:$propertyKey }} - {{# def.allErrorsMissingProperty:'dependencies' }} - {{~}} - {{?}} - } {{# def.elseIfValid }} - {{?}} -{{ } }} - -{{ - it.errorPath = $currentErrorPath; - var $currentBaseId = $it.baseId; -}} - - -{{ for (var $property in $schemaDeps) { }} - {{ var $sch = $schemaDeps[$property]; }} - {{? {{# def.nonEmptySchema:$sch }} }} - {{=$nextValid}} = true; - - if ({{# def.propertyInData }}) { - {{ - $it.schema = $sch; - $it.schemaPath = $schemaPath + it.util.getProperty($property); - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); - }} - - {{# def.insertSubschemaCode }} - } - - {{# def.ifResultValid }} - {{?}} -{{ } }} - -{{? $breakOnError }} - {{= $closingBraces }} - if ({{=$errs}} == errors) { -{{?}} diff --git a/node_modules/ajv/lib/dot/enum.jst b/node_modules/ajv/lib/dot/enum.jst deleted file mode 100644 index 357c2e8c..00000000 --- a/node_modules/ajv/lib/dot/enum.jst +++ /dev/null @@ -1,30 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{ - var $i = 'i' + $lvl - , $vSchema = 'schema' + $lvl; -}} - -{{? !$isData }} - var {{=$vSchema}} = validate.schema{{=$schemaPath}}; -{{?}} -var {{=$valid}}; - -{{?$isData}}{{# def.check$dataIsArray }}{{?}} - -{{=$valid}} = false; - -for (var {{=$i}}=0; {{=$i}}<{{=$vSchema}}.length; {{=$i}}++) - if (equal({{=$data}}, {{=$vSchema}}[{{=$i}}])) { - {{=$valid}} = true; - break; - } - -{{? $isData }} } {{?}} - -{{# def.checkError:'enum' }} - -{{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/errors.def b/node_modules/ajv/lib/dot/errors.def deleted file mode 100644 index 5c5752cb..00000000 --- a/node_modules/ajv/lib/dot/errors.def +++ /dev/null @@ -1,194 +0,0 @@ -{{# def.definitions }} - -{{## def._error:_rule: - {{ 'istanbul ignore else'; }} - {{? it.createErrors !== false }} - { - keyword: '{{= $errorKeyword || _rule }}' - , dataPath: (dataPath || '') + {{= it.errorPath }} - , schemaPath: {{=it.util.toQuotedString($errSchemaPath)}} - , params: {{# def._errorParams[_rule] }} - {{? it.opts.messages !== false }} - , message: {{# def._errorMessages[_rule] }} - {{?}} - {{? it.opts.verbose }} - , schema: {{# def._errorSchemas[_rule] }} - , parentSchema: validate.schema{{=it.schemaPath}} - , data: {{=$data}} - {{?}} - } - {{??}} - {} - {{?}} -#}} - - -{{## def._addError:_rule: - if (vErrors === null) vErrors = [err]; - else vErrors.push(err); - errors++; -#}} - - -{{## def.addError:_rule: - var err = {{# def._error:_rule }}; - {{# def._addError:_rule }} -#}} - - -{{## def.error:_rule: - {{# def.beginDefOut}} - {{# def._error:_rule }} - {{# def.storeDefOut:__err }} - - {{? !it.compositeRule && $breakOnError }} - {{ 'istanbul ignore if'; }} - {{? it.async }} - throw new ValidationError([{{=__err}}]); - {{??}} - validate.errors = [{{=__err}}]; - return false; - {{?}} - {{??}} - var err = {{=__err}}; - {{# def._addError:_rule }} - {{?}} -#}} - - -{{## def.extraError:_rule: - {{# def.addError:_rule}} - {{? !it.compositeRule && $breakOnError }} - {{ 'istanbul ignore if'; }} - {{? it.async }} - throw new ValidationError(vErrors); - {{??}} - validate.errors = vErrors; - return false; - {{?}} - {{?}} -#}} - - -{{## def.checkError:_rule: - if (!{{=$valid}}) { - {{# def.error:_rule }} - } -#}} - - -{{## def.resetErrors: - errors = {{=$errs}}; - if (vErrors !== null) { - if ({{=$errs}}) vErrors.length = {{=$errs}}; - else vErrors = null; - } -#}} - - -{{## def.concatSchema:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=$schema}}{{?}}#}} -{{## def.appendSchema:{{?$isData}}' + {{=$schemaValue}}{{??}}{{=$schemaValue}}'{{?}}#}} -{{## def.concatSchemaEQ:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=it.util.escapeQuotes($schema)}}{{?}}#}} - -{{## def._errorMessages = { - 'false schema': "'boolean schema is false'", - $ref: "'can\\\'t resolve reference {{=it.util.escapeQuotes($schema)}}'", - additionalItems: "'should NOT have more than {{=$schema.length}} items'", - additionalProperties: "'{{? it.opts._errorDataPathProperty }}is an invalid additional property{{??}}should NOT have additional properties{{?}}'", - anyOf: "'should match some schema in anyOf'", - const: "'should be equal to constant'", - contains: "'should contain a valid item'", - dependencies: "'should have {{? $deps.length == 1 }}property {{= it.util.escapeQuotes($deps[0]) }}{{??}}properties {{= it.util.escapeQuotes($deps.join(\", \")) }}{{?}} when property {{= it.util.escapeQuotes($property) }} is present'", - 'enum': "'should be equal to one of the allowed values'", - format: "'should match format \"{{#def.concatSchemaEQ}}\"'", - 'if': "'should match \"' + {{=$ifClause}} + '\" schema'", - _limit: "'should be {{=$opStr}} {{#def.appendSchema}}", - _exclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'", - _limitItems: "'should NOT have {{?$keyword=='maxItems'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} items'", - _limitLength: "'should NOT be {{?$keyword=='maxLength'}}longer{{??}}shorter{{?}} than {{#def.concatSchema}} characters'", - _limitProperties:"'should NOT have {{?$keyword=='maxProperties'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} properties'", - multipleOf: "'should be multiple of {{#def.appendSchema}}", - not: "'should NOT be valid'", - oneOf: "'should match exactly one schema in oneOf'", - pattern: "'should match pattern \"{{#def.concatSchemaEQ}}\"'", - propertyNames: "'property name \\'{{=$invalidName}}\\' is invalid'", - required: "'{{? it.opts._errorDataPathProperty }}is a required property{{??}}should have required property \\'{{=$missingProperty}}\\'{{?}}'", - type: "'should be {{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}'", - uniqueItems: "'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)'", - custom: "'should pass \"{{=$rule.keyword}}\" keyword validation'", - patternRequired: "'should have property matching pattern \\'{{=$missingPattern}}\\''", - switch: "'should pass \"switch\" keyword validation'", - _formatLimit: "'should be {{=$opStr}} \"{{#def.concatSchemaEQ}}\"'", - _formatExclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'" -} #}} - - -{{## def.schemaRefOrVal: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=$schema}}{{?}} #}} -{{## def.schemaRefOrQS: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}} - -{{## def._errorSchemas = { - 'false schema': "false", - $ref: "{{=it.util.toQuotedString($schema)}}", - additionalItems: "false", - additionalProperties: "false", - anyOf: "validate.schema{{=$schemaPath}}", - const: "validate.schema{{=$schemaPath}}", - contains: "validate.schema{{=$schemaPath}}", - dependencies: "validate.schema{{=$schemaPath}}", - 'enum': "validate.schema{{=$schemaPath}}", - format: "{{#def.schemaRefOrQS}}", - 'if': "validate.schema{{=$schemaPath}}", - _limit: "{{#def.schemaRefOrVal}}", - _exclusiveLimit: "validate.schema{{=$schemaPath}}", - _limitItems: "{{#def.schemaRefOrVal}}", - _limitLength: "{{#def.schemaRefOrVal}}", - _limitProperties:"{{#def.schemaRefOrVal}}", - multipleOf: "{{#def.schemaRefOrVal}}", - not: "validate.schema{{=$schemaPath}}", - oneOf: "validate.schema{{=$schemaPath}}", - pattern: "{{#def.schemaRefOrQS}}", - propertyNames: "validate.schema{{=$schemaPath}}", - required: "validate.schema{{=$schemaPath}}", - type: "validate.schema{{=$schemaPath}}", - uniqueItems: "{{#def.schemaRefOrVal}}", - custom: "validate.schema{{=$schemaPath}}", - patternRequired: "validate.schema{{=$schemaPath}}", - switch: "validate.schema{{=$schemaPath}}", - _formatLimit: "{{#def.schemaRefOrQS}}", - _formatExclusiveLimit: "validate.schema{{=$schemaPath}}" -} #}} - - -{{## def.schemaValueQS: {{?$isData}}{{=$schemaValue}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}} - -{{## def._errorParams = { - 'false schema': "{}", - $ref: "{ ref: '{{=it.util.escapeQuotes($schema)}}' }", - additionalItems: "{ limit: {{=$schema.length}} }", - additionalProperties: "{ additionalProperty: '{{=$additionalProperty}}' }", - anyOf: "{}", - const: "{ allowedValue: schema{{=$lvl}} }", - contains: "{}", - dependencies: "{ property: '{{= it.util.escapeQuotes($property) }}', missingProperty: '{{=$missingProperty}}', depsCount: {{=$deps.length}}, deps: '{{= it.util.escapeQuotes($deps.length==1 ? $deps[0] : $deps.join(\", \")) }}' }", - 'enum': "{ allowedValues: schema{{=$lvl}} }", - format: "{ format: {{#def.schemaValueQS}} }", - 'if': "{ failingKeyword: {{=$ifClause}} }", - _limit: "{ comparison: {{=$opExpr}}, limit: {{=$schemaValue}}, exclusive: {{=$exclusive}} }", - _exclusiveLimit: "{}", - _limitItems: "{ limit: {{=$schemaValue}} }", - _limitLength: "{ limit: {{=$schemaValue}} }", - _limitProperties:"{ limit: {{=$schemaValue}} }", - multipleOf: "{ multipleOf: {{=$schemaValue}} }", - not: "{}", - oneOf: "{ passingSchemas: {{=$passingSchemas}} }", - pattern: "{ pattern: {{#def.schemaValueQS}} }", - propertyNames: "{ propertyName: '{{=$invalidName}}' }", - required: "{ missingProperty: '{{=$missingProperty}}' }", - type: "{ type: '{{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}' }", - uniqueItems: "{ i: i, j: j }", - custom: "{ keyword: '{{=$rule.keyword}}' }", - patternRequired: "{ missingPattern: '{{=$missingPattern}}' }", - switch: "{ caseIndex: {{=$caseIndex}} }", - _formatLimit: "{ comparison: {{=$opExpr}}, limit: {{#def.schemaValueQS}}, exclusive: {{=$exclusive}} }", - _formatExclusiveLimit: "{}" -} #}} diff --git a/node_modules/ajv/lib/dot/format.jst b/node_modules/ajv/lib/dot/format.jst deleted file mode 100644 index 37f14da8..00000000 --- a/node_modules/ajv/lib/dot/format.jst +++ /dev/null @@ -1,106 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} - -{{## def.skipFormat: - {{? $breakOnError }} if (true) { {{?}} - {{ return out; }} -#}} - -{{? it.opts.format === false }}{{# def.skipFormat }}{{?}} - - -{{# def.$data }} - - -{{## def.$dataCheckFormat: - {{# def.$dataNotType:'string' }} - ({{? $unknownFormats != 'ignore' }} - ({{=$schemaValue}} && !{{=$format}} - {{? $allowUnknown }} - && self._opts.unknownFormats.indexOf({{=$schemaValue}}) == -1 - {{?}}) || - {{?}} - ({{=$format}} && {{=$formatType}} == '{{=$ruleType}}' - && !(typeof {{=$format}} == 'function' - ? {{? it.async}} - (async{{=$lvl}} ? await {{=$format}}({{=$data}}) : {{=$format}}({{=$data}})) - {{??}} - {{=$format}}({{=$data}}) - {{?}} - : {{=$format}}.test({{=$data}})))) -#}} - -{{## def.checkFormat: - {{ - var $formatRef = 'formats' + it.util.getProperty($schema); - if ($isObject) $formatRef += '.validate'; - }} - {{? typeof $format == 'function' }} - {{=$formatRef}}({{=$data}}) - {{??}} - {{=$formatRef}}.test({{=$data}}) - {{?}} -#}} - - -{{ - var $unknownFormats = it.opts.unknownFormats - , $allowUnknown = Array.isArray($unknownFormats); -}} - -{{? $isData }} - {{ - var $format = 'format' + $lvl - , $isObject = 'isObject' + $lvl - , $formatType = 'formatType' + $lvl; - }} - var {{=$format}} = formats[{{=$schemaValue}}]; - var {{=$isObject}} = typeof {{=$format}} == 'object' - && !({{=$format}} instanceof RegExp) - && {{=$format}}.validate; - var {{=$formatType}} = {{=$isObject}} && {{=$format}}.type || 'string'; - if ({{=$isObject}}) { - {{? it.async}} - var async{{=$lvl}} = {{=$format}}.async; - {{?}} - {{=$format}} = {{=$format}}.validate; - } - if ({{# def.$dataCheckFormat }}) { -{{??}} - {{ var $format = it.formats[$schema]; }} - {{? !$format }} - {{? $unknownFormats == 'ignore' }} - {{ it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); }} - {{# def.skipFormat }} - {{?? $allowUnknown && $unknownFormats.indexOf($schema) >= 0 }} - {{# def.skipFormat }} - {{??}} - {{ throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); }} - {{?}} - {{?}} - {{ - var $isObject = typeof $format == 'object' - && !($format instanceof RegExp) - && $format.validate; - var $formatType = $isObject && $format.type || 'string'; - if ($isObject) { - var $async = $format.async === true; - $format = $format.validate; - } - }} - {{? $formatType != $ruleType }} - {{# def.skipFormat }} - {{?}} - {{? $async }} - {{ - if (!it.async) throw new Error('async format in sync schema'); - var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; - }} - if (!(await {{=$formatRef}}({{=$data}}))) { - {{??}} - if (!{{# def.checkFormat }}) { - {{?}} -{{?}} - {{# def.error:'format' }} - } {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/if.jst b/node_modules/ajv/lib/dot/if.jst deleted file mode 100644 index adb50361..00000000 --- a/node_modules/ajv/lib/dot/if.jst +++ /dev/null @@ -1,73 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{## def.validateIfClause:_clause: - {{ - $it.schema = it.schema['_clause']; - $it.schemaPath = it.schemaPath + '._clause'; - $it.errSchemaPath = it.errSchemaPath + '/_clause'; - }} - {{# def.insertSubschemaCode }} - {{=$valid}} = {{=$nextValid}}; - {{? $thenPresent && $elsePresent }} - {{ $ifClause = 'ifClause' + $lvl; }} - var {{=$ifClause}} = '_clause'; - {{??}} - {{ $ifClause = '\'_clause\''; }} - {{?}} -#}} - -{{ - var $thenSch = it.schema['then'] - , $elseSch = it.schema['else'] - , $thenPresent = $thenSch !== undefined && {{# def.nonEmptySchema:$thenSch }} - , $elsePresent = $elseSch !== undefined && {{# def.nonEmptySchema:$elseSch }} - , $currentBaseId = $it.baseId; -}} - -{{? $thenPresent || $elsePresent }} - {{ - var $ifClause; - $it.createErrors = false; - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - }} - var {{=$errs}} = errors; - var {{=$valid}} = true; - - {{# def.setCompositeRule }} - {{# def.insertSubschemaCode }} - {{ $it.createErrors = true; }} - {{# def.resetErrors }} - {{# def.resetCompositeRule }} - - {{? $thenPresent }} - if ({{=$nextValid}}) { - {{# def.validateIfClause:then }} - } - {{? $elsePresent }} - else { - {{?}} - {{??}} - if (!{{=$nextValid}}) { - {{?}} - - {{? $elsePresent }} - {{# def.validateIfClause:else }} - } - {{?}} - - if (!{{=$valid}}) { - {{# def.extraError:'if' }} - } - {{? $breakOnError }} else { {{?}} -{{??}} - {{? $breakOnError }} - if (true) { - {{?}} -{{?}} - diff --git a/node_modules/ajv/lib/dot/items.jst b/node_modules/ajv/lib/dot/items.jst deleted file mode 100644 index acc932a2..00000000 --- a/node_modules/ajv/lib/dot/items.jst +++ /dev/null @@ -1,98 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{## def.validateItems:startFrom: - for (var {{=$idx}} = {{=startFrom}}; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { - {{ - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - }} - - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} - - {{? $breakOnError }} - if (!{{=$nextValid}}) break; - {{?}} - } -#}} - -{{ - var $idx = 'i' + $lvl - , $dataNxt = $it.dataLevel = it.dataLevel + 1 - , $nextData = 'data' + $dataNxt - , $currentBaseId = it.baseId; -}} - -var {{=$errs}} = errors; -var {{=$valid}}; - -{{? Array.isArray($schema) }} - {{ /* 'items' is an array of schemas */}} - {{ var $additionalItems = it.schema.additionalItems; }} - {{? $additionalItems === false }} - {{=$valid}} = {{=$data}}.length <= {{= $schema.length }}; - {{ - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalItems'; - }} - {{# def.checkError:'additionalItems' }} - {{ $errSchemaPath = $currErrSchemaPath; }} - {{# def.elseIfValid}} - {{?}} - - {{~ $schema:$sch:$i }} - {{? {{# def.nonEmptySchema:$sch }} }} - {{=$nextValid}} = true; - - if ({{=$data}}.length > {{=$i}}) { - {{ - var $passData = $data + '[' + $i + ']'; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); - $it.dataPathArr[$dataNxt] = $i; - }} - - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} - } - - {{# def.ifResultValid }} - {{?}} - {{~}} - - {{? typeof $additionalItems == 'object' && {{# def.nonEmptySchema:$additionalItems }} }} - {{ - $it.schema = $additionalItems; - $it.schemaPath = it.schemaPath + '.additionalItems'; - $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; - }} - {{=$nextValid}} = true; - - if ({{=$data}}.length > {{= $schema.length }}) { - {{# def.validateItems: $schema.length }} - } - - {{# def.ifResultValid }} - {{?}} - -{{?? {{# def.nonEmptySchema:$schema }} }} - {{ /* 'items' is a single schema */}} - {{ - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - }} - {{# def.validateItems: 0 }} -{{?}} - -{{? $breakOnError }} - {{= $closingBraces }} - if ({{=$errs}} == errors) { -{{?}} diff --git a/node_modules/ajv/lib/dot/missing.def b/node_modules/ajv/lib/dot/missing.def deleted file mode 100644 index a73b9f96..00000000 --- a/node_modules/ajv/lib/dot/missing.def +++ /dev/null @@ -1,39 +0,0 @@ -{{## def.checkMissingProperty:_properties: - {{~ _properties:$propertyKey:$i }} - {{?$i}} || {{?}} - {{ - var $prop = it.util.getProperty($propertyKey) - , $useData = $data + $prop; - }} - ( ({{# def.noPropertyInData }}) && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) }}) ) - {{~}} -#}} - - -{{## def.errorMissingProperty:_error: - {{ - var $propertyPath = 'missing' + $lvl - , $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.opts.jsonPointers - ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) - : $currentErrorPath + ' + ' + $propertyPath; - } - }} - {{# def.error:_error }} -#}} - - -{{## def.allErrorsMissingProperty:_error: - {{ - var $prop = it.util.getProperty($propertyKey) - , $missingProperty = it.util.escapeQuotes($propertyKey) - , $useData = $data + $prop; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - }} - if ({{# def.noPropertyInData }}) { - {{# def.addError:_error }} - } -#}} diff --git a/node_modules/ajv/lib/dot/multipleOf.jst b/node_modules/ajv/lib/dot/multipleOf.jst deleted file mode 100644 index 6d88a456..00000000 --- a/node_modules/ajv/lib/dot/multipleOf.jst +++ /dev/null @@ -1,22 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{# def.numberKeyword }} - -var division{{=$lvl}}; -if ({{?$isData}} - {{=$schemaValue}} !== undefined && ( - typeof {{=$schemaValue}} != 'number' || - {{?}} - (division{{=$lvl}} = {{=$data}} / {{=$schemaValue}}, - {{? it.opts.multipleOfPrecision }} - Math.abs(Math.round(division{{=$lvl}}) - division{{=$lvl}}) > 1e-{{=it.opts.multipleOfPrecision}} - {{??}} - division{{=$lvl}} !== parseInt(division{{=$lvl}}) - {{?}} - ) - {{?$isData}} ) {{?}} ) { - {{# def.error:'multipleOf' }} -} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/not.jst b/node_modules/ajv/lib/dot/not.jst deleted file mode 100644 index e03185ae..00000000 --- a/node_modules/ajv/lib/dot/not.jst +++ /dev/null @@ -1,43 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - -{{? {{# def.nonEmptySchema:$schema }} }} - {{ - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - }} - - var {{=$errs}} = errors; - - {{# def.setCompositeRule }} - - {{ - $it.createErrors = false; - var $allErrorsOption; - if ($it.opts.allErrors) { - $allErrorsOption = $it.opts.allErrors; - $it.opts.allErrors = false; - } - }} - {{= it.validate($it) }} - {{ - $it.createErrors = true; - if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; - }} - - {{# def.resetCompositeRule }} - - if ({{=$nextValid}}) { - {{# def.error:'not' }} - } else { - {{# def.resetErrors }} - {{? it.opts.allErrors }} } {{?}} -{{??}} - {{# def.addError:'not' }} - {{? $breakOnError}} - if (false) { - {{?}} -{{?}} diff --git a/node_modules/ajv/lib/dot/oneOf.jst b/node_modules/ajv/lib/dot/oneOf.jst deleted file mode 100644 index bcce2c6e..00000000 --- a/node_modules/ajv/lib/dot/oneOf.jst +++ /dev/null @@ -1,54 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - -{{ - var $currentBaseId = $it.baseId - , $prevValid = 'prevValid' + $lvl - , $passingSchemas = 'passingSchemas' + $lvl; -}} - -var {{=$errs}} = errors - , {{=$prevValid}} = false - , {{=$valid}} = false - , {{=$passingSchemas}} = null; - -{{# def.setCompositeRule }} - -{{~ $schema:$sch:$i }} - {{? {{# def.nonEmptySchema:$sch }} }} - {{ - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - }} - - {{# def.insertSubschemaCode }} - {{??}} - var {{=$nextValid}} = true; - {{?}} - - {{? $i }} - if ({{=$nextValid}} && {{=$prevValid}}) { - {{=$valid}} = false; - {{=$passingSchemas}} = [{{=$passingSchemas}}, {{=$i}}]; - } else { - {{ $closingBraces += '}'; }} - {{?}} - - if ({{=$nextValid}}) { - {{=$valid}} = {{=$prevValid}} = true; - {{=$passingSchemas}} = {{=$i}}; - } -{{~}} - -{{# def.resetCompositeRule }} - -{{= $closingBraces }} - -if (!{{=$valid}}) { - {{# def.extraError:'oneOf' }} -} else { - {{# def.resetErrors }} -{{? it.opts.allErrors }} } {{?}} diff --git a/node_modules/ajv/lib/dot/pattern.jst b/node_modules/ajv/lib/dot/pattern.jst deleted file mode 100644 index 3a37ef6c..00000000 --- a/node_modules/ajv/lib/dot/pattern.jst +++ /dev/null @@ -1,14 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - -{{ - var $regexp = $isData - ? '(new RegExp(' + $schemaValue + '))' - : it.usePattern($schema); -}} - -if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) { - {{# def.error:'pattern' }} -} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/properties.jst b/node_modules/ajv/lib/dot/properties.jst deleted file mode 100644 index 5cebb9b1..00000000 --- a/node_modules/ajv/lib/dot/properties.jst +++ /dev/null @@ -1,245 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - - -{{## def.validateAdditional: - {{ /* additionalProperties is schema */ - $it.schema = $aProperties; - $it.schemaPath = it.schemaPath + '.additionalProperties'; - $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; - $it.errorPath = it.opts._errorDataPathProperty - ? it.errorPath - : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - }} - - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} -#}} - - -{{ - var $key = 'key' + $lvl - , $idx = 'idx' + $lvl - , $dataNxt = $it.dataLevel = it.dataLevel + 1 - , $nextData = 'data' + $dataNxt - , $dataProperties = 'dataProperties' + $lvl; - - var $schemaKeys = Object.keys($schema || {}).filter(notProto) - , $pProperties = it.schema.patternProperties || {} - , $pPropertyKeys = Object.keys($pProperties).filter(notProto) - , $aProperties = it.schema.additionalProperties - , $someProperties = $schemaKeys.length || $pPropertyKeys.length - , $noAdditional = $aProperties === false - , $additionalIsSchema = typeof $aProperties == 'object' - && Object.keys($aProperties).length - , $removeAdditional = it.opts.removeAdditional - , $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional - , $ownProperties = it.opts.ownProperties - , $currentBaseId = it.baseId; - - var $required = it.schema.required; - if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) { - var $requiredHash = it.util.toHash($required); - } - - function notProto(p) { return p !== '__proto__'; } -}} - - -var {{=$errs}} = errors; -var {{=$nextValid}} = true; -{{? $ownProperties }} - var {{=$dataProperties}} = undefined; -{{?}} - -{{? $checkAdditional }} - {{# def.iterateProperties }} - {{? $someProperties }} - var isAdditional{{=$lvl}} = !(false - {{? $schemaKeys.length }} - {{? $schemaKeys.length > 8 }} - || validate.schema{{=$schemaPath}}.hasOwnProperty({{=$key}}) - {{??}} - {{~ $schemaKeys:$propertyKey }} - || {{=$key}} == {{= it.util.toQuotedString($propertyKey) }} - {{~}} - {{?}} - {{?}} - {{? $pPropertyKeys.length }} - {{~ $pPropertyKeys:$pProperty:$i }} - || {{= it.usePattern($pProperty) }}.test({{=$key}}) - {{~}} - {{?}} - ); - - if (isAdditional{{=$lvl}}) { - {{?}} - {{? $removeAdditional == 'all' }} - delete {{=$data}}[{{=$key}}]; - {{??}} - {{ - var $currentErrorPath = it.errorPath; - var $additionalProperty = '\' + ' + $key + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - } - }} - {{? $noAdditional }} - {{? $removeAdditional }} - delete {{=$data}}[{{=$key}}]; - {{??}} - {{=$nextValid}} = false; - {{ - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalProperties'; - }} - {{# def.error:'additionalProperties' }} - {{ $errSchemaPath = $currErrSchemaPath; }} - {{? $breakOnError }} break; {{?}} - {{?}} - {{?? $additionalIsSchema }} - {{? $removeAdditional == 'failing' }} - var {{=$errs}} = errors; - {{# def.setCompositeRule }} - - {{# def.validateAdditional }} - - if (!{{=$nextValid}}) { - errors = {{=$errs}}; - if (validate.errors !== null) { - if (errors) validate.errors.length = errors; - else validate.errors = null; - } - delete {{=$data}}[{{=$key}}]; - } - - {{# def.resetCompositeRule }} - {{??}} - {{# def.validateAdditional }} - {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} - {{?}} - {{?}} - {{ it.errorPath = $currentErrorPath; }} - {{?}} - {{? $someProperties }} - } - {{?}} - } - - {{# def.ifResultValid }} -{{?}} - -{{ var $useDefaults = it.opts.useDefaults && !it.compositeRule; }} - -{{? $schemaKeys.length }} - {{~ $schemaKeys:$propertyKey }} - {{ var $sch = $schema[$propertyKey]; }} - - {{? {{# def.nonEmptySchema:$sch}} }} - {{ - var $prop = it.util.getProperty($propertyKey) - , $passData = $data + $prop - , $hasDefault = $useDefaults && $sch.default !== undefined; - $it.schema = $sch; - $it.schemaPath = $schemaPath + $prop; - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); - $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); - $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); - }} - - {{# def.generateSubschemaCode }} - - {{? {{# def.willOptimize }} }} - {{ - $code = {{# def._optimizeValidate }}; - var $useData = $passData; - }} - {{??}} - {{ var $useData = $nextData; }} - var {{=$nextData}} = {{=$passData}}; - {{?}} - - {{? $hasDefault }} - {{= $code }} - {{??}} - {{? $requiredHash && $requiredHash[$propertyKey] }} - if ({{# def.noPropertyInData }}) { - {{=$nextValid}} = false; - {{ - var $currentErrorPath = it.errorPath - , $currErrSchemaPath = $errSchemaPath - , $missingProperty = it.util.escapeQuotes($propertyKey); - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - $errSchemaPath = it.errSchemaPath + '/required'; - }} - {{# def.error:'required' }} - {{ $errSchemaPath = $currErrSchemaPath; }} - {{ it.errorPath = $currentErrorPath; }} - } else { - {{??}} - {{? $breakOnError }} - if ({{# def.noPropertyInData }}) { - {{=$nextValid}} = true; - } else { - {{??}} - if ({{=$useData}} !== undefined - {{? $ownProperties }} - && {{# def.isOwnProperty }} - {{?}} - ) { - {{?}} - {{?}} - - {{= $code }} - } - {{?}} {{ /* $hasDefault */ }} - {{?}} {{ /* def.nonEmptySchema */ }} - - {{# def.ifResultValid }} - {{~}} -{{?}} - -{{? $pPropertyKeys.length }} - {{~ $pPropertyKeys:$pProperty }} - {{ var $sch = $pProperties[$pProperty]; }} - - {{? {{# def.nonEmptySchema:$sch}} }} - {{ - $it.schema = $sch; - $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); - $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' - + it.util.escapeFragment($pProperty); - }} - - {{# def.iterateProperties }} - if ({{= it.usePattern($pProperty) }}.test({{=$key}})) { - {{ - $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - }} - - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} - - {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} - } - {{? $breakOnError }} else {{=$nextValid}} = true; {{?}} - } - - {{# def.ifResultValid }} - {{?}} {{ /* def.nonEmptySchema */ }} - {{~}} -{{?}} - - -{{? $breakOnError }} - {{= $closingBraces }} - if ({{=$errs}} == errors) { -{{?}} diff --git a/node_modules/ajv/lib/dot/propertyNames.jst b/node_modules/ajv/lib/dot/propertyNames.jst deleted file mode 100644 index d456ccaf..00000000 --- a/node_modules/ajv/lib/dot/propertyNames.jst +++ /dev/null @@ -1,52 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.setupNextLevel }} - -var {{=$errs}} = errors; - -{{? {{# def.nonEmptySchema:$schema }} }} - {{ - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - }} - - {{ - var $key = 'key' + $lvl - , $idx = 'idx' + $lvl - , $i = 'i' + $lvl - , $invalidName = '\' + ' + $key + ' + \'' - , $dataNxt = $it.dataLevel = it.dataLevel + 1 - , $nextData = 'data' + $dataNxt - , $dataProperties = 'dataProperties' + $lvl - , $ownProperties = it.opts.ownProperties - , $currentBaseId = it.baseId; - }} - - {{? $ownProperties }} - var {{=$dataProperties}} = undefined; - {{?}} - {{# def.iterateProperties }} - var startErrs{{=$lvl}} = errors; - - {{ var $passData = $key; }} - {{# def.setCompositeRule }} - {{# def.generateSubschemaCode }} - {{# def.optimizeValidate }} - {{# def.resetCompositeRule }} - - if (!{{=$nextValid}}) { - for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}= it.opts.loopRequired - , $ownProperties = it.opts.ownProperties; - }} - - {{? $breakOnError }} - var missing{{=$lvl}}; - {{? $loopRequired }} - {{# def.setupLoop }} - var {{=$valid}} = true; - - {{?$isData}}{{# def.check$dataIsArray }}{{?}} - - for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { - {{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined - {{? $ownProperties }} - && {{# def.isRequiredOwnProperty }} - {{?}}; - if (!{{=$valid}}) break; - } - - {{? $isData }} } {{?}} - - {{# def.checkError:'required' }} - else { - {{??}} - if ({{# def.checkMissingProperty:$required }}) { - {{# def.errorMissingProperty:'required' }} - } else { - {{?}} - {{??}} - {{? $loopRequired }} - {{# def.setupLoop }} - {{? $isData }} - if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) { - {{# def.addError:'required' }} - } else if ({{=$vSchema}} !== undefined) { - {{?}} - - for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { - if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined - {{? $ownProperties }} - || !{{# def.isRequiredOwnProperty }} - {{?}}) { - {{# def.addError:'required' }} - } - } - - {{? $isData }} } {{?}} - {{??}} - {{~ $required:$propertyKey }} - {{# def.allErrorsMissingProperty:'required' }} - {{~}} - {{?}} - {{?}} - - {{ it.errorPath = $currentErrorPath; }} - -{{?? $breakOnError }} - if (true) { -{{?}} diff --git a/node_modules/ajv/lib/dot/uniqueItems.jst b/node_modules/ajv/lib/dot/uniqueItems.jst deleted file mode 100644 index e69b8308..00000000 --- a/node_modules/ajv/lib/dot/uniqueItems.jst +++ /dev/null @@ -1,62 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.setupKeyword }} -{{# def.$data }} - - -{{? ($schema || $isData) && it.opts.uniqueItems !== false }} - {{? $isData }} - var {{=$valid}}; - if ({{=$schemaValue}} === false || {{=$schemaValue}} === undefined) - {{=$valid}} = true; - else if (typeof {{=$schemaValue}} != 'boolean') - {{=$valid}} = false; - else { - {{?}} - - var i = {{=$data}}.length - , {{=$valid}} = true - , j; - if (i > 1) { - {{ - var $itemType = it.schema.items && it.schema.items.type - , $typeIsArray = Array.isArray($itemType); - }} - {{? !$itemType || $itemType == 'object' || $itemType == 'array' || - ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0)) }} - outer: - for (;i--;) { - for (j = i; j--;) { - if (equal({{=$data}}[i], {{=$data}}[j])) { - {{=$valid}} = false; - break outer; - } - } - } - {{??}} - var itemIndices = {}, item; - for (;i--;) { - var item = {{=$data}}[i]; - {{ var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); }} - if ({{= it.util[$method]($itemType, 'item', it.opts.strictNumbers, true) }}) continue; - {{? $typeIsArray}} - if (typeof item == 'string') item = '"' + item; - {{?}} - if (typeof itemIndices[item] == 'number') { - {{=$valid}} = false; - j = itemIndices[item]; - break; - } - itemIndices[item] = i; - } - {{?}} - } - - {{? $isData }} } {{?}} - - if (!{{=$valid}}) { - {{# def.error:'uniqueItems' }} - } {{? $breakOnError }} else { {{?}} -{{??}} - {{? $breakOnError }} if (true) { {{?}} -{{?}} diff --git a/node_modules/ajv/lib/dot/validate.jst b/node_modules/ajv/lib/dot/validate.jst deleted file mode 100644 index 32087e71..00000000 --- a/node_modules/ajv/lib/dot/validate.jst +++ /dev/null @@ -1,276 +0,0 @@ -{{# def.definitions }} -{{# def.errors }} -{{# def.defaults }} -{{# def.coerce }} - -{{ /** - * schema compilation (render) time: - * it = { schema, RULES, _validate, opts } - * it.validate - this template function, - * it is used recursively to generate code for subschemas - * - * runtime: - * "validate" is a variable name to which this function will be assigned - * validateRef etc. are defined in the parent scope in index.js - */ }} - -{{ - var $async = it.schema.$async === true - , $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref') - , $id = it.self._getId(it.schema); -}} - -{{ - if (it.opts.strictKeywords) { - var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); - if ($unknownKwd) { - var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; - if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); - else throw new Error($keywordsMsg); - } - } -}} - -{{? it.isTop }} - var validate = {{?$async}}{{it.async = true;}}async {{?}}function(data, dataPath, parentData, parentDataProperty, rootData) { - 'use strict'; - {{? $id && (it.opts.sourceCode || it.opts.processCode) }} - {{= '/\*# sourceURL=' + $id + ' */' }} - {{?}} -{{?}} - -{{? typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref) }} - {{ var $keyword = 'false schema'; }} - {{# def.setupKeyword }} - {{? it.schema === false}} - {{? it.isTop}} - {{ $breakOnError = true; }} - {{??}} - var {{=$valid}} = false; - {{?}} - {{# def.error:'false schema' }} - {{??}} - {{? it.isTop}} - {{? $async }} - return data; - {{??}} - validate.errors = null; - return true; - {{?}} - {{??}} - var {{=$valid}} = true; - {{?}} - {{?}} - - {{? it.isTop}} - }; - return validate; - {{?}} - - {{ return out; }} -{{?}} - - -{{? it.isTop }} - {{ - var $top = it.isTop - , $lvl = it.level = 0 - , $dataLvl = it.dataLevel = 0 - , $data = 'data'; - it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); - it.baseId = it.baseId || it.rootId; - delete it.isTop; - - it.dataPathArr = [""]; - - if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored in the schema root'; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - }} - - var vErrors = null; {{ /* don't edit, used in replace */ }} - var errors = 0; {{ /* don't edit, used in replace */ }} - if (rootData === undefined) rootData = data; {{ /* don't edit, used in replace */ }} -{{??}} - {{ - var $lvl = it.level - , $dataLvl = it.dataLevel - , $data = 'data' + ($dataLvl || ''); - - if ($id) it.baseId = it.resolve.url(it.baseId, $id); - - if ($async && !it.async) throw new Error('async schema in sync schema'); - }} - - var errs_{{=$lvl}} = errors; -{{?}} - -{{ - var $valid = 'valid' + $lvl - , $breakOnError = !it.opts.allErrors - , $closingBraces1 = '' - , $closingBraces2 = ''; - - var $errorKeyword; - var $typeSchema = it.schema.type - , $typeIsArray = Array.isArray($typeSchema); - - if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { - if ($typeIsArray) { - if ($typeSchema.indexOf('null') == -1) - $typeSchema = $typeSchema.concat('null'); - } else if ($typeSchema != 'null') { - $typeSchema = [$typeSchema, 'null']; - $typeIsArray = true; - } - } - - if ($typeIsArray && $typeSchema.length == 1) { - $typeSchema = $typeSchema[0]; - $typeIsArray = false; - } -}} - -{{## def.checkType: - {{ - var $schemaPath = it.schemaPath + '.type' - , $errSchemaPath = it.errSchemaPath + '/type' - , $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; - }} - - if ({{= it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true) }}) { -#}} - -{{? it.schema.$ref && $refKeywords }} - {{? it.opts.extendRefs == 'fail' }} - {{ throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); }} - {{?? it.opts.extendRefs !== true }} - {{ - $refKeywords = false; - it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); - }} - {{?}} -{{?}} - -{{? it.schema.$comment && it.opts.$comment }} - {{= it.RULES.all.$comment.code(it, '$comment') }} -{{?}} - -{{? $typeSchema }} - {{? it.opts.coerceTypes }} - {{ var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); }} - {{?}} - - {{ var $rulesGroup = it.RULES.types[$typeSchema]; }} - {{? $coerceToTypes || $typeIsArray || $rulesGroup === true || - ($rulesGroup && !$shouldUseGroup($rulesGroup)) }} - {{ - var $schemaPath = it.schemaPath + '.type' - , $errSchemaPath = it.errSchemaPath + '/type'; - }} - {{# def.checkType }} - {{? $coerceToTypes }} - {{# def.coerceType }} - {{??}} - {{# def.error:'type' }} - {{?}} - } - {{?}} -{{?}} - - -{{? it.schema.$ref && !$refKeywords }} - {{= it.RULES.all.$ref.code(it, '$ref') }} - {{? $breakOnError }} - } - if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { - {{ $closingBraces2 += '}'; }} - {{?}} -{{??}} - {{~ it.RULES:$rulesGroup }} - {{? $shouldUseGroup($rulesGroup) }} - {{? $rulesGroup.type }} - if ({{= it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers) }}) { - {{?}} - {{? it.opts.useDefaults }} - {{? $rulesGroup.type == 'object' && it.schema.properties }} - {{# def.defaultProperties }} - {{?? $rulesGroup.type == 'array' && Array.isArray(it.schema.items) }} - {{# def.defaultItems }} - {{?}} - {{?}} - {{~ $rulesGroup.rules:$rule }} - {{? $shouldUseRule($rule) }} - {{ var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); }} - {{? $code }} - {{= $code }} - {{? $breakOnError }} - {{ $closingBraces1 += '}'; }} - {{?}} - {{?}} - {{?}} - {{~}} - {{? $breakOnError }} - {{= $closingBraces1 }} - {{ $closingBraces1 = ''; }} - {{?}} - {{? $rulesGroup.type }} - } - {{? $typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes }} - else { - {{ - var $schemaPath = it.schemaPath + '.type' - , $errSchemaPath = it.errSchemaPath + '/type'; - }} - {{# def.error:'type' }} - } - {{?}} - {{?}} - - {{? $breakOnError }} - if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { - {{ $closingBraces2 += '}'; }} - {{?}} - {{?}} - {{~}} -{{?}} - -{{? $breakOnError }} {{= $closingBraces2 }} {{?}} - -{{? $top }} - {{? $async }} - if (errors === 0) return data; {{ /* don't edit, used in replace */ }} - else throw new ValidationError(vErrors); {{ /* don't edit, used in replace */ }} - {{??}} - validate.errors = vErrors; {{ /* don't edit, used in replace */ }} - return errors === 0; {{ /* don't edit, used in replace */ }} - {{?}} - }; - - return validate; -{{??}} - var {{=$valid}} = errors === errs_{{=$lvl}}; -{{?}} - -{{ - function $shouldUseGroup($rulesGroup) { - var rules = $rulesGroup.rules; - for (var i=0; i < rules.length; i++) - if ($shouldUseRule(rules[i])) - return true; - } - - function $shouldUseRule($rule) { - return it.schema[$rule.keyword] !== undefined || - ($rule.implements && $ruleImplementsSomeKeyword($rule)); - } - - function $ruleImplementsSomeKeyword($rule) { - var impl = $rule.implements; - for (var i=0; i < impl.length; i++) - if (it.schema[impl[i]] !== undefined) - return true; - } -}} diff --git a/node_modules/ajv/lib/dotjs/README.md b/node_modules/ajv/lib/dotjs/README.md deleted file mode 100644 index 4d994846..00000000 --- a/node_modules/ajv/lib/dotjs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -These files are compiled dot templates from dot folder. - -Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder. diff --git a/node_modules/ajv/lib/dotjs/_limit.js b/node_modules/ajv/lib/dotjs/_limit.js deleted file mode 100644 index 05a1979d..00000000 --- a/node_modules/ajv/lib/dotjs/_limit.js +++ /dev/null @@ -1,163 +0,0 @@ -'use strict'; -module.exports = function generate__limit(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $isMax = $keyword == 'maximum', - $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum', - $schemaExcl = it.schema[$exclusiveKeyword], - $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data, - $op = $isMax ? '<' : '>', - $notOp = $isMax ? '>' : '<', - $errorKeyword = undefined; - if (!($isData || typeof $schema == 'number' || $schema === undefined)) { - throw new Error($keyword + ' must be number'); - } - if (!($isDataExcl || $schemaExcl === undefined || typeof $schemaExcl == 'number' || typeof $schemaExcl == 'boolean')) { - throw new Error($exclusiveKeyword + ' must be number or boolean'); - } - if ($isDataExcl) { - var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), - $exclusive = 'exclusive' + $lvl, - $exclType = 'exclType' + $lvl, - $exclIsNumber = 'exclIsNumber' + $lvl, - $opExpr = 'op' + $lvl, - $opStr = '\' + ' + $opExpr + ' + \''; - out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; - $schemaValueExcl = 'schemaExcl' + $lvl; - out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; - var $errorKeyword = $exclusiveKeyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; - if ($schema === undefined) { - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $schemaValue = $schemaValueExcl; - $isData = $isDataExcl; - } - } else { - var $exclIsNumber = typeof $schemaExcl == 'number', - $opStr = $op; - if ($exclIsNumber && $isData) { - var $opExpr = '\'' + $opStr + '\''; - out += ' if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; - } else { - if ($exclIsNumber && $schema === undefined) { - $exclusive = true; - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $schemaValue = $schemaExcl; - $notOp += '='; - } else { - if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); - if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { - $exclusive = true; - $errorKeyword = $exclusiveKeyword; - $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; - $notOp += '='; - } else { - $exclusive = false; - $opStr += '='; - } - } - var $opExpr = '\'' + $opStr + '\''; - out += ' if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; - } - } - $errorKeyword = $errorKeyword || $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be ' + ($opStr) + ' '; - if ($isData) { - out += '\' + ' + ($schemaValue); - } else { - out += '' + ($schemaValue) + '\''; - } - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/_limitItems.js b/node_modules/ajv/lib/dotjs/_limitItems.js deleted file mode 100644 index e092a559..00000000 --- a/node_modules/ajv/lib/dotjs/_limitItems.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; -module.exports = function generate__limitItems(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxItems' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have '; - if ($keyword == 'maxItems') { - out += 'more'; - } else { - out += 'fewer'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' items\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/_limitLength.js b/node_modules/ajv/lib/dotjs/_limitLength.js deleted file mode 100644 index ecbd3fe1..00000000 --- a/node_modules/ajv/lib/dotjs/_limitLength.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict'; -module.exports = function generate__limitLength(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxLength' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - if (it.opts.unicode === false) { - out += ' ' + ($data) + '.length '; - } else { - out += ' ucs2length(' + ($data) + ') '; - } - out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be '; - if ($keyword == 'maxLength') { - out += 'longer'; - } else { - out += 'shorter'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' characters\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/_limitProperties.js b/node_modules/ajv/lib/dotjs/_limitProperties.js deleted file mode 100644 index d232755a..00000000 --- a/node_modules/ajv/lib/dotjs/_limitProperties.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; -module.exports = function generate__limitProperties(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - var $op = $keyword == 'maxProperties' ? '>' : '<'; - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; - } - out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; - var $errorKeyword = $keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have '; - if ($keyword == 'maxProperties') { - out += 'more'; - } else { - out += 'fewer'; - } - out += ' than '; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + ($schema); - } - out += ' properties\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/allOf.js b/node_modules/ajv/lib/dotjs/allOf.js deleted file mode 100644 index fb8c2e4b..00000000 --- a/node_modules/ajv/lib/dotjs/allOf.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; -module.exports = function generate_allOf(it, $keyword, $ruleType) { - var out = ' '; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $currentBaseId = $it.baseId, - $allSchemasEmpty = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $allSchemasEmpty = false; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if ($breakOnError) { - if ($allSchemasEmpty) { - out += ' if (true) { '; - } else { - out += ' ' + ($closingBraces.slice(0, -1)) + ' '; - } - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/anyOf.js b/node_modules/ajv/lib/dotjs/anyOf.js deleted file mode 100644 index 0600a9d4..00000000 --- a/node_modules/ajv/lib/dotjs/anyOf.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -module.exports = function generate_anyOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $noEmptySchema = $schema.every(function($sch) { - return (it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)); - }); - if ($noEmptySchema) { - var $currentBaseId = $it.baseId; - out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; - $closingBraces += '}'; - } - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should match some schema in anyOf\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - if (it.opts.allErrors) { - out += ' } '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/comment.js b/node_modules/ajv/lib/dotjs/comment.js deleted file mode 100644 index dd66bb8f..00000000 --- a/node_modules/ajv/lib/dotjs/comment.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; -module.exports = function generate_comment(it, $keyword, $ruleType) { - var out = ' '; - var $schema = it.schema[$keyword]; - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $comment = it.util.toQuotedString($schema); - if (it.opts.$comment === true) { - out += ' console.log(' + ($comment) + ');'; - } else if (typeof it.opts.$comment == 'function') { - out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/const.js b/node_modules/ajv/lib/dotjs/const.js deleted file mode 100644 index 15b7c619..00000000 --- a/node_modules/ajv/lib/dotjs/const.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; -module.exports = function generate_const(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!$isData) { - out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; - } - out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be equal to constant\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' }'; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/contains.js b/node_modules/ajv/lib/dotjs/contains.js deleted file mode 100644 index 7d763009..00000000 --- a/node_modules/ajv/lib/dotjs/contains.js +++ /dev/null @@ -1,81 +0,0 @@ -'use strict'; -module.exports = function generate_contains(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $idx = 'i' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $currentBaseId = it.baseId, - $nonEmptySchema = (it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all)); - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if ($nonEmptySchema) { - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' if (' + ($nextValid) + ') break; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; - } else { - out += ' if (' + ($data) + '.length == 0) {'; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should contain a valid item\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - if ($nonEmptySchema) { - out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - } - if (it.opts.allErrors) { - out += ' } '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/custom.js b/node_modules/ajv/lib/dotjs/custom.js deleted file mode 100644 index f3e641e7..00000000 --- a/node_modules/ajv/lib/dotjs/custom.js +++ /dev/null @@ -1,228 +0,0 @@ -'use strict'; -module.exports = function generate_custom(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $rule = this, - $definition = 'definition' + $lvl, - $rDef = $rule.definition, - $closingBraces = ''; - var $compile, $inline, $macro, $ruleValidate, $validateCode; - if ($isData && $rDef.$data) { - $validateCode = 'keywordValidate' + $lvl; - var $validateSchema = $rDef.validateSchema; - out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; - } else { - $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); - if (!$ruleValidate) return; - $schemaValue = 'validate.schema' + $schemaPath; - $validateCode = $ruleValidate.code; - $compile = $rDef.compile; - $inline = $rDef.inline; - $macro = $rDef.macro; - } - var $ruleErrs = $validateCode + '.errors', - $i = 'i' + $lvl, - $ruleErr = 'ruleErr' + $lvl, - $asyncKeyword = $rDef.async; - if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); - if (!($inline || $macro)) { - out += '' + ($ruleErrs) + ' = null;'; - } - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if ($isData && $rDef.$data) { - $closingBraces += '}'; - out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; - if ($validateSchema) { - $closingBraces += '}'; - out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; - } - } - if ($inline) { - if ($rDef.statements) { - out += ' ' + ($ruleValidate.validate) + ' '; - } else { - out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; - } - } else if ($macro) { - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - $it.schema = $ruleValidate.validate; - $it.schemaPath = ''; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' ' + ($code); - } else { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; - out += ' ' + ($validateCode) + '.call( '; - if (it.opts.passContext) { - out += 'this'; - } else { - out += 'self'; - } - if ($compile || $rDef.schema === false) { - out += ' , ' + ($data) + ' '; - } else { - out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; - } - out += ' , (dataPath || \'\')'; - if (it.errorPath != '""') { - out += ' + ' + (it.errorPath); - } - var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', - $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; - out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; - var def_callRuleValidate = out; - out = $$outStack.pop(); - if ($rDef.errors === false) { - out += ' ' + ($valid) + ' = '; - if ($asyncKeyword) { - out += 'await '; - } - out += '' + (def_callRuleValidate) + '; '; - } else { - if ($asyncKeyword) { - $ruleErrs = 'customErrors' + $lvl; - out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; - } else { - out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; - } - } - } - if ($rDef.modifying) { - out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; - } - out += '' + ($closingBraces); - if ($rDef.valid) { - if ($breakOnError) { - out += ' if (true) { '; - } - } else { - out += ' if ( '; - if ($rDef.valid === undefined) { - out += ' !'; - if ($macro) { - out += '' + ($nextValid); - } else { - out += '' + ($valid); - } - } else { - out += ' ' + (!$rDef.valid) + ' '; - } - out += ') { '; - $errorKeyword = $rule.keyword; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - var def_customError = out; - out = $$outStack.pop(); - if ($inline) { - if ($rDef.errors) { - if ($rDef.errors != 'full') { - out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') '; - } - out += ') { '; - $it.schema = $sch; - $it.schemaPath = $schemaPath + it.util.getProperty($property); - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property); - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/enum.js b/node_modules/ajv/lib/dotjs/enum.js deleted file mode 100644 index 90580b9f..00000000 --- a/node_modules/ajv/lib/dotjs/enum.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; -module.exports = function generate_enum(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $i = 'i' + $lvl, - $vSchema = 'schema' + $lvl; - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';'; - } - out += 'var ' + ($valid) + ';'; - if ($isData) { - out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; - } - out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }'; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be equal to one of the allowed values\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' }'; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/format.js b/node_modules/ajv/lib/dotjs/format.js deleted file mode 100644 index cd9a5693..00000000 --- a/node_modules/ajv/lib/dotjs/format.js +++ /dev/null @@ -1,150 +0,0 @@ -'use strict'; -module.exports = function generate_format(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - if (it.opts.format === false) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $unknownFormats = it.opts.unknownFormats, - $allowUnknown = Array.isArray($unknownFormats); - if ($isData) { - var $format = 'format' + $lvl, - $isObject = 'isObject' + $lvl, - $formatType = 'formatType' + $lvl; - out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { '; - if (it.async) { - out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; '; - } - out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; - } - out += ' ('; - if ($unknownFormats != 'ignore') { - out += ' (' + ($schemaValue) + ' && !' + ($format) + ' '; - if ($allowUnknown) { - out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 '; - } - out += ') || '; - } - out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? '; - if (it.async) { - out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) '; - } else { - out += ' ' + ($format) + '(' + ($data) + ') '; - } - out += ' : ' + ($format) + '.test(' + ($data) + '))))) {'; - } else { - var $format = it.formats[$schema]; - if (!$format) { - if ($unknownFormats == 'ignore') { - it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } else { - throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); - } - } - var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; - var $formatType = $isObject && $format.type || 'string'; - if ($isObject) { - var $async = $format.async === true; - $format = $format.validate; - } - if ($formatType != $ruleType) { - if ($breakOnError) { - out += ' if (true) { '; - } - return out; - } - if ($async) { - if (!it.async) throw new Error('async format in sync schema'); - var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; - out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; - } else { - out += ' if (! '; - var $formatRef = 'formats' + it.util.getProperty($schema); - if ($isObject) $formatRef += '.validate'; - if (typeof $format == 'function') { - out += ' ' + ($formatRef) + '(' + ($data) + ') '; - } else { - out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; - } - out += ') { '; - } - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match format "'; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + (it.util.escapeQuotes($schema)); - } - out += '"\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/if.js b/node_modules/ajv/lib/dotjs/if.js deleted file mode 100644 index 94d27ad8..00000000 --- a/node_modules/ajv/lib/dotjs/if.js +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; -module.exports = function generate_if(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - $it.level++; - var $nextValid = 'valid' + $it.level; - var $thenSch = it.schema['then'], - $elseSch = it.schema['else'], - $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? (typeof $thenSch == 'object' && Object.keys($thenSch).length > 0) || $thenSch === false : it.util.schemaHasRules($thenSch, it.RULES.all)), - $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? (typeof $elseSch == 'object' && Object.keys($elseSch).length > 0) || $elseSch === false : it.util.schemaHasRules($elseSch, it.RULES.all)), - $currentBaseId = $it.baseId; - if ($thenPresent || $elsePresent) { - var $ifClause; - $it.createErrors = false; - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - $it.createErrors = true; - out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - if ($thenPresent) { - out += ' if (' + ($nextValid) + ') { '; - $it.schema = it.schema['then']; - $it.schemaPath = it.schemaPath + '.then'; - $it.errSchemaPath = it.errSchemaPath + '/then'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; - if ($thenPresent && $elsePresent) { - $ifClause = 'ifClause' + $lvl; - out += ' var ' + ($ifClause) + ' = \'then\'; '; - } else { - $ifClause = '\'then\''; - } - out += ' } '; - if ($elsePresent) { - out += ' else { '; - } - } else { - out += ' if (!' + ($nextValid) + ') { '; - } - if ($elsePresent) { - $it.schema = it.schema['else']; - $it.schemaPath = it.schemaPath + '.else'; - $it.errSchemaPath = it.errSchemaPath + '/else'; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; - if ($thenPresent && $elsePresent) { - $ifClause = 'ifClause' + $lvl; - out += ' var ' + ($ifClause) + ' = \'else\'; '; - } else { - $ifClause = '\'else\''; - } - out += ' } '; - } - out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/index.js b/node_modules/ajv/lib/dotjs/index.js deleted file mode 100644 index 2fb1b00e..00000000 --- a/node_modules/ajv/lib/dotjs/index.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -//all requires must be explicit because browserify won't work with dynamic requires -module.exports = { - '$ref': require('./ref'), - allOf: require('./allOf'), - anyOf: require('./anyOf'), - '$comment': require('./comment'), - const: require('./const'), - contains: require('./contains'), - dependencies: require('./dependencies'), - 'enum': require('./enum'), - format: require('./format'), - 'if': require('./if'), - items: require('./items'), - maximum: require('./_limit'), - minimum: require('./_limit'), - maxItems: require('./_limitItems'), - minItems: require('./_limitItems'), - maxLength: require('./_limitLength'), - minLength: require('./_limitLength'), - maxProperties: require('./_limitProperties'), - minProperties: require('./_limitProperties'), - multipleOf: require('./multipleOf'), - not: require('./not'), - oneOf: require('./oneOf'), - pattern: require('./pattern'), - properties: require('./properties'), - propertyNames: require('./propertyNames'), - required: require('./required'), - uniqueItems: require('./uniqueItems'), - validate: require('./validate') -}; diff --git a/node_modules/ajv/lib/dotjs/items.js b/node_modules/ajv/lib/dotjs/items.js deleted file mode 100644 index bee5d67d..00000000 --- a/node_modules/ajv/lib/dotjs/items.js +++ /dev/null @@ -1,140 +0,0 @@ -'use strict'; -module.exports = function generate_items(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $idx = 'i' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $currentBaseId = it.baseId; - out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; - if (Array.isArray($schema)) { - var $additionalItems = it.schema.additionalItems; - if ($additionalItems === false) { - out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalItems'; - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - $errSchemaPath = $currErrSchemaPath; - if ($breakOnError) { - $closingBraces += '}'; - out += ' else { '; - } - } - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; - var $passData = $data + '[' + $i + ']'; - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); - $it.dataPathArr[$dataNxt] = $i; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? (typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0) || $additionalItems === false : it.util.schemaHasRules($additionalItems, it.RULES.all))) { - $it.schema = $additionalItems; - $it.schemaPath = it.schemaPath + '.additionalItems'; - $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; - out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' } } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } else if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); - var $passData = $data + '[' + $idx + ']'; - $it.dataPathArr[$dataNxt] = $idx; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' }'; - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/multipleOf.js b/node_modules/ajv/lib/dotjs/multipleOf.js deleted file mode 100644 index 9d6401b8..00000000 --- a/node_modules/ajv/lib/dotjs/multipleOf.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; -module.exports = function generate_multipleOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (!($isData || typeof $schema == 'number')) { - throw new Error($keyword + ' must be number'); - } - out += 'var division' + ($lvl) + ';if ('; - if ($isData) { - out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; - } - out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; - if (it.opts.multipleOfPrecision) { - out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; - } else { - out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; - } - out += ' ) '; - if ($isData) { - out += ' ) '; - } - out += ' ) { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be multiple of '; - if ($isData) { - out += '\' + ' + ($schemaValue); - } else { - out += '' + ($schemaValue) + '\''; - } - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/not.js b/node_modules/ajv/lib/dotjs/not.js deleted file mode 100644 index f50c9378..00000000 --- a/node_modules/ajv/lib/dotjs/not.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; -module.exports = function generate_not(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - $it.level++; - var $nextValid = 'valid' + $it.level; - if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - out += ' var ' + ($errs) + ' = errors; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.createErrors = false; - var $allErrorsOption; - if ($it.opts.allErrors) { - $allErrorsOption = $it.opts.allErrors; - $it.opts.allErrors = false; - } - out += ' ' + (it.validate($it)) + ' '; - $it.createErrors = true; - if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' if (' + ($nextValid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be valid\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; - if (it.opts.allErrors) { - out += ' } '; - } - } else { - out += ' var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT be valid\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if ($breakOnError) { - out += ' if (false) { '; - } - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/oneOf.js b/node_modules/ajv/lib/dotjs/oneOf.js deleted file mode 100644 index dfe2fd55..00000000 --- a/node_modules/ajv/lib/dotjs/oneOf.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -module.exports = function generate_oneOf(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $currentBaseId = $it.baseId, - $prevValid = 'prevValid' + $lvl, - $passingSchemas = 'passingSchemas' + $lvl; - out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var arr1 = $schema; - if (arr1) { - var $sch, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $sch = arr1[$i += 1]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $it.schema = $sch; - $it.schemaPath = $schemaPath + '[' + $i + ']'; - $it.errSchemaPath = $errSchemaPath + '/' + $i; - out += ' ' + (it.validate($it)) + ' '; - $it.baseId = $currentBaseId; - } else { - out += ' var ' + ($nextValid) + ' = true; '; - } - if ($i) { - out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; - $closingBraces += '}'; - } - out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; - } - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match exactly one schema in oneOf\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; return false; '; - } - } - out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; - if (it.opts.allErrors) { - out += ' } '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/pattern.js b/node_modules/ajv/lib/dotjs/pattern.js deleted file mode 100644 index 1d74d6b0..00000000 --- a/node_modules/ajv/lib/dotjs/pattern.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; -module.exports = function generate_pattern(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); - out += 'if ( '; - if ($isData) { - out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; - } - out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; - if ($isData) { - out += '' + ($schemaValue); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should match pattern "'; - if ($isData) { - out += '\' + ' + ($schemaValue) + ' + \''; - } else { - out += '' + (it.util.escapeQuotes($schema)); - } - out += '"\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + (it.util.toQuotedString($schema)); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += '} '; - if ($breakOnError) { - out += ' else { '; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/properties.js b/node_modules/ajv/lib/dotjs/properties.js deleted file mode 100644 index bc5ee554..00000000 --- a/node_modules/ajv/lib/dotjs/properties.js +++ /dev/null @@ -1,335 +0,0 @@ -'use strict'; -module.exports = function generate_properties(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - var $key = 'key' + $lvl, - $idx = 'idx' + $lvl, - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $dataProperties = 'dataProperties' + $lvl; - var $schemaKeys = Object.keys($schema || {}).filter(notProto), - $pProperties = it.schema.patternProperties || {}, - $pPropertyKeys = Object.keys($pProperties).filter(notProto), - $aProperties = it.schema.additionalProperties, - $someProperties = $schemaKeys.length || $pPropertyKeys.length, - $noAdditional = $aProperties === false, - $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, - $removeAdditional = it.opts.removeAdditional, - $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, - $ownProperties = it.opts.ownProperties, - $currentBaseId = it.baseId; - var $required = it.schema.required; - if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) { - var $requiredHash = it.util.toHash($required); - } - - function notProto(p) { - return p !== '__proto__'; - } - out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; - if ($ownProperties) { - out += ' var ' + ($dataProperties) + ' = undefined;'; - } - if ($checkAdditional) { - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - if ($someProperties) { - out += ' var isAdditional' + ($lvl) + ' = !(false '; - if ($schemaKeys.length) { - if ($schemaKeys.length > 8) { - out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; - } else { - var arr1 = $schemaKeys; - if (arr1) { - var $propertyKey, i1 = -1, - l1 = arr1.length - 1; - while (i1 < l1) { - $propertyKey = arr1[i1 += 1]; - out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; - } - } - } - } - if ($pPropertyKeys.length) { - var arr2 = $pPropertyKeys; - if (arr2) { - var $pProperty, $i = -1, - l2 = arr2.length - 1; - while ($i < l2) { - $pProperty = arr2[$i += 1]; - out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; - } - } - } - out += ' ); if (isAdditional' + ($lvl) + ') { '; - } - if ($removeAdditional == 'all') { - out += ' delete ' + ($data) + '[' + ($key) + ']; '; - } else { - var $currentErrorPath = it.errorPath; - var $additionalProperty = '\' + ' + $key + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - } - if ($noAdditional) { - if ($removeAdditional) { - out += ' delete ' + ($data) + '[' + ($key) + ']; '; - } else { - out += ' ' + ($nextValid) + ' = false; '; - var $currErrSchemaPath = $errSchemaPath; - $errSchemaPath = it.errSchemaPath + '/additionalProperties'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is an invalid additional property'; - } else { - out += 'should NOT have additional properties'; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - $errSchemaPath = $currErrSchemaPath; - if ($breakOnError) { - out += ' break; '; - } - } - } else if ($additionalIsSchema) { - if ($removeAdditional == 'failing') { - out += ' var ' + ($errs) + ' = errors; '; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - $it.schema = $aProperties; - $it.schemaPath = it.schemaPath + '.additionalProperties'; - $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; - $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; - it.compositeRule = $it.compositeRule = $wasComposite; - } else { - $it.schema = $aProperties; - $it.schemaPath = it.schemaPath + '.additionalProperties'; - $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; - $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - } - } - it.errorPath = $currentErrorPath; - } - if ($someProperties) { - out += ' } '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - var $useDefaults = it.opts.useDefaults && !it.compositeRule; - if ($schemaKeys.length) { - var arr3 = $schemaKeys; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $sch = $schema[$propertyKey]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - var $prop = it.util.getProperty($propertyKey), - $passData = $data + $prop, - $hasDefault = $useDefaults && $sch.default !== undefined; - $it.schema = $sch; - $it.schemaPath = $schemaPath + $prop; - $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); - $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); - $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - $code = it.util.varReplace($code, $nextData, $passData); - var $useData = $passData; - } else { - var $useData = $nextData; - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; - } - if ($hasDefault) { - out += ' ' + ($code) + ' '; - } else { - if ($requiredHash && $requiredHash[$propertyKey]) { - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { ' + ($nextValid) + ' = false; '; - var $currentErrorPath = it.errorPath, - $currErrSchemaPath = $errSchemaPath, - $missingProperty = it.util.escapeQuotes($propertyKey); - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - $errSchemaPath = it.errSchemaPath + '/required'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - $errSchemaPath = $currErrSchemaPath; - it.errorPath = $currentErrorPath; - out += ' } else { '; - } else { - if ($breakOnError) { - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { ' + ($nextValid) + ' = true; } else { '; - } else { - out += ' if (' + ($useData) + ' !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ' ) { '; - } - } - out += ' ' + ($code) + ' } '; - } - } - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - if ($pPropertyKeys.length) { - var arr4 = $pPropertyKeys; - if (arr4) { - var $pProperty, i4 = -1, - l4 = arr4.length - 1; - while (i4 < l4) { - $pProperty = arr4[i4 += 1]; - var $sch = $pProperties[$pProperty]; - if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { - $it.schema = $sch; - $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); - $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; - $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); - var $passData = $data + '[' + $key + ']'; - $it.dataPathArr[$dataNxt] = $key; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - if ($breakOnError) { - out += ' if (!' + ($nextValid) + ') break; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else ' + ($nextValid) + ' = true; '; - } - out += ' } '; - if ($breakOnError) { - out += ' if (' + ($nextValid) + ') { '; - $closingBraces += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/propertyNames.js b/node_modules/ajv/lib/dotjs/propertyNames.js deleted file mode 100644 index 2a54a08f..00000000 --- a/node_modules/ajv/lib/dotjs/propertyNames.js +++ /dev/null @@ -1,81 +0,0 @@ -'use strict'; -module.exports = function generate_propertyNames(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $errs = 'errs__' + $lvl; - var $it = it.util.copy(it); - var $closingBraces = ''; - $it.level++; - var $nextValid = 'valid' + $it.level; - out += 'var ' + ($errs) + ' = errors;'; - if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { - $it.schema = $schema; - $it.schemaPath = $schemaPath; - $it.errSchemaPath = $errSchemaPath; - var $key = 'key' + $lvl, - $idx = 'idx' + $lvl, - $i = 'i' + $lvl, - $invalidName = '\' + ' + $key + ' + \'', - $dataNxt = $it.dataLevel = it.dataLevel + 1, - $nextData = 'data' + $dataNxt, - $dataProperties = 'dataProperties' + $lvl, - $ownProperties = it.opts.ownProperties, - $currentBaseId = it.baseId; - if ($ownProperties) { - out += ' var ' + ($dataProperties) + ' = undefined; '; - } - if ($ownProperties) { - out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; - } else { - out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; - } - out += ' var startErrs' + ($lvl) + ' = errors; '; - var $passData = $key; - var $wasComposite = it.compositeRule; - it.compositeRule = $it.compositeRule = true; - var $code = it.validate($it); - $it.baseId = $currentBaseId; - if (it.util.varOccurences($code, $nextData) < 2) { - out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; - } else { - out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; - } - it.compositeRule = $it.compositeRule = $wasComposite; - out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' 0) || $propertySch === false : it.util.schemaHasRules($propertySch, it.RULES.all)))) { - $required[$required.length] = $property; - } - } - } - } else { - var $required = $schema; - } - } - if ($isData || $required.length) { - var $currentErrorPath = it.errorPath, - $loopRequired = $isData || $required.length >= it.opts.loopRequired, - $ownProperties = it.opts.ownProperties; - if ($breakOnError) { - out += ' var missing' + ($lvl) + '; '; - if ($loopRequired) { - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; - } - var $i = 'i' + $lvl, - $propertyPath = 'schema' + $lvl + '[' + $i + ']', - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); - } - out += ' var ' + ($valid) + ' = true; '; - if ($isData) { - out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; - } - out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; - if ($ownProperties) { - out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; - } - out += '; if (!' + ($valid) + ') break; } '; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - } else { - out += ' if ( '; - var arr2 = $required; - if (arr2) { - var $propertyKey, $i = -1, - l2 = arr2.length - 1; - while ($i < l2) { - $propertyKey = arr2[$i += 1]; - if ($i) { - out += ' || '; - } - var $prop = it.util.getProperty($propertyKey), - $useData = $data + $prop; - out += ' ( ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; - } - } - out += ') { '; - var $propertyPath = 'missing' + $lvl, - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } else { '; - } - } else { - if ($loopRequired) { - if (!$isData) { - out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; - } - var $i = 'i' + $lvl, - $propertyPath = 'schema' + $lvl + '[' + $i + ']', - $missingProperty = '\' + ' + $propertyPath + ' + \''; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); - } - if ($isData) { - out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; - } - out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; - } - out += ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; - if ($isData) { - out += ' } '; - } - } else { - var arr3 = $required; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $prop = it.util.getProperty($propertyKey), - $missingProperty = it.util.escapeQuotes($propertyKey), - $useData = $data + $prop; - if (it.opts._errorDataPathProperty) { - it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); - } - out += ' if ( ' + ($useData) + ' === undefined '; - if ($ownProperties) { - out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; - } - out += ') { var err = '; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \''; - if (it.opts._errorDataPathProperty) { - out += 'is a required property'; - } else { - out += 'should have required property \\\'' + ($missingProperty) + '\\\''; - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; - } - } - } - } - it.errorPath = $currentErrorPath; - } else if ($breakOnError) { - out += ' if (true) {'; - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/uniqueItems.js b/node_modules/ajv/lib/dotjs/uniqueItems.js deleted file mode 100644 index 0736a0ed..00000000 --- a/node_modules/ajv/lib/dotjs/uniqueItems.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; -module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { - var out = ' '; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - var $isData = it.opts.$data && $schema && $schema.$data, - $schemaValue; - if ($isData) { - out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; - $schemaValue = 'schema' + $lvl; - } else { - $schemaValue = $schema; - } - if (($schema || $isData) && it.opts.uniqueItems !== false) { - if ($isData) { - out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; - } - out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; - var $itemType = it.schema.items && it.schema.items.type, - $typeIsArray = Array.isArray($itemType); - if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { - out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; - } else { - out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; - var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); - out += ' if (' + (it.util[$method]($itemType, 'item', it.opts.strictNumbers, true)) + ') continue; '; - if ($typeIsArray) { - out += ' if (typeof item == \'string\') item = \'"\' + item; '; - } - out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; - } - out += ' } '; - if ($isData) { - out += ' } '; - } - out += ' if (!' + ($valid) + ') { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; - if (it.opts.messages !== false) { - out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; - } - if (it.opts.verbose) { - out += ' , schema: '; - if ($isData) { - out += 'validate.schema' + ($schemaPath); - } else { - out += '' + ($schema); - } - out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - if ($breakOnError) { - out += ' else { '; - } - } else { - if ($breakOnError) { - out += ' if (true) { '; - } - } - return out; -} diff --git a/node_modules/ajv/lib/dotjs/validate.js b/node_modules/ajv/lib/dotjs/validate.js deleted file mode 100644 index f295824b..00000000 --- a/node_modules/ajv/lib/dotjs/validate.js +++ /dev/null @@ -1,482 +0,0 @@ -'use strict'; -module.exports = function generate_validate(it, $keyword, $ruleType) { - var out = ''; - var $async = it.schema.$async === true, - $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), - $id = it.self._getId(it.schema); - if (it.opts.strictKeywords) { - var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); - if ($unknownKwd) { - var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; - if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); - else throw new Error($keywordsMsg); - } - } - if (it.isTop) { - out += ' var validate = '; - if ($async) { - it.async = true; - out += 'async '; - } - out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; - if ($id && (it.opts.sourceCode || it.opts.processCode)) { - out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; - } - } - if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { - var $keyword = 'false schema'; - var $lvl = it.level; - var $dataLvl = it.dataLevel; - var $schema = it.schema[$keyword]; - var $schemaPath = it.schemaPath + it.util.getProperty($keyword); - var $errSchemaPath = it.errSchemaPath + '/' + $keyword; - var $breakOnError = !it.opts.allErrors; - var $errorKeyword; - var $data = 'data' + ($dataLvl || ''); - var $valid = 'valid' + $lvl; - if (it.schema === false) { - if (it.isTop) { - $breakOnError = true; - } else { - out += ' var ' + ($valid) + ' = false; '; - } - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; - if (it.opts.messages !== false) { - out += ' , message: \'boolean schema is false\' '; - } - if (it.opts.verbose) { - out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } else { - if (it.isTop) { - if ($async) { - out += ' return data; '; - } else { - out += ' validate.errors = null; return true; '; - } - } else { - out += ' var ' + ($valid) + ' = true; '; - } - } - if (it.isTop) { - out += ' }; return validate; '; - } - return out; - } - if (it.isTop) { - var $top = it.isTop, - $lvl = it.level = 0, - $dataLvl = it.dataLevel = 0, - $data = 'data'; - it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); - it.baseId = it.baseId || it.rootId; - delete it.isTop; - it.dataPathArr = [""]; - if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored in the schema root'; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - out += ' var vErrors = null; '; - out += ' var errors = 0; '; - out += ' if (rootData === undefined) rootData = data; '; - } else { - var $lvl = it.level, - $dataLvl = it.dataLevel, - $data = 'data' + ($dataLvl || ''); - if ($id) it.baseId = it.resolve.url(it.baseId, $id); - if ($async && !it.async) throw new Error('async schema in sync schema'); - out += ' var errs_' + ($lvl) + ' = errors;'; - } - var $valid = 'valid' + $lvl, - $breakOnError = !it.opts.allErrors, - $closingBraces1 = '', - $closingBraces2 = ''; - var $errorKeyword; - var $typeSchema = it.schema.type, - $typeIsArray = Array.isArray($typeSchema); - if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { - if ($typeIsArray) { - if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); - } else if ($typeSchema != 'null') { - $typeSchema = [$typeSchema, 'null']; - $typeIsArray = true; - } - } - if ($typeIsArray && $typeSchema.length == 1) { - $typeSchema = $typeSchema[0]; - $typeIsArray = false; - } - if (it.schema.$ref && $refKeywords) { - if (it.opts.extendRefs == 'fail') { - throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); - } else if (it.opts.extendRefs !== true) { - $refKeywords = false; - it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); - } - } - if (it.schema.$comment && it.opts.$comment) { - out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); - } - if ($typeSchema) { - if (it.opts.coerceTypes) { - var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); - } - var $rulesGroup = it.RULES.types[$typeSchema]; - if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type'; - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type', - $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; - out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { '; - if ($coerceToTypes) { - var $dataType = 'dataType' + $lvl, - $coerced = 'coerced' + $lvl; - out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; '; - if (it.opts.coerceTypes == 'array') { - out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } '; - } - out += ' if (' + ($coerced) + ' !== undefined) ; '; - var arr1 = $coerceToTypes; - if (arr1) { - var $type, $i = -1, - l1 = arr1.length - 1; - while ($i < l1) { - $type = arr1[$i += 1]; - if ($type == 'string') { - out += ' else if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; - } else if ($type == 'number' || $type == 'integer') { - out += ' else if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; - if ($type == 'integer') { - out += ' && !(' + ($data) + ' % 1)'; - } - out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; - } else if ($type == 'boolean') { - out += ' else if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; - } else if ($type == 'null') { - out += ' else if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; - } else if (it.opts.coerceTypes == 'array' && $type == 'array') { - out += ' else if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; - } - } - } - out += ' else { '; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } if (' + ($coerced) + ' !== undefined) { '; - var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', - $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; - out += ' ' + ($data) + ' = ' + ($coerced) + '; '; - if (!$dataLvl) { - out += 'if (' + ($parentData) + ' !== undefined)'; - } - out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; - } else { - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - } - out += ' } '; - } - } - if (it.schema.$ref && !$refKeywords) { - out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; - if ($breakOnError) { - out += ' } if (errors === '; - if ($top) { - out += '0'; - } else { - out += 'errs_' + ($lvl); - } - out += ') { '; - $closingBraces2 += '}'; - } - } else { - var arr2 = it.RULES; - if (arr2) { - var $rulesGroup, i2 = -1, - l2 = arr2.length - 1; - while (i2 < l2) { - $rulesGroup = arr2[i2 += 1]; - if ($shouldUseGroup($rulesGroup)) { - if ($rulesGroup.type) { - out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { '; - } - if (it.opts.useDefaults) { - if ($rulesGroup.type == 'object' && it.schema.properties) { - var $schema = it.schema.properties, - $schemaKeys = Object.keys($schema); - var arr3 = $schemaKeys; - if (arr3) { - var $propertyKey, i3 = -1, - l3 = arr3.length - 1; - while (i3 < l3) { - $propertyKey = arr3[i3 += 1]; - var $sch = $schema[$propertyKey]; - if ($sch.default !== undefined) { - var $passData = $data + it.util.getProperty($propertyKey); - if (it.compositeRule) { - if (it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored for: ' + $passData; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - } else { - out += ' if (' + ($passData) + ' === undefined '; - if (it.opts.useDefaults == 'empty') { - out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; - } - out += ' ) ' + ($passData) + ' = '; - if (it.opts.useDefaults == 'shared') { - out += ' ' + (it.useDefault($sch.default)) + ' '; - } else { - out += ' ' + (JSON.stringify($sch.default)) + ' '; - } - out += '; '; - } - } - } - } - } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { - var arr4 = it.schema.items; - if (arr4) { - var $sch, $i = -1, - l4 = arr4.length - 1; - while ($i < l4) { - $sch = arr4[$i += 1]; - if ($sch.default !== undefined) { - var $passData = $data + '[' + $i + ']'; - if (it.compositeRule) { - if (it.opts.strictDefaults) { - var $defaultMsg = 'default is ignored for: ' + $passData; - if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); - else throw new Error($defaultMsg); - } - } else { - out += ' if (' + ($passData) + ' === undefined '; - if (it.opts.useDefaults == 'empty') { - out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; - } - out += ' ) ' + ($passData) + ' = '; - if (it.opts.useDefaults == 'shared') { - out += ' ' + (it.useDefault($sch.default)) + ' '; - } else { - out += ' ' + (JSON.stringify($sch.default)) + ' '; - } - out += '; '; - } - } - } - } - } - } - var arr5 = $rulesGroup.rules; - if (arr5) { - var $rule, i5 = -1, - l5 = arr5.length - 1; - while (i5 < l5) { - $rule = arr5[i5 += 1]; - if ($shouldUseRule($rule)) { - var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); - if ($code) { - out += ' ' + ($code) + ' '; - if ($breakOnError) { - $closingBraces1 += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces1) + ' '; - $closingBraces1 = ''; - } - if ($rulesGroup.type) { - out += ' } '; - if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { - out += ' else { '; - var $schemaPath = it.schemaPath + '.type', - $errSchemaPath = it.errSchemaPath + '/type'; - var $$outStack = $$outStack || []; - $$outStack.push(out); - out = ''; /* istanbul ignore else */ - if (it.createErrors !== false) { - out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' } '; - if (it.opts.messages !== false) { - out += ' , message: \'should be '; - if ($typeIsArray) { - out += '' + ($typeSchema.join(",")); - } else { - out += '' + ($typeSchema); - } - out += '\' '; - } - if (it.opts.verbose) { - out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; - } - out += ' } '; - } else { - out += ' {} '; - } - var __err = out; - out = $$outStack.pop(); - if (!it.compositeRule && $breakOnError) { - /* istanbul ignore if */ - if (it.async) { - out += ' throw new ValidationError([' + (__err) + ']); '; - } else { - out += ' validate.errors = [' + (__err) + ']; return false; '; - } - } else { - out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; - } - out += ' } '; - } - } - if ($breakOnError) { - out += ' if (errors === '; - if ($top) { - out += '0'; - } else { - out += 'errs_' + ($lvl); - } - out += ') { '; - $closingBraces2 += '}'; - } - } - } - } - } - if ($breakOnError) { - out += ' ' + ($closingBraces2) + ' '; - } - if ($top) { - if ($async) { - out += ' if (errors === 0) return data; '; - out += ' else throw new ValidationError(vErrors); '; - } else { - out += ' validate.errors = vErrors; '; - out += ' return errors === 0; '; - } - out += ' }; return validate;'; - } else { - out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; - } - - function $shouldUseGroup($rulesGroup) { - var rules = $rulesGroup.rules; - for (var i = 0; i < rules.length; i++) - if ($shouldUseRule(rules[i])) return true; - } - - function $shouldUseRule($rule) { - return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); - } - - function $ruleImplementsSomeKeyword($rule) { - var impl = $rule.implements; - for (var i = 0; i < impl.length; i++) - if (it.schema[impl[i]] !== undefined) return true; - } - return out; -} diff --git a/node_modules/ajv/lib/keyword.js b/node_modules/ajv/lib/keyword.js deleted file mode 100644 index 06da9a2d..00000000 --- a/node_modules/ajv/lib/keyword.js +++ /dev/null @@ -1,146 +0,0 @@ -'use strict'; - -var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; -var customRuleCode = require('./dotjs/custom'); -var definitionSchema = require('./definition_schema'); - -module.exports = { - add: addKeyword, - get: getKeyword, - remove: removeKeyword, - validate: validateKeyword -}; - - -/** - * Define custom keyword - * @this Ajv - * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). - * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. - * @return {Ajv} this for method chaining - */ -function addKeyword(keyword, definition) { - /* jshint validthis: true */ - /* eslint no-shadow: 0 */ - var RULES = this.RULES; - if (RULES.keywords[keyword]) - throw new Error('Keyword ' + keyword + ' is already defined'); - - if (!IDENTIFIER.test(keyword)) - throw new Error('Keyword ' + keyword + ' is not a valid identifier'); - - if (definition) { - this.validateKeyword(definition, true); - - var dataType = definition.type; - if (Array.isArray(dataType)) { - for (var i=0; i ../ajv-dist/bower.json - cd ../ajv-dist - - if [[ `git status --porcelain` ]]; then - echo "Changes detected. Updating master branch..." - git add -A - git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER" - git push --quiet origin master > /dev/null 2>&1 - fi - - echo "Publishing tag..." - - git tag $TRAVIS_TAG - git push --tags > /dev/null 2>&1 - - echo "Done" -fi diff --git a/node_modules/ajv/scripts/travis-gh-pages b/node_modules/ajv/scripts/travis-gh-pages deleted file mode 100644 index b3d4f3d0..00000000 --- a/node_modules/ajv/scripts/travis-gh-pages +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then - git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && { - rm -rf ../gh-pages - git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv.git ../gh-pages - mkdir -p ../gh-pages/_source - cp *.md ../gh-pages/_source - cp LICENSE ../gh-pages/_source - currentDir=$(pwd) - cd ../gh-pages - $currentDir/node_modules/.bin/gh-pages-generator - # remove logo from README - sed -i -E "s/]+ajv_logo[^>]+>//" index.md - git config user.email "$GIT_USER_EMAIL" - git config user.name "$GIT_USER_NAME" - git add . - git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER" - git push --quiet origin gh-pages > /dev/null 2>&1 - } -fi diff --git a/node_modules/asynckit/LICENSE b/node_modules/asynckit/LICENSE deleted file mode 100644 index c9eca5dd..00000000 --- a/node_modules/asynckit/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Alex Indigo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/asynckit/README.md b/node_modules/asynckit/README.md deleted file mode 100644 index ddcc7e6b..00000000 --- a/node_modules/asynckit/README.md +++ /dev/null @@ -1,233 +0,0 @@ -# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit) - -Minimal async jobs utility library, with streams support. - -[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit) -[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit) -[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit) - -[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master) -[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit) -[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit) - - - -AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects. -Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method. - -It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators. - -| compression | size | -| :----------------- | -------: | -| asynckit.js | 12.34 kB | -| asynckit.min.js | 4.11 kB | -| asynckit.min.js.gz | 1.47 kB | - - -## Install - -```sh -$ npm install --save asynckit -``` - -## Examples - -### Parallel Jobs - -Runs iterator over provided array in parallel. Stores output in the `result` array, -on the matching positions. In unlikely event of an error from one of the jobs, -will terminate rest of the active jobs (if abort function is provided) -and return error along with salvaged data to the main callback function. - -#### Input Array - -```javascript -var parallel = require('asynckit').parallel - , assert = require('assert') - ; - -var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] - , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] - , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] - , target = [] - ; - -parallel(source, asyncJob, function(err, result) -{ - assert.deepEqual(result, expectedResult); - assert.deepEqual(target, expectedTarget); -}); - -// async job accepts one element from the array -// and a callback function -function asyncJob(item, cb) -{ - // different delays (in ms) per item - var delay = item * 25; - - // pretend different jobs take different time to finish - // and not in consequential order - var timeoutId = setTimeout(function() { - target.push(item); - cb(null, item * 2); - }, delay); - - // allow to cancel "leftover" jobs upon error - // return function, invoking of which will abort this job - return clearTimeout.bind(null, timeoutId); -} -``` - -More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js). - -#### Input Object - -Also it supports named jobs, listed via object. - -```javascript -var parallel = require('asynckit/parallel') - , assert = require('assert') - ; - -var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } - , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } - , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] - , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ] - , target = [] - , keys = [] - ; - -parallel(source, asyncJob, function(err, result) -{ - assert.deepEqual(result, expectedResult); - assert.deepEqual(target, expectedTarget); - assert.deepEqual(keys, expectedKeys); -}); - -// supports full value, key, callback (shortcut) interface -function asyncJob(item, key, cb) -{ - // different delays (in ms) per item - var delay = item * 25; - - // pretend different jobs take different time to finish - // and not in consequential order - var timeoutId = setTimeout(function() { - keys.push(key); - target.push(item); - cb(null, item * 2); - }, delay); - - // allow to cancel "leftover" jobs upon error - // return function, invoking of which will abort this job - return clearTimeout.bind(null, timeoutId); -} -``` - -More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js). - -### Serial Jobs - -Runs iterator over provided array sequentially. Stores output in the `result` array, -on the matching positions. In unlikely event of an error from one of the jobs, -will not proceed to the rest of the items in the list -and return error along with salvaged data to the main callback function. - -#### Input Array - -```javascript -var serial = require('asynckit/serial') - , assert = require('assert') - ; - -var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] - , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] - , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] - , target = [] - ; - -serial(source, asyncJob, function(err, result) -{ - assert.deepEqual(result, expectedResult); - assert.deepEqual(target, expectedTarget); -}); - -// extended interface (item, key, callback) -// also supported for arrays -function asyncJob(item, key, cb) -{ - target.push(key); - - // it will be automatically made async - // even it iterator "returns" in the same event loop - cb(null, item * 2); -} -``` - -More examples could be found in [test/test-serial-array.js](test/test-serial-array.js). - -#### Input Object - -Also it supports named jobs, listed via object. - -```javascript -var serial = require('asynckit').serial - , assert = require('assert') - ; - -var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] - , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] - , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] - , target = [] - ; - -var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } - , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } - , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ] - , target = [] - ; - - -serial(source, asyncJob, function(err, result) -{ - assert.deepEqual(result, expectedResult); - assert.deepEqual(target, expectedTarget); -}); - -// shortcut interface (item, callback) -// works for object as well as for the arrays -function asyncJob(item, cb) -{ - target.push(item); - - // it will be automatically made async - // even it iterator "returns" in the same event loop - cb(null, item * 2); -} -``` - -More examples could be found in [test/test-serial-object.js](test/test-serial-object.js). - -_Note: Since _object_ is an _unordered_ collection of properties, -it may produce unexpected results with sequential iterations. -Whenever order of the jobs' execution is important please use `serialOrdered` method._ - -### Ordered Serial Iterations - -TBD - -For example [compare-property](compare-property) package. - -### Streaming interface - -TBD - -## Want to Know More? - -More examples can be found in [test folder](test/). - -Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions. - -## License - -AsyncKit is licensed under the MIT license. diff --git a/node_modules/asynckit/bench.js b/node_modules/asynckit/bench.js deleted file mode 100644 index c612f1a5..00000000 --- a/node_modules/asynckit/bench.js +++ /dev/null @@ -1,76 +0,0 @@ -/* eslint no-console: "off" */ - -var asynckit = require('./') - , async = require('async') - , assert = require('assert') - , expected = 0 - ; - -var Benchmark = require('benchmark'); -var suite = new Benchmark.Suite; - -var source = []; -for (var z = 1; z < 100; z++) -{ - source.push(z); - expected += z; -} - -suite -// add tests - -.add('async.map', function(deferred) -{ - var total = 0; - - async.map(source, - function(i, cb) - { - setImmediate(function() - { - total += i; - cb(null, total); - }); - }, - function(err, result) - { - assert.ifError(err); - assert.equal(result[result.length - 1], expected); - deferred.resolve(); - }); -}, {'defer': true}) - - -.add('asynckit.parallel', function(deferred) -{ - var total = 0; - - asynckit.parallel(source, - function(i, cb) - { - setImmediate(function() - { - total += i; - cb(null, total); - }); - }, - function(err, result) - { - assert.ifError(err); - assert.equal(result[result.length - 1], expected); - deferred.resolve(); - }); -}, {'defer': true}) - - -// add listeners -.on('cycle', function(ev) -{ - console.log(String(ev.target)); -}) -.on('complete', function() -{ - console.log('Fastest is ' + this.filter('fastest').map('name')); -}) -// run async -.run({ 'async': true }); diff --git a/node_modules/asynckit/index.js b/node_modules/asynckit/index.js deleted file mode 100644 index 455f9454..00000000 --- a/node_modules/asynckit/index.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = -{ - parallel : require('./parallel.js'), - serial : require('./serial.js'), - serialOrdered : require('./serialOrdered.js') -}; diff --git a/node_modules/asynckit/lib/abort.js b/node_modules/asynckit/lib/abort.js deleted file mode 100644 index 114367e5..00000000 --- a/node_modules/asynckit/lib/abort.js +++ /dev/null @@ -1,29 +0,0 @@ -// API -module.exports = abort; - -/** - * Aborts leftover active jobs - * - * @param {object} state - current state object - */ -function abort(state) -{ - Object.keys(state.jobs).forEach(clean.bind(state)); - - // reset leftover jobs - state.jobs = {}; -} - -/** - * Cleans up leftover job by invoking abort function for the provided job id - * - * @this state - * @param {string|number} key - job id to abort - */ -function clean(key) -{ - if (typeof this.jobs[key] == 'function') - { - this.jobs[key](); - } -} diff --git a/node_modules/asynckit/lib/async.js b/node_modules/asynckit/lib/async.js deleted file mode 100644 index 7f1288a4..00000000 --- a/node_modules/asynckit/lib/async.js +++ /dev/null @@ -1,34 +0,0 @@ -var defer = require('./defer.js'); - -// API -module.exports = async; - -/** - * Runs provided callback asynchronously - * even if callback itself is not - * - * @param {function} callback - callback to invoke - * @returns {function} - augmented callback - */ -function async(callback) -{ - var isAsync = false; - - // check if async happened - defer(function() { isAsync = true; }); - - return function async_callback(err, result) - { - if (isAsync) - { - callback(err, result); - } - else - { - defer(function nextTick_callback() - { - callback(err, result); - }); - } - }; -} diff --git a/node_modules/asynckit/lib/defer.js b/node_modules/asynckit/lib/defer.js deleted file mode 100644 index b67110c7..00000000 --- a/node_modules/asynckit/lib/defer.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = defer; - -/** - * Runs provided function on next iteration of the event loop - * - * @param {function} fn - function to run - */ -function defer(fn) -{ - var nextTick = typeof setImmediate == 'function' - ? setImmediate - : ( - typeof process == 'object' && typeof process.nextTick == 'function' - ? process.nextTick - : null - ); - - if (nextTick) - { - nextTick(fn); - } - else - { - setTimeout(fn, 0); - } -} diff --git a/node_modules/asynckit/lib/iterate.js b/node_modules/asynckit/lib/iterate.js deleted file mode 100644 index 5d2839a5..00000000 --- a/node_modules/asynckit/lib/iterate.js +++ /dev/null @@ -1,75 +0,0 @@ -var async = require('./async.js') - , abort = require('./abort.js') - ; - -// API -module.exports = iterate; - -/** - * Iterates over each job object - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {object} state - current job status - * @param {function} callback - invoked when all elements processed - */ -function iterate(list, iterator, state, callback) -{ - // store current index - var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; - - state.jobs[key] = runJob(iterator, key, list[key], function(error, output) - { - // don't repeat yourself - // skip secondary callbacks - if (!(key in state.jobs)) - { - return; - } - - // clean up jobs - delete state.jobs[key]; - - if (error) - { - // don't process rest of the results - // stop still active jobs - // and reset the list - abort(state); - } - else - { - state.results[key] = output; - } - - // return salvaged results - callback(error, state.results); - }); -} - -/** - * Runs iterator over provided job element - * - * @param {function} iterator - iterator to invoke - * @param {string|number} key - key/index of the element in the list of jobs - * @param {mixed} item - job description - * @param {function} callback - invoked after iterator is done with the job - * @returns {function|mixed} - job abort function or something else - */ -function runJob(iterator, key, item, callback) -{ - var aborter; - - // allow shortcut if iterator expects only two arguments - if (iterator.length == 2) - { - aborter = iterator(item, async(callback)); - } - // otherwise go with full three arguments - else - { - aborter = iterator(item, key, async(callback)); - } - - return aborter; -} diff --git a/node_modules/asynckit/lib/readable_asynckit.js b/node_modules/asynckit/lib/readable_asynckit.js deleted file mode 100644 index 78ad240f..00000000 --- a/node_modules/asynckit/lib/readable_asynckit.js +++ /dev/null @@ -1,91 +0,0 @@ -var streamify = require('./streamify.js') - , defer = require('./defer.js') - ; - -// API -module.exports = ReadableAsyncKit; - -/** - * Base constructor for all streams - * used to hold properties/methods - */ -function ReadableAsyncKit() -{ - ReadableAsyncKit.super_.apply(this, arguments); - - // list of active jobs - this.jobs = {}; - - // add stream methods - this.destroy = destroy; - this._start = _start; - this._read = _read; -} - -/** - * Destroys readable stream, - * by aborting outstanding jobs - * - * @returns {void} - */ -function destroy() -{ - if (this.destroyed) - { - return; - } - - this.destroyed = true; - - if (typeof this.terminator == 'function') - { - this.terminator(); - } -} - -/** - * Starts provided jobs in async manner - * - * @private - */ -function _start() -{ - // first argument – runner function - var runner = arguments[0] - // take away first argument - , args = Array.prototype.slice.call(arguments, 1) - // second argument - input data - , input = args[0] - // last argument - result callback - , endCb = streamify.callback.call(this, args[args.length - 1]) - ; - - args[args.length - 1] = endCb; - // third argument - iterator - args[1] = streamify.iterator.call(this, args[1]); - - // allow time for proper setup - defer(function() - { - if (!this.destroyed) - { - this.terminator = runner.apply(null, args); - } - else - { - endCb(null, Array.isArray(input) ? [] : {}); - } - }.bind(this)); -} - - -/** - * Implement _read to comply with Readable streams - * Doesn't really make sense for flowing object mode - * - * @private - */ -function _read() -{ - -} diff --git a/node_modules/asynckit/lib/readable_parallel.js b/node_modules/asynckit/lib/readable_parallel.js deleted file mode 100644 index 5d2929f7..00000000 --- a/node_modules/asynckit/lib/readable_parallel.js +++ /dev/null @@ -1,25 +0,0 @@ -var parallel = require('../parallel.js'); - -// API -module.exports = ReadableParallel; - -/** - * Streaming wrapper to `asynckit.parallel` - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {stream.Readable#} - */ -function ReadableParallel(list, iterator, callback) -{ - if (!(this instanceof ReadableParallel)) - { - return new ReadableParallel(list, iterator, callback); - } - - // turn on object mode - ReadableParallel.super_.call(this, {objectMode: true}); - - this._start(parallel, list, iterator, callback); -} diff --git a/node_modules/asynckit/lib/readable_serial.js b/node_modules/asynckit/lib/readable_serial.js deleted file mode 100644 index 78226982..00000000 --- a/node_modules/asynckit/lib/readable_serial.js +++ /dev/null @@ -1,25 +0,0 @@ -var serial = require('../serial.js'); - -// API -module.exports = ReadableSerial; - -/** - * Streaming wrapper to `asynckit.serial` - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {stream.Readable#} - */ -function ReadableSerial(list, iterator, callback) -{ - if (!(this instanceof ReadableSerial)) - { - return new ReadableSerial(list, iterator, callback); - } - - // turn on object mode - ReadableSerial.super_.call(this, {objectMode: true}); - - this._start(serial, list, iterator, callback); -} diff --git a/node_modules/asynckit/lib/readable_serial_ordered.js b/node_modules/asynckit/lib/readable_serial_ordered.js deleted file mode 100644 index 3de89c47..00000000 --- a/node_modules/asynckit/lib/readable_serial_ordered.js +++ /dev/null @@ -1,29 +0,0 @@ -var serialOrdered = require('../serialOrdered.js'); - -// API -module.exports = ReadableSerialOrdered; -// expose sort helpers -module.exports.ascending = serialOrdered.ascending; -module.exports.descending = serialOrdered.descending; - -/** - * Streaming wrapper to `asynckit.serialOrdered` - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} sortMethod - custom sort function - * @param {function} callback - invoked when all elements processed - * @returns {stream.Readable#} - */ -function ReadableSerialOrdered(list, iterator, sortMethod, callback) -{ - if (!(this instanceof ReadableSerialOrdered)) - { - return new ReadableSerialOrdered(list, iterator, sortMethod, callback); - } - - // turn on object mode - ReadableSerialOrdered.super_.call(this, {objectMode: true}); - - this._start(serialOrdered, list, iterator, sortMethod, callback); -} diff --git a/node_modules/asynckit/lib/state.js b/node_modules/asynckit/lib/state.js deleted file mode 100644 index cbea7ad8..00000000 --- a/node_modules/asynckit/lib/state.js +++ /dev/null @@ -1,37 +0,0 @@ -// API -module.exports = state; - -/** - * Creates initial state object - * for iteration over list - * - * @param {array|object} list - list to iterate over - * @param {function|null} sortMethod - function to use for keys sort, - * or `null` to keep them as is - * @returns {object} - initial state object - */ -function state(list, sortMethod) -{ - var isNamedList = !Array.isArray(list) - , initState = - { - index : 0, - keyedList: isNamedList || sortMethod ? Object.keys(list) : null, - jobs : {}, - results : isNamedList ? {} : [], - size : isNamedList ? Object.keys(list).length : list.length - } - ; - - if (sortMethod) - { - // sort array keys based on it's values - // sort object's keys just on own merit - initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) - { - return sortMethod(list[a], list[b]); - }); - } - - return initState; -} diff --git a/node_modules/asynckit/lib/streamify.js b/node_modules/asynckit/lib/streamify.js deleted file mode 100644 index f56a1c92..00000000 --- a/node_modules/asynckit/lib/streamify.js +++ /dev/null @@ -1,141 +0,0 @@ -var async = require('./async.js'); - -// API -module.exports = { - iterator: wrapIterator, - callback: wrapCallback -}; - -/** - * Wraps iterators with long signature - * - * @this ReadableAsyncKit# - * @param {function} iterator - function to wrap - * @returns {function} - wrapped function - */ -function wrapIterator(iterator) -{ - var stream = this; - - return function(item, key, cb) - { - var aborter - , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key)) - ; - - stream.jobs[key] = wrappedCb; - - // it's either shortcut (item, cb) - if (iterator.length == 2) - { - aborter = iterator(item, wrappedCb); - } - // or long format (item, key, cb) - else - { - aborter = iterator(item, key, wrappedCb); - } - - return aborter; - }; -} - -/** - * Wraps provided callback function - * allowing to execute snitch function before - * real callback - * - * @this ReadableAsyncKit# - * @param {function} callback - function to wrap - * @returns {function} - wrapped function - */ -function wrapCallback(callback) -{ - var stream = this; - - var wrapped = function(error, result) - { - return finisher.call(stream, error, result, callback); - }; - - return wrapped; -} - -/** - * Wraps provided iterator callback function - * makes sure snitch only called once, - * but passes secondary calls to the original callback - * - * @this ReadableAsyncKit# - * @param {function} callback - callback to wrap - * @param {number|string} key - iteration key - * @returns {function} wrapped callback - */ -function wrapIteratorCallback(callback, key) -{ - var stream = this; - - return function(error, output) - { - // don't repeat yourself - if (!(key in stream.jobs)) - { - callback(error, output); - return; - } - - // clean up jobs - delete stream.jobs[key]; - - return streamer.call(stream, error, {key: key, value: output}, callback); - }; -} - -/** - * Stream wrapper for iterator callback - * - * @this ReadableAsyncKit# - * @param {mixed} error - error response - * @param {mixed} output - iterator output - * @param {function} callback - callback that expects iterator results - */ -function streamer(error, output, callback) -{ - if (error && !this.error) - { - this.error = error; - this.pause(); - this.emit('error', error); - // send back value only, as expected - callback(error, output && output.value); - return; - } - - // stream stuff - this.push(output); - - // back to original track - // send back value only, as expected - callback(error, output && output.value); -} - -/** - * Stream wrapper for finishing callback - * - * @this ReadableAsyncKit# - * @param {mixed} error - error response - * @param {mixed} output - iterator output - * @param {function} callback - callback that expects final results - */ -function finisher(error, output, callback) -{ - // signal end of the stream - // only for successfully finished streams - if (!error) - { - this.push(null); - } - - // back to original track - callback(error, output); -} diff --git a/node_modules/asynckit/lib/terminator.js b/node_modules/asynckit/lib/terminator.js deleted file mode 100644 index d6eb9921..00000000 --- a/node_modules/asynckit/lib/terminator.js +++ /dev/null @@ -1,29 +0,0 @@ -var abort = require('./abort.js') - , async = require('./async.js') - ; - -// API -module.exports = terminator; - -/** - * Terminates jobs in the attached state context - * - * @this AsyncKitState# - * @param {function} callback - final callback to invoke after termination - */ -function terminator(callback) -{ - if (!Object.keys(this.jobs).length) - { - return; - } - - // fast forward iteration index - this.index = this.size; - - // abort jobs - abort(this); - - // send back results we have so far - async(callback)(null, this.results); -} diff --git a/node_modules/asynckit/package.json b/node_modules/asynckit/package.json deleted file mode 100644 index 51147d65..00000000 --- a/node_modules/asynckit/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "asynckit", - "version": "0.4.0", - "description": "Minimal async jobs utility library, with streams support", - "main": "index.js", - "scripts": { - "clean": "rimraf coverage", - "lint": "eslint *.js lib/*.js test/*.js", - "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec", - "win-test": "tape test/test-*.js", - "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec", - "report": "istanbul report", - "size": "browserify index.js | size-table asynckit", - "debug": "tape test/test-*.js" - }, - "pre-commit": [ - "clean", - "lint", - "test", - "browser", - "report", - "size" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/alexindigo/asynckit.git" - }, - "keywords": [ - "async", - "jobs", - "parallel", - "serial", - "iterator", - "array", - "object", - "stream", - "destroy", - "terminate", - "abort" - ], - "author": "Alex Indigo ", - "license": "MIT", - "bugs": { - "url": "https://github.com/alexindigo/asynckit/issues" - }, - "homepage": "https://github.com/alexindigo/asynckit#readme", - "devDependencies": { - "browserify": "^13.0.0", - "browserify-istanbul": "^2.0.0", - "coveralls": "^2.11.9", - "eslint": "^2.9.0", - "istanbul": "^0.4.3", - "obake": "^0.1.2", - "phantomjs-prebuilt": "^2.1.7", - "pre-commit": "^1.1.3", - "reamde": "^1.1.0", - "rimraf": "^2.5.2", - "size-table": "^0.2.0", - "tap-spec": "^4.1.1", - "tape": "^4.5.1" - }, - "dependencies": {} -} diff --git a/node_modules/asynckit/parallel.js b/node_modules/asynckit/parallel.js deleted file mode 100644 index 3c50344d..00000000 --- a/node_modules/asynckit/parallel.js +++ /dev/null @@ -1,43 +0,0 @@ -var iterate = require('./lib/iterate.js') - , initState = require('./lib/state.js') - , terminator = require('./lib/terminator.js') - ; - -// Public API -module.exports = parallel; - -/** - * Runs iterator over provided array elements in parallel - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function parallel(list, iterator, callback) -{ - var state = initState(list); - - while (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, function(error, result) - { - if (error) - { - callback(error, result); - return; - } - - // looks like it's the last one - if (Object.keys(state.jobs).length === 0) - { - callback(null, state.results); - return; - } - }); - - state.index++; - } - - return terminator.bind(state, callback); -} diff --git a/node_modules/asynckit/serial.js b/node_modules/asynckit/serial.js deleted file mode 100644 index 6cd949a6..00000000 --- a/node_modules/asynckit/serial.js +++ /dev/null @@ -1,17 +0,0 @@ -var serialOrdered = require('./serialOrdered.js'); - -// Public API -module.exports = serial; - -/** - * Runs iterator over provided array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serial(list, iterator, callback) -{ - return serialOrdered(list, iterator, null, callback); -} diff --git a/node_modules/asynckit/serialOrdered.js b/node_modules/asynckit/serialOrdered.js deleted file mode 100644 index 607eafea..00000000 --- a/node_modules/asynckit/serialOrdered.js +++ /dev/null @@ -1,75 +0,0 @@ -var iterate = require('./lib/iterate.js') - , initState = require('./lib/state.js') - , terminator = require('./lib/terminator.js') - ; - -// Public API -module.exports = serialOrdered; -// sorting helpers -module.exports.ascending = ascending; -module.exports.descending = descending; - -/** - * Runs iterator over provided sorted array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} sortMethod - custom sort function - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serialOrdered(list, iterator, sortMethod, callback) -{ - var state = initState(list, sortMethod); - - iterate(list, iterator, state, function iteratorHandler(error, result) - { - if (error) - { - callback(error, result); - return; - } - - state.index++; - - // are we there yet? - if (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, iteratorHandler); - return; - } - - // done here - callback(null, state.results); - }); - - return terminator.bind(state, callback); -} - -/* - * -- Sort methods - */ - -/** - * sort helper to sort array elements in ascending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function ascending(a, b) -{ - return a < b ? -1 : a > b ? 1 : 0; -} - -/** - * sort helper to sort array elements in descending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function descending(a, b) -{ - return -1 * ascending(a, b); -} diff --git a/node_modules/asynckit/stream.js b/node_modules/asynckit/stream.js deleted file mode 100644 index d43465f9..00000000 --- a/node_modules/asynckit/stream.js +++ /dev/null @@ -1,21 +0,0 @@ -var inherits = require('util').inherits - , Readable = require('stream').Readable - , ReadableAsyncKit = require('./lib/readable_asynckit.js') - , ReadableParallel = require('./lib/readable_parallel.js') - , ReadableSerial = require('./lib/readable_serial.js') - , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js') - ; - -// API -module.exports = -{ - parallel : ReadableParallel, - serial : ReadableSerial, - serialOrdered : ReadableSerialOrdered, -}; - -inherits(ReadableAsyncKit, Readable); - -inherits(ReadableParallel, ReadableAsyncKit); -inherits(ReadableSerial, ReadableAsyncKit); -inherits(ReadableSerialOrdered, ReadableAsyncKit); diff --git a/node_modules/axios/CHANGELOG.md b/node_modules/axios/CHANGELOG.md deleted file mode 100644 index a8e01a4d..00000000 --- a/node_modules/axios/CHANGELOG.md +++ /dev/null @@ -1,874 +0,0 @@ -# Changelog - -## [1.6.8](https://github.com/axios/axios/compare/v1.6.7...v1.6.8) (2024-03-15) - - -### Bug Fixes - -* **AxiosHeaders:** fix AxiosHeaders conversion to an object during config merging ([#6243](https://github.com/axios/axios/issues/6243)) ([2656612](https://github.com/axios/axios/commit/2656612bc10fe2757e9832b708ed773ab340b5cb)) -* **import:** use named export for EventEmitter; ([7320430](https://github.com/axios/axios/commit/7320430aef2e1ba2b89488a0eaf42681165498b1)) -* **vulnerability:** update follow-redirects to 1.15.6 ([#6300](https://github.com/axios/axios/issues/6300)) ([8786e0f](https://github.com/axios/axios/commit/8786e0ff55a8c68d4ca989801ad26df924042e27)) - -### Contributors to this release - -- avatar [Jay](https://github.com/jasonsaayman "+4572/-3446 (#6238 )") -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-0 (#6231 )") -- avatar [Mitchell](https://github.com/Creaous "+9/-9 (#6300 )") -- avatar [Emmanuel](https://github.com/mannoeu "+2/-2 (#6196 )") -- avatar [Lucas Keller](https://github.com/ljkeller "+3/-0 (#6194 )") -- avatar [Aditya Mogili](https://github.com/ADITYA-176 "+1/-1 ()") -- avatar [Miroslav Petrov](https://github.com/petrovmiroslav "+1/-1 (#6243 )") - -## [1.6.7](https://github.com/axios/axios/compare/v1.6.6...v1.6.7) (2024-01-25) - - -### Bug Fixes - -* capture async stack only for rejections with native error objects; ([#6203](https://github.com/axios/axios/issues/6203)) ([1a08f90](https://github.com/axios/axios/commit/1a08f90f402336e4d00e9ee82f211c6adb1640b0)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-26 (#6203 )") -- avatar [zhoulixiang](https://github.com/zh-lx "+0/-3 (#6186 )") - -## [1.6.6](https://github.com/axios/axios/compare/v1.6.5...v1.6.6) (2024-01-24) - - -### Bug Fixes - -* fixed missed dispatchBeforeRedirect argument ([#5778](https://github.com/axios/axios/issues/5778)) ([a1938ff](https://github.com/axios/axios/commit/a1938ff073fcb0f89011f001dfbc1fa1dc995e39)) -* wrap errors to improve async stack trace ([#5987](https://github.com/axios/axios/issues/5987)) ([123f354](https://github.com/axios/axios/commit/123f354b920f154a209ea99f76b7b2ef3d9ebbab)) - -### Contributors to this release - -- avatar [Ilya Priven](https://github.com/ikonst "+91/-8 (#5987 )") -- avatar [Zao Soula](https://github.com/zaosoula "+6/-6 (#5778 )") - -## [1.6.5](https://github.com/axios/axios/compare/v1.6.4...v1.6.5) (2024-01-05) - - -### Bug Fixes - -* **ci:** refactor notify action as a job of publish action; ([#6176](https://github.com/axios/axios/issues/6176)) ([0736f95](https://github.com/axios/axios/commit/0736f95ce8776366dc9ca569f49ba505feb6373c)) -* **dns:** fixed lookup error handling; ([#6175](https://github.com/axios/axios/issues/6175)) ([f4f2b03](https://github.com/axios/axios/commit/f4f2b039dd38eb4829e8583caede4ed6d2dd59be)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+41/-6 (#6176 #6175 )") -- avatar [Jay](https://github.com/jasonsaayman "+6/-1 ()") - -## [1.6.4](https://github.com/axios/axios/compare/v1.6.3...v1.6.4) (2024-01-03) - - -### Bug Fixes - -* **security:** fixed formToJSON prototype pollution vulnerability; ([#6167](https://github.com/axios/axios/issues/6167)) ([3c0c11c](https://github.com/axios/axios/commit/3c0c11cade045c4412c242b5727308cff9897a0e)) -* **security:** fixed security vulnerability in follow-redirects ([#6163](https://github.com/axios/axios/issues/6163)) ([75af1cd](https://github.com/axios/axios/commit/75af1cdff5b3a6ca3766d3d3afbc3115bb0811b8)) - -### Contributors to this release - -- avatar [Jay](https://github.com/jasonsaayman "+34/-6 ()") -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+34/-3 (#6172 #6167 )") -- avatar [Guy Nesher](https://github.com/gnesher "+10/-10 (#6163 )") - -## [1.6.3](https://github.com/axios/axios/compare/v1.6.2...v1.6.3) (2023-12-26) - - -### Bug Fixes - -* Regular Expression Denial of Service (ReDoS) ([#6132](https://github.com/axios/axios/issues/6132)) ([5e7ad38](https://github.com/axios/axios/commit/5e7ad38fb0f819fceb19fb2ee5d5d38f56aa837d)) - -### Contributors to this release - -- avatar [Jay](https://github.com/jasonsaayman "+15/-6 (#6145 )") -- avatar [Willian Agostini](https://github.com/WillianAgostini "+17/-2 (#6132 )") -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-0 (#6084 )") - -## [1.6.2](https://github.com/axios/axios/compare/v1.6.1...v1.6.2) (2023-11-14) - - -### Features - -* **withXSRFToken:** added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ([#6046](https://github.com/axios/axios/issues/6046)) ([cff9967](https://github.com/axios/axios/commit/cff996779b272a5e94c2b52f5503ccf668bc42dc)) - -### PRs -- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) ) -``` - -📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour. -You should now use withXSRFToken along with withCredential to get the old behavior. -This functionality is considered as a fix. -``` - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+271/-146 (#6081 #6080 #6079 #6078 #6046 #6064 #6063 )") -- avatar [Ng Choon Khon (CK)](https://github.com/ckng0221 "+4/-4 (#6073 )") -- avatar [Muhammad Noman](https://github.com/mnomanmemon "+2/-2 (#6048 )") - -## [1.6.1](https://github.com/axios/axios/compare/v1.6.0...v1.6.1) (2023-11-08) - - -### Bug Fixes - -* **formdata:** fixed content-type header normalization for non-standard browser environments; ([#6056](https://github.com/axios/axios/issues/6056)) ([dd465ab](https://github.com/axios/axios/commit/dd465ab22bbfa262c6567be6574bf46a057d5288)) -* **platform:** fixed emulated browser detection in node.js environment; ([#6055](https://github.com/axios/axios/issues/6055)) ([3dc8369](https://github.com/axios/axios/commit/3dc8369e505e32a4e12c22f154c55fd63ac67fbb)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+432/-65 (#6059 #6056 #6055 )") -- avatar [Fabian Meyer](https://github.com/meyfa "+5/-2 (#5835 )") - -### PRs -- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) ) -``` - -📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour. -You should now use withXSRFToken along with withCredential to get the old behavior. -This functionality is considered as a fix. -``` - -# [1.6.0](https://github.com/axios/axios/compare/v1.5.1...v1.6.0) (2023-10-26) - - -### Bug Fixes - -* **CSRF:** fixed CSRF vulnerability CVE-2023-45857 ([#6028](https://github.com/axios/axios/issues/6028)) ([96ee232](https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0)) -* **dns:** fixed lookup function decorator to work properly in node v20; ([#6011](https://github.com/axios/axios/issues/6011)) ([5aaff53](https://github.com/axios/axios/commit/5aaff532a6b820bb9ab6a8cd0f77131b47e2adb8)) -* **types:** fix AxiosHeaders types; ([#5931](https://github.com/axios/axios/issues/5931)) ([a1c8ad0](https://github.com/axios/axios/commit/a1c8ad008b3c13d53e135bbd0862587fb9d3fc09)) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+449/-114 (#6032 #6021 #6011 #5932 #5931 )") -- avatar [Valentin Panov](https://github.com/valentin-panov "+4/-4 (#6028 )") -- avatar [Rinku Chaudhari](https://github.com/therealrinku "+1/-1 (#5889 )") - -## [1.5.1](https://github.com/axios/axios/compare/v1.5.0...v1.5.1) (2023-09-26) - - -### Bug Fixes - -* **adapters:** improved adapters loading logic to have clear error messages; ([#5919](https://github.com/axios/axios/issues/5919)) ([e410779](https://github.com/axios/axios/commit/e4107797a7a1376f6209fbecfbbce73d3faa7859)) -* **formdata:** fixed automatic addition of the `Content-Type` header for FormData in non-browser environments; ([#5917](https://github.com/axios/axios/issues/5917)) ([bc9af51](https://github.com/axios/axios/commit/bc9af51b1886d1b3529617702f2a21a6c0ed5d92)) -* **headers:** allow `content-encoding` header to handle case-insensitive values ([#5890](https://github.com/axios/axios/issues/5890)) ([#5892](https://github.com/axios/axios/issues/5892)) ([4c89f25](https://github.com/axios/axios/commit/4c89f25196525e90a6e75eda9cb31ae0a2e18acd)) -* **types:** removed duplicated code ([9e62056](https://github.com/axios/axios/commit/9e6205630e1c9cf863adf141c0edb9e6d8d4b149)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+89/-18 (#5919 #5917 )") -- avatar [David Dallas](https://github.com/DavidJDallas "+11/-5 ()") -- avatar [Sean Sattler](https://github.com/fb-sean "+2/-8 ()") -- avatar [Mustafa Ateş Uzun](https://github.com/0o001 "+4/-4 ()") -- avatar [Przemyslaw Motacki](https://github.com/sfc-gh-pmotacki "+2/-1 (#5892 )") -- avatar [Michael Di Prisco](https://github.com/Cadienvan "+1/-1 ()") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -# [1.5.0](https://github.com/axios/axios/compare/v1.4.0...v1.5.0) (2023-08-26) - - -### Bug Fixes - -* **adapter:** make adapter loading error more clear by using platform-specific adapters explicitly ([#5837](https://github.com/axios/axios/issues/5837)) ([9a414bb](https://github.com/axios/axios/commit/9a414bb6c81796a95c6c7fe668637825458e8b6d)) -* **dns:** fixed `cacheable-lookup` integration; ([#5836](https://github.com/axios/axios/issues/5836)) ([b3e327d](https://github.com/axios/axios/commit/b3e327dcc9277bdce34c7ef57beedf644b00d628)) -* **headers:** added support for setting header names that overlap with class methods; ([#5831](https://github.com/axios/axios/issues/5831)) ([d8b4ca0](https://github.com/axios/axios/commit/d8b4ca0ea5f2f05efa4edfe1e7684593f9f68273)) -* **headers:** fixed common Content-Type header merging; ([#5832](https://github.com/axios/axios/issues/5832)) ([8fda276](https://github.com/axios/axios/commit/8fda2766b1e6bcb72c3fabc146223083ef13ce17)) - - -### Features - -* export getAdapter function ([#5324](https://github.com/axios/axios/issues/5324)) ([ca73eb8](https://github.com/axios/axios/commit/ca73eb878df0ae2dace81fe3a7f1fb5986231bf1)) -* **export:** export adapters without `unsafe` prefix ([#5839](https://github.com/axios/axios/issues/5839)) ([1601f4a](https://github.com/axios/axios/commit/1601f4a27a81ab47fea228f1e244b2c4e3ce28bf)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+66/-29 (#5839 #5837 #5836 #5832 #5831 )") -- avatar [夜葬](https://github.com/geekact "+42/-0 (#5324 )") -- avatar [Jonathan Budiman](https://github.com/JBudiman00 "+30/-0 (#5788 )") -- avatar [Michael Di Prisco](https://github.com/Cadienvan "+3/-5 (#5791 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -# [1.4.0](https://github.com/axios/axios/compare/v1.3.6...v1.4.0) (2023-04-27) - - -### Bug Fixes - -* **formdata:** add `multipart/form-data` content type for FormData payload on custom client environments; ([#5678](https://github.com/axios/axios/issues/5678)) ([bbb61e7](https://github.com/axios/axios/commit/bbb61e70cb1185adfb1cbbb86eaf6652c48d89d1)) -* **package:** export package internals with unsafe path prefix; ([#5677](https://github.com/axios/axios/issues/5677)) ([df38c94](https://github.com/axios/axios/commit/df38c949f26414d88ba29ec1e353c4d4f97eaf09)) - - -### Features - -* **dns:** added support for a custom lookup function; ([#5339](https://github.com/axios/axios/issues/5339)) ([2701911](https://github.com/axios/axios/commit/2701911260a1faa5cc5e1afe437121b330a3b7bb)) -* **types:** export `AxiosHeaderValue` type. ([#5525](https://github.com/axios/axios/issues/5525)) ([726f1c8](https://github.com/axios/axios/commit/726f1c8e00cffa0461a8813a9bdcb8f8b9d762cf)) - - -### Performance Improvements - -* **merge-config:** optimize mergeConfig performance by avoiding duplicate key visits; ([#5679](https://github.com/axios/axios/issues/5679)) ([e6f7053](https://github.com/axios/axios/commit/e6f7053bf1a3e87cf1f9da8677e12e3fe829d68e)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+151/-16 (#5684 #5339 #5679 #5678 #5677 )") -- avatar [Arthur Fiorette](https://github.com/arthurfiorette "+19/-19 (#5525 )") -- avatar [PIYUSH NEGI](https://github.com/npiyush97 "+2/-18 (#5670 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19) - - -### Bug Fixes - -* **types:** added transport to RawAxiosRequestConfig ([#5445](https://github.com/axios/axios/issues/5445)) ([6f360a2](https://github.com/axios/axios/commit/6f360a2531d8d70363fd9becef6a45a323f170e2)) -* **utils:** make isFormData detection logic stricter to avoid unnecessary calling of the `toString` method on the target; ([#5661](https://github.com/axios/axios/issues/5661)) ([aa372f7](https://github.com/axios/axios/commit/aa372f7306295dfd1100c1c2c77ce95c95808e76)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+48/-10 (#5665 #5661 #5663 )") -- avatar [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05) - - -### Bug Fixes - -* **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841)) -* **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22) - - -### Bug Fixes - -* **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a)) -* **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )") -- avatar [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )") -- avatar [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13) - - -### Bug Fixes - -* **formdata:** added a check to make sure the FormData class is available in the browser's global scope; ([#5545](https://github.com/axios/axios/issues/5545)) ([a6dfa72](https://github.com/axios/axios/commit/a6dfa72010db5ad52db8bd13c0f98e537e8fd05d)) -* **formdata:** fixed setting NaN as Content-Length for form payload in some cases; ([#5535](https://github.com/axios/axios/issues/5535)) ([c19f7bf](https://github.com/axios/axios/commit/c19f7bf770f90ae8307f4ea3104f227056912da1)) -* **headers:** fixed the filtering logic of the clear method; ([#5542](https://github.com/axios/axios/issues/5542)) ([ea87ebf](https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+11/-7 (#5545 #5535 #5542 )") -- avatar [陈若枫](https://github.com/ruofee "+2/-2 (#5467 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.2](https://github.com/axios/axios/compare/v1.3.1...v1.3.2) (2023-02-03) - - -### Bug Fixes - -* **http:** treat http://localhost as base URL for relative paths to avoid `ERR_INVALID_URL` error; ([#5528](https://github.com/axios/axios/issues/5528)) ([128d56f](https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c)) -* **http:** use explicit import instead of TextEncoder global; ([#5530](https://github.com/axios/axios/issues/5530)) ([6b3c305](https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+2/-1 (#5530 #5528 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01) - - -### Bug Fixes - -* **formdata:** add hotfix to use the asynchronous API to compute the content-length header value; ([#5521](https://github.com/axios/axios/issues/5521)) ([96d336f](https://github.com/axios/axios/commit/96d336f527619f21da012fe1f117eeb53e5a2120)) -* **serializer:** fixed serialization of array-like objects; ([#5518](https://github.com/axios/axios/issues/5518)) ([08104c0](https://github.com/axios/axios/commit/08104c028c0f9353897b1b6691d74c440fd0c32d)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -# [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31) - - -### Bug Fixes - -* **headers:** fixed & optimized clear method; ([#5507](https://github.com/axios/axios/issues/5507)) ([9915635](https://github.com/axios/axios/commit/9915635c69d0ab70daca5738488421f67ca60959)) -* **http:** add zlib headers if missing ([#5497](https://github.com/axios/axios/issues/5497)) ([65e8d1e](https://github.com/axios/axios/commit/65e8d1e28ce829f47a837e45129730e541950d3c)) - - -### Features - -* **fomdata:** added support for spec-compliant FormData & Blob types; ([#5316](https://github.com/axios/axios/issues/5316)) ([6ac574e](https://github.com/axios/axios/commit/6ac574e00a06731288347acea1e8246091196953)) - -### Contributors to this release - -- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+352/-67 (#5514 #5512 #5510 #5509 #5508 #5316 #5507 )") -- avatar [ItsNotGoodName](https://github.com/ItsNotGoodName "+43/-2 (#5497 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.6](https://github.com/axios/axios/compare/v1.2.5...v1.2.6) (2023-01-28) - - -### Bug Fixes - -* **headers:** added missed Authorization accessor; ([#5502](https://github.com/axios/axios/issues/5502)) ([342c0ba](https://github.com/axios/axios/commit/342c0ba9a16ea50f5ed7d2366c5c1a2c877e3f26)) -* **types:** fixed `CommonRequestHeadersList` & `CommonResponseHeadersList` types to be private in commonJS; ([#5503](https://github.com/axios/axios/issues/5503)) ([5a3d0a3](https://github.com/axios/axios/commit/5a3d0a3234d77361a1bc7cedee2da1e11df08e2c)) - -### Contributors to this release - -- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+24/-9 (#5503 #5502 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.5](https://github.com/axios/axios/compare/v1.2.4...v1.2.5) (2023-01-26) - - -### Bug Fixes - -* **types:** fixed AxiosHeaders to handle spread syntax by making all methods non-enumerable; ([#5499](https://github.com/axios/axios/issues/5499)) ([580f1e8](https://github.com/axios/axios/commit/580f1e8033a61baa38149d59fd16019de3932c22)) - -### Contributors to this release - -- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+82/-54 (#5499 )") -- ![avatar](https://avatars.githubusercontent.com/u/20516159?v=4&s=16) [Elliot Ford](https://github.com/EFord36 "+1/-1 (#5462 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.4](https://github.com/axios/axios/compare/v1.2.3...v1.2.4) (2023-01-22) - - -### Bug Fixes - -* **types:** renamed `RawAxiosRequestConfig` back to `AxiosRequestConfig`; ([#5486](https://github.com/axios/axios/issues/5486)) ([2a71f49](https://github.com/axios/axios/commit/2a71f49bc6c68495fa419003a3107ed8bd703ad0)) -* **types:** fix `AxiosRequestConfig` generic; ([#5478](https://github.com/axios/axios/issues/5478)) ([9bce81b](https://github.com/axios/axios/commit/186ea062da8b7d578ae78b1a5c220986b9bce81b)) - -### Contributors to this release - -- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+242/-108 (#5486 #5482 )") -- ![avatar](https://avatars.githubusercontent.com/u/9430821?v=4&s=16) [Daniel Hillmann](https://github.com/hilleer "+1/-1 (#5478 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.3](https://github.com/axios/axios/compare/1.2.2...1.2.3) (2023-01-10) - - -### Bug Fixes - -* **types:** fixed AxiosRequestConfig header interface by refactoring it to RawAxiosRequestConfig; ([#5420](https://github.com/axios/axios/issues/5420)) ([0811963](https://github.com/axios/axios/commit/08119634a22f1d5b19f5c9ea0adccb6d3eebc3bc)) - -### Contributors to this release - -- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+938/-442 (#5456 #5455 #5453 #5451 #5449 #5447 #5446 #5443 #5442 #5439 #5420 )") - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.2] - 2022-12-29 - -### Fixed -- fix(ci): fix release script inputs [#5392](https://github.com/axios/axios/pull/5392) -- fix(ci): prerelease scipts [#5377](https://github.com/axios/axios/pull/5377) -- fix(ci): release scripts [#5376](https://github.com/axios/axios/pull/5376) -- fix(ci): typescript tests [#5375](https://github.com/axios/axios/pull/5375) -- fix: Brotli decompression [#5353](https://github.com/axios/axios/pull/5353) -- fix: add missing HttpStatusCode [#5345](https://github.com/axios/axios/pull/5345) - -### Chores -- chore(ci): set conventional-changelog header config [#5406](https://github.com/axios/axios/pull/5406) -- chore(ci): fix automatic contributors resolving [#5403](https://github.com/axios/axios/pull/5403) -- chore(ci): improved logging for the contributors list generator [#5398](https://github.com/axios/axios/pull/5398) -- chore(ci): fix release action [#5397](https://github.com/axios/axios/pull/5397) -- chore(ci): fix version bump script by adding bump argument for target version [#5393](https://github.com/axios/axios/pull/5393) -- chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 [#5342](https://github.com/axios/axios/pull/5342) -- chore(ci): GitHub Actions Release script [#5384](https://github.com/axios/axios/pull/5384) -- chore(ci): release scripts [#5364](https://github.com/axios/axios/pull/5364) - -### Contributors to this release -- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- ![avatar](https://avatars.githubusercontent.com/u/1652293?v=4&s=16) [Winnie](https://github.com/winniehell) - -## [1.2.1] - 2022-12-05 - -### Changed -- feat(exports): export mergeConfig [#5151](https://github.com/axios/axios/pull/5151) - -### Fixed -- fix(CancelledError): include config [#4922](https://github.com/axios/axios/pull/4922) -- fix(general): removing multiple/trailing/leading whitespace [#5022](https://github.com/axios/axios/pull/5022) -- fix(headers): decompression for responses without Content-Length header [#5306](https://github.com/axios/axios/pull/5306) -- fix(webWorker): exception to sending form data in web worker [#5139](https://github.com/axios/axios/pull/5139) - -### Refactors -- refactor(types): AxiosProgressEvent.event type to any [#5308](https://github.com/axios/axios/pull/5308) -- refactor(types): add missing types for static AxiosError.from method [#4956](https://github.com/axios/axios/pull/4956) - -### Chores -- chore(docs): remove README link to non-existent upgrade guide [#5307](https://github.com/axios/axios/pull/5307) -- chore(docs): typo in issue template name [#5159](https://github.com/axios/axios/pull/5159) - -### Contributors to this release - -- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- [Zachary Lysobey](https://github.com/zachlysobey) -- [Kevin Ennis](https://github.com/kevincennis) -- [Philipp Loose](https://github.com/phloose) -- [secondl1ght](https://github.com/secondl1ght) -- [wenzheng](https://github.com/0x30) -- [Ivan Barsukov](https://github.com/ovarn) -- [Arthur Fiorette](https://github.com/arthurfiorette) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.2.0] - 2022-11-10 - -### Changed - -- changed: refactored module exports [#5162](https://github.com/axios/axios/pull/5162) -- change: re-added support for loading Axios with require('axios').default [#5225](https://github.com/axios/axios/pull/5225) - -### Fixed - -- fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224) -- fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196) -- fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071) -- fix: __dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269) -- fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247) -- fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250) - -### Refactors -- refactor: allowing adapters to be loaded by name [#5277](https://github.com/axios/axios/pull/5277) - -### Chores - -- chore: force CI restart [#5243](https://github.com/axios/axios/pull/5243) -- chore: update ECOSYSTEM.md [#5077](https://github.com/axios/axios/pull/5077) -- chore: update get/index.html [#5116](https://github.com/axios/axios/pull/5116) -- chore: update Sandbox UI/UX [#5205](https://github.com/axios/axios/pull/5205) -- chore:(actions): remove git credentials after checkout [#5235](https://github.com/axios/axios/pull/5235) -- chore(actions): bump actions/dependency-review-action from 2 to 3 [#5266](https://github.com/axios/axios/pull/5266) -- chore(packages): bump loader-utils from 1.4.1 to 1.4.2 [#5295](https://github.com/axios/axios/pull/5295) -- chore(packages): bump engine.io from 6.2.0 to 6.2.1 [#5294](https://github.com/axios/axios/pull/5294) -- chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 [#5241](https://github.com/axios/axios/pull/5241) -- chore(packages): bump loader-utils from 1.4.0 to 1.4.1 [#5245](https://github.com/axios/axios/pull/5245) -- chore(docs): update Resources links in README [#5119](https://github.com/axios/axios/pull/5119) -- chore(docs): update the link for JSON url [#5265](https://github.com/axios/axios/pull/5265) -- chore(docs): fix broken links [#5218](https://github.com/axios/axios/pull/5218) -- chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md [#5170](https://github.com/axios/axios/pull/5170) -- chore(docs): typo fix line #856 and #920 [#5194](https://github.com/axios/axios/pull/5194) -- chore(docs): typo fix #800 [#5193](https://github.com/axios/axios/pull/5193) -- chore(docs): fix typos [#5184](https://github.com/axios/axios/pull/5184) -- chore(docs): fix punctuation in README.md [#5197](https://github.com/axios/axios/pull/5197) -- chore(docs): update readme in the Handling Errors section - issue reference #5260 [#5261](https://github.com/axios/axios/pull/5261) -- chore: remove \b from filename [#5207](https://github.com/axios/axios/pull/5207) -- chore(docs): update CHANGELOG.md [#5137](https://github.com/axios/axios/pull/5137) -- chore: add sideEffects false to package.json [#5025](https://github.com/axios/axios/pull/5025) - -### Contributors to this release - -- [Maddy Miller](https://github.com/me4502) -- [Amit Saini](https://github.com/amitsainii) -- [ecyrbe](https://github.com/ecyrbe) -- [Ikko Ashimine](https://github.com/eltociear) -- [Geeth Gunnampalli](https://github.com/thetechie7) -- [Shreem Asati](https://github.com/shreem-123) -- [Frieder Bluemle](https://github.com/friederbluemle) -- [윤세영](https://github.com/yunseyeong) -- [Claudio Busatto](https://github.com/cjcbusatto) -- [Remco Haszing](https://github.com/remcohaszing) -- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- [Csaba Maulis](https://github.com/om4csaba) -- [MoPaMo](https://github.com/MoPaMo) -- [Daniel Fjeldstad](https://github.com/w3bdesign) -- [Adrien Brunet](https://github.com/adrien-may) -- [Frazer Smith](https://github.com/Fdawgs) -- [HaiTao](https://github.com/836334258) -- [AZM](https://github.com/aziyatali) -- [relbns](https://github.com/relbns) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.1.3] - 2022-10-15 - -### Added - -- Added custom params serializer support [#5113](https://github.com/axios/axios/pull/5113) - -### Fixed - -- Fixed top-level export to keep them in-line with static properties [#5109](https://github.com/axios/axios/pull/5109) -- Stopped including null values to query string. [#5108](https://github.com/axios/axios/pull/5108) -- Restored proxy config backwards compatibility with 0.x [#5097](https://github.com/axios/axios/pull/5097) -- Added back AxiosHeaders in AxiosHeaderValue [#5103](https://github.com/axios/axios/pull/5103) -- Pin CDN install instructions to a specific version [#5060](https://github.com/axios/axios/pull/5060) -- Handling of array values fixed for AxiosHeaders [#5085](https://github.com/axios/axios/pull/5085) - -### Chores - -- docs: match badge style, add link to them [#5046](https://github.com/axios/axios/pull/5046) -- chore: fixing comments typo [#5054](https://github.com/axios/axios/pull/5054) -- chore: update issue template [#5061](https://github.com/axios/axios/pull/5061) -- chore: added progress capturing section to the docs; [#5084](https://github.com/axios/axios/pull/5084) - -### Contributors to this release - -- [Jason Saayman](https://github.com/jasonsaayman) -- [scarf](https://github.com/scarf005) -- [Lenz Weber-Tronic](https://github.com/phryneas) -- [Arvindh](https://github.com/itsarvindh) -- [Félix Legrelle](https://github.com/FelixLgr) -- [Patrick Petrovic](https://github.com/ppati000) -- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- [littledian](https://github.com/littledian) -- [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.1.2] - 2022-10-07 - -### Fixed - -- Fixed broken exports for UMD builds. - -### Contributors to this release - -- [Jason Saayman](https://github.com/jasonsaayman) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.1.1] - 2022-10-07 - -### Fixed - -- Fixed broken exports for common js. This fix breaks a prior fix, I will fix both issues ASAP but the commonJS use is more impactful. - -### Contributors to this release - -- [Jason Saayman](https://github.com/jasonsaayman) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.1.0] - 2022-10-06 - -### Fixed - -- Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003) -- Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018) -- Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021) -- Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010) -- Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030) -- Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036) - -### Contributors to this release - -- [Trim21](https://github.com/trim21) -- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- [shingo.sasaki](https://github.com/s-sasaki-0529) -- [Ivan Pepelko](https://github.com/ivanpepelko) -- [Richard Kořínek](https://github.com/risa) - -### PRs -- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) -``` - -⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 -``` - -## [1.0.0] - 2022-10-04 - -### Added - -- Added stack trace to AxiosError [#4624](https://github.com/axios/axios/pull/4624) -- Add AxiosError to AxiosStatic [#4654](https://github.com/axios/axios/pull/4654) -- Replaced Rollup as our build runner [#4596](https://github.com/axios/axios/pull/4596) -- Added generic TS types for the exposed toFormData helper [#4668](https://github.com/axios/axios/pull/4668) -- Added listen callback function [#4096](https://github.com/axios/axios/pull/4096) -- Added instructions for installing using PNPM [#4207](https://github.com/axios/axios/pull/4207) -- Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill [#4229](https://github.com/axios/axios/pull/4229) -- Added axios-url-template in ECOSYSTEM.md [#4238](https://github.com/axios/axios/pull/4238) -- Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an axios instance [#4248](https://github.com/axios/axios/pull/4248) -- Added react hook plugin [#4319](https://github.com/axios/axios/pull/4319) -- Adding HTTP status code for transformResponse [#4580](https://github.com/axios/axios/pull/4580) -- Added blob to the list of protocols supported by the browser [#4678](https://github.com/axios/axios/pull/4678) -- Resolving proxy from env on redirect [#4436](https://github.com/axios/axios/pull/4436) -- Added enhanced toFormData implementation with additional options [4704](https://github.com/axios/axios/pull/4704) -- Adding Canceler parameters config and request [#4711](https://github.com/axios/axios/pull/4711) -- Added automatic payload serialization to application/x-www-form-urlencoded [#4714](https://github.com/axios/axios/pull/4714) -- Added the ability for webpack users to overwrite built-ins [#4715](https://github.com/axios/axios/pull/4715) -- Added string[] to AxiosRequestHeaders type [#4322](https://github.com/axios/axios/pull/4322) -- Added the ability for the url-encoded-form serializer to respect the formSerializer config [#4721](https://github.com/axios/axios/pull/4721) -- Added isCancel type assert [#4293](https://github.com/axios/axios/pull/4293) -- Added data URL support for node.js [#4725](https://github.com/axios/axios/pull/4725) -- Adding types for progress event callbacks [#4675](https://github.com/axios/axios/pull/4675) -- URL params serializer [#4734](https://github.com/axios/axios/pull/4734) -- Added axios.formToJSON method [#4735](https://github.com/axios/axios/pull/4735) -- Bower platform add data protocol [#4804](https://github.com/axios/axios/pull/4804) -- Use WHATWG URL API instead of url.parse() [#4852](https://github.com/axios/axios/pull/4852) -- Add ENUM containing Http Status Codes to typings [#4903](https://github.com/axios/axios/pull/4903) -- Improve typing of timeout in index.d.ts [#4934](https://github.com/axios/axios/pull/4934) - -### Changed - -- Updated AxiosError.config to be optional in the type definition [#4665](https://github.com/axios/axios/pull/4665) -- Updated README emphasizing the URLSearchParam built-in interface over other solutions [#4590](https://github.com/axios/axios/pull/4590) -- Include request and config when creating a CanceledError instance [#4659](https://github.com/axios/axios/pull/4659) -- Changed func-names eslint rule to as-needed [#4492](https://github.com/axios/axios/pull/4492) -- Replacing deprecated substr() with slice() as substr() is deprecated [#4468](https://github.com/axios/axios/pull/4468) -- Updating HTTP links in README.md to use HTTPS [#4387](https://github.com/axios/axios/pull/4387) -- Updated to a better trim() polyfill [#4072](https://github.com/axios/axios/pull/4072) -- Updated types to allow specifying partial default headers on instance create [#4185](https://github.com/axios/axios/pull/4185) -- Expanded isAxiosError types [#4344](https://github.com/axios/axios/pull/4344) -- Updated type definition for axios instance methods [#4224](https://github.com/axios/axios/pull/4224) -- Updated eslint config [#4722](https://github.com/axios/axios/pull/4722) -- Updated Docs [#4742](https://github.com/axios/axios/pull/4742) -- Refactored Axios to use ES2017 [#4787](https://github.com/axios/axios/pull/4787) - - -### Deprecated -- There are multiple deprecations, refactors and fixes provided in this release. Please read through the full release notes to see how this may impact your project and use case. - -### Removed - -- Removed incorrect argument for NetworkError constructor [#4656](https://github.com/axios/axios/pull/4656) -- Removed Webpack [#4596](https://github.com/axios/axios/pull/4596) -- Removed function that transform arguments to array [#4544](https://github.com/axios/axios/pull/4544) - -### Fixed - -- Fixed grammar in README [#4649](https://github.com/axios/axios/pull/4649) -- Fixed code error in README [#4599](https://github.com/axios/axios/pull/4599) -- Optimized the code that checks cancellation [#4587](https://github.com/axios/axios/pull/4587) -- Fix url pointing to defaults.js in README [#4532](https://github.com/axios/axios/pull/4532) -- Use type alias instead of interface for AxiosPromise [#4505](https://github.com/axios/axios/pull/4505) -- Fix some word spelling and lint style in code comments [#4500](https://github.com/axios/axios/pull/4500) -- Edited readme with 3 updated browser icons of Chrome, FireFox and Safari [#4414](https://github.com/axios/axios/pull/4414) -- Bump follow-redirects from 1.14.9 to 1.15.0 [#4673](https://github.com/axios/axios/pull/4673) -- Fixing http tests to avoid hanging when assertions fail [#4435](https://github.com/axios/axios/pull/4435) -- Fix TS definition for AxiosRequestTransformer [#4201](https://github.com/axios/axios/pull/4201) -- Fix grammatical issues in README [#4232](https://github.com/axios/axios/pull/4232) -- Fixing instance.defaults.headers type [#4557](https://github.com/axios/axios/pull/4557) -- Fixed race condition on immediate requests cancellation [#4261](https://github.com/axios/axios/pull/4261) -- Fixing Z_BUF_ERROR when no content [#4701](https://github.com/axios/axios/pull/4701) -- Fixing proxy beforeRedirect regression [#4708](https://github.com/axios/axios/pull/4708) -- Fixed AxiosError status code type [#4717](https://github.com/axios/axios/pull/4717) -- Fixed AxiosError stack capturing [#4718](https://github.com/axios/axios/pull/4718) -- Fixing AxiosRequestHeaders typings [#4334](https://github.com/axios/axios/pull/4334) -- Fixed max body length defaults [#4731](https://github.com/axios/axios/pull/4731) -- Fixed toFormData Blob issue on node>v17 [#4728](https://github.com/axios/axios/pull/4728) -- Bump grunt from 1.5.2 to 1.5.3 [#4743](https://github.com/axios/axios/pull/4743) -- Fixing content-type header repeated [#4745](https://github.com/axios/axios/pull/4745) -- Fixed timeout error message for http [4738](https://github.com/axios/axios/pull/4738) -- Request ignores false, 0 and empty string as body values [#4785](https://github.com/axios/axios/pull/4785) -- Added back missing minified builds [#4805](https://github.com/axios/axios/pull/4805) -- Fixed a type error [#4815](https://github.com/axios/axios/pull/4815) -- Fixed a regression bug with unsubscribing from cancel token; [#4819](https://github.com/axios/axios/pull/4819) -- Remove repeated compression algorithm [#4820](https://github.com/axios/axios/pull/4820) -- The error of calling extend to pass parameters [#4857](https://github.com/axios/axios/pull/4857) -- SerializerOptions.indexes allows boolean | null | undefined [#4862](https://github.com/axios/axios/pull/4862) -- Require interceptors to return values [#4874](https://github.com/axios/axios/pull/4874) -- Removed unused imports [#4949](https://github.com/axios/axios/pull/4949) -- Allow null indexes on formSerializer and paramsSerializer [#4960](https://github.com/axios/axios/pull/4960) - -### Chores -- Set permissions for GitHub actions [#4765](https://github.com/axios/axios/pull/4765) -- Included githubactions in the dependabot config [#4770](https://github.com/axios/axios/pull/4770) -- Included dependency review [#4771](https://github.com/axios/axios/pull/4771) -- Update security.md [#4784](https://github.com/axios/axios/pull/4784) -- Remove unnecessary spaces [#4854](https://github.com/axios/axios/pull/4854) -- Simplify the import path of AxiosError [#4875](https://github.com/axios/axios/pull/4875) -- Fix Gitpod dead link [#4941](https://github.com/axios/axios/pull/4941) -- Enable syntax highlighting for a code block [#4970](https://github.com/axios/axios/pull/4970) -- Using Logo Axios in Readme.md [#4993](https://github.com/axios/axios/pull/4993) -- Fix markup for note in README [#4825](https://github.com/axios/axios/pull/4825) -- Fix typo and formatting, add colons [#4853](https://github.com/axios/axios/pull/4853) -- Fix typo in readme [#4942](https://github.com/axios/axios/pull/4942) - -### Security - -- Update SECURITY.md [#4687](https://github.com/axios/axios/pull/4687) - -### Contributors to this release - -- [Bertrand Marron](https://github.com/tusbar) -- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) -- [Dan Mooney](https://github.com/danmooney) -- [Michael Li](https://github.com/xiaoyu-tamu) -- [aong](https://github.com/yxwzaxns) -- [Des Preston](https://github.com/despreston) -- [Ted Robertson](https://github.com/tredondo) -- [zhoulixiang](https://github.com/zh-lx) -- [Arthur Fiorette](https://github.com/arthurfiorette) -- [Kumar Shanu](https://github.com/Kr-Shanu) -- [JALAL](https://github.com/JLL32) -- [Jingyi Lin](https://github.com/MageeLin) -- [Philipp Loose](https://github.com/phloose) -- [Alexander Shchukin](https://github.com/sashsvamir) -- [Dave Cardwell](https://github.com/davecardwell) -- [Cat Scarlet](https://github.com/catscarlet) -- [Luca Pizzini](https://github.com/lpizzinidev) -- [Kai](https://github.com/Schweinepriester) -- [Maxime Bargiel](https://github.com/mbargiel) -- [Brian Helba](https://github.com/brianhelba) -- [reslear](https://github.com/reslear) -- [Jamie Slome](https://github.com/JamieSlome) -- [Landro3](https://github.com/Landro3) -- [rafw87](https://github.com/rafw87) -- [Afzal Sayed](https://github.com/afzalsayed96) -- [Koki Oyatsu](https://github.com/kaishuu0123) -- [Dave](https://github.com/wangcch) -- [暴走老七](https://github.com/baozouai) -- [Spencer](https://github.com/spalger) -- [Adrian Wieprzkowicz](https://github.com/Argeento) -- [Jamie Telin](https://github.com/lejahmie) -- [毛呆](https://github.com/aweikalee) -- [Kirill Shakirov](https://github.com/turisap) -- [Rraji Abdelbari](https://github.com/estarossa0) -- [Jelle Schutter](https://github.com/jelleschutter) -- [Tom Ceuppens](https://github.com/KyorCode) -- [Johann Cooper](https://github.com/JohannCooper) -- [Dimitris Halatsis](https://github.com/mitsos1os) -- [chenjigeng](https://github.com/chenjigeng) -- [João Gabriel Quaresma](https://github.com/joaoGabriel55) -- [Victor Augusto](https://github.com/VictorAugDB) -- [neilnaveen](https://github.com/neilnaveen) -- [Pavlos](https://github.com/psmoros) -- [Kiryl Valkovich](https://github.com/visortelle) -- [Naveen](https://github.com/naveensrinivasan) -- [wenzheng](https://github.com/0x30) -- [hcwhan](https://github.com/hcwhan) -- [Bassel Rachid](https://github.com/basselworkforce) -- [Grégoire Pineau](https://github.com/lyrixx) -- [felipedamin](https://github.com/felipedamin) -- [Karl Horky](https://github.com/karlhorky) -- [Yue JIN](https://github.com/kingyue737) -- [Usman Ali Siddiqui](https://github.com/usman250994) -- [WD](https://github.com/techbirds) -- [Günther Foidl](https://github.com/gfoidl) -- [Stephen Jennings](https://github.com/jennings) -- [C.T.Lin](https://github.com/chentsulin) -- [mia-z](https://github.com/mia-z) -- [Parth Banathia](https://github.com/Parth0105) -- [parth0105pluang](https://github.com/parth0105pluang) -- [Marco Weber](https://github.com/mrcwbr) -- [Luca Pizzini](https://github.com/lpizzinidev) -- [Willian Agostini](https://github.com/WillianAgostini) -- [Huyen Nguyen](https://github.com/huyenltnguyen) \ No newline at end of file diff --git a/node_modules/axios/LICENSE b/node_modules/axios/LICENSE deleted file mode 100644 index 05006a51..00000000 --- a/node_modules/axios/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright (c) 2014-present Matt Zabriskie & Collaborators - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/axios/README.md b/node_modules/axios/README.md deleted file mode 100644 index 04e76012..00000000 --- a/node_modules/axios/README.md +++ /dev/null @@ -1,1650 +0,0 @@ -

- Platinum sponsors -
-

- -
- - - - - - - - -

Alloy is the integration development platform that makes it simple and
fast for SaaS companies to launch critical user-facing integrations.

-

- Sign up free • - Documentation -

-

-
- -

- Gold sponsors -

-

- -
- - - - - - - -

API-first authentication, authorization, and fraud prevention

-

- Website • - DocumentationNode.js Backend SDK -

-
- - -

-
-
-
- -

Promise based HTTP client for the browser and node.js

- -

- Website • - Documentation -

- -
- -[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios) -[![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios) -[![Build status](https://img.shields.io/github/actions/workflow/status/axios/axios/ci.yml?branch=v1.x&label=CI&logo=github&style=flat-square)](https://github.com/axios/axios/actions/workflows/ci.yml) -[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/axios/axios) -[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios) -[![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=axios&query=$.install.pretty&label=install%20size&style=flat-square)](https://packagephobia.now.sh/result?p=axios) -[![npm bundle size](https://img.shields.io/bundlephobia/minzip/axios?style=flat-square)](https://bundlephobia.com/package/axios@latest) -[![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](https://npm-stat.com/charts.html?package=axios) -[![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios) -[![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios) -[![Known Vulnerabilities](https://snyk.io/test/npm/axios/badge.svg)](https://snyk.io/test/npm/axios) - - - - -
- -## Table of Contents - - - [Features](#features) - - [Browser Support](#browser-support) - - [Installing](#installing) - - [Package manager](#package-manager) - - [CDN](#cdn) - - [Example](#example) - - [Axios API](#axios-api) - - [Request method aliases](#request-method-aliases) - - [Concurrency 👎](#concurrency-deprecated) - - [Creating an instance](#creating-an-instance) - - [Instance methods](#instance-methods) - - [Request Config](#request-config) - - [Response Schema](#response-schema) - - [Config Defaults](#config-defaults) - - [Global axios defaults](#global-axios-defaults) - - [Custom instance defaults](#custom-instance-defaults) - - [Config order of precedence](#config-order-of-precedence) - - [Interceptors](#interceptors) - - [Multiple Interceptors](#multiple-interceptors) - - [Handling Errors](#handling-errors) - - [Cancellation](#cancellation) - - [AbortController](#abortcontroller) - - [CancelToken 👎](#canceltoken-deprecated) - - [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format) - - [URLSearchParams](#urlsearchparams) - - [Query string](#query-string-older-browsers) - - [🆕 Automatic serialization](#-automatic-serialization-to-urlsearchparams) - - [Using multipart/form-data format](#using-multipartform-data-format) - - [FormData](#formdata) - - [🆕 Automatic serialization](#-automatic-serialization-to-formdata) - - [Files Posting](#files-posting) - - [HTML Form Posting](#-html-form-posting-browser) - - [🆕 Progress capturing](#-progress-capturing) - - [🆕 Rate limiting](#-progress-capturing) - - [🆕 AxiosHeaders](#-axiosheaders) - - [Semver](#semver) - - [Promises](#promises) - - [TypeScript](#typescript) - - [Resources](#resources) - - [Credits](#credits) - - [License](#license) - -## Features - -- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser -- Make [http](https://nodejs.org/api/http.html) requests from node.js -- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API -- Intercept request and response -- Transform request and response data -- Cancel requests -- Automatic transforms for [JSON](https://www.json.org/json-en.html) data -- 🆕 Automatic data object serialization to `multipart/form-data` and `x-www-form-urlencoded` body encodings -- Client side support for protecting against [XSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) - -## Browser Support - -![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ---- | --- | --- | --- | --- | --- | -Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ | - -[![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios) - -## Installing - -### Package manager - -Using npm: - -```bash -$ npm install axios -``` - -Using bower: - -```bash -$ bower install axios -``` - -Using yarn: - -```bash -$ yarn add axios -``` - -Using pnpm: - -```bash -$ pnpm add axios -``` - -Once the package is installed, you can import the library using `import` or `require` approach: - -```js -import axios, {isCancel, AxiosError} from 'axios'; -``` - -You can also use the default export, since the named export is just a re-export from the Axios factory: - -```js -import axios from 'axios'; - -console.log(axios.isCancel('something')); -```` - -If you use `require` for importing, **only default export is available**: - -```js -const axios = require('axios'); - -console.log(axios.isCancel('something')); -``` - -For cases where something went wrong when trying to import a module into a custom or legacy environment, -you can try importing the module package directly: - -```js -const axios = require('axios/dist/browser/axios.cjs'); // browser commonJS bundle (ES2017) -// const axios = require('axios/dist/node/axios.cjs'); // node commonJS bundle (ES2017) -``` - -### CDN - -Using jsDelivr CDN (ES5 UMD browser module): - -```html - -``` - -Using unpkg CDN: - -```html - -``` - -## Example - -> **Note**: CommonJS usage -> In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach: - -```js -import axios from 'axios'; -//const axios = require('axios'); // legacy way - -// Make a request for a user with a given ID -axios.get('/user?ID=12345') - .then(function (response) { - // handle success - console.log(response); - }) - .catch(function (error) { - // handle error - console.log(error); - }) - .finally(function () { - // always executed - }); - -// Optionally the request above could also be done as -axios.get('/user', { - params: { - ID: 12345 - } - }) - .then(function (response) { - console.log(response); - }) - .catch(function (error) { - console.log(error); - }) - .finally(function () { - // always executed - }); - -// Want to use async/await? Add the `async` keyword to your outer function/method. -async function getUser() { - try { - const response = await axios.get('/user?ID=12345'); - console.log(response); - } catch (error) { - console.error(error); - } -} -``` - -> **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet -> Explorer and older browsers, so use with caution. - -Performing a `POST` request - -```js -axios.post('/user', { - firstName: 'Fred', - lastName: 'Flintstone' - }) - .then(function (response) { - console.log(response); - }) - .catch(function (error) { - console.log(error); - }); -``` - -Performing multiple concurrent requests - -```js -function getUserAccount() { - return axios.get('/user/12345'); -} - -function getUserPermissions() { - return axios.get('/user/12345/permissions'); -} - -Promise.all([getUserAccount(), getUserPermissions()]) - .then(function (results) { - const acct = results[0]; - const perm = results[1]; - }); -``` - -## axios API - -Requests can be made by passing the relevant config to `axios`. - -##### axios(config) - -```js -// Send a POST request -axios({ - method: 'post', - url: '/user/12345', - data: { - firstName: 'Fred', - lastName: 'Flintstone' - } -}); -``` - -```js -// GET request for remote image in node.js -axios({ - method: 'get', - url: 'https://bit.ly/2mTM3nY', - responseType: 'stream' -}) - .then(function (response) { - response.data.pipe(fs.createWriteStream('ada_lovelace.jpg')) - }); -``` - -##### axios(url[, config]) - -```js -// Send a GET request (default method) -axios('/user/12345'); -``` - -### Request method aliases - -For convenience, aliases have been provided for all common request methods. - -##### axios.request(config) -##### axios.get(url[, config]) -##### axios.delete(url[, config]) -##### axios.head(url[, config]) -##### axios.options(url[, config]) -##### axios.post(url[, data[, config]]) -##### axios.put(url[, data[, config]]) -##### axios.patch(url[, data[, config]]) - -###### NOTE -When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config. - -### Concurrency (Deprecated) -Please use `Promise.all` to replace the below functions. - -Helper functions for dealing with concurrent requests. - -axios.all(iterable) -axios.spread(callback) - -### Creating an instance - -You can create a new instance of axios with a custom config. - -##### axios.create([config]) - -```js -const instance = axios.create({ - baseURL: 'https://some-domain.com/api/', - timeout: 1000, - headers: {'X-Custom-Header': 'foobar'} -}); -``` - -### Instance methods - -The available instance methods are listed below. The specified config will be merged with the instance config. - -##### axios#request(config) -##### axios#get(url[, config]) -##### axios#delete(url[, config]) -##### axios#head(url[, config]) -##### axios#options(url[, config]) -##### axios#post(url[, data[, config]]) -##### axios#put(url[, data[, config]]) -##### axios#patch(url[, data[, config]]) -##### axios#getUri([config]) - -## Request Config - -These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified. - -```js -{ - // `url` is the server URL that will be used for the request - url: '/user', - - // `method` is the request method to be used when making the request - method: 'get', // default - - // `baseURL` will be prepended to `url` unless `url` is absolute. - // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs - // to methods of that instance. - baseURL: 'https://some-domain.com/api/', - - // `transformRequest` allows changes to the request data before it is sent to the server - // This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE' - // The last function in the array must return a string or an instance of Buffer, ArrayBuffer, - // FormData or Stream - // You may modify the headers object. - transformRequest: [function (data, headers) { - // Do whatever you want to transform the data - - return data; - }], - - // `transformResponse` allows changes to the response data to be made before - // it is passed to then/catch - transformResponse: [function (data) { - // Do whatever you want to transform the data - - return data; - }], - - // `headers` are custom headers to be sent - headers: {'X-Requested-With': 'XMLHttpRequest'}, - - // `params` are the URL parameters to be sent with the request - // Must be a plain object or a URLSearchParams object - params: { - ID: 12345 - }, - - // `paramsSerializer` is an optional config that allows you to customize serializing `params`. - paramsSerializer: { - - //Custom encoder function which sends key/value pairs in an iterative fashion. - encode?: (param: string): string => { /* Do custom operations here and return transformed string */ }, - - // Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour. - serialize?: (params: Record, options?: ParamsSerializerOptions ), - - //Configuration for formatting array indexes in the params. - indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes). - }, - - // `data` is the data to be sent as the request body - // Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH' - // When no `transformRequest` is set, must be of one of the following types: - // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams - // - Browser only: FormData, File, Blob - // - Node only: Stream, Buffer, FormData (form-data package) - data: { - firstName: 'Fred' - }, - - // syntax alternative to send data into the body - // method post - // only the value is sent, not the key - data: 'Country=Brasil&City=Belo Horizonte', - - // `timeout` specifies the number of milliseconds before the request times out. - // If the request takes longer than `timeout`, the request will be aborted. - timeout: 1000, // default is `0` (no timeout) - - // `withCredentials` indicates whether or not cross-site Access-Control requests - // should be made using credentials - withCredentials: false, // default - - // `adapter` allows custom handling of requests which makes testing easier. - // Return a promise and supply a valid response (see lib/adapters/README.md). - adapter: function (config) { - /* ... */ - }, - - // `auth` indicates that HTTP Basic auth should be used, and supplies credentials. - // This will set an `Authorization` header, overwriting any existing - // `Authorization` custom headers you have set using `headers`. - // Please note that only HTTP Basic auth is configurable through this parameter. - // For Bearer tokens and such, use `Authorization` custom headers instead. - auth: { - username: 'janedoe', - password: 's00pers3cret' - }, - - // `responseType` indicates the type of data that the server will respond with - // options are: 'arraybuffer', 'document', 'json', 'text', 'stream' - // browser only: 'blob' - responseType: 'json', // default - - // `responseEncoding` indicates encoding to use for decoding responses (Node.js only) - // Note: Ignored for `responseType` of 'stream' or client-side requests - // options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url', - // 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8', - // 'utf8', 'UTF8', 'utf16le', 'UTF16LE' - responseEncoding: 'utf8', // default - - // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token - xsrfCookieName: 'XSRF-TOKEN', // default - - // `xsrfHeaderName` is the name of the http header that carries the xsrf token value - xsrfHeaderName: 'X-XSRF-TOKEN', // default - - // `undefined` (default) - set XSRF header only for the same origin requests - withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined), - - // `onUploadProgress` allows handling of progress events for uploads - // browser & node.js - onUploadProgress: function ({loaded, total, progress, bytes, estimated, rate, upload = true}) { - // Do whatever you want with the Axios progress event - }, - - // `onDownloadProgress` allows handling of progress events for downloads - // browser & node.js - onDownloadProgress: function ({loaded, total, progress, bytes, estimated, rate, download = true}) { - // Do whatever you want with the Axios progress event - }, - - // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js - maxContentLength: 2000, - - // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed - maxBodyLength: 2000, - - // `validateStatus` defines whether to resolve or reject the promise for a given - // HTTP response status code. If `validateStatus` returns `true` (or is set to `null` - // or `undefined`), the promise will be resolved; otherwise, the promise will be - // rejected. - validateStatus: function (status) { - return status >= 200 && status < 300; // default - }, - - // `maxRedirects` defines the maximum number of redirects to follow in node.js. - // If set to 0, no redirects will be followed. - maxRedirects: 21, // default - - // `beforeRedirect` defines a function that will be called before redirect. - // Use this to adjust the request options upon redirecting, - // to inspect the latest response headers, - // or to cancel the request by throwing an error - // If maxRedirects is set to 0, `beforeRedirect` is not used. - beforeRedirect: (options, { headers }) => { - if (options.hostname === "example.com") { - options.auth = "user:password"; - } - }, - - // `socketPath` defines a UNIX Socket to be used in node.js. - // e.g. '/var/run/docker.sock' to send requests to the docker daemon. - // Only either `socketPath` or `proxy` can be specified. - // If both are specified, `socketPath` is used. - socketPath: null, // default - - // `transport` determines the transport method that will be used to make the request. If defined, it will be used. Otherwise, if `maxRedirects` is 0, the default `http` or `https` library will be used, depending on the protocol specified in `protocol`. Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol, which can handle redirects. - transport: undefined, // default - - // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http - // and https requests, respectively, in node.js. This allows options to be added like - // `keepAlive` that are not enabled by default. - httpAgent: new http.Agent({ keepAlive: true }), - httpsAgent: new https.Agent({ keepAlive: true }), - - // `proxy` defines the hostname, port, and protocol of the proxy server. - // You can also define your proxy using the conventional `http_proxy` and - // `https_proxy` environment variables. If you are using environment variables - // for your proxy configuration, you can also define a `no_proxy` environment - // variable as a comma-separated list of domains that should not be proxied. - // Use `false` to disable proxies, ignoring environment variables. - // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and - // supplies credentials. - // This will set an `Proxy-Authorization` header, overwriting any existing - // `Proxy-Authorization` custom headers you have set using `headers`. - // If the proxy server uses HTTPS, then you must set the protocol to `https`. - proxy: { - protocol: 'https', - host: '127.0.0.1', - // hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined - port: 9000, - auth: { - username: 'mikeymike', - password: 'rapunz3l' - } - }, - - // `cancelToken` specifies a cancel token that can be used to cancel the request - // (see Cancellation section below for details) - cancelToken: new CancelToken(function (cancel) { - }), - - // an alternative way to cancel Axios requests using AbortController - signal: new AbortController().signal, - - // `decompress` indicates whether or not the response body should be decompressed - // automatically. If set to `true` will also remove the 'content-encoding' header - // from the responses objects of all decompressed responses - // - Node only (XHR cannot turn off decompression) - decompress: true, // default - - // `insecureHTTPParser` boolean. - // Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers. - // This may allow interoperability with non-conformant HTTP implementations. - // Using the insecure parser should be avoided. - // see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback - // see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none - insecureHTTPParser: undefined, // default - - // transitional options for backward compatibility that may be removed in the newer versions - transitional: { - // silent JSON parsing mode - // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour) - // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json') - silentJSONParsing: true, // default value for the current Axios version - - // try to parse the response string as JSON even if `responseType` is not 'json' - forcedJSONParsing: true, - - // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts - clarifyTimeoutError: false, - }, - - env: { - // The FormData class to be used to automatically serialize the payload into a FormData object - FormData: window?.FormData || global?.FormData - }, - - formSerializer: { - visitor: (value, key, path, helpers) => {}; // custom visitor function to serialize form values - dots: boolean; // use dots instead of brackets format - metaTokens: boolean; // keep special endings like {} in parameter key - indexes: boolean; // array indexes format null - no brackets, false - empty brackets, true - brackets with indexes - }, - - // http adapter only (node.js) - maxRate: [ - 100 * 1024, // 100KB/s upload limit, - 100 * 1024 // 100KB/s download limit - ] -} -``` - -## Response Schema - -The response for a request contains the following information. - -```js -{ - // `data` is the response that was provided by the server - data: {}, - - // `status` is the HTTP status code from the server response - status: 200, - - // `statusText` is the HTTP status message from the server response - statusText: 'OK', - - // `headers` the HTTP headers that the server responded with - // All header names are lowercase and can be accessed using the bracket notation. - // Example: `response.headers['content-type']` - headers: {}, - - // `config` is the config that was provided to `axios` for the request - config: {}, - - // `request` is the request that generated this response - // It is the last ClientRequest instance in node.js (in redirects) - // and an XMLHttpRequest instance in the browser - request: {} -} -``` - -When using `then`, you will receive the response as follows: - -```js -axios.get('/user/12345') - .then(function (response) { - console.log(response.data); - console.log(response.status); - console.log(response.statusText); - console.log(response.headers); - console.log(response.config); - }); -``` - -When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section. - -## Config Defaults - -You can specify config defaults that will be applied to every request. - -### Global axios defaults - -```js -axios.defaults.baseURL = 'https://api.example.com'; - -// Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them. -// See below for an example using Custom instance defaults instead. -axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; - -axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; -``` - -### Custom instance defaults - -```js -// Set config defaults when creating the instance -const instance = axios.create({ - baseURL: 'https://api.example.com' -}); - -// Alter defaults after instance has been created -instance.defaults.headers.common['Authorization'] = AUTH_TOKEN; -``` - -### Config order of precedence - -Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults/index.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example. - -```js -// Create an instance using the config defaults provided by the library -// At this point the timeout config value is `0` as is the default for the library -const instance = axios.create(); - -// Override timeout default for the library -// Now all requests using this instance will wait 2.5 seconds before timing out -instance.defaults.timeout = 2500; - -// Override timeout for this request as it's known to take a long time -instance.get('/longRequest', { - timeout: 5000 -}); -``` - -## Interceptors - -You can intercept requests or responses before they are handled by `then` or `catch`. - -```js -// Add a request interceptor -axios.interceptors.request.use(function (config) { - // Do something before request is sent - return config; - }, function (error) { - // Do something with request error - return Promise.reject(error); - }); - -// Add a response interceptor -axios.interceptors.response.use(function (response) { - // Any status code that lie within the range of 2xx cause this function to trigger - // Do something with response data - return response; - }, function (error) { - // Any status codes that falls outside the range of 2xx cause this function to trigger - // Do something with response error - return Promise.reject(error); - }); -``` - -If you need to remove an interceptor later you can. - -```js -const myInterceptor = axios.interceptors.request.use(function () {/*...*/}); -axios.interceptors.request.eject(myInterceptor); -``` - -You can also clear all interceptors for requests or responses. -```js -const instance = axios.create(); -instance.interceptors.request.use(function () {/*...*/}); -instance.interceptors.request.clear(); // Removes interceptors from requests -instance.interceptors.response.use(function () {/*...*/}); -instance.interceptors.response.clear(); // Removes interceptors from responses -``` - -You can add interceptors to a custom instance of axios. - -```js -const instance = axios.create(); -instance.interceptors.request.use(function () {/*...*/}); -``` - -When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay -in the execution of your axios request when the main thread is blocked (a promise is created under the hood for -the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag -to the options object that will tell axios to run the code synchronously and avoid any delays in request execution. - -```js -axios.interceptors.request.use(function (config) { - config.headers.test = 'I am only a header!'; - return config; -}, null, { synchronous: true }); -``` - -If you want to execute a particular interceptor based on a runtime check, -you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return -of `runWhen` is `false`. The function will be called with the config -object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an -asynchronous request interceptor that only needs to run at certain times. - -```js -function onGetCall(config) { - return config.method === 'get'; -} -axios.interceptors.request.use(function (config) { - config.headers.test = 'special get headers'; - return config; -}, null, { runWhen: onGetCall }); -``` - -### Multiple Interceptors - -Given you add multiple response interceptors -and when the response was fulfilled -- then each interceptor is executed -- then they are executed in the order they were added -- then only the last interceptor's result is returned -- then every interceptor receives the result of its predecessor -- and when the fulfillment-interceptor throws - - then the following fulfillment-interceptor is not called - - then the following rejection-interceptor is called - - once caught, another following fulfill-interceptor is called again (just like in a promise chain). - -Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code. - -## Error Types - -There are many different axios error messages that can appear that can provide basic information about the specifics of the error and where opportunities may lie in debugging. - -The general structure of axios errors is as follows: -| Property | Definition | -| -------- | ---------- | -| message | A quick summary of the error message and the status it failed with. | -| name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. | -| stack | Provides the stack trace of the error. | -| config | An axios config object with specific instance configurations defined by the user from when the request was made | -| code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. | -| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings. - -Below is a list of potential axios identified error -| Code | Definition | -| -------- | ---------- | -| ERR_BAD_OPTION_VALUE | Invalid or unsupported value provided in axios configuration. | -| ERR_BAD_OPTION | Invalid option provided in axios configuration. | -| ECONNABORTED | Request timed out due to exceeding timeout specified in axios configuration. | -| ETIMEDOUT | Request timed out due to exceeding default axios timelimit. | -| ERR_NETWORK | Network-related issue. -| ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration. -| ERR_DEPRECATED | Deprecated feature or method used in axios. -| ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format. -| ERR_BAD_REQUEST | Requested has unexpected format or missing required parameters. | -| ERR_CANCELED | Feature or method is canceled explicitly by the user. -| ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment. -| ERR_INVALID_URL | Invalid URL provided for axios request. - -## Handling Errors - -the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error. - -```js -axios.get('/user/12345') - .catch(function (error) { - if (error.response) { - // The request was made and the server responded with a status code - // that falls out of the range of 2xx - console.log(error.response.data); - console.log(error.response.status); - console.log(error.response.headers); - } else if (error.request) { - // The request was made but no response was received - // `error.request` is an instance of XMLHttpRequest in the browser and an instance of - // http.ClientRequest in node.js - console.log(error.request); - } else { - // Something happened in setting up the request that triggered an Error - console.log('Error', error.message); - } - console.log(error.config); - }); -``` - -Using the `validateStatus` config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error. - -```js -axios.get('/user/12345', { - validateStatus: function (status) { - return status < 500; // Resolve only if the status code is less than 500 - } -}) -``` - -Using `toJSON` you get an object with more information about the HTTP error. - -```js -axios.get('/user/12345') - .catch(function (error) { - console.log(error.toJSON()); - }); -``` - -## Cancellation - -### AbortController - -Starting from `v0.22.0` Axios supports AbortController to cancel requests in fetch API way: - -```js -const controller = new AbortController(); - -axios.get('/foo/bar', { - signal: controller.signal -}).then(function(response) { - //... -}); -// cancel the request -controller.abort() -``` - -### CancelToken `👎deprecated` - -You can also cancel a request using a *CancelToken*. - -> The axios cancel token API is based on the withdrawn [cancellable promises proposal](https://github.com/tc39/proposal-cancelable-promises). - -> This API is deprecated since v0.22.0 and shouldn't be used in new projects - -You can create a cancel token using the `CancelToken.source` factory as shown below: - -```js -const CancelToken = axios.CancelToken; -const source = CancelToken.source(); - -axios.get('/user/12345', { - cancelToken: source.token -}).catch(function (thrown) { - if (axios.isCancel(thrown)) { - console.log('Request canceled', thrown.message); - } else { - // handle error - } -}); - -axios.post('/user/12345', { - name: 'new name' -}, { - cancelToken: source.token -}) - -// cancel the request (the message parameter is optional) -source.cancel('Operation canceled by the user.'); -``` - -You can also create a cancel token by passing an executor function to the `CancelToken` constructor: - -```js -const CancelToken = axios.CancelToken; -let cancel; - -axios.get('/user/12345', { - cancelToken: new CancelToken(function executor(c) { - // An executor function receives a cancel function as a parameter - cancel = c; - }) -}); - -// cancel the request -cancel(); -``` - -> **Note:** you can cancel several requests with the same cancel token/abort controller. -> If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make a real request. - -> During the transition period, you can use both cancellation APIs, even for the same request: - -## Using `application/x-www-form-urlencoded` format - -### URLSearchParams - -By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018). - -```js -const params = new URLSearchParams({ foo: 'bar' }); -params.append('extraparam', 'value'); -axios.post('/foo', params); -``` - -### Query string (Older browsers) - -For compatibility with very old browsers, there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment). - -Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library: - -```js -const qs = require('qs'); -axios.post('/foo', qs.stringify({ 'bar': 123 })); -``` - -Or in another way (ES6), - -```js -import qs from 'qs'; -const data = { 'bar': 123 }; -const options = { - method: 'POST', - headers: { 'content-type': 'application/x-www-form-urlencoded' }, - data: qs.stringify(data), - url, -}; -axios(options); -``` - -### Older Node.js versions - -For older Node.js engines, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows: - -```js -const querystring = require('querystring'); -axios.post('https://something.com/', querystring.stringify({ foo: 'bar' })); -``` - -You can also use the [`qs`](https://github.com/ljharb/qs) library. - -> **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case. - -### 🆕 Automatic serialization to URLSearchParams - -Axios will automatically serialize the data object to urlencoded format if the content-type header is set to "application/x-www-form-urlencoded". - -```js -const data = { - x: 1, - arr: [1, 2, 3], - arr2: [1, [2], 3], - users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}], -}; - -await axios.postForm('https://postman-echo.com/post', data, - {headers: {'content-type': 'application/x-www-form-urlencoded'}} -); -``` - -The server will handle it as: - -```js - { - x: '1', - 'arr[]': [ '1', '2', '3' ], - 'arr2[0]': '1', - 'arr2[1][0]': '2', - 'arr2[2]': '3', - 'arr3[]': [ '1', '2', '3' ], - 'users[0][name]': 'Peter', - 'users[0][surname]': 'griffin', - 'users[1][name]': 'Thomas', - 'users[1][surname]': 'Anderson' - } -```` - -If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically - -```js - var app = express(); - - app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies - - app.post('/', function (req, res, next) { - // echo body as JSON - res.send(JSON.stringify(req.body)); - }); - - server = app.listen(3000); -``` - -## Using `multipart/form-data` format - -### FormData - -To send the data as a `multipart/formdata` you need to pass a formData instance as a payload. -Setting the `Content-Type` header is not required as Axios guesses it based on the payload type. - -```js -const formData = new FormData(); -formData.append('foo', 'bar'); - -axios.post('https://httpbin.org/post', formData); -``` - -In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows: - -```js -const FormData = require('form-data'); - -const form = new FormData(); -form.append('my_field', 'my value'); -form.append('my_buffer', new Buffer(10)); -form.append('my_file', fs.createReadStream('/foo/bar.jpg')); - -axios.post('https://example.com', form) -``` - -### 🆕 Automatic serialization to FormData - -Starting from `v0.27.0`, Axios supports automatic object serialization to a FormData object if the request `Content-Type` -header is set to `multipart/form-data`. - -The following request will submit the data in a FormData format (Browser & Node.js): - -```js -import axios from 'axios'; - -axios.post('https://httpbin.org/post', {x: 1}, { - headers: { - 'Content-Type': 'multipart/form-data' - } -}).then(({data}) => console.log(data)); -``` - -In the `node.js` build, the ([`form-data`](https://github.com/form-data/form-data)) polyfill is used by default. - -You can overload the FormData class by setting the `env.FormData` config variable, -but you probably won't need it in most cases: - -```js -const axios = require('axios'); -var FormData = require('form-data'); - -axios.post('https://httpbin.org/post', {x: 1, buf: new Buffer(10)}, { - headers: { - 'Content-Type': 'multipart/form-data' - } -}).then(({data}) => console.log(data)); -``` - -Axios FormData serializer supports some special endings to perform the following operations: - -- `{}` - serialize the value with JSON.stringify -- `[]` - unwrap the array-like object as separate fields with the same key - -> **Note**: unwrap/expand operation will be used by default on arrays and FileList objects - -FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases: - -- `visitor: Function` - user-defined visitor function that will be called recursively to serialize the data object -to a `FormData` object by following custom rules. - -- `dots: boolean = false` - use dot notation instead of brackets to serialize arrays and objects; - -- `metaTokens: boolean = true` - add the special ending (e.g `user{}: '{"name": "John"}'`) in the FormData key. -The back-end body-parser could potentially use this meta-information to automatically parse the value as JSON. - -- `indexes: null|false|true = false` - controls how indexes will be added to unwrapped keys of `flat` array-like objects - - - `null` - don't add brackets (`arr: 1`, `arr: 2`, `arr: 3`) - - `false`(default) - add empty brackets (`arr[]: 1`, `arr[]: 2`, `arr[]: 3`) - - `true` - add brackets with indexes (`arr[0]: 1`, `arr[1]: 2`, `arr[2]: 3`) - -Let's say we have an object like this one: - -```js -const obj = { - x: 1, - arr: [1, 2, 3], - arr2: [1, [2], 3], - users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}], - 'obj2{}': [{x:1}] -}; -``` - -The following steps will be executed by the Axios serializer internally: - -```js -const formData = new FormData(); -formData.append('x', '1'); -formData.append('arr[]', '1'); -formData.append('arr[]', '2'); -formData.append('arr[]', '3'); -formData.append('arr2[0]', '1'); -formData.append('arr2[1][0]', '2'); -formData.append('arr2[2]', '3'); -formData.append('users[0][name]', 'Peter'); -formData.append('users[0][surname]', 'Griffin'); -formData.append('users[1][name]', 'Thomas'); -formData.append('users[1][surname]', 'Anderson'); -formData.append('obj2{}', '[{"x":1}]'); -``` - -Axios supports the following shortcut methods: `postForm`, `putForm`, `patchForm` -which are just the corresponding http methods with the `Content-Type` header preset to `multipart/form-data`. - -## Files Posting - -You can easily submit a single file: - -```js -await axios.postForm('https://httpbin.org/post', { - 'myVar' : 'foo', - 'file': document.querySelector('#fileInput').files[0] -}); -``` - -or multiple files as `multipart/form-data`: - -```js -await axios.postForm('https://httpbin.org/post', { - 'files[]': document.querySelector('#fileInput').files -}); -``` - -`FileList` object can be passed directly: - -```js -await axios.postForm('https://httpbin.org/post', document.querySelector('#fileInput').files) -``` - -All files will be sent with the same field names: `files[]`. - -## 🆕 HTML Form Posting (browser) - -Pass HTML Form element as a payload to submit it as `multipart/form-data` content. - -```js -await axios.postForm('https://httpbin.org/post', document.querySelector('#htmlForm')); -``` - -`FormData` and `HTMLForm` objects can also be posted as `JSON` by explicitly setting the `Content-Type` header to `application/json`: - -```js -await axios.post('https://httpbin.org/post', document.querySelector('#htmlForm'), { - headers: { - 'Content-Type': 'application/json' - } -}) -``` - -For example, the Form - -```html -
- - - - - - - - - -
-``` - -will be submitted as the following JSON object: - -```js -{ - "foo": "1", - "deep": { - "prop": { - "spaced": "3" - } - }, - "baz": [ - "4", - "5" - ], - "user": { - "age": "value2" - } -} -```` - -Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported. - -## 🆕 Progress capturing - -Axios supports both browser and node environments to capture request upload/download progress. - -```js -await axios.post(url, data, { - onUploadProgress: function (axiosProgressEvent) { - /*{ - loaded: number; - total?: number; - progress?: number; // in range [0..1] - bytes: number; // how many bytes have been transferred since the last trigger (delta) - estimated?: number; // estimated time in seconds - rate?: number; // upload speed in bytes - upload: true; // upload sign - }*/ - }, - - onDownloadProgress: function (axiosProgressEvent) { - /*{ - loaded: number; - total?: number; - progress?: number; - bytes: number; - estimated?: number; - rate?: number; // download speed in bytes - download: true; // download sign - }*/ - } -}); -``` - -You can also track stream upload/download progress in node.js: - -```js -const {data} = await axios.post(SERVER_URL, readableStream, { - onUploadProgress: ({progress}) => { - console.log((progress * 100).toFixed(2)); - }, - - headers: { - 'Content-Length': contentLength - }, - - maxRedirects: 0 // avoid buffering the entire stream -}); -```` - -> **Note:** -> Capturing FormData upload progress is not currently supported in node.js environments. - -> **⚠️ Warning** -> It is recommended to disable redirects by setting maxRedirects: 0 to upload the stream in the **node.js** environment, -> as follow-redirects package will buffer the entire stream in RAM without following the "backpressure" algorithm. - - -## 🆕 Rate limiting - -Download and upload rate limits can only be set for the http adapter (node.js): - -```js -const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, { - onUploadProgress: ({progress, rate}) => { - console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`) - }, - - maxRate: [100 * 1024], // 100KB/s limit -}); -``` - -## 🆕 AxiosHeaders - -Axios has its own `AxiosHeaders` class to manipulate headers using a Map-like API that guarantees caseless work. -Although HTTP is case-insensitive in headers, Axios will retain the case of the original header for stylistic reasons -and for a workaround when servers mistakenly consider the header's case. -The old approach of directly manipulating headers object is still available, but deprecated and not recommended for future usage. - -### Working with headers - -An AxiosHeaders object instance can contain different types of internal values. that control setting and merging logic. -The final headers object with string values is obtained by Axios by calling the `toJSON` method. - -> Note: By JSON here we mean an object consisting only of string values intended to be sent over the network. - -The header value can be one of the following types: -- `string` - normal string value that will be sent to the server -- `null` - skip header when rendering to JSON -- `false` - skip header when rendering to JSON, additionally indicates that `set` method must be called with `rewrite` option set to `true` - to overwrite this value (Axios uses this internally to allow users to opt out of installing certain headers like `User-Agent` or `Content-Type`) -- `undefined` - value is not set - -> Note: The header value is considered set if it is not equal to undefined. - -The headers object is always initialized inside interceptors and transformers: - -```ts - axios.interceptors.request.use((request: InternalAxiosRequestConfig) => { - request.headers.set('My-header', 'value'); - - request.headers.set({ - "My-set-header1": "my-set-value1", - "My-set-header2": "my-set-value2" - }); - - request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios - - request.headers.setContentType('text/plain'); - - request.headers['My-set-header2'] = 'newValue' // direct access is deprecated - - return request; - } - ); -```` - -You can iterate over an `AxiosHeaders` instance using a `for...of` statement: - -````js -const headers = new AxiosHeaders({ - foo: '1', - bar: '2', - baz: '3' -}); - -for(const [header, value] of headers) { - console.log(header, value); -} - -// foo 1 -// bar 2 -// baz 3 -```` - -### new AxiosHeaders(headers?) - -Constructs a new `AxiosHeaders` instance. - -``` -constructor(headers?: RawAxiosHeaders | AxiosHeaders | string); -``` - -If the headers object is a string, it will be parsed as RAW HTTP headers. - -````js -const headers = new AxiosHeaders(` -Host: www.bing.com -User-Agent: curl/7.54.0 -Accept: */*`); - -console.log(headers); - -// Object [AxiosHeaders] { -// host: 'www.bing.com', -// 'user-agent': 'curl/7.54.0', -// accept: '*/*' -// } -```` - -### AxiosHeaders#set - -```ts -set(headerName, value: Axios, rewrite?: boolean); -set(headerName, value, rewrite?: (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean); -set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean); -``` - -The `rewrite` argument controls the overwriting behavior: -- `false` - do not overwrite if header's value is set (is not `undefined`) -- `undefined` (default) - overwrite the header unless its value is set to `false` -- `true` - rewrite anyway - -The option can also accept a user-defined function that determines whether the value should be overwritten or not. - -Returns `this`. - -### AxiosHeaders#get(header) - -``` - get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue; - get(headerName: string, parser: RegExp): RegExpExecArray | null; -```` - -Returns the internal value of the header. It can take an extra argument to parse the header's value with `RegExp.exec`, -matcher function or internal key-value parser. - -```ts -const headers = new AxiosHeaders({ - 'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h' -}); - -console.log(headers.get('Content-Type')); -// multipart/form-data; boundary=Asrf456BGe4h - -console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters: -// [Object: null prototype] { -// 'multipart/form-data': undefined, -// boundary: 'Asrf456BGe4h' -// } - - -console.log(headers.get('Content-Type', (value, name, headers) => { - return String(value).replace(/a/g, 'ZZZ'); -})); -// multipZZZrt/form-dZZZtZZZ; boundZZZry=Asrf456BGe4h - -console.log(headers.get('Content-Type', /boundary=(\w+)/)?.[0]); -// boundary=Asrf456BGe4h - -``` - -Returns the value of the header. - -### AxiosHeaders#has(header, matcher?) - -``` -has(header: string, matcher?: AxiosHeaderMatcher): boolean; -``` - -Returns `true` if the header is set (has no `undefined` value). - -### AxiosHeaders#delete(header, matcher?) - -``` -delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; -``` - -Returns `true` if at least one header has been removed. - -### AxiosHeaders#clear(matcher?) - -``` -clear(matcher?: AxiosHeaderMatcher): boolean; -``` - -Removes all headers. -Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value. - -```ts -const headers = new AxiosHeaders({ - 'foo': '1', - 'x-foo': '2', - 'x-bar': '3', -}); - -console.log(headers.clear(/^x-/)); // true - -console.log(headers.toJSON()); // [Object: null prototype] { foo: '1' } -``` - -Returns `true` if at least one header has been cleared. - -### AxiosHeaders#normalize(format); - -If the headers object was changed directly, it can have duplicates with the same name but in different cases. -This method normalizes the headers object by combining duplicate keys into one. -Axios uses this method internally after calling each interceptor. -Set `format` to true for converting headers name to lowercase and capitalize the initial letters (`cOntEnt-type` => `Content-Type`) - -```js -const headers = new AxiosHeaders({ - 'foo': '1', -}); - -headers.Foo = '2'; -headers.FOO = '3'; - -console.log(headers.toJSON()); // [Object: null prototype] { foo: '1', Foo: '2', FOO: '3' } -console.log(headers.normalize().toJSON()); // [Object: null prototype] { foo: '3' } -console.log(headers.normalize(true).toJSON()); // [Object: null prototype] { Foo: '3' } -``` - -Returns `this`. - -### AxiosHeaders#concat(...targets) - -``` -concat(...targets: Array): AxiosHeaders; -``` - -Merges the instance with targets into a new `AxiosHeaders` instance. If the target is a string, it will be parsed as RAW HTTP headers. - -Returns a new `AxiosHeaders` instance. - -### AxiosHeaders#toJSON(asStrings?) - -```` -toJSON(asStrings?: boolean): RawAxiosHeaders; -```` - -Resolve all internal headers values into a new null prototype object. -Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas. - -### AxiosHeaders.from(thing?) - -```` -from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; -```` - -Returns a new `AxiosHeaders` instance created from the raw headers passed in, -or simply returns the given headers object if it's an `AxiosHeaders` instance. - -### AxiosHeaders.concat(...targets) - -```` -concat(...targets: Array): AxiosHeaders; -```` - -Returns a new `AxiosHeaders` instance created by merging the target objects. - -### Shortcuts - -The following shortcuts are available: - -- `setContentType`, `getContentType`, `hasContentType` - -- `setContentLength`, `getContentLength`, `hasContentLength` - -- `setAccept`, `getAccept`, `hasAccept` - -- `setUserAgent`, `getUserAgent`, `hasUserAgent` - -- `setContentEncoding`, `getContentEncoding`, `hasContentEncoding` - - -## Semver - -Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes. - -## Promises - -axios depends on a native ES6 Promise implementation to be [supported](https://caniuse.com/promises). -If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise). - -## TypeScript - -axios includes [TypeScript](https://typescriptlang.org) definitions and a type guard for axios errors. - -```typescript -let user: User = null; -try { - const { data } = await axios.get('/user?ID=12345'); - user = data.userDetails; -} catch (error) { - if (axios.isAxiosError(error)) { - handleAxiosError(error); - } else { - handleUnexpectedError(error); - } -} -``` - -Because axios dual publishes with an ESM default export and a CJS `module.exports`, there are some caveats. -The recommended setting is to use `"moduleResolution": "node16"` (this is implied by `"module": "node16"`). Note that this requires TypeScript 4.7 or greater. -If use ESM, your settings should be fine. -If you compile TypeScript to CJS and you can’t use `"moduleResolution": "node 16"`, you have to enable `esModuleInterop`. -If you use TypeScript to type check CJS JavaScript code, your only option is to use `"moduleResolution": "node16"`. - -## Online one-click setup - -You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online. - -[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js) - - -## Resources - -* [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) -* [Ecosystem](https://github.com/axios/axios/blob/v1.x/ECOSYSTEM.md) -* [Contributing Guide](https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md) -* [Code of Conduct](https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md) - -## Credits - -axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS. - -## License - -[MIT](LICENSE) diff --git a/node_modules/axios/SECURITY.md b/node_modules/axios/SECURITY.md deleted file mode 100644 index a5a2b7d2..00000000 --- a/node_modules/axios/SECURITY.md +++ /dev/null @@ -1,6 +0,0 @@ -# Reporting a Vulnerability - -If you discover a security vulnerability in axios please disclose it via [our huntr page](https://huntr.dev/repos/axios/axios/). Bounty eligibility, CVE assignment, response times and past reports are all there. - - -Thank you for improving the security of axios. diff --git a/node_modules/axios/dist/axios.js b/node_modules/axios/dist/axios.js deleted file mode 100644 index 2649e277..00000000 --- a/node_modules/axios/dist/axios.js +++ /dev/null @@ -1,3448 +0,0 @@ -// Axios v1.6.8 Copyright (c) 2024 Matt Zabriskie and contributors -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory()); -})(this, (function () { 'use strict'; - - function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } - } - function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; - } - function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; - } - function _regeneratorRuntime() { - _regeneratorRuntime = function () { - return e; - }; - var t, - e = {}, - r = Object.prototype, - n = r.hasOwnProperty, - o = Object.defineProperty || function (t, e, r) { - t[e] = r.value; - }, - i = "function" == typeof Symbol ? Symbol : {}, - a = i.iterator || "@@iterator", - c = i.asyncIterator || "@@asyncIterator", - u = i.toStringTag || "@@toStringTag"; - function define(t, e, r) { - return Object.defineProperty(t, e, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }), t[e]; - } - try { - define({}, ""); - } catch (t) { - define = function (t, e, r) { - return t[e] = r; - }; - } - function wrap(t, e, r, n) { - var i = e && e.prototype instanceof Generator ? e : Generator, - a = Object.create(i.prototype), - c = new Context(n || []); - return o(a, "_invoke", { - value: makeInvokeMethod(t, r, c) - }), a; - } - function tryCatch(t, e, r) { - try { - return { - type: "normal", - arg: t.call(e, r) - }; - } catch (t) { - return { - type: "throw", - arg: t - }; - } - } - e.wrap = wrap; - var h = "suspendedStart", - l = "suspendedYield", - f = "executing", - s = "completed", - y = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var p = {}; - define(p, a, function () { - return this; - }); - var d = Object.getPrototypeOf, - v = d && d(d(values([]))); - v && v !== r && n.call(v, a) && (p = v); - var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); - function defineIteratorMethods(t) { - ["next", "throw", "return"].forEach(function (e) { - define(t, e, function (t) { - return this._invoke(e, t); - }); - }); - } - function AsyncIterator(t, e) { - function invoke(r, o, i, a) { - var c = tryCatch(t[r], t, o); - if ("throw" !== c.type) { - var u = c.arg, - h = u.value; - return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { - invoke("next", t, i, a); - }, function (t) { - invoke("throw", t, i, a); - }) : e.resolve(h).then(function (t) { - u.value = t, i(u); - }, function (t) { - return invoke("throw", t, i, a); - }); - } - a(c.arg); - } - var r; - o(this, "_invoke", { - value: function (t, n) { - function callInvokeWithMethodAndArg() { - return new e(function (e, r) { - invoke(t, n, e, r); - }); - } - return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); - } - function makeInvokeMethod(e, r, n) { - var o = h; - return function (i, a) { - if (o === f) throw new Error("Generator is already running"); - if (o === s) { - if ("throw" === i) throw a; - return { - value: t, - done: !0 - }; - } - for (n.method = i, n.arg = a;;) { - var c = n.delegate; - if (c) { - var u = maybeInvokeDelegate(c, n); - if (u) { - if (u === y) continue; - return u; - } - } - if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { - if (o === h) throw o = s, n.arg; - n.dispatchException(n.arg); - } else "return" === n.method && n.abrupt("return", n.arg); - o = f; - var p = tryCatch(e, r, n); - if ("normal" === p.type) { - if (o = n.done ? s : l, p.arg === y) continue; - return { - value: p.arg, - done: n.done - }; - } - "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); - } - }; - } - function maybeInvokeDelegate(e, r) { - var n = r.method, - o = e.iterator[n]; - if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; - var i = tryCatch(o, e.iterator, r.arg); - if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; - var a = i.arg; - return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); - } - function pushTryEntry(t) { - var e = { - tryLoc: t[0] - }; - 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); - } - function resetTryEntry(t) { - var e = t.completion || {}; - e.type = "normal", delete e.arg, t.completion = e; - } - function Context(t) { - this.tryEntries = [{ - tryLoc: "root" - }], t.forEach(pushTryEntry, this), this.reset(!0); - } - function values(e) { - if (e || "" === e) { - var r = e[a]; - if (r) return r.call(e); - if ("function" == typeof e.next) return e; - if (!isNaN(e.length)) { - var o = -1, - i = function next() { - for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; - return next.value = t, next.done = !0, next; - }; - return i.next = i; - } - } - throw new TypeError(typeof e + " is not iterable"); - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), o(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { - var e = "function" == typeof t && t.constructor; - return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); - }, e.mark = function (t) { - return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; - }, e.awrap = function (t) { - return { - __await: t - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { - return this; - }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { - void 0 === i && (i = Promise); - var a = new AsyncIterator(wrap(t, r, n, o), i); - return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { - return t.done ? t.value : a.next(); - }); - }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { - return this; - }), define(g, "toString", function () { - return "[object Generator]"; - }), e.keys = function (t) { - var e = Object(t), - r = []; - for (var n in e) r.push(n); - return r.reverse(), function next() { - for (; r.length;) { - var t = r.pop(); - if (t in e) return next.value = t, next.done = !1, next; - } - return next.done = !0, next; - }; - }, e.values = values, Context.prototype = { - constructor: Context, - reset: function (e) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); - }, - stop: function () { - this.done = !0; - var t = this.tryEntries[0].completion; - if ("throw" === t.type) throw t.arg; - return this.rval; - }, - dispatchException: function (e) { - if (this.done) throw e; - var r = this; - function handle(n, o) { - return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; - } - for (var o = this.tryEntries.length - 1; o >= 0; --o) { - var i = this.tryEntries[o], - a = i.completion; - if ("root" === i.tryLoc) return handle("end"); - if (i.tryLoc <= this.prev) { - var c = n.call(i, "catchLoc"), - u = n.call(i, "finallyLoc"); - if (c && u) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } else if (c) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - } else { - if (!u) throw new Error("try statement without catch or finally"); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } - } - } - }, - abrupt: function (t, e) { - for (var r = this.tryEntries.length - 1; r >= 0; --r) { - var o = this.tryEntries[r]; - if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { - var i = o; - break; - } - } - i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); - var a = i ? i.completion : {}; - return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); - }, - complete: function (t, e) { - if ("throw" === t.type) throw t.arg; - return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; - }, - finish: function (t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; - } - }, - catch: function (t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.tryLoc === t) { - var n = r.completion; - if ("throw" === n.type) { - var o = n.arg; - resetTryEntry(r); - } - return o; - } - } - throw new Error("illegal catch attempt"); - }, - delegateYield: function (e, r, n) { - return this.delegate = { - iterator: values(e), - resultName: r, - nextLoc: n - }, "next" === this.method && (this.arg = t), y; - } - }, e; - } - function _toPrimitive(t, r) { - if ("object" != typeof t || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != typeof i) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); - } - function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == typeof i ? i : String(i); - } - function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); - } - function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } - } - function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(undefined); - }); - }; - } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; - } - function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); - } - function _toArray(arr) { - return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); - } - function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - - function bind(fn, thisArg) { - return function wrap() { - return fn.apply(thisArg, arguments); - }; - } - - // utils is a library of generic helper functions non-specific to axios - - var toString = Object.prototype.toString; - var getPrototypeOf = Object.getPrototypeOf; - var kindOf = function (cache) { - return function (thing) { - var str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); - }; - }(Object.create(null)); - var kindOfTest = function kindOfTest(type) { - type = type.toLowerCase(); - return function (thing) { - return kindOf(thing) === type; - }; - }; - var typeOfTest = function typeOfTest(type) { - return function (thing) { - return _typeof(thing) === type; - }; - }; - - /** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * - * @returns {boolean} True if value is an Array, otherwise false - */ - var isArray = Array.isArray; - - /** - * Determine if a value is undefined - * - * @param {*} val The value to test - * - * @returns {boolean} True if the value is undefined, otherwise false - */ - var isUndefined = typeOfTest('undefined'); - - /** - * Determine if a value is a Buffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Buffer, otherwise false - */ - function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); - } - - /** - * Determine if a value is an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ - var isArrayBuffer = kindOfTest('ArrayBuffer'); - - /** - * Determine if a value is a view on an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ - function isArrayBufferView(val) { - var result; - if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) { - result = ArrayBuffer.isView(val); - } else { - result = val && val.buffer && isArrayBuffer(val.buffer); - } - return result; - } - - /** - * Determine if a value is a String - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a String, otherwise false - */ - var isString = typeOfTest('string'); - - /** - * Determine if a value is a Function - * - * @param {*} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ - var isFunction = typeOfTest('function'); - - /** - * Determine if a value is a Number - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Number, otherwise false - */ - var isNumber = typeOfTest('number'); - - /** - * Determine if a value is an Object - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an Object, otherwise false - */ - var isObject = function isObject(thing) { - return thing !== null && _typeof(thing) === 'object'; - }; - - /** - * Determine if a value is a Boolean - * - * @param {*} thing The value to test - * @returns {boolean} True if value is a Boolean, otherwise false - */ - var isBoolean = function isBoolean(thing) { - return thing === true || thing === false; - }; - - /** - * Determine if a value is a plain Object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a plain Object, otherwise false - */ - var isPlainObject = function isPlainObject(val) { - if (kindOf(val) !== 'object') { - return false; - } - var prototype = getPrototypeOf(val); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); - }; - - /** - * Determine if a value is a Date - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Date, otherwise false - */ - var isDate = kindOfTest('Date'); - - /** - * Determine if a value is a File - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ - var isFile = kindOfTest('File'); - - /** - * Determine if a value is a Blob - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Blob, otherwise false - */ - var isBlob = kindOfTest('Blob'); - - /** - * Determine if a value is a FileList - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ - var isFileList = kindOfTest('FileList'); - - /** - * Determine if a value is a Stream - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Stream, otherwise false - */ - var isStream = function isStream(val) { - return isObject(val) && isFunction(val.pipe); - }; - - /** - * Determine if a value is a FormData - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an FormData, otherwise false - */ - var isFormData = function isFormData(thing) { - var kind; - return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' || - // detect form-data instance - kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')); - }; - - /** - * Determine if a value is a URLSearchParams object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ - var isURLSearchParams = kindOfTest('URLSearchParams'); - - /** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * - * @returns {String} The String freed of excess whitespace - */ - var trim = function trim(str) { - return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - }; - - /** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - * - * @param {Boolean} [allOwnKeys = false] - * @returns {any} - */ - function forEach(obj, fn) { - var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - _ref$allOwnKeys = _ref.allOwnKeys, - allOwnKeys = _ref$allOwnKeys === void 0 ? false : _ref$allOwnKeys; - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - var i; - var l; - - // Force an array if not already something iterable - if (_typeof(obj) !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - if (isArray(obj)) { - // Iterate over array values - for (i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); - var len = keys.length; - var key; - for (i = 0; i < len; i++) { - key = keys[i]; - fn.call(null, obj[key], key, obj); - } - } - } - function findKey(obj, key) { - key = key.toLowerCase(); - var keys = Object.keys(obj); - var i = keys.length; - var _key; - while (i-- > 0) { - _key = keys[i]; - if (key === _key.toLowerCase()) { - return _key; - } - } - return null; - } - var _global = function () { - /*eslint no-undef:0*/ - if (typeof globalThis !== "undefined") return globalThis; - return typeof self !== "undefined" ? self : typeof window !== 'undefined' ? window : global; - }(); - var isContextDefined = function isContextDefined(context) { - return !isUndefined(context) && context !== _global; - }; - - /** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * - * @returns {Object} Result of all merge properties - */ - function merge( /* obj1, obj2, obj3, ... */ - ) { - var _ref2 = isContextDefined(this) && this || {}, - caseless = _ref2.caseless; - var result = {}; - var assignValue = function assignValue(val, key) { - var targetKey = caseless && findKey(result, key) || key; - if (isPlainObject(result[targetKey]) && isPlainObject(val)) { - result[targetKey] = merge(result[targetKey], val); - } else if (isPlainObject(val)) { - result[targetKey] = merge({}, val); - } else if (isArray(val)) { - result[targetKey] = val.slice(); - } else { - result[targetKey] = val; - } - }; - for (var i = 0, l = arguments.length; i < l; i++) { - arguments[i] && forEach(arguments[i], assignValue); - } - return result; - } - - /** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * - * @param {Boolean} [allOwnKeys] - * @returns {Object} The resulting value of object a - */ - var extend = function extend(a, b, thisArg) { - var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, - allOwnKeys = _ref3.allOwnKeys; - forEach(b, function (val, key) { - if (thisArg && isFunction(val)) { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }, { - allOwnKeys: allOwnKeys - }); - return a; - }; - - /** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * - * @returns {string} content value without BOM - */ - var stripBOM = function stripBOM(content) { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; - }; - - /** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - * - * @returns {void} - */ - var inherits = function inherits(constructor, superConstructor, props, descriptors) { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - Object.defineProperty(constructor, 'super', { - value: superConstructor.prototype - }); - props && Object.assign(constructor.prototype, props); - }; - - /** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function|Boolean} [filter] - * @param {Function} [propFilter] - * - * @returns {Object} - */ - var toFlatObject = function toFlatObject(sourceObj, destObj, filter, propFilter) { - var props; - var i; - var prop; - var merged = {}; - destObj = destObj || {}; - // eslint-disable-next-line no-eq-null,eqeqeq - if (sourceObj == null) return destObj; - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = filter !== false && getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - return destObj; - }; - - /** - * Determines whether a string ends with the characters of a specified string - * - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * - * @returns {boolean} - */ - var endsWith = function endsWith(str, searchString, position) { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - var lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; - }; - - /** - * Returns new array from array like object or null if failed - * - * @param {*} [thing] - * - * @returns {?Array} - */ - var toArray = function toArray(thing) { - if (!thing) return null; - if (isArray(thing)) return thing; - var i = thing.length; - if (!isNumber(i)) return null; - var arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; - }; - - /** - * Checking if the Uint8Array exists and if it does, it returns a function that checks if the - * thing passed in is an instance of Uint8Array - * - * @param {TypedArray} - * - * @returns {Array} - */ - // eslint-disable-next-line func-names - var isTypedArray = function (TypedArray) { - // eslint-disable-next-line func-names - return function (thing) { - return TypedArray && thing instanceof TypedArray; - }; - }(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); - - /** - * For each entry in the object, call the function with the key and value. - * - * @param {Object} obj - The object to iterate over. - * @param {Function} fn - The function to call for each entry. - * - * @returns {void} - */ - var forEachEntry = function forEachEntry(obj, fn) { - var generator = obj && obj[Symbol.iterator]; - var iterator = generator.call(obj); - var result; - while ((result = iterator.next()) && !result.done) { - var pair = result.value; - fn.call(obj, pair[0], pair[1]); - } - }; - - /** - * It takes a regular expression and a string, and returns an array of all the matches - * - * @param {string} regExp - The regular expression to match against. - * @param {string} str - The string to search. - * - * @returns {Array} - */ - var matchAll = function matchAll(regExp, str) { - var matches; - var arr = []; - while ((matches = regExp.exec(str)) !== null) { - arr.push(matches); - } - return arr; - }; - - /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ - var isHTMLForm = kindOfTest('HTMLFormElement'); - var toCamelCase = function toCamelCase(str) { - return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) { - return p1.toUpperCase() + p2; - }); - }; - - /* Creating a function that will check if an object has a property. */ - var hasOwnProperty = function (_ref4) { - var hasOwnProperty = _ref4.hasOwnProperty; - return function (obj, prop) { - return hasOwnProperty.call(obj, prop); - }; - }(Object.prototype); - - /** - * Determine if a value is a RegExp object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a RegExp object, otherwise false - */ - var isRegExp = kindOfTest('RegExp'); - var reduceDescriptors = function reduceDescriptors(obj, reducer) { - var descriptors = Object.getOwnPropertyDescriptors(obj); - var reducedDescriptors = {}; - forEach(descriptors, function (descriptor, name) { - var ret; - if ((ret = reducer(descriptor, name, obj)) !== false) { - reducedDescriptors[name] = ret || descriptor; - } - }); - Object.defineProperties(obj, reducedDescriptors); - }; - - /** - * Makes all methods read-only - * @param {Object} obj - */ - - var freezeMethods = function freezeMethods(obj) { - reduceDescriptors(obj, function (descriptor, name) { - // skip restricted props in strict mode - if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { - return false; - } - var value = obj[name]; - if (!isFunction(value)) return; - descriptor.enumerable = false; - if ('writable' in descriptor) { - descriptor.writable = false; - return; - } - if (!descriptor.set) { - descriptor.set = function () { - throw Error('Can not rewrite read-only method \'' + name + '\''); - }; - } - }); - }; - var toObjectSet = function toObjectSet(arrayOrString, delimiter) { - var obj = {}; - var define = function define(arr) { - arr.forEach(function (value) { - obj[value] = true; - }); - }; - isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); - return obj; - }; - var noop = function noop() {}; - var toFiniteNumber = function toFiniteNumber(value, defaultValue) { - value = +value; - return Number.isFinite(value) ? value : defaultValue; - }; - var ALPHA = 'abcdefghijklmnopqrstuvwxyz'; - var DIGIT = '0123456789'; - var ALPHABET = { - DIGIT: DIGIT, - ALPHA: ALPHA, - ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT - }; - var generateString = function generateString() { - var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16; - var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT; - var str = ''; - var length = alphabet.length; - while (size--) { - str += alphabet[Math.random() * length | 0]; - } - return str; - }; - - /** - * If the thing is a FormData object, return true, otherwise return false. - * - * @param {unknown} thing - The thing to check. - * - * @returns {boolean} - */ - function isSpecCompliantForm(thing) { - return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); - } - var toJSONObject = function toJSONObject(obj) { - var stack = new Array(10); - var visit = function visit(source, i) { - if (isObject(source)) { - if (stack.indexOf(source) >= 0) { - return; - } - if (!('toJSON' in source)) { - stack[i] = source; - var target = isArray(source) ? [] : {}; - forEach(source, function (value, key) { - var reducedValue = visit(value, i + 1); - !isUndefined(reducedValue) && (target[key] = reducedValue); - }); - stack[i] = undefined; - return target; - } - } - return source; - }; - return visit(obj, 0); - }; - var isAsyncFn = kindOfTest('AsyncFunction'); - var isThenable = function isThenable(thing) { - return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing["catch"]); - }; - var utils$1 = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isBoolean: isBoolean, - isObject: isObject, - isPlainObject: isPlainObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isRegExp: isRegExp, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isTypedArray: isTypedArray, - isFileList: isFileList, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim, - stripBOM: stripBOM, - inherits: inherits, - toFlatObject: toFlatObject, - kindOf: kindOf, - kindOfTest: kindOfTest, - endsWith: endsWith, - toArray: toArray, - forEachEntry: forEachEntry, - matchAll: matchAll, - isHTMLForm: isHTMLForm, - hasOwnProperty: hasOwnProperty, - hasOwnProp: hasOwnProperty, - // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors: reduceDescriptors, - freezeMethods: freezeMethods, - toObjectSet: toObjectSet, - toCamelCase: toCamelCase, - noop: noop, - toFiniteNumber: toFiniteNumber, - findKey: findKey, - global: _global, - isContextDefined: isContextDefined, - ALPHABET: ALPHABET, - generateString: generateString, - isSpecCompliantForm: isSpecCompliantForm, - toJSONObject: toJSONObject, - isAsyncFn: isAsyncFn, - isThenable: isThenable - }; - - /** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * - * @returns {Error} The created error. - */ - function AxiosError(message, code, config, request, response) { - Error.call(this); - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } else { - this.stack = new Error().stack; - } - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); - } - utils$1.inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: utils$1.toJSONObject(this.config), - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } - }); - var prototype$1 = AxiosError.prototype; - var descriptors = {}; - ['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' - // eslint-disable-next-line func-names - ].forEach(function (code) { - descriptors[code] = { - value: code - }; - }); - Object.defineProperties(AxiosError, descriptors); - Object.defineProperty(prototype$1, 'isAxiosError', { - value: true - }); - - // eslint-disable-next-line func-names - AxiosError.from = function (error, code, config, request, response, customProps) { - var axiosError = Object.create(prototype$1); - utils$1.toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }, function (prop) { - return prop !== 'isAxiosError'; - }); - AxiosError.call(axiosError, error.message, code, config, request, response); - axiosError.cause = error; - axiosError.name = error.name; - customProps && Object.assign(axiosError, customProps); - return axiosError; - }; - - // eslint-disable-next-line strict - var httpAdapter = null; - - /** - * Determines if the given thing is a array or js object. - * - * @param {string} thing - The object or array to be visited. - * - * @returns {boolean} - */ - function isVisitable(thing) { - return utils$1.isPlainObject(thing) || utils$1.isArray(thing); - } - - /** - * It removes the brackets from the end of a string - * - * @param {string} key - The key of the parameter. - * - * @returns {string} the key without the brackets. - */ - function removeBrackets(key) { - return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key; - } - - /** - * It takes a path, a key, and a boolean, and returns a string - * - * @param {string} path - The path to the current key. - * @param {string} key - The key of the current object being iterated over. - * @param {string} dots - If true, the key will be rendered with dots instead of brackets. - * - * @returns {string} The path to the current key. - */ - function renderKey(path, key, dots) { - if (!path) return key; - return path.concat(key).map(function each(token, i) { - // eslint-disable-next-line no-param-reassign - token = removeBrackets(token); - return !dots && i ? '[' + token + ']' : token; - }).join(dots ? '.' : ''); - } - - /** - * If the array is an array and none of its elements are visitable, then it's a flat array. - * - * @param {Array} arr - The array to check - * - * @returns {boolean} - */ - function isFlatArray(arr) { - return utils$1.isArray(arr) && !arr.some(isVisitable); - } - var predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { - return /^is[A-Z]/.test(prop); - }); - - /** - * Convert a data object to FormData - * - * @param {Object} obj - * @param {?Object} [formData] - * @param {?Object} [options] - * @param {Function} [options.visitor] - * @param {Boolean} [options.metaTokens = true] - * @param {Boolean} [options.dots = false] - * @param {?Boolean} [options.indexes = false] - * - * @returns {Object} - **/ - - /** - * It converts an object into a FormData object - * - * @param {Object} obj - The object to convert to form data. - * @param {string} formData - The FormData object to append to. - * @param {Object} options - * - * @returns - */ - function toFormData(obj, formData, options) { - if (!utils$1.isObject(obj)) { - throw new TypeError('target must be an object'); - } - - // eslint-disable-next-line no-param-reassign - formData = formData || new (FormData)(); - - // eslint-disable-next-line no-param-reassign - options = utils$1.toFlatObject(options, { - metaTokens: true, - dots: false, - indexes: false - }, false, function defined(option, source) { - // eslint-disable-next-line no-eq-null,eqeqeq - return !utils$1.isUndefined(source[option]); - }); - var metaTokens = options.metaTokens; - // eslint-disable-next-line no-use-before-define - var visitor = options.visitor || defaultVisitor; - var dots = options.dots; - var indexes = options.indexes; - var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; - var useBlob = _Blob && utils$1.isSpecCompliantForm(formData); - if (!utils$1.isFunction(visitor)) { - throw new TypeError('visitor must be a function'); - } - function convertValue(value) { - if (value === null) return ''; - if (utils$1.isDate(value)) { - return value.toISOString(); - } - if (!useBlob && utils$1.isBlob(value)) { - throw new AxiosError('Blob is not supported. Use a Buffer instead.'); - } - if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { - return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - return value; - } - - /** - * Default visitor. - * - * @param {*} value - * @param {String|Number} key - * @param {Array} path - * @this {FormData} - * - * @returns {boolean} return true to visit the each prop of the value recursively - */ - function defaultVisitor(value, key, path) { - var arr = value; - if (value && !path && _typeof(value) === 'object') { - if (utils$1.endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - key = metaTokens ? key : key.slice(0, -2); - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))) { - // eslint-disable-next-line no-param-reassign - key = removeBrackets(key); - arr.forEach(function each(el, index) { - !(utils$1.isUndefined(el) || el === null) && formData.append( - // eslint-disable-next-line no-nested-ternary - indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el)); - }); - return false; - } - } - if (isVisitable(value)) { - return true; - } - formData.append(renderKey(path, key, dots), convertValue(value)); - return false; - } - var stack = []; - var exposedHelpers = Object.assign(predicates, { - defaultVisitor: defaultVisitor, - convertValue: convertValue, - isVisitable: isVisitable - }); - function build(value, path) { - if (utils$1.isUndefined(value)) return; - if (stack.indexOf(value) !== -1) { - throw Error('Circular reference detected in ' + path.join('.')); - } - stack.push(value); - utils$1.forEach(value, function each(el, key) { - var result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers); - if (result === true) { - build(el, path ? path.concat(key) : [key]); - } - }); - stack.pop(); - } - if (!utils$1.isObject(obj)) { - throw new TypeError('data must be an object'); - } - build(obj); - return formData; - } - - /** - * It encodes a string by replacing all characters that are not in the unreserved set with - * their percent-encoded equivalents - * - * @param {string} str - The string to encode. - * - * @returns {string} The encoded string. - */ - function encode$1(str) { - var charMap = { - '!': '%21', - "'": '%27', - '(': '%28', - ')': '%29', - '~': '%7E', - '%20': '+', - '%00': '\x00' - }; - return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { - return charMap[match]; - }); - } - - /** - * It takes a params object and converts it to a FormData object - * - * @param {Object} params - The parameters to be converted to a FormData object. - * @param {Object} options - The options object passed to the Axios constructor. - * - * @returns {void} - */ - function AxiosURLSearchParams(params, options) { - this._pairs = []; - params && toFormData(params, this, options); - } - var prototype = AxiosURLSearchParams.prototype; - prototype.append = function append(name, value) { - this._pairs.push([name, value]); - }; - prototype.toString = function toString(encoder) { - var _encode = encoder ? function (value) { - return encoder.call(this, value, encode$1); - } : encode$1; - return this._pairs.map(function each(pair) { - return _encode(pair[0]) + '=' + _encode(pair[1]); - }, '').join('&'); - }; - - /** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts - * - * @param {string} val The value to be encoded. - * - * @returns {string} The encoded value. - */ - function encode(val) { - return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']'); - } - - /** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @param {?object} options - * - * @returns {string} The formatted url - */ - function buildURL(url, params, options) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - var _encode = options && options.encode || encode; - var serializeFn = options && options.serialize; - var serializedParams; - if (serializeFn) { - serializedParams = serializeFn(params, options); - } else { - serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode); - } - if (serializedParams) { - var hashmarkIndex = url.indexOf("#"); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - return url; - } - - var InterceptorManager = /*#__PURE__*/function () { - function InterceptorManager() { - _classCallCheck(this, InterceptorManager); - this.handlers = []; - } - - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ - _createClass(InterceptorManager, [{ - key: "use", - value: function use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; - } - - /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - * - * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise - */ - }, { - key: "eject", - value: function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - } - - /** - * Clear all interceptors from the stack - * - * @returns {void} - */ - }, { - key: "clear", - value: function clear() { - if (this.handlers) { - this.handlers = []; - } - } - - /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - * - * @returns {void} - */ - }, { - key: "forEach", - value: function forEach(fn) { - utils$1.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); - } - }]); - return InterceptorManager; - }(); - var InterceptorManager$1 = InterceptorManager; - - var transitionalDefaults = { - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false - }; - - var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; - - var FormData$1 = typeof FormData !== 'undefined' ? FormData : null; - - var Blob$1 = typeof Blob !== 'undefined' ? Blob : null; - - var platform$1 = { - isBrowser: true, - classes: { - URLSearchParams: URLSearchParams$1, - FormData: FormData$1, - Blob: Blob$1 - }, - protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] - }; - - var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; - - /** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - * - * @returns {boolean} - */ - var hasStandardBrowserEnv = function (product) { - return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0; - }(typeof navigator !== 'undefined' && navigator.product); - - /** - * Determine if we're running in a standard browser webWorker environment - * - * Although the `isStandardBrowserEnv` method indicates that - * `allows axios to run in a web worker`, the WebWorker will still be - * filtered out due to its judgment standard - * `typeof window !== 'undefined' && typeof document !== 'undefined'`. - * This leads to a problem when axios post `FormData` in webWorker - */ - var hasStandardBrowserWebWorkerEnv = function () { - return typeof WorkerGlobalScope !== 'undefined' && - // eslint-disable-next-line no-undef - self instanceof WorkerGlobalScope && typeof self.importScripts === 'function'; - }(); - - var utils = /*#__PURE__*/Object.freeze({ - __proto__: null, - hasBrowserEnv: hasBrowserEnv, - hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv, - hasStandardBrowserEnv: hasStandardBrowserEnv - }); - - var platform = _objectSpread2(_objectSpread2({}, utils), platform$1); - - function toURLEncodedForm(data, options) { - return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ - visitor: function visitor(value, key, path, helpers) { - if (platform.isNode && utils$1.isBuffer(value)) { - this.append(key, value.toString('base64')); - return false; - } - return helpers.defaultVisitor.apply(this, arguments); - } - }, options)); - } - - /** - * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] - * - * @param {string} name - The name of the property to get. - * - * @returns An array of strings. - */ - function parsePropPath(name) { - // foo[x][y][z] - // foo.x.y.z - // foo-x-y-z - // foo x y z - return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(function (match) { - return match[0] === '[]' ? '' : match[1] || match[0]; - }); - } - - /** - * Convert an array to an object. - * - * @param {Array} arr - The array to convert to an object. - * - * @returns An object with the same keys and values as the array. - */ - function arrayToObject(arr) { - var obj = {}; - var keys = Object.keys(arr); - var i; - var len = keys.length; - var key; - for (i = 0; i < len; i++) { - key = keys[i]; - obj[key] = arr[key]; - } - return obj; - } - - /** - * It takes a FormData object and returns a JavaScript object - * - * @param {string} formData The FormData object to convert to JSON. - * - * @returns {Object | null} The converted object. - */ - function formDataToJSON(formData) { - function buildPath(path, value, target, index) { - var name = path[index++]; - if (name === '__proto__') return true; - var isNumericKey = Number.isFinite(+name); - var isLast = index >= path.length; - name = !name && utils$1.isArray(target) ? target.length : name; - if (isLast) { - if (utils$1.hasOwnProp(target, name)) { - target[name] = [target[name], value]; - } else { - target[name] = value; - } - return !isNumericKey; - } - if (!target[name] || !utils$1.isObject(target[name])) { - target[name] = []; - } - var result = buildPath(path, value, target[name], index); - if (result && utils$1.isArray(target[name])) { - target[name] = arrayToObject(target[name]); - } - return !isNumericKey; - } - if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { - var obj = {}; - utils$1.forEachEntry(formData, function (name, value) { - buildPath(parsePropPath(name), value, obj, 0); - }); - return obj; - } - return null; - } - - /** - * It takes a string, tries to parse it, and if it fails, it returns the stringified version - * of the input - * - * @param {any} rawValue - The value to be stringified. - * @param {Function} parser - A function that parses a string into a JavaScript object. - * @param {Function} encoder - A function that takes a value and returns a string. - * - * @returns {string} A stringified version of the rawValue. - */ - function stringifySafely(rawValue, parser, encoder) { - if (utils$1.isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return utils$1.trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - return (encoder || JSON.stringify)(rawValue); - } - var defaults = { - transitional: transitionalDefaults, - adapter: ['xhr', 'http'], - transformRequest: [function transformRequest(data, headers) { - var contentType = headers.getContentType() || ''; - var hasJSONContentType = contentType.indexOf('application/json') > -1; - var isObjectPayload = utils$1.isObject(data); - if (isObjectPayload && utils$1.isHTMLForm(data)) { - data = new FormData(data); - } - var isFormData = utils$1.isFormData(data); - if (isFormData) { - return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; - } - if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) { - return data; - } - if (utils$1.isArrayBufferView(data)) { - return data.buffer; - } - if (utils$1.isURLSearchParams(data)) { - headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); - return data.toString(); - } - var isFileList; - if (isObjectPayload) { - if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { - return toURLEncodedForm(data, this.formSerializer).toString(); - } - if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { - var _FormData = this.env && this.env.FormData; - return toFormData(isFileList ? { - 'files[]': data - } : data, _FormData && new _FormData(), this.formSerializer); - } - } - if (isObjectPayload || hasJSONContentType) { - headers.setContentType('application/json', false); - return stringifySafely(data); - } - return data; - }], - transformResponse: [function transformResponse(data) { - var transitional = this.transitional || defaults.transitional; - var forcedJSONParsing = transitional && transitional.forcedJSONParsing; - var JSONRequested = this.responseType === 'json'; - if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) { - var silentJSONParsing = transitional && transitional.silentJSONParsing; - var strictJSONParsing = !silentJSONParsing && JSONRequested; - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - return data; - }], - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - maxContentLength: -1, - maxBodyLength: -1, - env: { - FormData: platform.classes.FormData, - Blob: platform.classes.Blob - }, - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - headers: { - common: { - 'Accept': 'application/json, text/plain, */*', - 'Content-Type': undefined - } - } - }; - utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], function (method) { - defaults.headers[method] = {}; - }); - var defaults$1 = defaults; - - // RawAxiosHeaders whose duplicates are ignored by node - // c.f. https://nodejs.org/api/http.html#http_message_headers - var ignoreDuplicateOf = utils$1.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']); - - /** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} rawHeaders Headers needing to be parsed - * - * @returns {Object} Headers parsed into an object - */ - var parseHeaders = (function (rawHeaders) { - var parsed = {}; - var key; - var val; - var i; - rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { - i = line.indexOf(':'); - key = line.substring(0, i).trim().toLowerCase(); - val = line.substring(i + 1).trim(); - if (!key || parsed[key] && ignoreDuplicateOf[key]) { - return; - } - if (key === 'set-cookie') { - if (parsed[key]) { - parsed[key].push(val); - } else { - parsed[key] = [val]; - } - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - return parsed; - }); - - var $internals = Symbol('internals'); - function normalizeHeader(header) { - return header && String(header).trim().toLowerCase(); - } - function normalizeValue(value) { - if (value === false || value == null) { - return value; - } - return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); - } - function parseTokens(str) { - var tokens = Object.create(null); - var tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; - var match; - while (match = tokensRE.exec(str)) { - tokens[match[1]] = match[2]; - } - return tokens; - } - var isValidHeaderName = function isValidHeaderName(str) { - return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); - }; - function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { - if (utils$1.isFunction(filter)) { - return filter.call(this, value, header); - } - if (isHeaderNameFilter) { - value = header; - } - if (!utils$1.isString(value)) return; - if (utils$1.isString(filter)) { - return value.indexOf(filter) !== -1; - } - if (utils$1.isRegExp(filter)) { - return filter.test(value); - } - } - function formatHeader(header) { - return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (w, _char, str) { - return _char.toUpperCase() + str; - }); - } - function buildAccessors(obj, header) { - var accessorName = utils$1.toCamelCase(' ' + header); - ['get', 'set', 'has'].forEach(function (methodName) { - Object.defineProperty(obj, methodName + accessorName, { - value: function value(arg1, arg2, arg3) { - return this[methodName].call(this, header, arg1, arg2, arg3); - }, - configurable: true - }); - }); - } - var AxiosHeaders = /*#__PURE__*/function (_Symbol$iterator, _Symbol$toStringTag) { - function AxiosHeaders(headers) { - _classCallCheck(this, AxiosHeaders); - headers && this.set(headers); - } - _createClass(AxiosHeaders, [{ - key: "set", - value: function set(header, valueOrRewrite, rewrite) { - var self = this; - function setHeader(_value, _header, _rewrite) { - var lHeader = normalizeHeader(_header); - if (!lHeader) { - throw new Error('header name must be a non-empty string'); - } - var key = utils$1.findKey(self, lHeader); - if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) { - self[key || _header] = normalizeValue(_value); - } - } - var setHeaders = function setHeaders(headers, _rewrite) { - return utils$1.forEach(headers, function (_value, _header) { - return setHeader(_value, _header, _rewrite); - }); - }; - if (utils$1.isPlainObject(header) || header instanceof this.constructor) { - setHeaders(header, valueOrRewrite); - } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { - setHeaders(parseHeaders(header), valueOrRewrite); - } else { - header != null && setHeader(valueOrRewrite, header, rewrite); - } - return this; - } - }, { - key: "get", - value: function get(header, parser) { - header = normalizeHeader(header); - if (header) { - var key = utils$1.findKey(this, header); - if (key) { - var value = this[key]; - if (!parser) { - return value; - } - if (parser === true) { - return parseTokens(value); - } - if (utils$1.isFunction(parser)) { - return parser.call(this, value, key); - } - if (utils$1.isRegExp(parser)) { - return parser.exec(value); - } - throw new TypeError('parser must be boolean|regexp|function'); - } - } - } - }, { - key: "has", - value: function has(header, matcher) { - header = normalizeHeader(header); - if (header) { - var key = utils$1.findKey(this, header); - return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); - } - return false; - } - }, { - key: "delete", - value: function _delete(header, matcher) { - var self = this; - var deleted = false; - function deleteHeader(_header) { - _header = normalizeHeader(_header); - if (_header) { - var key = utils$1.findKey(self, _header); - if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { - delete self[key]; - deleted = true; - } - } - } - if (utils$1.isArray(header)) { - header.forEach(deleteHeader); - } else { - deleteHeader(header); - } - return deleted; - } - }, { - key: "clear", - value: function clear(matcher) { - var keys = Object.keys(this); - var i = keys.length; - var deleted = false; - while (i--) { - var key = keys[i]; - if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { - delete this[key]; - deleted = true; - } - } - return deleted; - } - }, { - key: "normalize", - value: function normalize(format) { - var self = this; - var headers = {}; - utils$1.forEach(this, function (value, header) { - var key = utils$1.findKey(headers, header); - if (key) { - self[key] = normalizeValue(value); - delete self[header]; - return; - } - var normalized = format ? formatHeader(header) : String(header).trim(); - if (normalized !== header) { - delete self[header]; - } - self[normalized] = normalizeValue(value); - headers[normalized] = true; - }); - return this; - } - }, { - key: "concat", - value: function concat() { - var _this$constructor; - for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) { - targets[_key] = arguments[_key]; - } - return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets)); - } - }, { - key: "toJSON", - value: function toJSON(asStrings) { - var obj = Object.create(null); - utils$1.forEach(this, function (value, header) { - value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value); - }); - return obj; - } - }, { - key: _Symbol$iterator, - value: function value() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - }, { - key: "toString", - value: function toString() { - return Object.entries(this.toJSON()).map(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - header = _ref2[0], - value = _ref2[1]; - return header + ': ' + value; - }).join('\n'); - } - }, { - key: _Symbol$toStringTag, - get: function get() { - return 'AxiosHeaders'; - } - }], [{ - key: "from", - value: function from(thing) { - return thing instanceof this ? thing : new this(thing); - } - }, { - key: "concat", - value: function concat(first) { - var computed = new this(first); - for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - targets[_key2 - 1] = arguments[_key2]; - } - targets.forEach(function (target) { - return computed.set(target); - }); - return computed; - } - }, { - key: "accessor", - value: function accessor(header) { - var internals = this[$internals] = this[$internals] = { - accessors: {} - }; - var accessors = internals.accessors; - var prototype = this.prototype; - function defineAccessor(_header) { - var lHeader = normalizeHeader(_header); - if (!accessors[lHeader]) { - buildAccessors(prototype, _header); - accessors[lHeader] = true; - } - } - utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); - return this; - } - }]); - return AxiosHeaders; - }(Symbol.iterator, Symbol.toStringTag); - AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); - - // reserved names hotfix - utils$1.reduceDescriptors(AxiosHeaders.prototype, function (_ref3, key) { - var value = _ref3.value; - var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` - return { - get: function get() { - return value; - }, - set: function set(headerValue) { - this[mapped] = headerValue; - } - }; - }); - utils$1.freezeMethods(AxiosHeaders); - var AxiosHeaders$1 = AxiosHeaders; - - /** - * Transform the data for a request or a response - * - * @param {Array|Function} fns A single function or Array of functions - * @param {?Object} response The response object - * - * @returns {*} The resulting transformed data - */ - function transformData(fns, response) { - var config = this || defaults$1; - var context = response || config; - var headers = AxiosHeaders$1.from(context.headers); - var data = context.data; - utils$1.forEach(fns, function transform(fn) { - data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); - }); - headers.normalize(); - return data; - } - - function isCancel(value) { - return !!(value && value.__CANCEL__); - } - - /** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @param {string=} message The message. - * @param {Object=} config The config. - * @param {Object=} request The request. - * - * @returns {CanceledError} The created error. - */ - function CanceledError(message, config, request) { - // eslint-disable-next-line no-eq-null,eqeqeq - AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); - this.name = 'CanceledError'; - } - utils$1.inherits(CanceledError, AxiosError, { - __CANCEL__: true - }); - - /** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - * - * @returns {object} The response. - */ - function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new AxiosError('Request failed with status code ' + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response)); - } - } - - var cookies = platform.hasStandardBrowserEnv ? - // Standard browser envs support document.cookie - { - write: function write(name, value, expires, path, domain, secure) { - var cookie = [name + '=' + encodeURIComponent(value)]; - utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); - utils$1.isString(path) && cookie.push('path=' + path); - utils$1.isString(domain) && cookie.push('domain=' + domain); - secure === true && cookie.push('secure'); - document.cookie = cookie.join('; '); - }, - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return match ? decodeURIComponent(match[3]) : null; - }, - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); - } - } : - // Non-standard browser env (web workers, react-native) lack needed support. - { - write: function write() {}, - read: function read() { - return null; - }, - remove: function remove() {} - }; - - /** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ - function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); - } - - /** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * - * @returns {string} The combined URL - */ - function combineURLs(baseURL, relativeURL) { - return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; - } - - /** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * - * @returns {string} The combined full path - */ - function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; - } - - var isURLSameOrigin = platform.hasStandardBrowserEnv ? - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover its components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname - }; - } - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL; - return parsed.protocol === originURL.protocol && parsed.host === originURL.host; - }; - }() : - // Non standard browser envs (web workers, react-native) lack needed support. - function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - }(); - - function parseProtocol(url) { - var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; - } - - /** - * Calculate data maxRate - * @param {Number} [samplesCount= 10] - * @param {Number} [min= 1000] - * @returns {Function} - */ - function speedometer(samplesCount, min) { - samplesCount = samplesCount || 10; - var bytes = new Array(samplesCount); - var timestamps = new Array(samplesCount); - var head = 0; - var tail = 0; - var firstSampleTS; - min = min !== undefined ? min : 1000; - return function push(chunkLength) { - var now = Date.now(); - var startedAt = timestamps[tail]; - if (!firstSampleTS) { - firstSampleTS = now; - } - bytes[head] = chunkLength; - timestamps[head] = now; - var i = tail; - var bytesCount = 0; - while (i !== head) { - bytesCount += bytes[i++]; - i = i % samplesCount; - } - head = (head + 1) % samplesCount; - if (head === tail) { - tail = (tail + 1) % samplesCount; - } - if (now - firstSampleTS < min) { - return; - } - var passed = startedAt && now - startedAt; - return passed ? Math.round(bytesCount * 1000 / passed) : undefined; - }; - } - - function progressEventReducer(listener, isDownloadStream) { - var bytesNotified = 0; - var _speedometer = speedometer(50, 250); - return function (e) { - var loaded = e.loaded; - var total = e.lengthComputable ? e.total : undefined; - var progressBytes = loaded - bytesNotified; - var rate = _speedometer(progressBytes); - var inRange = loaded <= total; - bytesNotified = loaded; - var data = { - loaded: loaded, - total: total, - progress: total ? loaded / total : undefined, - bytes: progressBytes, - rate: rate ? rate : undefined, - estimated: rate && total && inRange ? (total - loaded) / rate : undefined, - event: e - }; - data[isDownloadStream ? 'download' : 'upload'] = true; - listener(data); - }; - } - var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; - var xhrAdapter = isXHRAdapterSupported && function (config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = AxiosHeaders$1.from(config.headers).normalize(); - var responseType = config.responseType, - withXSRFToken = config.withXSRFToken; - var onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - var contentType; - if (utils$1.isFormData(requestData)) { - if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { - requestHeaders.setContentType(false); // Let the browser set it - } else if ((contentType = requestHeaders.getContentType()) !== false) { - // fix semicolon duplication issue for ReactNative FormData implementation - var _ref = contentType ? contentType.split(';').map(function (token) { - return token.trim(); - }).filter(Boolean) : [], - _ref2 = _toArray(_ref), - type = _ref2[0], - tokens = _ref2.slice(1); - requestHeaders.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; ')); - } - } - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); - } - var fullPath = buildFullPath(config.baseURL, config.url); - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - function onloadend() { - if (!request) { - return; - } - // Prepare the response - var responseHeaders = AxiosHeaders$1.from('getAllResponseHeaders' in request && request.getAllResponseHeaders()); - var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - settle(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - var transitional = config.transitional || transitionalDefaults; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (platform.hasStandardBrowserEnv) { - withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); - if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(fullPath)) { - // Add xsrf header - var xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); - if (xsrfValue) { - requestHeaders.set(config.xsrfHeaderName, xsrfValue); - } - } - } - - // Remove Content-Type if data is undefined - requestData === undefined && requestHeaders.setContentType(null); - - // Add headers to the request - if ('setRequestHeader' in request) { - utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { - request.setRequestHeader(key, val); - }); - } - - // Add withCredentials to request if needed - if (!utils$1.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); - } - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = function onCanceled(cancel) { - if (!request) { - return; - } - reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); - request.abort(); - request = null; - }; - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - var protocol = parseProtocol(fullPath); - if (protocol && platform.protocols.indexOf(protocol) === -1) { - reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); - return; - } - - // Send the request - request.send(requestData || null); - }); - }; - - var knownAdapters = { - http: httpAdapter, - xhr: xhrAdapter - }; - utils$1.forEach(knownAdapters, function (fn, value) { - if (fn) { - try { - Object.defineProperty(fn, 'name', { - value: value - }); - } catch (e) { - // eslint-disable-next-line no-empty - } - Object.defineProperty(fn, 'adapterName', { - value: value - }); - } - }); - var renderReason = function renderReason(reason) { - return "- ".concat(reason); - }; - var isResolvedHandle = function isResolvedHandle(adapter) { - return utils$1.isFunction(adapter) || adapter === null || adapter === false; - }; - var adapters = { - getAdapter: function getAdapter(adapters) { - adapters = utils$1.isArray(adapters) ? adapters : [adapters]; - var _adapters = adapters, - length = _adapters.length; - var nameOrAdapter; - var adapter; - var rejectedReasons = {}; - for (var i = 0; i < length; i++) { - nameOrAdapter = adapters[i]; - var id = void 0; - adapter = nameOrAdapter; - if (!isResolvedHandle(nameOrAdapter)) { - adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; - if (adapter === undefined) { - throw new AxiosError("Unknown adapter '".concat(id, "'")); - } - } - if (adapter) { - break; - } - rejectedReasons[id || '#' + i] = adapter; - } - if (!adapter) { - var reasons = Object.entries(rejectedReasons).map(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - id = _ref2[0], - state = _ref2[1]; - return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build'); - }); - var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified'; - throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT'); - } - return adapter; - }, - adapters: knownAdapters - }; - - /** - * Throws a `CanceledError` if cancellation has been requested. - * - * @param {Object} config The config that is to be used for the request - * - * @returns {void} - */ - function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - if (config.signal && config.signal.aborted) { - throw new CanceledError(null, config); - } - } - - /** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * - * @returns {Promise} The Promise to be fulfilled - */ - function dispatchRequest(config) { - throwIfCancellationRequested(config); - config.headers = AxiosHeaders$1.from(config.headers); - - // Transform request data - config.data = transformData.call(config, config.transformRequest); - if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { - config.headers.setContentType('application/x-www-form-urlencoded', false); - } - var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter); - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData.call(config, config.transformResponse, response); - response.headers = AxiosHeaders$1.from(response.headers); - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData.call(config, config.transformResponse, reason.response); - reason.response.headers = AxiosHeaders$1.from(reason.response.headers); - } - } - return Promise.reject(reason); - }); - } - - var headersToObject = function headersToObject(thing) { - return thing instanceof AxiosHeaders$1 ? _objectSpread2({}, thing) : thing; - }; - - /** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * - * @returns {Object} New object resulting from merging config2 to config1 - */ - function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; - function getMergedValue(target, source, caseless) { - if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { - return utils$1.merge.call({ - caseless: caseless - }, target, source); - } else if (utils$1.isPlainObject(source)) { - return utils$1.merge({}, source); - } else if (utils$1.isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(a, b, caseless) { - if (!utils$1.isUndefined(b)) { - return getMergedValue(a, b, caseless); - } else if (!utils$1.isUndefined(a)) { - return getMergedValue(undefined, a, caseless); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(a, b) { - if (!utils$1.isUndefined(b)) { - return getMergedValue(undefined, b); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(a, b) { - if (!utils$1.isUndefined(b)) { - return getMergedValue(undefined, b); - } else if (!utils$1.isUndefined(a)) { - return getMergedValue(undefined, a); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(a, b, prop) { - if (prop in config2) { - return getMergedValue(a, b); - } else if (prop in config1) { - return getMergedValue(undefined, a); - } - } - var mergeMap = { - url: valueFromConfig2, - method: valueFromConfig2, - data: valueFromConfig2, - baseURL: defaultToConfig2, - transformRequest: defaultToConfig2, - transformResponse: defaultToConfig2, - paramsSerializer: defaultToConfig2, - timeout: defaultToConfig2, - timeoutMessage: defaultToConfig2, - withCredentials: defaultToConfig2, - withXSRFToken: defaultToConfig2, - adapter: defaultToConfig2, - responseType: defaultToConfig2, - xsrfCookieName: defaultToConfig2, - xsrfHeaderName: defaultToConfig2, - onUploadProgress: defaultToConfig2, - onDownloadProgress: defaultToConfig2, - decompress: defaultToConfig2, - maxContentLength: defaultToConfig2, - maxBodyLength: defaultToConfig2, - beforeRedirect: defaultToConfig2, - transport: defaultToConfig2, - httpAgent: defaultToConfig2, - httpsAgent: defaultToConfig2, - cancelToken: defaultToConfig2, - socketPath: defaultToConfig2, - responseEncoding: defaultToConfig2, - validateStatus: mergeDirectKeys, - headers: function headers(a, b) { - return mergeDeepProperties(headersToObject(a), headersToObject(b), true); - } - }; - utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { - var merge = mergeMap[prop] || mergeDeepProperties; - var configValue = merge(config1[prop], config2[prop], prop); - utils$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue); - }); - return config; - } - - var VERSION = "1.6.8"; - - var validators$1 = {}; - - // eslint-disable-next-line func-names - ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) { - validators$1[type] = function validator(thing) { - return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; - }); - var deprecatedWarnings = {}; - - /** - * Transitional option validator - * - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * - * @returns {function} - */ - validators$1.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return function (value, opt, opts) { - if (validator === false) { - throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED); - } - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future')); - } - return validator ? validator(value, opt, opts) : true; - }; - }; - - /** - * Assert object's properties type - * - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - * - * @returns {object} - */ - - function assertOptions(options, schema, allowUnknown) { - if (_typeof(options) !== 'object') { - throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); - } - var keys = Object.keys(options); - var i = keys.length; - while (i-- > 0) { - var opt = keys[i]; - var validator = schema[opt]; - if (validator) { - var value = options[opt]; - var result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); - } - } - } - var validator = { - assertOptions: assertOptions, - validators: validators$1 - }; - - var validators = validator.validators; - - /** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - * - * @return {Axios} A new instance of Axios - */ - var Axios = /*#__PURE__*/function () { - function Axios(instanceConfig) { - _classCallCheck(this, Axios); - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager$1(), - response: new InterceptorManager$1() - }; - } - - /** - * Dispatch a request - * - * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) - * @param {?Object} config - * - * @returns {Promise} The Promise to be fulfilled - */ - _createClass(Axios, [{ - key: "request", - value: (function () { - var _request2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl, config) { - var dummy, stack; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.prev = 0; - _context.next = 3; - return this._request(configOrUrl, config); - case 3: - return _context.abrupt("return", _context.sent); - case 6: - _context.prev = 6; - _context.t0 = _context["catch"](0); - if (_context.t0 instanceof Error) { - Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error(); - - // slice off the Error: ... line - stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; - if (!_context.t0.stack) { - _context.t0.stack = stack; - // match without the 2 top stack lines - } else if (stack && !String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { - _context.t0.stack += '\n' + stack; - } - } - throw _context.t0; - case 10: - case "end": - return _context.stop(); - } - }, _callee, this, [[0, 6]]); - })); - function request(_x, _x2) { - return _request2.apply(this, arguments); - } - return request; - }()) - }, { - key: "_request", - value: function _request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - config = mergeConfig(this.defaults, config); - var _config = config, - transitional = _config.transitional, - paramsSerializer = _config.paramsSerializer, - headers = _config.headers; - if (transitional !== undefined) { - validator.assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators["boolean"]), - forcedJSONParsing: validators.transitional(validators["boolean"]), - clarifyTimeoutError: validators.transitional(validators["boolean"]) - }, false); - } - if (paramsSerializer != null) { - if (utils$1.isFunction(paramsSerializer)) { - config.paramsSerializer = { - serialize: paramsSerializer - }; - } else { - validator.assertOptions(paramsSerializer, { - encode: validators["function"], - serialize: validators["function"] - }, true); - } - } - - // Set config.method - config.method = (config.method || this.defaults.method || 'get').toLowerCase(); - - // Flatten headers - var contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]); - headers && utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) { - delete headers[method]; - }); - config.headers = AxiosHeaders$1.concat(contextHeaders, headers); - - // filter out skipped interceptors - var requestInterceptorChain = []; - var synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - var responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - var promise; - var i = 0; - var len; - if (!synchronousRequestInterceptors) { - var chain = [dispatchRequest.bind(this), undefined]; - chain.unshift.apply(chain, requestInterceptorChain); - chain.push.apply(chain, responseInterceptorChain); - len = chain.length; - promise = Promise.resolve(config); - while (i < len) { - promise = promise.then(chain[i++], chain[i++]); - } - return promise; - } - len = requestInterceptorChain.length; - var newConfig = config; - i = 0; - while (i < len) { - var onFulfilled = requestInterceptorChain[i++]; - var onRejected = requestInterceptorChain[i++]; - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected.call(this, error); - break; - } - } - try { - promise = dispatchRequest.call(this, newConfig); - } catch (error) { - return Promise.reject(error); - } - i = 0; - len = responseInterceptorChain.length; - while (i < len) { - promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); - } - return promise; - } - }, { - key: "getUri", - value: function getUri(config) { - config = mergeConfig(this.defaults, config); - var fullPath = buildFullPath(config.baseURL, config.url); - return buildURL(fullPath, config.params, config.paramsSerializer); - } - }]); - return Axios; - }(); // Provide aliases for supported request methods - utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function (url, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: (config || {}).data - })); - }; - }); - utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request(mergeConfig(config || {}, { - method: method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url: url, - data: data - })); - }; - } - Axios.prototype[method] = generateHTTPMethod(); - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); - }); - var Axios$1 = Axios; - - /** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @param {Function} executor The executor function. - * - * @returns {CancelToken} - */ - var CancelToken = /*#__PURE__*/function () { - function CancelToken(executor) { - _classCallCheck(this, CancelToken); - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - var resolvePromise; - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - var token = this; - - // eslint-disable-next-line func-names - this.promise.then(function (cancel) { - if (!token._listeners) return; - var i = token._listeners.length; - while (i-- > 0) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = function (onfulfilled) { - var _resolve; - // eslint-disable-next-line func-names - var promise = new Promise(function (resolve) { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - return promise; - }; - executor(function cancel(message, config, request) { - if (token.reason) { - // Cancellation has already been requested - return; - } - token.reason = new CanceledError(message, config, request); - resolvePromise(token.reason); - }); - } - - /** - * Throws a `CanceledError` if cancellation has been requested. - */ - _createClass(CancelToken, [{ - key: "throwIfRequested", - value: function throwIfRequested() { - if (this.reason) { - throw this.reason; - } - } - - /** - * Subscribe to the cancel signal - */ - }, { - key: "subscribe", - value: function subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } - } - - /** - * Unsubscribe from the cancel signal - */ - }, { - key: "unsubscribe", - value: function unsubscribe(listener) { - if (!this._listeners) { - return; - } - var index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } - } - - /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ - }], [{ - key: "source", - value: function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; - } - }]); - return CancelToken; - }(); - var CancelToken$1 = CancelToken; - - /** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * - * @returns {Function} - */ - function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; - } - - /** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ - function isAxiosError(payload) { - return utils$1.isObject(payload) && payload.isAxiosError === true; - } - - var HttpStatusCode = { - Continue: 100, - SwitchingProtocols: 101, - Processing: 102, - EarlyHints: 103, - Ok: 200, - Created: 201, - Accepted: 202, - NonAuthoritativeInformation: 203, - NoContent: 204, - ResetContent: 205, - PartialContent: 206, - MultiStatus: 207, - AlreadyReported: 208, - ImUsed: 226, - MultipleChoices: 300, - MovedPermanently: 301, - Found: 302, - SeeOther: 303, - NotModified: 304, - UseProxy: 305, - Unused: 306, - TemporaryRedirect: 307, - PermanentRedirect: 308, - BadRequest: 400, - Unauthorized: 401, - PaymentRequired: 402, - Forbidden: 403, - NotFound: 404, - MethodNotAllowed: 405, - NotAcceptable: 406, - ProxyAuthenticationRequired: 407, - RequestTimeout: 408, - Conflict: 409, - Gone: 410, - LengthRequired: 411, - PreconditionFailed: 412, - PayloadTooLarge: 413, - UriTooLong: 414, - UnsupportedMediaType: 415, - RangeNotSatisfiable: 416, - ExpectationFailed: 417, - ImATeapot: 418, - MisdirectedRequest: 421, - UnprocessableEntity: 422, - Locked: 423, - FailedDependency: 424, - TooEarly: 425, - UpgradeRequired: 426, - PreconditionRequired: 428, - TooManyRequests: 429, - RequestHeaderFieldsTooLarge: 431, - UnavailableForLegalReasons: 451, - InternalServerError: 500, - NotImplemented: 501, - BadGateway: 502, - ServiceUnavailable: 503, - GatewayTimeout: 504, - HttpVersionNotSupported: 505, - VariantAlsoNegotiates: 506, - InsufficientStorage: 507, - LoopDetected: 508, - NotExtended: 510, - NetworkAuthenticationRequired: 511 - }; - Object.entries(HttpStatusCode).forEach(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - key = _ref2[0], - value = _ref2[1]; - HttpStatusCode[value] = key; - }); - var HttpStatusCode$1 = HttpStatusCode; - - /** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * - * @returns {Axios} A new instance of Axios - */ - function createInstance(defaultConfig) { - var context = new Axios$1(defaultConfig); - var instance = bind(Axios$1.prototype.request, context); - - // Copy axios.prototype to instance - utils$1.extend(instance, Axios$1.prototype, context, { - allOwnKeys: true - }); - - // Copy context to instance - utils$1.extend(instance, context, null, { - allOwnKeys: true - }); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance(mergeConfig(defaultConfig, instanceConfig)); - }; - return instance; - } - - // Create the default instance to be exported - var axios = createInstance(defaults$1); - - // Expose Axios class to allow class inheritance - axios.Axios = Axios$1; - - // Expose Cancel & CancelToken - axios.CanceledError = CanceledError; - axios.CancelToken = CancelToken$1; - axios.isCancel = isCancel; - axios.VERSION = VERSION; - axios.toFormData = toFormData; - - // Expose AxiosError class - axios.AxiosError = AxiosError; - - // alias for CanceledError for backward compatibility - axios.Cancel = axios.CanceledError; - - // Expose all/spread - axios.all = function all(promises) { - return Promise.all(promises); - }; - axios.spread = spread; - - // Expose isAxiosError - axios.isAxiosError = isAxiosError; - - // Expose mergeConfig - axios.mergeConfig = mergeConfig; - axios.AxiosHeaders = AxiosHeaders$1; - axios.formToJSON = function (thing) { - return formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); - }; - axios.getAdapter = adapters.getAdapter; - axios.HttpStatusCode = HttpStatusCode$1; - axios["default"] = axios; - - return axios; - -})); -//# sourceMappingURL=axios.js.map diff --git a/node_modules/axios/dist/axios.min.js b/node_modules/axios/dist/axios.min.js deleted file mode 100644 index 06a84e7c..00000000 --- a/node_modules/axios/dist/axios.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=e)if("object"!==o(e)&&(e=[e]),j(e))for(r=0,n=e.length;r0;)if(t===(r=n[o]).toLowerCase())return r;return null}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,q=function(e){return!R(e)&&e!==I};var z,M=(z="undefined"!=typeof Uint8Array&&w(Uint8Array),function(e){return z&&e instanceof z}),H=O("HTMLFormElement"),J=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),G=O("RegExp"),W=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};D(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},K="abcdefghijklmnopqrstuvwxyz",V="0123456789",X={DIGIT:V,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+V};var $=O("AsyncFunction"),Q={isArray:j,isArrayBuffer:A,isBuffer:function(e){return null!==e&&!R(e)&&null!==e.constructor&&!R(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=E(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer)},isString:T,isNumber:P,isBoolean:function(e){return!0===e||!1===e},isObject:N,isPlainObject:k,isUndefined:R,isDate:_,isFile:L,isBlob:C,isRegExp:G,isFunction:x,isStream:function(e){return N(e)&&x(e.pipe)},isURLSearchParams:U,isTypedArray:M,isFileList:F,forEach:D,merge:function e(){for(var t=q(this)&&this||{},r=t.caseless,n={},o=function(t,o){var i=r&&B(n,o)||o;k(n[i])&&k(t)?n[i]=e(n[i],t):k(t)?n[i]=e({},t):j(t)?n[i]=t.slice():n[i]=t},i=0,a=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{},o=n.allOwnKeys;return D(t,(function(t,n){r&&x(t)?e[n]=m(t,r):e[n]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&w(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:E,kindOfTest:O,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(j(e))return e;var t=e.length;if(!P(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:H,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:W,freezeMethods:function(e){W(e,(function(t,r){if(x(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=e[r];x(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return j(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:B,global:I,isContextDefined:q,ALPHABET:X,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X.ALPHA_DIGIT,r="",n=t.length;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(r,n){if(N(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;var o=j(r)?[]:{};return D(r,(function(t,r){var i=e(t,n+1);!R(i)&&(o[r]=i)})),t[n]=void 0,o}}return r}(e,0)},isAsyncFn:$,isThenable:function(e){return e&&(N(e)||x(e))&&x(e.then)&&x(e.catch)}};function Y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Q.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z=Y.prototype,ee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){ee[e]={value:e}})),Object.defineProperties(Y,ee),Object.defineProperty(Z,"isAxiosError",{value:!0}),Y.from=function(e,t,r,n,o,i){var a=Object.create(Z);return Q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Y.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function te(e){return Q.isPlainObject(e)||Q.isArray(e)}function re(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,r){return e?e.concat(t).map((function(e,t){return e=re(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var oe=Q.toFlatObject(Q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ie(e,t,r){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Q.isUndefined(t[e])}))).metaTokens,i=r.visitor||f,a=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(!u&&Q.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,r,i){var u=e;if(e&&!i&&"object"===o(e))if(Q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&function(e){return Q.isArray(e)&&!e.some(te)}(e)||(Q.isFileList(e)||Q.endsWith(r,"[]"))&&(u=Q.toArray(e)))return r=re(r),u.forEach((function(e,n){!Q.isUndefined(e)&&null!==e&&t.append(!0===s?ne([r],n,a):null===s?r:r+"[]",c(e))})),!1;return!!te(e)||(t.append(ne(i,r,a),c(e)),!1)}var l=[],h=Object.assign(oe,{defaultVisitor:f,convertValue:c,isVisitable:te});if(!Q.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Q.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Q.forEach(r,(function(r,o){!0===(!(Q.isUndefined(r)||null===r)&&i.call(t,r,Q.isString(o)?o.trim():o,n,h))&&e(r,n?n.concat(o):[o])})),l.pop()}}(e),t}function ae(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function se(e,t){this._pairs=[],e&&ie(e,this,t)}var ue=se.prototype;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fe(e,t,r){if(!t)return e;var n,o=r&&r.encode||ce,i=r&&r.serialize;if(n=i?i(t,r):Q.isURLSearchParams(t)?t.toString():new se(t,r).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ue.append=function(e,t){this._pairs.push([e,t])},ue.toString=function(e){var t=e?function(t){return e.call(this,t,ae)}:ae;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var le,he=function(){function e(){a(this,e),this.handlers=[]}return u(e,[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ye="undefined"!=typeof window&&"undefined"!=typeof document,ve=(le="undefined"!=typeof navigator&&navigator.product,ye&&["ReactNative","NativeScript","NS"].indexOf(le)<0),me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ge=t(t({},Object.freeze({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserWebWorkerEnv:me,hasStandardBrowserEnv:ve})),de);function be(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Q.isArray(n)?n.length:i,s?(Q.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&Q.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Q.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t-1,i=Q.isObject(e);if(i&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return o?JSON.stringify(be(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ie(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return ie(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||we.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&Q.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(function(e){we.headers[e]={}}));var Ee=we,Oe=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Se=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:Q.isArray(e)?e.map(Re):String(e)}function Ae(e,t,r,n,o){return Q.isFunction(n)?n.call(this,t,r):(o&&(t=r),Q.isString(t)?Q.isString(n)?-1!==t.indexOf(n):Q.isRegExp(n)?n.test(t):void 0:void 0)}var Te=function(e,t){function r(e){a(this,r),e&&this.set(e)}return u(r,[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=je(t);if(!o)throw new Error("header name must be a non-empty string");var i=Q.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Re(e))}var i,a,s,u,c,f=function(e,t){return Q.forEach(e,(function(e,r){return o(e,r,t)}))};return Q.isPlainObject(e)||e instanceof this.constructor?f(e,t):Q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&Oe[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,r),this}},{key:"get",value:function(e,t){if(e=je(e)){var r=Q.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(Q.isFunction(t))return t.call(this,n,r);if(Q.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=je(e)){var r=Q.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ae(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=je(e)){var o=Q.findKey(r,e);!o||t&&!Ae(0,r[o],o,t)||(delete r[o],n=!0)}}return Q.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return Q.forEach(this,(function(n,o){var i=Q.findKey(r,o);if(i)return t[i]=Re(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Re(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n1?r-1:0),o=1;o1?"since :\n"+s.map(De).join("\n"):" "+De(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function ze(e){return qe(e),e.headers=xe.from(e.headers),e.data=Pe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ie(e.adapter||Ee.adapter)(e).then((function(t){return qe(e),t.data=Pe.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t}),(function(t){return Ne(t)||(qe(e),t&&t.response&&(t.response.data=Pe.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)}))}var Me=function(e){return e instanceof xe?t({},e):e};function He(e,t){t=t||{};var r={};function n(e,t,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function o(e,t,r){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!Q.isUndefined(t))return n(void 0,t)}function a(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(Me(e),Me(t),!0)}};return Q.forEach(Object.keys(Object.assign({},e,t)),(function(n){var i=u[n]||o,a=i(e[n],t[n],n);Q.isUndefined(a)&&i!==s||(r[n]=a)})),r}var Je="1.6.8",Ge={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ge[e]=function(r){return o(r)===e||"a"+(t<1?"n ":" ")+e}}));var We={};Ge.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Y(n(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!We[o]&&(We[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Ke={assertOptions:function(e,t,r){if("object"!==o(e))throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new Y("option "+a+" must be "+c,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Y("Unknown option "+a,Y.ERR_BAD_OPTION)}},validators:Ge},Ve=Ke.validators,Xe=function(){function e(t){a(this,e),this.defaults=t,this.interceptors={request:new he,response:new he}}var t,n;return u(e,[{key:"request",value:(t=r().mark((function e(t,n){var o,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error,i=o.stack?o.stack.replace(/^.+\n/,""):"",e.t0.stack?i&&!String(e.t0.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+i):e.t0.stack=i),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])})),n=function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))},function(e,t){return n.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=He(this.defaults,t),n=r.transitional,o=r.paramsSerializer,i=r.headers;void 0!==n&&Ke.assertOptions(n,{silentJSONParsing:Ve.transitional(Ve.boolean),forcedJSONParsing:Ve.transitional(Ve.boolean),clarifyTimeoutError:Ve.transitional(Ve.boolean)},!1),null!=o&&(Q.isFunction(o)?t.paramsSerializer={serialize:o}:Ke.assertOptions(o,{encode:Ve.function,serialize:Ve.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&Q.merge(i.common,i[t.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=xe.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,h=0;if(!u){var p=[ze.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,f),l=p.length,c=Promise.resolve(t);h0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new ke(e,t,o),r(n.reason))}))}return u(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ye).forEach((function(e){var t=f(e,2),r=t[0],n=t[1];Ye[n]=r}));var Ze=Ye;var et=function e(t){var r=new $e(t),n=m($e.prototype.request,r);return Q.extend(n,$e.prototype,r,{allOwnKeys:!0}),Q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(He(t,r))},n}(Ee);return et.Axios=$e,et.CanceledError=ke,et.CancelToken=Qe,et.isCancel=Ne,et.VERSION=Je,et.toFormData=ie,et.AxiosError=Y,et.Cancel=et.CanceledError,et.all=function(e){return Promise.all(e)},et.spread=function(e){return function(t){return e.apply(null,t)}},et.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},et.mergeConfig=He,et.AxiosHeaders=xe,et.formToJSON=function(e){return be(Q.isHTMLForm(e)?new FormData(e):e)},et.getAdapter=Ie,et.HttpStatusCode=Ze,et.default=et,et})); -//# sourceMappingURL=axios.min.js.map diff --git a/node_modules/axios/index.d.ts b/node_modules/axios/index.d.ts deleted file mode 100644 index 02a8c098..00000000 --- a/node_modules/axios/index.d.ts +++ /dev/null @@ -1,559 +0,0 @@ -// TypeScript Version: 4.7 -export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null; - -interface RawAxiosHeaders { - [key: string]: AxiosHeaderValue; -} - -type MethodsHeaders = Partial<{ - [Key in Method as Lowercase]: AxiosHeaders; -} & {common: AxiosHeaders}>; - -type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean); - -type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any; - -export class AxiosHeaders { - constructor( - headers?: RawAxiosHeaders | AxiosHeaders | string - ); - - [key: string]: any; - - set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders; - - get(headerName: string, parser: RegExp): RegExpExecArray | null; - get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue; - - has(header: string, matcher?: AxiosHeaderMatcher): boolean; - - delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; - - clear(matcher?: AxiosHeaderMatcher): boolean; - - normalize(format: boolean): AxiosHeaders; - - concat(...targets: Array): AxiosHeaders; - - toJSON(asStrings?: boolean): RawAxiosHeaders; - - static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; - - static accessor(header: string | string[]): AxiosHeaders; - - static concat(...targets: Array): AxiosHeaders; - - setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getContentType(parser?: RegExp): RegExpExecArray | null; - getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasContentType(matcher?: AxiosHeaderMatcher): boolean; - - setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getContentLength(parser?: RegExp): RegExpExecArray | null; - getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasContentLength(matcher?: AxiosHeaderMatcher): boolean; - - setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getAccept(parser?: RegExp): RegExpExecArray | null; - getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasAccept(matcher?: AxiosHeaderMatcher): boolean; - - setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getUserAgent(parser?: RegExp): RegExpExecArray | null; - getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasUserAgent(matcher?: AxiosHeaderMatcher): boolean; - - setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getContentEncoding(parser?: RegExp): RegExpExecArray | null; - getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean; - - setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; - getAuthorization(parser?: RegExp): RegExpExecArray | null; - getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; - hasAuthorization(matcher?: AxiosHeaderMatcher): boolean; - - [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>; -} - -type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization'; - -type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream'; - -export type RawAxiosRequestHeaders = Partial; - -export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders; - -type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding'; - -type RawCommonResponseHeaders = { - [Key in CommonResponseHeadersList]: AxiosHeaderValue; -} & { - "set-cookie": string[]; -}; - -export type RawAxiosResponseHeaders = Partial; - -export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders; - -export interface AxiosRequestTransformer { - (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any; -} - -export interface AxiosResponseTransformer { - (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any; -} - -export interface AxiosAdapter { - (config: InternalAxiosRequestConfig): AxiosPromise; -} - -export interface AxiosBasicCredentials { - username: string; - password: string; -} - -export interface AxiosProxyConfig { - host: string; - port: number; - auth?: AxiosBasicCredentials; - protocol?: string; -} - -export enum HttpStatusCode { - Continue = 100, - SwitchingProtocols = 101, - Processing = 102, - EarlyHints = 103, - Ok = 200, - Created = 201, - Accepted = 202, - NonAuthoritativeInformation = 203, - NoContent = 204, - ResetContent = 205, - PartialContent = 206, - MultiStatus = 207, - AlreadyReported = 208, - ImUsed = 226, - MultipleChoices = 300, - MovedPermanently = 301, - Found = 302, - SeeOther = 303, - NotModified = 304, - UseProxy = 305, - Unused = 306, - TemporaryRedirect = 307, - PermanentRedirect = 308, - BadRequest = 400, - Unauthorized = 401, - PaymentRequired = 402, - Forbidden = 403, - NotFound = 404, - MethodNotAllowed = 405, - NotAcceptable = 406, - ProxyAuthenticationRequired = 407, - RequestTimeout = 408, - Conflict = 409, - Gone = 410, - LengthRequired = 411, - PreconditionFailed = 412, - PayloadTooLarge = 413, - UriTooLong = 414, - UnsupportedMediaType = 415, - RangeNotSatisfiable = 416, - ExpectationFailed = 417, - ImATeapot = 418, - MisdirectedRequest = 421, - UnprocessableEntity = 422, - Locked = 423, - FailedDependency = 424, - TooEarly = 425, - UpgradeRequired = 426, - PreconditionRequired = 428, - TooManyRequests = 429, - RequestHeaderFieldsTooLarge = 431, - UnavailableForLegalReasons = 451, - InternalServerError = 500, - NotImplemented = 501, - BadGateway = 502, - ServiceUnavailable = 503, - GatewayTimeout = 504, - HttpVersionNotSupported = 505, - VariantAlsoNegotiates = 506, - InsufficientStorage = 507, - LoopDetected = 508, - NotExtended = 510, - NetworkAuthenticationRequired = 511, -} - -export type Method = - | 'get' | 'GET' - | 'delete' | 'DELETE' - | 'head' | 'HEAD' - | 'options' | 'OPTIONS' - | 'post' | 'POST' - | 'put' | 'PUT' - | 'patch' | 'PATCH' - | 'purge' | 'PURGE' - | 'link' | 'LINK' - | 'unlink' | 'UNLINK'; - -export type ResponseType = - | 'arraybuffer' - | 'blob' - | 'document' - | 'json' - | 'text' - | 'stream'; - -export type responseEncoding = - | 'ascii' | 'ASCII' - | 'ansi' | 'ANSI' - | 'binary' | 'BINARY' - | 'base64' | 'BASE64' - | 'base64url' | 'BASE64URL' - | 'hex' | 'HEX' - | 'latin1' | 'LATIN1' - | 'ucs-2' | 'UCS-2' - | 'ucs2' | 'UCS2' - | 'utf-8' | 'UTF-8' - | 'utf8' | 'UTF8' - | 'utf16le' | 'UTF16LE'; - -export interface TransitionalOptions { - silentJSONParsing?: boolean; - forcedJSONParsing?: boolean; - clarifyTimeoutError?: boolean; -} - -export interface GenericAbortSignal { - readonly aborted: boolean; - onabort?: ((...args: any) => any) | null; - addEventListener?: (...args: any) => any; - removeEventListener?: (...args: any) => any; -} - -export interface FormDataVisitorHelpers { - defaultVisitor: SerializerVisitor; - convertValue: (value: any) => any; - isVisitable: (value: any) => boolean; -} - -export interface SerializerVisitor { - ( - this: GenericFormData, - value: any, - key: string | number, - path: null | Array, - helpers: FormDataVisitorHelpers - ): boolean; -} - -export interface SerializerOptions { - visitor?: SerializerVisitor; - dots?: boolean; - metaTokens?: boolean; - indexes?: boolean | null; -} - -// tslint:disable-next-line -export interface FormSerializerOptions extends SerializerOptions { -} - -export interface ParamEncoder { - (value: any, defaultEncoder: (value: any) => any): any; -} - -export interface CustomParamsSerializer { - (params: Record, options?: ParamsSerializerOptions): string; -} - -export interface ParamsSerializerOptions extends SerializerOptions { - encode?: ParamEncoder; - serialize?: CustomParamsSerializer; -} - -type MaxUploadRate = number; - -type MaxDownloadRate = number; - -type BrowserProgressEvent = any; - -export interface AxiosProgressEvent { - loaded: number; - total?: number; - progress?: number; - bytes: number; - rate?: number; - estimated?: number; - upload?: boolean; - download?: boolean; - event?: BrowserProgressEvent; -} - -type Milliseconds = number; - -type AxiosAdapterName = 'xhr' | 'http' | string; - -type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName; - -export type AddressFamily = 4 | 6 | undefined; - -export interface LookupAddressEntry { - address: string; - family?: AddressFamily; -} - -export type LookupAddress = string | LookupAddressEntry; - -export interface AxiosRequestConfig { - url?: string; - method?: Method | string; - baseURL?: string; - transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; - transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]; - headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders; - params?: any; - paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer; - data?: D; - timeout?: Milliseconds; - timeoutErrorMessage?: string; - withCredentials?: boolean; - adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]; - auth?: AxiosBasicCredentials; - responseType?: ResponseType; - responseEncoding?: responseEncoding | string; - xsrfCookieName?: string; - xsrfHeaderName?: string; - onUploadProgress?: (progressEvent: AxiosProgressEvent) => void; - onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void; - maxContentLength?: number; - validateStatus?: ((status: number) => boolean) | null; - maxBodyLength?: number; - maxRedirects?: number; - maxRate?: number | [MaxUploadRate, MaxDownloadRate]; - beforeRedirect?: (options: Record, responseDetails: {headers: Record, statusCode: HttpStatusCode}) => void; - socketPath?: string | null; - transport?: any; - httpAgent?: any; - httpsAgent?: any; - proxy?: AxiosProxyConfig | false; - cancelToken?: CancelToken; - decompress?: boolean; - transitional?: TransitionalOptions; - signal?: GenericAbortSignal; - insecureHTTPParser?: boolean; - env?: { - FormData?: new (...args: any[]) => object; - }; - formSerializer?: FormSerializerOptions; - family?: AddressFamily; - lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) | - ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>); - withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined); -} - -// Alias -export type RawAxiosRequestConfig = AxiosRequestConfig; - -export interface InternalAxiosRequestConfig extends AxiosRequestConfig { - headers: AxiosRequestHeaders; -} - -export interface HeadersDefaults { - common: RawAxiosRequestHeaders; - delete: RawAxiosRequestHeaders; - get: RawAxiosRequestHeaders; - head: RawAxiosRequestHeaders; - post: RawAxiosRequestHeaders; - put: RawAxiosRequestHeaders; - patch: RawAxiosRequestHeaders; - options?: RawAxiosRequestHeaders; - purge?: RawAxiosRequestHeaders; - link?: RawAxiosRequestHeaders; - unlink?: RawAxiosRequestHeaders; -} - -export interface AxiosDefaults extends Omit, 'headers'> { - headers: HeadersDefaults; -} - -export interface CreateAxiosDefaults extends Omit, 'headers'> { - headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial; -} - -export interface AxiosResponse { - data: T; - status: number; - statusText: string; - headers: RawAxiosResponseHeaders | AxiosResponseHeaders; - config: InternalAxiosRequestConfig; - request?: any; -} - -export class AxiosError extends Error { - constructor( - message?: string, - code?: string, - config?: InternalAxiosRequestConfig, - request?: any, - response?: AxiosResponse - ); - - config?: InternalAxiosRequestConfig; - code?: string; - request?: any; - response?: AxiosResponse; - isAxiosError: boolean; - status?: number; - toJSON: () => object; - cause?: Error; - static from( - error: Error | unknown, - code?: string, - config?: InternalAxiosRequestConfig, - request?: any, - response?: AxiosResponse, - customProps?: object, -): AxiosError; - static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; - static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; - static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION"; - static readonly ERR_NETWORK = "ERR_NETWORK"; - static readonly ERR_DEPRECATED = "ERR_DEPRECATED"; - static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; - static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; - static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; - static readonly ERR_INVALID_URL = "ERR_INVALID_URL"; - static readonly ERR_CANCELED = "ERR_CANCELED"; - static readonly ECONNABORTED = "ECONNABORTED"; - static readonly ETIMEDOUT = "ETIMEDOUT"; -} - -export class CanceledError extends AxiosError { -} - -export type AxiosPromise = Promise>; - -export interface CancelStatic { - new (message?: string): Cancel; -} - -export interface Cancel { - message: string | undefined; -} - -export interface Canceler { - (message?: string, config?: AxiosRequestConfig, request?: any): void; -} - -export interface CancelTokenStatic { - new (executor: (cancel: Canceler) => void): CancelToken; - source(): CancelTokenSource; -} - -export interface CancelToken { - promise: Promise; - reason?: Cancel; - throwIfRequested(): void; -} - -export interface CancelTokenSource { - token: CancelToken; - cancel: Canceler; -} - -export interface AxiosInterceptorOptions { - synchronous?: boolean; - runWhen?: (config: InternalAxiosRequestConfig) => boolean; -} - -export interface AxiosInterceptorManager { - use(onFulfilled?: ((value: V) => V | Promise) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number; - eject(id: number): void; - clear(): void; -} - -export class Axios { - constructor(config?: AxiosRequestConfig); - defaults: AxiosDefaults; - interceptors: { - request: AxiosInterceptorManager; - response: AxiosInterceptorManager; - }; - getUri(config?: AxiosRequestConfig): string; - request, D = any>(config: AxiosRequestConfig): Promise; - get, D = any>(url: string, config?: AxiosRequestConfig): Promise; - delete, D = any>(url: string, config?: AxiosRequestConfig): Promise; - head, D = any>(url: string, config?: AxiosRequestConfig): Promise; - options, D = any>(url: string, config?: AxiosRequestConfig): Promise; - post, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; - put, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; - patch, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; - postForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; - putForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; - patchForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; -} - -export interface AxiosInstance extends Axios { - , D = any>(config: AxiosRequestConfig): Promise; - , D = any>(url: string, config?: AxiosRequestConfig): Promise; - - defaults: Omit & { - headers: HeadersDefaults & { - [key: string]: AxiosHeaderValue - } - }; -} - -export interface GenericFormData { - append(name: string, value: any, options?: any): any; -} - -export interface GenericHTMLFormElement { - name: string; - method: string; - submit(): void; -} - -export function getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter; - -export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData; - -export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object; - -export function isAxiosError(payload: any): payload is AxiosError; - -export function spread(callback: (...args: T[]) => R): (array: T[]) => R; - -export function isCancel(value: any): value is Cancel; - -export function all(values: Array>): Promise; - -export interface AxiosStatic extends AxiosInstance { - create(config?: CreateAxiosDefaults): AxiosInstance; - Cancel: CancelStatic; - CancelToken: CancelTokenStatic; - Axios: typeof Axios; - AxiosError: typeof AxiosError; - HttpStatusCode: typeof HttpStatusCode; - readonly VERSION: string; - isCancel: typeof isCancel; - all: typeof all; - spread: typeof spread; - isAxiosError: typeof isAxiosError; - toFormData: typeof toFormData; - formToJSON: typeof formToJSON; - getAdapter: typeof getAdapter; - CanceledError: typeof CanceledError; - AxiosHeaders: typeof AxiosHeaders; -} - -declare const axios: AxiosStatic; - -export default axios; diff --git a/node_modules/axios/index.js b/node_modules/axios/index.js deleted file mode 100644 index fba3990d..00000000 --- a/node_modules/axios/index.js +++ /dev/null @@ -1,43 +0,0 @@ -import axios from './lib/axios.js'; - -// This module is intended to unwrap Axios default export as named. -// Keep top-level export same with static properties -// so that it can keep same with es module or cjs -const { - Axios, - AxiosError, - CanceledError, - isCancel, - CancelToken, - VERSION, - all, - Cancel, - isAxiosError, - spread, - toFormData, - AxiosHeaders, - HttpStatusCode, - formToJSON, - getAdapter, - mergeConfig -} = axios; - -export { - axios as default, - Axios, - AxiosError, - CanceledError, - isCancel, - CancelToken, - VERSION, - all, - Cancel, - isAxiosError, - spread, - toFormData, - AxiosHeaders, - HttpStatusCode, - formToJSON, - getAdapter, - mergeConfig -} diff --git a/node_modules/axios/lib/adapters/README.md b/node_modules/axios/lib/adapters/README.md deleted file mode 100644 index 68f11189..00000000 --- a/node_modules/axios/lib/adapters/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# axios // adapters - -The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received. - -## Example - -```js -var settle = require('./../core/settle'); - -module.exports = function myAdapter(config) { - // At this point: - // - config has been merged with defaults - // - request transformers have already run - // - request interceptors have already run - - // Make the request using config provided - // Upon response settle the Promise - - return new Promise(function(resolve, reject) { - - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(resolve, reject, response); - - // From here: - // - response transformers will run - // - response interceptors will run - }); -} -``` diff --git a/node_modules/axios/lib/adapters/http.js b/node_modules/axios/lib/adapters/http.js deleted file mode 100755 index 768e4a5d..00000000 --- a/node_modules/axios/lib/adapters/http.js +++ /dev/null @@ -1,685 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; -import settle from './../core/settle.js'; -import buildFullPath from '../core/buildFullPath.js'; -import buildURL from './../helpers/buildURL.js'; -import {getProxyForUrl} from 'proxy-from-env'; -import http from 'http'; -import https from 'https'; -import util from 'util'; -import followRedirects from 'follow-redirects'; -import zlib from 'zlib'; -import {VERSION} from '../env/data.js'; -import transitionalDefaults from '../defaults/transitional.js'; -import AxiosError from '../core/AxiosError.js'; -import CanceledError from '../cancel/CanceledError.js'; -import platform from '../platform/index.js'; -import fromDataURI from '../helpers/fromDataURI.js'; -import stream from 'stream'; -import AxiosHeaders from '../core/AxiosHeaders.js'; -import AxiosTransformStream from '../helpers/AxiosTransformStream.js'; -import {EventEmitter} from 'events'; -import formDataToStream from "../helpers/formDataToStream.js"; -import readBlob from "../helpers/readBlob.js"; -import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js'; -import callbackify from "../helpers/callbackify.js"; - -const zlibOptions = { - flush: zlib.constants.Z_SYNC_FLUSH, - finishFlush: zlib.constants.Z_SYNC_FLUSH -}; - -const brotliOptions = { - flush: zlib.constants.BROTLI_OPERATION_FLUSH, - finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH -} - -const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress); - -const {http: httpFollow, https: httpsFollow} = followRedirects; - -const isHttps = /https:?/; - -const supportedProtocols = platform.protocols.map(protocol => { - return protocol + ':'; -}); - -/** - * If the proxy or config beforeRedirects functions are defined, call them with the options - * object. - * - * @param {Object} options - The options object that was passed to the request. - * - * @returns {Object} - */ -function dispatchBeforeRedirect(options, responseDetails) { - if (options.beforeRedirects.proxy) { - options.beforeRedirects.proxy(options); - } - if (options.beforeRedirects.config) { - options.beforeRedirects.config(options, responseDetails); - } -} - -/** - * If the proxy or config afterRedirects functions are defined, call them with the options - * - * @param {http.ClientRequestArgs} options - * @param {AxiosProxyConfig} configProxy configuration from Axios options object - * @param {string} location - * - * @returns {http.ClientRequestArgs} - */ -function setProxy(options, configProxy, location) { - let proxy = configProxy; - if (!proxy && proxy !== false) { - const proxyUrl = getProxyForUrl(location); - if (proxyUrl) { - proxy = new URL(proxyUrl); - } - } - if (proxy) { - // Basic proxy authorization - if (proxy.username) { - proxy.auth = (proxy.username || '') + ':' + (proxy.password || ''); - } - - if (proxy.auth) { - // Support proxy auth object form - if (proxy.auth.username || proxy.auth.password) { - proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || ''); - } - const base64 = Buffer - .from(proxy.auth, 'utf8') - .toString('base64'); - options.headers['Proxy-Authorization'] = 'Basic ' + base64; - } - - options.headers.host = options.hostname + (options.port ? ':' + options.port : ''); - const proxyHost = proxy.hostname || proxy.host; - options.hostname = proxyHost; - // Replace 'host' since options is not a URL object - options.host = proxyHost; - options.port = proxy.port; - options.path = location; - if (proxy.protocol) { - options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`; - } - } - - options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) { - // Configure proxy for redirected request, passing the original config proxy to apply - // the exact same logic as if the redirected request was performed by axios directly. - setProxy(redirectOptions, configProxy, redirectOptions.href); - }; -} - -const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process'; - -// temporary hotfix - -const wrapAsync = (asyncExecutor) => { - return new Promise((resolve, reject) => { - let onDone; - let isDone; - - const done = (value, isRejected) => { - if (isDone) return; - isDone = true; - onDone && onDone(value, isRejected); - } - - const _resolve = (value) => { - done(value); - resolve(value); - }; - - const _reject = (reason) => { - done(reason, true); - reject(reason); - } - - asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject); - }) -}; - -const resolveFamily = ({address, family}) => { - if (!utils.isString(address)) { - throw TypeError('address must be a string'); - } - return ({ - address, - family: family || (address.indexOf('.') < 0 ? 6 : 4) - }); -} - -const buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family}); - -/*eslint consistent-return:0*/ -export default isHttpAdapterSupported && function httpAdapter(config) { - return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { - let {data, lookup, family} = config; - const {responseType, responseEncoding} = config; - const method = config.method.toUpperCase(); - let isDone; - let rejected = false; - let req; - - if (lookup) { - const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]); - // hotfix to support opt.all option which is required for node 20.x - lookup = (hostname, opt, cb) => { - _lookup(hostname, opt, (err, arg0, arg1) => { - if (err) { - return cb(err); - } - - const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)]; - - opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family); - }); - } - } - - // temporary internal emitter until the AxiosRequest class will be implemented - const emitter = new EventEmitter(); - - const onFinished = () => { - if (config.cancelToken) { - config.cancelToken.unsubscribe(abort); - } - - if (config.signal) { - config.signal.removeEventListener('abort', abort); - } - - emitter.removeAllListeners(); - } - - onDone((value, isRejected) => { - isDone = true; - if (isRejected) { - rejected = true; - onFinished(); - } - }); - - function abort(reason) { - emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason); - } - - emitter.once('abort', reject); - - if (config.cancelToken || config.signal) { - config.cancelToken && config.cancelToken.subscribe(abort); - if (config.signal) { - config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort); - } - } - - // Parse url - const fullPath = buildFullPath(config.baseURL, config.url); - const parsed = new URL(fullPath, 'http://localhost'); - const protocol = parsed.protocol || supportedProtocols[0]; - - if (protocol === 'data:') { - let convertedData; - - if (method !== 'GET') { - return settle(resolve, reject, { - status: 405, - statusText: 'method not allowed', - headers: {}, - config - }); - } - - try { - convertedData = fromDataURI(config.url, responseType === 'blob', { - Blob: config.env && config.env.Blob - }); - } catch (err) { - throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config); - } - - if (responseType === 'text') { - convertedData = convertedData.toString(responseEncoding); - - if (!responseEncoding || responseEncoding === 'utf8') { - convertedData = utils.stripBOM(convertedData); - } - } else if (responseType === 'stream') { - convertedData = stream.Readable.from(convertedData); - } - - return settle(resolve, reject, { - data: convertedData, - status: 200, - statusText: 'OK', - headers: new AxiosHeaders(), - config - }); - } - - if (supportedProtocols.indexOf(protocol) === -1) { - return reject(new AxiosError( - 'Unsupported protocol ' + protocol, - AxiosError.ERR_BAD_REQUEST, - config - )); - } - - const headers = AxiosHeaders.from(config.headers).normalize(); - - // Set User-Agent (required by some servers) - // See https://github.com/axios/axios/issues/69 - // User-Agent is specified; handle case where no UA header is desired - // Only set header if it hasn't been set in config - headers.set('User-Agent', 'axios/' + VERSION, false); - - const onDownloadProgress = config.onDownloadProgress; - const onUploadProgress = config.onUploadProgress; - const maxRate = config.maxRate; - let maxUploadRate = undefined; - let maxDownloadRate = undefined; - - // support for spec compliant FormData objects - if (utils.isSpecCompliantForm(data)) { - const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i); - - data = formDataToStream(data, (formHeaders) => { - headers.set(formHeaders); - }, { - tag: `axios-${VERSION}-boundary`, - boundary: userBoundary && userBoundary[1] || undefined - }); - // support for https://www.npmjs.com/package/form-data api - } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) { - headers.set(data.getHeaders()); - - if (!headers.hasContentLength()) { - try { - const knownLength = await util.promisify(data.getLength).call(data); - Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength); - /*eslint no-empty:0*/ - } catch (e) { - } - } - } else if (utils.isBlob(data)) { - data.size && headers.setContentType(data.type || 'application/octet-stream'); - headers.setContentLength(data.size || 0); - data = stream.Readable.from(readBlob(data)); - } else if (data && !utils.isStream(data)) { - if (Buffer.isBuffer(data)) { - // Nothing to do... - } else if (utils.isArrayBuffer(data)) { - data = Buffer.from(new Uint8Array(data)); - } else if (utils.isString(data)) { - data = Buffer.from(data, 'utf-8'); - } else { - return reject(new AxiosError( - 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', - AxiosError.ERR_BAD_REQUEST, - config - )); - } - - // Add Content-Length header if data exists - headers.setContentLength(data.length, false); - - if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { - return reject(new AxiosError( - 'Request body larger than maxBodyLength limit', - AxiosError.ERR_BAD_REQUEST, - config - )); - } - } - - const contentLength = utils.toFiniteNumber(headers.getContentLength()); - - if (utils.isArray(maxRate)) { - maxUploadRate = maxRate[0]; - maxDownloadRate = maxRate[1]; - } else { - maxUploadRate = maxDownloadRate = maxRate; - } - - if (data && (onUploadProgress || maxUploadRate)) { - if (!utils.isStream(data)) { - data = stream.Readable.from(data, {objectMode: false}); - } - - data = stream.pipeline([data, new AxiosTransformStream({ - length: contentLength, - maxRate: utils.toFiniteNumber(maxUploadRate) - })], utils.noop); - - onUploadProgress && data.on('progress', progress => { - onUploadProgress(Object.assign(progress, { - upload: true - })); - }); - } - - // HTTP basic authentication - let auth = undefined; - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password || ''; - auth = username + ':' + password; - } - - if (!auth && parsed.username) { - const urlUsername = parsed.username; - const urlPassword = parsed.password; - auth = urlUsername + ':' + urlPassword; - } - - auth && headers.delete('authorization'); - - let path; - - try { - path = buildURL( - parsed.pathname + parsed.search, - config.params, - config.paramsSerializer - ).replace(/^\?/, ''); - } catch (err) { - const customErr = new Error(err.message); - customErr.config = config; - customErr.url = config.url; - customErr.exists = true; - return reject(customErr); - } - - headers.set( - 'Accept-Encoding', - 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false - ); - - const options = { - path, - method: method, - headers: headers.toJSON(), - agents: { http: config.httpAgent, https: config.httpsAgent }, - auth, - protocol, - family, - beforeRedirect: dispatchBeforeRedirect, - beforeRedirects: {} - }; - - // cacheable-lookup integration hotfix - !utils.isUndefined(lookup) && (options.lookup = lookup); - - if (config.socketPath) { - options.socketPath = config.socketPath; - } else { - options.hostname = parsed.hostname; - options.port = parsed.port; - setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); - } - - let transport; - const isHttpsRequest = isHttps.test(options.protocol); - options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; - if (config.transport) { - transport = config.transport; - } else if (config.maxRedirects === 0) { - transport = isHttpsRequest ? https : http; - } else { - if (config.maxRedirects) { - options.maxRedirects = config.maxRedirects; - } - if (config.beforeRedirect) { - options.beforeRedirects.config = config.beforeRedirect; - } - transport = isHttpsRequest ? httpsFollow : httpFollow; - } - - if (config.maxBodyLength > -1) { - options.maxBodyLength = config.maxBodyLength; - } else { - // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited - options.maxBodyLength = Infinity; - } - - if (config.insecureHTTPParser) { - options.insecureHTTPParser = config.insecureHTTPParser; - } - - // Create the request - req = transport.request(options, function handleResponse(res) { - if (req.destroyed) return; - - const streams = [res]; - - const responseLength = +res.headers['content-length']; - - if (onDownloadProgress) { - const transformStream = new AxiosTransformStream({ - length: utils.toFiniteNumber(responseLength), - maxRate: utils.toFiniteNumber(maxDownloadRate) - }); - - onDownloadProgress && transformStream.on('progress', progress => { - onDownloadProgress(Object.assign(progress, { - download: true - })); - }); - - streams.push(transformStream); - } - - // decompress the response body transparently if required - let responseStream = res; - - // return the last request in case of redirects - const lastRequest = res.req || req; - - // if decompress disabled we should not decompress - if (config.decompress !== false && res.headers['content-encoding']) { - // if no content, but headers still say that it is encoded, - // remove the header not confuse downstream operations - if (method === 'HEAD' || res.statusCode === 204) { - delete res.headers['content-encoding']; - } - - switch ((res.headers['content-encoding'] || '').toLowerCase()) { - /*eslint default-case:0*/ - case 'gzip': - case 'x-gzip': - case 'compress': - case 'x-compress': - // add the unzipper to the body stream processing pipeline - streams.push(zlib.createUnzip(zlibOptions)); - - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - case 'deflate': - streams.push(new ZlibHeaderTransformStream()); - - // add the unzipper to the body stream processing pipeline - streams.push(zlib.createUnzip(zlibOptions)); - - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - case 'br': - if (isBrotliSupported) { - streams.push(zlib.createBrotliDecompress(brotliOptions)); - delete res.headers['content-encoding']; - } - } - } - - responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0]; - - const offListeners = stream.finished(responseStream, () => { - offListeners(); - onFinished(); - }); - - const response = { - status: res.statusCode, - statusText: res.statusMessage, - headers: new AxiosHeaders(res.headers), - config, - request: lastRequest - }; - - if (responseType === 'stream') { - response.data = responseStream; - settle(resolve, reject, response); - } else { - const responseBuffer = []; - let totalResponseBytes = 0; - - responseStream.on('data', function handleStreamData(chunk) { - responseBuffer.push(chunk); - totalResponseBytes += chunk.length; - - // make sure the content length is not over the maxContentLength if specified - if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { - // stream.destroy() emit aborted event before calling reject() on Node.js v16 - rejected = true; - responseStream.destroy(); - reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', - AxiosError.ERR_BAD_RESPONSE, config, lastRequest)); - } - }); - - responseStream.on('aborted', function handlerStreamAborted() { - if (rejected) { - return; - } - - const err = new AxiosError( - 'maxContentLength size of ' + config.maxContentLength + ' exceeded', - AxiosError.ERR_BAD_RESPONSE, - config, - lastRequest - ); - responseStream.destroy(err); - reject(err); - }); - - responseStream.on('error', function handleStreamError(err) { - if (req.destroyed) return; - reject(AxiosError.from(err, null, config, lastRequest)); - }); - - responseStream.on('end', function handleStreamEnd() { - try { - let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer); - if (responseType !== 'arraybuffer') { - responseData = responseData.toString(responseEncoding); - if (!responseEncoding || responseEncoding === 'utf8') { - responseData = utils.stripBOM(responseData); - } - } - response.data = responseData; - } catch (err) { - return reject(AxiosError.from(err, null, config, response.request, response)); - } - settle(resolve, reject, response); - }); - } - - emitter.once('abort', err => { - if (!responseStream.destroyed) { - responseStream.emit('error', err); - responseStream.destroy(); - } - }); - }); - - emitter.once('abort', err => { - reject(err); - req.destroy(err); - }); - - // Handle errors - req.on('error', function handleRequestError(err) { - // @todo remove - // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return; - reject(AxiosError.from(err, null, config, req)); - }); - - // set tcp keep alive to prevent drop connection by peer - req.on('socket', function handleRequestSocket(socket) { - // default interval of sending ack packet is 1 minute - socket.setKeepAlive(true, 1000 * 60); - }); - - // Handle request timeout - if (config.timeout) { - // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. - const timeout = parseInt(config.timeout, 10); - - if (Number.isNaN(timeout)) { - reject(new AxiosError( - 'error trying to parse `config.timeout` to int', - AxiosError.ERR_BAD_OPTION_VALUE, - config, - req - )); - - return; - } - - // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. - // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. - // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. - // And then these socket which be hang up will devouring CPU little by little. - // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. - req.setTimeout(timeout, function handleRequestTimeout() { - if (isDone) return; - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || transitionalDefaults; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new AxiosError( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, - config, - req - )); - abort(); - }); - } - - - // Send the request - if (utils.isStream(data)) { - let ended = false; - let errored = false; - - data.on('end', () => { - ended = true; - }); - - data.once('error', err => { - errored = true; - req.destroy(err); - }); - - data.on('close', () => { - if (!ended && !errored) { - abort(new CanceledError('Request stream has been aborted', config, req)); - } - }); - - data.pipe(req); - } else { - req.end(data); - } - }); -} - -export const __setProxy = setProxy; diff --git a/node_modules/axios/lib/adapters/xhr.js b/node_modules/axios/lib/adapters/xhr.js deleted file mode 100644 index 26126b2f..00000000 --- a/node_modules/axios/lib/adapters/xhr.js +++ /dev/null @@ -1,260 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; -import settle from './../core/settle.js'; -import cookies from './../helpers/cookies.js'; -import buildURL from './../helpers/buildURL.js'; -import buildFullPath from '../core/buildFullPath.js'; -import isURLSameOrigin from './../helpers/isURLSameOrigin.js'; -import transitionalDefaults from '../defaults/transitional.js'; -import AxiosError from '../core/AxiosError.js'; -import CanceledError from '../cancel/CanceledError.js'; -import parseProtocol from '../helpers/parseProtocol.js'; -import platform from '../platform/index.js'; -import AxiosHeaders from '../core/AxiosHeaders.js'; -import speedometer from '../helpers/speedometer.js'; - -function progressEventReducer(listener, isDownloadStream) { - let bytesNotified = 0; - const _speedometer = speedometer(50, 250); - - return e => { - const loaded = e.loaded; - const total = e.lengthComputable ? e.total : undefined; - const progressBytes = loaded - bytesNotified; - const rate = _speedometer(progressBytes); - const inRange = loaded <= total; - - bytesNotified = loaded; - - const data = { - loaded, - total, - progress: total ? (loaded / total) : undefined, - bytes: progressBytes, - rate: rate ? rate : undefined, - estimated: rate && total && inRange ? (total - loaded) / rate : undefined, - event: e - }; - - data[isDownloadStream ? 'download' : 'upload'] = true; - - listener(data); - }; -} - -const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; - -export default isXHRAdapterSupported && function (config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - let requestData = config.data; - const requestHeaders = AxiosHeaders.from(config.headers).normalize(); - let {responseType, withXSRFToken} = config; - let onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - let contentType; - - if (utils.isFormData(requestData)) { - if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { - requestHeaders.setContentType(false); // Let the browser set it - } else if ((contentType = requestHeaders.getContentType()) !== false) { - // fix semicolon duplication issue for ReactNative FormData implementation - const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; - requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); - } - } - - let request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); - } - - const fullPath = buildFullPath(config.baseURL, config.url); - - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - const responseHeaders = AxiosHeaders.from( - 'getAllResponseHeaders' in request && request.getAllResponseHeaders() - ); - const responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - const response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config, - request - }; - - settle(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || transitionalDefaults; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new AxiosError( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, - config, - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if(platform.hasStandardBrowserEnv) { - withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); - - if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) { - // Add xsrf header - const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); - - if (xsrfValue) { - requestHeaders.set(config.xsrfHeaderName, xsrfValue); - } - } - } - - // Remove Content-Type if data is undefined - requestData === undefined && requestHeaders.setContentType(null); - - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { - request.setRequestHeader(key, val); - }); - } - - // Add withCredentials to request if needed - if (!utils.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = cancel => { - if (!request) { - return; - } - reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - const protocol = parseProtocol(fullPath); - - if (protocol && platform.protocols.indexOf(protocol) === -1) { - reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); - return; - } - - - // Send the request - request.send(requestData || null); - }); -} diff --git a/node_modules/axios/lib/axios.js b/node_modules/axios/lib/axios.js deleted file mode 100644 index 873f246d..00000000 --- a/node_modules/axios/lib/axios.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -import utils from './utils.js'; -import bind from './helpers/bind.js'; -import Axios from './core/Axios.js'; -import mergeConfig from './core/mergeConfig.js'; -import defaults from './defaults/index.js'; -import formDataToJSON from './helpers/formDataToJSON.js'; -import CanceledError from './cancel/CanceledError.js'; -import CancelToken from './cancel/CancelToken.js'; -import isCancel from './cancel/isCancel.js'; -import {VERSION} from './env/data.js'; -import toFormData from './helpers/toFormData.js'; -import AxiosError from './core/AxiosError.js'; -import spread from './helpers/spread.js'; -import isAxiosError from './helpers/isAxiosError.js'; -import AxiosHeaders from "./core/AxiosHeaders.js"; -import adapters from './adapters/adapters.js'; -import HttpStatusCode from './helpers/HttpStatusCode.js'; - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * - * @returns {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - const context = new Axios(defaultConfig); - const instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context, {allOwnKeys: true}); - - // Copy context to instance - utils.extend(instance, context, null, {allOwnKeys: true}); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance(mergeConfig(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -const axios = createInstance(defaults); - -// Expose Axios class to allow class inheritance -axios.Axios = Axios; - -// Expose Cancel & CancelToken -axios.CanceledError = CanceledError; -axios.CancelToken = CancelToken; -axios.isCancel = isCancel; -axios.VERSION = VERSION; -axios.toFormData = toFormData; - -// Expose AxiosError class -axios.AxiosError = AxiosError; - -// alias for CanceledError for backward compatibility -axios.Cancel = axios.CanceledError; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; - -axios.spread = spread; - -// Expose isAxiosError -axios.isAxiosError = isAxiosError; - -// Expose mergeConfig -axios.mergeConfig = mergeConfig; - -axios.AxiosHeaders = AxiosHeaders; - -axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing); - -axios.getAdapter = adapters.getAdapter; - -axios.HttpStatusCode = HttpStatusCode; - -axios.default = axios; - -// this module should only have a default export -export default axios diff --git a/node_modules/axios/lib/cancel/CancelToken.js b/node_modules/axios/lib/cancel/CancelToken.js deleted file mode 100644 index 20d8f68a..00000000 --- a/node_modules/axios/lib/cancel/CancelToken.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -import CanceledError from './CanceledError.js'; - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @param {Function} executor The executor function. - * - * @returns {CancelToken} - */ -class CancelToken { - constructor(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - let resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - const token = this; - - // eslint-disable-next-line func-names - this.promise.then(cancel => { - if (!token._listeners) return; - - let i = token._listeners.length; - - while (i-- > 0) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = onfulfilled => { - let _resolve; - // eslint-disable-next-line func-names - const promise = new Promise(resolve => { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message, config, request) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new CanceledError(message, config, request); - resolvePromise(token.reason); - }); - } - - /** - * Throws a `CanceledError` if cancellation has been requested. - */ - throwIfRequested() { - if (this.reason) { - throw this.reason; - } - } - - /** - * Subscribe to the cancel signal - */ - - subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } - } - - /** - * Unsubscribe from the cancel signal - */ - - unsubscribe(listener) { - if (!this._listeners) { - return; - } - const index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } - } - - /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ - static source() { - let cancel; - const token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token, - cancel - }; - } -} - -export default CancelToken; diff --git a/node_modules/axios/lib/cancel/CanceledError.js b/node_modules/axios/lib/cancel/CanceledError.js deleted file mode 100644 index 880066ed..00000000 --- a/node_modules/axios/lib/cancel/CanceledError.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -import AxiosError from '../core/AxiosError.js'; -import utils from '../utils.js'; - -/** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @param {string=} message The message. - * @param {Object=} config The config. - * @param {Object=} request The request. - * - * @returns {CanceledError} The created error. - */ -function CanceledError(message, config, request) { - // eslint-disable-next-line no-eq-null,eqeqeq - AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); - this.name = 'CanceledError'; -} - -utils.inherits(CanceledError, AxiosError, { - __CANCEL__: true -}); - -export default CanceledError; diff --git a/node_modules/axios/lib/cancel/isCancel.js b/node_modules/axios/lib/cancel/isCancel.js deleted file mode 100644 index a444a129..00000000 --- a/node_modules/axios/lib/cancel/isCancel.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -export default function isCancel(value) { - return !!(value && value.__CANCEL__); -} diff --git a/node_modules/axios/lib/core/Axios.js b/node_modules/axios/lib/core/Axios.js deleted file mode 100644 index 2713364a..00000000 --- a/node_modules/axios/lib/core/Axios.js +++ /dev/null @@ -1,225 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; -import buildURL from '../helpers/buildURL.js'; -import InterceptorManager from './InterceptorManager.js'; -import dispatchRequest from './dispatchRequest.js'; -import mergeConfig from './mergeConfig.js'; -import buildFullPath from './buildFullPath.js'; -import validator from '../helpers/validator.js'; -import AxiosHeaders from './AxiosHeaders.js'; - -const validators = validator.validators; - -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - * - * @return {Axios} A new instance of Axios - */ -class Axios { - constructor(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; - } - - /** - * Dispatch a request - * - * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) - * @param {?Object} config - * - * @returns {Promise} The Promise to be fulfilled - */ - async request(configOrUrl, config) { - try { - return await this._request(configOrUrl, config); - } catch (err) { - if (err instanceof Error) { - let dummy; - - Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); - - // slice off the Error: ... line - const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; - - if (!err.stack) { - err.stack = stack; - // match without the 2 top stack lines - } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { - err.stack += '\n' + stack - } - } - - throw err; - } - } - - _request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - - config = mergeConfig(this.defaults, config); - - const {transitional, paramsSerializer, headers} = config; - - if (transitional !== undefined) { - validator.assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - if (paramsSerializer != null) { - if (utils.isFunction(paramsSerializer)) { - config.paramsSerializer = { - serialize: paramsSerializer - } - } else { - validator.assertOptions(paramsSerializer, { - encode: validators.function, - serialize: validators.function - }, true); - } - } - - // Set config.method - config.method = (config.method || this.defaults.method || 'get').toLowerCase(); - - // Flatten headers - let contextHeaders = headers && utils.merge( - headers.common, - headers[config.method] - ); - - headers && utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - (method) => { - delete headers[method]; - } - ); - - config.headers = AxiosHeaders.concat(contextHeaders, headers); - - // filter out skipped interceptors - const requestInterceptorChain = []; - let synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - const responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - let promise; - let i = 0; - let len; - - if (!synchronousRequestInterceptors) { - const chain = [dispatchRequest.bind(this), undefined]; - chain.unshift.apply(chain, requestInterceptorChain); - chain.push.apply(chain, responseInterceptorChain); - len = chain.length; - - promise = Promise.resolve(config); - - while (i < len) { - promise = promise.then(chain[i++], chain[i++]); - } - - return promise; - } - - len = requestInterceptorChain.length; - - let newConfig = config; - - i = 0; - - while (i < len) { - const onFulfilled = requestInterceptorChain[i++]; - const onRejected = requestInterceptorChain[i++]; - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected.call(this, error); - break; - } - } - - try { - promise = dispatchRequest.call(this, newConfig); - } catch (error) { - return Promise.reject(error); - } - - i = 0; - len = responseInterceptorChain.length; - - while (i < len) { - promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); - } - - return promise; - } - - getUri(config) { - config = mergeConfig(this.defaults, config); - const fullPath = buildFullPath(config.baseURL, config.url); - return buildURL(fullPath, config.params, config.paramsSerializer); - } -} - -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(mergeConfig(config || {}, { - method, - url, - data: (config || {}).data - })); - }; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request(mergeConfig(config || {}, { - method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url, - data - })); - }; - } - - Axios.prototype[method] = generateHTTPMethod(); - - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); -}); - -export default Axios; diff --git a/node_modules/axios/lib/core/AxiosError.js b/node_modules/axios/lib/core/AxiosError.js deleted file mode 100644 index 7141a8cd..00000000 --- a/node_modules/axios/lib/core/AxiosError.js +++ /dev/null @@ -1,100 +0,0 @@ -'use strict'; - -import utils from '../utils.js'; - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * - * @returns {Error} The created error. - */ -function AxiosError(message, code, config, request, response) { - Error.call(this); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } else { - this.stack = (new Error()).stack; - } - - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); -} - -utils.inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: utils.toJSONObject(this.config), - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } -}); - -const prototype = AxiosError.prototype; -const descriptors = {}; - -[ - 'ERR_BAD_OPTION_VALUE', - 'ERR_BAD_OPTION', - 'ECONNABORTED', - 'ETIMEDOUT', - 'ERR_NETWORK', - 'ERR_FR_TOO_MANY_REDIRECTS', - 'ERR_DEPRECATED', - 'ERR_BAD_RESPONSE', - 'ERR_BAD_REQUEST', - 'ERR_CANCELED', - 'ERR_NOT_SUPPORT', - 'ERR_INVALID_URL' -// eslint-disable-next-line func-names -].forEach(code => { - descriptors[code] = {value: code}; -}); - -Object.defineProperties(AxiosError, descriptors); -Object.defineProperty(prototype, 'isAxiosError', {value: true}); - -// eslint-disable-next-line func-names -AxiosError.from = (error, code, config, request, response, customProps) => { - const axiosError = Object.create(prototype); - - utils.toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }, prop => { - return prop !== 'isAxiosError'; - }); - - AxiosError.call(axiosError, error.message, code, config, request, response); - - axiosError.cause = error; - - axiosError.name = error.name; - - customProps && Object.assign(axiosError, customProps); - - return axiosError; -}; - -export default AxiosError; diff --git a/node_modules/axios/lib/core/InterceptorManager.js b/node_modules/axios/lib/core/InterceptorManager.js deleted file mode 100644 index 6657a9d2..00000000 --- a/node_modules/axios/lib/core/InterceptorManager.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; - -class InterceptorManager { - constructor() { - this.handlers = []; - } - - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ - use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled, - rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; - } - - /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - * - * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise - */ - eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - } - - /** - * Clear all interceptors from the stack - * - * @returns {void} - */ - clear() { - if (this.handlers) { - this.handlers = []; - } - } - - /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - * - * @returns {void} - */ - forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); - } -} - -export default InterceptorManager; diff --git a/node_modules/axios/lib/core/README.md b/node_modules/axios/lib/core/README.md deleted file mode 100644 index 84559ce7..00000000 --- a/node_modules/axios/lib/core/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# axios // core - -The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are: - -- Dispatching requests - - Requests sent via `adapters/` (see lib/adapters/README.md) -- Managing interceptors -- Handling config diff --git a/node_modules/axios/lib/core/buildFullPath.js b/node_modules/axios/lib/core/buildFullPath.js deleted file mode 100644 index b60927c0..00000000 --- a/node_modules/axios/lib/core/buildFullPath.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -import isAbsoluteURL from '../helpers/isAbsoluteURL.js'; -import combineURLs from '../helpers/combineURLs.js'; - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * - * @returns {string} The combined full path - */ -export default function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; -} diff --git a/node_modules/axios/lib/core/dispatchRequest.js b/node_modules/axios/lib/core/dispatchRequest.js deleted file mode 100644 index 9e306aac..00000000 --- a/node_modules/axios/lib/core/dispatchRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -'use strict'; - -import transformData from './transformData.js'; -import isCancel from '../cancel/isCancel.js'; -import defaults from '../defaults/index.js'; -import CanceledError from '../cancel/CanceledError.js'; -import AxiosHeaders from '../core/AxiosHeaders.js'; -import adapters from "../adapters/adapters.js"; - -/** - * Throws a `CanceledError` if cancellation has been requested. - * - * @param {Object} config The config that is to be used for the request - * - * @returns {void} - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new CanceledError(null, config); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * - * @returns {Promise} The Promise to be fulfilled - */ -export default function dispatchRequest(config) { - throwIfCancellationRequested(config); - - config.headers = AxiosHeaders.from(config.headers); - - // Transform request data - config.data = transformData.call( - config, - config.transformRequest - ); - - if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { - config.headers.setContentType('application/x-www-form-urlencoded', false); - } - - const adapter = adapters.getAdapter(config.adapter || defaults.adapter); - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData.call( - config, - config.transformResponse, - response - ); - - response.headers = AxiosHeaders.from(response.headers); - - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData.call( - config, - config.transformResponse, - reason.response - ); - reason.response.headers = AxiosHeaders.from(reason.response.headers); - } - } - - return Promise.reject(reason); - }); -} diff --git a/node_modules/axios/lib/core/mergeConfig.js b/node_modules/axios/lib/core/mergeConfig.js deleted file mode 100644 index e4600e57..00000000 --- a/node_modules/axios/lib/core/mergeConfig.js +++ /dev/null @@ -1,106 +0,0 @@ -'use strict'; - -import utils from '../utils.js'; -import AxiosHeaders from "./AxiosHeaders.js"; - -const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing; - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * - * @returns {Object} New object resulting from merging config2 to config1 - */ -export default function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - const config = {}; - - function getMergedValue(target, source, caseless) { - if (utils.isPlainObject(target) && utils.isPlainObject(source)) { - return utils.merge.call({caseless}, target, source); - } else if (utils.isPlainObject(source)) { - return utils.merge({}, source); - } else if (utils.isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(a, b, caseless) { - if (!utils.isUndefined(b)) { - return getMergedValue(a, b, caseless); - } else if (!utils.isUndefined(a)) { - return getMergedValue(undefined, a, caseless); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(a, b) { - if (!utils.isUndefined(b)) { - return getMergedValue(undefined, b); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(a, b) { - if (!utils.isUndefined(b)) { - return getMergedValue(undefined, b); - } else if (!utils.isUndefined(a)) { - return getMergedValue(undefined, a); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(a, b, prop) { - if (prop in config2) { - return getMergedValue(a, b); - } else if (prop in config1) { - return getMergedValue(undefined, a); - } - } - - const mergeMap = { - url: valueFromConfig2, - method: valueFromConfig2, - data: valueFromConfig2, - baseURL: defaultToConfig2, - transformRequest: defaultToConfig2, - transformResponse: defaultToConfig2, - paramsSerializer: defaultToConfig2, - timeout: defaultToConfig2, - timeoutMessage: defaultToConfig2, - withCredentials: defaultToConfig2, - withXSRFToken: defaultToConfig2, - adapter: defaultToConfig2, - responseType: defaultToConfig2, - xsrfCookieName: defaultToConfig2, - xsrfHeaderName: defaultToConfig2, - onUploadProgress: defaultToConfig2, - onDownloadProgress: defaultToConfig2, - decompress: defaultToConfig2, - maxContentLength: defaultToConfig2, - maxBodyLength: defaultToConfig2, - beforeRedirect: defaultToConfig2, - transport: defaultToConfig2, - httpAgent: defaultToConfig2, - httpsAgent: defaultToConfig2, - cancelToken: defaultToConfig2, - socketPath: defaultToConfig2, - responseEncoding: defaultToConfig2, - validateStatus: mergeDirectKeys, - headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) - }; - - utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { - const merge = mergeMap[prop] || mergeDeepProperties; - const configValue = merge(config1[prop], config2[prop], prop); - (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -} diff --git a/node_modules/axios/lib/core/settle.js b/node_modules/axios/lib/core/settle.js deleted file mode 100644 index ac905c43..00000000 --- a/node_modules/axios/lib/core/settle.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -import AxiosError from './AxiosError.js'; - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - * - * @returns {object} The response. - */ -export default function settle(resolve, reject, response) { - const validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new AxiosError( - 'Request failed with status code ' + response.status, - [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); - } -} diff --git a/node_modules/axios/lib/core/transformData.js b/node_modules/axios/lib/core/transformData.js deleted file mode 100644 index eeb5a8a1..00000000 --- a/node_modules/axios/lib/core/transformData.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; -import defaults from '../defaults/index.js'; -import AxiosHeaders from '../core/AxiosHeaders.js'; - -/** - * Transform the data for a request or a response - * - * @param {Array|Function} fns A single function or Array of functions - * @param {?Object} response The response object - * - * @returns {*} The resulting transformed data - */ -export default function transformData(fns, response) { - const config = this || defaults; - const context = response || config; - const headers = AxiosHeaders.from(context.headers); - let data = context.data; - - utils.forEach(fns, function transform(fn) { - data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); - }); - - headers.normalize(); - - return data; -} diff --git a/node_modules/axios/lib/defaults/index.js b/node_modules/axios/lib/defaults/index.js deleted file mode 100644 index 774893ae..00000000 --- a/node_modules/axios/lib/defaults/index.js +++ /dev/null @@ -1,156 +0,0 @@ -'use strict'; - -import utils from '../utils.js'; -import AxiosError from '../core/AxiosError.js'; -import transitionalDefaults from './transitional.js'; -import toFormData from '../helpers/toFormData.js'; -import toURLEncodedForm from '../helpers/toURLEncodedForm.js'; -import platform from '../platform/index.js'; -import formDataToJSON from '../helpers/formDataToJSON.js'; - -/** - * It takes a string, tries to parse it, and if it fails, it returns the stringified version - * of the input - * - * @param {any} rawValue - The value to be stringified. - * @param {Function} parser - A function that parses a string into a JavaScript object. - * @param {Function} encoder - A function that takes a value and returns a string. - * - * @returns {string} A stringified version of the rawValue. - */ -function stringifySafely(rawValue, parser, encoder) { - if (utils.isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return utils.trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -const defaults = { - - transitional: transitionalDefaults, - - adapter: ['xhr', 'http'], - - transformRequest: [function transformRequest(data, headers) { - const contentType = headers.getContentType() || ''; - const hasJSONContentType = contentType.indexOf('application/json') > -1; - const isObjectPayload = utils.isObject(data); - - if (isObjectPayload && utils.isHTMLForm(data)) { - data = new FormData(data); - } - - const isFormData = utils.isFormData(data); - - if (isFormData) { - return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; - } - - if (utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; - } - if (utils.isArrayBufferView(data)) { - return data.buffer; - } - if (utils.isURLSearchParams(data)) { - headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); - return data.toString(); - } - - let isFileList; - - if (isObjectPayload) { - if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { - return toURLEncodedForm(data, this.formSerializer).toString(); - } - - if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { - const _FormData = this.env && this.env.FormData; - - return toFormData( - isFileList ? {'files[]': data} : data, - _FormData && new _FormData(), - this.formSerializer - ); - } - } - - if (isObjectPayload || hasJSONContentType ) { - headers.setContentType('application/json', false); - return stringifySafely(data); - } - - return data; - }], - - transformResponse: [function transformResponse(data) { - const transitional = this.transitional || defaults.transitional; - const forcedJSONParsing = transitional && transitional.forcedJSONParsing; - const JSONRequested = this.responseType === 'json'; - - if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { - const silentJSONParsing = transitional && transitional.silentJSONParsing; - const strictJSONParsing = !silentJSONParsing && JSONRequested; - - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - env: { - FormData: platform.classes.FormData, - Blob: platform.classes.Blob - }, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*', - 'Content-Type': undefined - } - } -}; - -utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { - defaults.headers[method] = {}; -}); - -export default defaults; diff --git a/node_modules/axios/lib/defaults/transitional.js b/node_modules/axios/lib/defaults/transitional.js deleted file mode 100644 index f8913319..00000000 --- a/node_modules/axios/lib/defaults/transitional.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export default { - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false -}; diff --git a/node_modules/axios/lib/env/README.md b/node_modules/axios/lib/env/README.md deleted file mode 100644 index b41baff3..00000000 --- a/node_modules/axios/lib/env/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# axios // env - -The `data.js` file is updated automatically when the package version is upgrading. Please do not edit it manually. diff --git a/node_modules/axios/lib/env/data.js b/node_modules/axios/lib/env/data.js deleted file mode 100644 index d4cb5d50..00000000 --- a/node_modules/axios/lib/env/data.js +++ /dev/null @@ -1 +0,0 @@ -export const VERSION = "1.6.8"; \ No newline at end of file diff --git a/node_modules/axios/lib/helpers/README.md b/node_modules/axios/lib/helpers/README.md deleted file mode 100644 index 4ae34193..00000000 --- a/node_modules/axios/lib/helpers/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# axios // helpers - -The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like: - -- Browser polyfills -- Managing cookies -- Parsing HTTP headers diff --git a/node_modules/axios/lib/helpers/bind.js b/node_modules/axios/lib/helpers/bind.js deleted file mode 100644 index b3aa83b7..00000000 --- a/node_modules/axios/lib/helpers/bind.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export default function bind(fn, thisArg) { - return function wrap() { - return fn.apply(thisArg, arguments); - }; -} diff --git a/node_modules/axios/lib/helpers/buildURL.js b/node_modules/axios/lib/helpers/buildURL.js deleted file mode 100644 index d769fdf4..00000000 --- a/node_modules/axios/lib/helpers/buildURL.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict'; - -import utils from '../utils.js'; -import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js'; - -/** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts - * - * @param {string} val The value to be encoded. - * - * @returns {string} The encoded value. - */ -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @param {?object} options - * - * @returns {string} The formatted url - */ -export default function buildURL(url, params, options) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - const _encode = options && options.encode || encode; - - const serializeFn = options && options.serialize; - - let serializedParams; - - if (serializeFn) { - serializedParams = serializeFn(params, options); - } else { - serializedParams = utils.isURLSearchParams(params) ? - params.toString() : - new AxiosURLSearchParams(params, options).toString(_encode); - } - - if (serializedParams) { - const hashmarkIndex = url.indexOf("#"); - - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -} diff --git a/node_modules/axios/lib/helpers/combineURLs.js b/node_modules/axios/lib/helpers/combineURLs.js deleted file mode 100644 index 9f04f020..00000000 --- a/node_modules/axios/lib/helpers/combineURLs.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * - * @returns {string} The combined URL - */ -export default function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -} diff --git a/node_modules/axios/lib/helpers/cookies.js b/node_modules/axios/lib/helpers/cookies.js deleted file mode 100644 index d039ac4f..00000000 --- a/node_modules/axios/lib/helpers/cookies.js +++ /dev/null @@ -1,42 +0,0 @@ -import utils from './../utils.js'; -import platform from '../platform/index.js'; - -export default platform.hasStandardBrowserEnv ? - - // Standard browser envs support document.cookie - { - write(name, value, expires, path, domain, secure) { - const cookie = [name + '=' + encodeURIComponent(value)]; - - utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); - - utils.isString(path) && cookie.push('path=' + path); - - utils.isString(domain) && cookie.push('domain=' + domain); - - secure === true && cookie.push('secure'); - - document.cookie = cookie.join('; '); - }, - - read(name) { - const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove(name) { - this.write(name, '', Date.now() - 86400000); - } - } - - : - - // Non-standard browser env (web workers, react-native) lack needed support. - { - write() {}, - read() { - return null; - }, - remove() {} - }; - diff --git a/node_modules/axios/lib/helpers/deprecatedMethod.js b/node_modules/axios/lib/helpers/deprecatedMethod.js deleted file mode 100644 index 9e8fae6b..00000000 --- a/node_modules/axios/lib/helpers/deprecatedMethod.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -/*eslint no-console:0*/ - -/** - * Supply a warning to the developer that a method they are using - * has been deprecated. - * - * @param {string} method The name of the deprecated method - * @param {string} [instead] The alternate method to use if applicable - * @param {string} [docs] The documentation URL to get further details - * - * @returns {void} - */ -export default function deprecatedMethod(method, instead, docs) { - try { - console.warn( - 'DEPRECATED method `' + method + '`.' + - (instead ? ' Use `' + instead + '` instead.' : '') + - ' This method will be removed in a future release.'); - - if (docs) { - console.warn('For more information about usage see ' + docs); - } - } catch (e) { /* Ignore */ } -} diff --git a/node_modules/axios/lib/helpers/isAbsoluteURL.js b/node_modules/axios/lib/helpers/isAbsoluteURL.js deleted file mode 100644 index 4747a457..00000000 --- a/node_modules/axios/lib/helpers/isAbsoluteURL.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -export default function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); -} diff --git a/node_modules/axios/lib/helpers/isAxiosError.js b/node_modules/axios/lib/helpers/isAxiosError.js deleted file mode 100644 index da6cd63f..00000000 --- a/node_modules/axios/lib/helpers/isAxiosError.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -export default function isAxiosError(payload) { - return utils.isObject(payload) && (payload.isAxiosError === true); -} diff --git a/node_modules/axios/lib/helpers/isURLSameOrigin.js b/node_modules/axios/lib/helpers/isURLSameOrigin.js deleted file mode 100644 index a8678a4e..00000000 --- a/node_modules/axios/lib/helpers/isURLSameOrigin.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; -import platform from '../platform/index.js'; - -export default platform.hasStandardBrowserEnv ? - -// Standard browser envs have full support of the APIs needed to test -// whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - const msie = /(msie|trident)/i.test(navigator.userAgent); - const urlParsingNode = document.createElement('a'); - let originURL; - - /** - * Parse a URL to discover its components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - let href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })(); diff --git a/node_modules/axios/lib/helpers/null.js b/node_modules/axios/lib/helpers/null.js deleted file mode 100644 index b9f82c46..00000000 --- a/node_modules/axios/lib/helpers/null.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line strict -export default null; diff --git a/node_modules/axios/lib/helpers/parseHeaders.js b/node_modules/axios/lib/helpers/parseHeaders.js deleted file mode 100644 index 50af9480..00000000 --- a/node_modules/axios/lib/helpers/parseHeaders.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -import utils from './../utils.js'; - -// RawAxiosHeaders whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -const ignoreDuplicateOf = utils.toObjectSet([ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]); - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} rawHeaders Headers needing to be parsed - * - * @returns {Object} Headers parsed into an object - */ -export default rawHeaders => { - const parsed = {}; - let key; - let val; - let i; - - rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { - i = line.indexOf(':'); - key = line.substring(0, i).trim().toLowerCase(); - val = line.substring(i + 1).trim(); - - if (!key || (parsed[key] && ignoreDuplicateOf[key])) { - return; - } - - if (key === 'set-cookie') { - if (parsed[key]) { - parsed[key].push(val); - } else { - parsed[key] = [val]; - } - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - - return parsed; -}; diff --git a/node_modules/axios/lib/helpers/parseProtocol.js b/node_modules/axios/lib/helpers/parseProtocol.js deleted file mode 100644 index 586ec964..00000000 --- a/node_modules/axios/lib/helpers/parseProtocol.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export default function parseProtocol(url) { - const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; -} diff --git a/node_modules/axios/lib/helpers/spread.js b/node_modules/axios/lib/helpers/spread.js deleted file mode 100644 index 13479cb2..00000000 --- a/node_modules/axios/lib/helpers/spread.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * - * @returns {Function} - */ -export default function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -} diff --git a/node_modules/axios/lib/helpers/toFormData.js b/node_modules/axios/lib/helpers/toFormData.js deleted file mode 100644 index a41e966c..00000000 --- a/node_modules/axios/lib/helpers/toFormData.js +++ /dev/null @@ -1,219 +0,0 @@ -'use strict'; - -import utils from '../utils.js'; -import AxiosError from '../core/AxiosError.js'; -// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored -import PlatformFormData from '../platform/node/classes/FormData.js'; - -/** - * Determines if the given thing is a array or js object. - * - * @param {string} thing - The object or array to be visited. - * - * @returns {boolean} - */ -function isVisitable(thing) { - return utils.isPlainObject(thing) || utils.isArray(thing); -} - -/** - * It removes the brackets from the end of a string - * - * @param {string} key - The key of the parameter. - * - * @returns {string} the key without the brackets. - */ -function removeBrackets(key) { - return utils.endsWith(key, '[]') ? key.slice(0, -2) : key; -} - -/** - * It takes a path, a key, and a boolean, and returns a string - * - * @param {string} path - The path to the current key. - * @param {string} key - The key of the current object being iterated over. - * @param {string} dots - If true, the key will be rendered with dots instead of brackets. - * - * @returns {string} The path to the current key. - */ -function renderKey(path, key, dots) { - if (!path) return key; - return path.concat(key).map(function each(token, i) { - // eslint-disable-next-line no-param-reassign - token = removeBrackets(token); - return !dots && i ? '[' + token + ']' : token; - }).join(dots ? '.' : ''); -} - -/** - * If the array is an array and none of its elements are visitable, then it's a flat array. - * - * @param {Array} arr - The array to check - * - * @returns {boolean} - */ -function isFlatArray(arr) { - return utils.isArray(arr) && !arr.some(isVisitable); -} - -const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) { - return /^is[A-Z]/.test(prop); -}); - -/** - * Convert a data object to FormData - * - * @param {Object} obj - * @param {?Object} [formData] - * @param {?Object} [options] - * @param {Function} [options.visitor] - * @param {Boolean} [options.metaTokens = true] - * @param {Boolean} [options.dots = false] - * @param {?Boolean} [options.indexes = false] - * - * @returns {Object} - **/ - -/** - * It converts an object into a FormData object - * - * @param {Object} obj - The object to convert to form data. - * @param {string} formData - The FormData object to append to. - * @param {Object} options - * - * @returns - */ -function toFormData(obj, formData, options) { - if (!utils.isObject(obj)) { - throw new TypeError('target must be an object'); - } - - // eslint-disable-next-line no-param-reassign - formData = formData || new (PlatformFormData || FormData)(); - - // eslint-disable-next-line no-param-reassign - options = utils.toFlatObject(options, { - metaTokens: true, - dots: false, - indexes: false - }, false, function defined(option, source) { - // eslint-disable-next-line no-eq-null,eqeqeq - return !utils.isUndefined(source[option]); - }); - - const metaTokens = options.metaTokens; - // eslint-disable-next-line no-use-before-define - const visitor = options.visitor || defaultVisitor; - const dots = options.dots; - const indexes = options.indexes; - const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; - const useBlob = _Blob && utils.isSpecCompliantForm(formData); - - if (!utils.isFunction(visitor)) { - throw new TypeError('visitor must be a function'); - } - - function convertValue(value) { - if (value === null) return ''; - - if (utils.isDate(value)) { - return value.toISOString(); - } - - if (!useBlob && utils.isBlob(value)) { - throw new AxiosError('Blob is not supported. Use a Buffer instead.'); - } - - if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) { - return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - - return value; - } - - /** - * Default visitor. - * - * @param {*} value - * @param {String|Number} key - * @param {Array} path - * @this {FormData} - * - * @returns {boolean} return true to visit the each prop of the value recursively - */ - function defaultVisitor(value, key, path) { - let arr = value; - - if (value && !path && typeof value === 'object') { - if (utils.endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - key = metaTokens ? key : key.slice(0, -2); - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if ( - (utils.isArray(value) && isFlatArray(value)) || - ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)) - )) { - // eslint-disable-next-line no-param-reassign - key = removeBrackets(key); - - arr.forEach(function each(el, index) { - !(utils.isUndefined(el) || el === null) && formData.append( - // eslint-disable-next-line no-nested-ternary - indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), - convertValue(el) - ); - }); - return false; - } - } - - if (isVisitable(value)) { - return true; - } - - formData.append(renderKey(path, key, dots), convertValue(value)); - - return false; - } - - const stack = []; - - const exposedHelpers = Object.assign(predicates, { - defaultVisitor, - convertValue, - isVisitable - }); - - function build(value, path) { - if (utils.isUndefined(value)) return; - - if (stack.indexOf(value) !== -1) { - throw Error('Circular reference detected in ' + path.join('.')); - } - - stack.push(value); - - utils.forEach(value, function each(el, key) { - const result = !(utils.isUndefined(el) || el === null) && visitor.call( - formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers - ); - - if (result === true) { - build(el, path ? path.concat(key) : [key]); - } - }); - - stack.pop(); - } - - if (!utils.isObject(obj)) { - throw new TypeError('data must be an object'); - } - - build(obj); - - return formData; -} - -export default toFormData; diff --git a/node_modules/axios/lib/helpers/validator.js b/node_modules/axios/lib/helpers/validator.js deleted file mode 100644 index 14b46960..00000000 --- a/node_modules/axios/lib/helpers/validator.js +++ /dev/null @@ -1,91 +0,0 @@ -'use strict'; - -import {VERSION} from '../env/data.js'; -import AxiosError from '../core/AxiosError.js'; - -const validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -const deprecatedWarnings = {}; - -/** - * Transitional option validator - * - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return (value, opt, opts) => { - if (validator === false) { - throw new AxiosError( - formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), - AxiosError.ERR_DEPRECATED - ); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - * - * @returns {object} - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); - } - const keys = Object.keys(options); - let i = keys.length; - while (i-- > 0) { - const opt = keys[i]; - const validator = schema[opt]; - if (validator) { - const value = options[opt]; - const result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); - } - } -} - -export default { - assertOptions, - validators -}; diff --git a/node_modules/axios/lib/utils.js b/node_modules/axios/lib/utils.js deleted file mode 100644 index a386b77f..00000000 --- a/node_modules/axios/lib/utils.js +++ /dev/null @@ -1,723 +0,0 @@ -'use strict'; - -import bind from './helpers/bind.js'; - -// utils is a library of generic helper functions non-specific to axios - -const {toString} = Object.prototype; -const {getPrototypeOf} = Object; - -const kindOf = (cache => thing => { - const str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); -})(Object.create(null)); - -const kindOfTest = (type) => { - type = type.toLowerCase(); - return (thing) => kindOf(thing) === type -} - -const typeOfTest = type => thing => typeof thing === type; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * - * @returns {boolean} True if value is an Array, otherwise false - */ -const {isArray} = Array; - -/** - * Determine if a value is undefined - * - * @param {*} val The value to test - * - * @returns {boolean} True if the value is undefined, otherwise false - */ -const isUndefined = typeOfTest('undefined'); - -/** - * Determine if a value is a Buffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -const isArrayBuffer = kindOfTest('ArrayBuffer'); - - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - let result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a String, otherwise false - */ -const isString = typeOfTest('string'); - -/** - * Determine if a value is a Function - * - * @param {*} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -const isFunction = typeOfTest('function'); - -/** - * Determine if a value is a Number - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Number, otherwise false - */ -const isNumber = typeOfTest('number'); - -/** - * Determine if a value is an Object - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an Object, otherwise false - */ -const isObject = (thing) => thing !== null && typeof thing === 'object'; - -/** - * Determine if a value is a Boolean - * - * @param {*} thing The value to test - * @returns {boolean} True if value is a Boolean, otherwise false - */ -const isBoolean = thing => thing === true || thing === false; - -/** - * Determine if a value is a plain Object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a plain Object, otherwise false - */ -const isPlainObject = (val) => { - if (kindOf(val) !== 'object') { - return false; - } - - const prototype = getPrototypeOf(val); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); -} - -/** - * Determine if a value is a Date - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Date, otherwise false - */ -const isDate = kindOfTest('Date'); - -/** - * Determine if a value is a File - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFile = kindOfTest('File'); - -/** - * Determine if a value is a Blob - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Blob, otherwise false - */ -const isBlob = kindOfTest('Blob'); - -/** - * Determine if a value is a FileList - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFileList = kindOfTest('FileList'); - -/** - * Determine if a value is a Stream - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Stream, otherwise false - */ -const isStream = (val) => isObject(val) && isFunction(val.pipe); - -/** - * Determine if a value is a FormData - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an FormData, otherwise false - */ -const isFormData = (thing) => { - let kind; - return thing && ( - (typeof FormData === 'function' && thing instanceof FormData) || ( - isFunction(thing.append) && ( - (kind = kindOf(thing)) === 'formdata' || - // detect form-data instance - (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') - ) - ) - ) -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -const isURLSearchParams = kindOfTest('URLSearchParams'); - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * - * @returns {String} The String freed of excess whitespace - */ -const trim = (str) => str.trim ? - str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - * - * @param {Boolean} [allOwnKeys = false] - * @returns {any} - */ -function forEach(obj, fn, {allOwnKeys = false} = {}) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - let i; - let l; - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); - const len = keys.length; - let key; - - for (i = 0; i < len; i++) { - key = keys[i]; - fn.call(null, obj[key], key, obj); - } - } -} - -function findKey(obj, key) { - key = key.toLowerCase(); - const keys = Object.keys(obj); - let i = keys.length; - let _key; - while (i-- > 0) { - _key = keys[i]; - if (key === _key.toLowerCase()) { - return _key; - } - } - return null; -} - -const _global = (() => { - /*eslint no-undef:0*/ - if (typeof globalThis !== "undefined") return globalThis; - return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) -})(); - -const isContextDefined = (context) => !isUndefined(context) && context !== _global; - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - const {caseless} = isContextDefined(this) && this || {}; - const result = {}; - const assignValue = (val, key) => { - const targetKey = caseless && findKey(result, key) || key; - if (isPlainObject(result[targetKey]) && isPlainObject(val)) { - result[targetKey] = merge(result[targetKey], val); - } else if (isPlainObject(val)) { - result[targetKey] = merge({}, val); - } else if (isArray(val)) { - result[targetKey] = val.slice(); - } else { - result[targetKey] = val; - } - } - - for (let i = 0, l = arguments.length; i < l; i++) { - arguments[i] && forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * - * @param {Boolean} [allOwnKeys] - * @returns {Object} The resulting value of object a - */ -const extend = (a, b, thisArg, {allOwnKeys}= {}) => { - forEach(b, (val, key) => { - if (thisArg && isFunction(val)) { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }, {allOwnKeys}); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * - * @returns {string} content value without BOM - */ -const stripBOM = (content) => { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -/** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - * - * @returns {void} - */ -const inherits = (constructor, superConstructor, props, descriptors) => { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - Object.defineProperty(constructor, 'super', { - value: superConstructor.prototype - }); - props && Object.assign(constructor.prototype, props); -} - -/** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function|Boolean} [filter] - * @param {Function} [propFilter] - * - * @returns {Object} - */ -const toFlatObject = (sourceObj, destObj, filter, propFilter) => { - let props; - let i; - let prop; - const merged = {}; - - destObj = destObj || {}; - // eslint-disable-next-line no-eq-null,eqeqeq - if (sourceObj == null) return destObj; - - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = filter !== false && getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - - return destObj; -} - -/** - * Determines whether a string ends with the characters of a specified string - * - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * - * @returns {boolean} - */ -const endsWith = (str, searchString, position) => { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - const lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -} - - -/** - * Returns new array from array like object or null if failed - * - * @param {*} [thing] - * - * @returns {?Array} - */ -const toArray = (thing) => { - if (!thing) return null; - if (isArray(thing)) return thing; - let i = thing.length; - if (!isNumber(i)) return null; - const arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; -} - -/** - * Checking if the Uint8Array exists and if it does, it returns a function that checks if the - * thing passed in is an instance of Uint8Array - * - * @param {TypedArray} - * - * @returns {Array} - */ -// eslint-disable-next-line func-names -const isTypedArray = (TypedArray => { - // eslint-disable-next-line func-names - return thing => { - return TypedArray && thing instanceof TypedArray; - }; -})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); - -/** - * For each entry in the object, call the function with the key and value. - * - * @param {Object} obj - The object to iterate over. - * @param {Function} fn - The function to call for each entry. - * - * @returns {void} - */ -const forEachEntry = (obj, fn) => { - const generator = obj && obj[Symbol.iterator]; - - const iterator = generator.call(obj); - - let result; - - while ((result = iterator.next()) && !result.done) { - const pair = result.value; - fn.call(obj, pair[0], pair[1]); - } -} - -/** - * It takes a regular expression and a string, and returns an array of all the matches - * - * @param {string} regExp - The regular expression to match against. - * @param {string} str - The string to search. - * - * @returns {Array} - */ -const matchAll = (regExp, str) => { - let matches; - const arr = []; - - while ((matches = regExp.exec(str)) !== null) { - arr.push(matches); - } - - return arr; -} - -/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ -const isHTMLForm = kindOfTest('HTMLFormElement'); - -const toCamelCase = str => { - return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, - function replacer(m, p1, p2) { - return p1.toUpperCase() + p2; - } - ); -}; - -/* Creating a function that will check if an object has a property. */ -const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); - -/** - * Determine if a value is a RegExp object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a RegExp object, otherwise false - */ -const isRegExp = kindOfTest('RegExp'); - -const reduceDescriptors = (obj, reducer) => { - const descriptors = Object.getOwnPropertyDescriptors(obj); - const reducedDescriptors = {}; - - forEach(descriptors, (descriptor, name) => { - let ret; - if ((ret = reducer(descriptor, name, obj)) !== false) { - reducedDescriptors[name] = ret || descriptor; - } - }); - - Object.defineProperties(obj, reducedDescriptors); -} - -/** - * Makes all methods read-only - * @param {Object} obj - */ - -const freezeMethods = (obj) => { - reduceDescriptors(obj, (descriptor, name) => { - // skip restricted props in strict mode - if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { - return false; - } - - const value = obj[name]; - - if (!isFunction(value)) return; - - descriptor.enumerable = false; - - if ('writable' in descriptor) { - descriptor.writable = false; - return; - } - - if (!descriptor.set) { - descriptor.set = () => { - throw Error('Can not rewrite read-only method \'' + name + '\''); - }; - } - }); -} - -const toObjectSet = (arrayOrString, delimiter) => { - const obj = {}; - - const define = (arr) => { - arr.forEach(value => { - obj[value] = true; - }); - } - - isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); - - return obj; -} - -const noop = () => {} - -const toFiniteNumber = (value, defaultValue) => { - value = +value; - return Number.isFinite(value) ? value : defaultValue; -} - -const ALPHA = 'abcdefghijklmnopqrstuvwxyz' - -const DIGIT = '0123456789'; - -const ALPHABET = { - DIGIT, - ALPHA, - ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT -} - -const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { - let str = ''; - const {length} = alphabet; - while (size--) { - str += alphabet[Math.random() * length|0] - } - - return str; -} - -/** - * If the thing is a FormData object, return true, otherwise return false. - * - * @param {unknown} thing - The thing to check. - * - * @returns {boolean} - */ -function isSpecCompliantForm(thing) { - return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); -} - -const toJSONObject = (obj) => { - const stack = new Array(10); - - const visit = (source, i) => { - - if (isObject(source)) { - if (stack.indexOf(source) >= 0) { - return; - } - - if(!('toJSON' in source)) { - stack[i] = source; - const target = isArray(source) ? [] : {}; - - forEach(source, (value, key) => { - const reducedValue = visit(value, i + 1); - !isUndefined(reducedValue) && (target[key] = reducedValue); - }); - - stack[i] = undefined; - - return target; - } - } - - return source; - } - - return visit(obj, 0); -} - -const isAsyncFn = kindOfTest('AsyncFunction'); - -const isThenable = (thing) => - thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); - -export default { - isArray, - isArrayBuffer, - isBuffer, - isFormData, - isArrayBufferView, - isString, - isNumber, - isBoolean, - isObject, - isPlainObject, - isUndefined, - isDate, - isFile, - isBlob, - isRegExp, - isFunction, - isStream, - isURLSearchParams, - isTypedArray, - isFileList, - forEach, - merge, - extend, - trim, - stripBOM, - inherits, - toFlatObject, - kindOf, - kindOfTest, - endsWith, - toArray, - forEachEntry, - matchAll, - isHTMLForm, - hasOwnProperty, - hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors, - freezeMethods, - toObjectSet, - toCamelCase, - noop, - toFiniteNumber, - findKey, - global: _global, - isContextDefined, - ALPHABET, - generateString, - isSpecCompliantForm, - toJSONObject, - isAsyncFn, - isThenable -}; diff --git a/node_modules/axios/package.json b/node_modules/axios/package.json deleted file mode 100644 index 5b3f7fb2..00000000 --- a/node_modules/axios/package.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "name": "axios", - "version": "1.6.8", - "description": "Promise based HTTP client for the browser and node.js", - "main": "index.js", - "exports": { - ".": { - "types": { - "require": "./index.d.cts", - "default": "./index.d.ts" - }, - "browser": { - "require": "./dist/browser/axios.cjs", - "default": "./index.js" - }, - "default": { - "require": "./dist/node/axios.cjs", - "default": "./index.js" - } - }, - "./lib/adapters/http.js": "./lib/adapters/http.js", - "./lib/adapters/xhr.js": "./lib/adapters/xhr.js", - "./unsafe/*": "./lib/*", - "./unsafe/core/settle.js": "./lib/core/settle.js", - "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js", - "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js", - "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js", - "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js", - "./unsafe/adapters/http.js": "./lib/adapters/http.js", - "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js", - "./unsafe/utils.js": "./lib/utils.js", - "./package.json": "./package.json" - }, - "type": "module", - "types": "index.d.ts", - "scripts": { - "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports", - "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js", - "test:dtslint": "dtslint --localTs node_modules/typescript/lib", - "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit", - "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit", - "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run", - "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run", - "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs", - "test:build:version": "node ./bin/check-build-version.js", - "start": "node ./sandbox/server.js", - "preversion": "gulp version", - "version": "npm run build && git add dist && git add package.json", - "prepublishOnly": "npm run test:build:version", - "postpublish": "git push && git push --tags", - "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m", - "examples": "node ./examples/server.js", - "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", - "fix": "eslint --fix lib/**/*.js", - "prepare": "husky install && npm run prepare:hooks", - "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"", - "release:dry": "release-it --dry-run --no-npm", - "release:info": "release-it --release-version", - "release:beta:no-npm": "release-it --preRelease=beta --no-npm", - "release:beta": "release-it --preRelease=beta", - "release:no-npm": "release-it --no-npm", - "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md", - "release": "release-it" - }, - "repository": { - "type": "git", - "url": "https://github.com/axios/axios.git" - }, - "keywords": [ - "xhr", - "http", - "ajax", - "promise", - "node" - ], - "author": "Matt Zabriskie", - "license": "MIT", - "bugs": { - "url": "https://github.com/axios/axios/issues" - }, - "homepage": "https://axios-http.com", - "devDependencies": { - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", - "@commitlint/cli": "^17.8.1", - "@commitlint/config-conventional": "^17.8.1", - "@release-it/conventional-changelog": "^5.1.1", - "@rollup/plugin-babel": "^5.3.1", - "@rollup/plugin-commonjs": "^15.1.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-multi-entry": "^4.1.0", - "@rollup/plugin-node-resolve": "^9.0.0", - "abortcontroller-polyfill": "^1.7.5", - "auto-changelog": "^2.4.0", - "body-parser": "^1.20.2", - "chalk": "^5.3.0", - "coveralls": "^3.1.1", - "cross-env": "^7.0.3", - "dev-null": "^0.1.1", - "dtslint": "^4.2.1", - "es6-promise": "^4.2.8", - "eslint": "^8.56.0", - "express": "^4.18.2", - "formdata-node": "^5.0.1", - "formidable": "^2.1.2", - "fs-extra": "^10.1.0", - "get-stream": "^3.0.0", - "gulp": "^4.0.2", - "gzip-size": "^7.0.0", - "handlebars": "^4.7.8", - "husky": "^8.0.3", - "istanbul-instrumenter-loader": "^3.0.1", - "jasmine-core": "^2.99.1", - "karma": "^6.3.17", - "karma-chrome-launcher": "^3.2.0", - "karma-firefox-launcher": "^2.1.2", - "karma-jasmine": "^1.1.2", - "karma-jasmine-ajax": "^0.1.13", - "karma-rollup-preprocessor": "^7.0.8", - "karma-safari-launcher": "^1.0.0", - "karma-sauce-launcher": "^4.3.6", - "karma-sinon": "^1.0.5", - "karma-sourcemap-loader": "^0.3.8", - "memoizee": "^0.4.15", - "minimist": "^1.2.8", - "mocha": "^10.3.0", - "multer": "^1.4.4", - "pretty-bytes": "^6.1.1", - "release-it": "^15.11.0", - "rollup": "^2.79.1", - "rollup-plugin-auto-external": "^2.0.0", - "rollup-plugin-bundle-size": "^1.0.3", - "rollup-plugin-terser": "^7.0.2", - "sinon": "^4.5.0", - "stream-throttle": "^0.1.3", - "string-replace-async": "^3.0.2", - "terser-webpack-plugin": "^4.2.3", - "typescript": "^4.9.5" - }, - "browser": { - "./lib/adapters/http.js": "./lib/helpers/null.js", - "./lib/platform/node/index.js": "./lib/platform/browser/index.js", - "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js" - }, - "jsdelivr": "dist/axios.min.js", - "unpkg": "dist/axios.min.js", - "typings": "./index.d.ts", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - }, - "bundlesize": [ - { - "path": "./dist/axios.min.js", - "threshold": "5kB" - } - ], - "contributors": [ - "Matt Zabriskie (https://github.com/mzabriskie)", - "Nick Uraltsev (https://github.com/nickuraltsev)", - "Jay (https://github.com/jasonsaayman)", - "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)", - "Emily Morehouse (https://github.com/emilyemorehouse)", - "Rubén Norte (https://github.com/rubennorte)", - "Justin Beckwith (https://github.com/JustinBeckwith)", - "Martti Laine (https://github.com/codeclown)", - "Xianming Zhong (https://github.com/chinesedfan)", - "Rikki Gibson (https://github.com/RikkiGibson)", - "Remco Haszing (https://github.com/remcohaszing)", - "Yasu Flores (https://github.com/yasuf)", - "Ben Carp (https://github.com/carpben)" - ], - "sideEffects": false, - "release-it": { - "git": { - "commitMessage": "chore(release): v${version}", - "push": true, - "commit": true, - "tag": true, - "requireCommits": false, - "requireCleanWorkingDir": false - }, - "github": { - "release": true, - "draft": true - }, - "npm": { - "publish": false, - "ignoreVersion": false - }, - "plugins": { - "@release-it/conventional-changelog": { - "preset": "angular", - "infile": "CHANGELOG.md", - "header": "# Changelog" - } - }, - "hooks": { - "before:init": "npm test", - "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json", - "before:release": "npm run release:changelog:fix", - "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." - } - }, - "commitlint": { - "rules": { - "header-max-length": [ - 2, - "always", - 130 - ] - }, - "extends": [ - "@commitlint/config-conventional" - ] - } -} \ No newline at end of file diff --git a/node_modules/body-parser/node_modules/bytes/History.md b/node_modules/body-parser/node_modules/bytes/History.md deleted file mode 100644 index d60ce0e6..00000000 --- a/node_modules/body-parser/node_modules/bytes/History.md +++ /dev/null @@ -1,97 +0,0 @@ -3.1.2 / 2022-01-27 -================== - - * Fix return value for un-parsable strings - -3.1.1 / 2021-11-15 -================== - - * Fix "thousandsSeparator" incorrecting formatting fractional part - -3.1.0 / 2019-01-22 -================== - - * Add petabyte (`pb`) support - -3.0.0 / 2017-08-31 -================== - - * Change "kB" to "KB" in format output - * Remove support for Node.js 0.6 - * Remove support for ComponentJS - -2.5.0 / 2017-03-24 -================== - - * Add option "unit" - -2.4.0 / 2016-06-01 -================== - - * Add option "unitSeparator" - -2.3.0 / 2016-02-15 -================== - - * Drop partial bytes on all parsed units - * Fix non-finite numbers to `.format` to return `null` - * Fix parsing byte string that looks like hex - * perf: hoist regular expressions - -2.2.0 / 2015-11-13 -================== - - * add option "decimalPlaces" - * add option "fixedDecimals" - -2.1.0 / 2015-05-21 -================== - - * add `.format` export - * add `.parse` export - -2.0.2 / 2015-05-20 -================== - - * remove map recreation - * remove unnecessary object construction - -2.0.1 / 2015-05-07 -================== - - * fix browserify require - * remove node.extend dependency - -2.0.0 / 2015-04-12 -================== - - * add option "case" - * add option "thousandsSeparator" - * return "null" on invalid parse input - * support proper round-trip: bytes(bytes(num)) === num - * units no longer case sensitive when parsing - -1.0.0 / 2014-05-05 -================== - - * add negative support. fixes #6 - -0.3.0 / 2014-03-19 -================== - - * added terabyte support - -0.2.1 / 2013-04-01 -================== - - * add .component - -0.2.0 / 2012-10-28 -================== - - * bytes(200).should.eql('200b') - -0.1.0 / 2012-07-04 -================== - - * add bytes to string conversion [yields] diff --git a/node_modules/body-parser/node_modules/bytes/LICENSE b/node_modules/body-parser/node_modules/bytes/LICENSE deleted file mode 100644 index 63e95a96..00000000 --- a/node_modules/body-parser/node_modules/bytes/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2012-2014 TJ Holowaychuk -Copyright (c) 2015 Jed Watson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/body-parser/node_modules/bytes/Readme.md b/node_modules/body-parser/node_modules/bytes/Readme.md deleted file mode 100644 index 5790e23e..00000000 --- a/node_modules/body-parser/node_modules/bytes/Readme.md +++ /dev/null @@ -1,152 +0,0 @@ -# Bytes utility - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa. - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```bash -$ npm install bytes -``` - -## Usage - -```js -var bytes = require('bytes'); -``` - -#### bytes(number|string value, [options]): number|string|null - -Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`. - -**Arguments** - -| Name | Type | Description | -|---------|----------|--------------------| -| value | `number`|`string` | Number value to format or string value to parse | -| options | `Object` | Conversion options for `format` | - -**Returns** - -| Name | Type | Description | -|---------|------------------|-------------------------------------------------| -| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. | - -**Example** - -```js -bytes(1024); -// output: '1KB' - -bytes('1KB'); -// output: 1024 -``` - -#### bytes.format(number value, [options]): string|null - -Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is - rounded. - -**Arguments** - -| Name | Type | Description | -|---------|----------|--------------------| -| value | `number` | Value in bytes | -| options | `Object` | Conversion options | - -**Options** - -| Property | Type | Description | -|-------------------|--------|-----------------------------------------------------------------------------------------| -| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. | -| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` | -| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. | -| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). | -| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. | - -**Returns** - -| Name | Type | Description | -|---------|------------------|-------------------------------------------------| -| results | `string`|`null` | Return null upon error. String value otherwise. | - -**Example** - -```js -bytes.format(1024); -// output: '1KB' - -bytes.format(1000); -// output: '1000B' - -bytes.format(1000, {thousandsSeparator: ' '}); -// output: '1 000B' - -bytes.format(1024 * 1.7, {decimalPlaces: 0}); -// output: '2KB' - -bytes.format(1024, {unitSeparator: ' '}); -// output: '1 KB' -``` - -#### bytes.parse(string|number value): number|null - -Parse the string value into an integer in bytes. If no unit is given, or `value` -is a number, it is assumed the value is in bytes. - -Supported units and abbreviations are as follows and are case-insensitive: - - * `b` for bytes - * `kb` for kilobytes - * `mb` for megabytes - * `gb` for gigabytes - * `tb` for terabytes - * `pb` for petabytes - -The units are in powers of two, not ten. This means 1kb = 1024b according to this parser. - -**Arguments** - -| Name | Type | Description | -|---------------|--------|--------------------| -| value | `string`|`number` | String to parse, or number in bytes. | - -**Returns** - -| Name | Type | Description | -|---------|-------------|-------------------------| -| results | `number`|`null` | Return null upon error. Value in bytes otherwise. | - -**Example** - -```js -bytes.parse('1KB'); -// output: 1024 - -bytes.parse('1024'); -// output: 1024 - -bytes.parse(1024); -// output: 1024 -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci -[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci -[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master -[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master -[downloads-image]: https://badgen.net/npm/dm/bytes -[downloads-url]: https://npmjs.org/package/bytes -[npm-image]: https://badgen.net/npm/v/bytes -[npm-url]: https://npmjs.org/package/bytes diff --git a/node_modules/body-parser/node_modules/bytes/index.js b/node_modules/body-parser/node_modules/bytes/index.js deleted file mode 100644 index 6f2d0f89..00000000 --- a/node_modules/body-parser/node_modules/bytes/index.js +++ /dev/null @@ -1,170 +0,0 @@ -/*! - * bytes - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015 Jed Watson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = bytes; -module.exports.format = format; -module.exports.parse = parse; - -/** - * Module variables. - * @private - */ - -var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g; - -var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/; - -var map = { - b: 1, - kb: 1 << 10, - mb: 1 << 20, - gb: 1 << 30, - tb: Math.pow(1024, 4), - pb: Math.pow(1024, 5), -}; - -var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; - -/** - * Convert the given value in bytes into a string or parse to string to an integer in bytes. - * - * @param {string|number} value - * @param {{ - * case: [string], - * decimalPlaces: [number] - * fixedDecimals: [boolean] - * thousandsSeparator: [string] - * unitSeparator: [string] - * }} [options] bytes options. - * - * @returns {string|number|null} - */ - -function bytes(value, options) { - if (typeof value === 'string') { - return parse(value); - } - - if (typeof value === 'number') { - return format(value, options); - } - - return null; -} - -/** - * Format the given value in bytes into a string. - * - * If the value is negative, it is kept as such. If it is a float, - * it is rounded. - * - * @param {number} value - * @param {object} [options] - * @param {number} [options.decimalPlaces=2] - * @param {number} [options.fixedDecimals=false] - * @param {string} [options.thousandsSeparator=] - * @param {string} [options.unit=] - * @param {string} [options.unitSeparator=] - * - * @returns {string|null} - * @public - */ - -function format(value, options) { - if (!Number.isFinite(value)) { - return null; - } - - var mag = Math.abs(value); - var thousandsSeparator = (options && options.thousandsSeparator) || ''; - var unitSeparator = (options && options.unitSeparator) || ''; - var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2; - var fixedDecimals = Boolean(options && options.fixedDecimals); - var unit = (options && options.unit) || ''; - - if (!unit || !map[unit.toLowerCase()]) { - if (mag >= map.pb) { - unit = 'PB'; - } else if (mag >= map.tb) { - unit = 'TB'; - } else if (mag >= map.gb) { - unit = 'GB'; - } else if (mag >= map.mb) { - unit = 'MB'; - } else if (mag >= map.kb) { - unit = 'KB'; - } else { - unit = 'B'; - } - } - - var val = value / map[unit.toLowerCase()]; - var str = val.toFixed(decimalPlaces); - - if (!fixedDecimals) { - str = str.replace(formatDecimalsRegExp, '$1'); - } - - if (thousandsSeparator) { - str = str.split('.').map(function (s, i) { - return i === 0 - ? s.replace(formatThousandsRegExp, thousandsSeparator) - : s - }).join('.'); - } - - return str + unitSeparator + unit; -} - -/** - * Parse the string value into an integer in bytes. - * - * If no unit is given, it is assumed the value is in bytes. - * - * @param {number|string} val - * - * @returns {number|null} - * @public - */ - -function parse(val) { - if (typeof val === 'number' && !isNaN(val)) { - return val; - } - - if (typeof val !== 'string') { - return null; - } - - // Test if the string passed is valid - var results = parseRegExp.exec(val); - var floatValue; - var unit = 'b'; - - if (!results) { - // Nothing could be extracted from the given string - floatValue = parseInt(val, 10); - unit = 'b' - } else { - // Retrieve the value and the unit - floatValue = parseFloat(results[1]); - unit = results[4].toLowerCase(); - } - - if (isNaN(floatValue)) { - return null; - } - - return Math.floor(map[unit] * floatValue); -} diff --git a/node_modules/body-parser/node_modules/bytes/package.json b/node_modules/body-parser/node_modules/bytes/package.json deleted file mode 100644 index f2b6a8b0..00000000 --- a/node_modules/body-parser/node_modules/bytes/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "bytes", - "description": "Utility to parse a string bytes to bytes and vice-versa", - "version": "3.1.2", - "author": "TJ Holowaychuk (http://tjholowaychuk.com)", - "contributors": [ - "Jed Watson ", - "Théo FIDRY " - ], - "license": "MIT", - "keywords": [ - "byte", - "bytes", - "utility", - "parse", - "parser", - "convert", - "converter" - ], - "repository": "visionmedia/bytes.js", - "devDependencies": { - "eslint": "7.32.0", - "eslint-plugin-markdown": "2.2.1", - "mocha": "9.2.0", - "nyc": "15.1.0" - }, - "files": [ - "History.md", - "LICENSE", - "Readme.md", - "index.js" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --check-leaks --reporter spec", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/node_modules/bytes/History.md b/node_modules/bytes/History.md index 13d463ab..d60ce0e6 100644 --- a/node_modules/bytes/History.md +++ b/node_modules/bytes/History.md @@ -1,3 +1,18 @@ +3.1.2 / 2022-01-27 +================== + + * Fix return value for un-parsable strings + +3.1.1 / 2021-11-15 +================== + + * Fix "thousandsSeparator" incorrecting formatting fractional part + +3.1.0 / 2019-01-22 +================== + + * Add petabyte (`pb`) support + 3.0.0 / 2017-08-31 ================== diff --git a/node_modules/bytes/Readme.md b/node_modules/bytes/Readme.md index 9b53745d..5790e23e 100644 --- a/node_modules/bytes/Readme.md +++ b/node_modules/bytes/Readme.md @@ -2,7 +2,7 @@ [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] -[![Build Status][travis-image]][travis-url] +[![Build Status][ci-image]][ci-url] [![Test Coverage][coveralls-image]][coveralls-url] Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa. @@ -23,6 +23,33 @@ $ npm install bytes var bytes = require('bytes'); ``` +#### bytes(number|string value, [options]): number|string|null + +Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`. + +**Arguments** + +| Name | Type | Description | +|---------|----------|--------------------| +| value | `number`|`string` | Number value to format or string value to parse | +| options | `Object` | Conversion options for `format` | + +**Returns** + +| Name | Type | Description | +|---------|------------------|-------------------------------------------------| +| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. | + +**Example** + +```js +bytes(1024); +// output: '1KB' + +bytes('1KB'); +// output: 1024 +``` + #### bytes.format(number value, [options]): string|null Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is @@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k |-------------------|--------|-----------------------------------------------------------------------------------------| | decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. | | fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` | -| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `.`... Default value to `''`. | +| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. | | unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). | | unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. | @@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k **Example** ```js -bytes(1024); +bytes.format(1024); // output: '1KB' -bytes(1000); +bytes.format(1000); // output: '1000B' -bytes(1000, {thousandsSeparator: ' '}); +bytes.format(1000, {thousandsSeparator: ' '}); // output: '1 000B' -bytes(1024 * 1.7, {decimalPlaces: 0}); +bytes.format(1024 * 1.7, {decimalPlaces: 0}); // output: '2KB' -bytes(1024, {unitSeparator: ' '}); +bytes.format(1024, {unitSeparator: ' '}); // output: '1 KB' - ``` #### bytes.parse(string|number value): number|null @@ -83,6 +109,7 @@ Supported units and abbreviations are as follows and are case-insensitive: * `mb` for megabytes * `gb` for gigabytes * `tb` for terabytes + * `pb` for petabytes The units are in powers of two, not ten. This means 1kb = 1024b according to this parser. @@ -101,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi **Example** ```js -bytes('1KB'); +bytes.parse('1KB'); // output: 1024 -bytes('1024'); +bytes.parse('1024'); // output: 1024 -bytes(1024); +bytes.parse(1024); // output: 1024 ``` -## License +## License [MIT](LICENSE) -[downloads-image]: https://img.shields.io/npm/dm/bytes.svg +[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci +[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci +[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master +[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master +[downloads-image]: https://badgen.net/npm/dm/bytes [downloads-url]: https://npmjs.org/package/bytes -[npm-image]: https://img.shields.io/npm/v/bytes.svg +[npm-image]: https://badgen.net/npm/v/bytes [npm-url]: https://npmjs.org/package/bytes -[travis-image]: https://img.shields.io/travis/visionmedia/bytes.js/master.svg -[travis-url]: https://travis-ci.org/visionmedia/bytes.js -[coveralls-image]: https://img.shields.io/coveralls/visionmedia/bytes.js/master.svg -[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master diff --git a/node_modules/bytes/index.js b/node_modules/bytes/index.js index 1e39afd1..6f2d0f89 100644 --- a/node_modules/bytes/index.js +++ b/node_modules/bytes/index.js @@ -30,10 +30,11 @@ var map = { kb: 1 << 10, mb: 1 << 20, gb: 1 << 30, - tb: ((1 << 30) * 1024) + tb: Math.pow(1024, 4), + pb: Math.pow(1024, 5), }; -var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i; +var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; /** * Convert the given value in bytes into a string or parse to string to an integer in bytes. @@ -93,7 +94,9 @@ function format(value, options) { var unit = (options && options.unit) || ''; if (!unit || !map[unit.toLowerCase()]) { - if (mag >= map.tb) { + if (mag >= map.pb) { + unit = 'PB'; + } else if (mag >= map.tb) { unit = 'TB'; } else if (mag >= map.gb) { unit = 'GB'; @@ -114,7 +117,11 @@ function format(value, options) { } if (thousandsSeparator) { - str = str.replace(formatThousandsRegExp, thousandsSeparator); + str = str.split('.').map(function (s, i) { + return i === 0 + ? s.replace(formatThousandsRegExp, thousandsSeparator) + : s + }).join('.'); } return str + unitSeparator + unit; @@ -155,5 +162,9 @@ function parse(val) { unit = results[4].toLowerCase(); } + if (isNaN(floatValue)) { + return null; + } + return Math.floor(map[unit] * floatValue); } diff --git a/node_modules/bytes/package.json b/node_modules/bytes/package.json index 21932965..f2b6a8b0 100644 --- a/node_modules/bytes/package.json +++ b/node_modules/bytes/package.json @@ -1,7 +1,7 @@ { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", - "version": "3.0.0", + "version": "3.1.2", "author": "TJ Holowaychuk (http://tjholowaychuk.com)", "contributors": [ "Jed Watson ", @@ -19,8 +19,10 @@ ], "repository": "visionmedia/bytes.js", "devDependencies": { - "mocha": "2.5.3", - "nyc": "10.3.2" + "eslint": "7.32.0", + "eslint-plugin-markdown": "2.2.1", + "mocha": "9.2.0", + "nyc": "15.1.0" }, "files": [ "History.md", @@ -32,8 +34,9 @@ "node": ">= 0.8" }, "scripts": { + "lint": "eslint .", "test": "mocha --check-leaks --reporter spec", - "test-ci": "nyc --reporter=text npm test", + "test-ci": "nyc --reporter=lcov --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" } } diff --git a/node_modules/colorette/package.json b/node_modules/colorette/package.json index ab90f9d4..d827eee1 100644 --- a/node_modules/colorette/package.json +++ b/node_modules/colorette/package.json @@ -1,6 +1,6 @@ { "name": "colorette", - "version": "2.0.19", + "version": "2.0.20", "type": "module", "main": "index.cjs", "module": "index.js", @@ -12,7 +12,8 @@ "./package.json": "./package.json", ".": { "require": "./index.cjs", - "import": "./index.js" + "import": "./index.js", + "types": "./index.d.ts" } }, "files": [ diff --git a/node_modules/combined-stream/License b/node_modules/combined-stream/License deleted file mode 100644 index 4804b7ab..00000000 --- a/node_modules/combined-stream/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Debuggable Limited - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/combined-stream/Readme.md b/node_modules/combined-stream/Readme.md deleted file mode 100644 index 9e367b5b..00000000 --- a/node_modules/combined-stream/Readme.md +++ /dev/null @@ -1,138 +0,0 @@ -# combined-stream - -A stream that emits multiple other streams one after another. - -**NB** Currently `combined-stream` works with streams version 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatibility with `combined-stream`. - -- [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module. - -- [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another. - -## Installation - -``` bash -npm install combined-stream -``` - -## Usage - -Here is a simple example that shows how you can use combined-stream to combine -two files into one: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create(); -combinedStream.append(fs.createReadStream('file1.txt')); -combinedStream.append(fs.createReadStream('file2.txt')); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -While the example above works great, it will pause all source streams until -they are needed. If you don't want that to happen, you can set `pauseStreams` -to `false`: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create({pauseStreams: false}); -combinedStream.append(fs.createReadStream('file1.txt')); -combinedStream.append(fs.createReadStream('file2.txt')); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -However, what if you don't have all the source streams yet, or you don't want -to allocate the resources (file descriptors, memory, etc.) for them right away? -Well, in that case you can simply provide a callback that supplies the stream -by calling a `next()` function: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create(); -combinedStream.append(function(next) { - next(fs.createReadStream('file1.txt')); -}); -combinedStream.append(function(next) { - next(fs.createReadStream('file2.txt')); -}); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -## API - -### CombinedStream.create([options]) - -Returns a new combined stream object. Available options are: - -* `maxDataSize` -* `pauseStreams` - -The effect of those options is described below. - -### combinedStream.pauseStreams = `true` - -Whether to apply back pressure to the underlaying streams. If set to `false`, -the underlaying streams will never be paused. If set to `true`, the -underlaying streams will be paused right after being appended, as well as when -`delayedStream.pipe()` wants to throttle. - -### combinedStream.maxDataSize = `2 * 1024 * 1024` - -The maximum amount of bytes (or characters) to buffer for all source streams. -If this value is exceeded, `combinedStream` emits an `'error'` event. - -### combinedStream.dataSize = `0` - -The amount of bytes (or characters) currently buffered by `combinedStream`. - -### combinedStream.append(stream) - -Appends the given `stream` to the combinedStream object. If `pauseStreams` is -set to `true, this stream will also be paused right away. - -`streams` can also be a function that takes one parameter called `next`. `next` -is a function that must be invoked in order to provide the `next` stream, see -example above. - -Regardless of how the `stream` is appended, combined-stream always attaches an -`'error'` listener to it, so you don't have to do that manually. - -Special case: `stream` can also be a String or Buffer. - -### combinedStream.write(data) - -You should not call this, `combinedStream` takes care of piping the appended -streams into itself for you. - -### combinedStream.resume() - -Causes `combinedStream` to start drain the streams it manages. The function is -idempotent, and also emits a `'resume'` event each time which usually goes to -the stream that is currently being drained. - -### combinedStream.pause(); - -If `combinedStream.pauseStreams` is set to `false`, this does nothing. -Otherwise a `'pause'` event is emitted, this goes to the stream that is -currently being drained, so you can use it to apply back pressure. - -### combinedStream.end(); - -Sets `combinedStream.writable` to false, emits an `'end'` event, and removes -all streams from the queue. - -### combinedStream.destroy(); - -Same as `combinedStream.end()`, except it emits a `'close'` event instead of -`'end'`. - -## License - -combined-stream is licensed under the MIT license. diff --git a/node_modules/combined-stream/lib/combined_stream.js b/node_modules/combined-stream/lib/combined_stream.js deleted file mode 100644 index 125f097f..00000000 --- a/node_modules/combined-stream/lib/combined_stream.js +++ /dev/null @@ -1,208 +0,0 @@ -var util = require('util'); -var Stream = require('stream').Stream; -var DelayedStream = require('delayed-stream'); - -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); - -CombinedStream.create = function(options) { - var combinedStream = new this(); - - options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } - - return combinedStream; -}; - -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; - -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; - } - - this._handleErrors(stream); - - if (this.pauseStreams) { - stream.pause(); - } - } - - this._streams.push(stream); - return this; -}; - -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; - -CombinedStream.prototype._getNext = function() { - this._currentStream = null; - - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call - } - - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; - -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); - - - if (typeof stream == 'undefined') { - this.end(); - return; - } - - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; - } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); -}; - -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; - - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } - - var value = stream; - this.write(value); - this._getNext(); -}; - -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; - -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; - -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; - -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; - -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; - -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; - -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } - - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; - -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } - - self.dataSize += stream.dataSize; - }); - - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; - -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; diff --git a/node_modules/combined-stream/package.json b/node_modules/combined-stream/package.json deleted file mode 100644 index 6982b6da..00000000 --- a/node_modules/combined-stream/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "author": "Felix Geisendörfer (http://debuggable.com/)", - "name": "combined-stream", - "description": "A stream that emits multiple other streams one after another.", - "version": "1.0.8", - "homepage": "https://github.com/felixge/node-combined-stream", - "repository": { - "type": "git", - "url": "git://github.com/felixge/node-combined-stream.git" - }, - "main": "./lib/combined_stream", - "scripts": { - "test": "node test/run.js" - }, - "engines": { - "node": ">= 0.8" - }, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "devDependencies": { - "far": "~0.0.7" - }, - "license": "MIT" -} diff --git a/node_modules/combined-stream/yarn.lock b/node_modules/combined-stream/yarn.lock deleted file mode 100644 index 7edf4184..00000000 --- a/node_modules/combined-stream/yarn.lock +++ /dev/null @@ -1,17 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -far@~0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7" - dependencies: - oop "0.0.3" - -oop@0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401" diff --git a/node_modules/commander/CHANGELOG.md b/node_modules/commander/CHANGELOG.md index 7dce779d..0b55881b 100644 --- a/node_modules/commander/CHANGELOG.md +++ b/node_modules/commander/CHANGELOG.md @@ -1,419 +1,440 @@ -2.20.3 / 2019-10-11 -================== +# Changelog - * Support Node.js 0.10 (Revert #1059) - * Ran "npm unpublish commander@2.20.2". There is no 2.20.2. +All notable changes to this project will be documented in this file. -2.20.1 / 2019-09-29 -================== +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). (Format adopted after v3.0.0.) - * Improve executable subcommand tracking - * Update dev dependencies + + -2.20.0 / 2019-04-02 -================== +## [7.2.0] (2021-03-26) - * fix: resolve symbolic links completely when hunting for subcommands (#935) - * Update index.d.ts (#930) - * Update Readme.md (#924) - * Remove --save option as it isn't required anymore (#918) - * Add link to the license file (#900) - * Added example of receiving args from options (#858) - * Added missing semicolon (#882) - * Add extension to .eslintrc (#876) - -2.19.0 / 2018-10-02 -================== +### Added - * Removed newline after Options and Commands headers (#864) - * Bugfix - Error output (#862) - * Fix to change default value to string (#856) - -2.18.0 / 2018-09-07 -================== - - * Standardize help output (#853) - * chmod 644 travis.yml (#851) - * add support for execute typescript subcommand via ts-node (#849) - -2.17.1 / 2018-08-07 -================== - - * Fix bug in command emit (#844) - -2.17.0 / 2018-08-03 -================== - - * fixed newline output after help information (#833) - * Fix to emit the action even without command (#778) - * npm update (#823) - -2.16.0 / 2018-06-29 -================== - - * Remove Makefile and `test/run` (#821) - * Make 'npm test' run on Windows (#820) - * Add badge to display install size (#807) - * chore: cache node_modules (#814) - * chore: remove Node.js 4 (EOL), add Node.js 10 (#813) - * fixed typo in readme (#812) - * Fix types (#804) - * Update eslint to resolve vulnerabilities in lodash (#799) - * updated readme with custom event listeners. (#791) - * fix tests (#794) - -2.15.0 / 2018-03-07 -================== - - * Update downloads badge to point to graph of downloads over time instead of duplicating link to npm - * Arguments description - -2.14.1 / 2018-02-07 -================== - - * Fix typing of help function - -2.14.0 / 2018-02-05 -================== - - * only register the option:version event once - * Fixes issue #727: Passing empty string for option on command is set to undefined - * enable eqeqeq rule - * resolves #754 add linter configuration to project - * resolves #560 respect custom name for version option - * document how to override the version flag - * document using options per command - -2.13.0 / 2018-01-09 -================== - - * Do not print default for --no- - * remove trailing spaces in command help - * Update CI's Node.js to LTS and latest version - * typedefs: Command and Option types added to commander namespace - -2.12.2 / 2017-11-28 -================== - - * fix: typings are not shipped - -2.12.1 / 2017-11-23 -================== - - * Move @types/node to dev dependency - -2.12.0 / 2017-11-22 -================== - - * add attributeName() method to Option objects - * Documentation updated for options with --no prefix - * typings: `outputHelp` takes a string as the first parameter - * typings: use overloads - * feat(typings): update to match js api - * Print default value in option help - * Fix translation error - * Fail when using same command and alias (#491) - * feat(typings): add help callback - * fix bug when description is add after command with options (#662) - * Format js code - * Rename History.md to CHANGELOG.md (#668) - * feat(typings): add typings to support TypeScript (#646) - * use current node - -2.11.0 / 2017-07-03 -================== - - * Fix help section order and padding (#652) - * feature: support for signals to subcommands (#632) - * Fixed #37, --help should not display first (#447) - * Fix translation errors. (#570) - * Add package-lock.json - * Remove engines - * Upgrade package version - * Prefix events to prevent conflicts between commands and options (#494) - * Removing dependency on graceful-readlink - * Support setting name in #name function and make it chainable - * Add .vscode directory to .gitignore (Visual Studio Code metadata) - * Updated link to ruby commander in readme files - -2.10.0 / 2017-06-19 -================== - - * Update .travis.yml. drop support for older node.js versions. - * Fix require arguments in README.md - * On SemVer you do not start from 0.0.1 - * Add missing semi colon in readme - * Add save param to npm install - * node v6 travis test - * Update Readme_zh-CN.md - * Allow literal '--' to be passed-through as an argument - * Test subcommand alias help - * link build badge to master branch - * Support the alias of Git style sub-command - * added keyword commander for better search result on npm - * Fix Sub-Subcommands - * test node.js stable - * Fixes TypeError when a command has an option called `--description` - * Update README.md to make it beginner friendly and elaborate on the difference between angled and square brackets. - * Add chinese Readme file +- TypeScript typing for `parent` property on `Command` ([#1475]) +- TypeScript typing for `.attributeName()` on `Option` ([#1483]) +- support information in package ([#1477]) -2.9.0 / 2015-10-13 -================== +### Changed - * Add option `isDefault` to set default subcommand #415 @Qix- - * Add callback to allow filtering or post-processing of help text #434 @djulien - * Fix `undefined` text in help information close #414 #416 @zhiyelee +- improvements to error messages, README, and tests +- update dependencies -2.8.1 / 2015-04-22 -================== +## [7.1.0] (2021-02-15) - * Back out `support multiline description` Close #396 #397 +### Added -2.8.0 / 2015-04-07 -================== +- support for named imports from ECMAScript modules ([#1440]) +- add `.cjs` to list of expected script file extensions ([#1449]) +- allow using option choices and variadic together ([#1454]) - * Add `process.execArg` support, execution args like `--harmony` will be passed to sub-commands #387 @DigitalIO @zhiyelee - * Fix bug in Git-style sub-commands #372 @zhiyelee - * Allow commands to be hidden from help #383 @tonylukasavage - * When git-style sub-commands are in use, yet none are called, display help #382 @claylo - * Add ability to specify arguments syntax for top-level command #258 @rrthomas - * Support multiline descriptions #208 @zxqfox +### Fixed -2.7.1 / 2015-03-11 -================== +- replace use of deprecated `process.mainModule` ([#1448]) +- regression for legacy `command('*')` and call when command line includes options ([#1464]) +- regression for `on('command:*', ...)` and call when command line includes unknown options ([#1464]) +- display best error for combination of unknown command and unknown option (i.e. unknown command) ([#1464]) - * Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367. +### Changed -2.7.0 / 2015-03-09 -================== +- make TypeScript typings tests stricter ([#1453]) +- improvements to README and tests - * Fix git-style bug when installed globally. Close #335 #349 @zhiyelee - * Fix collisions when option and first arg have same name. Close #346 #347 @tonylukasavage - * Add support for camelCase on `opts()`. Close #353 @nkzawa - * Add node.js 0.12 and io.js to travis.yml - * Allow RegEx options. #337 @palanik - * Fixes exit code when sub-command failing. Close #260 #332 @pirelenito - * git-style `bin` files in $PATH make sense. Close #196 #327 @zhiyelee +## [7.0.0] (2021-01-15) -2.6.0 / 2014-12-30 -================== +### Added - * added `Command#allowUnknownOption` method. Close #138 #318 @doozr @zhiyelee - * Add application description to the help msg. Close #112 @dalssoft +- `.enablePositionalOptions()` to let program and subcommand reuse same option ([#1427]) +- `.passThroughOptions()` to pass options through to other programs without needing `--` ([#1427]) +- `.allowExcessArguments(false)` to show an error message if there are too many command-arguments on command line for the action handler ([#1409]) +- `.configureOutput()` to modify use of stdout and stderr or customise display of errors ([#1387]) +- use `.addHelpText()` to add text before or after the built-in help, for just current command or also for all subcommands ([#1296]) +- enhance Option class ([#1331]) + - allow hiding options from help + - allow restricting option arguments to a list of choices + - allow setting how default value is shown in help +- `.createOption()` to support subclassing of automatically created options (like `.createCommand()`) ([#1380]) +- refactor the code generating the help into a separate public Help class ([#1365]) + - support sorting subcommands and options in help + - support specifying wrap width (columns) + - allow subclassing Help class + - allow configuring Help class without subclassing -2.5.1 / 2014-12-15 -================== +### Changed - * fixed two bugs incurred by variadic arguments. Close #291 @Quentin01 #302 @zhiyelee +- *Breaking:* options are stored safely by default, not as properties on the command ([#1409]) + - this especially affects accessing options on program, use `program.opts()` + - revert behaviour with `.storeOptionsAsProperties()` +- *Breaking:* action handlers are passed options and command separately ([#1409]) +- deprecated callback parameter to `.help()` and `.outputHelp()` (removed from README) ([#1296]) +- *Breaking:* errors now displayed using `process.stderr.write()` instead of `console.error()` +- deprecate `.on('--help')` (removed from README) ([#1296]) +- initialise the command description to empty string (previously undefined) ([#1365]) +- document and annotate deprecated routines ([#1349]) -2.5.0 / 2014-10-24 -================== +### Fixed - * add support for variadic arguments. Closes #277 @whitlockjc +- wrapping bugs in help ([#1365]) + - first line of command description was wrapping two characters early + - pad width calculation was not including help option and help command + - pad width calculation was including hidden options and commands +- improve backwards compatibility for custom command event listeners ([#1403]) + +### Deleted -2.4.0 / 2014-10-17 -================== +- *Breaking:* `.passCommandToAction()` ([#1409]) + - no longer needed as action handler is passed options and command +- *Breaking:* "extra arguments" parameter to action handler ([#1409]) + - if being used to detect excess arguments, there is now an error available by setting `.allowExcessArguments(false)` - * fixed a bug on executing the coercion function of subcommands option. Closes #270 - * added `Command.prototype.name` to retrieve command name. Closes #264 #266 @tonylukasavage - * added `Command.prototype.opts` to retrieve all the options as a simple object of key-value pairs. Closes #262 @tonylukasavage - * fixed a bug on subcommand name. Closes #248 @jonathandelgado - * fixed function normalize doesn’t honor option terminator. Closes #216 @abbr +### Migration Tips -2.3.0 / 2014-07-16 -================== +The biggest change is the parsed option values. Previously the options were stored by default as properties on the command object, and now the options are stored separately. - * add command alias'. Closes PR #210 - * fix: Typos. Closes #99 - * fix: Unused fs module. Closes #217 +If you wish to restore the old behaviour and get running quickly you can call `.storeOptionsAsProperties()`. +To allow you to move to the new code patterns incrementally, the action handler will be passed the command _twice_, +to match the new "options" and "command" parameters (see below). -2.2.0 / 2014-03-29 -================== +**program options** - * add passing of previous option value - * fix: support subcommands on windows. Closes #142 - * Now the defaultValue passed as the second argument of the coercion function. +Use the `.opts()` method to access the options. This is available on any command but is used most with the program. -2.1.0 / 2013-11-21 -================== +```js +program.option('-d, --debug'); +program.parse(); +// Old code before Commander 7 +if (program.debug) console.log(`Program name is ${program.name()}`); +``` - * add: allow cflag style option params, unit test, fixes #174 +```js +// New code +const options = program.opts(); +if (options.debug) console.log(`Program name is ${program.name()}`); +``` -2.0.0 / 2013-07-18 -================== +**action handler** - * remove input methods (.prompt, .confirm, etc) +The action handler gets passed a parameter for each command-argument you declared. Previously by default the next parameter was the command object with the options as properties. Now the next two parameters are instead the options and the command. If you +only accessed the options there may be no code changes required. -1.3.2 / 2013-07-18 -================== +```js +program + .command('compress ') + .option('-t, --trace') + // Old code before Commander 7 + .action((filename, cmd)) => { + if (cmd.trace) console.log(`Command name is ${cmd.name()}`); + }); +``` - * add support for sub-commands to co-exist with the original command +```js + // New code + .action((filename, options, command)) => { + if (options.trace) console.log(`Command name is ${command.name()}`); + }); +``` -1.3.1 / 2013-07-18 -================== +If you already set `.storeOptionsAsProperties(false)` you may still need to adjust your code. - * add quick .runningCommand hack so you can opt-out of other logic when running a sub command +```js +program + .command('compress ') + .storeOptionsAsProperties(false) + .option('-t, --trace') + // Old code before Commander 7 + .action((filename, command)) => { + if (command.opts().trace) console.log(`Command name is ${command.name()}`); + }); +``` -1.3.0 / 2013-07-09 -================== +```js + // New code + .action((filename, options, command)) => { + if (command.opts().trace) console.log(`Command name is ${command.name()}`); + }); +``` - * add EACCES error handling - * fix sub-command --help +## [7.0.0-2] (2020-12-14) -1.2.0 / 2013-06-13 -================== +(Released in 7.0.0) - * allow "-" hyphen as an option argument - * support for RegExp coercion +## [7.0.0-1] (2020-11-21) -1.1.1 / 2012-11-20 -================== +(Released in 7.0.0) - * add more sub-command padding - * fix .usage() when args are present. Closes #106 +## [7.0.0-0] (2020-10-25) -1.1.0 / 2012-11-16 -================== +(Released in 7.0.0) - * add git-style executable subcommand support. Closes #94 +## [6.2.1] (2020-12-13) -1.0.5 / 2012-10-09 -================== +### Fixed - * fix `--name` clobbering. Closes #92 - * fix examples/help. Closes #89 +- some tests failed if directory path included a space ([1390]) -1.0.4 / 2012-09-03 -================== +## [6.2.0] (2020-10-25) - * add `outputHelp()` method. +### Added -1.0.3 / 2012-08-30 -================== +- added 'tsx' file extension for stand-alone executable subcommands ([#1368]) +- documented second parameter to `.description()` to describe command arguments ([#1353]) +- documentation of special cases with options taking varying numbers of option-arguments ([#1332]) +- documentation for terminology ([#1361]) + +### Fixed - * remove invalid .version() defaulting +- add missing TypeScript definition for `.addHelpCommand()' ([#1375]) +- removed blank line after "Arguments:" in help, to match "Options:" and "Commands:" ([#1360]) -1.0.2 / 2012-08-24 -================== +### Changed - * add `--foo=bar` support [arv] - * fix password on node 0.8.8. Make backward compatible with 0.6 [focusaurus] +- update dependencies -1.0.1 / 2012-08-03 -================== +## [6.1.0] (2020-08-28) - * fix issue #56 - * fix tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode()) +### Added -1.0.0 / 2012-07-05 -================== +- include URL to relevant section of README for error for potential conflict between Command properties and option values ([#1306]) +- `.combineFlagAndOptionalValue(false)` to ease upgrade path from older versions of Commander ([#1326]) +- allow disabling the built-in help option using `.helpOption(false)` ([#1325]) +- allow just some arguments in `argumentDescription` to `.description()` ([#1323]) - * add support for optional option descriptions - * add defaulting of `.version()` to package.json's version +### Changed -0.6.1 / 2012-06-01 -================== +- tidy async test and remove lint override ([#1312]) - * Added: append (yes or no) on confirmation - * Added: allow node.js v0.7.x +### Fixed -0.6.0 / 2012-04-10 -================== +- executable subcommand launching when script path not known ([#1322]) - * Added `.prompt(obj, callback)` support. Closes #49 - * Added default support to .choose(). Closes #41 - * Fixed the choice example +## [6.0.0] (2020-07-21) -0.5.1 / 2011-12-20 -================== +### Added - * Fixed `password()` for recent nodes. Closes #36 +- add support for variadic options ([#1250]) +- allow options to be added with just a short flag ([#1256]) + - *Breaking* the option property has same case as flag. e.g. flag `-n` accessed as `opts().n` (previously uppercase) +- *Breaking* throw an error if there might be a clash between option name and a Command property, with advice on how to resolve ([#1275]) -0.5.0 / 2011-12-04 -================== +### Fixed - * Added sub-command option support [itay] +- Options which contain -no- in the middle of the option flag should not be treated as negatable. ([#1301]) -0.4.3 / 2011-12-04 -================== +## [6.0.0-0] (2020-06-20) - * Fixed custom help ordering. Closes #32 +(Released in 6.0.0) -0.4.2 / 2011-11-24 -================== +## [5.1.0] (2020-04-25) - * Added travis support - * Fixed: line-buffered input automatically trimmed. Closes #31 +### Added -0.4.1 / 2011-11-18 -================== +- support for multiple command aliases, the first of which is shown in the auto-generated help ([#531], [#1236]) +- configuration support in `addCommand()` for `hidden` and `isDefault` ([#1232]) - * Removed listening for "close" on --help +### Fixed -0.4.0 / 2011-11-15 -================== +- omit masked help flags from the displayed help ([#645], [#1247]) +- remove old short help flag when change help flags using `helpOption` ([#1248]) - * Added support for `--`. Closes #24 +### Changed -0.3.3 / 2011-11-14 -================== +- remove use of `arguments` to improve auto-generated help in editors ([#1235]) +- rename `.command()` configuration `noHelp` to `hidden` (but not remove old support) ([#1232]) +- improvements to documentation +- update dependencies +- update tested versions of node +- eliminate lint errors in TypeScript ([#1208]) - * Fixed: wait for close event when writing help info [Jerry Hamlet] +## [5.0.0] (2020-03-14) -0.3.2 / 2011-11-01 -================== +### Added - * Fixed long flag definitions with values [felixge] +* support for nested commands with action-handlers ([#1] [#764] [#1149]) +* `.addCommand()` for adding a separately configured command ([#764] [#1149]) +* allow a non-executable to be set as the default command ([#742] [#1149]) +* implicit help command when there are subcommands (previously only if executables) ([#1149]) +* customise implicit help command with `.addHelpCommand()` ([#1149]) +* display error message for unknown subcommand, by default ([#432] [#1088] [#1149]) +* display help for missing subcommand, by default ([#1088] [#1149]) +* combined short options as single argument may include boolean flags and value flag and value (e.g. `-a -b -p 80` can be written as `-abp80`) ([#1145]) +* `.parseOption()` includes short flag and long flag expansions ([#1145]) +* `.helpInformation()` returns help text as a string, previously a private routine ([#1169]) +* `.parse()` implicitly uses `process.argv` if arguments not specified ([#1172]) +* optionally specify where `.parse()` arguments "from", if not following node conventions ([#512] [#1172]) +* suggest help option along with unknown command error ([#1179]) +* TypeScript definition for `commands` property of `Command` ([#1184]) +* export `program` property ([#1195]) +* `createCommand` factory method to simplify subclassing ([#1191]) -0.3.1 / 2011-10-31 -================== +### Fixed - * Changed `--version` short flag to `-V` from `-v` - * Changed `.version()` so it's configurable [felixge] +* preserve argument order in subcommands ([#508] [#962] [#1138]) +* do not emit `command:*` for executable subcommands ([#809] [#1149]) +* action handler called whether or not there are non-option arguments ([#1062] [#1149]) +* combining option short flag and value in single argument now works for subcommands ([#1145]) +* only add implicit help command when it will not conflict with other uses of argument ([#1153] [#1149]) +* implicit help command works with command aliases ([#948] [#1149]) +* options are validated whether or not there is an action handler ([#1149]) -0.3.0 / 2011-10-31 -================== +### Changed - * Added support for long flags only. Closes #18 - -0.2.1 / 2011-10-24 -================== - - * "node": ">= 0.4.x < 0.7.0". Closes #20 - -0.2.0 / 2011-09-26 -================== - - * Allow for defaults that are not just boolean. Default peassignment only occurs for --no-*, optional, and required arguments. [Jim Isaacs] - -0.1.0 / 2011-08-24 -================== - - * Added support for custom `--help` output - -0.0.5 / 2011-08-18 -================== - - * Changed: when the user enters nothing prompt for password again - * Fixed issue with passwords beginning with numbers [NuckChorris] - -0.0.4 / 2011-08-15 -================== - - * Fixed `Commander#args` - -0.0.3 / 2011-08-15 -================== - - * Added default option value support - -0.0.2 / 2011-08-15 -================== - - * Added mask support to `Command#password(str[, mask], fn)` - * Added `Command#password(str, fn)` - -0.0.1 / 2010-01-03 -================== - - * Initial release +* *Breaking* `.args` contains command arguments with just recognised options removed ([#1032] [#1138]) +* *Breaking* display error if required argument for command is missing ([#995] [#1149]) +* tighten TypeScript definition of custom option processing function passed to `.option()` ([#1119]) +* *Breaking* `.allowUnknownOption()` ([#802] [#1138]) + * unknown options included in arguments passed to command action handler + * unknown options included in `.args` +* only recognised option short flags and long flags are expanded (e.g. `-ab` or `--foo=bar`) ([#1145]) +* *Breaking* `.parseOptions()` ([#1138]) + * `args` in returned result renamed `operands` and does not include anything after first unknown option + * `unknown` in returned result has arguments after first unknown option including operands, not just options and values +* *Breaking* `.on('command:*', callback)` and other command events passed (changed) results from `.parseOptions`, i.e. operands and unknown ([#1138]) +* refactor Option from prototype to class ([#1133]) +* refactor Command from prototype to class ([#1159]) +* changes to error handling ([#1165]) + * throw for author error, not just display message + * preflight for variadic error + * add tips to missing subcommand executable +* TypeScript fluent return types changed to be more subclass friendly, return `this` rather than `Command` ([#1180]) +* `.parseAsync` returns `Promise` to be consistent with `.parse()` ([#1180]) +* update dependencies + +### Removed + +* removed EventEmitter from TypeScript definition for Command, eliminating implicit peer dependency on `@types/node` ([#1146]) +* removed private function `normalize` (the functionality has been integrated into `parseOptions`) ([#1145]) +* `parseExpectedArgs` is now private ([#1149]) + +### Migration Tips + +If you use `.on('command:*')` or more complicated tests to detect an unrecognised subcommand, you may be able to delete the code and rely on the default behaviour. + +If you use `program.args` or more complicated tests to detect a missing subcommand, you may be able to delete the code and rely on the default behaviour. + +If you use `.command('*')` to add a default command, you may be be able to switch to `isDefault:true` with a named command. + +If you want to continue combining short options with optional values as though they were boolean flags, set `combineFlagAndOptionalValue(false)` +to expand `-fb` to `-f -b` rather than `-f b`. + +## [5.0.0-4] (2020-03-03) + +(Released in 5.0.0) + +## [5.0.0-3] (2020-02-20) + +(Released in 5.0.0) + +## [5.0.0-2] (2020-02-10) + +(Released in 5.0.0) + +## [5.0.0-1] (2020-02-08) + +(Released in 5.0.0) + +## [5.0.0-0] (2020-02-02) + +(Released in 5.0.0) + +## Older versions + +* [4.x](./changelogs/CHANGELOG-4.md) +* [3.x](./changelogs/CHANGELOG-3.md) +* [2.x](./changelogs/CHANGELOG-2.md) +* [1.x](./changelogs/CHANGELOG-1.md) +* [0.x](./changelogs/CHANGELOG-0.md) + +[#1]: https://github.com/tj/commander.js/issues/1 +[#432]: https://github.com/tj/commander.js/issues/432 +[#508]: https://github.com/tj/commander.js/issues/508 +[#512]: https://github.com/tj/commander.js/issues/512 +[#531]: https://github.com/tj/commander.js/issues/531 +[#645]: https://github.com/tj/commander.js/issues/645 +[#742]: https://github.com/tj/commander.js/issues/742 +[#764]: https://github.com/tj/commander.js/issues/764 +[#802]: https://github.com/tj/commander.js/issues/802 +[#809]: https://github.com/tj/commander.js/issues/809 +[#948]: https://github.com/tj/commander.js/issues/948 +[#962]: https://github.com/tj/commander.js/issues/962 +[#995]: https://github.com/tj/commander.js/issues/995 +[#1032]: https://github.com/tj/commander.js/issues/1032 +[#1062]: https://github.com/tj/commander.js/pull/1062 +[#1088]: https://github.com/tj/commander.js/issues/1088 +[#1119]: https://github.com/tj/commander.js/pull/1119 +[#1133]: https://github.com/tj/commander.js/pull/1133 +[#1138]: https://github.com/tj/commander.js/pull/1138 +[#1145]: https://github.com/tj/commander.js/pull/1145 +[#1146]: https://github.com/tj/commander.js/pull/1146 +[#1149]: https://github.com/tj/commander.js/pull/1149 +[#1153]: https://github.com/tj/commander.js/issues/1153 +[#1159]: https://github.com/tj/commander.js/pull/1159 +[#1165]: https://github.com/tj/commander.js/pull/1165 +[#1169]: https://github.com/tj/commander.js/pull/1169 +[#1172]: https://github.com/tj/commander.js/pull/1172 +[#1179]: https://github.com/tj/commander.js/pull/1179 +[#1180]: https://github.com/tj/commander.js/pull/1180 +[#1184]: https://github.com/tj/commander.js/pull/1184 +[#1191]: https://github.com/tj/commander.js/pull/1191 +[#1195]: https://github.com/tj/commander.js/pull/1195 +[#1208]: https://github.com/tj/commander.js/pull/1208 +[#1232]: https://github.com/tj/commander.js/pull/1232 +[#1235]: https://github.com/tj/commander.js/pull/1235 +[#1236]: https://github.com/tj/commander.js/pull/1236 +[#1247]: https://github.com/tj/commander.js/pull/1247 +[#1248]: https://github.com/tj/commander.js/pull/1248 +[#1250]: https://github.com/tj/commander.js/pull/1250 +[#1256]: https://github.com/tj/commander.js/pull/1256 +[#1275]: https://github.com/tj/commander.js/pull/1275 +[#1296]: https://github.com/tj/commander.js/pull/1296 +[#1301]: https://github.com/tj/commander.js/issues/1301 +[#1306]: https://github.com/tj/commander.js/pull/1306 +[#1312]: https://github.com/tj/commander.js/pull/1312 +[#1322]: https://github.com/tj/commander.js/pull/1322 +[#1323]: https://github.com/tj/commander.js/pull/1323 +[#1325]: https://github.com/tj/commander.js/pull/1325 +[#1326]: https://github.com/tj/commander.js/pull/1326 +[#1331]: https://github.com/tj/commander.js/pull/1331 +[#1332]: https://github.com/tj/commander.js/pull/1332 +[#1349]: https://github.com/tj/commander.js/pull/1349 +[#1353]: https://github.com/tj/commander.js/pull/1353 +[#1360]: https://github.com/tj/commander.js/pull/1360 +[#1361]: https://github.com/tj/commander.js/pull/1361 +[#1365]: https://github.com/tj/commander.js/pull/1365 +[#1368]: https://github.com/tj/commander.js/pull/1368 +[#1375]: https://github.com/tj/commander.js/pull/1375 +[#1380]: https://github.com/tj/commander.js/pull/1380 +[#1387]: https://github.com/tj/commander.js/pull/1387 +[#1390]: https://github.com/tj/commander.js/pull/1390 +[#1403]: https://github.com/tj/commander.js/pull/1403 +[#1409]: https://github.com/tj/commander.js/pull/1409 +[#1427]: https://github.com/tj/commander.js/pull/1427 +[#1440]: https://github.com/tj/commander.js/pull/1440 +[#1448]: https://github.com/tj/commander.js/pull/1448 +[#1449]: https://github.com/tj/commander.js/pull/1449 +[#1453]: https://github.com/tj/commander.js/pull/1453 +[#1454]: https://github.com/tj/commander.js/pull/1454 +[#1464]: https://github.com/tj/commander.js/pull/1464 +[#1475]: https://github.com/tj/commander.js/pull/1475 +[#1477]: https://github.com/tj/commander.js/pull/1477 +[#1483]: https://github.com/tj/commander.js/pull/1483 + +[Unreleased]: https://github.com/tj/commander.js/compare/master...develop +[7.2.0]: https://github.com/tj/commander.js/compare/v7.1.0...v7.2.0 +[7.1.0]: https://github.com/tj/commander.js/compare/v7.0.0...v7.1.0 +[7.0.0]: https://github.com/tj/commander.js/compare/v6.2.1...v7.0.0 +[7.0.0-2]: https://github.com/tj/commander.js/compare/v7.0.0-1...v7.0.0-2 +[7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-0...v7.0.0-1 +[7.0.0-0]: https://github.com/tj/commander.js/compare/v6.2.0...v7.0.0-0 +[6.2.1]: https://github.com/tj/commander.js/compare/v6.2.0..v6.2.1 +[6.2.0]: https://github.com/tj/commander.js/compare/v6.1.0..v6.2.0 +[6.1.0]: https://github.com/tj/commander.js/compare/v6.0.0..v6.1.0 +[6.0.0]: https://github.com/tj/commander.js/compare/v5.1.0..v6.0.0 +[6.0.0-0]: https://github.com/tj/commander.js/compare/v5.1.0..v6.0.0-0 +[5.1.0]: https://github.com/tj/commander.js/compare/v5.0.0..v5.1.0 +[5.0.0]: https://github.com/tj/commander.js/compare/v4.1.1..v5.0.0 +[5.0.0-4]: https://github.com/tj/commander.js/compare/v5.0.0-3..v5.0.0-4 +[5.0.0-3]: https://github.com/tj/commander.js/compare/v5.0.0-2..v5.0.0-3 +[5.0.0-2]: https://github.com/tj/commander.js/compare/v5.0.0-1..v5.0.0-2 +[5.0.0-1]: https://github.com/tj/commander.js/compare/v5.0.0-0..v5.0.0-1 +[5.0.0-0]: https://github.com/tj/commander.js/compare/v4.1.1..v5.0.0-0 diff --git a/node_modules/commander/Readme.md b/node_modules/commander/Readme.md index c846e7a2..d2a88a7b 100644 --- a/node_modules/commander/Readme.md +++ b/node_modules/commander/Readme.md @@ -1,428 +1,917 @@ # Commander.js - -[![Build Status](https://api.travis-ci.org/tj/commander.js.svg?branch=master)](http://travis-ci.org/tj/commander.js) +[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) [![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) [![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) [![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) -[![Join the chat at https://gitter.im/tj/commander.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tj/commander.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - - The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/commander-rb/commander). - [API documentation](http://tj.github.com/commander.js/) +The complete solution for [node.js](http://nodejs.org) command-line interfaces. + +Read this in other languages: English | [简体中文](./Readme_zh-CN.md) + +- [Commander.js](#commanderjs) + - [Installation](#installation) + - [Declaring _program_ variable](#declaring-program-variable) + - [Options](#options) + - [Common option types, boolean and value](#common-option-types-boolean-and-value) + - [Default option value](#default-option-value) + - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) + - [Required option](#required-option) + - [Variadic option](#variadic-option) + - [Version option](#version-option) + - [More configuration](#more-configuration) + - [Custom option processing](#custom-option-processing) + - [Commands](#commands) + - [Specify the argument syntax](#specify-the-argument-syntax) + - [Action handler](#action-handler) + - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) + - [Automated help](#automated-help) + - [Custom help](#custom-help) + - [Display help from code](#display-help-from-code) + - [.usage and .name](#usage-and-name) + - [.helpOption(flags, description)](#helpoptionflags-description) + - [.addHelpCommand()](#addhelpcommand) + - [More configuration](#more-configuration-1) + - [Custom event listeners](#custom-event-listeners) + - [Bits and pieces](#bits-and-pieces) + - [.parse() and .parseAsync()](#parse-and-parseasync) + - [Parsing Configuration](#parsing-configuration) + - [Legacy options as properties](#legacy-options-as-properties) + - [TypeScript](#typescript) + - [createCommand()](#createcommand) + - [Node options such as `--harmony`](#node-options-such-as---harmony) + - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) + - [Override exit and output handling](#override-exit-and-output-handling) + - [Additional documentation](#additional-documentation) + - [Examples](#examples) + - [Support](#support) + - [Commander for enterprise](#commander-for-enterprise) + +For information about terms used in this document see: [terminology](./docs/terminology.md) ## Installation - $ npm install commander +```bash +npm install commander +``` -## Option parsing +## Declaring _program_ variable -Options with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options. +Commander exports a global object which is convenient for quick programs. +This is used in the examples in this README for brevity. ```js -#!/usr/bin/env node +const { program } = require('commander'); +program.version('0.0.1'); +``` + +For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use. + +```js +const { Command } = require('commander'); +const program = new Command(); +program.version('0.0.1'); +``` + +For named imports in ECMAScript modules, import from `commander/esm.mjs`. + +```js +// index.mjs +import { Command } from 'commander/esm.mjs'; +const program = new Command(); +``` + +And in TypeScript: + +```ts +// index.ts +import { Command } from 'commander'; +const program = new Command(); +``` + + +## Options -/** - * Module dependencies. - */ +Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). -var program = require('commander'); +The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc. +Multiple short flags may optionally be combined in a single argument following the dash: boolean flags, followed by a single option taking a value (possibly followed by the value). +For example `-a -b -p 80` may be written as `-ab -p80` or even `-abp80`. + +You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. + +By default options on the command line are not positional, and can be specified before or after other arguments. + +### Common option types, boolean and value + +The two most used option types are a boolean option, and an option which takes its value +from the following argument (declared with angle brackets like `--expect `). Both are `undefined` unless specified on command line. + +Example file: [options-common.js](./examples/options-common.js) + +```js program - .version('0.1.0') - .option('-p, --peppers', 'Add peppers') - .option('-P, --pineapple', 'Add pineapple') - .option('-b, --bbq-sauce', 'Add bbq sauce') - .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble') - .parse(process.argv); + .option('-d, --debug', 'output extra debugging') + .option('-s, --small', 'small pizza size') + .option('-p, --pizza-type ', 'flavour of pizza'); -console.log('you ordered a pizza with:'); -if (program.peppers) console.log(' - peppers'); -if (program.pineapple) console.log(' - pineapple'); -if (program.bbqSauce) console.log(' - bbq'); -console.log(' - %s cheese', program.cheese); +program.parse(process.argv); + +const options = program.opts(); +if (options.debug) console.log(options); +console.log('pizza details:'); +if (options.small) console.log('- small pizza size'); +if (options.pizzaType) console.log(`- ${options.pizzaType}`); ``` -Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc. +```bash +$ pizza-options -d +{ debug: true, small: undefined, pizzaType: undefined } +pizza details: +$ pizza-options -p +error: option '-p, --pizza-type ' argument missing +$ pizza-options -ds -p vegetarian +{ debug: true, small: true, pizzaType: 'vegetarian' } +pizza details: +- small pizza size +- vegetarian +$ pizza-options --pizza-type=cheese +pizza details: +- cheese +``` + +`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. + +### Default option value + +You can specify a default value for an option which takes a value. -Note that multi-word options starting with `--no` prefix negate the boolean value of the following word. For example, `--no-sauce` sets the value of `program.sauce` to false. +Example file: [options-defaults.js](./examples/options-defaults.js) ```js -#!/usr/bin/env node +program + .option('-c, --cheese ', 'add the specified type of cheese', 'blue'); + +program.parse(); + +console.log(`cheese: ${program.opts().cheese}`); +``` + +```bash +$ pizza-options +cheese: blue +$ pizza-options --cheese stilton +cheese: stilton +``` + +### Other option types, negatable boolean and boolean|value + +You can define a boolean option long name with a leading `no-` to set the option value to false when used. +Defined alone this also makes the option true by default. -/** - * Module dependencies. - */ +If you define `--foo` first, adding `--no-foo` does not change the default value from what it would +otherwise be. You can specify a default boolean value for a boolean option and it can be overridden on command line. -var program = require('commander'); +Example file: [options-negatable.js](./examples/options-negatable.js) +```js program .option('--no-sauce', 'Remove sauce') - .parse(process.argv); + .option('--cheese ', 'cheese flavour', 'mozzarella') + .option('--no-cheese', 'plain with no cheese') + .parse(); + +const options = program.opts(); +const sauceStr = options.sauce ? 'sauce' : 'no sauce'; +const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; +console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); +``` + +```bash +$ pizza-options +You ordered a pizza with sauce and mozzarella cheese +$ pizza-options --sauce +error: unknown option '--sauce' +$ pizza-options --cheese=blue +You ordered a pizza with sauce and blue cheese +$ pizza-options --no-sauce --no-cheese +You ordered a pizza with no sauce and no cheese +``` + +You can specify an option which may be used as a boolean option but may optionally take an option-argument +(declared with square brackets like `--optional [value]`). + +Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) + +```js +program + .option('-c, --cheese [type]', 'Add cheese with optional type'); + +program.parse(process.argv); + +const options = program.opts(); +if (options.cheese === undefined) console.log('no cheese'); +else if (options.cheese === true) console.log('add cheese'); +else console.log(`add cheese type ${options.cheese}`); +``` -console.log('you ordered a pizza'); -if (program.sauce) console.log(' with sauce'); -else console.log(' without sauce'); +```bash +$ pizza-options +no cheese +$ pizza-options --cheese +add cheese +$ pizza-options --cheese mozzarella +add cheese type mozzarella ``` -To get string arguments from options you will need to use angle brackets <> for required inputs or square brackets [] for optional inputs. +For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). -e.g. ```.option('-m --myarg [myVar]', 'my super cool description')``` +### Required option -Then to access the input if it was passed in. +You may specify a required (mandatory) option using `.requiredOption`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option` in format, taking flags and description, and optional default value or custom processing. -e.g. ```var myInput = program.myarg``` +Example file: [options-required.js](./examples/options-required.js) -**NOTE**: If you pass a argument without using brackets the example above will return true and not the value passed in. +```js +program + .requiredOption('-c, --cheese ', 'pizza must have cheese'); +program.parse(); +``` -## Version option +```bash +$ pizza +error: required option '-c, --cheese ' not specified +``` -Calling the `version` implicitly adds the `-V` and `--version` options to the command. -When either of these options is present, the command prints the version number and exits. +### Variadic option - $ ./examples/pizza -V - 0.0.1 +You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you +can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments +are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value +is specified in the same argument as the option then no further values are read. -If you want your program to respond to the `-v` option instead of the `-V` option, simply pass custom flags to the `version` method using the same syntax as the `option` method. +Example file: [options-variadic.js](./examples/options-variadic.js) ```js program - .version('0.0.1', '-v, --version') + .option('-n, --number ', 'specify numbers') + .option('-l, --letter [letters...]', 'specify letters'); + +program.parse(); + +console.log('Options: ', program.opts()); +console.log('Remaining arguments: ', program.args); +``` + +```bash +$ collect -n 1 2 3 --letter a b c +Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } +Remaining arguments: [] +$ collect --letter=A -n80 operand +Options: { number: [ '80' ], letter: [ 'A' ] } +Remaining arguments: [ 'operand' ] +$ collect --letter -n 1 -n 2 3 -- operand +Options: { number: [ '1', '2', '3' ], letter: true } +Remaining arguments: [ 'operand' ] ``` -The version flags can be named anything, but the long option is required. +For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). + +### Version option + +The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits. + +```js +program.version('0.0.1'); +``` -## Command-specific options +```bash +$ ./examples/pizza -V +0.0.1 +``` -You can attach options to a command. +You may change the flags and description by passing additional parameters to the `version` method, using +the same syntax for flags as the `option` method. ```js -#!/usr/bin/env node +program.version('0.0.1', '-v, --vers', 'output the current version'); +``` + +### More configuration -var program = require('commander'); +You can add most options using the `.option()` method, but there are some additional features available +by constructing an `Option` explicitly for less common cases. +Example file: [options-extra.js](./examples/options-extra.js) + +```js program - .command('rm ') - .option('-r, --recursive', 'Remove recursively') - .action(function (dir, cmd) { - console.log('remove ' + dir + (cmd.recursive ? ' recursively' : '')) - }) + .addOption(new Option('-s, --secret').hideHelp()) + .addOption(new Option('-t, --timeout ', 'timeout in seconds').default(60, 'one minute')) + .addOption(new Option('-d, --drink ', 'drink size').choices(['small', 'medium', 'large'])); +``` -program.parse(process.argv) +```bash +$ extra --help +Usage: help [options] + +Options: + -t, --timeout timeout in seconds (default: one minute) + -d, --drink drink cup size (choices: "small", "medium", "large") + -h, --help display help for command + +$ extra --drink huge +error: option '-d, --drink ' argument 'huge' is invalid. Allowed choices are small, medium, large. ``` -A command's options are validated when the command is used. Any unknown options will be reported as an error. However, if an action-based command does not define an action, then the options are not validated. +### Custom option processing + +You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, +the user specified option-argument and the previous value for the option. It returns the new value for the option. -## Coercion +This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. + +You can optionally specify the default/starting value for the option after the function parameter. + +Example file: [options-custom-processing.js](./examples/options-custom-processing.js) ```js -function range(val) { - return val.split('..').map(Number); +function myParseInt(value, dummyPrevious) { + // parseInt takes a string and a radix + const parsedValue = parseInt(value, 10); + if (isNaN(parsedValue)) { + throw new commander.InvalidOptionArgumentError('Not a number.'); + } + return parsedValue; } -function list(val) { - return val.split(','); +function increaseVerbosity(dummyValue, previous) { + return previous + 1; } -function collect(val, memo) { - memo.push(val); - return memo; +function collect(value, previous) { + return previous.concat([value]); } -function increaseVerbosity(v, total) { - return total + 1; +function commaSeparatedList(value, dummyPrevious) { + return value.split(','); } program - .version('0.1.0') - .usage('[options] ') - .option('-i, --integer ', 'An integer argument', parseInt) - .option('-f, --float ', 'A float argument', parseFloat) - .option('-r, --range ..', 'A range', range) - .option('-l, --list ', 'A list', list) - .option('-o, --optional [value]', 'An optional value') - .option('-c, --collect [value]', 'A repeatable value', collect, []) - .option('-v, --verbose', 'A value that can be increased', increaseVerbosity, 0) - .parse(process.argv); - -console.log(' int: %j', program.integer); -console.log(' float: %j', program.float); -console.log(' optional: %j', program.optional); -program.range = program.range || []; -console.log(' range: %j..%j', program.range[0], program.range[1]); -console.log(' list: %j', program.list); -console.log(' collect: %j', program.collect); -console.log(' verbosity: %j', program.verbose); -console.log(' args: %j', program.args); -``` - -## Regular Expression -```js -program - .version('0.1.0') - .option('-s --size ', 'Pizza size', /^(large|medium|small)$/i, 'medium') - .option('-d --drink [drink]', 'Drink', /^(coke|pepsi|izze)$/i) - .parse(process.argv); + .option('-f, --float ', 'float argument', parseFloat) + .option('-i, --integer ', 'integer argument', myParseInt) + .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) + .option('-c, --collect ', 'repeatable value', collect, []) + .option('-l, --list ', 'comma separated list', commaSeparatedList) +; + +program.parse(); + +const options = program.opts(); +if (options.float !== undefined) console.log(`float: ${options.float}`); +if (options.integer !== undefined) console.log(`integer: ${options.integer}`); +if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); +if (options.collect.length > 0) console.log(options.collect); +if (options.list !== undefined) console.log(options.list); +``` -console.log(' size: %j', program.size); -console.log(' drink: %j', program.drink); +```bash +$ custom -f 1e2 +float: 100 +$ custom --integer 2 +integer: 2 +$ custom -v -v -v +verbose: 3 +$ custom -c a -c b -c c +[ 'a', 'b', 'c' ] +$ custom --list x,y,z +[ 'x', 'y', 'z' ] ``` -## Variadic arguments +## Commands - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you have to - append `...` to the argument name. Here is an example: +You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)). -```js -#!/usr/bin/env node +In the first parameter to `.command()` you specify the command name and any command-arguments. The arguments may be `` or `[optional]`, and the last argument may also be `variadic...`. -/** - * Module dependencies. - */ +You can use `.addCommand()` to add an already configured subcommand to the program. -var program = require('commander'); +For example: +```js +// Command implemented using action handler (description is supplied separately to `.command`) +// Returns new command for configuring. program - .version('0.1.0') - .command('rmdir [otherDirs...]') - .action(function (dir, otherDirs) { - console.log('rmdir %s', dir); - if (otherDirs) { - otherDirs.forEach(function (oDir) { - console.log('rmdir %s', oDir); - }); - } + .command('clone [destination]') + .description('clone a repository into a newly created directory') + .action((source, destination) => { + console.log('clone command called'); }); -program.parse(process.argv); +// Command implemented using stand-alone executable file (description is second parameter to `.command`) +// Returns `this` for adding more commands. +program + .command('start ', 'start named service') + .command('stop [service]', 'stop named service, or all if no name supplied'); + +// Command prepared separately. +// Returns `this` for adding more commands. +program + .addCommand(build.makeBuildCommand()); ``` - An `Array` is used for the value of a variadic argument. This applies to `program.args` as well as the argument passed - to your action as demonstrated above. +Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will +remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other +subcommand is specified ([example](./examples/defaultCommand.js)). + +### Specify the argument syntax -## Specify the argument syntax +You use `.arguments` to specify the expected command-arguments for the top-level command, and for subcommands they are usually +included in the `.command` call. Angled brackets (e.g. ``) indicate required command-arguments. +Square brackets (e.g. `[optional]`) indicate optional command-arguments. +You can optionally describe the arguments in the help by supplying a hash as second parameter to `.description()`. + +Example file: [arguments.js](./examples/arguments.js) ```js -#!/usr/bin/env node +program + .version('0.1.0') + .arguments(' [password]') + .description('test command', { + username: 'user to login', + password: 'password for user, if required' + }) + .action((username, password) => { + console.log('username:', username); + console.log('environment:', password || 'no password given'); + }); +``` -var program = require('commander'); + The last argument of a command can be variadic, and only the last argument. To make an argument variadic you + append `...` to the argument name. For example: +```js program .version('0.1.0') - .arguments(' [env]') - .action(function (cmd, env) { - cmdValue = cmd; - envValue = env; + .command('rmdir ') + .action(function (dirs) { + dirs.forEach((dir) => { + console.log('rmdir %s', dir); + }); }); +``` -program.parse(process.argv); +The variadic argument is passed to the action handler as an array. -if (typeof cmdValue === 'undefined') { - console.error('no command given!'); - process.exit(1); -} -console.log('command:', cmdValue); -console.log('environment:', envValue || "no environment given"); +### Action handler + +The action handler gets passed a parameter for each command-argument you declared, and two additional parameters +which are the parsed options and the command object itself. + +Example file: [thank.js](./examples/thank.js) + +```js +program + .arguments('') + .option('-t, --title ', 'title to use before name') + .option('-d, --debug', 'display some debugging') + .action((name, options, command) => { + if (options.debug) { + console.error('Called %s with options %o', command.name(), options); + } + const title = options.title ? `${options.title} ` : ''; + console.log(`Thank-you ${title}${name}`); + }); ``` -Angled brackets (e.g. ``) indicate required input. Square brackets (e.g. `[env]`) indicate optional input. -## Git-style sub-commands +You may supply an `async` action handler, in which case you call `.parseAsync` rather than `.parse`. ```js -// file: ./examples/pm -var program = require('commander'); +async function run() { /* code goes here */ } + +async function main() { + program + .command('run') + .action(run); + await program.parseAsync(process.argv); +} +``` +A command's options and arguments on the command line are validated when the command is used. Any unknown options or missing arguments will be reported as an error. You can suppress the unknown option checks with `.allowUnknownOption()`. By default it is not an error to +pass more arguments than declared, but you can make this an error with `.allowExcessArguments(false)`. + +### Stand-alone executable (sub)commands + +When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands. +Commander will search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-subcommand`, like `pm-install`, `pm-search`. +You can specify a custom name with the `executableFile` configuration option. + +You handle the options for an executable (sub)command in the executable, and don't declare them at the top-level. + +Example file: [pm](./examples/pm) + +```js program .version('0.1.0') .command('install [name]', 'install one or more packages') .command('search [query]', 'search with optional query') - .command('list', 'list packages installed', {isDefault: true}) - .parse(process.argv); -``` - -When `.command()` is invoked with a description argument, no `.action(callback)` should be called to handle sub-commands, otherwise there will be an error. This tells commander that you're going to use separate executables for sub-commands, much like `git(1)` and other popular tools. -The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`. + .command('update', 'update installed packages', { executableFile: 'myUpdateSubCommand' }) + .command('list', 'list packages installed', { isDefault: true }); -Options can be passed with the call to `.command()`. Specifying `true` for `opts.noHelp` will remove the subcommand from the generated help output. Specifying `true` for `opts.isDefault` will run the subcommand if no other subcommand is specified. +program.parse(process.argv); +``` If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. -### `--harmony` - -You can enable `--harmony` option in two ways: -* Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. Note some os version don’t support this pattern. -* Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process. +## Automated help -## Automated --help +The help information is auto-generated based on the information commander already knows about your program. The default +help option is `-h,--help`. - The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free: +Example file: [pizza](./examples/pizza) -``` -$ ./examples/pizza --help +```bash +$ node ./examples/pizza --help Usage: pizza [options] -An application for pizzas ordering +An application for pizza ordering Options: - -h, --help output usage information - -V, --version output the version number -p, --peppers Add peppers - -P, --pineapple Add pineapple - -b, --bbq Add bbq sauce - -c, --cheese Add the specified type of cheese [marble] + -c, --cheese Add the specified type of cheese (default: "marble") -C, --no-cheese You do not want any cheese + -h, --help display help for command ``` -## Custom help +A `help` command is added by default if your command has subcommands. It can be used alone, or with a subcommand name to show +further help for the subcommand. These are effectively the same if the `shell` program has implicit help: - You can display arbitrary `-h, --help` information - by listening for "--help". Commander will automatically - exit once you are done so that the remainder of your program - does not execute causing undesired behaviors, for example - in the following executable "stuff" will not output when - `--help` is used. +```bash +shell help +shell --help -```js -#!/usr/bin/env node +shell help spawn +shell spawn --help +``` -/** - * Module dependencies. - */ +### Custom help -var program = require('commander'); +You can add extra text to be displayed along with the built-in help. +Example file: [custom-help](./examples/custom-help) + +```js program - .version('0.1.0') - .option('-f, --foo', 'enable some foo') - .option('-b, --bar', 'enable some bar') - .option('-B, --baz', 'enable some baz'); - -// must be before .parse() since -// node's emit() is immediate - -program.on('--help', function(){ - console.log('') - console.log('Examples:'); - console.log(' $ custom-help --help'); - console.log(' $ custom-help -h'); -}); + .option('-f, --foo', 'enable some foo'); -program.parse(process.argv); +program.addHelpText('after', ` -console.log('stuff'); +Example call: + $ custom-help --help`); ``` -Yields the following help output when `node script-name.js -h` or `node script-name.js --help` are run: +Yields the following help output: -``` +```Text Usage: custom-help [options] Options: - -h, --help output usage information - -V, --version output the version number - -f, --foo enable some foo - -b, --bar enable some bar - -B, --baz enable some baz + -f, --foo enable some foo + -h, --help display help for command -Examples: +Example call: $ custom-help --help - $ custom-help -h ``` -## .outputHelp(cb) +The positions in order displayed are: + +- `beforeAll`: add to the program for a global banner or header +- `before`: display extra information before built-in help +- `after`: display extra information after built-in help +- `afterAll`: add to the program for a global footer (epilog) + +The positions "beforeAll" and "afterAll" apply to the command and all its subcommands. + +The second parameter can be a string, or a function returning a string. The function is passed a context object for your convenience. The properties are: + +- error: a boolean for whether the help is being displayed due to a usage error +- command: the Command which is displaying the help -Output help information without exiting. -Optional callback cb allows post-processing of help text before it is displayed. +### Display help from code -If you want to display help by default (e.g. if no command was provided), you can use something like: +`.help()`: display help information and exit immediately. You can optionally pass `{ error: true }` to display on stderr and exit with an error status. + +`.outputHelp()`: output help information without exiting. You can optionally pass `{ error: true }` to display on stderr. + +`.helpInformation()`: get the built-in command help information as a string for processing or displaying yourself. + +### .usage and .name + +These allow you to customise the usage description in the first line of the help. The name is otherwise +deduced from the (full) program arguments. Given: ```js -var program = require('commander'); -var colors = require('colors'); +program + .name("my-command") + .usage("[global options] command") +``` +The help will start with: + +```Text +Usage: my-command [global options] command +``` + +### .helpOption(flags, description) + +By default every command has a help option. Override the default help flags and description. Pass false to disable the built-in help option. + +```js program - .version('0.1.0') - .command('getstream [url]', 'get stream URL') - .parse(process.argv); + .helpOption('-e, --HELP', 'read more information'); +``` -if (!process.argv.slice(2).length) { - program.outputHelp(make_red); -} +### .addHelpCommand() -function make_red(txt) { - return colors.red(txt); //display the help text in red on the console -} +A help command is added by default if your command has subcommands. You can explicitly turn on or off the implicit help command with `.addHelpCommand()` and `.addHelpCommand(false)`. + +You can both turn on and customise the help command by supplying the name and description: + +```js +program.addHelpCommand('assist [command]', 'show assistance'); ``` -## .help(cb) +### More configuration + +The built-in help is formatted using the Help class. +You can configure the Help behaviour by modifying data properties and methods using `.configureHelp()`, or by subclassing using `.createHelp()` if you prefer. - Output help information and exit immediately. - Optional callback cb allows post-processing of help text before it is displayed. +The data properties are: +- `helpWidth`: specify the wrap width, useful for unit tests +- `sortSubcommands`: sort the subcommands alphabetically +- `sortOptions`: sort the options alphabetically + +There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a _term_ and _description_. Take a look at `.formatHelp()` to see how they are used. + +Example file: [configure-help.js](./examples/configure-help.js) + +``` +program.configureHelp({ + sortSubcommands: true, + subcommandTerm: (cmd) => cmd.name() // Just show the name, instead of short usage. +}); +``` ## Custom event listeners - You can execute custom actions by listening to command and option events. + +You can execute custom actions by listening to command and option events. ```js program.on('option:verbose', function () { - process.env.VERBOSE = this.verbose; + process.env.VERBOSE = this.opts().verbose; }); -// error on unknown commands -program.on('command:*', function () { - console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' ')); - process.exit(1); +program.on('command:*', function (operands) { + console.error(`error: unknown command '${operands[0]}'`); + const availableCommands = program.commands.map(cmd => cmd.name()); + mySuggestBestMatch(operands[0], availableCommands); + process.exitCode = 1; }); ``` +## Bits and pieces + +### .parse() and .parseAsync() + +The first argument to `.parse` is the array of strings to parse. You may omit the parameter to implicitly use `process.argv`. + +If the arguments follow different conventions than node you can pass a `from` option in the second parameter: + +- 'node': default, `argv[0]` is the application and `argv[1]` is the script being run, with user parameters after that +- 'electron': `argv[1]` varies depending on whether the electron application is packaged +- 'user': all of the arguments from the user + +For example: + +```js +program.parse(process.argv); // Explicit, node conventions +program.parse(); // Implicit, and auto-detect electron +program.parse(['-f', 'filename'], { from: 'user' }); +``` + +### Parsing Configuration + +If the default parsing does not suit your needs, there are some behaviours to support other usage patterns. + +By default program options are recognised before and after subcommands. To only look for program options before subcommands, use `.enablePositionalOptions()`. This lets you use +an option for a different purpose in subcommands. + +Example file: [positional-options.js](./examples/positional-options.js) + +With positional options, the `-b` is a program option in the first line and a subcommand option in the second line: + +```sh +program -b subcommand +program subcommand -b +``` + +By default options are recognised before and after command-arguments. To only process options that come +before the command-arguments, use `.passThroughOptions()`. This lets you pass the arguments and following options through to another program +without needing to use `--` to end the option processing. +To use pass through options in a subcommand, the program needs to enable positional options. + +Example file: [pass-through-options.js](./examples/pass-through-options.js) + +With pass through options, the `--port=80` is a program option in the first line and passed through as a command-argument in the second line: + +```sh +program --port=80 arg +program arg --port=80 +``` + +By default the option processing shows an error for an unknown option. To have an unknown option treated as an ordinary command-argument and continue looking for options, use `.allowUnknownOption()`. This lets you mix known and unknown options. + +By default the argument processing does not display an error for more command-arguments than expected. +To display an error for excess arguments, use`.allowExcessArguments(false)`. + +### Legacy options as properties + +Before Commander 7, the option values were stored as properties on the command. +This was convenient to code but the downside was possible clashes with +existing properties of `Command`. You can revert to the old behaviour to run unmodified legacy code by using `.storeOptionsAsProperties()`. + +```js +program + .storeOptionsAsProperties() + .option('-d, --debug') + .action((commandAndOptions) => { + if (commandAndOptions.debug) { + console.error(`Called ${commandAndOptions.name()}`); + } + }); +``` + +### TypeScript + +If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g. + +```bash +node -r ts-node/register pm.ts +``` + +### createCommand() + +This factory function creates a new command. It is exported and may be used instead of using `new`, like: + +```js +const { createCommand } = require('commander'); +const program = createCommand(); +``` + +`createCommand` is also a method of the Command object, and creates a new command rather than a subcommand. This gets used internally +when creating subcommands using `.command()`, and you may override it to +customise the new subcommand (example file [custom-command-class.js](./examples/custom-command-class.js)). + +### Node options such as `--harmony` + +You can enable `--harmony` option in two ways: + +- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note Windows does not support this pattern.) +- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand process. + +### Debugging stand-alone executable subcommands + +An executable subcommand is launched as a separate child process. + +If you are using the node inspector for [debugging](https://nodejs.org/en/docs/guides/debugging-getting-started/) executable subcommands using `node --inspect` et al, +the inspector port is incremented by 1 for the spawned subcommand. + +If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your launch.json configuration. + +### Override exit and output handling + +By default Commander calls `process.exit` when it detects errors, or after displaying the help or version. You can override +this behaviour and optionally supply a callback. The default override throws a `CommanderError`. + +The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`. The default override behaviour is to throw the error, except for async handling of executable subcommand completion which carries on. The normal display of error messages or version or help +is not affected by the override which is called after the display. + +```js +program.exitOverride(); + +try { + program.parse(process.argv); +} catch (err) { + // custom processing... +} +``` + +By default Commander is configured for a command-line application and writes to stdout and stderr. +You can modify this behaviour for custom applications. In addition, you can modify the display of error messages. + +Example file: [configure-output.js](./examples/configure-output.js) + + +```js +function errorColor(str) { + // Add ANSI escape codes to display text in red. + return `\x1b[31m${str}\x1b[0m`; +} + +program + .configureOutput({ + // Visibly override write routines as example! + writeOut: (str) => process.stdout.write(`[OUT] ${str}`), + writeErr: (str) => process.stdout.write(`[ERR] ${str}`), + // Highlight errors in color. + outputError: (str, write) => write(errorColor(str)) + }); +``` + +### Additional documentation + +There is more information available about: + +- [deprecated](./docs/deprecated.md) features still supported for backwards compatibility +- [options taking varying arguments](./docs/options-taking-varying-arguments.md) + ## Examples +In a single command program, you might not need an action handler. + +Example file: [pizza](./examples/pizza) + ```js -var program = require('commander'); +const { program } = require('commander'); program - .version('0.1.0') - .option('-C, --chdir ', 'change the working directory') - .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - .option('-T, --no-tests', 'ignore test hook'); + .description('An application for pizza ordering') + .option('-p, --peppers', 'Add peppers') + .option('-c, --cheese ', 'Add the specified type of cheese', 'marble') + .option('-C, --no-cheese', 'You do not want any cheese'); + +program.parse(); + +const options = program.opts(); +console.log('you ordered a pizza with:'); +if (options.peppers) console.log(' - peppers'); +const cheese = !options.cheese ? 'no' : options.cheese; +console.log(' - %s cheese', cheese); +``` + +In a multi-command program, you will have action handlers for each command (or stand-alone executables for the commands). + +Example file: [deploy](./examples/deploy) + +```js +const { Command } = require('commander'); +const program = new Command(); + +program + .version('0.0.1') + .option('-c, --config ', 'set config path', './deploy.conf'); program .command('setup [env]') .description('run setup commands for all envs') - .option("-s, --setup_mode [mode]", "Which setup mode to use") - .action(function(env, options){ - var mode = options.setup_mode || "normal"; + .option('-s, --setup_mode ', 'Which setup mode to use', 'normal') + .action((env, options) => { env = env || 'all'; - console.log('setup for %s env(s) with %s mode', env, mode); + console.log('read config from %s', program.opts().config); + console.log('setup for %s env(s) with %s mode', env, options.setup_mode); }); program - .command('exec ') + .command('exec -``` - -**It's not recommended to use the above URL for production.** - -Using `contentful@latest` will always get you the latest version, but you can also specify a specific version number: - -```html - - -``` - -The Contentful Management library will be accessible via the `contentfulManagement` global variable. - -Check the [releases](https://github.com/contentful/contentful-management.js/releases) page to know which versions are available. - -## Typings - -This library also comes with typings to use with typescript. - -## Authentication - -To get content from Contentful, an app should authenticate with an OAuth bearer token. - -If you want to use this library for a simple tool or a local app that you won't redistribute or make available to other users, you can get an API key for the Management API at our [Authentication page](https://www.contentful.com/developers/docs/references/authentication/). - -If you'd like to create an app which would make use of this library but that would be available for other users, where they could authenticate with their own Contentful credentials, make sure to also check out the section about [Creating an OAuth Application](https://www.contentful.com/developers/docs/references/authentication/#creating-an-oauth-20-application) - -## Using ES6 import - -You can use the es6 import with the library as follows - -```js -// import createClient directly -import contentful from 'contentful-management' -const client = contentful.createClient( - { - // This is the access token for this space. Normally you get the token in the Contentful web app - accessToken: 'YOUR_ACCESS_TOKEN', - }, - { type: 'plain' } -) -//.... -``` - -## Your first request - -Beginning with `contentful-management@7` this library provides a client which exposes all CMA endpoints in a simple flat API surface, as opposed to the waterfall structure exposed by legacy versions of the SDK. - -```javascript -const contentful = require('contentful-management') -const plainClient = contentful.createClient( - { - accessToken: 'YOUR_ACCESS_TOKEN', - }, - { type: 'plain' } -) - -const environment = await plainClient.environment.get({ - spaceId: '', - environmentId: '', -}) - -const entries = await plainClient.entry.getMany({ - spaceId: '123', - environmentId: '', - query: { - skip: 10, - limit: 100, - }, -}) - -// With scoped space and environment -const scopedPlainClient = contentful.createClient( - { - accessToken: 'YOUR_ACCESS_TOKEN', - }, - { - type: 'plain', - defaults: { - spaceId: '', - environmentId: '', - }, - } -) - -// entries from '' & '' -const entries = await scopedPlainClient.entry.getMany({ - query: { - skip: 10, - limit: 100, - }, -}) -``` - -You can try and change the above example on [Runkit](https://npm.runkit.com/contentful-management). - -The benefits of using the "plain" version of the client, over the legacy version, are: - -- The ability to reach any possible CMA endpoint without the necessity to call any async functions beforehand. - - It's especially important if you're using this CMA client for non-linear scripts (for example, a complex Front-end application) -- All returned objects are simple Javascript objects without any wrappers. They can be easily serialized without an additional `toPlainObject` function call. -- The ability to scope CMA client instance to a specific `spaceId`, `environmentId`, and `organizationId` when initializing the client. - - You can pass a concrete values to `defaults` and omit specifying these params in actual CMA methods calls. - -## Legacy Client Interface - -The following code snippet is an example of the legacy client interface, which reads and writes data as a sequence of nested requests: - -```js -const contentful = require('contentful-management') -const client = contentful.createClient({ - accessToken: 'YOUR_ACCESS_TOKEN', -}) - -// Get a space with the specified ID -client.getSpace('spaceId').then((space) => { - // Get an environment within the space - space.getEnvironment('master').then((environment) => { - // Get entries from this environment - environment.getEntries().then((entries) => { - console.log(entries.items) - }) - // Get a content type - environment.getContentType('product').then((contentType) => { - // Update its name - contentType.name = 'New Product' - contentType.update().then((updatedContentType) => { - console.log('Update was successful') - }) - }) - }) -}) -``` - -## App Framework - -Starting [`@contentful/app-sdk@4`](https://github.com/contentful/app-sdk) you can use this client to make requests -from your [apps built for Contentful](https://www.contentful.com/developers/docs/extensibility/app-framework/). - -A dedicated [Adapter](https://github.com/contentful/contentful-management.js/blob/2350b47053459694b21b19c71025632fe57815cc/lib/common-types.ts#L493-L495) -grants your apps access to the supported space-environment scoped entities without compromising on security as you won't -need to expose a management token, and without coding any additional backend middleware. - -```javascript -const contentfulApp = require('@contentful/app-sdk') -const contentful = require('contentful-management') - -contentfulApp.init((sdk) => { - const cma = contentful.createClient( - { apiAdapter: sdk.cmaAdapter }, - { - type: 'plain', - defaults: { - environmentId: sdk.ids.environmentAlias ?? sdk.ids.environment, - spaceId: sdk.ids.space, - }, - } - ) - - // ...rest of initialization code -}) -``` - -> **Please Note** -> -> Requests issued by the App SDK adapter will count towards the same rate limiting quota as the ones made by other APIs -> exposed by App SDK (e.g., Space API). Ultimately, they will all fall into the same bucket as the calls performed by -> the host app (i.e., Contentful web app, Compose, or Launch). - -## Troubleshooting - -- **I can't Install the package via npm** - Check your internet connection - It is called `contentful-management` and not `contenful-management` ¯\\\_(ツ)\_/¯ -- **Can I use the library in react native projects** - Yes it is possible -- **I get the error: Unable to resolve module `http`** - Our library is supplied as node and browser version. Most non-node environments, like React Native, act like a browser. To force using of the browser version, you can require it via: `const { createClient } = require('contentful-management/dist/contentful-management.browser.min.js')` -- **I am not sure what payload to send when creating and entity (Asset/Entity/ContentType etc...)** - Check the Content Management API [docs](https://www.contentful.com/developers/docs/references/content-management-api/) or the examples in the reference [docs](https://contentful.github.io/contentful-management.js) - Feel free to open an issue if you didn't find what you need in the above links -- 😱 **something is wrong what should I do** - If it is a bug related to the code create a GitHub issue and make sure to remove any credential for your code before sharing it. - If you need to share your credentials, for example you have an issue with your space, please create a support ticket. - Please **do not** share your management token in a GitHub issue - -## Documentation/References - -To help you get the most out of this library, we've prepared reference documentation, tutorials and other examples that will help you learn and understand how to use this library. - -## Configuration - -The `createClient` method supports several options you may set to achieve the expected behavior: - -```js -contentful.createClient({ - ... your config here ... -}) -``` - -#### accessToken (required, when `apiAdapter` is not set) - -Your CMA access token. - -#### host (default: `'api.contentful.com'`) - -Set the host used to build the request URI's. - -#### hostUpload (default: `'upload.contentful.com'`) - -Set the host used to build the upload related request uri's. - -#### basePath (default: ``) - -This path gets appended to the host to allow request urls like `https://gateway.example.com/contentful/` for custom gateways/proxies. - -#### httpAgent (default: `undefined`) - -Custom agent to perform HTTP requests. Find further information in the [axios request config documentation](https://github.com/mzabriskie/axios#request-config). - -#### httpsAgent (default: `undefined`) - -Custom agent to perform HTTPS requests. Find further information in the [axios request config documentation](https://github.com/mzabriskie/axios#request-config). - -#### headers (default: `{}`) - -Additional headers to attach to the requests. We add/overwrite the following headers: - -- Content-Type: `application/vnd.contentful.management.v1+json` -- X-Contentful-User-Agent: `sdk contentful-management.js/1.2.3; platform node.js/1.2.3; os macOS/1.2.3` - (Automatically generated) - -#### proxy (default: `undefined`) - -Axios proxy configuration. See the [axios request config documentation](https://github.com/mzabriskie/axios#request-config) for further information about the supported values. - -#### retryOnError (default: `true`) - -By default, this library is retrying requests which resulted in a 500 server error and 429 rate limit response. Set this to `false` to disable this behavior. - -#### logHandler (default: `function (level, data) {}`) - -Errors and warnings will be logged by default to the node or browser console. Pass your own log handler to intercept here and handle errors, warnings and info on your own. - -#### requestLogger (default: `function (config) {}`) - -Interceptor called on every request. Takes Axios request config as an arg. Default does nothing. Pass your own function to log any desired data. - -#### responseLogger (default: `function (response) {}`) - -Interceptor called on every response. Takes Axios response object as an arg. Default does nothing. Pass your own function to log any desired data. - -#### apiAdapter (default: `new RestAdapter(configuration)`) - -An [`Adapter`](https://github.com/contentful/contentful-management.js/blob/2350b47053459694b21b19c71025632fe57815cc/lib/common-types.ts#L493-L495) -that can be utilized to issue requests. It defaults to a [`RestAdapter`](https://github.com/contentful/contentful-management.js/blob/b50534c629a8ddc81637170a07bc63477d136cec/lib/adapters/REST/rest-adapter.ts) -initialized with provided configuration. - -> **Please Note** -> -> The Adapter will take precedence over the other options. Therefore, ensure you're providing the Adapter all the -> information it needs to issue the request (e.g., host or auth headers) - -#### throttle (default: `0`) - -Maximum number of requests per second. - -- `1`-`30` (fixed number of limit), -- `'auto'` (calculated limit based on your plan), -- `'0%'` - `'100%'` (calculated % limit based on your plan) - -### Reference documentation - -The [Contentful's JS library reference](https://contentful.github.io/contentful-management.js) documents what objects and methods are exposed by this library, what arguments they expect and what kind of data is returned. - -Most methods also have examples which show you how to use them. - -You can start by looking at the top level `contentfulManagement` namespace. - -The `ContentfulClientAPI` namespace defines the methods at the Client level which allow you to create and get spaces. - -The `ContentfulSpaceAPI` namespace defines the methods at the Space level which allow you to create and get entries, assets, content types and other possible entities. - -The `Entry`, `Asset` and `ContentType` namespaces show you the instance methods you can use on each of these entities, once you retrieve them from the server. - -> From version 1.0.0 onwards, you can access documentation for a specific version by visiting `https://contentful.github.io/contentful-management.js/contentful-management/` - -### Contentful JavaScript resources - -Read the [Contentful for JavaScript](https://www.contentful.com/developers/docs/javascript/) page for Tutorials, Demo Apps, and more information on other ways of using JavaScript with Contentful - -### REST API reference - -This library is a wrapper around our Contentful Management REST API. Some more specific details such as search parameters and pagination are better explained on the [REST API reference](https://www.contentful.com/developers/docs/references/content-management-api/), and you can also get a better understanding of how the requests look under the hood. - -## Versioning - -This project strictly follows [Semantic Versioning](http://semver.org/) by use of [semantic-release](https://github.com/semantic-release/semantic-release). - -This means that new versions are released automatically as fixes, features or breaking changes are released. - -You can check the changelog on the [releases](https://github.com/contentful/contentful-management.js/releases) page. - -## Reach out to us - -### You have questions about how to use this library? - -- Reach out to our community - forum: [![Contentful Community Forum](https://img.shields.io/badge/-Join%20Community%20Forum-3AB2E6.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MiA1OSI+CiAgPHBhdGggZmlsbD0iI0Y4RTQxOCIgZD0iTTE4IDQxYTE2IDE2IDAgMCAxIDAtMjMgNiA2IDAgMCAwLTktOSAyOSAyOSAwIDAgMCAwIDQxIDYgNiAwIDEgMCA5LTkiIG1hc2s9InVybCgjYikiLz4KICA8cGF0aCBmaWxsPSIjNTZBRUQyIiBkPSJNMTggMThhMTYgMTYgMCAwIDEgMjMgMCA2IDYgMCAxIDAgOS05QTI5IDI5IDAgMCAwIDkgOWE2IDYgMCAwIDAgOSA5Ii8+CiAgPHBhdGggZmlsbD0iI0UwNTM0RSIgZD0iTTQxIDQxYTE2IDE2IDAgMCAxLTIzIDAgNiA2IDAgMSAwLTkgOSAyOSAyOSAwIDAgMCA0MSAwIDYgNiAwIDAgMC05LTkiLz4KICA8cGF0aCBmaWxsPSIjMUQ3OEE0IiBkPSJNMTggMThhNiA2IDAgMSAxLTktOSA2IDYgMCAwIDEgOSA5Ii8+CiAgPHBhdGggZmlsbD0iI0JFNDMzQiIgZD0iTTE4IDUwYTYgNiAwIDEgMS05LTkgNiA2IDAgMCAxIDkgOSIvPgo8L3N2Zz4K&maxAge=31557600)](https://support.contentful.com/) -- Jump into our community slack - channel: [![Contentful Community Slack](https://img.shields.io/badge/-Join%20Community%20Slack-2AB27B.svg?logo=slack&maxAge=31557600)](https://www.contentful.com/slack/) - -### You found a bug or want to propose a feature? - -- File an issue here on GitHub: [![File an issue](https://img.shields.io/badge/-Create%20Issue-6cc644.svg?logo=github&maxAge=31557600)](https://github.com/contentful/contentful-management.js/issues/new). - Make sure to remove any credential from your code before sharing it. - -### You need to share confidential information or have other questions? - -- File a support ticket at our Contentful Customer - Support: [![File support ticket](https://img.shields.io/badge/-Submit%20Support%20Ticket-3AB2E6.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MiA1OSI+CiAgPHBhdGggZmlsbD0iI0Y4RTQxOCIgZD0iTTE4IDQxYTE2IDE2IDAgMCAxIDAtMjMgNiA2IDAgMCAwLTktOSAyOSAyOSAwIDAgMCAwIDQxIDYgNiAwIDEgMCA5LTkiIG1hc2s9InVybCgjYikiLz4KICA8cGF0aCBmaWxsPSIjNTZBRUQyIiBkPSJNMTggMThhMTYgMTYgMCAwIDEgMjMgMCA2IDYgMCAxIDAgOS05QTI5IDI5IDAgMCAwIDkgOWE2IDYgMCAwIDAgOSA5Ii8+CiAgPHBhdGggZmlsbD0iI0UwNTM0RSIgZD0iTTQxIDQxYTE2IDE2IDAgMCAxLTIzIDAgNiA2IDAgMSAwLTkgOSAyOSAyOSAwIDAgMCA0MSAwIDYgNiAwIDAgMC05LTkiLz4KICA8cGF0aCBmaWxsPSIjMUQ3OEE0IiBkPSJNMTggMThhNiA2IDAgMSAxLTktOSA2IDYgMCAwIDEgOSA5Ii8+CiAgPHBhdGggZmlsbD0iI0JFNDMzQiIgZD0iTTE4IDUwYTYgNiAwIDEgMS05LTkgNiA2IDAgMCAxIDkgOSIvPgo8L3N2Zz4K&maxAge=31557600)](https://www.contentful.com/support/) - -## Get involved - -We appreciate any help on our repositories. For more details about how to contribute see our [CONTRIBUTING.md](https://github.com/contentful/contentful-management.js/blob/master/CONTRIBUTING.md) document. - -## License - -This repository is published under the [MIT](LICENSE) license. - -## Code of Conduct - -We want to provide a safe, inclusive, welcoming, and harassment-free space and experience for all participants, regardless of gender identity and expression, sexual orientation, disability, physical appearance, socioeconomic status, body size, ethnicity, nationality, level of experience, age, religion (or lack thereof), or other identity markers. - -[Read our full Code of Conduct](https://www.contentful.com/developers/code-of-conduct/). diff --git a/node_modules/contentful-management/dist/contentful-management.browser.js b/node_modules/contentful-management/dist/contentful-management.browser.js deleted file mode 100644 index 01d44987..00000000 --- a/node_modules/contentful-management/dist/contentful-management.browser.js +++ /dev/null @@ -1,25505 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else { - var a = factory(); - for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; - } -})(self, function() { -return /******/ (function() { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./adapters/REST/endpoints/access-token.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/access-token.ts ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createPersonalAccessToken: function() { return /* binding */ createPersonalAccessToken; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ revoke: function() { return /* binding */ revoke; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -/** - * Retrieves an access token by its unique token ID for the currently authenticated user. - * - * @param {AxiosInstance} http - An Axios HTTP client instance. - * @param {Object} params - Parameters for the request. - * @param {string} params.tokenId - The unique token ID of the access token to retrieve. - * @returns {Promise} A Promise that resolves with the retrieved access token information. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.get({tokenId: 'TestTokenTd'}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/users/me/access_tokens/".concat(params.tokenId)); -}; - -/** - * Retrieves multiple access tokens associated with the currently authenticated user. - * - * @param {AxiosInstance} http - An Axios HTTP client instance. - * @param {QueryParams} params - Query parameters to filter and customize the request. - * @returns {Promise>} A Promise that resolves with a collection of access token properties. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.getMany() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, '/users/me/access_tokens', { - params: params.query - }); -}; - -/** - * Creates a personal access token for the currently authenticated user. - * - * @param {AxiosInstance} http - Axios instance for making the HTTP request. - * @param {Object} _params - Unused parameters (can be an empty object). - * @param {CreatePersonalAccessTokenProps} rawData - Data for creating the personal access token. - * @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request. - * @returns {Promise} A Promise that resolves with the created personal access token. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '', - * }, - * { type: 'plain' } - * ) - * plainClient.createPersonalAccessToken({name: 'Test-Name', scope: ['content_management_manage'], expiresIn: 777596.92}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -var createPersonalAccessToken = function createPersonalAccessToken(http, _params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, '/users/me/access_tokens', rawData, { - headers: headers - }); -}; - -/** - * Revokes an access token associated with the currently authenticated user. - * - * @param {AxiosInstance} http - The Axios HTTP client instance. - * @param {Object} params - The parameters for revoking the access token. - * @param {string} params.tokenId - The unique identifier of the access token to revoke. - * @returns {Promise} A Promise that resolves with the updated access token information after revocation. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.revoke({tokenId: 'TestTokenTd'}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -var revoke = function revoke(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/users/me/access_tokens/".concat(params.tokenId, "/revoked"), null); -}; - -/** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @param {AxiosInstance} http - The Axios HTTP client instance. - * @param {GetOrganizationParams & QueryParams} params - Parameters for the request, including organization ID and query parameters. - * @param {string} params.organizationId - The unique identifier of the organization. - * @returns {Promise>} A promise that resolves to a collection of access tokens. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.getManyForOrganization({organizationId: 'OrgId'}) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/access_tokens"), { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/api-key.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/api-key.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/api_keys"), { - params: params.query - }); -}; -var create = function create(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(params.spaceId, "/api_keys"), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - if ('accessToken' in data) { - delete data.accessToken; - } - if ('preview_api_key' in data) { - delete data.preview_api_key; - } - if ('policies' in data) { - delete data.policies; - } - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-access-token.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/app-access-token.ts ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations/").concat(params.appDefinitionId, "/access_tokens"), undefined, { - headers: { - Authorization: "Bearer ".concat(data.jwt) - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-action-call.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/app-action-call.ts ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithResponse: function() { return /* binding */ createWithResponse; }, -/* harmony export */ getCallDetails: function() { return /* binding */ getCallDetails; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common-utils */ "./common-utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations/").concat(params.appDefinitionId, "/actions/").concat(params.appActionId, "/calls"), data); -}; -var getCallDetails = function getCallDetails(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/actions/").concat(params.appActionId, "/calls/").concat(params.callId)); -}; -var APP_ACTION_CALL_RETRY_INTERVAL = 2000; -var APP_ACTION_CALL_RETRIES = 15; -function callAppActionResult(_x, _x2, _x3) { - return _callAppActionResult.apply(this, arguments); -} -function _callAppActionResult() { - _callAppActionResult = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(http, params, _ref) { - var callId, checkCount, retryInterval, retries; - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - callId = _ref.callId; - checkCount = 1; - retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL; - retries = params.retries || APP_ACTION_CALL_RETRIES; - return _context3.abrupt("return", new Promise(function (resolve, reject) { - var poll = /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var _result$response, _result$response2, result, error, _error; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.prev = 0; - _context2.next = 3; - return getCallDetails(http, _objectSpread(_objectSpread({}, params), {}, { - callId: callId - })); - case 3: - result = _context2.sent; - if (!(result !== null && result !== void 0 && (_result$response = result.response) !== null && _result$response !== void 0 && _result$response.statusCode && !(0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.isSuccessful)(result === null || result === void 0 ? void 0 : (_result$response2 = result.response) === null || _result$response2 === void 0 ? void 0 : _result$response2.statusCode))) { - _context2.next = 9; - break; - } - error = new Error('App action not found or lambda fails'); - reject(error); - _context2.next = 22; - break; - case 9: - if (!(0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.isSuccessful)(result.statusCode)) { - _context2.next = 13; - break; - } - resolve(result); - _context2.next = 22; - break; - case 13: - if (!((0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.shouldRePoll)(result.statusCode) && checkCount < retries)) { - _context2.next = 20; - break; - } - checkCount++; - _context2.next = 17; - return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval); - case 17: - poll(); - _context2.next = 22; - break; - case 20: - _error = new Error('The app action response is taking longer than expected to process.'); - reject(_error); - case 22: - _context2.next = 33; - break; - case 24: - _context2.prev = 24; - _context2.t0 = _context2["catch"](0); - checkCount++; - if (!(checkCount > retries)) { - _context2.next = 30; - break; - } - reject(new Error('The app action response is taking longer than expected to process.')); - return _context2.abrupt("return"); - case 30: - _context2.next = 32; - return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval); - case 32: - poll(); - case 33: - case "end": - return _context2.stop(); - } - }, _callee2, null, [[0, 24]]); - })); - return function poll() { - return _ref3.apply(this, arguments); - }; - }(); - poll(); - })); - case 5: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - return _callAppActionResult.apply(this, arguments); -} -var createWithResponse = /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(http, params, data) { - var createResponse, callId; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations/").concat(params.appDefinitionId, "/actions/").concat(params.appActionId, "/calls"), data); - case 2: - createResponse = _context.sent; - callId = createResponse.sys.id; - return _context.abrupt("return", callAppActionResult(http, params, { - callId: callId - })); - case 5: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function createWithResponse(_x4, _x5, _x6) { - return _ref2.apply(this, arguments); - }; -}(); - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-action.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-action.ts ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForEnvironment: function() { return /* binding */ getManyForEnvironment; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/actions"); -}; -var getAppActionUrl = function getAppActionUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.appActionId); -}; -var getAppActionsEnvUrl = function getAppActionsEnvUrl(params) { - if (params.environmentId) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/actions"); - } - return "/spaces/".concat(params.spaceId, "/actions"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppActionUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var getManyForEnvironment = function getManyForEnvironment(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppActionsEnvUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppActionUrl(params)); -}; -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; -var update = function update(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppActionUrl(params), data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-bundle.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-bundle.ts ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/app_bundles"); -}; -var getAppBundleUrl = function getAppBundleUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.appBundleId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppBundleUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppBundleUrl(params)); -}; -var create = function create(http, params, payload) { - var appUploadId = payload.appUploadId, - comment = payload.comment, - actions = payload.actions, - functions = payload.functions; - var data = { - upload: { - sys: { - type: 'Link', - linkType: 'AppUpload', - id: appUploadId - } - }, - comment: comment, - actions: actions, - functions: functions - }; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-definition.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/app-definition.ts ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getAppDefinitionUrl: function() { return /* binding */ getAppDefinitionUrl; }, -/* harmony export */ getInstallationsForOrg: function() { return /* binding */ getInstallationsForOrg; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/app_definitions"); -}; -var getAppDefinitionUrl = function getAppDefinitionUrl(params) { - return getBaseUrl(params) + "/".concat(params.appDefinitionId); -}; -var getBaseUrlForOrgInstallations = function getBaseUrlForOrgInstallations(params) { - return "/app_definitions/".concat(params.appDefinitionId, "/app_installations"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppDefinitionUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var create = function create(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppDefinitionUrl(params)); -}; -var getInstallationsForOrg = function getInstallationsForOrg(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSpaceId)((0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-details.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/app-details.ts ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ upsert: function() { return /* binding */ upsert; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/details")); -}; -var upsert = function upsert(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/details"), data); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/details")); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-event-subscription.ts": -/*!***********************************************************!*\ - !*** ./adapters/REST/endpoints/app-event-subscription.ts ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ upsert: function() { return /* binding */ upsert; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/event_subscription")); -}; -var upsert = function upsert(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/event_subscription"), data); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/event_subscription")); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-installation.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/app-installation.ts ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getAppInstallationUrl: function() { return /* binding */ getAppInstallationUrl; }, -/* harmony export */ getForOrganization: function() { return /* binding */ getForOrganization; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ upsert: function() { return /* binding */ upsert; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations"); -}; -var getBaseUrlForOrgInstallations = function getBaseUrlForOrgInstallations(params) { - return "/app_definitions/".concat(params.appDefinitionId, "/app_installations"); -}; -var getAppInstallationUrl = function getAppInstallationUrl(params) { - return getBaseUrl(params) + "/".concat(params.appDefinitionId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppInstallationUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var upsert = function upsert(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_2__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppInstallationUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), params.acceptAllTerms && { - 'X-Contentful-Marketplace': 'i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy' - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppInstallationUrl(params)); -}; -var getForOrganization = function getForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSpaceId)((0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-key.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/app-key.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/keys/").concat(params.fingerprint)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/keys")); -}; -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/keys"), data); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/keys/").concat(params.fingerprint)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-signed-request.ts": -/*!*******************************************************!*\ - !*** ./adapters/REST/endpoints/app-signed-request.ts ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations/").concat(params.appDefinitionId, "/signed_requests"), data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-signing-secret.ts": -/*!*******************************************************!*\ - !*** ./adapters/REST/endpoints/app-signing-secret.ts ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ upsert: function() { return /* binding */ upsert; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/signing_secret")); -}; -var upsert = function upsert(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/signing_secret"), data); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/signing_secret")); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-upload.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-upload.ts ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/app_uploads"); -}; -var getAppUploadUrl = function getAppUploadUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.appUploadId); -}; -var get = function get(http, params) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(httpUpload, getAppUploadUrl(params)); -}; -var del = function del(http, params) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(httpUpload, getAppUploadUrl(params)); -}; -var create = function create(http, params, payload) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - var file = payload.file; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(httpUpload, getBaseUrl(params), file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/asset-key.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/asset-key.ts ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ValidationError: function() { return /* binding */ ValidationError; }, -/* harmony export */ create: function() { return /* binding */ create; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); } -function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; } -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } -function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -var ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60; -var ValidationError = /*#__PURE__*/function (_Error) { - function ValidationError(name, message) { - var _this; - _classCallCheck(this, ValidationError); - _this = _callSuper(this, ValidationError, ["Invalid \"".concat(name, "\" provided, ") + message]); - _this.name = 'ValidationError'; - return _this; - } - _inherits(ValidationError, _Error); - return _createClass(ValidationError); -}( /*#__PURE__*/_wrapNativeSuper(Error)); -var validateTimestamp = function validateTimestamp(name, timestamp, options) { - options = options || {}; - if (typeof timestamp !== 'number') { - throw new ValidationError(name, "only numeric values are allowed for timestamps, provided type was \"".concat(_typeof(timestamp), "\"")); - } - if (options.maximum && timestamp > options.maximum) { - throw new ValidationError(name, "value (".concat(timestamp, ") cannot be further in the future than expected maximum (").concat(options.maximum, ")")); - } - if (options.now && timestamp < options.now) { - throw new ValidationError(name, "value (".concat(timestamp, ") cannot be in the past, current time was ").concat(options.now)); - } -}; -var create = function create(http, params, data) { - var expiresAt = data.expiresAt; - var now = Math.floor(Date.now() / 1000); - var currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME; - validateTimestamp('expiresAt', expiresAt, { - maximum: currentMaxLifetime, - now: now - }); - var postParams = { - expiresAt: expiresAt - }; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/asset_keys"), postParams); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/asset.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/asset.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: function() { return /* binding */ archive; }, -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createFromFiles: function() { return /* binding */ createFromFiles; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getPublished: function() { return /* binding */ getPublished; }, -/* harmony export */ processForAllLocales: function() { return /* binding */ processForAllLocales; }, -/* harmony export */ processForLocale: function() { return /* binding */ processForLocale; }, -/* harmony export */ publish: function() { return /* binding */ publish; }, -/* harmony export */ unarchive: function() { return /* binding */ unarchive; }, -/* harmony export */ unpublish: function() { return /* binding */ unpublish; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -var _excluded = ["asset", "locale", "options"], - _excluded2 = ["asset", "options"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - -var get = function get(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -var getPublished = function getPublished(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/public/assets"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -var getMany = function getMany(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId)); -}; -var publish = function publish(http, params, rawData) { - var _rawData$sys$version2; - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/published"), null, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version2 = rawData.sys.version) !== null && _rawData$sys$version2 !== void 0 ? _rawData$sys$version2 : 0 - } - }); -}; -var unpublish = function unpublish(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/published")); -}; -var archive = function archive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/archived")); -}; -var unarchive = function unarchive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/archived")); -}; -var create = function create(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_3__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets"), data); -}; -var createWithId = function createWithId(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId), data); -}; -var createFromFiles = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(http, params, data) { - var httpUpload, file; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_2__.getUploadHttpClient)(http, { - uploadTimeout: params.uploadTimeout - }); - file = data.fields.file; - return _context2.abrupt("return", Promise.all(Object.keys(file).map( /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(locale) { - var _file$locale, contentType, fileName; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _file$locale = file[locale], contentType = _file$locale.contentType, fileName = _file$locale.fileName; - return _context.abrupt("return", (0,_upload__WEBPACK_IMPORTED_MODULE_4__.create)(httpUpload, params, file[locale]).then(function (upload) { - return _defineProperty({}, locale, { - contentType: contentType, - fileName: fileName, - uploadFrom: { - sys: { - type: 'Link', - linkType: 'Upload', - id: upload.sys.id - } - } - }); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function (_x4) { - return _ref2.apply(this, arguments); - }; - }())).then(function (uploads) { - var file = uploads.reduce(function (fieldsData, upload) { - return _objectSpread(_objectSpread({}, fieldsData), upload); - }, {}); - var asset = _objectSpread(_objectSpread({}, data), {}, { - fields: _objectSpread(_objectSpread({}, data.fields), {}, { - file: file - }) - }); - return create(http, params, asset); - }).catch(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler)); - case 3: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return function createFromFiles(_x, _x2, _x3) { - return _ref.apply(this, arguments); - }; -}(); - -/** - * Asset processing - */ - -var ASSET_PROCESSING_CHECK_WAIT = 3000; -var ASSET_PROCESSING_CHECK_RETRIES = 10; -function checkIfAssetHasUrl(_x5, _x6, _x7) { - return _checkIfAssetHasUrl.apply(this, arguments); -} -function _checkIfAssetHasUrl() { - _checkIfAssetHasUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(http, params, _ref4) { - var resolve, reject, locale, _ref4$processingCheck, processingCheckWait, _ref4$processingCheck2, processingCheckRetries, _ref4$checkCount, checkCount; - return _regeneratorRuntime().wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - resolve = _ref4.resolve, reject = _ref4.reject, locale = _ref4.locale, _ref4$processingCheck = _ref4.processingCheckWait, processingCheckWait = _ref4$processingCheck === void 0 ? ASSET_PROCESSING_CHECK_WAIT : _ref4$processingCheck, _ref4$processingCheck2 = _ref4.processingCheckRetries, processingCheckRetries = _ref4$processingCheck2 === void 0 ? ASSET_PROCESSING_CHECK_RETRIES : _ref4$processingCheck2, _ref4$checkCount = _ref4.checkCount, checkCount = _ref4$checkCount === void 0 ? 0 : _ref4$checkCount; - return _context5.abrupt("return", get(http, params).then(function (asset) { - if (asset.fields.file[locale].url) { - resolve(asset); - } else if (checkCount === processingCheckRetries) { - var error = new Error(); - error.name = 'AssetProcessingTimeout'; - error.message = 'Asset is taking longer then expected to process.'; - reject(error); - } else { - checkCount++; - setTimeout(function () { - return checkIfAssetHasUrl(http, params, { - resolve: resolve, - reject: reject, - locale: locale, - checkCount: checkCount, - processingCheckWait: processingCheckWait, - processingCheckRetries: processingCheckRetries - }); - }, processingCheckWait); - } - })); - case 2: - case "end": - return _context5.stop(); - } - }, _callee5); - })); - return _checkIfAssetHasUrl.apply(this, arguments); -} -var processForLocale = /*#__PURE__*/function () { - var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(http, _ref5) { - var asset, locale, _ref5$options, _ref5$options2, processingCheckRetries, processingCheckWait, params; - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - asset = _ref5.asset, locale = _ref5.locale, _ref5$options = _ref5.options, _ref5$options2 = _ref5$options === void 0 ? {} : _ref5$options, processingCheckRetries = _ref5$options2.processingCheckRetries, processingCheckWait = _ref5$options2.processingCheckWait, params = _objectWithoutProperties(_ref5, _excluded); - return _context3.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(asset.sys.id, "/files/").concat(locale, "/process"), null, { - headers: { - 'X-Contentful-Version': asset.sys.version - } - }).then(function () { - return new Promise(function (resolve, reject) { - return checkIfAssetHasUrl(http, { - spaceId: params.spaceId, - environmentId: params.environmentId, - assetId: asset.sys.id - }, { - resolve: resolve, - reject: reject, - locale: locale, - processingCheckWait: processingCheckWait, - processingCheckRetries: processingCheckRetries - }); - }); - })); - case 2: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - return function processForLocale(_x8, _x9) { - return _ref6.apply(this, arguments); - }; -}(); -var processForAllLocales = /*#__PURE__*/function () { - var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(http, _ref7) { - var asset, _ref7$options, options, params, locales, mostUpToDateAssetVersion, allProcessingLocales; - return _regeneratorRuntime().wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - asset = _ref7.asset, _ref7$options = _ref7.options, options = _ref7$options === void 0 ? {} : _ref7$options, params = _objectWithoutProperties(_ref7, _excluded2); - locales = Object.keys(asset.fields.file || {}); - mostUpToDateAssetVersion = asset; // Let all the locales process - // Since they all resolve at different times, - // we need to pick the last resolved value - // to reflect the most recent state - allProcessingLocales = locales.map(function (locale) { - return processForLocale(http, _objectSpread(_objectSpread({}, params), {}, { - asset: asset, - locale: locale, - options: options - })).then(function (result) { - // Side effect of always setting the most up to date asset version - // The last one to call this will be the last one that finished - // and thus the most up to date - mostUpToDateAssetVersion = result; - }); - }); - return _context4.abrupt("return", Promise.all(allProcessingLocales).then(function () { - return mostUpToDateAssetVersion; - })); - case 5: - case "end": - return _context4.stop(); - } - }, _callee4); - })); - return function processForAllLocales(_x10, _x11) { - return _ref8.apply(this, arguments); - }; -}(); - -/***/ }), - -/***/ "./adapters/REST/endpoints/bulk-action.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/bulk-action.ts ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ publish: function() { return /* binding */ publish; }, -/* harmony export */ unpublish: function() { return /* binding */ unpublish; }, -/* harmony export */ validate: function() { return /* binding */ validate; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/bulk_actions/actions/").concat(params.bulkActionId)); -}; -var publish = function publish(http, params, payload) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/bulk_actions/publish"), payload); -}; -var unpublish = function unpublish(http, params, payload) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/bulk_actions/unpublish"), payload); -}; -var validate = function validate(http, params, payload) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/bulk_actions/validate"), payload); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/comment.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/comment.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getAll: function() { return /* binding */ getAll; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -var _excluded = ["version"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var VERSION_HEADER = 'X-Contentful-Version'; -var BODY_FORMAT_HEADER = 'x-contentful-comment-body-format'; -var PARENT_ENTITY_REFERENCE_HEADER = 'x-contentful-parent-entity-reference'; -var PARENT_COMMENT_ID_HEADER = 'x-contentful-parent-id'; -var getSpaceEnvBaseUrl = function getSpaceEnvBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId); -}; -var getEntityCommentUrl = function getEntityCommentUrl(params) { - return "".concat(getEntityBaseUrl(params), "/").concat(params.commentId); -}; -function getParentPlural(parentEntityType) { - switch (parentEntityType) { - case 'ContentType': - return 'content_types'; - case 'Entry': - return 'entries'; - case 'Workflow': - return 'workflows'; - } -} - -/** - * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version - * to be set as part of the URL path. Workflow comments only support `create` (with - * versionized URL) and `getMany` (without version). The API might support more methods - * in the future with new use cases being discovered. - */ -var getEntityBaseUrl = function getEntityBaseUrl(paramsOrg) { - var params = 'entryId' in paramsOrg ? { - spaceId: paramsOrg.spaceId, - environmentId: paramsOrg.environmentId, - parentEntityType: 'Entry', - parentEntityId: paramsOrg.entryId - } : paramsOrg; - var parentEntityId = params.parentEntityId, - parentEntityType = params.parentEntityType; - var parentPlural = getParentPlural(parentEntityType); - var versionPath = 'parentEntityVersion' in params ? "/versions/".concat(params.parentEntityVersion) : ''; - return "".concat(getSpaceEnvBaseUrl(params), "/").concat(parentPlural, "/").concat(parentEntityId).concat(versionPath, "/comments"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityCommentUrl(params), { - headers: params.bodyFormat === 'rich-text' ? _defineProperty({}, BODY_FORMAT_HEADER, params.bodyFormat) : {} - }); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: params.bodyFormat === 'rich-text' ? _defineProperty({}, BODY_FORMAT_HEADER, params.bodyFormat) : {} - }); -}; -var create = function create(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getEntityBaseUrl(params), data, { - headers: _objectSpread(_objectSpread(_objectSpread({}, typeof rawData.body !== 'string' ? _defineProperty({}, BODY_FORMAT_HEADER, 'rich-text') : {}), 'parentEntityReference' in params && params.parentEntityReference ? _defineProperty({}, PARENT_ENTITY_REFERENCE_HEADER, params.parentEntityReference) : {}), params.parentCommentId ? _defineProperty({}, PARENT_COMMENT_ID_HEADER, params.parentCommentId) : {}) - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityCommentUrl(params), data, { - headers: _objectSpread(_objectSpread(_defineProperty({}, VERSION_HEADER, (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0), typeof rawData.body !== 'string' ? _defineProperty({}, BODY_FORMAT_HEADER, 'rich-text') : {}), headers) - }); -}; -var del = function del(http, _ref7) { - var version = _ref7.version, - params = _objectWithoutProperties(_ref7, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityCommentUrl(params), { - headers: _defineProperty({}, VERSION_HEADER, version) - }); -}; - -// Add a deprecation notice. But `getAll` may never be removed for app compatibility reasons. -/** - * @deprecated use `getMany` instead. - */ -var getAll = getMany; - -/***/ }), - -/***/ "./adapters/REST/endpoints/content-type.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/content-type.ts ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ publish: function() { return /* binding */ publish; }, -/* harmony export */ unpublish: function() { return /* binding */ unpublish; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/content_types"); -}; -var getContentTypeUrl = function getContentTypeUrl(params) { - return getBaseUrl(params) + "/".concat(params.contentTypeId); -}; -var get = function get(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getContentTypeUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: headers - }); -}; -var getMany = function getMany(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query, - headers: headers - }); -}; -var create = function create(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getContentTypeUrl(params), { - headers: headers - }); -}; -var publish = function publish(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params) + '/published', null, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version - }, headers) - }); -}; -var unpublish = function unpublish(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getContentTypeUrl(params) + '/published', { - headers: headers - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/editor-interface.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/editor-interface.ts ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/content_types/").concat(params.contentTypeId, "/editor_interface"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/editor_interfaces")); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getBaseUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/entry.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/entry.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: function() { return /* binding */ archive; }, -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getPublished: function() { return /* binding */ getPublished; }, -/* harmony export */ patch: function() { return /* binding */ patch; }, -/* harmony export */ publish: function() { return /* binding */ publish; }, -/* harmony export */ references: function() { return /* binding */ references; }, -/* harmony export */ unarchive: function() { return /* binding */ unarchive; }, -/* harmony export */ unpublish: function() { return /* binding */ unpublish; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var get = function get(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -var getPublished = function getPublished(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/public/entries"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -var getMany = function getMany(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -var patch = function patch(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.patch(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version, - 'Content-Type': 'application/json-patch+json' - }, headers) - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId)); -}; -var publish = function publish(http, params, rawData) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/published"), null, { - headers: { - 'X-Contentful-Version': rawData.sys.version - } - }); -}; -var unpublish = function unpublish(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/published")); -}; -var archive = function archive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/archived")); -}; -var unarchive = function unarchive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/archived")); -}; -var create = function create(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries"), data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -var createWithId = function createWithId(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId), data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -var references = function references(http, params) { - var spaceId = params.spaceId, - environmentId = params.environmentId, - entryId = params.entryId, - include = params.include; - var level = include || 2; - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/entries/").concat(entryId, "/references?include=").concat(level)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-alias.ts": -/*!******************************************************!*\ - !*** ./adapters/REST/endpoints/environment-alias.ts ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * Urls - */ - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environment_aliases"); -}; -var getEnvironmentAliasUrl = function getEnvironmentAliasUrl(params) { - return getBaseUrl(params) + "/".concat(params.environmentAliasId); -}; - -/** - * Endpoints - */ - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEnvironmentAliasUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var createWithId = function createWithId(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEnvironmentAliasUrl(params), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEnvironmentAliasUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEnvironmentAliasUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-template-installation.ts": -/*!**********************************************************************!*\ - !*** ./adapters/REST/endpoints/environment-template-installation.ts ***! - \**********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getForEnvironment: function() { return /* binding */ getForEnvironment; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _excluded = ["organizationId", "environmentTemplateId", "spaceId", "environmentId"], - _excluded2 = ["spaceId", "environmentId", "environmentTemplateId", "installationId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - -var apiPath = function apiPath(organizationId) { - for (var _len = arguments.length, pathSegments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - pathSegments[_key - 1] = arguments[_key]; - } - return "/organizations/".concat(organizationId, "/environment_templates/") + pathSegments.join('/'); -}; -var getMany = function getMany(http, _ref, headers) { - var organizationId = _ref.organizationId, - environmentTemplateId = _ref.environmentTemplateId, - spaceId = _ref.spaceId, - environmentId = _ref.environmentId, - paginationProps = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), { - params: _objectSpread(_objectSpread(_objectSpread({}, paginationProps), environmentId && { - 'environment.sys.id': environmentId - }), spaceId && { - 'space.sys.id': spaceId - }), - headers: headers - }); -}; -var getForEnvironment = function getForEnvironment(http, _ref2, headers) { - var spaceId = _ref2.spaceId, - environmentId = _ref2.environmentId, - environmentTemplateId = _ref2.environmentTemplateId, - installationId = _ref2.installationId, - paginationProps = _objectWithoutProperties(_ref2, _excluded2); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId), { - params: _objectSpread(_objectSpread({}, installationId && { - 'sys.id': installationId - }), paginationProps), - headers: headers - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-template.ts": -/*!*********************************************************!*\ - !*** ./adapters/REST/endpoints/environment-template.ts ***! - \*********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ disconnect: function() { return /* binding */ disconnect; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ install: function() { return /* binding */ install; }, -/* harmony export */ update: function() { return /* binding */ update; }, -/* harmony export */ validate: function() { return /* binding */ validate; }, -/* harmony export */ versionUpdate: function() { return /* binding */ versionUpdate; }, -/* harmony export */ versions: function() { return /* binding */ versions; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var apiPath = function apiPath(organizationId) { - for (var _len = arguments.length, pathSegments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - pathSegments[_key - 1] = arguments[_key]; - } - return "/organizations/".concat(organizationId, "/environment_templates/") + pathSegments.join('/'); -}; -var get = function get(http, _ref, headers) { - var organizationId = _ref.organizationId, - environmentTemplateId = _ref.environmentTemplateId, - version = _ref.version, - _ref$query = _ref.query, - query = _ref$query === void 0 ? {} : _ref$query; - return version ? _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId, 'versions', version), { - params: query, - headers: headers - }) : _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId), { - params: query, - headers: headers - }); -}; -var getMany = function getMany(http, _ref2, headers) { - var organizationId = _ref2.organizationId, - _ref2$query = _ref2.query, - query = _ref2$query === void 0 ? {} : _ref2$query; - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId), { - params: query, - headers: headers - }); -}; -var create = function create(http, _ref3, payload, headers) { - var organizationId = _ref3.organizationId; - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, apiPath(organizationId), payload, { - headers: headers - }); -}; -var update = function update(http, _ref4, payload, headers) { - var _payload$sys$version; - var organizationId = _ref4.organizationId, - environmentTemplateId = _ref4.environmentTemplateId; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(payload); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, apiPath(organizationId, environmentTemplateId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_payload$sys$version = payload.sys.version) !== null && _payload$sys$version !== void 0 ? _payload$sys$version : 0 - }, headers) - }); -}; -var versionUpdate = function versionUpdate(http, _ref5, payload, headers) { - var organizationId = _ref5.organizationId, - version = _ref5.version, - environmentTemplateId = _ref5.environmentTemplateId; - return _raw__WEBPACK_IMPORTED_MODULE_1__.patch(http, apiPath(organizationId, environmentTemplateId, 'versions', version), payload, { - headers: headers - }); -}; -var del = function del(http, _ref6, headers) { - var organizationId = _ref6.organizationId, - environmentTemplateId = _ref6.environmentTemplateId; - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, apiPath(organizationId, environmentTemplateId), { - headers: headers - }); -}; -var versions = function versions(http, _ref7, headers) { - var organizationId = _ref7.organizationId, - environmentTemplateId = _ref7.environmentTemplateId, - _ref7$query = _ref7.query, - query = _ref7$query === void 0 ? {} : _ref7$query; - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId, 'versions'), { - params: query, - headers: headers - }); -}; -var validate = function validate(http, _ref8, payload, headers) { - var spaceId = _ref8.spaceId, - environmentId = _ref8.environmentId, - environmentTemplateId = _ref8.environmentTemplateId, - version = _ref8.version; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, version ? "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/versions/").concat(version, "/validated") : "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/validated"), payload, { - headers: headers - }); -}; -var install = function install(http, _ref9, payload, headers) { - var spaceId = _ref9.spaceId, - environmentId = _ref9.environmentId, - environmentTemplateId = _ref9.environmentTemplateId; - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/versions"), payload, { - headers: headers - }); -}; -var disconnect = function disconnect(http, _ref10, headers) { - var spaceId = _ref10.spaceId, - environmentId = _ref10.environmentId, - environmentTemplateId = _ref10.environmentTemplateId; - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId), { - headers: headers - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/environment.ts ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments"), { - params: params.query - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId)); -}; -var create = function create(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(params.spaceId, "/environments"), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId), data, { - headers: _objectSpread(_objectSpread({}, headers), params.sourceEnvironmentId ? { - 'X-Contentful-Source-Environment': params.sourceEnvironmentId - } : {}) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/extension.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/extension.ts ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getExtensionUrl: function() { return /* binding */ getExtensionUrl; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/extensions"); -}; -var getExtensionUrl = function getExtensionUrl(params) { - return getBaseUrl(params) + "/".concat(params.extensionId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getExtensionUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getExtensionUrl(params), data, { - headers: headers - }); -}; -var update = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(http, params, rawData, headers) { - var _rawData$sys$version; - var data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _context.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getExtensionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - })); - case 3: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function update(_x, _x2, _x3, _x4) { - return _ref.apply(this, arguments); - }; -}(); -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getExtensionUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/http.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/http.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ patch: function() { return /* binding */ patch; }, -/* harmony export */ post: function() { return /* binding */ post; }, -/* harmony export */ put: function() { return /* binding */ put; }, -/* harmony export */ request: function() { return /* binding */ request; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -var get = function get(http, _ref) { - var url = _ref.url, - config = _ref.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, url, config); -}; -var post = function post(http, _ref2, payload) { - var url = _ref2.url, - config = _ref2.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, url, payload, config); -}; -var put = function put(http, _ref3, payload) { - var url = _ref3.url, - config = _ref3.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, url, payload, config); -}; -var patch = function patch(http, _ref4, payload) { - var url = _ref4.url, - config = _ref4.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.patch(http, url, payload, config); -}; -var del = function del(http, _ref5) { - var url = _ref5.url, - config = _ref5.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, url, config); -}; -var request = function request(http, _ref6) { - var url = _ref6.url, - config = _ref6.config; - return _raw__WEBPACK_IMPORTED_MODULE_0__.http(http, url, config); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/index.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/index.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api-key */ "./adapters/REST/endpoints/api-key.ts"); -/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app-action */ "./adapters/REST/endpoints/app-action.ts"); -/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./adapters/REST/endpoints/app-action-call.ts"); -/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./adapters/REST/endpoints/app-bundle.ts"); -/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./adapters/REST/endpoints/app-definition.ts"); -/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./adapters/REST/endpoints/app-details.ts"); -/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./adapters/REST/endpoints/app-installation.ts"); -/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./adapters/REST/endpoints/app-signed-request.ts"); -/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./adapters/REST/endpoints/app-signing-secret.ts"); -/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-event-subscription */ "./adapters/REST/endpoints/app-event-subscription.ts"); -/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-key */ "./adapters/REST/endpoints/app-key.ts"); -/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-access-token */ "./adapters/REST/endpoints/app-access-token.ts"); -/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-upload */ "./adapters/REST/endpoints/app-upload.ts"); -/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./asset */ "./adapters/REST/endpoints/asset.ts"); -/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./asset-key */ "./adapters/REST/endpoints/asset-key.ts"); -/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./bulk-action */ "./adapters/REST/endpoints/bulk-action.ts"); -/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./comment */ "./adapters/REST/endpoints/comment.ts"); -/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./content-type */ "./adapters/REST/endpoints/content-type.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./editor-interface */ "./adapters/REST/endpoints/editor-interface.ts"); -/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./entry */ "./adapters/REST/endpoints/entry.ts"); -/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment */ "./adapters/REST/endpoints/environment.ts"); -/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./environment-alias */ "./adapters/REST/endpoints/environment-alias.ts"); -/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts"); -/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts"); -/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts"); -/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts"); -/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts"); -/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts"); -/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts"); -/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts"); -/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts"); -/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./access-token */ "./adapters/REST/endpoints/access-token.ts"); -/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts"); -/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts"); -/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts"); -/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts"); -/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts"); -/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts"); -/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts"); -/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts"); -/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts"); -/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts"); -/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts"); -/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts"); -/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts"); -/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts"); -/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts"); -/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts"); -/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts"); -/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts"); -/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts"); -/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts"); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - ApiKey: _api_key__WEBPACK_IMPORTED_MODULE_0__, - AppAction: _app_action__WEBPACK_IMPORTED_MODULE_1__, - AppActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__, - AppBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__, - AppDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__, - AppInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__, - AppUpload: _app_upload__WEBPACK_IMPORTED_MODULE_12__, - AppSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__, - AppSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__, - AppEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__, - AppKey: _app_key__WEBPACK_IMPORTED_MODULE_10__, - AppAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_11__, - AppDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__, - Asset: _asset__WEBPACK_IMPORTED_MODULE_13__, - AssetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__, - BulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__, - Comment: _comment__WEBPACK_IMPORTED_MODULE_16__, - ContentType: _content_type__WEBPACK_IMPORTED_MODULE_17__, - EditorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__, - Entry: _entry__WEBPACK_IMPORTED_MODULE_19__, - Environment: _environment__WEBPACK_IMPORTED_MODULE_20__, - EnvironmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_21__, - EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__, - EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__, - Extension: _extension__WEBPACK_IMPORTED_MODULE_24__, - Http: _http__WEBPACK_IMPORTED_MODULE_25__, - Locale: _locale__WEBPACK_IMPORTED_MODULE_26__, - Organization: _organization__WEBPACK_IMPORTED_MODULE_27__, - OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_28__, - OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_29__, - PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_30__, - AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_31__, - PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_32__, - Release: _release__WEBPACK_IMPORTED_MODULE_33__, - ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_34__, - Role: _role__WEBPACK_IMPORTED_MODULE_35__, - ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_36__, - Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_37__, - Space: _space__WEBPACK_IMPORTED_MODULE_38__, - SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_39__, - SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_40__, - Tag: _tag__WEBPACK_IMPORTED_MODULE_41__, - Task: _task__WEBPACK_IMPORTED_MODULE_42__, - Team: _team__WEBPACK_IMPORTED_MODULE_43__, - TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_44__, - TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_45__, - UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_46__, - Upload: _upload__WEBPACK_IMPORTED_MODULE_47__, - Usage: _usage__WEBPACK_IMPORTED_MODULE_48__, - User: _user__WEBPACK_IMPORTED_MODULE_49__, - UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_50__, - Webhook: _webhook__WEBPACK_IMPORTED_MODULE_51__, - WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_53__, - Workflow: _workflow__WEBPACK_IMPORTED_MODULE_52__, - WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_54__ -}); - -/***/ }), - -/***/ "./adapters/REST/endpoints/locale.ts": -/*!*******************************************!*\ - !*** ./adapters/REST/endpoints/locale.ts ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/locales/").concat(params.localeId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/locales"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/locales"), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - delete data.default; // we should not send this back - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/locales/").concat(params.localeId), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/locales/").concat(params.localeId)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization-invitation.ts": -/*!************************************************************!*\ - !*** ./adapters/REST/endpoints/organization-invitation.ts ***! - \************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ get: function() { return /* binding */ get; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -var OrganizationUserManagementAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'organization-user-management-api' -}; -var InvitationAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'pending-org-membership' -}; -var create = function create(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/organizations/".concat(params.organizationId, "/invitations"), data, { - headers: _objectSpread(_objectSpread({}, InvitationAlphaHeaders), headers) - }); -}; -var get = function get(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/invitations/").concat(params.invitationId), { - headers: _objectSpread(_objectSpread({}, OrganizationUserManagementAlphaHeaders), headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization-membership.ts": -/*!************************************************************!*\ - !*** ./adapters/REST/endpoints/organization-membership.ts ***! - \************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/organization_memberships"); -}; -var getEntityUrl = function getEntityUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.organizationMembershipId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - var role = data.role; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), { - role: role - }, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/organization.ts ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations", { - params: params === null || params === void 0 ? void 0 : params.query - }); -}; -var get = function get(http, params) { - return getMany(http, { - query: { - limit: 100 - } - }).then(function (data) { - var org = data.items.find(function (org) { - return org.sys.id === params.organizationId; - }); - if (!org) { - var error = new Error("No organization was found with the ID ".concat(params.organizationId, " instead got ").concat(JSON.stringify(data))); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.status = 404; - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.statusText = 'Not Found'; - return Promise.reject(error); - } - return org; - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/personal-access-token.ts": -/*!**********************************************************!*\ - !*** ./adapters/REST/endpoints/personal-access-token.ts ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ revoke: function() { return /* binding */ revoke; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -/** - * @deprecated use `access-token.get` instead `personal-access-token.get` - */ -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/users/me/access_tokens/".concat(params.tokenId)); -}; - -/** - * @deprecated use `access-token.getMany` instead `personal-access-token.getMany` - */ -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, '/users/me/access_tokens', { - params: params.query - }); -}; - -/** - * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create` - */ -var create = function create(http, _params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, '/users/me/access_tokens', rawData, { - headers: headers - }); -}; - -/** - * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke` - */ -var revoke = function revoke(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/users/me/access_tokens/".concat(params.tokenId, "/revoked"), null); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/preview-api-key.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/preview-api-key.ts ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/preview_api_keys/").concat(params.previewApiKeyId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/preview_api_keys"), { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/raw.ts": -/*!****************************************!*\ - !*** ./adapters/REST/endpoints/raw.ts ***! - \****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ http: function() { return /* binding */ http; }, -/* harmony export */ patch: function() { return /* binding */ patch; }, -/* harmony export */ post: function() { return /* binding */ post; }, -/* harmony export */ put: function() { return /* binding */ put; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -function getBaseUrl(http) { - var _http$defaults$baseUR; - return (_http$defaults$baseUR = http.defaults.baseURL) === null || _http$defaults$baseUR === void 0 ? void 0 : _http$defaults$baseUR.split('/spaces')[0]; -} -function get(http, url, config) { - return http.get(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function patch(http, url, payload, config) { - return http.patch(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function post(http, url, payload, config) { - return http.post(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function put(http, url, payload, config) { - return http.put(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function del(http, url, config) { - return http.delete(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function http(http, url, config) { - return http(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(function (response) { - return response.data; - }, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} - -/***/ }), - -/***/ "./adapters/REST/endpoints/release-action.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/release-action.ts ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ queryForRelease: function() { return /* binding */ queryForRelease; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/actions/").concat(params.actionId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/release_actions"), { - params: params.query - }); -}; -var queryForRelease = function queryForRelease(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/release_actions"), { - params: _objectSpread({ - 'sys.release.sys.id[in]': params.releaseId - }, params.query) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/release.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/release.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: function() { return /* binding */ archive; }, -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ publish: function() { return /* binding */ publish; }, -/* harmony export */ query: function() { return /* binding */ query; }, -/* harmony export */ unarchive: function() { return /* binding */ unarchive; }, -/* harmony export */ unpublish: function() { return /* binding */ unpublish; }, -/* harmony export */ update: function() { return /* binding */ update; }, -/* harmony export */ validate: function() { return /* binding */ validate; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId)); -}; -var query = function query(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases"), { - params: params.query - }); -}; -var create = function create(http, params, payload) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases"), payload); -}; -var update = function update(http, params, payload, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId), payload, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId)); -}; -var publish = function publish(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/published"), null, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -var unpublish = function unpublish(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/published"), { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -var validate = function validate(http, params, payload) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/validate"), payload); -}; -var archive = function archive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/archived"), null, { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; -var unarchive = function unarchive(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/archived"), { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/role.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/role.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/roles/").concat(params.roleId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/roles"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/roles"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces/".concat(params.spaceId, "/roles"), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, data, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/roles/").concat(params.roleId), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/roles/").concat(params.roleId), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/roles/").concat(params.roleId)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/scheduled-action.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/scheduled-action.ts ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/scheduled_actions/").concat(params.scheduledActionId), { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/scheduled_actions"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, data) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/spaces/".concat(params.spaceId, "/scheduled_actions"), data); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/spaces/".concat(params.spaceId, "/scheduled_actions/").concat(params.scheduledActionId), { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -var update = function update(http, params, data) { - var _data$environment; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/spaces/".concat(params.spaceId, "/scheduled_actions/").concat(params.scheduledActionId), data, { - params: { - 'environment.sys.id': (_data$environment = data.environment) === null || _data$environment === void 0 ? void 0 : _data$environment.sys.id - }, - headers: { - 'X-Contentful-Version': params.version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/snapshot.ts": -/*!*********************************************!*\ - !*** ./adapters/REST/endpoints/snapshot.ts ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getForContentType: function() { return /* binding */ getForContentType; }, -/* harmony export */ getForEntry: function() { return /* binding */ getForEntry; }, -/* harmony export */ getManyForContentType: function() { return /* binding */ getManyForContentType; }, -/* harmony export */ getManyForEntry: function() { return /* binding */ getManyForEntry; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -var getBaseEntryUrl = function getBaseEntryUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/snapshots"); -}; -var getEntryUrl = function getEntryUrl(params) { - return getBaseEntryUrl(params) + "/".concat(params.snapshotId); -}; -var getManyForEntry = function getManyForEntry(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseEntryUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var getForEntry = function getForEntry(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getEntryUrl(params)); -}; -var getBaseContentTypeUrl = function getBaseContentTypeUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/content_types/").concat(params.contentTypeId, "/snapshots"); -}; -var getContentTypeUrl = function getContentTypeUrl(params) { - return getBaseContentTypeUrl(params) + "/".concat(params.snapshotId); -}; -var getManyForContentType = function getManyForContentType(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseContentTypeUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -var getForContentType = function getForContentType(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getContentTypeUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/space-member.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/space-member.ts ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/space_members/").concat(params.spaceMemberId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/space_members"), { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/space-membership.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/space-membership.ts ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getForOrganization: function() { return /* binding */ getForOrganization; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -function spaceMembershipDeprecationWarning() { - console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)'); -} -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/space_memberships"); -}; -var getEntityUrl = function getEntityUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.spaceMembershipId); -}; -var get = function get(http, params) { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -var getMany = function getMany(http, params) { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var getForOrganization = function getForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/space_memberships/").concat(params.spaceMembershipId)); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/space_memberships"), { - params: params.query - }); -}; -var create = function create(http, params, data, headers) { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, data, headers) { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/space.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/space.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces", { - params: params.query - }); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/spaces"), { - params: params.query - }); -}; -var create = function create(http, params, payload, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, "/spaces", payload, { - headers: params.organizationId ? _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Organization': params.organizationId - }) : headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/tag.ts": -/*!****************************************!*\ - !*** ./adapters/REST/endpoints/tag.ts ***! - \****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -var _excluded = ["version"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/tags"); -}; -var getTagUrl = function getTagUrl(params) { - return getBaseUrl(params) + "/".concat(params.tagId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getTagUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var createWithId = function createWithId(http, params, rawData) { - var _rawData$sys$visibili; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTagUrl(params), data, { - headers: { - 'X-Contentful-Tag-Visibility': (_rawData$sys$visibili = rawData.sys.visibility) !== null && _rawData$sys$visibili !== void 0 ? _rawData$sys$visibili : 'private' - } - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTagUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, _ref) { - var version = _ref.version, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getTagUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/task.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/task.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getAll: function() { return /* binding */ getAll; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -var _excluded = ["version"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/tasks"); -}; -var getTaskUrl = function getTaskUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.taskId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getTaskUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; - -/** - * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons. - */ -var getAll = getMany; -var create = function create(http, params, rawData) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTaskUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, _ref) { - var version = _ref.version, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getTaskUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/team-membership.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/team-membership.ts ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ getManyForTeam: function() { return /* binding */ getManyForTeam; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/teams/").concat(params.teamId, "/team_memberships"); -}; -var getEntityUrl = function getEntityUrl(params) { - return "/organizations/".concat(params.organizationId, "/teams/").concat(params.teamId, "/team_memberships/").concat(params.teamMembershipId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/team_memberships"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getManyForTeam = function getManyForTeam(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/team-space-membership.ts": -/*!**********************************************************!*\ - !*** ./adapters/REST/endpoints/team-space-membership.ts ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getForOrganization: function() { return /* binding */ getForOrganization; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/team_space_memberships"); -}; -var getEntityUrl = function getEntityUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.teamSpaceMembershipId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -var getForOrganization = function getForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/team_space_memberships/").concat(params.teamSpaceMembershipId)); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - var query = params.query || {}; - if (params.teamId) { - query['sys.team.sys.id'] = params.teamId; - } - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/organizations/".concat(params.organizationId, "/team_space_memberships"), { - params: params.query - }); -}; -var create = function create(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers: _objectSpread({ - 'x-contentful-team': params.teamId - }, headers) - }); -}; -var update = function update(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0, - 'x-contentful-team': rawData.sys.team.sys.id - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/team.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/team.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyForSpace: function() { return /* binding */ getManyForSpace; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/organizations/".concat(params.organizationId, "/teams"); -}; -var getEntityUrl = function getEntityUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.teamId); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getManyForSpace = function getManyForSpace(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, "/spaces/".concat(params.spaceId, "/teams"), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var create = function create(http, params, rawData, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/ui-config.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/ui-config.ts ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); - - -var getUrl = function getUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/ui_config"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getUrl(params)); -}; -var update = function update(http, params, rawData) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getUrl(params), data, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/upload.ts": -/*!*******************************************!*\ - !*** ./adapters/REST/endpoints/upload.ts ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; } -/* harmony export */ }); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -var getBaseUploadUrl = function getBaseUploadUrl(params) { - var spacePath = "/spaces/".concat(params.spaceId, "/uploads"); - var environmentPath = "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/uploads"); - var path = params.environmentId ? environmentPath : spacePath; - return path; -}; -var getEntityUploadUrl = function getEntityUploadUrl(params) { - var path = getBaseUploadUrl(params); - return path + "/".concat(params.uploadId); -}; -var create = function create(http, params, data) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - var file = data.file; - if (!file) { - return Promise.reject(new Error('Unable to locate a file to upload.')); - } - var path = getBaseUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(httpUpload, path, file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; -var del = function del(http, params) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - var path = getEntityUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(httpUpload, path); -}; -var get = function get(http, params) { - var httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - var path = getEntityUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(httpUpload, path); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/usage.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/usage.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ getManyForSpace: function() { return /* binding */ getManyForSpace; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var getManyForSpace = function getManyForSpace(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/space_periodic_usages"), { - params: params.query - }); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/organization_periodic_usages"), { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/user-ui-config.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/user-ui-config.ts ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -var getUrl = function getUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/ui_config/me"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getUrl(params)); -}; -var update = function update(http, params, rawData) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getUrl(params), data, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/user.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/user.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getCurrent: function() { return /* binding */ getCurrent; }, -/* harmony export */ getForOrganization: function() { return /* binding */ getForOrganization; }, -/* harmony export */ getForSpace: function() { return /* binding */ getForSpace; }, -/* harmony export */ getManyForOrganization: function() { return /* binding */ getManyForOrganization; }, -/* harmony export */ getManyForSpace: function() { return /* binding */ getManyForSpace; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var getForSpace = function getForSpace(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/users/").concat(params.userId)); -}; -var getCurrent = function getCurrent(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/users/me", { - params: params === null || params === void 0 ? void 0 : params.query - }); -}; -var getManyForSpace = function getManyForSpace(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/users"), { - params: params.query - }); -}; -var getForOrganization = function getForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/users/").concat(params.userId)); -}; -var getManyForOrganization = function getManyForOrganization(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/organizations/".concat(params.organizationId, "/users"), { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/utils.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/utils.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ normalizeSelect: function() { return /* binding */ normalizeSelect; }, -/* harmony export */ normalizeSpaceId: function() { return /* binding */ normalizeSpaceId; } -/* harmony export */ }); -var _excluded = ["spaceId"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function normalizeSelect(query) { - if (query && query.select && !/sys/i.test(query.select)) { - return _objectSpread(_objectSpread({}, query), {}, { - select: query.select + ',sys' - }); - } - return query; -} -function normalizeSpaceId(query) { - if (query && query.spaceId) { - var spaceId = query.spaceId, - rest = _objectWithoutProperties(query, _excluded); - return _objectSpread(_objectSpread({}, rest), {}, { - 'sys.space.sys.id[in]': spaceId - }); - } - return query; -} - -/***/ }), - -/***/ "./adapters/REST/endpoints/webhook.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/webhook.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ createWithId: function() { return /* binding */ createWithId; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ deleteRetryPolicy: function() { return /* binding */ deleteRetryPolicy; }, -/* harmony export */ deleteSigningSecret: function() { return /* binding */ deleteSigningSecret; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getCallDetails: function() { return /* binding */ getCallDetails; }, -/* harmony export */ getHealthStatus: function() { return /* binding */ getHealthStatus; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ getManyCallDetails: function() { return /* binding */ getManyCallDetails; }, -/* harmony export */ getRetryPolicy: function() { return /* binding */ getRetryPolicy; }, -/* harmony export */ getSigningSecret: function() { return /* binding */ getSigningSecret; }, -/* harmony export */ update: function() { return /* binding */ update; }, -/* harmony export */ upsertRetryPolicy: function() { return /* binding */ upsertRetryPolicy; }, -/* harmony export */ upsertSigningSecret: function() { return /* binding */ upsertSigningSecret; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/webhook_definitions"); -}; -var getWebhookCallBaseUrl = function getWebhookCallBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/webhooks"); -}; -var getWebhookUrl = function getWebhookUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.webhookDefinitionId); -}; -var getWebhookCallUrl = function getWebhookCallUrl(params) { - return "".concat(getWebhookCallBaseUrl(params), "/").concat(params.webhookDefinitionId, "/calls"); -}; -var getWebhookCallDetailsUrl = function getWebhookCallDetailsUrl(params) { - return "".concat(getWebhookCallBaseUrl(params), "/").concat(params.webhookDefinitionId, "/calls/").concat(params.callId); -}; -var getWebhookHealthUrl = function getWebhookHealthUrl(params) { - return "".concat(getWebhookCallBaseUrl(params), "/").concat(params.webhookDefinitionId, "/health"); -}; -var getWebhookSettingsUrl = function getWebhookSettingsUrl(params) { - return "/spaces/".concat(params.spaceId, "/webhook_settings"); -}; -var getWebhookSigningSecretUrl = function getWebhookSigningSecretUrl(params) { - return "".concat(getWebhookSettingsUrl(params), "/signing_secret"); -}; -var getWebhookRetryPolicyUrl = function getWebhookRetryPolicyUrl(params) { - return "".concat(getWebhookSettingsUrl(params), "/retry_policy"); -}; -var get = function get(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookUrl(params)); -}; -var getManyCallDetails = function getManyCallDetails(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookCallUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getCallDetails = function getCallDetails(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookCallDetailsUrl(params)); -}; -var getHealthStatus = function getHealthStatus(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookHealthUrl(params)); -}; -var getMany = function getMany(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -var getSigningSecret = function getSigningSecret(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookSigningSecretUrl(params)); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -var getRetryPolicy = function getRetryPolicy(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookRetryPolicyUrl(params)); -}; -var create = function create(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers: headers - }); -}; -var createWithId = function createWithId(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookUrl(params), data, { - headers: headers - }); -}; -var update = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(http, params, rawData, headers) { - var _rawData$sys$version; - var data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _context.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - })); - case 3: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function update(_x, _x2, _x3, _x4) { - return _ref.apply(this, arguments); - }; -}(); -var upsertSigningSecret = /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(http, params, rawData) { - var data; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _context2.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookSigningSecretUrl(params), data)); - case 2: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return function upsertSigningSecret(_x5, _x6, _x7) { - return _ref2.apply(this, arguments); - }; -}(); - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -var upsertRetryPolicy = /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(http, params, rawData) { - var data; - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _context3.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookRetryPolicyUrl(params), data)); - case 2: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - return function upsertRetryPolicy(_x8, _x9, _x10) { - return _ref3.apply(this, arguments); - }; -}(); -var del = function del(http, params) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookUrl(params)); -}; -var deleteSigningSecret = /*#__PURE__*/function () { - var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(http, params) { - return _regeneratorRuntime().wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - return _context4.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookSigningSecretUrl(params))); - case 1: - case "end": - return _context4.stop(); - } - }, _callee4); - })); - return function deleteSigningSecret(_x11, _x12) { - return _ref4.apply(this, arguments); - }; -}(); - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -var deleteRetryPolicy = /*#__PURE__*/function () { - var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(http, params) { - return _regeneratorRuntime().wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - return _context5.abrupt("return", _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookRetryPolicyUrl(params))); - case 1: - case "end": - return _context5.stop(); - } - }, _callee5); - })); - return function deleteRetryPolicy(_x13, _x14) { - return _ref5.apply(this, arguments); - }; -}(); - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflow-definition.ts": -/*!********************************************************!*\ - !*** ./adapters/REST/endpoints/workflow-definition.ts ***! - \********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -var _excluded = ["version"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/workflow_definitions"); -}; -var getWorkflowDefinitionUrl = function getWorkflowDefinitionUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.workflowDefinitionId); -}; -var get = function get(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWorkflowDefinitionUrl(params), { - headers: headers - }); -}; -var getMany = function getMany(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - headers: headers, - params: params.query - }); -}; -var create = function create(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWorkflowDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, _ref, headers) { - var version = _ref.version, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWorkflowDefinitionUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflow.ts": -/*!*********************************************!*\ - !*** ./adapters/REST/endpoints/workflow.ts ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ complete: function() { return /* binding */ complete; }, -/* harmony export */ create: function() { return /* binding */ create; }, -/* harmony export */ del: function() { return /* binding */ del; }, -/* harmony export */ getMany: function() { return /* binding */ getMany; }, -/* harmony export */ update: function() { return /* binding */ update; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -var _excluded = ["version"], - _excluded2 = ["version"]; -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/workflows"); -}; -var getWorkflowUrl = function getWorkflowUrl(params) { - return "".concat(getBaseUrl(params), "/").concat(params.workflowId); -}; -var completeWorkflowUrl = function completeWorkflowUrl(params) { - return "".concat(getWorkflowUrl(params), "/complete"); -}; -var getMany = function getMany(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - headers: headers, - params: params.query - }); -}; -var create = function create(http, params, rawData, headers) { - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers: headers - }); -}; -var update = function update(http, params, rawData, headers) { - var _rawData$sys$version; - var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWorkflowUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -var del = function del(http, _ref, headers) { - var version = _ref.version, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWorkflowUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; -var complete = function complete(http, _ref2, headers) { - var version = _ref2.version, - params = _objectWithoutProperties(_ref2, _excluded2); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, completeWorkflowUrl(params), null, { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflows-changelog.ts": -/*!********************************************************!*\ - !*** ./adapters/REST/endpoints/workflows-changelog.ts ***! - \********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getMany: function() { return /* binding */ getMany; } -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -var getBaseUrl = function getBaseUrl(params) { - return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/workflows_changelog"); -}; -var getMany = function getMany(http, params, headers) { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - headers: headers, - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/rest-adapter.ts": -/*!***************************************!*\ - !*** ./adapters/REST/rest-adapter.ts ***! - \***************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ RestAdapter: function() { return /* binding */ RestAdapter; } -/* harmony export */ }); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "../node_modules/axios/lib/axios.js"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./endpoints */ "./adapters/REST/endpoints/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -var defaultHostParameters = { - defaultHostname: 'api.contentful.com', - defaultHostnameUpload: 'upload.contentful.com' -}; -var RestAdapter = /*#__PURE__*/function () { - function RestAdapter(params) { - _classCallCheck(this, RestAdapter); - _defineProperty(this, "params", void 0); - _defineProperty(this, "axiosInstance", void 0); - if (!params.accessToken) { - throw new TypeError('Expected parameter accessToken'); - } - this.params = _objectSpread(_objectSpread({}, defaultHostParameters), (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(params)); - this.axiosInstance = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_3__["default"], _objectSpread(_objectSpread({}, this.params), {}, { - headers: _objectSpread(_objectSpread({ - 'Content-Type': 'application/vnd.contentful.management.v1+json' - }, params.userAgent ? { - 'X-Contentful-User-Agent': params.userAgent - } : {}), this.params.headers) - })); - } - return _createClass(RestAdapter, [{ - key: "makeRequest", - value: function () { - var _makeRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) { - var _endpoints$entityType; - var entityType, actionInput, params, payload, headers, userAgent, action, endpoint; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - entityType = _ref.entityType, actionInput = _ref.action, params = _ref.params, payload = _ref.payload, headers = _ref.headers, userAgent = _ref.userAgent; - // `delete` is a reserved keyword. Therefore, the methods are called `del`. - action = actionInput === 'delete' ? 'del' : actionInput; - endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_2__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action]; - if (!(endpoint === undefined)) { - _context.next = 5; - break; - } - throw new Error('Unknown endpoint'); - case 5: - _context.next = 7; - return endpoint(this.axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? { - 'X-Contentful-User-Agent': userAgent - } : {})); - case 7: - return _context.abrupt("return", _context.sent); - case 8: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function makeRequest(_x) { - return _makeRequest.apply(this, arguments); - } - return makeRequest; - }() - }]); -}(); - -/***/ }), - -/***/ "./common-types.ts": -/*!*************************!*\ - !*** ./common-types.ts ***! - \*************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ScheduledActionReferenceFilters: function() { return /* binding */ ScheduledActionReferenceFilters; } -/* harmony export */ }); -/** - * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve - */ - -/** - * ResourceLink is a reference object to another entity outside of the current space/environment - */ - -/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */ - -/* eslint-disable @typescript-eslint/no-explicit-any */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface - -var ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) { - ScheduledActionReferenceFilters["contentTypeAnnotationNotIn"] = "sys.contentType.metadata.annotations.ContentType[nin]"; - return ScheduledActionReferenceFilters; -}({}); - -/***/ }), - -/***/ "./common-utils.ts": -/*!*************************!*\ - !*** ./common-utils.ts ***! - \*************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isSuccessful: function() { return /* binding */ isSuccessful; }, -/* harmony export */ shouldRePoll: function() { return /* binding */ shouldRePoll; }, -/* harmony export */ waitFor: function() { return /* binding */ waitFor; }, -/* harmony export */ wrapCollection: function() { return /* binding */ wrapCollection; }, -/* harmony export */ wrapCursorPaginatedCollection: function() { return /* binding */ wrapCursorPaginatedCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -/* eslint-disable @typescript-eslint/ban-ts-comment */ - - - -/** - * @private - */ -var wrapCollection = function wrapCollection(fn) { - return function (makeRequest, data) { - for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - rest[_key - 2] = arguments[_key]; - } - var collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(function (entity) { - return fn.apply(void 0, [makeRequest, entity].concat(rest)); - }); - // @ts-expect-error - return collectionData; - }; -}; -var wrapCursorPaginatedCollection = function wrapCursorPaginatedCollection(fn) { - return function (makeRequest, data) { - for (var _len2 = arguments.length, rest = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - rest[_key2 - 2] = arguments[_key2]; - } - var collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(function (entity) { - return fn.apply(void 0, [makeRequest, entity].concat(rest)); - }); - // @ts-expect-error - return collectionData; - }; -}; -function isSuccessful(statusCode) { - return statusCode < 300; -} -function shouldRePoll(statusCode) { - return [404, 422, 429, 400].includes(statusCode); -} -function waitFor() { - return _waitFor.apply(this, arguments); -} -function _waitFor() { - _waitFor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var ms, - _args = arguments; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - ms = _args.length > 0 && _args[0] !== undefined ? _args[0] : 1000; - return _context.abrupt("return", new Promise(function (resolve) { - return setTimeout(resolve, ms); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - })); - return _waitFor.apply(this, arguments); -} - -/***/ }), - -/***/ "./constants/editor-interface-defaults/controls-defaults.ts": -/*!******************************************************************!*\ - !*** ./constants/editor-interface-defaults/controls-defaults.ts ***! - \******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULTS_SETTINGS: function() { return /* binding */ DEFAULTS_SETTINGS; }, -/* harmony export */ DEFAULTS_WIDGET: function() { return /* binding */ DEFAULTS_WIDGET; }, -/* harmony export */ FIELD_TYPES: function() { return /* binding */ FIELD_TYPES; }, -/* harmony export */ "default": function() { return /* binding */ getDefaultControlOfField; }, -/* harmony export */ toApiFieldType: function() { return /* binding */ toApiFieldType; }, -/* harmony export */ toInternalFieldType: function() { return /* binding */ toInternalFieldType; } -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -var DROPDOWN_TYPES = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']; -var INTERNAL_TO_API = { - Symbol: { - type: 'Symbol' - }, - Text: { - type: 'Text' - }, - RichText: { - type: 'RichText' - }, - Integer: { - type: 'Integer' - }, - Number: { - type: 'Number' - }, - Boolean: { - type: 'Boolean' - }, - Date: { - type: 'Date' - }, - Location: { - type: 'Location' - }, - Object: { - type: 'Object' - }, - File: { - type: 'File' - }, - Entry: { - type: 'Link', - linkType: 'Entry' - }, - Asset: { - type: 'Link', - linkType: 'Asset' - }, - Resource: { - type: 'ResourceLink' - }, - Symbols: { - type: 'Array', - items: { - type: 'Symbol' - } - }, - Entries: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Entry' - } - }, - Assets: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Asset' - } - }, - Resources: { - type: 'Array', - items: { - type: 'ResourceLink' - } - } -}; -var FIELD_TYPES = Object.keys(INTERNAL_TO_API); - -/** - * Returns an internal string identifier for an API field object. - * - * We use this string as a simplified reference to field types. - * Possible values are: - * - * - Symbol - * - Symbols - * - Text - * - RichText - * - Integer - * - Number - * - Boolean - * - Date - * - Location - * - Object - * - Entry - * - Entries - * - Asset - * - Assets - * - File - */ -function toInternalFieldType(api) { - return FIELD_TYPES.find(function (key) { - var internalApi = INTERNAL_TO_API[key]; - var stripped = { - type: api.type, - linkType: api.linkType, - items: api.items - }; - if (stripped.items) { - stripped.items = { - type: stripped.items.type, - linkType: stripped.items.linkType - }; - } - if (internalApi.type === 'Link') { - return internalApi.linkType === stripped.linkType; - } - if (internalApi.type === 'Array' && internalApi.items && stripped.items) { - if (internalApi.items.type === 'Link') { - return internalApi.items.linkType === stripped.items.linkType; - } - return internalApi.items.type === stripped.items.type; - } - return internalApi.type === stripped.type; - }); -} -var DEFAULTS_WIDGET = { - Text: { - widgetId: 'markdown' - }, - Symbol: { - widgetId: 'singleLine' - }, - Integer: { - widgetId: 'numberEditor' - }, - Number: { - widgetId: 'numberEditor' - }, - Boolean: { - widgetId: 'boolean' - }, - Date: { - widgetId: 'datePicker' - }, - Location: { - widgetId: 'locationEditor' - }, - Object: { - widgetId: 'objectEditor' - }, - RichText: { - widgetId: 'richTextEditor' - }, - Entry: { - widgetId: 'entryLinkEditor' - }, - Asset: { - widgetId: 'assetLinkEditor' - }, - Symbols: { - widgetId: 'tagEditor' - }, - Entries: { - widgetId: 'entryLinksEditor' - }, - Assets: { - widgetId: 'assetLinksEditor' - }, - File: { - widgetId: 'fileEditor' - }, - Resource: { - widgetId: 'resourceLinkEditor' - }, - Resources: { - widgetId: 'resourceLinksEditor' - } -}; -var DEFAULTS_SETTINGS = { - Boolean: { - falseLabel: 'No', - helpText: null, - trueLabel: 'Yes' - }, - Date: { - helpText: null, - ampm: '24', - format: 'timeZ' - }, - Entry: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Asset: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Entries: { - helpText: null, - bulkEditing: false, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Assets: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - } -}; -function getDefaultWidget(field, fieldId) { - var defaultWidget = _objectSpread(_objectSpread({}, DEFAULTS_WIDGET[field]), {}, { - settings: { - helpText: null - }, - widgetNamespace: 'builtin', - fieldId: fieldId - }); - if ((0,_types__WEBPACK_IMPORTED_MODULE_0__.in_)(field, DEFAULTS_SETTINGS)) { - defaultWidget.settings = _objectSpread(_objectSpread({}, defaultWidget.settings), DEFAULTS_SETTINGS[field]); - } - return defaultWidget; -} - -/** - * Given our internal identifier returns a minimal API field object. - */ -function toApiFieldType(internal) { - return INTERNAL_TO_API[internal]; -} - -/* - * Gets the default widget ID for a field: - * - If a field allows predefined values then `dropdown` widget is used - * in the presence of the `in` validation. - * - If a Text field is a title then the `singleLine` widget is used. - * - Otherwise a simple type-to-editor mapping is used. - */ -function getDefaultControlOfField(field) { - var fieldType = toInternalFieldType(field); - if (!fieldType) { - throw new Error('Invalid field type'); - } - var hasInValidation = (field.validations || []).find(function (v) { - return 'in' in v; - }); - if (hasInValidation && DROPDOWN_TYPES.includes(fieldType)) { - return { - widgetId: 'dropdown', - fieldId: field.id, - widgetNameSpace: 'builtin' - }; - } - return getDefaultWidget(fieldType, field.id); -} - -/***/ }), - -/***/ "./constants/editor-interface-defaults/editors-defaults.ts": -/*!*****************************************************************!*\ - !*** ./constants/editor-interface-defaults/editors-defaults.ts ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ EntryConfiguration: function() { return /* binding */ EntryConfiguration; }, -/* harmony export */ EntryEditorWidgetTypes: function() { return /* binding */ EntryEditorWidgetTypes; } -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); - -var EntryEditorWidgetTypes = { - DEFAULT_EDITOR: { - name: 'Editor', - id: _types__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_EDITOR_ID, - icon: 'Entry' - }, - REFERENCE_TREE: { - name: 'References', - id: 'reference-tree', - icon: 'References' - }, - TAGS_EDITOR: { - name: 'Tags', - id: 'tags-editor', - icon: 'Tags' - } -}; -var DefaultEntryEditor = { - widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name -}; -var ReferencesEntryEditor = { - widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.REFERENCE_TREE.name -}; -var TagsEditor = { - widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.TAGS_EDITOR.name -}; -var EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]; - -/***/ }), - -/***/ "./constants/editor-interface-defaults/index.ts": -/*!******************************************************!*\ - !*** ./constants/editor-interface-defaults/index.ts ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sidebar-defaults */ "./constants/editor-interface-defaults/sidebar-defaults.ts"); -/* harmony import */ var _editors_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editors-defaults */ "./constants/editor-interface-defaults/editors-defaults.ts"); -/* harmony import */ var _controls_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controls-defaults */ "./constants/editor-interface-defaults/controls-defaults.ts"); - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - SidebarEntryConfiguration: _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__.SidebarEntryConfiguration, - SidebarAssetConfiguration: _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__.SidebarAssetConfiguration, - EntryConfiguration: _editors_defaults__WEBPACK_IMPORTED_MODULE_1__.EntryConfiguration, - getDefaultControlOfField: _controls_defaults__WEBPACK_IMPORTED_MODULE_2__["default"] -}); - -/***/ }), - -/***/ "./constants/editor-interface-defaults/sidebar-defaults.ts": -/*!*****************************************************************!*\ - !*** ./constants/editor-interface-defaults/sidebar-defaults.ts ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SidebarAssetConfiguration: function() { return /* binding */ SidebarAssetConfiguration; }, -/* harmony export */ SidebarEntryConfiguration: function() { return /* binding */ SidebarEntryConfiguration; } -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); - -var SidebarWidgetTypes = { - USERS: 'users-widget', - CONTENT_PREVIEW: 'content-preview-widget', - TRANSLATION: 'translation-widget', - INCOMING_LINKS: 'incoming-links-widget', - PUBLICATION: 'publication-widget', - RELEASES: 'releases-widget', - VERSIONS: 'versions-widget', - INFO_PANEL: 'info-panel', - JOBS: 'jobs-widget', - COMMENTS_PANEL: 'comments-panel' -}; -var Publication = { - widgetId: SidebarWidgetTypes.PUBLICATION, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Publish & Status', - description: 'Built-in - View entry status, publish, etc.' -}; -var Releases = { - widgetId: SidebarWidgetTypes.RELEASES, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Release', - description: 'Built-in - View release, add to it, etc.' -}; -var ContentPreview = { - widgetId: SidebarWidgetTypes.CONTENT_PREVIEW, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Preview', - description: 'Built-in - Displays preview functionality.' -}; -var Links = { - widgetId: SidebarWidgetTypes.INCOMING_LINKS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Links', - description: 'Built-in - Shows where an entry is linked.' -}; -var Translation = { - widgetId: SidebarWidgetTypes.TRANSLATION, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Translation', - description: 'Built-in - Manage which translations are visible.' -}; -var Versions = { - widgetId: SidebarWidgetTypes.VERSIONS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Versions', - description: 'Built-in - View previously published versions. Available only for master environment.' -}; -var Users = { - widgetId: SidebarWidgetTypes.USERS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Users', - description: 'Built-in - Displays users on the same entry.' -}; -var SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users]; -var SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users]; - -/***/ }), - -/***/ "./constants/editor-interface-defaults/types.ts": -/*!******************************************************!*\ - !*** ./constants/editor-interface-defaults/types.ts ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULT_EDITOR_ID: function() { return /* binding */ DEFAULT_EDITOR_ID; }, -/* harmony export */ WidgetNamespace: function() { return /* binding */ WidgetNamespace; }, -/* harmony export */ in_: function() { return /* binding */ in_; } -/* harmony export */ }); -var WidgetNamespace = /*#__PURE__*/function (WidgetNamespace) { - WidgetNamespace["BUILTIN"] = "builtin"; - WidgetNamespace["EXTENSION"] = "extension"; - WidgetNamespace["SIDEBAR_BUILTIN"] = "sidebar-builtin"; - WidgetNamespace["APP"] = "app"; - WidgetNamespace["EDITOR_BUILTIN"] = "editor-builtin"; - return WidgetNamespace; -}({}); -var DEFAULT_EDITOR_ID = 'default-editor'; - -/** - * @private - */ -var in_ = function in_(key, object) { - return key in object; -}; - -/***/ }), - -/***/ "./create-adapter.ts": -/*!***************************!*\ - !*** ./create-adapter.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createAdapter: function() { return /* binding */ createAdapter; } -/* harmony export */ }); -/* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts"); -/** - * @packageDocumentation - * @hidden - */ - - -/** - * @private - */ -function createAdapter(params) { - if ('apiAdapter' in params) { - return params.apiAdapter; - } else { - return new _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_0__.RestAdapter(params); - } -} - -/***/ }), - -/***/ "./create-app-definition-api.ts": -/*!**************************************!*\ - !*** ./create-app-definition-api.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createAppDefinitionApi; } -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/* harmony import */ var _entities_app_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities/app-definition */ "./entities/app-definition.ts"); - - - -/** - * @private - */ - -/** - * @private - */ -function createAppDefinitionApi(makeRequest) { - var _entities$appBundle = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].appBundle, - wrapAppBundle = _entities$appBundle.wrapAppBundle, - wrapAppBundleCollection = _entities$appBundle.wrapAppBundleCollection; - var getParams = function getParams(data) { - return { - appDefinitionId: data.sys.id, - organizationId: data.sys.organization.sys.id - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => { - * appDefinition.name = 'New App Definition name' - * return appDefinition.update() - * }) - * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'update', - params: getParams(data), - headers: {}, - payload: data - }).then(function (data) { - return (0,_entities_app_definition__WEBPACK_IMPORTED_MODULE_1__.wrapAppDefinition)(makeRequest, data); - }); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.delete()) - * .then(() => console.log(`App Definition deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'delete', - params: getParams(data) - }); - }, - /** - * Gets an app bundle - * @param id - AppBundle ID - * @return Promise for an AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - getAppBundle: function getAppBundle(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'get', - params: { - appBundleId: id, - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - } - }).then(function (data) { - return wrapAppBundle(makeRequest, data); - }); - }, - /** - * Gets a collection of AppBundles - * @return Promise for a collection of AppBundles - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppBundles: function getAppBundles() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'getMany', - params: { - organizationId: raw.sys.organization.sys.id, - appDefinitionId: raw.sys.id, - query: query - } - }).then(function (data) { - return wrapAppBundleCollection(makeRequest, data); - }); - }, - /** - * Creates an app bundle - * @param Object representation of the App Bundle to be created - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.createAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - createAppBundle: function createAppBundle(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'create', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - }, - payload: data - }).then(function (data) { - return wrapAppBundle(makeRequest, data); - }); - }, - /** - * Gets a list of App Installations across an org for given organization and App Definition - * If a spaceId is provided in the query object, it will return the App Installations for that specific space. - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getAppDefinition('', '') - * .then((appDefinition) => appDefinition.getInstallationsForOrg( - * { spaceId: '' } // optional - * )) - * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items)) - * .catch(console.error) - * ``` - */ - getInstallationsForOrg: function getInstallationsForOrg() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getInstallationsForOrg', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id, - query: query - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-contentful-api.ts": -/*!**********************************!*\ - !*** ./create-contentful-api.ts ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createClientApi; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -var _excluded = ["url"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - -/** - * @private - */ -function createClientApi(makeRequest) { - var _entities$space = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space, - wrapSpace = _entities$space.wrapSpace, - wrapSpaceCollection = _entities$space.wrapSpaceCollection; - var wrapUser = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user.wrapUser; - var _entities$personalAcc = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].personalAccessToken, - wrapPersonalAccessToken = _entities$personalAcc.wrapPersonalAccessToken, - wrapPersonalAccessTokenCollection = _entities$personalAcc.wrapPersonalAccessTokenCollection; - var _entities$accessToken = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].accessToken, - wrapAccessToken = _entities$accessToken.wrapAccessToken, - wrapAccessTokenCollection = _entities$accessToken.wrapAccessTokenCollection; - var _entities$organizatio = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organization, - wrapOrganization = _entities$organizatio.wrapOrganization, - wrapOrganizationCollection = _entities$organizatio.wrapOrganizationCollection; - var wrapUsageCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].usage.wrapUsageCollection; - var wrapAppDefinition = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDefinition.wrapAppDefinition; - var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate, - wrapEnvironmentTemplate = _entities$environment.wrapEnvironmentTemplate, - wrapEnvironmentTemplateCollection = _entities$environment.wrapEnvironmentTemplateCollection; - return { - /** - * Gets all environment templates for a given organization with the lasted version - * @param organizationId - Organization ID - * @return Promise for a collection of EnvironmentTemplates - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplates('') - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplates: function getEnvironmentTemplates(organizationId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'getMany', - params: { - organizationId: organizationId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapEnvironmentTemplateCollection(makeRequest, data, organizationId); - }); - }, - /** - * Gets the lasted version environment template if params.version is not specified - * @param params.organizationId - Organization ID - * @param params.environmentTemplateId - Environment template ID - * @param [params.version] - Template version number to return a specific version of the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate({ - * organizationId: '', - * environmentTemplateId: '', - * version: version> - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplate: function getEnvironmentTemplate(_ref) { - var organizationId = _ref.organizationId, - environmentTemplateId = _ref.environmentTemplateId, - version = _ref.version, - _ref$query = _ref.query, - query = _ref$query === void 0 ? {} : _ref$query; - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'get', - params: { - organizationId: organizationId, - environmentTemplateId: environmentTemplateId, - version: version, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapEnvironmentTemplate(makeRequest, data, organizationId); - }); - }, - /** - * Creates an environment template - * @param organizationId - Organization ID - * @param environmentTemplateData - Object representation of the environment template to be created - * @return Promise for the newly created EnvironmentTemplate - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createEnvironmentTemplate('', {}) - * .then((environmentTemplate) => console.log(environmentTemplate)) - * .catch(console.error) - * ``` - */ - createEnvironmentTemplate: function createEnvironmentTemplate(organizationId, environmentTemplateData) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'create', - params: { - organizationId: organizationId - }, - payload: environmentTemplateData - }).then(function (data) { - return wrapEnvironmentTemplate(makeRequest, data, organizationId); - }); - }, - /** - * Gets all spaces - * @return Promise for a collection of Spaces - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaces() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaces: function getSpaces() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return makeRequest({ - entityType: 'Space', - action: 'getMany', - params: { - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapSpaceCollection(makeRequest, data); - }); - }, - /** - * Gets a space - * @param spaceId - Space ID - * @return Promise for a Space - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getSpace: function getSpace(spaceId) { - return makeRequest({ - entityType: 'Space', - action: 'get', - params: { - spaceId: spaceId - } - }).then(function (data) { - return wrapSpace(makeRequest, data); - }); - }, - /** - * Creates a space - * @param spaceData - Object representation of the Space to be created - * @param organizationId - Organization ID, if the associated token can manage more than one organization. - * @return Promise for the newly created Space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createSpace({ - * name: 'Name of new space' - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - createSpace: function createSpace(spaceData, organizationId) { - return makeRequest({ - entityType: 'Space', - action: 'create', - params: { - organizationId: organizationId - }, - payload: spaceData - }).then(function (data) { - return wrapSpace(makeRequest, data); - }); - }, - /** - * Gets an organization - * @param id - Organization ID - * @return Promise for a Organization - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => console.log(org)) - * .catch(console.error) - * ``` - */ - getOrganization: function getOrganization(id) { - return makeRequest({ - entityType: 'Organization', - action: 'get', - params: { - organizationId: id - } - }).then(function (data) { - return wrapOrganization(makeRequest, data); - }); - }, - /** - * Gets a collection of Organizations - * @return Promise for a collection of Organizations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizations() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizations: function getOrganizations() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return makeRequest({ - entityType: 'Organization', - action: 'getMany', - params: { - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapOrganizationCollection(makeRequest, data); - }); - }, - /** - * Gets the authenticated user - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getCurrentUser() - * .then(user => console.log(user.firstName)) - * .catch(console.error) - * ``` - */ - getCurrentUser: function getCurrentUser(params) { - return makeRequest({ - entityType: 'User', - action: 'getCurrent', - params: params - }).then(function (data) { - return wrapUser(makeRequest, data); - }); - }, - /** - * Gets App Definition - * @return Promise for App Definition - * @param organizationId - Id of the organization where the app is installed - * @param appDefinitionId - Id of the app that will be returned - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAppDefinition(<'org_id'>, <'app_id'>) - * .then(appDefinition => console.log(appDefinition.name)) - * .catch(console.error) - * ``` - */ - - getAppDefinition: function getAppDefinition(params) { - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params: params - }).then(function (data) { - return wrapAppDefinition(makeRequest, data); - }); - }, - /** - * Creates a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createPersonalAccessToken( - * { - * "name": "My Token", - * "scope": [ - * "content_management_manage" - * ] - * } - * ) - * .then(personalAccessToken => console.log(personalAccessToken.token)) - * .catch(console.error) - * ``` - */ - createPersonalAccessToken: function createPersonalAccessToken(data) { - return makeRequest({ - /** - * When the `PersonalAccessToken` entity is removed, replace the `entityType` with `AccessToken` - * and update the action to `createPersonalToken` to ultilize the new entity called AccessToken. - */ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - payload: data - }).then(function (response) { - return wrapPersonalAccessToken(makeRequest, response); - }); - }, - /** - * @deprecated - use getAccessToken instead - * - * Gets a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getPersonalAccessToken: function getPersonalAccessToken(tokenId) { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'get', - params: { - tokenId: tokenId - } - }).then(function (data) { - return wrapPersonalAccessToken(makeRequest, data); - }); - }, - /** - * @deprecated - use getAccessTokens instead - * - * Gets all personal access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getPersonalAccessTokens: function getPersonalAccessTokens() { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'getMany', - params: {} - }).then(function (data) { - return wrapPersonalAccessTokenCollection(makeRequest, data); - }); - }, - /** - * Gets a users access token - * @param data - users access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getAccessToken: function getAccessToken(tokenId) { - return makeRequest({ - entityType: 'AccessToken', - action: 'get', - params: { - tokenId: tokenId - } - }).then(function (data) { - return wrapAccessToken(makeRequest, data); - }); - }, - /** - * Gets all user access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getAccessTokens: function getAccessTokens() { - return makeRequest({ - entityType: 'AccessToken', - action: 'getMany', - params: {} - }).then(function (data) { - return wrapAccessTokenCollection(makeRequest, data); - }); - }, - /** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationAccessTokens(organizationId) - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getOrganizationAccessTokens: function getOrganizationAccessTokens(organizationId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return makeRequest({ - entityType: 'AccessToken', - action: 'getManyForOrganization', - params: { - organizationId: organizationId, - query: query - } - }).then(function (data) { - return wrapAccessTokenCollection(makeRequest, data); - }); - }, - /** - * Get organization usage grouped by {@link UsageMetricEnum metric} - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * @example ```javascript - * - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationUsage('', { - * 'metric[in]': 'cma,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2019-11-10' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizationUsage: function getOrganizationUsage(organizationId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return makeRequest({ - entityType: 'Usage', - action: 'getManyForOrganization', - params: { - organizationId: organizationId, - query: query - } - }).then(function (data) { - return wrapUsageCollection(makeRequest, data); - }); - }, - /** - * Get organization usage grouped by space and metric - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaceUsage('', { - * skip: 0, - * limit: 10, - * 'metric[in]': 'cda,cpa,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2020-11-30' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getSpaceUsage: function getSpaceUsage(organizationId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return makeRequest({ - entityType: 'Usage', - action: 'getManyForSpace', - params: { - organizationId: organizationId, - query: query - } - }).then(function (data) { - return wrapUsageCollection(makeRequest, data); - }); - }, - /** - * Make a custom request to the Contentful management API's /spaces endpoint - * @param opts - axios request options (https://github.com/mzabriskie/axios) - * @return Promise for the response data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.rawRequest({ - * method: 'GET', - * url: '/custom/path' - * }) - * .then((responseData) => console.log(responseData)) - * .catch(console.error) - * ``` - */ - rawRequest: function rawRequest(_ref2) { - var url = _ref2.url, - config = _objectWithoutProperties(_ref2, _excluded); - return makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url: url, - config: config - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-entry-api.ts": -/*!*****************************!*\ - !*** ./create-entry-api.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createEntryApi; } -/* harmony export */ }); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ - -/** - * @private - */ -function createEntryApi(makeRequest) { - var _entities$entry = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].entry, - wrapEntry = _entities$entry.wrapEntry, - wrapEntryCollection = _entities$entry.wrapEntryCollection; - var _entities$snapshot = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].snapshot, - wrapSnapshot = _entities$snapshot.wrapSnapshot, - wrapSnapshotCollection = _entities$snapshot.wrapSnapshotCollection; - var _entities$task = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].task, - wrapTask = _entities$task.wrapTask, - wrapTaskCollection = _entities$task.wrapTaskCollection; - var _entities$comment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].comment, - wrapComment = _entities$comment.wrapComment, - wrapCommentCollection = _entities$comment.wrapCommentCollection; - var getParams = function getParams(self) { - var entry = self.toPlainObject(); - return { - params: { - spaceId: entry.sys.space.sys.id, - environmentId: entry.sys.environment.sys.id, - entryId: entry.sys.id - }, - raw: entry - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => { - * entry.fields.title['en-US'] = 'New entry title' - * return entry.update() - * }) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - var _getParams = getParams(this), - raw = _getParams.raw, - params = _getParams.params; - return makeRequest({ - entityType: 'Entry', - action: 'update', - params: params, - payload: raw - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Sends an JSON patch to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.patch([ - * { - * op: 'replace', - * path: '/fields/title/en-US', - * value: 'New entry title' - * } - * ])) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - patch: function patch(ops) { - var _getParams2 = getParams(this), - raw = _getParams2.raw, - params = _getParams2.params; - return makeRequest({ - entityType: 'Entry', - action: 'patch', - params: _objectSpread(_objectSpread({}, params), {}, { - version: raw.sys.version - }), - payload: ops - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.delete()) - * .then(() => console.log(`Entry deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - var _getParams3 = getParams(this), - params = _getParams3.params; - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params: params - }); - }, - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.publish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} published.`)) - * .catch(console.error) - * ``` - */ - publish: function publish() { - var _getParams4 = getParams(this), - raw = _getParams4.raw, - params = _getParams4.params; - return makeRequest({ - entityType: 'Entry', - action: 'publish', - params: params, - payload: raw - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unpublish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`)) - * .catch(console.error) - * ``` - */ - - unpublish: function unpublish() { - var _getParams5 = getParams(this), - params = _getParams5.params; - return makeRequest({ - entityType: 'Entry', - action: 'unpublish', - params: params - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Archives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.archive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`)) - * .catch(console.error) - * ``` - */ - archive: function archive() { - var _getParams6 = getParams(this), - params = _getParams6.params; - return makeRequest({ - entityType: 'Entry', - action: 'archive', - params: params - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Unarchives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unarchive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`)) - * .catch(console.error) - * ``` - */ - unarchive: function unarchive() { - var _getParams7 = getParams(this), - params = _getParams7.params; - return makeRequest({ - entityType: 'Entry', - action: 'unarchive', - params: params - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Gets all snapshots of an entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshots()) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getSnapshots: function getSnapshots() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _getParams8 = getParams(this), - params = _getParams8.params; - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - query: query - }) - }).then(function (data) { - return wrapSnapshotCollection(makeRequest, data); - }); - }, - /** - * Gets a snapshot of an entry - * @param snapshotId - Id of the snapshot - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshot('')) - * .then((snapshot) => console.log(snapshot)) - * .catch(console.error) - * ``` - */ - getSnapshot: function getSnapshot(snapshotId) { - var _getParams9 = getParams(this), - params = _getParams9.params; - return makeRequest({ - entityType: 'Snapshot', - action: 'getForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId: snapshotId - }) - }).then(function (data) { - return wrapSnapshot(makeRequest, data); - }); - }, - /** - * Creates a new comment for an entry - * @param data Object representation of the Comment to be created - * @returns Promise for the newly created Comment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createComment({ - * body: 'Something left to do' - * })) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - createComment: function createComment(data) { - var _getParams10 = getParams(this), - params = _getParams10.params; - return makeRequest({ - entityType: 'Comment', - action: 'create', - params: { - spaceId: params.spaceId, - environmentId: params.environmentId, - parentEntityId: params.entryId, - parentEntityType: 'Entry' - }, - payload: data - }).then(function (data) { - return wrapComment(makeRequest, data); - }); - }, - /** - * Gets all comments of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComments()) - * .then((comments) => console.log(comments)) - * .catch(console.error) - * ``` - */ - getComments: function getComments() { - var _getParams11 = getParams(this), - params = _getParams11.params; - return makeRequest({ - entityType: 'Comment', - action: 'getMany', - params: params - }).then(function (data) { - return wrapCommentCollection(makeRequest, data); - }); - }, - /** - * Gets a comment of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComment(``)) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - getComment: function getComment(id) { - var _getParams12 = getParams(this), - params = _getParams12.params; - return makeRequest({ - entityType: 'Comment', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - commentId: id - }) - }).then(function (data) { - return wrapComment(makeRequest, data); - }); - }, - /** - * Creates a new task for an entry - * @param data Object representation of the Task to be created - * @returns Promise for the newly created Task - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createTask({ - * body: 'Something left to do', - * assignedTo: '', - * status: 'active' - * })) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - createTask: function createTask(data) { - var _getParams13 = getParams(this), - params = _getParams13.params; - return makeRequest({ - entityType: 'Task', - action: 'create', - params: params, - payload: data - }).then(function (data) { - return wrapTask(makeRequest, data); - }); - }, - /** - * Gets all tasks of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTasks()) - * .then((tasks) => console.log(tasks)) - * .catch(console.error) - * ``` - */ - getTasks: function getTasks() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _getParams14 = getParams(this), - params = _getParams14.params; - return makeRequest({ - entityType: 'Task', - action: 'getMany', - params: _objectSpread(_objectSpread({}, params), {}, { - query: query - }) - }).then(function (data) { - return wrapTaskCollection(makeRequest, data); - }); - }, - /** - * Gets a task of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTask(``)) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - getTask: function getTask(id) { - var _getParams15 = getParams(this), - params = _getParams15.params; - return makeRequest({ - entityType: 'Task', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - taskId: id - }) - }).then(function (data) { - return wrapTask(makeRequest, data); - }); - }, - /** - * Checks if the entry is published. A published entry might have unpublished changes - */ - isPublished: function isPublished() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isPublished(raw); - }, - /** - * Checks if the entry is updated. This means the entry was previously published but has unpublished changes. - */ - isUpdated: function isUpdated() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isUpdated(raw); - }, - /** - * Checks if the entry is in draft mode. This means it is not published. - */ - isDraft: function isDraft() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isDraft(raw); - }, - /** - * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs. - */ - isArchived: function isArchived() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isArchived(raw); - }, - /** - * Recursively collects references of an entry and their descendants - */ - references: function references(options) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - entryId: raw.sys.id, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(function (response) { - return wrapEntryCollection(makeRequest, response); - }); - } - }; -} - -/***/ }), - -/***/ "./create-environment-api.ts": -/*!***********************************!*\ - !*** ./create-environment-api.ts ***! - \***********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createEnvironmentApi; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/* harmony import */ var _entities_release_action__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/release-action */ "./entities/release-action.ts"); -/* harmony import */ var _entities_release__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/release */ "./entities/release.ts"); -/* harmony import */ var _entities_tag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./entities/tag */ "./entities/tag.ts"); -/* harmony import */ var _entities_ui_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/ui-config */ "./entities/ui-config.ts"); -/* harmony import */ var _entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/user-ui-config */ "./entities/user-ui-config.ts"); -/* harmony import */ var _entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/environment-template-installation */ "./entities/environment-template-installation.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _excluded = ["installationId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - - - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Environment API - * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -function createEnvironmentApi(makeRequest) { - var wrapEnvironment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environment.wrapEnvironment; - var _entities$contentType = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].contentType, - wrapContentType = _entities$contentType.wrapContentType, - wrapContentTypeCollection = _entities$contentType.wrapContentTypeCollection; - var _entities$entry = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].entry, - wrapEntry = _entities$entry.wrapEntry, - wrapEntryCollection = _entities$entry.wrapEntryCollection; - var _entities$asset = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].asset, - wrapAsset = _entities$asset.wrapAsset, - wrapAssetCollection = _entities$asset.wrapAssetCollection; - var wrapAssetKey = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].assetKey.wrapAssetKey; - var _entities$locale = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].locale, - wrapLocale = _entities$locale.wrapLocale, - wrapLocaleCollection = _entities$locale.wrapLocaleCollection; - var wrapSnapshotCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].snapshot.wrapSnapshotCollection; - var _entities$editorInter = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].editorInterface, - wrapEditorInterface = _entities$editorInter.wrapEditorInterface, - wrapEditorInterfaceCollection = _entities$editorInter.wrapEditorInterfaceCollection; - var wrapUpload = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].upload.wrapUpload; - var _entities$extension = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].extension, - wrapExtension = _entities$extension.wrapExtension, - wrapExtensionCollection = _entities$extension.wrapExtensionCollection; - var _entities$appInstalla = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appInstallation, - wrapAppInstallation = _entities$appInstalla.wrapAppInstallation, - wrapAppInstallationCollection = _entities$appInstalla.wrapAppInstallationCollection; - var wrapAppSignedRequest = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appSignedRequest.wrapAppSignedRequest; - var wrapAppActionCall = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appActionCall.wrapAppActionCall; - var wrapBulkAction = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].bulkAction.wrapBulkAction; - var wrapAppAccessToken = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAccessToken.wrapAppAccessToken; - return { - /** - * Deletes the environment - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.delete()) - * .then(() => console.log('Environment deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteEnvironment() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(function () { - // noop - }); - }, - /** - * Updates the environment - * @return Promise for the updated environment. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => { - * environment.name = 'New name' - * return environment.update() - * }) - * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateEnvironment() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: raw - }).then(function (data) { - return wrapEnvironment(makeRequest, data); - }); - }, - /** - * Creates SDK Entry object (locally) from entry data - * @param entryData - Entry Data - * @return Entry - * @example ```javascript - * environment.getEntry('entryId').then(entry => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = entry.toPlainObject(); - * - * // The entry is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * entryWithMethodsAgain.update(); - * - * }); - * ``` - **/ - getEntryFromData: function getEntryFromData(entryData) { - return wrapEntry(makeRequest, entryData); - }, - /** - * Creates SDK Asset object (locally) from entry data - * @param assetData - Asset ID - * @return Asset - * @example ```javascript - * environment.getAsset('asset_id').then(asset => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = asset.toPlainObject(); - * - * // The asset is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * assetWithMethodsAgain.update(); - * - * }); - * ``` - */ - getAssetFromData: function getAssetFromData(assetData) { - return wrapAsset(makeRequest, assetData); - }, - /** - * - * @description Get a BulkAction by ID. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action - * @param bulkActionId - ID of the BulkAction to fetch - * @returns - Promise with the BulkAction - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getBulkAction('')) - * .then((bulkAction) => console.log(bulkAction)) - * ``` - */ - getBulkAction: function getBulkAction(bulkActionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - bulkActionId: bulkActionId - } - }).then(function (data) { - return wrapBulkAction(makeRequest, data); - }); - }, - /** - * @description Creates a BulkAction that will attempt to publish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createPublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createPublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createPublishBulkAction: function createPublishBulkAction(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return wrapBulkAction(makeRequest, data); - }); - }, - /** - * @description Creates a BulkAction that will attempt to validate all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * action: 'publish', - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createValidateBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createValidateBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createValidateBulkAction: function createValidateBulkAction(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return wrapBulkAction(makeRequest, data); - }); - }, - /** - * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUnpublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await clientgetSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createUnpublishBulkAction: function createUnpublishBulkAction(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return wrapBulkAction(makeRequest, data); - }); - }, - /** - * Gets a Content Type - * @param contentTypeId - Content Type ID - * @return Promise for a Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - getContentType: function getContentType(contentTypeId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - } - }).then(function (data) { - return wrapContentType(makeRequest, data); - }); - }, - /** - * Gets a collection of Content Types - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Content Types - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypes()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getContentTypes: function getContentTypes() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapContentTypeCollection(makeRequest, data); - }); - }, - /** - * Creates a Content Type - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentType({ - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentType: function createContentType(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapContentType(makeRequest, response); - }); - }, - /** - * Creates a Content Type with a custom ID - * @param contentTypeId - Content Type ID - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentTypeWithId('', { - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentTypeWithId: function createContentTypeWithId(contentTypeId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - }, - payload: data - }).then(function (response) { - return wrapContentType(makeRequest, response); - }); - }, - /** - * Gets an EditorInterface for a ContentType - * @param contentTypeId - Content Type ID - * @return Promise for an EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaceForContentType('')) - * .then((EditorInterface) => console.log(EditorInterface)) - * .catch(console.error) - * ``` - */ - getEditorInterfaceForContentType: function getEditorInterfaceForContentType(contentTypeId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - } - }).then(function (response) { - return wrapEditorInterface(makeRequest, response); - }); - }, - /** - * Gets all EditorInterfaces - * @return Promise for a collection of EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaces()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEditorInterfaces: function getEditorInterfaces() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(function (response) { - return wrapEditorInterfaceCollection(makeRequest, response); - }); - }, - /** - * Gets an Entry - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Entry ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - getEntry: function getEntry(id) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapEntry(makeRequest, data); - }); - }, - /** - * Deletes an Entry of this environment - * @param id - Entry ID - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteEntry("4bmLXiuviAZH3jkj5DLRWE")) - * .then(() => console.log('Entry deleted.')) - * .catch(console.error) - * ``` - */ - deleteEntry: function deleteEntry(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id - } - }).then(function () { - // noop - }); - }, - /** - * Gets a collection of Entries - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEntries: function getEntries() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapEntryCollection(makeRequest, data); - }); - }, - /** - * Gets a collection of published Entries - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedEntries: function getPublishedEntries() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapEntryCollection(makeRequest, data); - }); - }, - /** - * Creates a Entry - * @param contentTypeId - The Content Type ID of the newly created Entry - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntry('', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntry: function createEntry(contentTypeId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - }, - payload: data - }).then(function (response) { - return wrapEntry(makeRequest, response); - }); - }, - /** - * Creates a Entry with a custom ID - * @param contentTypeId - The Content Type of the newly created Entry - * @param id - Entry ID - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create entry - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntryWithId('', '', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntryWithId: function createEntryWithId(contentTypeId, id, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - contentTypeId: contentTypeId - }, - payload: data - }).then(function (response) { - return wrapEntry(makeRequest, response); - }); - }, - /** - * Get entry references - * @param entryId - Entry ID - * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum - * @returns Promise of Entry references - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: ' - * }) - * - * // Get entry references - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntryReferences('', {include: number})) - * .then((entry) => console.log(entry.includes)) - * // or - * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number})) - * .catch(console.error) - * ``` - */ - getEntryReferences: function getEntryReferences(entryId, options) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: entryId, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(function (response) { - return wrapEntryCollection(makeRequest, response); - }); - }, - /** - * Gets an Asset - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Asset ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Asset - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - getAsset: function getAsset(id) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - /** - * Gets a collection of Assets - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAssets: function getAssets() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapAssetCollection(makeRequest, data); - }); - }, - /** - * Gets a collection of published Assets - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedAssets: function getPublishedAssets() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapAssetCollection(makeRequest, data); - }); - }, - /** - * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAsset({ - * fields: { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * } - * })) - * .then((asset) => asset.processForLocale("en-US")) // OR asset.processForAllLocales() - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAsset: function createAsset(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapAsset(makeRequest, response); - }); - }, - /** - * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param id - Asset ID - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * })) - * .then((asset) => asset.process()) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetWithId: function createAssetWithId(id, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id - }, - payload: data - }).then(function (response) { - return wrapAsset(makeRequest, response); - }); - }, - /** - * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetFromFiles({ - * fields: { - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'filename_english.jpg', - * file: createReadStream('path/to/filename_english.jpg') - * }, - * 'de-DE': { - * contentType: 'image/svg+xml', - * fileName: 'filename_german.svg', - * file: '' - * } - * } - * } - * })) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetFromFiles: function createAssetFromFiles(data, options) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createFromFiles', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadTimeout: options === null || options === void 0 ? void 0 : options.uploadTimeout - }, - payload: data - }).then(function (response) { - return wrapAsset(makeRequest, response); - }); - }, - /** - * Creates an asset key for signing asset URLs (Embargoed Assets) - * @param data Object with request payload - * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling) - * @return Promise for the newly created AssetKey - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create assetKey - * now = () => Math.floor(Date.now() / 1000) - * const withExpiryIn1Hour = () => now() + 1 * 60 * 60 - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() })) - * .then((policy, secret) => console.log({ policy, secret })) - * .catch(console.error) - * ``` - */ - createAssetKey: function createAssetKey(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AssetKey', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return wrapAssetKey(makeRequest, data); - }); - }, - /** - * Gets an Upload - * @param id - Upload ID - * @return Promise for an Upload - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUpload('') - * .then((upload) => console.log(upload)) - * .catch(console.error) - */ - getUpload: function getUpload(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: id - } - }).then(function (data) { - return wrapUpload(makeRequest, data); - }); - }, - /** - * Creates a Upload. - * @param data - Object with file information. - * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream. - * @return Upload object containing information about the uploaded file. - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUpload({file: uploadStream}) - * .then((upload) => console.log(upload)) - * .catch(console.error) - * ``` - */ - createUpload: function createUpload(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapUpload(makeRequest, data); - }); - }, - /** - * Gets a Locale - * @param localeId - Locale ID - * @return Promise for an Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - getLocale: function getLocale(localeId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - localeId: localeId - } - }).then(function (data) { - return wrapLocale(makeRequest, data); - }); - }, - /** - * Gets a collection of Locales - * @return Promise for a collection of Locales - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocales()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getLocales: function getLocales() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(function (data) { - return wrapLocaleCollection(makeRequest, data); - }); - }, - /** - * Creates a Locale - * @param data - Object representation of the Locale to be created - * @return Promise for the newly created Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create locale - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createLocale({ - * name: 'German (Austria)', - * code: 'de-AT', - * fallbackCode: 'de-DE', - * optional: true - * })) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - createLocale: function createLocale(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapLocale(makeRequest, response); - }); - }, - /** - * Gets an UI Extension - * @param id - Extension ID - * @return Promise for an UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - getUiExtension: function getUiExtension(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - } - }).then(function (data) { - return wrapExtension(makeRequest, data); - }); - }, - /** - * Gets a collection of UI Extension - * @return Promise for a collection of UI Extensions - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtensions() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getUiExtensions: function getUiExtensions() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(function (response) { - return wrapExtensionCollection(makeRequest, response); - }); - }, - /** - * Creates a UI Extension - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtension({ - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtension: function createUiExtension(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapExtension(makeRequest, response); - }); - }, - /** - * Creates a UI Extension with a custom ID - * @param id - Extension ID - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtensionWithId('', { - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtensionWithId: function createUiExtensionWithId(id, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - }, - payload: data - }).then(function (response) { - return wrapExtension(makeRequest, response); - }); - }, - /** - * Creates an App Installation - * @param appDefinitionId - AppDefinition ID - * @param data - AppInstallation data - * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app) - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppInstallation('', { - * parameters: { - * someParameter: someValue - * } - * }) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - createAppInstallation: function createAppInstallation(appDefinitionId, data) { - var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - acceptAllTerms = _ref.acceptAllTerms; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: appDefinitionId, - acceptAllTerms: acceptAllTerms - }, - payload: data - }).then(function (payload) { - return wrapAppInstallation(makeRequest, payload); - }); - }, - /** - * Gets an App Installation - * @param id - AppDefintion ID - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - getAppInstallation: function getAppInstallation(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: id - } - }).then(function (data) { - return wrapAppInstallation(makeRequest, data); - }); - }, - /** - * Gets a collection of App Installation - * @return Promise for a collection of App Installations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallations() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppInstallations: function getAppInstallations() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(function (data) { - return wrapAppInstallationCollection(makeRequest, data); - }); - }, - /** - * Creates an app action call - * @param appDefinitionId - AppDefinition ID - * @param appActionId - action ID - * @param data - App Action Call data - * @return Promise for an App Action Call - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * headers: { - * 'x-my-header': 'some-value' - * }, - * body: { - * 'some-body-value': true - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppActionCall('', '', data) - * .then((appActionCall) => console.log(appActionCall)) - * .catch(console.error) - * ``` - */ - createAppActionCall: function createAppActionCall(appDefinitionId, appActionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppActionCall', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: appDefinitionId, - appActionId: appActionId - }, - payload: data - }).then(function (payload) { - return wrapAppActionCall(makeRequest, payload); - }); - }, - /** - * Creates an app signed request - * @param appDefinitionId - AppDefinition ID - * @param data - SignedRequest data - * @return Promise for a Signed Request - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * method: 'POST', - * path: '/request_path', - * body: '{ "key": "data" }', - * headers: { - * 'x-my-header': 'some-value' - * }, - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppSignedRequest('', data) - * .then((signedRequest) => console.log(signedRequest)) - * .catch(console.error) - * ``` - */ - createAppSignedRequest: function createAppSignedRequest(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSignedRequest', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppSignedRequest(makeRequest, payload); - }); - }, - /** - * Creates an app access token - * @param appDefinitionId - AppDefinition ID - * @param data - Json Web Token - * @return Promise for an app access token - * @example ```javascript - * const contentful = require('contentful-management') - * const { sign } = require('jsonwebtoken') - * - * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' } - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * jwt: sign({}, '', signOptions) - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppAccessToken('', data) - * .then((appAccessToken) => console.log(appAccessToken)) - * .catch(console.error) - * ``` - */ - createAppAccessToken: function createAppAccessToken(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAccessToken', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppAccessToken(makeRequest, payload); - }); - }, - /** - * Gets all snapshots of an entry - * @func getEntrySnapshots - * @param entryId - Entry ID - * @param query - query additional query paramaters - * @return Promise for a collection of Entry Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntrySnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getEntrySnapshots: function getEntrySnapshots(entryId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: entryId, - query: query - } - }).then(function (data) { - return wrapSnapshotCollection(makeRequest, data); - }); - }, - /** - * Gets all snapshots of a contentType - * @func getContentTypeSnapshots - * @param contentTypeId - Content Type ID - * @param query - query additional query paramaters - * @return Promise for a collection of Content Type Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypeSnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getContentTypeSnapshots: function getContentTypeSnapshots(contentTypeId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId, - query: query - } - }).then(function (data) { - return wrapSnapshotCollection(makeRequest, data); - }); - }, - createTag: function createTag(id, name, visibility) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - }, - payload: { - name: name, - sys: { - visibility: visibility !== null && visibility !== void 0 ? visibility : 'private' - } - } - }).then(function (data) { - return (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTag)(makeRequest, data); - }); - }, - getTags: function getTags() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTagCollection)(makeRequest, data); - }); - }, - getTag: function getTag(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - } - }).then(function (data) { - return (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTag)(makeRequest, data); - }); - }, - /** - * Retrieves a Release by ID - * @param releaseId - * @returns Promise containing a wrapped Release - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getRelease('')) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - getRelease: function getRelease(releaseId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId - } - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data); - }); - }, - /** - * Gets a Collection of Releases, - * @param {ReleaseQueryOptions} query filtering options for the collection result - * @returns Promise containing a wrapped Release Collection - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' })) - * .then((releases) => console.log(releases)) - * .catch(console.error) - * ``` - */ - getReleases: function getReleases(query) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'query', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: query - } - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapReleaseCollection)(makeRequest, data); - }); - }, - /** - * Creates a new Release with the entities and title in the payload - * @param payload Object containing the payload in order to create a Release - * @returns Promise containing a wrapped Release, that has other helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * title: 'My Release', - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createRelease(payload)) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - createRelease: function createRelease(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data); - }); - }, - /** - * Updates a Release and replaces all the properties. - * @param {object} options, - * @param options.releaseId the ID of the release - * @param options.payload the payload to be updated in the Release - * @param options.version Release sys.version that to be updated - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * - * const payload = { - * title: "Updated Release title", - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } )) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - updateRelease: function updateRelease(_ref2) { - var releaseId = _ref2.releaseId, - payload = _ref2.payload, - version = _ref2.version; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId, - version: version - }, - payload: payload - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data); - }); - }, - /** - * Deletes a Release by ID - does not delete any entities. - * @param releaseId the ID of the release - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteRelease('') - * .catch(console.error) - * ``` - */ - deleteRelease: function deleteRelease(releaseId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId - } - }); - }, - /** - * Publishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - publishRelease: function publishRelease(_ref3) { - var releaseId = _ref3.releaseId, - version = _ref3.version; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId, - version: version - } - }).then(function (data) { - return (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data); - }); - }, - /** - * Unpublishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unpublishRelease: function unpublishRelease(_ref4) { - var releaseId = _ref4.releaseId, - version = _ref4.version; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId, - version: version - } - }).then(function (data) { - return (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data); - }); - }, - /** - * Validates all Entities contained in a Release against an action (publish or unpublish) - * @param options.releaseId the ID of the release - * @param options.payload (optional) the type of action to be validated against - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } })) - * .catch(console.error) - * ``` - */ - validateRelease: function validateRelease(_ref5) { - var releaseId = _ref5.releaseId, - payload = _ref5.payload; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId - }, - payload: payload - }).then(function (data) { - return (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data); - }); - }, - /** - * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc). - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be archived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - archiveRelease: function archiveRelease(_ref6) { - var releaseId = _ref6.releaseId, - version = _ref6.version; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'archive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId, - version: version - } - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data); - }); - }, - /** - * Unarchives a previously archived Release - this enables the release to be published, unpublished etc. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be unarchived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unarchiveRelease: function unarchiveRelease(_ref7) { - var releaseId = _ref7.releaseId, - version = _ref7.version; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unarchive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId, - version: version - } - }).then(function (data) { - return (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data); - }); - }, - /** - * Retrieves a ReleaseAction by ID - * @param params.releaseId The ID of a Release - * @param params.actionId The ID of a Release Action - * @returns Promise containing a wrapped ReleaseAction - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' })) - * .then((releaseAction) => console.log(releaseAction)) - * .catch(console.error) - * ``` - */ - getReleaseAction: function getReleaseAction(_ref8) { - var actionId = _ref8.actionId, - releaseId = _ref8.releaseId; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params: { - actionId: actionId, - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId: releaseId - } - }).then(function (data) { - return (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data); - }); - }, - /** - * Gets a Collection of ReleaseActions - * @param {string} params.releaseId ID of the Release to fetch the actions from - * @param {ReleaseQueryOptions} params.query filtering options for the collection result - * @returns Promise containing a wrapped ReleaseAction Collection - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } })) - * .then((releaseActions) => console.log(releaseActions)) - * .catch(console.error) - * ``` - */ - getReleaseActions: function getReleaseActions(_ref9) { - var query = _ref9.query; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: query - } - }).then(function (data) { - return (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseActionCollection)(makeRequest, data); - }); - }, - getUIConfig: function getUIConfig() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var raw, data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - raw = _this.toPlainObject(); - _context.next = 3; - return makeRequest({ - entityType: 'UIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - case 3: - data = _context.sent; - return _context.abrupt("return", (0,_entities_ui_config__WEBPACK_IMPORTED_MODULE_5__.wrapUIConfig)(makeRequest, data)); - case 5: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - }, - getUserUIConfig: function getUserUIConfig() { - var _this2 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var raw, data; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - raw = _this2.toPlainObject(); - _context2.next = 3; - return makeRequest({ - entityType: 'UserUIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - case 3: - data = _context2.sent; - return _context2.abrupt("return", (0,_entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__.wrapUserUIConfig)(makeRequest, data)); - case 5: - case "end": - return _context2.stop(); - } - }, _callee2); - }))(); - }, - /** - * Gets a collection of all environment template installations in the environment for a given template - * @param environmentTemplateId - Environment template ID to return installations for - * @param [options.installationId] - Installation ID to filter for a specific installation - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEnvironmentTemplateInstallations('')) - * .then((installations) => console.log(installations.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplateInstallations: function getEnvironmentTemplateInstallations(environmentTemplateId) { - var _arguments = arguments, - _this3 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { - var _ref10, installationId, query, raw; - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _ref10 = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : {}; - installationId = _ref10.installationId, query = _objectWithoutProperties(_ref10, _excluded); - raw = _this3.toPlainObject(); - return _context3.abrupt("return", makeRequest({ - entityType: 'EnvironmentTemplateInstallation', - action: 'getForEnvironment', - params: _objectSpread(_objectSpread({ - environmentTemplateId: environmentTemplateId - }, installationId && { - installationId: installationId - }), {}, { - query: _objectSpread({}, (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params), - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }) - }).then(function (data) { - return (0,_entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__.wrapEnvironmentTemplateInstallationCollection)(makeRequest, data); - })); - case 4: - case "end": - return _context3.stop(); - } - }, _callee3); - }))(); - } - }; -} - -/***/ }), - -/***/ "./create-environment-template-api.ts": -/*!********************************************!*\ - !*** ./create-environment-template-api.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createEnvironmentTemplateApi: function() { return /* binding */ createEnvironmentTemplateApi; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _excluded = ["spaceId", "environmentId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - -function createEnvironmentTemplateApi(makeRequest, organizationId) { - var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate, - wrapEnvironmentTemplate = _entities$environment.wrapEnvironmentTemplate, - wrapEnvironmentTemplateCollection = _entities$environment.wrapEnvironmentTemplateCollection; - var wrapEnvironmentTemplateInstallationCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplateInstallation.wrapEnvironmentTemplateInstallationCollection; - return { - /** - * Updates a environment template - * @return Promise for new version of the template - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => { - * environmentTemplate.name = 'New name' - * return environmentTemplate.update() - * }) - * .then((environmentTemplate) => - * console.log(`Environment template ${environmentTemplate.sys.id} renamed.`) - * ).catch(console.error) - * ``` - */ - update: function updateEnvironmentTemplate() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'update', - params: { - organizationId: organizationId, - environmentTemplateId: raw.sys.id - }, - payload: raw - }).then(function (data) { - return wrapEnvironmentTemplate(makeRequest, data, organizationId); - }); - }, - /** - * Updates environment template version data - * @param version.versionName - Name of the environment template version - * @param version.versionDescription - Description of the environment template version - * @return Promise for an updated EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => { - * return environmentTemplate.updateVersion({ - * versionName: 'New Name', - * versionDescription: 'New Description', - * }) - * }) - * .then((environmentTemplate) => - * console.log(`Environment template version ${environmentTemplate.sys.id} renamed.`) - * ).catch(console.error) - * ``` - */ - updateVersion: function updateEnvironmentTemplateVersion(_ref) { - var versionName = _ref.versionName, - versionDescription = _ref.versionDescription; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'versionUpdate', - params: { - organizationId: organizationId, - environmentTemplateId: raw.sys.id, - version: raw.sys.version - }, - payload: { - versionName: versionName, - versionDescription: versionDescription - } - }).then(function (data) { - return wrapEnvironmentTemplate(makeRequest, data, organizationId); - }); - }, - /** - * Deletes the environment template - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.delete()) - * .then(() => console.log('Environment template deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteEnvironmentTemplate() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'delete', - params: { - organizationId: organizationId, - environmentTemplateId: raw.sys.id - } - }); - }, - /** - * Gets a collection of all versions for the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.getVersions()) - * .then((environmentTemplateVersions) => console.log(environmentTemplateVersions.items)) - * .catch(console.error) - * ``` - */ - getVersions: function getEnvironmentTemplateVersions() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'versions', - params: { - organizationId: organizationId, - environmentTemplateId: raw.sys.id - } - }).then(function (data) { - return wrapEnvironmentTemplateCollection(makeRequest, data, organizationId); - }); - }, - /** - * Gets a collection of all installations for the environment template - * @param [installationParams.spaceId] - Space ID to filter installations by space and environment - * @param [installationParams.environmentId] - Environment ID to filter installations by space and environment - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.getInstallations()) - * .then((environmentTemplateInstallations) => - * console.log(environmentTemplateInstallations.items) - * ) - * .catch(console.error) - * ``` - */ - getInstallations: function getEnvironmentTemplateInstallations() { - var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var spaceId = _ref2.spaceId, - environmentId = _ref2.environmentId, - query = _objectWithoutProperties(_ref2, _excluded); - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplateInstallation', - action: 'getMany', - params: { - organizationId: organizationId, - environmentTemplateId: raw.sys.id, - query: _objectSpread({}, (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params), - spaceId: spaceId, - environmentId: environmentId - } - }).then(function (data) { - return wrapEnvironmentTemplateInstallationCollection(makeRequest, data); - }); - }, - /** - * Validates an environment template against a given space and environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @param [params.version] - Version of the template - * @param [params.installation.takeover] - Already existing Content types to takeover in the target environment - * @param [params.changeSet] - Change set which should be applied - * @return Promise for a EnvironmentTemplateValidation - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.validate({ - * spaceId: '', - * environmentId: '', - * version: , - * })) - * .then((validationResult) => console.log(validationResult)) - * .catch(console.error) - * ``` - */ - validate: function validateEnvironmentTemplate(_ref3) { - var spaceId = _ref3.spaceId, - environmentId = _ref3.environmentId, - version = _ref3.version, - takeover = _ref3.takeover, - changeSet = _ref3.changeSet; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'validate', - params: { - spaceId: spaceId, - version: version, - environmentId: environmentId, - environmentTemplateId: raw.sys.id - }, - payload: _objectSpread(_objectSpread({}, takeover && { - takeover: takeover - }), changeSet && { - changeSet: changeSet - }) - }); - }, - /** - * Installs a template against a given space and environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @param params.installation.version- Template version which should be installed - * @param [params.installation.takeover] - Already existing Content types tp takeover in the target environment - * @param [params.changeSet] - Change set which should be applied - * @return Promise for a EnvironmentTemplateInstallation - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.validate({ - * spaceId: '', - * environmentId: '', - * installation: { - * version: , - * } - * })) - * .then((installation) => console.log(installation)) - * .catch(console.error) - * ``` - */ - install: function installEnvironmentTemplate(_ref4) { - var spaceId = _ref4.spaceId, - environmentId = _ref4.environmentId, - installation = _ref4.installation; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'install', - params: { - spaceId: spaceId, - environmentId: environmentId, - environmentTemplateId: raw.sys.id - }, - payload: installation - }); - }, - /** - * Disconnects the template from a given environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @return Promise for the disconnection with no data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then(environmentTemplate) => environmentTemplate.disconnected()) - * .then(() => console.log('Template disconnected')) - * .catch(console.error) - * ``` - */ - disconnect: function disconnectEnvironmentTemplate(_ref5) { - var spaceId = _ref5.spaceId, - environmentId = _ref5.environmentId; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'disconnect', - params: { - spaceId: spaceId, - environmentId: environmentId, - environmentTemplateId: raw.sys.id - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-organization-api.ts": -/*!************************************!*\ - !*** ./create-organization-api.ts ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createOrganizationApi; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Organization API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulOrganizationAPI} - * @private - */ -function createOrganizationApi(makeRequest) { - var _entities$appDefiniti = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDefinition, - wrapAppDefinition = _entities$appDefiniti.wrapAppDefinition, - wrapAppDefinitionCollection = _entities$appDefiniti.wrapAppDefinitionCollection; - var _entities$user = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user, - wrapUser = _entities$user.wrapUser, - wrapUserCollection = _entities$user.wrapUserCollection; - var _entities$organizatio = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organizationMembership, - wrapOrganizationMembership = _entities$organizatio.wrapOrganizationMembership, - wrapOrganizationMembershipCollection = _entities$organizatio.wrapOrganizationMembershipCollection; - var _entities$teamMembers = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamMembership, - wrapTeamMembership = _entities$teamMembers.wrapTeamMembership, - wrapTeamMembershipCollection = _entities$teamMembers.wrapTeamMembershipCollection; - var _entities$teamSpaceMe = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamSpaceMembership, - wrapTeamSpaceMembership = _entities$teamSpaceMe.wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection = _entities$teamSpaceMe.wrapTeamSpaceMembershipCollection; - var _entities$team = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].team, - wrapTeam = _entities$team.wrapTeam, - wrapTeamCollection = _entities$team.wrapTeamCollection; - var _entities$spaceMember = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMembership, - wrapSpaceMembership = _entities$spaceMember.wrapSpaceMembership, - wrapSpaceMembershipCollection = _entities$spaceMember.wrapSpaceMembershipCollection; - var wrapOrganizationInvitation = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organizationInvitation.wrapOrganizationInvitation; - var wrapAppUpload = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appUpload.wrapAppUpload; - var wrapAppSigningSecret = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appSigningSecret.wrapAppSigningSecret; - var wrapAppEventSubscription = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appEventSubscription.wrapAppEventSubscription; - var _entities$appKey = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appKey, - wrapAppKey = _entities$appKey.wrapAppKey, - wrapAppKeyCollection = _entities$appKey.wrapAppKeyCollection; - var wrapAppDetails = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDetails.wrapAppDetails; - var _entities$appAction = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAction, - wrapAppAction = _entities$appAction.wrapAppAction, - wrapAppActionCollection = _entities$appAction.wrapAppActionCollection; - var wrapRoleCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].role.wrapRoleCollection; - var wrapSpaceCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space.wrapSpaceCollection; - return { - /** - * Gets a collection of spaces in the organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getSpaces()) - * .then((spaces) => console.log(spaces)) - * .catch(console.error) - * ``` - */ - getSpaces: function getSpaces() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapSpaceCollection(makeRequest, data); - }); - }, - /** - * Gets a User - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getUser: function getUser(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - userId: id - } - }).then(function (data) { - return wrapUser(makeRequest, data); - }); - }, - /** - * Gets a collection of Users in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUsers()) - * .then((users) => console.log(users)) - * .catch(console.error) - * ``` - */ - getUsers: function getUsers() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapUserCollection(makeRequest, data); - }); - }, - /** - * Gets an Organization Membership - * @param id - Organization Membership ID - * @return Promise for an Organization Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationMembership: function getOrganizationMembership(id) { - var raw = this.toPlainObject(); - var organizationId = raw.sys.id; - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'get', - params: { - organizationId: organizationId, - organizationMembershipId: id - } - }).then(function (data) { - return wrapOrganizationMembership(makeRequest, data, organizationId); - }); - }, - /** - * Gets a collection of Organization Memberships - * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Organization Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationMemberships: function getOrganizationMemberships() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'getMany', - params: _objectSpread({ - organizationId: raw.sys.id - }, params) - }).then(function (data) { - return wrapOrganizationMembershipCollection(makeRequest, data, raw.sys.id); - }); - }, - /** - * Creates a Team - * @param data representation of the Team to be created - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createTeam({ - * name: 'new team', - * description: 'new team description' - * })) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - createTeam: function createTeam(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapTeam(makeRequest, data); - }); - }, - /** - * Gets an Team - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeam('teamId')) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - getTeam: function getTeam(teamId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId: teamId - } - }).then(function (data) { - return wrapTeam(makeRequest, data); - }); - }, - /** - * Gets all Teams in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeams()) - * .then((teams) => console.log(teams)) - * .catch(console.error) - * ``` - */ - getTeams: function getTeams() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapTeamCollection(makeRequest, data); - }); - }, - /** - * Creates a Team membership - * @param teamId - Id of the team the membership will be created in - * @param data - Object representation of the Team Membership to be created - * @return Promise for the newly created TeamMembership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((org) => org.createTeamMembership('teamId', { - * admin: true, - * organizationMembershipId: 'organizationMembershipId' - * })) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - createTeamMembership: function createTeamMembership(teamId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'create', - params: { - organizationId: raw.sys.id, - teamId: teamId - }, - payload: data - }).then(function (data) { - return wrapTeamMembership(makeRequest, data); - }); - }, - /** - * Gets an Team Membership from the team with given teamId - * @return Promise for an Team Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id')) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - getTeamMembership: function getTeamMembership(teamId, teamMembershipId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId: teamId, - teamMembershipId: teamMembershipId - } - }).then(function (data) { - return wrapTeamMembership(makeRequest, data); - }); - }, - /** - * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization. - * @return Promise for a Team Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMemberships('teamId')) - * .then((teamMemberships) => console.log(teamMemberships)) - * .catch(console.error) - * ``` - */ - getTeamMemberships: function getTeamMemberships() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var teamId = opts.teamId, - _opts$query = opts.query, - query = _opts$query === void 0 ? {} : _opts$query; - var raw = this.toPlainObject(); - if (teamId) { - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForTeam', - params: { - organizationId: raw.sys.id, - teamId: teamId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapTeamMembershipCollection(makeRequest, data); - }); - } - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapTeamMembershipCollection(makeRequest, data); - }); - }, - /** - * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization. - * @return Promise for a Team Space Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMemberships('teamId')) - * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships: function getTeamSpaceMemberships() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: opts.query || {} - }).params, - teamId: opts.teamId - } - }).then(function (data) { - return wrapTeamSpaceMembershipCollection(makeRequest, data); - }); - }, - /** - * Get a Team Space Membership with given teamSpaceMembershipId - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error)] - * ``` - */ - getTeamSpaceMembership: function getTeamSpaceMembership(teamSpaceMembershipId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - teamSpaceMembershipId: teamSpaceMembershipId - } - }).then(function (data) { - return wrapTeamSpaceMembership(makeRequest, data); - }); - }, - /** - * Gets an Space Membership in Organization - * @param id - Organiztion Space Membership ID - * @return Promise for a Space Membership in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMembership: function getOrganizationSpaceMembership(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - spaceMembershipId: id - } - }).then(function (data) { - return wrapSpaceMembership(makeRequest, data); - }); - }, - /** - * Gets a collection Space Memberships in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a Space Membership collection across all spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100 - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMemberships: function getOrganizationSpaceMemberships() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapSpaceMembershipCollection(makeRequest, data); - }); - }, - /** - * Gets an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getOrganizationInvitation('invitation_id')) - * .then((invitation) => console.log(invitation)) - * .catch(console.error) - * ``` - */ - getOrganizationInvitation: function getOrganizationInvitation(invitationId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'get', - params: { - organizationId: raw.sys.id, - invitationId: invitationId - } - }).then(function (data) { - return wrapOrganizationInvitation(makeRequest, data); - }); - }, - /** - * Create an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.createOrganizationInvitation({ - * email: 'user.email@example.com' - * firstName: 'User First Name' - * lastName: 'User Last Name' - * role: 'developer' - * }) - * .catch(console.error) - * ``` - */ - createOrganizationInvitation: function createOrganizationInvitation(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapOrganizationInvitation(makeRequest, data); - }); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles: function getRoles() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapRoleCollection(makeRequest, data); - }); - }, - /** - * Creates an app definition - * @param Object representation of the App Definition to be created - * @return Promise for the newly created AppDefinition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppDefinition({ - * name: 'Example app', - * locations: [{ location: 'app-config' }], - * src: "http://my-app-host.com/my-app" - * })) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - createAppDefinition: function createAppDefinition(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapAppDefinition(makeRequest, data); - }); - }, - /** - * Gets all app definitions - * @return Promise for a collection of App Definitions - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinitions()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppDefinitions: function getAppDefinitions() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: query - } - }).then(function (data) { - return wrapAppDefinitionCollection(makeRequest, data); - }); - }, - /** - * Gets an app definition - * @return Promise for an App Definition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - getAppDefinition: function getAppDefinition(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: id - } - }).then(function (data) { - return wrapAppDefinition(makeRequest, data); - }); - }, - /** - * Gets an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppUpload('')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - getAppUpload: function getAppUpload(appUploadId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'get', - params: { - organizationId: raw.sys.id, - appUploadId: appUploadId - } - }).then(function (data) { - return wrapAppUpload(makeRequest, data); - }); - }, - /** - * Creates an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppUpload('some_zip_file')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - createAppUpload: function createAppUpload(file) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: { - file: file - } - }).then(function (data) { - return wrapAppUpload(makeRequest, data); - }); - }, - /** - * Creates or updates an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' })) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - upsertAppSigningSecret: function upsertAppSigningSecret(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppSigningSecret(makeRequest, payload); - }); - }, - /** - * Gets an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppSigningSecret('app_definition_id')) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - getAppSigningSecret: function getAppSigningSecret(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function (payload) { - return wrapAppSigningSecret(makeRequest, payload); - }); - }, - /** - * Deletes an app signing secret - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppSigningSecret('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppSigningSecret: function deleteAppSigningSecret(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function () { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - upsertAppEventSubscription: function upsertAppEventSubscription(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppEventSubscription(makeRequest, payload); - }); - }, - /** - * Gets an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppEventSubscription('app_definition_id')) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - getAppEventSubscription: function getAppEventSubscription(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function (payload) { - return wrapAppEventSubscription(makeRequest, payload); - }); - }, - /** - * Deletes the current App Event Subscription for the given App - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppEventSubscription('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppEventSubscription: function deleteAppEventSubscription(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function () { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // generate a new private key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * - * // or use an existing JSON Web Key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - createAppKey: function createAppKey(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppKey(makeRequest, payload); - }); - }, - /** - * Gets an app key by fingerprint - * @return Promise for an App Key - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppKey('app_definition_id', 'fingerprint')) - * .then((appKey) => console.log(appKey)) - * .catch(console.error) - * ``` - */ - getAppKey: function getAppKey(appDefinitionId, fingerprint) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - fingerprint: fingerprint - } - }).then(function (payload) { - return wrapAppKey(makeRequest, payload); - }); - }, - /** - * Gets all keys for the given app - * @return Promise for an array of App Keys - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // with default pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id')) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * - * // with explicit pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' })) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * ``` - */ - getAppKeys: function getAppKeys(appDefinitionId) { - var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (payload) { - return wrapAppKeyCollection(makeRequest, payload); - }); - }, - /** - * Deletes an app key by fingerprint. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppKey: function deleteAppKey(appDefinitionId, fingerprint) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - fingerprint: fingerprint - } - }).then(function () { - /* noop*/ - }); - }, - /** - * Creates or updates an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppDetails('app_definition_id', - * { icon: { value: 'base_64_image', type: 'base64' }} - * )) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - upsertAppDetails: function upsertAppDetails(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppDetails(makeRequest, payload); - }); - }, - /** - * Gets an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDetails('app_definition_id')) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - getAppDetails: function getAppDetails(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function (payload) { - return wrapAppDetails(makeRequest, payload); - }); - }, - /** - * Deletes an app details entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppDetails('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppDetails: function deleteAppDetails(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function () { - /* noop*/ - }); - }, - /** - * Creates an app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppAction('app_definition_id', { - * type: 'endpoint', - * name: 'my nice new app action', - * url: 'https://www.somewhere.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - createAppAction: function createAppAction(appDefinitionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - }, - payload: data - }).then(function (payload) { - return wrapAppAction(makeRequest, payload); - }); - }, - /** - * Updates an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', { - * type: 'endpoint', - * name: 'my nice updated app action', - * url: 'https://www.somewhere-else.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - updateAppAction: function updateAppAction(appDefinitionId, appActionId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'update', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - appActionId: appActionId - }, - payload: data - }).then(function (payload) { - return wrapAppAction(makeRequest, payload); - }); - }, - /** - * Deletes an app action entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppAction: function deleteAppAction(appDefinitionId, appActionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - appActionId: appActionId - } - }).then(function (payload) { - /* noop*/ - }); - }, - /** - * Gets an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppAction('app_definition_id', 'app_action_id')) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - getAppAction: function getAppAction(appDefinitionId, appActionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId, - appActionId: appActionId - } - }).then(function (payload) { - return wrapAppAction(makeRequest, payload); - }); - }, - /** - * Gets existing app actions for an App Definition. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppActions('app_definition_id')) - * .then((appActions) => console.log(appActions)) - * .catch(console.error) - * ``` - */ - getAppActions: function getAppActions(appDefinitionId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId: appDefinitionId - } - }).then(function (payload) { - return wrapAppActionCollection(makeRequest, payload); - }); - } - }; -} - -/***/ }), - -/***/ "./create-space-api.ts": -/*!*****************************!*\ - !*** ./create-space-api.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createSpaceApi; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/** - * Contentful Space API. Contains methods to access any operations at a space - * level, such as creating and reading entities contained in a space. - */ - - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Space API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -function createSpaceApi(makeRequest) { - var wrapSpace = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space.wrapSpace; - var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environment, - wrapEnvironment = _entities$environment.wrapEnvironment, - wrapEnvironmentCollection = _entities$environment.wrapEnvironmentCollection; - var _entities$webhook = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].webhook, - wrapWebhook = _entities$webhook.wrapWebhook, - wrapWebhookCollection = _entities$webhook.wrapWebhookCollection; - var _entities$role = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].role, - wrapRole = _entities$role.wrapRole, - wrapRoleCollection = _entities$role.wrapRoleCollection; - var _entities$user = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user, - wrapUser = _entities$user.wrapUser, - wrapUserCollection = _entities$user.wrapUserCollection; - var _entities$spaceMember = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMember, - wrapSpaceMember = _entities$spaceMember.wrapSpaceMember, - wrapSpaceMemberCollection = _entities$spaceMember.wrapSpaceMemberCollection; - var _entities$spaceMember2 = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMembership, - wrapSpaceMembership = _entities$spaceMember2.wrapSpaceMembership, - wrapSpaceMembershipCollection = _entities$spaceMember2.wrapSpaceMembershipCollection; - var _entities$teamSpaceMe = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamSpaceMembership, - wrapTeamSpaceMembership = _entities$teamSpaceMe.wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection = _entities$teamSpaceMe.wrapTeamSpaceMembershipCollection; - var wrapTeamCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].team.wrapTeamCollection; - var _entities$apiKey = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].apiKey, - wrapApiKey = _entities$apiKey.wrapApiKey, - wrapApiKeyCollection = _entities$apiKey.wrapApiKeyCollection; - var _entities$environment2 = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentAlias, - wrapEnvironmentAlias = _entities$environment2.wrapEnvironmentAlias, - wrapEnvironmentAliasCollection = _entities$environment2.wrapEnvironmentAliasCollection; - var _entities$previewApiK = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].previewApiKey, - wrapPreviewApiKey = _entities$previewApiK.wrapPreviewApiKey, - wrapPreviewApiKeyCollection = _entities$previewApiK.wrapPreviewApiKeyCollection; - var _entities$scheduledAc = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].scheduledAction, - wrapScheduledAction = _entities$scheduledAc.wrapScheduledAction, - wrapScheduledActionCollection = _entities$scheduledAc.wrapScheduledActionCollection; - return { - /** - * Deletes the space - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.delete()) - * .then(() => console.log('Space deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteSpace() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'delete', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Updates the space - * @return Promise for the updated space. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * space.name = 'New name' - * return space.update() - * }) - * .then((space) => console.log(`Space ${space.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateSpace() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'update', - params: { - spaceId: raw.sys.id - }, - payload: raw, - headers: {} - }).then(function (data) { - return wrapSpace(makeRequest, data); - }); - }, - /** - * Gets an environment - * @param id - Environment ID - * @return Promise for an Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - getEnvironment: function getEnvironment(environmentId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentId: environmentId - } - }).then(function (data) { - return wrapEnvironment(makeRequest, data); - }); - }, - /** - * Gets a collection of Environments - * @return Promise for a collection of Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironments()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironments: function getEnvironments() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: query - } - }).then(function (data) { - return wrapEnvironmentCollection(makeRequest, data); - }); - }, - /** - * Creates an environment - * @param data - Object representation of the Environment to be created - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironment({ name: 'Staging' })) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironment: function createEnvironment() { - var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapEnvironment(makeRequest, response); - }); - }, - /** - * Creates an Environment with a custom ID - * @param id - Environment ID - * @param data - Object representation of the Environment to be created - * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is "master" - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironmentWithId: function createEnvironmentWithId(id, data, sourceEnvironmentId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentId: id, - sourceEnvironmentId: sourceEnvironmentId - }, - payload: data - }).then(function (response) { - return wrapEnvironment(makeRequest, response); - }); - }, - /** - * Gets a Webhook - * @param id - Webhook ID - * @return Promise for a Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - getWebhook: function getWebhook(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'get', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - } - }).then(function (data) { - return wrapWebhook(makeRequest, data); - }); - }, - /** - * Gets a collection of Webhooks - * @return Promise for a collection of Webhooks - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhooks()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getWebhooks: function getWebhooks() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(function (data) { - return wrapWebhookCollection(makeRequest, data); - }); - }, - /** - * Fetch a webhook signing secret - * @returns Promise for the redacted webhook signing secret in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhookSigningSecret()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookSigningSecret: function getSigningSecret() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Fetch a webhook retry policy - * @returns Promise for the redacted webhook retry policy in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRetryPolicy()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookRetryPolicy: function getWebhookRetryPolicy() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Creates a Webhook - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhook({ - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhook: function createWebhook(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapWebhook(makeRequest, data); - }); - }, - /** - * Creates a Webhook with a custom ID - * @param id - Webhook ID - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhookWithId('', { - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhookWithId: function createWebhookWithId(id, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - }, - payload: data - }).then(function (data) { - return wrapWebhook(makeRequest, data); - }); - }, - /** - * Create or update the webhook signing secret for this space - * @param data 64 character string that will be used to sign the webhook calls - * @returns Promise for the redacted webhook signing secret that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * const crypto = require('crypto') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const signingSecret = client.getSpace('') - * .then((space) => space.upsertWebhookSigningSecret({ - * value: crypto.randomBytes(32).toString('hex') - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookSigningSecret: function getSigningSecret(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertSigningSecret', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Create or update the webhook retry policy for this space - * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy - * @returns Promise for the redacted webhook retry policy that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const retryPolicy = client.getSpace('') - * .then((space) => space.upsertWebhookRetryPolicy({ - * maxRetries: 15 - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookRetryPolicy: function upsertWebhookRetryPolicy(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertRetryPolicy', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Delete the webhook signing secret for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookSigningSecret()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookSigningSecret: function getSigningSecret() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Delete the webhook retry policy for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookRetryPolicy()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookRetryPolicy: function deleteRetryPolicy() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Gets a Role - * @param id - Role ID - * @return Promise for a Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createRole({ - * fields: { - * title: { - * 'en-US': 'Role title' - * } - * } - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - getRole: function getRole(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'get', - params: { - spaceId: raw.sys.id, - roleId: id - } - }).then(function (data) { - return wrapRole(makeRequest, data); - }); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles: function getRoles() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapRoleCollection(makeRequest, data); - }); - }, - /** - * Creates a Role - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRole({ - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRole: function createRole(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(function (data) { - return wrapRole(makeRequest, data); - }); - }, - /** - * Creates a Role with a custom ID - * @param id - Role ID - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRoleWithId('', { - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRoleWithId: function createRoleWithId(id, roleData) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - roleId: id - }, - payload: roleData - }).then(function (data) { - return wrapRole(makeRequest, data); - }); - }, - /** - * Gets a User - * @param userId - User ID - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getSpaceUser: function getSpaceUser(userId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForSpace', - params: { - spaceId: raw.sys.id, - userId: userId - } - }).then(function (data) { - return wrapUser(makeRequest, data); - }); - }, - /** - * Gets a collection of Users in a space - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUsers(query)) - * .then((data) => console.log(data)) - * .catch(console.error) - * ``` - */ - getSpaceUsers: function getSpaceUsers() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapUserCollection(makeRequest, data); - }); - }, - /** - * Gets a collection of teams for a space - * @param query - * @return Promise for a collection of teams for a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeams()) - * .then((teamsCollection) => console.log(teamsCollection)) - * .catch(console.error) - * ``` - */ - getTeams: function getTeams() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - limit: 100 - }; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapTeamCollection(makeRequest, data); - }); - }, - /** - * Gets a Space Member - * @param id Get Space Member by user_id - * @return Promise for a Space Member - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMember(id)) - * .then((spaceMember) => console.log(spaceMember)) - * .catch(console.error) - * ``` - */ - getSpaceMember: function getSpaceMember(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMemberId: id - } - }).then(function (data) { - return wrapSpaceMember(makeRequest, data); - }); - }, - /** - * Gets a collection of Space Members - * @param query - * @return Promise for a collection of Space Members - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembers({'limit': 100})) - * .then((spaceMemberCollection) => console.log(spaceMemberCollection)) - * .catch(console.error) - * ``` - */ - getSpaceMembers: function getSpaceMembers() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapSpaceMemberCollection(makeRequest, data); - }); - }, - /** - * Gets a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @return Promise for a Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('id')) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - getSpaceMembership: function getSpaceMembership(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - } - }).then(function (data) { - return wrapSpaceMembership(makeRequest, data); - }); - }, - /** - * Gets a collection of Space Memberships - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaceMemberships: function getSpaceMemberships() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapSpaceMembershipCollection(makeRequest, data); - }); - }, - /** - * Creates a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembership({ - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembership: function createSpaceMembership(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapSpaceMembership(makeRequest, response); - }); - }, - /** - * Creates a Space Membership with a custom ID - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembershipWithId('', { - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembershipWithId: function createSpaceMembershipWithId(id, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - }, - payload: data - }).then(function (response) { - return wrapSpaceMembership(makeRequest, response); - }); - }, - /** - * Gets a Team Space Membership - * @param id - Team Space Membership ID - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('team_space_membership_id')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMembership: function getTeamSpaceMembership(teamSpaceMembershipId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - teamSpaceMembershipId: teamSpaceMembershipId - } - }).then(function (data) { - return wrapTeamSpaceMembership(makeRequest, data); - }); - }, - /** - * Gets a collection of Team Space Memberships - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Team Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMemberships()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships: function getTeamSpaceMemberships() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(function (data) { - return wrapTeamSpaceMembershipCollection(makeRequest, data); - }); - }, - /** - * Creates a Team Space Membership - * @param id - Team ID - * @param data - Object representation of the Team Space Membership to be created - * @return Promise for the newly created Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createTeamSpaceMembership('team_id', { - * admin: false, - * roles: [ - * { - sys: { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * } - * ], - * })) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - createTeamSpaceMembership: function createTeamSpaceMembership(teamId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id, - teamId: teamId - }, - payload: data - }).then(function (response) { - return wrapTeamSpaceMembership(makeRequest, response); - }); - }, - /** - * Gets a Api Key - * @param id - API Key ID - * @return Promise for a Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKey('')) - * .then((apikey) => console.log(apikey)) - * .catch(console.error) - * ``` - */ - getApiKey: function getApiKey(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - apiKeyId: id - } - }).then(function (data) { - return wrapApiKey(makeRequest, data); - }); - }, - /** - * Gets a collection of Api Keys - * @return Promise for a collection of Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getApiKeys: function getApiKeys() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(function (data) { - return wrapApiKeyCollection(makeRequest, data); - }); - }, - /** - * Gets a collection of preview Api Keys - * @return Promise for a collection of Preview Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPreviewApiKeys: function getPreviewApiKeys() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(function (data) { - return wrapPreviewApiKeyCollection(makeRequest, data); - }); - }, - /** - * Gets a preview Api Key - * @param id - Preview API Key ID - * @return Promise for a Preview Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKey('')) - * .then((previewApikey) => console.log(previewApikey)) - * .catch(console.error) - * ``` - */ - getPreviewApiKey: function getPreviewApiKey(id) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - previewApiKeyId: id - } - }).then(function (data) { - return wrapPreviewApiKey(makeRequest, data); - }); - }, - /** - * Creates a Api Key - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKey({ - * name: 'API Key name', - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKey: function createApiKey(payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: payload - }).then(function (data) { - return wrapApiKey(makeRequest, data); - }); - }, - /** - * Creates a Api Key with a custom ID - * @param id - Api Key ID - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKeyWithId('', { - * name: 'API Key name' - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKeyWithId: function createApiKeyWithId(id, payload) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - apiKeyId: id - }, - payload: payload - }).then(function (data) { - return wrapApiKey(makeRequest, data); - }); - }, - /** - * Creates an EnvironmentAlias with a custom ID - * @param environmentAliasId - EnvironmentAlias ID - * @param data - Object representation of the EnvironmentAlias to be created - * @return Promise for the newly created EnvironmentAlias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentAliasWithId('', { - * environment: { - * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' } - * } - * })) - * .then((environmentAlias) => console.log(environmentAlias)) - * .catch(console.error) - * ``` - */ - createEnvironmentAliasWithId: function createEnvironmentAliasWithId(environmentAliasId, data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentAliasId: environmentAliasId - }, - payload: data - }).then(function (response) { - return wrapEnvironmentAlias(makeRequest, response); - }); - }, - /** - * Gets an Environment Alias - * @param Environment Alias ID - * @return Promise for an Environment Alias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => console.log(alias)) - * .catch(console.error) - * ``` - */ - getEnvironmentAlias: function getEnvironmentAlias(environmentAliasId) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentAliasId: environmentAliasId - } - }).then(function (data) { - return wrapEnvironmentAlias(makeRequest, data); - }); - }, - /** - * Gets a collection of Environment Aliases - * @return Promise for a collection of Environment Aliases - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAliases() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentAliases: function getEnvironmentAliases() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(function (data) { - return wrapEnvironmentAliasCollection(makeRequest, data); - }); - }, - /** - * Query for scheduled actions in space. - * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details. - * @return Promise for the scheduled actions query - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledActions({ - * 'environment.sys.id': '', - * 'sys.status': 'scheduled' - * })) - * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items)) - * .catch(console.error) - * ``` - */ - getScheduledActions: function getScheduledActions(query) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: query - } - }).then(function (response) { - return wrapScheduledActionCollection(makeRequest, response); - }); - }, - /** - * Get a Scheduled Action in the current space by environment and ID. - * - * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself. - * @returns Promise with the Scheduled Action - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledAction({ - * scheduledActionId: '', - * environmentId: '' - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - getScheduledAction: function getScheduledAction(_ref) { - var scheduledActionId = _ref.scheduledActionId, - environmentId = _ref.environmentId; - var space = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'get', - params: { - spaceId: space.sys.id, - environmentId: environmentId, - scheduledActionId: scheduledActionId - } - }).then(function (scheduledAction) { - return wrapScheduledAction(makeRequest, scheduledAction); - }); - }, - /** - * Creates a scheduled action - * @param data - Object representation of the scheduled action to be created - * @return Promise for the newly created scheduled actions - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - createScheduledAction: function createScheduledAction(data) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(function (response) { - return wrapScheduledAction(makeRequest, response); - }); - }, - /** - * Update a scheduled action - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to update - * @param options.version the sys.version of the scheduled action to be updated - * @param payload the scheduled actions object with updates, omitting sys object - * @returns Promise containing a wrapped scheduled action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * const { _sys, ...payload } = scheduledAction; - * return space.updateScheduledAction({ - * ...payload, - * scheduledFor: { - * ...payload.scheduledFor, - * timezone: 'Europe/Paris' - * } - * }) - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - updateScheduledAction: function updateScheduledAction(_ref2) { - var scheduledActionId = _ref2.scheduledActionId, - payload = _ref2.payload, - version = _ref2.version; - var spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params: { - spaceId: spaceProps.sys.id, - version: version, - scheduledActionId: scheduledActionId - }, - payload: payload - }).then(function (response) { - return wrapScheduledAction(makeRequest, response); - }); - }, - /** - * Cancels a Scheduled Action. - * Only cancels actions that have not yet executed. - * - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to be canceled - * @param options.environmentId the environment ID of the scheduled action to be canceled - * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action. - * @returns Promise containing a wrapped Scheduled Action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Given that an Scheduled Action is scheduled - * client.getSpace('') - * .then((space) => space.deleteScheduledAction({ - * environmentId: '', - * scheduledActionId: '' - * })) - * // The scheduled Action sys.status is now 'canceled' - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - deleteScheduledAction: function deleteScheduledAction(_ref3) { - var scheduledActionId = _ref3.scheduledActionId, - environmentId = _ref3.environmentId; - var spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params: { - spaceId: spaceProps.sys.id, - environmentId: environmentId, - scheduledActionId: scheduledActionId - } - }).then(function (response) { - return wrapScheduledAction(makeRequest, response); - }); - } - }; -} - -/***/ }), - -/***/ "./create-ui-config-api.ts": -/*!*********************************!*\ - !*** ./create-ui-config-api.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createUIConfigApi; } -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - -/** - * @private - */ - -/** - * @private - */ -function createUIConfigApi(makeRequest) { - var wrapUIConfig = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].uiConfig.wrapUIConfig; - var getParams = function getParams(self) { - var uiConfig = self.toPlainObject(); - return { - params: { - spaceId: uiConfig.sys.space.sys.id, - environmentId: uiConfig.sys.environment.sys.id - }, - raw: uiConfig - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUIConfig()) - * .then((uiConfig) => { - * uiConfig.entryListViews = [...] - * return uiConfig.update() - * }) - * .then((uiConfig) => console.log(`UIConfig updated.`)) - * .catch(console.error) - * ``` - */ - update: function () { - var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var _getParams, raw, params, data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _getParams = getParams(this), raw = _getParams.raw, params = _getParams.params; - _context.next = 3; - return makeRequest({ - entityType: 'UIConfig', - action: 'update', - params: params, - payload: raw - }); - case 3: - data = _context.sent; - return _context.abrupt("return", wrapUIConfig(makeRequest, data)); - case 5: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function update() { - return _update.apply(this, arguments); - } - return update; - }() - }; -} - -/***/ }), - -/***/ "./create-user-ui-config-api.ts": -/*!**************************************!*\ - !*** ./create-user-ui-config-api.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createUserUIConfigApi; } -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - -/** - * @private - */ - -/** - * @private - */ -function createUserUIConfigApi(makeRequest) { - var wrapUserUIConfig = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].userUIConfig.wrapUserUIConfig; - var getParams = function getParams(self) { - var userUIConfig = self.toPlainObject(); - return { - params: { - spaceId: userUIConfig.sys.space.sys.id, - environmentId: userUIConfig.sys.environment.sys.id - }, - raw: userUIConfig - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUserUIConfig()) - * .then((uiConfig) => { - * uiConfig.entryListViews = [...] - * return uiConfig.update() - * }) - * .then((uiConfig) => console.log(`UserUIConfig updated.`)) - * .catch(console.error) - * ``` - */ - update: function () { - var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var _getParams, raw, params, data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _getParams = getParams(this), raw = _getParams.raw, params = _getParams.params; - _context.next = 3; - return makeRequest({ - entityType: 'UserUIConfig', - action: 'update', - params: params, - payload: raw - }); - case 3: - data = _context.sent; - return _context.abrupt("return", wrapUserUIConfig(makeRequest, data)); - case 5: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function update() { - return _update.apply(this, arguments); - } - return update; - }() - }; -} - -/***/ }), - -/***/ "./enhance-with-methods.ts": -/*!*********************************!*\ - !*** ./enhance-with-methods.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ enhanceWithMethods; } -/* harmony export */ }); -/** - * This method enhances a base object which would normally contain data, with - * methods from another object that might work on manipulating that data. - * All the added methods are set as non enumerable, non configurable, and non - * writable properties. This ensures that if we try to clone or stringify the - * base object, we don't have to worry about these additional methods. - * @private - * @param {object} baseObject - Base object with data - * @param {object} methodsObject - Object with methods as properties. The key - * values used here will be the same that will be defined on the baseObject. - */ -function enhanceWithMethods(baseObject, methodsObject) { - // @ts-expect-error - return Object.keys(methodsObject).reduce(function (enhancedObject, methodName) { - Object.defineProperty(enhancedObject, methodName, { - enumerable: false, - configurable: true, - writable: false, - value: methodsObject[methodName] - }); - return enhancedObject; - }, baseObject); -} - -/***/ }), - -/***/ "./entities/access-token.ts": -/*!**********************************!*\ - !*** ./entities/access-token.ts ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAccessToken: function() { return /* binding */ wrapAccessToken; }, -/* harmony export */ wrapAccessTokenCollection: function() { return /* binding */ wrapAccessTokenCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw access token data - * @return Wrapped access token - */ -function wrapAccessToken(makeRequest, data) { - var AccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var accessTokenWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(AccessToken, { - revoke: function revoke() { - return makeRequest({ - entityType: 'AccessToken', - action: 'revoke', - params: { - tokenId: data.sys.id - } - }).then(function (data) { - return wrapAccessToken(makeRequest, data); - }); - } - }); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(accessTokenWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw access collection data - * @return Wrapped access token collection data - */ -var wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAccessToken); - -/***/ }), - -/***/ "./entities/api-key.ts": -/*!*****************************!*\ - !*** ./entities/api-key.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapApiKey: function() { return /* binding */ wrapApiKey; }, -/* harmony export */ wrapApiKeyCollection: function() { return /* binding */ wrapApiKeyCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createApiKeyApi(makeRequest) { - var getParams = function getParams(data) { - var _data$sys$space$sys$i, _data$sys$space; - return { - spaceId: (_data$sys$space$sys$i = (_data$sys$space = data.sys.space) === null || _data$sys$space === void 0 ? void 0 : _data$sys$space.sys.id) !== null && _data$sys$space$sys$i !== void 0 ? _data$sys$space$sys$i : '', - apiKeyId: data.sys.id - }; - }; - return { - update: function update() { - var self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'update', - params: getParams(self), - payload: self, - headers: {} - }).then(function (data) { - return wrapApiKey(makeRequest, data); - }); - }, - delete: function del() { - var self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - */ -function wrapApiKey(makeRequest, data) { - var apiKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var apiKeyWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(apiKey, createApiKeyApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(apiKeyWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key collection data - * @return Wrapped api key collection data - */ -var wrapApiKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapApiKey); - -/***/ }), - -/***/ "./entities/app-access-token.ts": -/*!**************************************!*\ - !*** ./entities/app-access-token.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppAccessToken: function() { return /* binding */ wrapAppAccessToken; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw app access token data - * @return {AppAccessToken} Wrapped AppAccessToken data - */ -function wrapAppAccessToken(_makeRequest, data) { - var appAccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(appAccessToken); -} - -/***/ }), - -/***/ "./entities/app-action-call.ts": -/*!*************************************!*\ - !*** ./entities/app-action-call.ts ***! - \*************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createAppActionCallApi; }, -/* harmony export */ wrapAppActionCall: function() { return /* binding */ wrapAppActionCall; }, -/* harmony export */ wrapAppActionCallResponse: function() { return /* binding */ wrapAppActionCallResponse; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ -function createAppActionCallApi(makeRequest, retryOptions) { - return { - createWithResponse: function createWithResponse() { - var payload = { - parameters: { - recipient: 'Alice ', - message_body: 'Hello from Bob!' - } - }; - return makeRequest({ - entityType: 'AppActionCall', - action: 'createWithResponse', - params: _objectSpread({ - spaceId: 'space-id', - environmentId: 'environment-id', - appDefinitionId: 'app-definiton-id', - appActionId: 'app-action-id' - }, retryOptions), - payload: payload - }).then(function (data) { - return wrapAppActionCallResponse(makeRequest, data); - }); - }, - getCallDetails: function getCallDetails() { - return makeRequest({ - entityType: 'AppActionCall', - action: 'getCallDetails', - params: { - spaceId: 'space-id', - environmentId: 'environment-id', - callId: 'call-id', - appActionId: 'app-action-id' - } - }).then(function (data) { - return wrapAppActionCallResponse(makeRequest, data); - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -function wrapAppActionCall(makeRequest, data) { - var signedRequest = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var signedRequestWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(signedRequest, createAppActionCallApi(makeRequest)); - return signedRequestWithMethods; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -function wrapAppActionCallResponse(makeRequest, data, retryOptions) { - var appActionCallResponse = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var appActionCallResponseWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appActionCallResponse, createAppActionCallApi(makeRequest, retryOptions)); - return appActionCallResponseWithMethods; -} - -/***/ }), - -/***/ "./entities/app-action.ts": -/*!********************************!*\ - !*** ./entities/app-action.ts ***! - \********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppAction: function() { return /* binding */ wrapAppAction; }, -/* harmony export */ wrapAppActionCollection: function() { return /* binding */ wrapAppActionCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppActionApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appActionId: data.sys.id - }; - }; - return { - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -function wrapAppAction(makeRequest, data) { - var appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, createAppActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -var wrapAppActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppAction); - -/***/ }), - -/***/ "./entities/app-bundle.ts": -/*!********************************!*\ - !*** ./entities/app-bundle.ts ***! - \********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppBundle: function() { return /* binding */ wrapAppBundle; }, -/* harmony export */ wrapAppBundleCollection: function() { return /* binding */ wrapAppBundleCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppBundleApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appBundleId: data.sys.id - }; - }; - return { - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -function wrapAppBundle(makeRequest, data) { - var appBundle = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var appBundleWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appBundle, createAppBundleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appBundleWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -var wrapAppBundleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppBundle); - -/***/ }), - -/***/ "./entities/app-definition.ts": -/*!************************************!*\ - !*** ./entities/app-definition.ts ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppDefinition: function() { return /* binding */ wrapAppDefinition; }, -/* harmony export */ wrapAppDefinitionCollection: function() { return /* binding */ wrapAppDefinitionCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_app_definition_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-app-definition-api */ "./create-app-definition-api.ts"); - - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition data - * @return Wrapped App Definition data - */ -function wrapAppDefinition(makeRequest, data) { - var appDefinition = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var appDefinitionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appDefinition, (0,_create_app_definition_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(appDefinitionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition collection data - * @return Wrapped App Definition collection data - */ -var wrapAppDefinitionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppDefinition); - -/***/ }), - -/***/ "./entities/app-details.ts": -/*!*********************************!*\ - !*** ./entities/app-details.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppDetails: function() { return /* binding */ wrapAppDetails; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @return Wrapped App Details data - */ -function createAppDetailsApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }; - }; - return { - delete: function del() { - var self = this; - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppDetails data - * @return Wrapped AppDetails data - */ -function wrapAppDetails(makeRequest, data) { - var appDetails = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appDetails, createAppDetailsApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-event-subscription.ts": -/*!********************************************!*\ - !*** ./entities/app-event-subscription.ts ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppEventSubscription: function() { return /* binding */ wrapAppEventSubscription; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -function createEventSubscriptionApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }; - }; - return { - delete: function del() { - var self = this; - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppEventSubscription data - * @return Wrapped AppEventSubscription data - */ -function wrapAppEventSubscription(makeRequest, data) { - var eventSubscription = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(eventSubscription, createEventSubscriptionApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-installation.ts": -/*!**************************************!*\ - !*** ./entities/app-installation.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppInstallation: function() { return /* binding */ wrapAppInstallation; }, -/* harmony export */ wrapAppInstallationCollection: function() { return /* binding */ wrapAppInstallationCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createAppInstallationApi(makeRequest) { - var getParams = function getParams(data) { - return { - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }; - }; - return { - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: getParams(data), - headers: {}, - payload: data - }).then(function (data) { - return wrapAppInstallation(makeRequest, data); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Installation data - * @return Wrapped App installation data - */ -function wrapAppInstallation(makeRequest, data) { - var appInstallation = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var appInstallationWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appInstallation, createAppInstallationApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appInstallationWithMethods); -} - -/** - * @private - */ -var wrapAppInstallationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppInstallation); - -/***/ }), - -/***/ "./entities/app-key.ts": -/*!*****************************!*\ - !*** ./entities/app-key.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppKey: function() { return /* binding */ wrapAppKey; }, -/* harmony export */ wrapAppKeyCollection: function() { return /* binding */ wrapAppKeyCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -function createKeyApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - fingerprint: data.sys.id - }; - }; - return { - delete: function del() { - var self = this; - return makeRequest({ - entityType: 'AppKey', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppKey data - * @return Wrapped AppKey data - */ -function wrapAppKey(makeRequest, data) { - var key = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(key, createKeyApi(makeRequest)); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Key collection data - * @return Wrapped App Key collection data - */ -var wrapAppKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppKey); - -/***/ }), - -/***/ "./entities/app-signed-request.ts": -/*!****************************************!*\ - !*** ./entities/app-signed-request.ts ***! - \****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppSignedRequest: function() { return /* binding */ wrapAppSignedRequest; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSignedRequest data - * @return Wrapped AppSignedRequest data - */ -function wrapAppSignedRequest(_makeRequest, data) { - var signedRequest = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return signedRequest; -} - -/***/ }), - -/***/ "./entities/app-signing-secret.ts": -/*!****************************************!*\ - !*** ./entities/app-signing-secret.ts ***! - \****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppSigningSecret: function() { return /* binding */ wrapAppSigningSecret; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -function createSigningSecretApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }; - }; - return { - delete: function del() { - var self = this; - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSigningSecret data - * @return Wrapped AppSigningSecret data - */ -function wrapAppSigningSecret(makeRequest, data) { - var signingSecret = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(signingSecret, createSigningSecretApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-upload.ts": -/*!********************************!*\ - !*** ./entities/app-upload.ts ***! - \********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppUpload: function() { return /* binding */ wrapAppUpload; }, -/* harmony export */ wrapAppUploadCollection: function() { return /* binding */ wrapAppUploadCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppUploadApi(makeRequest) { - var getParams = function getParams(data) { - return { - organizationId: data.sys.organization.sys.id, - appUploadId: data.sys.id - }; - }; - return { - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload data - * @return Wrapped App Upload data - */ -function wrapAppUpload(makeRequest, data) { - var appUpload = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var appUploadWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appUpload, createAppUploadApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appUploadWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload collection data - * @return Wrapped App Upload collection data - */ -var wrapAppUploadCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppUpload); - -/***/ }), - -/***/ "./entities/asset-key.ts": -/*!*******************************!*\ - !*** ./entities/asset-key.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAssetKey: function() { return /* binding */ wrapAssetKey; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw asset key data - * @return Wrapped asset key data - */ -function wrapAssetKey(_makeRequest, data) { - var assetKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return assetKey; -} - -/***/ }), - -/***/ "./entities/asset.ts": -/*!***************************!*\ - !*** ./entities/asset.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAsset: function() { return /* binding */ wrapAsset; }, -/* harmony export */ wrapAssetCollection: function() { return /* binding */ wrapAssetCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plain/checks */ "./plain/checks.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - -/** - * @private - */ -function createAssetApi(makeRequest) { - var getParams = function getParams(raw) { - return { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - assetId: raw.sys.id - }; - }; - return { - processForLocale: function processForLocale(locale, options) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - locale: locale, - options: options, - asset: raw - }) - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - processForAllLocales: function processForAllLocales(options) { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - asset: raw, - options: options - }) - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'update', - params: getParams(raw), - payload: raw, - headers: {} - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - delete: function del() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'delete', - params: getParams(raw) - }); - }, - publish: function publish() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'publish', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - unpublish: function unpublish() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unpublish', - params: getParams(raw) - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - archive: function archive() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'archive', - params: getParams(raw) - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - unarchive: function unarchive() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unarchive', - params: getParams(raw) - }).then(function (data) { - return wrapAsset(makeRequest, data); - }); - }, - isPublished: function isPublished() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isPublished(raw); - }, - isUpdated: function isUpdated() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isUpdated(raw); - }, - isDraft: function isDraft() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isDraft(raw); - }, - isArchived: function isArchived() { - var raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isArchived(raw); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw asset data - * @return Wrapped asset data - */ -function wrapAsset(makeRequest, data) { - var asset = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var assetWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(asset, createAssetApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(assetWithMethods); -} - -/** - * @private - */ -var wrapAssetCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAsset); - -/***/ }), - -/***/ "./entities/bulk-action.ts": -/*!*********************************!*\ - !*** ./entities/bulk-action.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ BulkActionStatus: function() { return /* binding */ BulkActionStatus; }, -/* harmony export */ wrapBulkAction: function() { return /* binding */ wrapBulkAction; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _methods_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../methods/action */ "./methods/action.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - -/** Entity types supported by the BulkAction API */ - -/** Represents the state of the BulkAction */ -var BulkActionStatus = /*#__PURE__*/function (BulkActionStatus) { - BulkActionStatus["created"] = "created"; - BulkActionStatus["inProgress"] = "inProgress"; - BulkActionStatus["succeeded"] = "succeeded"; - BulkActionStatus["failed"] = "failed"; - return BulkActionStatus; -}({}); -var STATUSES = Object.values(BulkActionStatus); - -/** The object returned by the BulkActions API */ - -/** - * @private - */ -function createBulkActionApi(makeRequest) { - var getParams = function getParams(self) { - var bulkAction = self.toPlainObject(); - return { - spaceId: bulkAction.sys.space.sys.id, - environmentId: bulkAction.sys.environment.sys.id, - bulkActionId: bulkAction.sys.id - }; - }; - return { - get: function get() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var params; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - params = getParams(_this); - return _context.abrupt("return", makeRequest({ - entityType: 'BulkAction', - action: 'get', - params: params - }).then(function (bulkAction) { - return wrapBulkAction(makeRequest, bulkAction); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - }, - waitProcessing: function waitProcessing(options) { - var _this2 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - return _context3.abrupt("return", (0,_methods_action__WEBPACK_IMPORTED_MODULE_3__.pollAsyncActionStatus)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - return _context2.abrupt("return", _this2.get()); - case 1: - case "end": - return _context2.stop(); - } - }, _callee2); - })), options)); - case 1: - case "end": - return _context3.stop(); - } - }, _callee3); - }))(); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw BulkAction data - * @return Wrapped BulkAction data - */ -function wrapBulkAction(makeRequest, data) { - var bulkAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var bulkActionWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(bulkAction, createBulkActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(bulkActionWithApiMethods); -} - -/***/ }), - -/***/ "./entities/comment.ts": -/*!*****************************!*\ - !*** ./entities/comment.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CommentNode: function() { return /* binding */ CommentNode; }, -/* harmony export */ "default": function() { return /* binding */ createCommentApi; }, -/* harmony export */ wrapComment: function() { return /* binding */ wrapComment; }, -/* harmony export */ wrapCommentCollection: function() { return /* binding */ wrapCommentCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - -// PROPS // - -// Remove and replace with BLOCKS as soon as rich-text-types supports mentions -var CommentNode = /*#__PURE__*/function (CommentNode) { - CommentNode["Document"] = "document"; - CommentNode["Paragraph"] = "paragraph"; - CommentNode["Mention"] = "mention"; - return CommentNode; -}({}); - -// Add "extends Block" as soon as rich-text-types supports mentions - -// Add "extends Document" as soon as rich-text-types supports mentions. - -// PARAMS // - -// We keep this type as explicit as possible until we open up the comments entity further - -// NESTED CLIENT // - -/** - * @private - */ -function createCommentApi(makeRequest) { - var getParams = function getParams(comment) { - return { - spaceId: comment.sys.space.sys.id, - environmentId: comment.sys.environment.sys.id, - entryId: comment.sys.parentEntity.sys.id, - commentId: comment.sys.id - }; - }; - return { - update: function () { - var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var raw, data; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - raw = this.toPlainObject(); - _context.next = 3; - return makeRequest({ - entityType: 'Comment', - action: 'update', - params: getParams(raw), - payload: raw - }); - case 3: - data = _context.sent; - return _context.abrupt("return", wrapComment(makeRequest, data)); - case 5: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function update() { - return _update.apply(this, arguments); - } - return update; - }(), - delete: function () { - var _delete2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var raw; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - raw = this.toPlainObject(); - _context2.next = 3; - return makeRequest({ - entityType: 'Comment', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }); - case 3: - case "end": - return _context2.stop(); - } - }, _callee2, this); - })); - function _delete() { - return _delete2.apply(this, arguments); - } - return _delete; - }() - }; -} - -/** - * @private - */ -function wrapComment(makeRequest, data) { - var comment = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var commentWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(comment, createCommentApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(commentWithMethods); -} - -/** - * @private - */ -var wrapCommentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapComment); - -/***/ }), - -/***/ "./entities/content-type.ts": -/*!**********************************!*\ - !*** ./entities/content-type.ts ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapContentType: function() { return /* binding */ wrapContentType; }, -/* harmony export */ wrapContentTypeCollection: function() { return /* binding */ wrapContentTypeCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts"); -/* harmony import */ var _methods_content_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../methods/content-type */ "./methods/content-type.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - - - -/** - * @private - */ -function createContentTypeApi(makeRequest) { - var getParams = function getParams(self) { - var contentType = self.toPlainObject(); - return { - raw: contentType, - params: { - spaceId: contentType.sys.space.sys.id, - environmentId: contentType.sys.environment.sys.id, - contentTypeId: contentType.sys.id - } - }; - }; - return { - update: function update() { - var _getParams = getParams(this), - raw = _getParams.raw, - params = _getParams.params; - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params: params, - payload: raw - }).then(function (data) { - return wrapContentType(makeRequest, data); - }); - }, - delete: function _delete() { - var _getParams2 = getParams(this), - params = _getParams2.params; - return makeRequest({ - entityType: 'ContentType', - action: 'delete', - params: params - }).then(function () { - // noop - }); - }, - publish: function publish() { - var _getParams3 = getParams(this), - raw = _getParams3.raw, - params = _getParams3.params; - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params: params, - payload: raw - }).then(function (data) { - return wrapContentType(makeRequest, data); - }); - }, - unpublish: function unpublish() { - var _getParams4 = getParams(this), - params = _getParams4.params; - return makeRequest({ - entityType: 'ContentType', - action: 'unpublish', - params: params - }).then(function (data) { - return wrapContentType(makeRequest, data); - }); - }, - getEditorInterface: function getEditorInterface() { - var _getParams5 = getParams(this), - params = _getParams5.params; - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params: params - }).then(function (data) { - return (0,_editor_interface__WEBPACK_IMPORTED_MODULE_5__.wrapEditorInterface)(makeRequest, data); - }); - }, - getSnapshots: function getSnapshots() { - var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _getParams6 = getParams(this), - params = _getParams6.params; - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - query: query - }) - }).then(function (data) { - return (0,_snapshot__WEBPACK_IMPORTED_MODULE_6__.wrapSnapshotCollection)(makeRequest, data); - }); - }, - getSnapshot: function getSnapshot(snapshotId) { - var _getParams7 = getParams(this), - params = _getParams7.params; - return makeRequest({ - entityType: 'Snapshot', - action: 'getForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId: snapshotId - }) - }).then(function (data) { - return (0,_snapshot__WEBPACK_IMPORTED_MODULE_6__.wrapSnapshot)(makeRequest, data); - }); - }, - isPublished: function isPublished() { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isPublished)(this); - }, - isUpdated: function isUpdated() { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isUpdated)(this); - }, - isDraft: function isDraft() { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isDraft)(this); - }, - omitAndDeleteField: function omitAndDeleteField(fieldId) { - var _getParams8 = getParams(this), - raw = _getParams8.raw, - params = _getParams8.params; - return (0,_methods_content_type__WEBPACK_IMPORTED_MODULE_7__.omitAndDeleteField)(makeRequest, _objectSpread(_objectSpread({}, params), {}, { - fieldId: fieldId - }), raw).then(function (data) { - return wrapContentType(makeRequest, data); - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw content type data - * @return Wrapped content type data - */ -function wrapContentType(makeRequest, data) { - var contentType = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var contentTypeWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(contentType, createContentTypeApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(contentTypeWithMethods); -} - -/** - * @private - */ -var wrapContentTypeCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapContentType); - -/***/ }), - -/***/ "./entities/editor-interface.ts": -/*!**************************************!*\ - !*** ./entities/editor-interface.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEditorInterface: function() { return /* binding */ wrapEditorInterface; }, -/* harmony export */ wrapEditorInterfaceCollection: function() { return /* binding */ wrapEditorInterfaceCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createEditorInterfaceApi(makeRequest) { - return { - update: function update() { - var self = this; - var raw = self.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'update', - params: { - spaceId: self.sys.space.sys.id, - environmentId: self.sys.environment.sys.id, - contentTypeId: self.sys.contentType.sys.id - }, - payload: raw - }).then(function (response) { - return wrapEditorInterface(makeRequest, response); - }); - }, - getControlForField: function getControlForField(fieldId) { - var self = this; - var result = (self.controls || []).filter(function (control) { - return control.fieldId === fieldId; - }); - return result && result.length > 0 ? result[0] : null; - } - }; -} - -/** - * @private - */ -function wrapEditorInterface(makeRequest, data) { - var editorInterface = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var editorInterfaceWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(editorInterface, createEditorInterfaceApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(editorInterfaceWithMethods); -} - -/** - * @private - */ -var wrapEditorInterfaceCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapEditorInterface); - -/***/ }), - -/***/ "./entities/entry.ts": -/*!***************************!*\ - !*** ./entities/entry.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEntry: function() { return /* binding */ wrapEntry; }, -/* harmony export */ wrapEntryCollection: function() { return /* binding */ wrapEntryCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_entry_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-entry-api */ "./create-entry-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw entry data - * @return Wrapped entry data - */ -function wrapEntry(makeRequest, data) { - var entry = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var entryWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(entry, (0,_create_entry_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(entryWithMethods); -} - -/** - * Data is also mixed in with link getters if links exist and includes were requested - * @private - */ -var wrapEntryCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapEntry); - -/***/ }), - -/***/ "./entities/environment-alias.ts": -/*!***************************************!*\ - !*** ./entities/environment-alias.ts ***! - \***************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentAlias: function() { return /* binding */ wrapEnvironmentAlias; }, -/* harmony export */ wrapEnvironmentAliasCollection: function() { return /* binding */ wrapEnvironmentAliasCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createEnvironmentAliasApi(makeRequest) { - var getParams = function getParams(alias) { - return { - spaceId: alias.sys.space.sys.id, - environmentAliasId: alias.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapEnvironmentAlias(makeRequest, data); - }); - }, - delete: function _delete() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'delete', - params: getParams(raw) - }).then(function () { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias data - * @return Wrapped environment alias data - */ -function wrapEnvironmentAlias(makeRequest, data) { - var alias = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var enhancedAlias = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(alias, createEnvironmentAliasApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedAlias); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias collection data - * @return Wrapped environment alias collection data - */ -var wrapEnvironmentAliasCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapEnvironmentAlias); - -/***/ }), - -/***/ "./entities/environment-template-installation.ts": -/*!*******************************************************!*\ - !*** ./entities/environment-template-installation.ts ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentTemplateInstallation: function() { return /* binding */ wrapEnvironmentTemplateInstallation; }, -/* harmony export */ wrapEnvironmentTemplateInstallationCollection: function() { return /* binding */ wrapEnvironmentTemplateInstallationCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - -var EnvironmentTemplateInstallationStatuses = /*#__PURE__*/function (EnvironmentTemplateInstallationStatuses) { - EnvironmentTemplateInstallationStatuses["created"] = "created"; - EnvironmentTemplateInstallationStatuses["inProgress"] = "inProgress"; - EnvironmentTemplateInstallationStatuses["failed"] = "failed"; - EnvironmentTemplateInstallationStatuses["succeeded"] = "succeeded"; - EnvironmentTemplateInstallationStatuses["disconnected"] = "disconnected"; - EnvironmentTemplateInstallationStatuses["inRetry"] = "inRetry"; - return EnvironmentTemplateInstallationStatuses; -}(EnvironmentTemplateInstallationStatuses || {}); -function wrapEnvironmentTemplateInstallation(makeRequest, data) { - var environmentTemplate = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(environmentTemplate); -} -var wrapEnvironmentTemplateInstallationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCursorPaginatedCollection)(wrapEnvironmentTemplateInstallation); - -/***/ }), - -/***/ "./entities/environment-template.ts": -/*!******************************************!*\ - !*** ./entities/environment-template.ts ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentTemplate: function() { return /* binding */ wrapEnvironmentTemplate; }, -/* harmony export */ wrapEnvironmentTemplateCollection: function() { return /* binding */ wrapEnvironmentTemplateCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-environment-template-api */ "./create-environment-template-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -function wrapEnvironmentTemplate(makeRequest, data, organizationId) { - var environmentTemplate = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var environmentTemplateApi = (0,_create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__.createEnvironmentTemplateApi)(makeRequest, organizationId); - var enhancedEnvironmentTemplate = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(environmentTemplate, environmentTemplateApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(enhancedEnvironmentTemplate); -} -var wrapEnvironmentTemplateCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCursorPaginatedCollection)(wrapEnvironmentTemplate); - -/***/ }), - -/***/ "./entities/environment.ts": -/*!*********************************!*\ - !*** ./entities/environment.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironment: function() { return /* binding */ wrapEnvironment; }, -/* harmony export */ wrapEnvironmentCollection: function() { return /* binding */ wrapEnvironmentCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _create_environment_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-environment-api */ "./create-environment-api.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - - -/** - * This method creates the API for the given environment with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a environment id, so the base path for requests now has the - * environment id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Environment - * @return - */ -function wrapEnvironment(makeRequest, data) { - // do not pollute generated typings - var environment = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var environmentApi = (0,_create_environment_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - var enhancedEnvironment = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(environment, environmentApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedEnvironment); -} - -/** - * This method wraps each environment in a collection with the environment API. See wrapEnvironment - * above for more details. - * @private - */ -var wrapEnvironmentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_4__.wrapCollection)(wrapEnvironment); - -/***/ }), - -/***/ "./entities/extension.ts": -/*!*******************************!*\ - !*** ./entities/extension.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapExtension: function() { return /* binding */ wrapExtension; }, -/* harmony export */ wrapExtensionCollection: function() { return /* binding */ wrapExtensionCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createExtensionApi(makeRequest) { - var getParams = function getParams(data) { - return { - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - extensionId: data.sys.id - }; - }; - return { - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'update', - params: getParams(data), - payload: data - }).then(function (response) { - return wrapExtension(makeRequest, response); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw UI Extension data - * @return Wrapped UI Extension data - */ -function wrapExtension(makeRequest, data) { - var extension = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var extensionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(extension, createExtensionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(extensionWithMethods); -} - -/** - * @private - */ -var wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapExtension); - -/***/ }), - -/***/ "./entities/index.ts": -/*!***************************!*\ - !*** ./entities/index.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api-key */ "./entities/api-key.ts"); -/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app-action */ "./entities/app-action.ts"); -/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./entities/app-action-call.ts"); -/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./entities/app-bundle.ts"); -/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts"); -/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./entities/app-details.ts"); -/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts"); -/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./entities/app-signed-request.ts"); -/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./entities/app-signing-secret.ts"); -/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-event-subscription */ "./entities/app-event-subscription.ts"); -/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-key */ "./entities/app-key.ts"); -/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-access-token */ "./entities/app-access-token.ts"); -/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-upload */ "./entities/app-upload.ts"); -/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts"); -/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts"); -/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./bulk-action */ "./entities/bulk-action.ts"); -/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./comment */ "./entities/comment.ts"); -/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./content-type */ "./entities/content-type.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts"); -/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts"); -/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts"); -/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts"); -/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts"); -/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts"); -/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts"); -/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts"); -/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts"); -/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts"); -/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts"); -/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts"); -/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts"); -/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts"); -/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./release */ "./entities/release.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts"); -/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./role */ "./entities/role.ts"); -/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts"); -/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./space */ "./entities/space.ts"); -/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts"); -/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts"); -/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts"); -/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./task */ "./entities/task.ts"); -/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./team */ "./entities/team.ts"); -/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts"); -/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts"); -/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts"); -/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts"); -/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./user */ "./entities/user.ts"); -/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts"); -/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts"); -/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts"); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - accessToken: _access_token__WEBPACK_IMPORTED_MODULE_30__, - appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__, - appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__, - appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__, - apiKey: _api_key__WEBPACK_IMPORTED_MODULE_0__, - appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__, - appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__, - appUpload: _app_upload__WEBPACK_IMPORTED_MODULE_12__, - appDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__, - appSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__, - appSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__, - appEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__, - appKey: _app_key__WEBPACK_IMPORTED_MODULE_10__, - appAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_11__, - asset: _asset__WEBPACK_IMPORTED_MODULE_13__, - assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__, - bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__, - comment: _comment__WEBPACK_IMPORTED_MODULE_16__, - contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__, - editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__, - entry: _entry__WEBPACK_IMPORTED_MODULE_19__, - environment: _environment__WEBPACK_IMPORTED_MODULE_20__, - environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_21__, - environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__, - environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__, - extension: _extension__WEBPACK_IMPORTED_MODULE_24__, - locale: _locale__WEBPACK_IMPORTED_MODULE_25__, - organization: _organization__WEBPACK_IMPORTED_MODULE_26__, - organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_27__, - organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_28__, - personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_29__, - previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_31__, - release: _release__WEBPACK_IMPORTED_MODULE_32__, - releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_33__, - role: _role__WEBPACK_IMPORTED_MODULE_34__, - scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_35__, - snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_36__, - space: _space__WEBPACK_IMPORTED_MODULE_37__, - spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_38__, - spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_39__, - tag: _tag__WEBPACK_IMPORTED_MODULE_40__, - task: _task__WEBPACK_IMPORTED_MODULE_41__, - team: _team__WEBPACK_IMPORTED_MODULE_42__, - teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_43__, - teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_44__, - uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_45__, - upload: _upload__WEBPACK_IMPORTED_MODULE_46__, - usage: _usage__WEBPACK_IMPORTED_MODULE_47__, - user: _user__WEBPACK_IMPORTED_MODULE_48__, - userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_49__, - webhook: _webhook__WEBPACK_IMPORTED_MODULE_50__, - workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_51__ -}); - -/***/ }), - -/***/ "./entities/locale.ts": -/*!****************************!*\ - !*** ./entities/locale.ts ***! - \****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapLocale: function() { return /* binding */ wrapLocale; }, -/* harmony export */ wrapLocaleCollection: function() { return /* binding */ wrapLocaleCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createLocaleApi(makeRequest) { - var getParams = function getParams(locale) { - return { - spaceId: locale.sys.space.sys.id, - environmentId: locale.sys.environment.sys.id, - localeId: locale.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapLocale(makeRequest, data); - }); - }, - delete: function _delete() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'delete', - params: getParams(raw) - }).then(function () { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw locale data - * @return Wrapped locale data - */ -function wrapLocale(makeRequest, data) { - delete data.internal_code; - var locale = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var localeWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(locale, createLocaleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(localeWithMethods); -} - -/** - * @private - */ -var wrapLocaleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapLocale); - -/***/ }), - -/***/ "./entities/organization-invitation.ts": -/*!*********************************************!*\ - !*** ./entities/organization-invitation.ts ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganizationInvitation: function() { return /* binding */ wrapOrganizationInvitation; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw invitation data - * @return {OrganizationInvitation} Wrapped Inviation data - */ -function wrapOrganizationInvitation(_makeRequest, data) { - var invitation = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(invitation); -} - -/***/ }), - -/***/ "./entities/organization-membership.ts": -/*!*********************************************!*\ - !*** ./entities/organization-membership.ts ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganizationMembership: function() { return /* binding */ wrapOrganizationMembership; }, -/* harmony export */ wrapOrganizationMembershipCollection: function() { return /* binding */ wrapOrganizationMembershipCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createOrganizationMembershipApi(makeRequest, organizationId) { - var getParams = function getParams(data) { - return { - organizationMembershipId: data.sys.id, - organizationId: organizationId - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapOrganizationMembership(makeRequest, data, organizationId); - }); - }, - delete: function del() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {Object} data - Raw organization membership data - * @return {OrganizationMembership} Wrapped organization membership data - */ -function wrapOrganizationMembership(makeRequest, data, organizationId) { - var organizationMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var organizationMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(organizationMembership, createOrganizationMembershipApi(makeRequest, organizationId)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(organizationMembershipWithMethods); -} - -/** - * @private - */ -var wrapOrganizationMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapOrganizationMembership); - -/***/ }), - -/***/ "./entities/organization.ts": -/*!**********************************!*\ - !*** ./entities/organization.ts ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganization: function() { return /* binding */ wrapOrganization; }, -/* harmony export */ wrapOrganizationCollection: function() { return /* binding */ wrapOrganizationCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _create_organization_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-organization-api */ "./create-organization-api.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - - -/** - * This method creates the API for the given organization with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with an organization id, so the base path for requests now has the - * organization id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for an Organization - * @return {Organization} - */ -function wrapOrganization(makeRequest, data) { - var org = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var orgApi = (0,_create_organization_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - var enhancedOrganization = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(org, orgApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedOrganization); -} - -/** - * This method normalizes each organization in a collection. - * @private - */ -var wrapOrganizationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_4__.wrapCollection)(wrapOrganization); - -/***/ }), - -/***/ "./entities/personal-access-token.ts": -/*!*******************************************!*\ - !*** ./entities/personal-access-token.ts ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapPersonalAccessToken: function() { return /* binding */ wrapPersonalAccessToken; }, -/* harmony export */ wrapPersonalAccessTokenCollection: function() { return /* binding */ wrapPersonalAccessTokenCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access token data - * @return Wrapped personal access token - */ -function wrapPersonalAccessToken(makeRequest, data) { - var personalAccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var personalAccessTokenWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(personalAccessToken, { - revoke: function revoke() { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'revoke', - params: { - tokenId: data.sys.id - } - }).then(function (data) { - return wrapPersonalAccessToken(makeRequest, data); - }); - } - }); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(personalAccessTokenWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access collection data - * @return Wrapped personal access token collection data - */ -var wrapPersonalAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapPersonalAccessToken); - -/***/ }), - -/***/ "./entities/preview-api-key.ts": -/*!*************************************!*\ - !*** ./entities/preview-api-key.ts ***! - \*************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapPreviewApiKey: function() { return /* binding */ wrapPreviewApiKey; }, -/* harmony export */ wrapPreviewApiKeyCollection: function() { return /* binding */ wrapPreviewApiKeyCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createPreviewApiKeyApi() { - return {}; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - * @return Wrapped preview api key data - */ -function wrapPreviewApiKey(_makeRequest, data) { - var previewApiKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var previewApiKeyWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(previewApiKey, createPreviewApiKeyApi()); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(previewApiKeyWithMethods); -} - -/** - * @private - */ -var wrapPreviewApiKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapPreviewApiKey); - -/***/ }), - -/***/ "./entities/release-action.ts": -/*!************************************!*\ - !*** ./entities/release-action.ts ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapReleaseAction: function() { return /* binding */ wrapReleaseAction; }, -/* harmony export */ wrapReleaseActionCollection: function() { return /* binding */ wrapReleaseActionCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _methods_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../methods/action */ "./methods/action.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseActionApi(makeRequest) { - var getParams = function getParams(self) { - var action = self.toPlainObject(); - return { - spaceId: action.sys.space.sys.id, - environmentId: action.sys.environment.sys.id, - releaseId: action.sys.release.sys.id, - actionId: action.sys.id - }; - }; - return { - get: function get() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var params; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - params = getParams(_this); - return _context.abrupt("return", makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params: params - }).then(function (releaseAction) { - return wrapReleaseAction(makeRequest, releaseAction); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - }, - /** Waits for a Release Action to complete */waitProcessing: function waitProcessing(options) { - var _this2 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - return _context3.abrupt("return", (0,_methods_action__WEBPACK_IMPORTED_MODULE_3__.pollAsyncActionStatus)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - return _context2.abrupt("return", _this2.get()); - case 1: - case "end": - return _context2.stop(); - } - }, _callee2); - })), options)); - case 1: - case "end": - return _context3.stop(); - } - }, _callee3); - }))(); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -function wrapReleaseAction(makeRequest, data) { - var releaseAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var releaseActionWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(releaseAction, createReleaseActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(releaseActionWithApiMethods); -} - -/** - * @private - */ -var wrapReleaseActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapReleaseAction); - -/***/ }), - -/***/ "./entities/release.ts": -/*!*****************************!*\ - !*** ./entities/release.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ReleaseReferenceFilters: function() { return /* binding */ ReleaseReferenceFilters; }, -/* harmony export */ wrapRelease: function() { return /* binding */ wrapRelease; }, -/* harmony export */ wrapReleaseCollection: function() { return /* binding */ wrapReleaseCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-types */ "./common-types.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - - - -/** Entity types supported by the Release API */ - -var ReleaseReferenceFilters = _common_types__WEBPACK_IMPORTED_MODULE_2__.ScheduledActionReferenceFilters; - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseApi(makeRequest) { - var getParams = function getParams(self) { - var release = self.toPlainObject(); - return { - spaceId: release.sys.space.sys.id, - environmentId: release.sys.environment.sys.id, - releaseId: release.sys.id, - version: release.sys.version - }; - }; - return { - archive: function archive() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var params; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - params = getParams(_this); - return _context.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'archive', - params: params - }).then(function (release) { - return wrapRelease(makeRequest, release); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - }, - unarchive: function unarchive() { - var _this2 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var params; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - params = getParams(_this2); - return _context2.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'unarchive', - params: params - }).then(function (release) { - return wrapRelease(makeRequest, release); - })); - case 2: - case "end": - return _context2.stop(); - } - }, _callee2); - }))(); - }, - update: function update(payload) { - var _this3 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { - var params; - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - params = getParams(_this3); - return _context3.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'update', - params: params, - payload: payload - }).then(function (release) { - return wrapRelease(makeRequest, release); - })); - case 2: - case "end": - return _context3.stop(); - } - }, _callee3); - }))(); - }, - delete: function _delete() { - var _this4 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { - var params; - return _regeneratorRuntime().wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - params = getParams(_this4); - _context4.next = 3; - return makeRequest({ - entityType: 'Release', - action: 'delete', - params: params - }); - case 3: - case "end": - return _context4.stop(); - } - }, _callee4); - }))(); - }, - publish: function publish(options) { - var _this5 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { - var params; - return _regeneratorRuntime().wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - params = getParams(_this5); - return _context5.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'publish', - params: params - }).then(function (data) { - return (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data); - }).then(function (action) { - return action.waitProcessing(options); - })); - case 2: - case "end": - return _context5.stop(); - } - }, _callee5); - }))(); - }, - unpublish: function unpublish(options) { - var _this6 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() { - var params; - return _regeneratorRuntime().wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - params = getParams(_this6); - return _context6.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'unpublish', - params: params - }).then(function (data) { - return (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data); - }).then(function (action) { - return action.waitProcessing(options); - })); - case 2: - case "end": - return _context6.stop(); - } - }, _callee6); - }))(); - }, - validate: function validate(options) { - var _this7 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() { - var params; - return _regeneratorRuntime().wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - params = getParams(_this7); - return _context7.abrupt("return", makeRequest({ - entityType: 'Release', - action: 'validate', - params: params, - payload: options === null || options === void 0 ? void 0 : options.payload - }).then(function (data) { - return (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data); - }).then(function (action) { - return action.waitProcessing(options === null || options === void 0 ? void 0 : options.processingOptions); - })); - case 2: - case "end": - return _context7.stop(); - } - }, _callee7); - }))(); - } - }; -} -/** - * Return a Release object enhanced with its own API helper functions. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -function wrapRelease(makeRequest, data) { - var release = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var releaseWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(release, createReleaseApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(releaseWithApiMethods); -} - -/** - * @private - */ -var wrapReleaseCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCursorPaginatedCollection)(wrapRelease); - -/***/ }), - -/***/ "./entities/role.ts": -/*!**************************!*\ - !*** ./entities/role.ts ***! - \**************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapRole: function() { return /* binding */ wrapRole; }, -/* harmony export */ wrapRoleCollection: function() { return /* binding */ wrapRoleCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createRoleApi(makeRequest) { - var getParams = function getParams(data) { - return { - spaceId: data.sys.space.sys.id, - roleId: data.sys.id - }; - }; - return { - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'update', - params: getParams(data), - payload: data - }).then(function (data) { - return wrapRole(makeRequest, data); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw role data - * @return Wrapped role data - */ -function wrapRole(makeRequest, data) { - var role = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var roleWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(role, createRoleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(roleWithMethods); -} - -/** - * @private - */ -var wrapRoleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapRole); - -/***/ }), - -/***/ "./entities/scheduled-action.ts": -/*!**************************************!*\ - !*** ./entities/scheduled-action.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ getInstanceMethods; }, -/* harmony export */ wrapScheduledAction: function() { return /* binding */ wrapScheduledAction; }, -/* harmony export */ wrapScheduledActionCollection: function() { return /* binding */ wrapScheduledActionCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _excluded = ["sys"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - -/** - * Represents that state of the scheduled action - */ -var ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) { - ScheduledActionStatus["scheduled"] = "scheduled"; - ScheduledActionStatus["inProgress"] = "inProgress"; - ScheduledActionStatus["succeeded"] = "succeeded"; - ScheduledActionStatus["failed"] = "failed"; - ScheduledActionStatus["canceled"] = "canceled"; - return ScheduledActionStatus; -}(ScheduledActionStatus || {}); -function getInstanceMethods(makeRequest) { - var getParams = function getParams(self) { - var _scheduledAction$envi; - var scheduledAction = self.toPlainObject(); - return { - spaceId: scheduledAction.sys.space.sys.id, - environmentId: (_scheduledAction$envi = scheduledAction.environment) === null || _scheduledAction$envi === void 0 ? void 0 : _scheduledAction$envi.sys.id, - scheduledActionId: scheduledAction.sys.id, - version: scheduledAction.sys.version - }; - }; - return { - /** - * Cancels the current Scheduled Action schedule. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => scheduledAction.delete()) - * .then((deletedScheduledAction) => console.log(deletedScheduledAction)) - * .catch(console.error); - * ``` - */ - delete: function _delete() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var params; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - params = getParams(_this); - return _context.abrupt("return", makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params: params - }).then(function (data) { - return wrapScheduledAction(makeRequest, data); - })); - case 2: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - }, - /** - * Update the current scheduled action. Currently, only changes made to the `scheduledFor` property will be saved. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * scheduledAction.scheduledFor.timezone = 'Europe/Paris'; - * return scheduledAction.update(); - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - update: function update() { - var _this2 = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var params, _this2$toPlainObject, sys, payload; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - params = getParams(_this2); // eslint-disable-next-line @typescript-eslint/no-unused-vars - _this2$toPlainObject = _this2.toPlainObject(), sys = _this2$toPlainObject.sys, payload = _objectWithoutProperties(_this2$toPlainObject, _excluded); - return _context2.abrupt("return", makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params: params, - payload: payload - }).then(function (data) { - return wrapScheduledAction(makeRequest, data); - })); - case 3: - case "end": - return _context2.stop(); - } - }, _callee2); - }))(); - } - }; -} - -/** - * @private - */ -function wrapScheduledAction(makeRequest, data) { - var scheduledAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var scheduledActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(scheduledAction, getInstanceMethods(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(scheduledActionWithMethods); -} - -/** - * @private - */ -var wrapScheduledActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapScheduledAction); - -/***/ }), - -/***/ "./entities/snapshot.ts": -/*!******************************!*\ - !*** ./entities/snapshot.ts ***! - \******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSnapshot: function() { return /* binding */ wrapSnapshot; }, -/* harmony export */ wrapSnapshotCollection: function() { return /* binding */ wrapSnapshotCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createSnapshotApi() { - return { - /* In case the snapshot object evolve later */ - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot data - * @return Wrapped snapshot data - */ -function wrapSnapshot(_makeRequest, data) { - var snapshot = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var snapshotWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(snapshot, createSnapshotApi()); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(snapshotWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot collection data - * @return Wrapped snapshot collection data - */ -var wrapSnapshotCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapSnapshot); - -/***/ }), - -/***/ "./entities/space-member.ts": -/*!**********************************!*\ - !*** ./entities/space-member.ts ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpaceMember: function() { return /* binding */ wrapSpaceMember; }, -/* harmony export */ wrapSpaceMemberCollection: function() { return /* binding */ wrapSpaceMemberCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space member data - * @return Wrapped space member data - */ -function wrapSpaceMember(_makeRequest, data) { - var spaceMember = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(spaceMember); -} - -/** - * @private - */ -var wrapSpaceMemberCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapSpaceMember); - -/***/ }), - -/***/ "./entities/space-membership.ts": -/*!**************************************!*\ - !*** ./entities/space-membership.ts ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpaceMembership: function() { return /* binding */ wrapSpaceMembership; }, -/* harmony export */ wrapSpaceMembershipCollection: function() { return /* binding */ wrapSpaceMembershipCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createSpaceMembershipApi(makeRequest) { - var getParams = function getParams(data) { - return { - spaceId: data.sys.space.sys.id, - spaceMembershipId: data.sys.id - }; - }; - return { - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'update', - params: getParams(data), - payload: data - }).then(function (data) { - return wrapSpaceMembership(makeRequest, data); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped space membership data - */ -function wrapSpaceMembership(makeRequest, data) { - var spaceMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var spaceMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(spaceMembership, createSpaceMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(spaceMembershipWithMethods); -} - -/** - * @private - */ -var wrapSpaceMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapSpaceMembership); - -/***/ }), - -/***/ "./entities/space.ts": -/*!***************************!*\ - !*** ./entities/space.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpace: function() { return /* binding */ wrapSpace; }, -/* harmony export */ wrapSpaceCollection: function() { return /* binding */ wrapSpaceCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_space_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-space-api */ "./create-space-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -/** - * This method creates the API for the given space with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a space id, so the base path for requests now has the - * space id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Space - * @return {Space} - */ -function wrapSpace(makeRequest, data) { - var space = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var spaceApi = (0,_create_space_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - var enhancedSpace = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(space, spaceApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(enhancedSpace); -} - -/** - * This method wraps each space in a collection with the space API. See wrapSpace - * above for more details. - * @private - */ -var wrapSpaceCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapSpace); - -/***/ }), - -/***/ "./entities/tag.ts": -/*!*************************!*\ - !*** ./entities/tag.ts ***! - \*************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createTagApi; }, -/* harmony export */ wrapTag: function() { return /* binding */ wrapTag; }, -/* harmony export */ wrapTagCollection: function() { return /* binding */ wrapTagCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createTagApi(makeRequest) { - var getParams = function getParams(tag) { - return { - spaceId: tag.sys.space.sys.id, - environmentId: tag.sys.environment.sys.id, - tagId: tag.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapTag(makeRequest, data); - }); - }, - delete: function _delete() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(function () { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapTag(makeRequest, data) { - var tag = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var tagWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(tag, createTagApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(tagWithMethods); -} - -/** - * @private - */ -var wrapTagCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapTag); - -/***/ }), - -/***/ "./entities/task.ts": -/*!**************************!*\ - !*** ./entities/task.ts ***! - \**************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ createTaskApi; }, -/* harmony export */ wrapTask: function() { return /* binding */ wrapTask; }, -/* harmony export */ wrapTaskCollection: function() { return /* binding */ wrapTaskCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createTaskApi(makeRequest) { - var getParams = function getParams(task) { - return { - spaceId: task.sys.space.sys.id, - environmentId: task.sys.environment.sys.id, - entryId: task.sys.parentEntity.sys.id, - taskId: task.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapTask(makeRequest, data); - }); - }, - delete: function _delete() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(function () { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapTask(makeRequest, data) { - var task = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var taskWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(task, createTaskApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(taskWithMethods); -} - -/** - * @private - */ -var wrapTaskCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapTask); - -/***/ }), - -/***/ "./entities/team-membership.ts": -/*!*************************************!*\ - !*** ./entities/team-membership.ts ***! - \*************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeamMembership: function() { return /* binding */ wrapTeamMembership; }, -/* harmony export */ wrapTeamMembershipCollection: function() { return /* binding */ wrapTeamMembershipCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamMembershipApi(makeRequest) { - var getParams = function getParams(data) { - return { - teamMembershipId: data.sys.id, - teamId: data.sys.team.sys.id, - organizationId: data.sys.organization.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapTeamMembership(makeRequest, data); - }); - }, - delete: function del() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team membership data - * @return Wrapped team membership data - */ -function wrapTeamMembership(makeRequest, data) { - var teamMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var teamMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(teamMembership, createTeamMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamMembershipWithMethods); -} - -/** - * @private - */ -var wrapTeamMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeamMembership); - -/***/ }), - -/***/ "./entities/team-space-membership.ts": -/*!*******************************************!*\ - !*** ./entities/team-space-membership.ts ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeamSpaceMembership: function() { return /* binding */ wrapTeamSpaceMembership; }, -/* harmony export */ wrapTeamSpaceMembershipCollection: function() { return /* binding */ wrapTeamSpaceMembershipCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamSpaceMembershipApi(makeRequest) { - var getParams = function getParams(data) { - return { - teamSpaceMembershipId: data.sys.id, - spaceId: data.sys.space.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapTeamSpaceMembership(makeRequest, data); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped team space membership data - */ -function wrapTeamSpaceMembership(makeRequest, data) { - var teamSpaceMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var teamSpaceMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(teamSpaceMembership, createTeamSpaceMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamSpaceMembershipWithMethods); -} - -/** - * @private - */ -var wrapTeamSpaceMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeamSpaceMembership); - -/***/ }), - -/***/ "./entities/team.ts": -/*!**************************!*\ - !*** ./entities/team.ts ***! - \**************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeam: function() { return /* binding */ wrapTeam; }, -/* harmony export */ wrapTeamCollection: function() { return /* binding */ wrapTeamCollection; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamApi(makeRequest) { - var getParams = function getParams(data) { - return { - teamId: data.sys.id, - organizationId: data.sys.organization.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapTeam(makeRequest, data); - }); - }, - delete: function del() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team data - * @return Wrapped team data - */ -function wrapTeam(makeRequest, data) { - var team = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var teamWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(team, createTeamApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamWithMethods); -} - -/** - * @private - */ -var wrapTeamCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeam); - -/***/ }), - -/***/ "./entities/ui-config.ts": -/*!*******************************!*\ - !*** ./entities/ui-config.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUIConfig: function() { return /* binding */ wrapUIConfig; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-ui-config-api */ "./create-ui-config-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Wrapped UIConfig - */ -function wrapUIConfig(makeRequest, data) { - var user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, (0,_create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/***/ }), - -/***/ "./entities/upload.ts": -/*!****************************!*\ - !*** ./entities/upload.ts ***! - \****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUpload: function() { return /* binding */ wrapUpload; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - -/** - * @private - */ -function createUploadApi(makeRequest) { - return { - delete: function () { - var _del = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var raw; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - raw = this.toPlainObject(); - _context.next = 3; - return makeRequest({ - entityType: 'Upload', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: raw.sys.id - } - }); - case 3: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function del() { - return _del.apply(this, arguments); - } - return del; - }() - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {object} data - Raw upload data - * @return {Upload} Wrapped upload data - */ -function wrapUpload(makeRequest, data) { - var upload = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - var uploadWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(upload, createUploadApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(uploadWithMethods); -} - -/***/ }), - -/***/ "./entities/usage.ts": -/*!***************************!*\ - !*** ./entities/usage.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUsage: function() { return /* binding */ wrapUsage; }, -/* harmony export */ wrapUsageCollection: function() { return /* binding */ wrapUsageCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized usage - */ -function wrapUsage(_makeRequest, data) { - var usage = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var usageWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(usage, {}); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(usageWithMethods); -} - -/** - * @private - */ -var wrapUsageCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapUsage); - -/***/ }), - -/***/ "./entities/user-ui-config.ts": -/*!************************************!*\ - !*** ./entities/user-ui-config.ts ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUserUIConfig: function() { return /* binding */ wrapUserUIConfig; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-user-ui-config-api */ "./create-user-ui-config-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Wrapped UserUIConfig - */ -function wrapUserUIConfig(makeRequest, data) { - var user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, (0,_create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/***/ }), - -/***/ "./entities/user.ts": -/*!**************************!*\ - !*** ./entities/user.ts ***! - \**************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUser: function() { return /* binding */ wrapUser; }, -/* harmony export */ wrapUserCollection: function() { return /* binding */ wrapUserCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized user - */ -function wrapUser(_makeRequest, data) { - var user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(user, {}); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data collection - * @return Normalized user collection - */ -var wrapUserCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapUser); - -/***/ }), - -/***/ "./entities/webhook.ts": -/*!*****************************!*\ - !*** ./entities/webhook.ts ***! - \*****************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapWebhook: function() { return /* binding */ wrapWebhook; }, -/* harmony export */ wrapWebhookCollection: function() { return /* binding */ wrapWebhookCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createWebhookApi(makeRequest) { - var getParams = function getParams(data) { - return { - spaceId: data.sys.space.sys.id, - webhookDefinitionId: data.sys.id - }; - }; - return { - update: function update() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'update', - params: getParams(data), - payload: data - }).then(function (data) { - return wrapWebhook(makeRequest, data); - }); - }, - delete: function del() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'delete', - params: getParams(data) - }); - }, - getCalls: function getCalls() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getManyCallDetails', - params: getParams(data) - }); - }, - getCall: function getCall(id) { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getCallDetails', - params: _objectSpread(_objectSpread({}, getParams(data)), {}, { - callId: id - }) - }); - }, - getHealth: function getHealth() { - var data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getHealthStatus', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw webhook data - * @return Wrapped webhook data - */ -function wrapWebhook(makeRequest, data) { - var webhook = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var webhookWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(webhook, createWebhookApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(webhookWithMethods); -} - -/** - * @private - */ -var wrapWebhookCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapWebhook); - -/***/ }), - -/***/ "./entities/workflow-definition.ts": -/*!*****************************************!*\ - !*** ./entities/workflow-definition.ts ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ WorkflowStepActionType: function() { return /* binding */ WorkflowStepActionType; }, -/* harmony export */ WorkflowStepPermissionAction: function() { return /* binding */ WorkflowStepPermissionAction; }, -/* harmony export */ WorkflowStepPermissionEffect: function() { return /* binding */ WorkflowStepPermissionEffect; }, -/* harmony export */ WorkflowStepPermissionType: function() { return /* binding */ WorkflowStepPermissionType; }, -/* harmony export */ "default": function() { return /* binding */ createWorkflowDefinitionApi; }, -/* harmony export */ wrapWorkflowDefinition: function() { return /* binding */ wrapWorkflowDefinition; }, -/* harmony export */ wrapWorkflowDefinitionCollection: function() { return /* binding */ wrapWorkflowDefinitionCollection; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - -/* Workflow Step Permission */ - -var WorkflowStepPermissionType = /*#__PURE__*/function (WorkflowStepPermissionType) { - WorkflowStepPermissionType["EntityPermission"] = "entity_permission"; - WorkflowStepPermissionType["WorkflowPermission"] = "workflow_permission"; - return WorkflowStepPermissionType; -}({}); -var WorkflowStepPermissionAction = /*#__PURE__*/function (WorkflowStepPermissionAction) { - WorkflowStepPermissionAction["Edit"] = "edit"; - WorkflowStepPermissionAction["Publish"] = "publish"; - WorkflowStepPermissionAction["Delete"] = "delete"; - return WorkflowStepPermissionAction; -}({}); -var WorkflowStepPermissionEffect = /*#__PURE__*/function (WorkflowStepPermissionEffect) { - WorkflowStepPermissionEffect["Allow"] = "allow"; - WorkflowStepPermissionEffect["Deny"] = "deny"; - return WorkflowStepPermissionEffect; -}({}); -/* Workflow Step Action */ -var WorkflowStepActionType = /*#__PURE__*/function (WorkflowStepActionType) { - WorkflowStepActionType["App"] = "app"; - WorkflowStepActionType["Email"] = "email"; - WorkflowStepActionType["Task"] = "task"; - return WorkflowStepActionType; -}({}); - -/* Workflow Step */ - -/* Workflow Definition */ - -/** - * @private - */ -function createWorkflowDefinitionApi(makeRequest) { - var getParams = function getParams(workflowDefinition) { - return { - spaceId: workflowDefinition.sys.space.sys.id, - environmentId: workflowDefinition.sys.environment.sys.id, - workflowDefinitionId: workflowDefinition.sys.id - }; - }; - return { - update: function update() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'update', - params: getParams(raw), - payload: raw - }).then(function (data) { - return wrapWorkflowDefinition(makeRequest, data); - }); - }, - delete: function _delete() { - var raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(function () { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapWorkflowDefinition(makeRequest, data) { - var workflowDefinition = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - var workflowDefinitionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(workflowDefinition, createWorkflowDefinitionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(workflowDefinitionWithMethods); -} - -/** - * @private - */ -var wrapWorkflowDefinitionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapWorkflowDefinition); - -/***/ }), - -/***/ "./export-types.ts": -/*!*************************!*\ - !*** ./export-types.ts ***! - \*************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */ _common_types__WEBPACK_IMPORTED_MODULE_0__.ScheduledActionReferenceFilters; }, -/* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionAction; }, -/* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionEffect; }, -/* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionType; } -/* harmony export */ }); -/* harmony import */ var _common_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common-types */ "./common-types.ts"); -/* harmony import */ var _plain_common_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./plain/common-types */ "./plain/common-types.ts"); -/* harmony import */ var _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/workflow-definition */ "./entities/workflow-definition.ts"); - - - - -/***/ }), - -/***/ "./methods/action.ts": -/*!***************************!*\ - !*** ./methods/action.ts ***! - \***************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AsyncActionFailedError: function() { return /* binding */ AsyncActionFailedError; }, -/* harmony export */ AsyncActionProcessingError: function() { return /* binding */ AsyncActionProcessingError; }, -/* harmony export */ pollAsyncActionStatus: function() { return /* binding */ pollAsyncActionStatus; } -/* harmony export */ }); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./methods/utils.ts"); -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); } -function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; } -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } -function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - -var DEFAULT_MAX_RETRIES = 30; -var DEFAULT_INITIAL_DELAY_MS = 1000; -var DEFAULT_RETRY_INTERVAL_MS = 2000; - -/** Action is an interface that has a sys.status to be checked against */ - -var AsyncActionProcessingError = /*#__PURE__*/function (_Error) { - function AsyncActionProcessingError(message, action) { - var _this; - _classCallCheck(this, AsyncActionProcessingError); - _this = _callSuper(this, AsyncActionProcessingError, [message]); - _defineProperty(_this, "action", void 0); - _this.action = action; - _this.name = _this.constructor.name; - return _this; - } - _inherits(AsyncActionProcessingError, _Error); - return _createClass(AsyncActionProcessingError); -}( /*#__PURE__*/_wrapNativeSuper(Error)); -var AsyncActionFailedError = /*#__PURE__*/function (_AsyncActionProcessin) { - function AsyncActionFailedError() { - _classCallCheck(this, AsyncActionFailedError); - return _callSuper(this, AsyncActionFailedError, arguments); - } - _inherits(AsyncActionFailedError, _AsyncActionProcessin); - return _createClass(AsyncActionFailedError); -}(AsyncActionProcessingError); -/** - * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded) - * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status - * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed. - * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long. - */ -function pollAsyncActionStatus(_x, _x2) { - return _pollAsyncActionStatus.apply(this, arguments); -} -function _pollAsyncActionStatus() { - _pollAsyncActionStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(actionFunction, options) { - var _options$retryCount, _options$retryInterva, _options$initialDelay, _options$throwOnFaile, _action; - var retryCount, done, action, maxRetries, retryIntervalMs, initialDelayMs, throwOnFailedExecution; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - retryCount = 0; - done = false; - maxRetries = (_options$retryCount = options === null || options === void 0 ? void 0 : options.retryCount) !== null && _options$retryCount !== void 0 ? _options$retryCount : DEFAULT_MAX_RETRIES; - retryIntervalMs = (_options$retryInterva = options === null || options === void 0 ? void 0 : options.retryIntervalMs) !== null && _options$retryInterva !== void 0 ? _options$retryInterva : DEFAULT_RETRY_INTERVAL_MS; - initialDelayMs = (_options$initialDelay = options === null || options === void 0 ? void 0 : options.initialDelayMs) !== null && _options$initialDelay !== void 0 ? _options$initialDelay : DEFAULT_INITIAL_DELAY_MS; - throwOnFailedExecution = (_options$throwOnFaile = options === null || options === void 0 ? void 0 : options.throwOnFailedExecution) !== null && _options$throwOnFaile !== void 0 ? _options$throwOnFaile : true; // Initial delay for short-running Actions - _context.next = 8; - return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.sleep)(initialDelayMs); - case 8: - if (!(retryCount < maxRetries && !done)) { - _context.next = 22; - break; - } - _context.next = 11; - return actionFunction(); - case 11: - action = _context.sent; - if (!(action && ['succeeded', 'failed'].includes(action.sys.status))) { - _context.next = 17; - break; - } - done = true; - if (!(action.sys.status === 'failed' && throwOnFailedExecution)) { - _context.next = 16; - break; - } - throw new AsyncActionFailedError("".concat(action.sys.type, " failed to execute."), action); - case 16: - return _context.abrupt("return", action); - case 17: - _context.next = 19; - return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.sleep)(retryIntervalMs); - case 19: - retryCount += 1; - _context.next = 8; - break; - case 22: - throw new AsyncActionProcessingError("".concat((_action = action) === null || _action === void 0 ? void 0 : _action.sys.type, " didn't finish processing within the expected timeframe."), action); - case 23: - case "end": - return _context.stop(); - } - }, _callee); - })); - return _pollAsyncActionStatus.apply(this, arguments); -} - -/***/ }), - -/***/ "./methods/content-type.ts": -/*!*********************************!*\ - !*** ./methods/content-type.ts ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ omitAndDeleteField: function() { return /* binding */ omitAndDeleteField; } -/* harmony export */ }); -var _excluded = ["fieldId"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -/** - * @private - * @param id - unique ID of the field - * @param key - the attribute on the field to change - * @param value - the value to set the attribute to - */ -var findAndUpdateField = function findAndUpdateField(contentType, fieldId, omitOrDelete) { - var field = contentType.fields.find(function (field) { - return field.id === fieldId; - }); - if (!field) { - return Promise.reject(new Error("Tried to omitAndDeleteField on a nonexistent field, ".concat(fieldId, ", on the content type ").concat(contentType.name, "."))); - } - field[omitOrDelete] = true; - return Promise.resolve(contentType); -}; -var omitAndDeleteField = function omitAndDeleteField(makeRequest, _ref, contentType) { - var fieldId = _ref.fieldId, - params = _objectWithoutProperties(_ref, _excluded); - return findAndUpdateField(contentType, fieldId, 'omitted').then(function (newContentType) { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params: params, - payload: newContentType - }); - }).then(function (newContentType) { - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params: params, - payload: newContentType - }); - }).then(function (newContentType) { - return findAndUpdateField(newContentType, fieldId, 'deleted'); - }).then(function (newContentType) { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params: params, - payload: newContentType - }); - }); -}; - -/***/ }), - -/***/ "./methods/utils.ts": -/*!**************************!*\ - !*** ./methods/utils.ts ***! - \**************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ sleep: function() { return /* binding */ sleep; } -/* harmony export */ }); -/** - * Helper function that resolves a Promise after the specified duration (in milliseconds) - * @private - */ -function sleep(durationMs) { - return new Promise(function (resolve) { - return setTimeout(resolve, durationMs); - }); -} - -/***/ }), - -/***/ "./plain/as-iterator.ts": -/*!******************************!*\ - !*** ./plain/as-iterator.ts ***! - \******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ asIterator: function() { return /* binding */ asIterator; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -var asIterator = function asIterator(fn, params) { - return _defineProperty({}, Symbol.asyncIterator, function () { - var options = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(params); - var get = function get() { - return fn((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(options)); - }; - var currentResult = get(); - return { - current: 0, - next: function next() { - var _this = this; - return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var _yield$currentResult, _yield$currentResult$, total, _yield$currentResult$2, items, _yield$currentResult$3, skip, _yield$currentResult$4, limit, value, endOfPage, endOfList; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return currentResult; - case 2: - _yield$currentResult = _context.sent; - _yield$currentResult$ = _yield$currentResult.total; - total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$; - _yield$currentResult$2 = _yield$currentResult.items; - items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2; - _yield$currentResult$3 = _yield$currentResult.skip; - skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3; - _yield$currentResult$4 = _yield$currentResult.limit; - limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4; - if (!(total === _this.current)) { - _context.next = 13; - break; - } - return _context.abrupt("return", { - done: true, - value: null - }); - case 13: - value = items[_this.current++ - skip]; - endOfPage = _this.current % limit === 0; - endOfList = _this.current === total; - if (endOfPage && !endOfList) { - options = _objectSpread(_objectSpread({}, options), {}, { - query: _objectSpread(_objectSpread({}, options.query), {}, { - skip: skip + limit - }) - }); - currentResult = get(); - } - return _context.abrupt("return", { - done: false, - value: value - }); - case 18: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - } - }; - }); -}; - -/***/ }), - -/***/ "./plain/checks.ts": -/*!*************************!*\ - !*** ./plain/checks.ts ***! - \*************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isArchived: function() { return /* binding */ isArchived; }, -/* harmony export */ isDraft: function() { return /* binding */ isDraft; }, -/* harmony export */ isPublished: function() { return /* binding */ isPublished; }, -/* harmony export */ isUpdated: function() { return /* binding */ isUpdated; } -/* harmony export */ }); -var isPublished = function isPublished(data) { - return !!data.sys.publishedVersion; -}; -var isUpdated = function isUpdated(data) { - // The act of publishing an entity increases its version by 1, so any entry which has - // 2 versions higher or more than the publishedVersion has unpublished changes. - return !!(data.sys.publishedVersion && data.sys.version > data.sys.publishedVersion + 1); -}; -var isDraft = function isDraft(data) { - return !data.sys.publishedVersion; -}; -var isArchived = function isArchived(data) { - return !!data.sys.archivedVersion; -}; - -/***/ }), - -/***/ "./plain/common-types.ts": -/*!*******************************!*\ - !*** ./plain/common-types.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/***/ }), - -/***/ "./plain/plain-client.ts": -/*!*******************************!*\ - !*** ./plain/plain-client.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createPlainClient: function() { return /* binding */ createPlainClient; } -/* harmony export */ }); -/* harmony import */ var _methods_content_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../methods/content-type */ "./methods/content-type.ts"); -/* harmony import */ var _wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrappers/wrap */ "./plain/wrappers/wrap.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -/** - * @private - */ -var createPlainClient = function createPlainClient(makeRequest, defaults) { - var wrapParams = { - makeRequest: makeRequest, - defaults: defaults - }; - return { - raw: { - getDefaultParams: function getDefaultParams() { - return defaults; - }, - get: function get(url, config) { - return makeRequest({ - entityType: 'Http', - action: 'get', - params: { - url: url, - config: config - } - }); - }, - patch: function patch(url, payload, config) { - return makeRequest({ - entityType: 'Http', - action: 'patch', - params: { - url: url, - config: config - }, - payload: payload - }); - }, - post: function post(url, payload, config) { - return makeRequest({ - entityType: 'Http', - action: 'post', - params: { - url: url, - config: config - }, - payload: payload - }); - }, - put: function put(url, payload, config) { - return makeRequest({ - entityType: 'Http', - action: 'put', - params: { - url: url, - config: config - }, - payload: payload - }); - }, - delete: function _delete(url, config) { - return makeRequest({ - entityType: 'Http', - action: 'delete', - params: { - url: url, - config: config - } - }); - }, - http: function http(url, config) { - return makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url: url, - config: config - } - }); - } - }, - appAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getMany'), - getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getManyForEnvironment'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'update') - }, - appActionCall: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'create'), - getCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'getCallDetails'), - createWithResponse: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'createWithResponse') - }, - appBundle: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'create') - }, - appDetails: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'delete') - }, - appEventSubscription: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'delete') - }, - appKey: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'create'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'delete') - }, - appSignedRequest: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSignedRequest', 'create') - }, - appSigningSecret: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'delete') - }, - appAccessToken: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAccessToken', 'create') - }, - function: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany') - }, - editorInterface: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'update') - }, - space: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'getMany'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'getManyForOrganization'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'create') - }, - environment: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'delete') - }, - environmentAlias: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'getMany'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'delete') - }, - environmentTemplate: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'create'), - versionUpdate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'versionUpdate'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'update'), - install: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'install'), - versions: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'versions'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'validate'), - disconnect: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'disconnect'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'delete') - }, - environmentTemplateInstallation: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplateInstallation', 'getMany'), - getForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplateInstallation', 'getForEnvironment') - }, - bulkAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'get'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'unpublish'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validate') - }, - comment: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'delete') - }, - contentType: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'unpublish'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'createWithId'), - omitAndDeleteField: function omitAndDeleteField(params, contentType, fieldId) { - return (0,_methods_content_type__WEBPACK_IMPORTED_MODULE_0__.omitAndDeleteField)(makeRequest, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - fieldId: fieldId - }), contentType); - } - }, - user: { - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getManyForSpace'), - getForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getForSpace'), - getCurrent: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getCurrent'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getManyForOrganization') - }, - task: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'delete') - }, - entry: { - getPublished: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'getPublished'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'update'), - patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'patch'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'unpublish'), - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'archive'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'unarchive'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'createWithId'), - references: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'references') - }, - asset: { - getPublished: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'getPublished'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'unpublish'), - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'archive'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'unarchive'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'createWithId'), - createFromFiles: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'createFromFiles'), - processForAllLocales: function processForAllLocales(params, asset, options) { - return makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - options: options, - asset: asset - }) - }); - }, - processForLocale: function processForLocale(params, asset, locale, options) { - return makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - locale: locale, - asset: asset, - options: options - }) - }); - } - }, - appUpload: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'create') - }, - assetKey: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AssetKey', 'create') - }, - upload: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'get'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'create'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'delete') - }, - locale: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'delete'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'update'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'create') - }, - personalAccessToken: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'getMany'), - create: function create(data, headers) { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - headers: headers, - payload: data - }); - }, - revoke: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'revoke') - }, - accessToken: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'getMany'), - createPersonalAccessToken: function createPersonalAccessToken(data, headers) { - return makeRequest({ - entityType: 'AccessToken', - action: 'createPersonalAccessToken', - params: {}, - headers: headers, - payload: data - }); - }, - revoke: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'revoke'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'getManyForOrganization') - }, - usage: { - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Usage', 'getManyForSpace'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Usage', 'getManyForOrganization') - }, - release: { - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'get'), - query: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'query'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'publish'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'unarchive'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'unpublish'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'validate') - }, - releaseAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'getMany'), - queryForRelease: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'queryForRelease') - }, - role: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'getMany'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'delete') - }, - scheduledActions: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'create'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'delete'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'update') - }, - previewApiKey: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PreviewApiKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PreviewApiKey', 'getMany') - }, - apiKey: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'delete') - }, - appDefinition: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'delete'), - getInstallationsForOrg: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'getInstallationsForOrg') - }, - appInstallation: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'getForOrganization'), - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'upsert'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'delete') - }, - extension: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'delete') - }, - webhook: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getMany'), - getHealthStatus: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getHealthStatus'), - getCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getCallDetails'), - getSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getSigningSecret'), - getRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getRetryPolicy'), - getManyCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getManyCallDetails'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'update'), - upsertSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'upsertSigningSecret'), - upsertRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'upsertRetryPolicy'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'delete'), - deleteSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'deleteSigningSecret'), - deleteRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'deleteRetryPolicy') - }, - snapshot: { - getManyForEntry: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getManyForEntry'), - getForEntry: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getForEntry'), - getManyForContentType: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getManyForContentType'), - getForContentType: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getForContentType') - }, - tag: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'getMany'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'delete') - }, - organization: { - getAll: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Organization', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Organization', 'get') - }, - organizationInvitation: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationInvitation', 'get'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationInvitation', 'create') - }, - organizationMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'delete') - }, - spaceMember: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'getMany') - }, - spaceMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'delete') - }, - team: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'getMany'), - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'getManyForSpace'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'delete') - }, - teamMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'get'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'getManyForOrganization'), - getManyForTeam: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'getManyForTeam'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'delete') - }, - teamSpaceMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'delete') - }, - uiConfig: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UIConfig', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UIConfig', 'update') - }, - userUIConfig: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UserUIConfig', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UserUIConfig', 'update') - }, - workflowDefinition: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'delete') - }, - workflow: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'delete'), - complete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'complete') - }, - workflowsChangelog: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowsChangelog', 'getMany') - } - }; -}; - -/***/ }), - -/***/ "./plain/wrappers/wrap.ts": -/*!********************************!*\ - !*** ./plain/wrappers/wrap.ts ***! - \********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrap: function() { return /* binding */ wrap; } -/* harmony export */ }); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ -var wrap = function wrap(_ref, entityType, action) { - var makeRequest = _ref.makeRequest, - defaults = _ref.defaults; - // It's not really possible to make this type safe as we are overloading `makeRequest`. - // This missing typesafety is only within `wrap`. `wrap` has proper public types. - // @ts-expect-error - return function (params, payload, headers) { - return ( - // @ts-expect-error - makeRequest({ - // @ts-expect-error - entityType: entityType, - // @ts-expect-error - action: action, - // @ts-expect-error - params: _objectSpread(_objectSpread({}, defaults), params), - payload: payload, - // Required after adding optional headers to a delete method for the first time - // @ts-expect-error - headers: headers - }) - ); - }; -}; - -/***/ }), - -/***/ "./upload-http-client.ts": -/*!*******************************!*\ - !*** ./upload-http-client.ts ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getUploadHttpClient: function() { return /* binding */ getUploadHttpClient; } -/* harmony export */ }); -/** - * @private - */ -function getUploadHttpClient(http, options) { - var _ref2; - var _ref = http.httpClientParams, - hostUpload = _ref.hostUpload, - defaultHostnameUpload = _ref.defaultHostnameUpload, - timeout = _ref.timeout; - var uploadHttp = http.cloneWithNewParams({ - host: hostUpload || defaultHostnameUpload, - // Using client presets, options or 5 minute default timeout - timeout: (_ref2 = timeout !== null && timeout !== void 0 ? timeout : options === null || options === void 0 ? void 0 : options.uploadTimeout) !== null && _ref2 !== void 0 ? _ref2 : 300000 - }); - return uploadHttp; -} - -/***/ }), - -/***/ "../node_modules/call-bind/callBound.js": -/*!**********************************************!*\ - !*** ../node_modules/call-bind/callBound.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); - -var callBind = __webpack_require__(/*! ./ */ "../node_modules/call-bind/index.js"); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; - - -/***/ }), - -/***/ "../node_modules/call-bind/index.js": -/*!******************************************!*\ - !*** ../node_modules/call-bind/index.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); - -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); - -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/dist/index.es-modules.js": -/*!********************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/dist/index.es-modules.js ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createHttpClient: function() { return /* binding */ createHttpClient; }, -/* harmony export */ createRequestConfig: function() { return /* binding */ createRequestConfig; }, -/* harmony export */ enforceObjPath: function() { return /* binding */ enforceObjPath; }, -/* harmony export */ errorHandler: function() { return /* binding */ errorHandler; }, -/* harmony export */ freezeSys: function() { return /* binding */ freezeSys; }, -/* harmony export */ getUserAgentHeader: function() { return /* binding */ getUserAgentHeader; }, -/* harmony export */ toPlainObject: function() { return /* binding */ toPlainObject; } -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js"); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js"); -/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js"); -/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js"); -/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__); - - - - - - -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _wrapRegExp() { - _wrapRegExp = function (e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = new RegExp(e, t); - return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function () {}; - return { - s: F, - n: function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function (e) { - throw e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function () { - it = it.call(o); - }, - n: function () { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function (e) { - didErr = true; - err = e; - }, - f: function () { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; -} -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function asyncToken(instance, getToken) { - instance.interceptors.request.use(function (config) { - return getToken().then(function (accessToken) { - config.headers.set('Authorization', "Bearer ".concat(accessToken)); - return config; - }); - }); -} - -function isNode() { - /** - * Polyfills of 'process' might set process.browser === true - * - * See: - * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8 - * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156 - **/ - return typeof process !== 'undefined' && !process.browser; -} -function isReactNative() { - return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative'; -} -function getNodeVersion() { - return process.versions && process.versions.node ? "v".concat(process.versions.node) : process.version; -} -function getWindow() { - return window; -} -function noop() { - return undefined; -} - -var delay = function delay(ms) { - return new Promise(function (resolve) { - setTimeout(resolve, ms); - }); -}; -var defaultWait = function defaultWait(attempts) { - return Math.pow(Math.SQRT2, attempts); -}; -function rateLimit(instance) { - var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5; - var _instance$defaults = instance.defaults, - _instance$defaults$re = _instance$defaults.responseLogger, - responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re, - _instance$defaults$re2 = _instance$defaults.requestLogger, - requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2; - instance.interceptors.request.use(function (config) { - requestLogger(config); - return config; - }, function (error) { - requestLogger(error); - return Promise.reject(error); - }); - instance.interceptors.response.use(function (response) { - // we don't need to do anything here - responseLogger(response); - return response; - }, function (error) { - var response = error.response; - var config = error.config; - responseLogger(error); - // Do not retry if it is disabled or no request config exists (not an axios error) - if (!config || !instance.defaults.retryOnError) { - return Promise.reject(error); - } - - // Retried already for max attempts - var doneAttempts = config.attempts || 1; - if (doneAttempts > maxRetry) { - error.attempts = config.attempts; - return Promise.reject(error); - } - var retryErrorType = null; - var wait = defaultWait(doneAttempts); - - // Errors without response did not receive anything from the server - if (!response) { - retryErrorType = 'Connection'; - } else if (response.status >= 500 && response.status < 600) { - // 5** errors are server related - retryErrorType = "Server ".concat(response.status); - } else if (response.status === 429) { - // 429 errors are exceeded rate limit exceptions - retryErrorType = 'Rate limit'; - // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413 - if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) { - wait = response.headers['x-contentful-ratelimit-reset']; - } - } - if (retryErrorType) { - // convert to ms and add jitter - wait = Math.floor(wait * 1000 + Math.random() * 200 + 500); - instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); - - // increase attempts counter - config.attempts = doneAttempts + 1; - - /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object - to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry - requests still use the original http/httpsAgent property */ - delete config.httpAgent; - delete config.httpsAgent; - return delay(wait).then(function () { - return instance(config); - }); - } - return Promise.reject(error); - }); -} - -var PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\d+)(%)/, { - value: 1 -}); -function calculateLimit(type) { - var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7; - var limit = max; - if (PERCENTAGE_REGEX.test(type)) { - var _type$match; - var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups; - if (groups && groups.value) { - var percentage = parseInt(groups.value) / 100; - limit = Math.round(max * percentage); - } - } - return Math.min(30, Math.max(1, limit)); -} -function createThrottle(limit, logger) { - logger('info', "Throttle request to ".concat(limit, "/s")); - return p_throttle__WEBPACK_IMPORTED_MODULE_3___default()({ - limit: limit, - interval: 1000, - strict: false - }); -} -var rateLimitThrottle = (function (axiosInstance) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto'; - var _axiosInstance$defaul = axiosInstance.defaults.logHandler, - logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul; - var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) ? calculateLimit(type) : calculateLimit('auto', type); - var throttle = createThrottle(limit, logHandler); - var isCalculated = false; - var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) { - if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) { - var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']); - var nextLimit = calculateLimit(type, rawLimit); - if (nextLimit !== limit) { - if (requestInterceptorId) { - axiosInstance.interceptors.request.eject(requestInterceptorId); - } - limit = nextLimit; - throttle = createThrottle(nextLimit, logHandler); - requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - } - isCalculated = true; - } - return response; - }, function (error) { - return Promise.reject(error); - }); - return function () { - axiosInstance.interceptors.request.eject(requestInterceptorId); - axiosInstance.interceptors.response.eject(responseInterceptorId); - }; -}); - -// Matches 'sub.host:port' or 'host:port' and extracts hostname and port -// Also enforces toplevel domain specified, no spaces and no protocol -var HOST_REGEX = /^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/; - -/** - * Create pre-configured axios instance - * @private - * @param {AxiosStatic} axios - Axios library - * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ -function createHttpClient(axios, options) { - var defaultConfig = { - insecure: false, - retryOnError: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - logHandler: function logHandler(level, data) { - if (level === 'error' && data) { - var title = [data.name, data.message].filter(function (a) { - return a; - }).join(' - '); - console.error("[error] ".concat(title)); - console.error(data); - return; - } - console.log("[".concat(level, "] ").concat(data)); - }, - // Passed to axios - headers: {}, - httpAgent: false, - httpsAgent: false, - timeout: 30000, - throttle: 0, - basePath: '', - adapter: undefined, - maxContentLength: 1073741824, - // 1GB - maxBodyLength: 1073741824 // 1GB - }; - var config = _objectSpread2(_objectSpread2({}, defaultConfig), options); - if (!config.accessToken) { - var missingAccessTokenError = new TypeError('Expected parameter accessToken'); - config.logHandler('error', missingAccessTokenError); - throw missingAccessTokenError; - } - - // Construct axios baseURL option - var protocol = config.insecure ? 'http' : 'https'; - var space = config.space ? "".concat(config.space, "/") : ''; - var hostname = config.defaultHostname; - var port = config.insecure ? 80 : 443; - if (config.host && HOST_REGEX.test(config.host)) { - var parsed = config.host.split(':'); - if (parsed.length === 2) { - var _parsed = _slicedToArray(parsed, 2); - hostname = _parsed[0]; - port = _parsed[1]; - } else { - hostname = parsed[0]; - } - } - - // Ensure that basePath does start but not end with a slash - if (config.basePath) { - config.basePath = "/".concat(config.basePath.split('/').filter(Boolean).join('/')); - } - var baseURL = options.baseURL || "".concat(protocol, "://").concat(hostname, ":").concat(port).concat(config.basePath, "/spaces/").concat(space); - if (!config.headers.Authorization && typeof config.accessToken !== 'function') { - config.headers.Authorization = 'Bearer ' + config.accessToken; - } - var axiosOptions = { - // Axios - baseURL: baseURL, - headers: config.headers, - httpAgent: config.httpAgent, - httpsAgent: config.httpsAgent, - proxy: config.proxy, - timeout: config.timeout, - adapter: config.adapter, - maxContentLength: config.maxContentLength, - maxBodyLength: config.maxBodyLength, - paramsSerializer: { - serialize: function serialize(params) { - return qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(params); - } - }, - // Contentful - logHandler: config.logHandler, - responseLogger: config.responseLogger, - requestLogger: config.requestLogger, - retryOnError: config.retryOnError - }; - var instance = axios.create(axiosOptions); - instance.httpClientParams = options; - - /** - * Creates a new axios instance with the same default base parameters as the - * current one, and with any overrides passed to the newParams object - * This is useful as the SDKs use dependency injection to get the axios library - * and the version of the library comes from different places depending - * on whether it's a browser build or a node.js build. - * @private - * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ - instance.cloneWithNewParams = function (newParams) { - return createHttpClient(axios, _objectSpread2(_objectSpread2({}, fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(options)), newParams)); - }; - - /** - * Apply interceptors. - * Please note that the order of interceptors is important - */ - - if (config.onBeforeRequest) { - instance.interceptors.request.use(config.onBeforeRequest); - } - if (typeof config.accessToken === 'function') { - asyncToken(instance, config.accessToken); - } - if (config.throttle) { - rateLimitThrottle(instance, config.throttle); - } - rateLimit(instance, config.retryLimit); - if (config.onError) { - instance.interceptors.response.use(function (response) { - return response; - }, config.onError); - } - return instance; -} - -/* eslint-disable @typescript-eslint/no-explicit-any */ -/** - * Creates request parameters configuration by parsing an existing query object - * @private - * @param {Object} query - * @return {Object} Config object with `params` property, ready to be used in axios - */ -function createRequestConfig(_ref) { - var query = _ref.query; - var config = {}; - delete query.resolveLinks; - config.params = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(query); - return config; -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function enforceObjPath(obj, path) { - if (!(path in obj)) { - var err = new Error(); - err.name = 'PropertyMissing'; - err.message = "Required property ".concat(path, " missing from:\n\n").concat(JSON.stringify(obj), "\n\n"); - throw err; - } - return true; -} - -// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze - -function deepFreeze(object) { - var propNames = Object.getOwnPropertyNames(object); - var _iterator = _createForOfIteratorHelper(propNames), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var name = _step.value; - var value = object[name]; - if (value && _typeof(value) === 'object') { - deepFreeze(value); - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - return Object.freeze(object); -} -function freezeSys(obj) { - deepFreeze(obj.sys || {}); - return obj; -} - -function getBrowserOS() { - var win = getWindow(); - if (!win) { - return null; - } - var userAgent = win.navigator.userAgent; - // TODO: platform is deprecated. - var platform = win.navigator.platform; - var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; - var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; - var iosPlatforms = ['iPhone', 'iPad', 'iPod']; - if (macosPlatforms.indexOf(platform) !== -1) { - return 'macOS'; - } else if (iosPlatforms.indexOf(platform) !== -1) { - return 'iOS'; - } else if (windowsPlatforms.indexOf(platform) !== -1) { - return 'Windows'; - } else if (/Android/.test(userAgent)) { - return 'Android'; - } else if (/Linux/.test(platform)) { - return 'Linux'; - } - return null; -} -function getNodeOS() { - var platform = process.platform || 'linux'; - var version = process.version || '0.0.0'; - var platformMap = { - android: 'Android', - aix: 'Linux', - darwin: 'macOS', - freebsd: 'Linux', - linux: 'Linux', - openbsd: 'Linux', - sunos: 'Linux', - win32: 'Windows' - }; - if (platform in platformMap) { - return "".concat(platformMap[platform] || 'Linux', "/").concat(version); - } - return null; -} -function getUserAgentHeader(sdk, application, integration, feature) { - var headerParts = []; - if (application) { - headerParts.push("app ".concat(application)); - } - if (integration) { - headerParts.push("integration ".concat(integration)); - } - if (feature) { - headerParts.push('feature ' + feature); - } - headerParts.push("sdk ".concat(sdk)); - var platform = null; - try { - if (isReactNative()) { - platform = getBrowserOS(); - headerParts.push('platform ReactNative'); - } else if (isNode()) { - platform = getNodeOS(); - headerParts.push("platform node.js/".concat(getNodeVersion())); - } else { - platform = getBrowserOS(); - headerParts.push('platform browser'); - } - } catch (e) { - platform = null; - } - if (platform) { - headerParts.push("os ".concat(platform)); - } - return "".concat(headerParts.filter(function (item) { - return item !== ''; - }).join('; '), ";"); -} - -/** - * Mixes in a method to return just a plain object with no additional methods - * @private - * @param data - Any plain JSON response returned from the API - * @return Enhanced object with toPlainObject method - */ -function toPlainObject(data) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - return Object.defineProperty(data, 'toPlainObject', { - enumerable: false, - configurable: false, - writable: false, - value: function value() { - return fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(this); - } - }); -} - -/** - * Handles errors received from the server. Parses the error into a more useful - * format, places it in an exception and throws it. - * See https://www.contentful.com/developers/docs/references/errors/ - * for more details on the data received on the errorResponse.data property - * and the expected error codes. - * @private - */ -function errorHandler(errorResponse) { - var config = errorResponse.config, - response = errorResponse.response; - var errorName; - - // Obscure the Management token - if (config && config.headers && config.headers['Authorization']) { - var token = "...".concat(config.headers['Authorization'].toString().substr(-5)); - config.headers['Authorization'] = "Bearer ".concat(token); - } - if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) { - throw errorResponse; - } - var data = response === null || response === void 0 ? void 0 : response.data; - var errorData = { - status: response === null || response === void 0 ? void 0 : response.status, - statusText: response === null || response === void 0 ? void 0 : response.statusText, - message: '', - details: {} - }; - if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) { - errorData.request = { - url: config.url, - headers: config.headers, - method: config.method, - payloadData: config.data - }; - } - if (data && _typeof(data) === 'object') { - var _data$sys; - if ('requestId' in data) { - errorData.requestId = data.requestId || 'UNKNOWN'; - } - if ('message' in data) { - errorData.message = data.message || ''; - } - if ('details' in data) { - errorData.details = data.details || {}; - } - errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id; - } - var error = new Error(); - error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response === void 0 ? void 0 : response.status, " ").concat(response === null || response === void 0 ? void 0 : response.statusText); - try { - error.message = JSON.stringify(errorData, null, ' '); - } catch (_unused) { - var _errorData$message; - error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : ''; - } - throw error; -} - - - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js": -/*!************************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js ***! - \************************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -(function (global, factory) { - true ? module.exports = factory() : - 0; -})(this, (function () { 'use strict'; - - var toStringFunction = Function.prototype.toString; - var create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf; - var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable; - var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function'; - var WEAK_MAP = typeof WeakMap === 'function'; - /** - * @function createCache - * - * @description - * get a new cache object to prevent circular references - * - * @returns the new cache object - */ - var createCache = (function () { - if (WEAK_MAP) { - return function () { return new WeakMap(); }; - } - var Cache = /** @class */ (function () { - function Cache() { - this._keys = []; - this._values = []; - } - Cache.prototype.has = function (key) { - return !!~this._keys.indexOf(key); - }; - Cache.prototype.get = function (key) { - return this._values[this._keys.indexOf(key)]; - }; - Cache.prototype.set = function (key, value) { - this._keys.push(key); - this._values.push(value); - }; - return Cache; - }()); - return function () { return new Cache(); }; - })(); - /** - * @function getCleanClone - * - * @description - * get an empty version of the object with the same prototype it has - * - * @param object the object to build a clean clone from - * @param realm the realm the object resides in - * @returns the empty cloned object - */ - var getCleanClone = function (object, realm) { - var prototype = object.__proto__ || getPrototypeOf$1(object); - if (!prototype) { - return create(null); - } - var Constructor = prototype.constructor; - if (Constructor === realm.Object) { - return prototype === realm.Object.prototype ? {} : create(prototype); - } - if (~toStringFunction.call(Constructor).indexOf('[native code]')) { - try { - return new Constructor(); - } - catch (_a) { } - } - return create(prototype); - }; - /** - * @function getObjectCloneLoose - * - * @description - * get a copy of the object based on loose rules, meaning all enumerable keys - * and symbols are copied, but property descriptors are not considered - * - * @param object the object to clone - * @param realm the realm the object resides in - * @param handleCopy the function that handles copying the object - * @returns the copied object - */ - var getObjectCloneLoose = function (object, realm, handleCopy, cache) { - var clone = getCleanClone(object, realm); - // set in the cache immediately to be able to reuse the object recursively - cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = handleCopy(object[key], cache); - } - } - if (SYMBOL_PROPERTIES) { - var symbols = getOwnPropertySymbols(object); - for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) { - symbol = symbols[index]; - if (propertyIsEnumerable.call(object, symbol)) { - clone[symbol] = handleCopy(object[symbol], cache); - } - } - } - return clone; - }; - /** - * @function getObjectCloneStrict - * - * @description - * get a copy of the object based on strict rules, meaning all keys and symbols - * are copied based on the original property descriptors - * - * @param object the object to clone - * @param realm the realm the object resides in - * @param handleCopy the function that handles copying the object - * @returns the copied object - */ - var getObjectCloneStrict = function (object, realm, handleCopy, cache) { - var clone = getCleanClone(object, realm); - // set in the cache immediately to be able to reuse the object recursively - cache.set(object, clone); - var properties = SYMBOL_PROPERTIES - ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)) - : getOwnPropertyNames(object); - for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) { - property = properties[index]; - if (property !== 'callee' && property !== 'caller') { - descriptor = getOwnPropertyDescriptor(object, property); - if (descriptor) { - // Only clone the value if actually a value, not a getter / setter. - if (!descriptor.get && !descriptor.set) { - descriptor.value = handleCopy(object[property], cache); - } - try { - defineProperty(clone, property, descriptor); - } - catch (error) { - // Tee above can fail on node in edge cases, so fall back to the loose assignment. - clone[property] = descriptor.value; - } - } - else { - // In extra edge cases where the property descriptor cannot be retrived, fall back to - // the loose assignment. - clone[property] = handleCopy(object[property], cache); - } - } - } - return clone; - }; - /** - * @function getRegExpFlags - * - * @description - * get the flags to apply to the copied regexp - * - * @param regExp the regexp to get the flags of - * @returns the flags for the regexp - */ - var getRegExpFlags = function (regExp) { - var flags = ''; - if (regExp.global) { - flags += 'g'; - } - if (regExp.ignoreCase) { - flags += 'i'; - } - if (regExp.multiline) { - flags += 'm'; - } - if (regExp.unicode) { - flags += 'u'; - } - if (regExp.sticky) { - flags += 'y'; - } - return flags; - }; - - // utils - var isArray = Array.isArray; - var getPrototypeOf = Object.getPrototypeOf; - var GLOBAL_THIS = (function () { - if (typeof globalThis !== 'undefined') { - return globalThis; - } - if (typeof self !== 'undefined') { - return self; - } - if (typeof window !== 'undefined') { - return window; - } - if (typeof __webpack_require__.g !== 'undefined') { - return __webpack_require__.g; - } - if (console && console.error) { - console.error('Unable to locate global object, returning "this".'); - } - return this; - })(); - /** - * @function copy - * - * @description - * copy an value deeply as much as possible - * - * If `strict` is applied, then all properties (including non-enumerable ones) - * are copied with their original property descriptors on both objects and arrays. - * - * The value is compared to the global constructors in the `realm` provided, - * and the native constructor is always used to ensure that extensions of native - * objects (allows in ES2015+) are maintained. - * - * @param value the value to copy - * @param [options] the options for copying with - * @param [options.isStrict] should the copy be strict - * @param [options.realm] the realm (this) value the value is copied from - * @returns the copied value - */ - function copy(value, options) { - // manually coalesced instead of default parameters for performance - var isStrict = !!(options && options.isStrict); - var realm = (options && options.realm) || GLOBAL_THIS; - var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose; - /** - * @function handleCopy - * - * @description - * copy the value recursively based on its type - * - * @param value the value to copy - * @returns the copied value - */ - var handleCopy = function (value, cache) { - if (!value || typeof value !== 'object') { - return value; - } - if (cache.has(value)) { - return cache.get(value); - } - var prototype = value.__proto__ || getPrototypeOf(value); - var Constructor = prototype && prototype.constructor; - // plain objects - if (!Constructor || Constructor === realm.Object) { - return getObjectClone(value, realm, handleCopy, cache); - } - var clone; - // arrays - if (isArray(value)) { - // if strict, include non-standard properties - if (isStrict) { - return getObjectCloneStrict(value, realm, handleCopy, cache); - } - clone = new Constructor(); - cache.set(value, clone); - for (var index = 0, length_1 = value.length; index < length_1; ++index) { - clone[index] = handleCopy(value[index], cache); - } - return clone; - } - // dates - if (value instanceof realm.Date) { - return new Constructor(value.getTime()); - } - // regexps - if (value instanceof realm.RegExp) { - clone = new Constructor(value.source, value.flags || getRegExpFlags(value)); - clone.lastIndex = value.lastIndex; - return clone; - } - // maps - if (realm.Map && value instanceof realm.Map) { - clone = new Constructor(); - cache.set(value, clone); - value.forEach(function (value, key) { - clone.set(key, handleCopy(value, cache)); - }); - return clone; - } - // sets - if (realm.Set && value instanceof realm.Set) { - clone = new Constructor(); - cache.set(value, clone); - value.forEach(function (value) { - clone.add(handleCopy(value, cache)); - }); - return clone; - } - // blobs - if (realm.Blob && value instanceof realm.Blob) { - return value.slice(0, value.size, value.type); - } - // buffers (node-only) - if (realm.Buffer && realm.Buffer.isBuffer(value)) { - clone = realm.Buffer.allocUnsafe - ? realm.Buffer.allocUnsafe(value.length) - : new Constructor(value.length); - cache.set(value, clone); - value.copy(clone); - return clone; - } - // arraybuffers / dataviews - if (realm.ArrayBuffer) { - // dataviews - if (realm.ArrayBuffer.isView(value)) { - clone = new Constructor(value.buffer.slice(0)); - cache.set(value, clone); - return clone; - } - // arraybuffers - if (value instanceof realm.ArrayBuffer) { - clone = value.slice(0); - cache.set(value, clone); - return clone; - } - } - // if the value cannot / should not be cloned, don't - if ( - // promise-like - typeof value.then === 'function' || - // errors - value instanceof Error || - // weakmaps - (realm.WeakMap && value instanceof realm.WeakMap) || - // weaksets - (realm.WeakSet && value instanceof realm.WeakSet)) { - return value; - } - // assume anything left is a custom constructor - return getObjectClone(value, realm, handleCopy, cache); - }; - return handleCopy(value, createCache()); - } - // Adding reference to allow usage in CommonJS libraries compiled using TSC, which - // expects there to be a default property on the exported value. See - // [#37](https://github.com/planttheidea/fast-copy/issues/37) for details. - copy.default = copy; - /** - * @function strictCopy - * - * @description - * copy the value with `strict` option pre-applied - * - * @param value the value to copy - * @param [options] the options for copying with - * @param [options.realm] the realm (this) value the value is copied from - * @returns the copied value - */ - copy.strict = function strictCopy(value, options) { - return copy(value, { - isStrict: true, - realm: options ? options.realm : void 0, - }); - }; - - return copy; - -})); -//# sourceMappingURL=fast-copy.js.map - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js": -/*!**************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js ***! - \**************************************************************************/ -/***/ (function(module) { - -"use strict"; - - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; - -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; - -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js ***! - \************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js"); -var parse = __webpack_require__(/*! ./parse */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js"); -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); - -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js ***! - \************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; - -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; - -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } - - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = { __proto__: null }; - - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } - - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); - } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } - - return obj; -}; - -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== cleanRoot - && String(index) === cleanRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; - } - } - - leaf = obj; - } - - return leaf; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options, valuesParsed); -}; - -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - - if (options.allowSparse === true) { - return obj; - } - - return utils.compact(obj); -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js": -/*!****************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js ***! - \****************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js"); -var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js"); -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); -var has = Object.prototype.hasOwnProperty; - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; - -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; - -var toISO = Date.prototype.toISOString; - -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; - -var sentinel = {}; - -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; - - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); - } - - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } - - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; - - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; - - if (skipNulls && value === null) { - continue; - } - - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix - : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); - - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } - - return values; -}; - -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (options.sort) { - objKeys.sort(options.sort); - } - - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - commaRoundTrip, - options.strictNullHandling, - options.skipNulls, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } - - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } - - return joined.length > 0 ? prefix + joined : ''; -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js ***! - \************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - - item.obj[item.prop] = compacted; - } - } -}; - -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - - return target; - } - - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - /* eslint operator-linebreak: [2, "before"] */ - out += hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - } - - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); - } - } - } - - compactQueue(queue); - - return value; -}; - -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -var combine = function combine(a, b) { - return [].concat(a, b); -}; - -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; - -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; - - -/***/ }), - -/***/ "../node_modules/function-bind/implementation.js": -/*!*******************************************************!*\ - !*** ../node_modules/function-bind/implementation.js ***! - \*******************************************************/ -/***/ (function(module) { - -"use strict"; - - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; - -var concatty = function concatty(a, b) { - var arr = []; - - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - - return arr; -}; - -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; -}; - -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; -}; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - concatty(args, arguments) - ); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply( - that, - concatty(args, arguments) - ); - - }; - - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; - } - - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; - - -/***/ }), - -/***/ "../node_modules/function-bind/index.js": -/*!**********************************************!*\ - !*** ../node_modules/function-bind/index.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(/*! ./implementation */ "../node_modules/function-bind/implementation.js"); - -module.exports = Function.prototype.bind || implementation; - - -/***/ }), - -/***/ "../node_modules/get-intrinsic/index.js": -/*!**********************************************!*\ - !*** ../node_modules/get-intrinsic/index.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var undefined; - -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; - -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} - -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; - -var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")(); -var hasProto = __webpack_require__(/*! has-proto */ "../node_modules/has-proto/index.js")(); - -var getProto = Object.getPrototypeOf || ( - hasProto - ? function (x) { return x.__proto__; } // eslint-disable-line no-proto - : null -); - -var needsEval = {}; - -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; - -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} - -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - - INTRINSICS[name] = value; - - return value; -}; - -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); -var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js"); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - - -/***/ }), - -/***/ "../node_modules/has-proto/index.js": -/*!******************************************!*\ - !*** ../node_modules/has-proto/index.js ***! - \******************************************/ -/***/ (function(module) { - -"use strict"; - - -var test = { - foo: {} -}; - -var $Object = Object; - -module.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); -}; - - -/***/ }), - -/***/ "../node_modules/has-symbols/index.js": -/*!********************************************!*\ - !*** ../node_modules/has-symbols/index.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js"); - -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } - - return hasSymbolSham(); -}; - - -/***/ }), - -/***/ "../node_modules/has-symbols/shams.js": -/*!********************************************!*\ - !*** ../node_modules/has-symbols/shams.js ***! - \********************************************/ -/***/ (function(module) { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), - -/***/ "../node_modules/has/src/index.js": -/*!****************************************!*\ - !*** ../node_modules/has/src/index.js ***! - \****************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "../node_modules/lodash.isplainobject/index.js": -/*!*****************************************************!*\ - !*** ../node_modules/lodash.isplainobject/index.js ***! - \*****************************************************/ -/***/ (function(module) { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** `Object#toString` result references. */ -var objectTag = '[object Object]'; - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -module.exports = isPlainObject; - - -/***/ }), - -/***/ "../node_modules/lodash.isstring/index.js": -/*!************************************************!*\ - !*** ../node_modules/lodash.isstring/index.js ***! - \************************************************/ -/***/ (function(module) { - -/** - * lodash 4.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var stringTag = '[object String]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} - -module.exports = isString; - - -/***/ }), - -/***/ "../node_modules/object-inspect/index.js": -/*!***********************************************!*\ - !*** ../node_modules/object-inspect/index.js ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') - ? Symbol.toStringTag - : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( - [].__proto__ === Array.prototype // eslint-disable-line no-proto - ? function (O) { - return O.__proto__; // eslint-disable-line no-proto - } - : null -); - -function addNumericSeparator(num, str) { - if ( - num === Infinity - || num === -Infinity - || num !== num - || (num && num > -1000 && num < 1000) - || $test.call(/e/, str) - ) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} - -var utilInspect = __webpack_require__(/*! ./util.inspect */ "?d91c"); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; - -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } - - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } - - var indent = getIndent(opts, depth); - - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - - if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { return tag + '{}'; } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; - } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; - } - return String(obj); -}; - -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} - -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} - -function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } - -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} - -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} - -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} - -function toStr(obj) { - return objectToString.call(obj); -} - -function nameOf(f) { - if (f.name) { return f.name; } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} - -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} - -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} - -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} - -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} - -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} - -function markBoxed(str) { - return 'Object(' + str + ')'; -} - -function weakCollectionOf(type) { - return type + ' { ? }'; -} - -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} - -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; -} - -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} - -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} - -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; - } - } - - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } - } - return xs; -} - - -/***/ }), - -/***/ "../node_modules/p-throttle/index.js": -/*!*******************************************!*\ - !*** ../node_modules/p-throttle/index.js ***! - \*******************************************/ -/***/ (function(module) { - -"use strict"; - - -class AbortError extends Error { - constructor() { - super('Throttled function aborted'); - this.name = 'AbortError'; - } -} - -const pThrottle = ({limit, interval, strict}) => { - if (!Number.isFinite(limit)) { - throw new TypeError('Expected `limit` to be a finite number'); - } - - if (!Number.isFinite(interval)) { - throw new TypeError('Expected `interval` to be a finite number'); - } - - const queue = new Map(); - - let currentTick = 0; - let activeCount = 0; - - function windowedDelay() { - const now = Date.now(); - - if ((now - currentTick) > interval) { - activeCount = 1; - currentTick = now; - return 0; - } - - if (activeCount < limit) { - activeCount++; - } else { - currentTick += interval; - activeCount = 1; - } - - return currentTick - now; - } - - const strictTicks = []; - - function strictDelay() { - const now = Date.now(); - - if (strictTicks.length < limit) { - strictTicks.push(now); - return 0; - } - - const earliestTime = strictTicks.shift() + interval; - - if (now >= earliestTime) { - strictTicks.push(now); - return 0; - } - - strictTicks.push(earliestTime); - return earliestTime - now; - } - - const getDelay = strict ? strictDelay : windowedDelay; - - return function_ => { - const throttled = function (...args) { - if (!throttled.isEnabled) { - return (async () => function_.apply(this, args))(); - } - - let timeout; - return new Promise((resolve, reject) => { - const execute = () => { - resolve(function_.apply(this, args)); - queue.delete(timeout); - }; - - timeout = setTimeout(execute, getDelay()); - - queue.set(timeout, reject); - }); - }; - - throttled.abort = () => { - for (const timeout of queue.keys()) { - clearTimeout(timeout); - queue.get(timeout)(new AbortError()); - } - - queue.clear(); - strictTicks.splice(0, strictTicks.length); - }; - - throttled.isEnabled = true; - - return throttled; - }; -}; - -module.exports = pThrottle; -module.exports.AbortError = AbortError; - - -/***/ }), - -/***/ "../node_modules/side-channel/index.js": -/*!*********************************************!*\ - !*** ../node_modules/side-channel/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); -var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js"); -var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js"); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $WeakMap = GetIntrinsic('%WeakMap%', true); -var $Map = GetIntrinsic('%Map%', true); - -var $weakMapGet = callBound('WeakMap.prototype.get', true); -var $weakMapSet = callBound('WeakMap.prototype.set', true); -var $weakMapHas = callBound('WeakMap.prototype.has', true); -var $mapGet = callBound('Map.prototype.get', true); -var $mapSet = callBound('Map.prototype.set', true); -var $mapHas = callBound('Map.prototype.has', true); - -/* - * This function traverses the list returning the node corresponding to the - * given key. - * - * That node is also moved to the head of the list, so that if it's accessed - * again we don't need to traverse the whole list. By doing so, all the recently - * used nodes can be accessed relatively quickly. - */ -var listGetNode = function (list, key) { // eslint-disable-line consistent-return - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - curr.next = list.next; - list.next = curr; // eslint-disable-line no-param-reassign - return curr; - } - } -}; - -var listGet = function (objects, key) { - var node = listGetNode(objects, key); - return node && node.value; -}; -var listSet = function (objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - // Prepend the new node to the beginning of the list - objects.next = { // eslint-disable-line no-param-reassign - key: key, - next: objects.next, - value: value - }; - } -}; -var listHas = function (objects, key) { - return !!listGetNode(objects, key); -}; - -module.exports = function getSideChannel() { - var $wm; - var $m; - var $o; - var channel = { - assert: function (key) { - if (!channel.has(key)) { - throw new $TypeError('Side channel does not contain ' + inspect(key)); - } - }, - get: function (key) { // eslint-disable-line consistent-return - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapGet($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapGet($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listGet($o, key); - } - } - }, - has: function (key) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapHas($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapHas($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listHas($o, key); - } - } - return false; - }, - set: function (key, value) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if (!$wm) { - $wm = new $WeakMap(); - } - $weakMapSet($wm, key, value); - } else if ($Map) { - if (!$m) { - $m = new $Map(); - } - $mapSet($m, key, value); - } else { - if (!$o) { - /* - * Initialize the linked list as an empty node, so that we don't have - * to special-case handling of the first node: we can always refer to - * it as (previous node).next, instead of something like (list).head - */ - $o = { key: {}, next: null }; - } - listSet($o, key, value); - } - } - }; - return channel; -}; - - -/***/ }), - -/***/ "?d91c": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (function() { - -/* (ignored) */ - -/***/ }), - -/***/ "../node_modules/axios/lib/adapters/adapters.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/adapters/adapters.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "../node_modules/axios/lib/helpers/null.js"); -/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "../node_modules/axios/lib/adapters/xhr.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - - -const knownAdapters = { - http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"], - xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"] -} - -_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, value) => { - if (fn) { - try { - Object.defineProperty(fn, 'name', {value}); - } catch (e) { - // eslint-disable-next-line no-empty - } - Object.defineProperty(fn, 'adapterName', {value}); - } -}); - -const renderReason = (reason) => `- ${reason}`; - -const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(adapter) || adapter === null || adapter === false; - -/* harmony default export */ __webpack_exports__["default"] = ({ - getAdapter: (adapters) => { - adapters = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isArray(adapters) ? adapters : [adapters]; - - const {length} = adapters; - let nameOrAdapter; - let adapter; - - const rejectedReasons = {}; - - for (let i = 0; i < length; i++) { - nameOrAdapter = adapters[i]; - let id; - - adapter = nameOrAdapter; - - if (!isResolvedHandle(nameOrAdapter)) { - adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; - - if (adapter === undefined) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](`Unknown adapter '${id}'`); - } - } - - if (adapter) { - break; - } - - rejectedReasons[id || '#' + i] = adapter; - } - - if (!adapter) { - - const reasons = Object.entries(rejectedReasons) - .map(([id, state]) => `adapter ${id} ` + - (state === false ? 'is not supported by the environment' : 'is not available in the build') - ); - - let s = length ? - (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : - 'as no adapter specified'; - - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]( - `There is no suitable adapter to dispatch the request ` + s, - 'ERR_NOT_SUPPORT' - ); - } - - return adapter; - }, - adapters: knownAdapters -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/adapters/xhr.js": -/*!*************************************************!*\ - !*** ../node_modules/axios/lib/adapters/xhr.js ***! - \*************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js"); -/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../helpers/cookies.js */ "../node_modules/axios/lib/helpers/cookies.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js"); -/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js"); - - - - - - - - - - - - - - - - -function progressEventReducer(listener, isDownloadStream) { - let bytesNotified = 0; - const _speedometer = (0,_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250); - - return e => { - const loaded = e.loaded; - const total = e.lengthComputable ? e.total : undefined; - const progressBytes = loaded - bytesNotified; - const rate = _speedometer(progressBytes); - const inRange = loaded <= total; - - bytesNotified = loaded; - - const data = { - loaded, - total, - progress: total ? (loaded / total) : undefined, - bytes: progressBytes, - rate: rate ? rate : undefined, - estimated: rate && total && inRange ? (total - loaded) / rate : undefined, - event: e - }; - - data[isDownloadStream ? 'download' : 'upload'] = true; - - listener(data); - }; -} - -const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; - -/* harmony default export */ __webpack_exports__["default"] = (isXHRAdapterSupported && function (config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - let requestData = config.data; - const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers).normalize(); - let {responseType, withXSRFToken} = config; - let onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - let contentType; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(requestData)) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserWebWorkerEnv) { - requestHeaders.setContentType(false); // Let the browser set it - } else if ((contentType = requestHeaders.getContentType()) !== false) { - // fix semicolon duplication issue for ReactNative FormData implementation - const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; - requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); - } - } - - let request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); - } - - const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config.baseURL, config.url); - - request.open(config.method.toUpperCase(), (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__["default"])(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from( - 'getAllResponseHeaders' in request && request.getAllResponseHeaders() - ); - const responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - const response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config, - request - }; - - (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_NETWORK, config, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"]; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, - config, - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if(_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv) { - withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); - - if (withXSRFToken || (withXSRFToken !== false && (0,_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__["default"])(fullPath))) { - // Add xsrf header - const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__["default"].read(config.xsrfCookieName); - - if (xsrfValue) { - requestHeaders.set(config.xsrfHeaderName, xsrfValue); - } - } - } - - // Remove Content-Type if data is undefined - requestData === undefined && requestHeaders.setContentType(null); - - // Add headers to the request - if ('setRequestHeader' in request) { - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { - request.setRequestHeader(key, val); - }); - } - - // Add withCredentials to request if needed - if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = cancel => { - if (!request) { - return; - } - reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, request) : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__["default"])(fullPath); - - if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].protocols.indexOf(protocol) === -1) { - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_BAD_REQUEST, config)); - return; - } - - - // Send the request - request.send(requestData || null); - }); -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/axios.js": -/*!******************************************!*\ - !*** ../node_modules/axios/lib/axios.js ***! - \******************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); -/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ "../node_modules/axios/lib/core/Axios.js"); -/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "../node_modules/axios/lib/cancel/CancelToken.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ "../node_modules/axios/lib/env/data.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ "../node_modules/axios/lib/helpers/spread.js"); -/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "../node_modules/axios/lib/helpers/isAxiosError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "../node_modules/axios/lib/adapters/adapters.js"); -/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "../node_modules/axios/lib/helpers/HttpStatusCode.js"); - - - - - - - - - - - - - - - - - - - - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * - * @returns {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"](defaultConfig); - const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.request, context); - - // Copy axios.prototype to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, context, {allOwnKeys: true}); - - // Copy context to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, context, null, {allOwnKeys: true}); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]); - -// Expose Axios class to allow class inheritance -axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - -// Expose Cancel & CancelToken -axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__["default"]; -axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__["default"]; -axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__["default"]; -axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION; -axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__["default"]; - -// Expose AxiosError class -axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__["default"]; - -// alias for CanceledError for backward compatibility -axios.Cancel = axios.CanceledError; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; - -axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__["default"]; - -// Expose isAxiosError -axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__["default"]; - -// Expose mergeConfig -axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"]; - -axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__["default"]; - -axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isHTMLForm(thing) ? new FormData(thing) : thing); - -axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter; - -axios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__["default"]; - -axios.default = axios; - -// this module should only have a default export -/* harmony default export */ __webpack_exports__["default"] = (axios); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/CancelToken.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/cancel/CancelToken.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); - - - - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @param {Function} executor The executor function. - * - * @returns {CancelToken} - */ -class CancelToken { - constructor(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - let resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - const token = this; - - // eslint-disable-next-line func-names - this.promise.then(cancel => { - if (!token._listeners) return; - - let i = token._listeners.length; - - while (i-- > 0) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = onfulfilled => { - let _resolve; - // eslint-disable-next-line func-names - const promise = new Promise(resolve => { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message, config, request) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](message, config, request); - resolvePromise(token.reason); - }); - } - - /** - * Throws a `CanceledError` if cancellation has been requested. - */ - throwIfRequested() { - if (this.reason) { - throw this.reason; - } - } - - /** - * Subscribe to the cancel signal - */ - - subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } - } - - /** - * Unsubscribe from the cancel signal - */ - - unsubscribe(listener) { - if (!this._listeners) { - return; - } - const index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } - } - - /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ - static source() { - let cancel; - const token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token, - cancel - }; - } -} - -/* harmony default export */ __webpack_exports__["default"] = (CancelToken); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/CanceledError.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/cancel/CanceledError.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - - -/** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @param {string=} message The message. - * @param {Object=} config The config. - * @param {Object=} request The request. - * - * @returns {CanceledError} The created error. - */ -function CanceledError(message, config, request) { - // eslint-disable-next-line no-eq-null,eqeqeq - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request); - this.name = 'CanceledError'; -} - -_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], { - __CANCEL__: true -}); - -/* harmony default export */ __webpack_exports__["default"] = (CanceledError); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/isCancel.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/cancel/isCancel.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ isCancel; } -/* harmony export */ }); - - -function isCancel(value) { - return !!(value && value.__CANCEL__); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/Axios.js": -/*!***********************************************!*\ - !*** ../node_modules/axios/lib/core/Axios.js ***! - \***********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "../node_modules/axios/lib/core/InterceptorManager.js"); -/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ "../node_modules/axios/lib/core/dispatchRequest.js"); -/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "../node_modules/axios/lib/helpers/validator.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - - - - - - -const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].validators; - -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - * - * @return {Axios} A new instance of Axios - */ -class Axios { - constructor(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](), - response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]() - }; - } - - /** - * Dispatch a request - * - * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) - * @param {?Object} config - * - * @returns {Promise} The Promise to be fulfilled - */ - async request(configOrUrl, config) { - try { - return await this._request(configOrUrl, config); - } catch (err) { - if (err instanceof Error) { - let dummy; - - Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); - - // slice off the Error: ... line - const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; - - if (!err.stack) { - err.stack = stack; - // match without the 2 top stack lines - } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { - err.stack += '\n' + stack - } - } - - throw err; - } - } - - _request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - - const {transitional, paramsSerializer, headers} = config; - - if (transitional !== undefined) { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - if (paramsSerializer != null) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(paramsSerializer)) { - config.paramsSerializer = { - serialize: paramsSerializer - } - } else { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(paramsSerializer, { - encode: validators.function, - serialize: validators.function - }, true); - } - } - - // Set config.method - config.method = (config.method || this.defaults.method || 'get').toLowerCase(); - - // Flatten headers - let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].merge( - headers.common, - headers[config.method] - ); - - headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - (method) => { - delete headers[method]; - } - ); - - config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].concat(contextHeaders, headers); - - // filter out skipped interceptors - const requestInterceptorChain = []; - let synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - const responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - let promise; - let i = 0; - let len; - - if (!synchronousRequestInterceptors) { - const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].bind(this), undefined]; - chain.unshift.apply(chain, requestInterceptorChain); - chain.push.apply(chain, responseInterceptorChain); - len = chain.length; - - promise = Promise.resolve(config); - - while (i < len) { - promise = promise.then(chain[i++], chain[i++]); - } - - return promise; - } - - len = requestInterceptorChain.length; - - let newConfig = config; - - i = 0; - - while (i < len) { - const onFulfilled = requestInterceptorChain[i++]; - const onRejected = requestInterceptorChain[i++]; - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected.call(this, error); - break; - } - } - - try { - promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].call(this, newConfig); - } catch (error) { - return Promise.reject(error); - } - - i = 0; - len = responseInterceptorChain.length; - - while (i < len) { - promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); - } - - return promise; - } - - getUri(config) { - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url); - return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer); - } -} - -// Provide aliases for supported request methods -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - url, - data: (config || {}).data - })); - }; -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url, - data - })); - }; - } - - Axios.prototype[method] = generateHTTPMethod(); - - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); -}); - -/* harmony default export */ __webpack_exports__["default"] = (Axios); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/AxiosError.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/core/AxiosError.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * - * @returns {Error} The created error. - */ -function AxiosError(message, code, config, request, response) { - Error.call(this); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } else { - this.stack = (new Error()).stack; - } - - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); -} - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config), - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } -}); - -const prototype = AxiosError.prototype; -const descriptors = {}; - -[ - 'ERR_BAD_OPTION_VALUE', - 'ERR_BAD_OPTION', - 'ECONNABORTED', - 'ETIMEDOUT', - 'ERR_NETWORK', - 'ERR_FR_TOO_MANY_REDIRECTS', - 'ERR_DEPRECATED', - 'ERR_BAD_RESPONSE', - 'ERR_BAD_REQUEST', - 'ERR_CANCELED', - 'ERR_NOT_SUPPORT', - 'ERR_INVALID_URL' -// eslint-disable-next-line func-names -].forEach(code => { - descriptors[code] = {value: code}; -}); - -Object.defineProperties(AxiosError, descriptors); -Object.defineProperty(prototype, 'isAxiosError', {value: true}); - -// eslint-disable-next-line func-names -AxiosError.from = (error, code, config, request, response, customProps) => { - const axiosError = Object.create(prototype); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }, prop => { - return prop !== 'isAxiosError'; - }); - - AxiosError.call(axiosError, error.message, code, config, request, response); - - axiosError.cause = error; - - axiosError.name = error.name; - - customProps && Object.assign(axiosError, customProps); - - return axiosError; -}; - -/* harmony default export */ __webpack_exports__["default"] = (AxiosError); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/AxiosHeaders.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/core/AxiosHeaders.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "../node_modules/axios/lib/helpers/parseHeaders.js"); - - - - - -const $internals = Symbol('internals'); - -function normalizeHeader(header) { - return header && String(header).trim().toLowerCase(); -} - -function normalizeValue(value) { - if (value === false || value == null) { - return value; - } - - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value); -} - -function parseTokens(str) { - const tokens = Object.create(null); - const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; - let match; - - while ((match = tokensRE.exec(str))) { - tokens[match[1]] = match[2]; - } - - return tokens; -} - -const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); - -function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) { - return filter.call(this, value, header); - } - - if (isHeaderNameFilter) { - value = header; - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value)) return; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(filter)) { - return value.indexOf(filter) !== -1; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(filter)) { - return filter.test(value); - } -} - -function formatHeader(header) { - return header.trim() - .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { - return char.toUpperCase() + str; - }); -} - -function buildAccessors(obj, header) { - const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header); - - ['get', 'set', 'has'].forEach(methodName => { - Object.defineProperty(obj, methodName + accessorName, { - value: function(arg1, arg2, arg3) { - return this[methodName].call(this, header, arg1, arg2, arg3); - }, - configurable: true - }); - }); -} - -class AxiosHeaders { - constructor(headers) { - headers && this.set(headers); - } - - set(header, valueOrRewrite, rewrite) { - const self = this; - - function setHeader(_value, _header, _rewrite) { - const lHeader = normalizeHeader(_header); - - if (!lHeader) { - throw new Error('header name must be a non-empty string'); - } - - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader); - - if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { - self[key || _header] = normalizeValue(_value); - } - } - - const setHeaders = (headers, _rewrite) => - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) { - setHeaders(header, valueOrRewrite) - } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { - setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite); - } else { - header != null && setHeader(valueOrRewrite, header, rewrite); - } - - return this; - } - - get(header, parser) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - if (key) { - const value = this[key]; - - if (!parser) { - return value; - } - - if (parser === true) { - return parseTokens(value); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(parser)) { - return parser.call(this, value, key); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(parser)) { - return parser.exec(value); - } - - throw new TypeError('parser must be boolean|regexp|function'); - } - } - } - - has(header, matcher) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); - } - - return false; - } - - delete(header, matcher) { - const self = this; - let deleted = false; - - function deleteHeader(_header) { - _header = normalizeHeader(_header); - - if (_header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, _header); - - if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { - delete self[key]; - - deleted = true; - } - } - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header)) { - header.forEach(deleteHeader); - } else { - deleteHeader(header); - } - - return deleted; - } - - clear(matcher) { - const keys = Object.keys(this); - let i = keys.length; - let deleted = false; - - while (i--) { - const key = keys[i]; - if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { - delete this[key]; - deleted = true; - } - } - - return deleted; - } - - normalize(format) { - const self = this; - const headers = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header); - - if (key) { - self[key] = normalizeValue(value); - delete self[header]; - return; - } - - const normalized = format ? formatHeader(header) : String(header).trim(); - - if (normalized !== header) { - delete self[header]; - } - - self[normalized] = normalizeValue(value); - - headers[normalized] = true; - }); - - return this; - } - - concat(...targets) { - return this.constructor.concat(this, ...targets); - } - - toJSON(asStrings) { - const obj = Object.create(null); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value); - }); - - return obj; - } - - [Symbol.iterator]() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - - toString() { - return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); - } - - get [Symbol.toStringTag]() { - return 'AxiosHeaders'; - } - - static from(thing) { - return thing instanceof this ? thing : new this(thing); - } - - static concat(first, ...targets) { - const computed = new this(first); - - targets.forEach((target) => computed.set(target)); - - return computed; - } - - static accessor(header) { - const internals = this[$internals] = (this[$internals] = { - accessors: {} - }); - - const accessors = internals.accessors; - const prototype = this.prototype; - - function defineAccessor(_header) { - const lHeader = normalizeHeader(_header); - - if (!accessors[lHeader]) { - buildAccessors(prototype, _header); - accessors[lHeader] = true; - } - } - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); - - return this; - } -} - -AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); - -// reserved names hotfix -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { - let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` - return { - get: () => value, - set(headerValue) { - this[mapped] = headerValue; - } - } -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders); - -/* harmony default export */ __webpack_exports__["default"] = (AxiosHeaders); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/InterceptorManager.js": -/*!************************************************************!*\ - !*** ../node_modules/axios/lib/core/InterceptorManager.js ***! - \************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -class InterceptorManager { - constructor() { - this.handlers = []; - } - - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ - use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled, - rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; - } - - /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - * - * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise - */ - eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - } - - /** - * Clear all interceptors from the stack - * - * @returns {void} - */ - clear() { - if (this.handlers) { - this.handlers = []; - } - } - - /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - * - * @returns {void} - */ - forEach(fn) { - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (InterceptorManager); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/buildFullPath.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/core/buildFullPath.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ buildFullPath; } -/* harmony export */ }); -/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "../node_modules/axios/lib/helpers/isAbsoluteURL.js"); -/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "../node_modules/axios/lib/helpers/combineURLs.js"); - - - - - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * - * @returns {string} The combined full path - */ -function buildFullPath(baseURL, requestedURL) { - if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) { - return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL); - } - return requestedURL; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/dispatchRequest.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/core/dispatchRequest.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ dispatchRequest; } -/* harmony export */ }); -/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ "../node_modules/axios/lib/core/transformData.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ "../node_modules/axios/lib/adapters/adapters.js"); - - - - - - - - - -/** - * Throws a `CanceledError` if cancellation has been requested. - * - * @param {Object} config The config that is to be used for the request - * - * @returns {void} - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](null, config); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * - * @returns {Promise} The Promise to be fulfilled - */ -function dispatchRequest(config) { - throwIfCancellationRequested(config); - - config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers); - - // Transform request data - config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformRequest - ); - - if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { - config.headers.setContentType('application/x-www-form-urlencoded', false); - } - - const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter); - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - response - ); - - response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(response.headers); - - return response; - }, function onAdapterRejection(reason) { - if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__["default"])(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - reason.response - ); - reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(reason.response.headers); - } - } - - return Promise.reject(reason); - }); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/mergeConfig.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/core/mergeConfig.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ mergeConfig; } -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - -const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? { ...thing } : thing; - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * - * @returns {Object} New object resulting from merging config2 to config1 - */ -function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - const config = {}; - - function getMergedValue(target, source, caseless) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(a, b, caseless) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(a, b, caseless); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a, caseless); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(a, b, prop) { - if (prop in config2) { - return getMergedValue(a, b); - } else if (prop in config1) { - return getMergedValue(undefined, a); - } - } - - const mergeMap = { - url: valueFromConfig2, - method: valueFromConfig2, - data: valueFromConfig2, - baseURL: defaultToConfig2, - transformRequest: defaultToConfig2, - transformResponse: defaultToConfig2, - paramsSerializer: defaultToConfig2, - timeout: defaultToConfig2, - timeoutMessage: defaultToConfig2, - withCredentials: defaultToConfig2, - withXSRFToken: defaultToConfig2, - adapter: defaultToConfig2, - responseType: defaultToConfig2, - xsrfCookieName: defaultToConfig2, - xsrfHeaderName: defaultToConfig2, - onUploadProgress: defaultToConfig2, - onDownloadProgress: defaultToConfig2, - decompress: defaultToConfig2, - maxContentLength: defaultToConfig2, - maxBodyLength: defaultToConfig2, - beforeRedirect: defaultToConfig2, - transport: defaultToConfig2, - httpAgent: defaultToConfig2, - httpsAgent: defaultToConfig2, - cancelToken: defaultToConfig2, - socketPath: defaultToConfig2, - responseEncoding: defaultToConfig2, - validateStatus: mergeDirectKeys, - headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) - }; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { - const merge = mergeMap[prop] || mergeDeepProperties; - const configValue = merge(config1[prop], config2[prop], prop); - (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/settle.js": -/*!************************************************!*\ - !*** ../node_modules/axios/lib/core/settle.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ settle; } -/* harmony export */ }); -/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - * - * @returns {object} The response. - */ -function settle(resolve, reject, response) { - const validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"]( - 'Request failed with status code ' + response.status, - [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); - } -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/transformData.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/core/transformData.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ transformData; } -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - -/** - * Transform the data for a request or a response - * - * @param {Array|Function} fns A single function or Array of functions - * @param {?Object} response The response object - * - * @returns {*} The resulting transformed data - */ -function transformData(fns, response) { - const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - const context = response || config; - const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(context.headers); - let data = context.data; - - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(fns, function transform(fn) { - data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); - }); - - headers.normalize(); - - return data; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/defaults/index.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/defaults/index.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "../node_modules/axios/lib/helpers/toURLEncodedForm.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); - - - - - - - - - - -/** - * It takes a string, tries to parse it, and if it fails, it returns the stringified version - * of the input - * - * @param {any} rawValue - The value to be stringified. - * @param {Function} parser - A function that parses a string into a JavaScript object. - * @param {Function} encoder - A function that takes a value and returns a string. - * - * @returns {string} A stringified version of the rawValue. - */ -function stringifySafely(rawValue, parser, encoder) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -const defaults = { - - transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"], - - adapter: ['xhr', 'http'], - - transformRequest: [function transformRequest(data, headers) { - const contentType = headers.getContentType() || ''; - const hasJSONContentType = contentType.indexOf('application/json') > -1; - const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data); - - if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) { - data = new FormData(data); - } - - const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data); - - if (isFormData) { - return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) - ) { - return data; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) { - return data.buffer; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) { - headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); - return data.toString(); - } - - let isFileList; - - if (isObjectPayload) { - if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { - return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString(); - } - - if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { - const _FormData = this.env && this.env.FormData; - - return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])( - isFileList ? {'files[]': data} : data, - _FormData && new _FormData(), - this.formSerializer - ); - } - } - - if (isObjectPayload || hasJSONContentType ) { - headers.setContentType('application/json', false); - return stringifySafely(data); - } - - return data; - }], - - transformResponse: [function transformResponse(data) { - const transitional = this.transitional || defaults.transitional; - const forcedJSONParsing = transitional && transitional.forcedJSONParsing; - const JSONRequested = this.responseType === 'json'; - - if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { - const silentJSONParsing = transitional && transitional.silentJSONParsing; - const strictJSONParsing = !silentJSONParsing && JSONRequested; - - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - env: { - FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.FormData, - Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.Blob - }, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*', - 'Content-Type': undefined - } - } -}; - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { - defaults.headers[method] = {}; -}); - -/* harmony default export */ __webpack_exports__["default"] = (defaults); - - -/***/ }), - -/***/ "../node_modules/axios/lib/defaults/transitional.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/defaults/transitional.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/* harmony default export */ __webpack_exports__["default"] = ({ - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/env/data.js": -/*!*********************************************!*\ - !*** ../node_modules/axios/lib/env/data.js ***! - \*********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ VERSION: function() { return /* binding */ VERSION; } -/* harmony export */ }); -const VERSION = "1.6.8"; - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!*****************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); - - - - -/** - * It encodes a string by replacing all characters that are not in the unreserved set with - * their percent-encoded equivalents - * - * @param {string} str - The string to encode. - * - * @returns {string} The encoded string. - */ -function encode(str) { - const charMap = { - '!': '%21', - "'": '%27', - '(': '%28', - ')': '%29', - '~': '%7E', - '%20': '+', - '%00': '\x00' - }; - return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { - return charMap[match]; - }); -} - -/** - * It takes a params object and converts it to a FormData object - * - * @param {Object} params - The parameters to be converted to a FormData object. - * @param {Object} options - The options object passed to the Axios constructor. - * - * @returns {void} - */ -function AxiosURLSearchParams(params, options) { - this._pairs = []; - - params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(params, this, options); -} - -const prototype = AxiosURLSearchParams.prototype; - -prototype.append = function append(name, value) { - this._pairs.push([name, value]); -}; - -prototype.toString = function toString(encoder) { - const _encode = encoder ? function(value) { - return encoder.call(this, value, encode); - } : encode; - - return this._pairs.map(function each(pair) { - return _encode(pair[0]) + '=' + _encode(pair[1]); - }, '').join('&'); -}; - -/* harmony default export */ __webpack_exports__["default"] = (AxiosURLSearchParams); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!***********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -const HttpStatusCode = { - Continue: 100, - SwitchingProtocols: 101, - Processing: 102, - EarlyHints: 103, - Ok: 200, - Created: 201, - Accepted: 202, - NonAuthoritativeInformation: 203, - NoContent: 204, - ResetContent: 205, - PartialContent: 206, - MultiStatus: 207, - AlreadyReported: 208, - ImUsed: 226, - MultipleChoices: 300, - MovedPermanently: 301, - Found: 302, - SeeOther: 303, - NotModified: 304, - UseProxy: 305, - Unused: 306, - TemporaryRedirect: 307, - PermanentRedirect: 308, - BadRequest: 400, - Unauthorized: 401, - PaymentRequired: 402, - Forbidden: 403, - NotFound: 404, - MethodNotAllowed: 405, - NotAcceptable: 406, - ProxyAuthenticationRequired: 407, - RequestTimeout: 408, - Conflict: 409, - Gone: 410, - LengthRequired: 411, - PreconditionFailed: 412, - PayloadTooLarge: 413, - UriTooLong: 414, - UnsupportedMediaType: 415, - RangeNotSatisfiable: 416, - ExpectationFailed: 417, - ImATeapot: 418, - MisdirectedRequest: 421, - UnprocessableEntity: 422, - Locked: 423, - FailedDependency: 424, - TooEarly: 425, - UpgradeRequired: 426, - PreconditionRequired: 428, - TooManyRequests: 429, - RequestHeaderFieldsTooLarge: 431, - UnavailableForLegalReasons: 451, - InternalServerError: 500, - NotImplemented: 501, - BadGateway: 502, - ServiceUnavailable: 503, - GatewayTimeout: 504, - HttpVersionNotSupported: 505, - VariantAlsoNegotiates: 506, - InsufficientStorage: 507, - LoopDetected: 508, - NotExtended: 510, - NetworkAuthenticationRequired: 511, -}; - -Object.entries(HttpStatusCode).forEach(([key, value]) => { - HttpStatusCode[value] = key; -}); - -/* harmony default export */ __webpack_exports__["default"] = (HttpStatusCode); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/bind.js": -/*!*************************************************!*\ - !*** ../node_modules/axios/lib/helpers/bind.js ***! - \*************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ bind; } -/* harmony export */ }); - - -function bind(fn, thisArg) { - return function wrap() { - return fn.apply(thisArg, arguments); - }; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/buildURL.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/buildURL.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ buildURL; } -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); - - - - - -/** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts - * - * @param {string} val The value to be encoded. - * - * @returns {string} The encoded value. - */ -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @param {?object} options - * - * @returns {string} The formatted url - */ -function buildURL(url, params, options) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - const _encode = options && options.encode || encode; - - const serializeFn = options && options.serialize; - - let serializedParams; - - if (serializeFn) { - serializedParams = serializeFn(params, options); - } else { - serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ? - params.toString() : - new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, options).toString(_encode); - } - - if (serializedParams) { - const hashmarkIndex = url.indexOf("#"); - - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/combineURLs.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/combineURLs.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ combineURLs; } -/* harmony export */ }); - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * - * @returns {string} The combined URL - */ -function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/cookies.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/cookies.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - -/* harmony default export */ __webpack_exports__["default"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - - // Standard browser envs support document.cookie - { - write(name, value, expires, path, domain, secure) { - const cookie = [name + '=' + encodeURIComponent(value)]; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(path) && cookie.push('path=' + path); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(domain) && cookie.push('domain=' + domain); - - secure === true && cookie.push('secure'); - - document.cookie = cookie.join('; '); - }, - - read(name) { - const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove(name) { - this.write(name, '', Date.now() - 86400000); - } - } - - : - - // Non-standard browser env (web workers, react-native) lack needed support. - { - write() {}, - read() { - return null; - }, - remove() {} - }); - - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/formDataToJSON.js": -/*!***********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/formDataToJSON.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] - * - * @param {string} name - The name of the property to get. - * - * @returns An array of strings. - */ -function parsePropPath(name) { - // foo[x][y][z] - // foo.x.y.z - // foo-x-y-z - // foo x y z - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => { - return match[0] === '[]' ? '' : match[1] || match[0]; - }); -} - -/** - * Convert an array to an object. - * - * @param {Array} arr - The array to convert to an object. - * - * @returns An object with the same keys and values as the array. - */ -function arrayToObject(arr) { - const obj = {}; - const keys = Object.keys(arr); - let i; - const len = keys.length; - let key; - for (i = 0; i < len; i++) { - key = keys[i]; - obj[key] = arr[key]; - } - return obj; -} - -/** - * It takes a FormData object and returns a JavaScript object - * - * @param {string} formData The FormData object to convert to JSON. - * - * @returns {Object | null} The converted object. - */ -function formDataToJSON(formData) { - function buildPath(path, value, target, index) { - let name = path[index++]; - - if (name === '__proto__') return true; - - const isNumericKey = Number.isFinite(+name); - const isLast = index >= path.length; - name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target) ? target.length : name; - - if (isLast) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) { - target[name] = [target[name], value]; - } else { - target[name] = value; - } - - return !isNumericKey; - } - - if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) { - target[name] = []; - } - - const result = buildPath(path, value, target[name], index); - - if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])) { - target[name] = arrayToObject(target[name]); - } - - return !isNumericKey; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(formData.entries)) { - const obj = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEachEntry(formData, (name, value) => { - buildPath(parsePropPath(name), value, obj, 0); - }); - - return obj; - } - - return null; -} - -/* harmony default export */ __webpack_exports__["default"] = (formDataToJSON); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ isAbsoluteURL; } -/* harmony export */ }); - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isAxiosError.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isAxiosError.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ isAxiosError; } -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -function isAxiosError(payload) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - - - -/* harmony default export */ __webpack_exports__["default"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - -// Standard browser envs have full support of the APIs needed to test -// whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - const msie = /(msie|trident)/i.test(navigator.userAgent); - const urlParsingNode = document.createElement('a'); - let originURL; - - /** - * Parse a URL to discover its components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - let href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })()); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/null.js": -/*!*************************************************!*\ - !*** ../node_modules/axios/lib/helpers/null.js ***! - \*************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// eslint-disable-next-line strict -/* harmony default export */ __webpack_exports__["default"] = (null); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/parseHeaders.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/parseHeaders.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -// RawAxiosHeaders whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]); - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} rawHeaders Headers needing to be parsed - * - * @returns {Object} Headers parsed into an object - */ -/* harmony default export */ __webpack_exports__["default"] = (rawHeaders => { - const parsed = {}; - let key; - let val; - let i; - - rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { - i = line.indexOf(':'); - key = line.substring(0, i).trim().toLowerCase(); - val = line.substring(i + 1).trim(); - - if (!key || (parsed[key] && ignoreDuplicateOf[key])) { - return; - } - - if (key === 'set-cookie') { - if (parsed[key]) { - parsed[key].push(val); - } else { - parsed[key] = [val]; - } - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - - return parsed; -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/parseProtocol.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/parseProtocol.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ parseProtocol; } -/* harmony export */ }); - - -function parseProtocol(url) { - const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/speedometer.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/speedometer.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/** - * Calculate data maxRate - * @param {Number} [samplesCount= 10] - * @param {Number} [min= 1000] - * @returns {Function} - */ -function speedometer(samplesCount, min) { - samplesCount = samplesCount || 10; - const bytes = new Array(samplesCount); - const timestamps = new Array(samplesCount); - let head = 0; - let tail = 0; - let firstSampleTS; - - min = min !== undefined ? min : 1000; - - return function push(chunkLength) { - const now = Date.now(); - - const startedAt = timestamps[tail]; - - if (!firstSampleTS) { - firstSampleTS = now; - } - - bytes[head] = chunkLength; - timestamps[head] = now; - - let i = tail; - let bytesCount = 0; - - while (i !== head) { - bytesCount += bytes[i++]; - i = i % samplesCount; - } - - head = (head + 1) % samplesCount; - - if (head === tail) { - tail = (tail + 1) % samplesCount; - } - - if (now - firstSampleTS < min) { - return; - } - - const passed = startedAt && now - startedAt; - - return passed ? Math.round(bytesCount * 1000 / passed) : undefined; - }; -} - -/* harmony default export */ __webpack_exports__["default"] = (speedometer); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/spread.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/helpers/spread.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ spread; } -/* harmony export */ }); - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * - * @returns {Function} - */ -function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/toFormData.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/helpers/toFormData.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ "../node_modules/axios/lib/helpers/null.js"); - - - - -// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored - - -/** - * Determines if the given thing is a array or js object. - * - * @param {string} thing - The object or array to be visited. - * - * @returns {boolean} - */ -function isVisitable(thing) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(thing); -} - -/** - * It removes the brackets from the end of a string - * - * @param {string} key - The key of the parameter. - * - * @returns {string} the key without the brackets. - */ -function removeBrackets(key) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key; -} - -/** - * It takes a path, a key, and a boolean, and returns a string - * - * @param {string} path - The path to the current key. - * @param {string} key - The key of the current object being iterated over. - * @param {string} dots - If true, the key will be rendered with dots instead of brackets. - * - * @returns {string} The path to the current key. - */ -function renderKey(path, key, dots) { - if (!path) return key; - return path.concat(key).map(function each(token, i) { - // eslint-disable-next-line no-param-reassign - token = removeBrackets(token); - return !dots && i ? '[' + token + ']' : token; - }).join(dots ? '.' : ''); -} - -/** - * If the array is an array and none of its elements are visitable, then it's a flat array. - * - * @param {Array} arr - The array to check - * - * @returns {boolean} - */ -function isFlatArray(arr) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(arr) && !arr.some(isVisitable); -} - -const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"], {}, null, function filter(prop) { - return /^is[A-Z]/.test(prop); -}); - -/** - * Convert a data object to FormData - * - * @param {Object} obj - * @param {?Object} [formData] - * @param {?Object} [options] - * @param {Function} [options.visitor] - * @param {Boolean} [options.metaTokens = true] - * @param {Boolean} [options.dots = false] - * @param {?Boolean} [options.indexes = false] - * - * @returns {Object} - **/ - -/** - * It converts an object into a FormData object - * - * @param {Object} obj - The object to convert to form data. - * @param {string} formData - The FormData object to append to. - * @param {Object} options - * - * @returns - */ -function toFormData(obj, formData, options) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('target must be an object'); - } - - // eslint-disable-next-line no-param-reassign - formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"] || FormData)(); - - // eslint-disable-next-line no-param-reassign - options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, { - metaTokens: true, - dots: false, - indexes: false - }, false, function defined(option, source) { - // eslint-disable-next-line no-eq-null,eqeqeq - return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]); - }); - - const metaTokens = options.metaTokens; - // eslint-disable-next-line no-use-before-define - const visitor = options.visitor || defaultVisitor; - const dots = options.dots; - const indexes = options.indexes; - const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; - const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData); - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) { - throw new TypeError('visitor must be a function'); - } - - function convertValue(value) { - if (value === null) return ''; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isDate(value)) { - return value.toISOString(); - } - - if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.'); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) { - return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - - return value; - } - - /** - * Default visitor. - * - * @param {*} value - * @param {String|Number} key - * @param {Array} path - * @this {FormData} - * - * @returns {boolean} return true to visit the each prop of the value recursively - */ - function defaultVisitor(value, key, path) { - let arr = value; - - if (value && !path && typeof value === 'object') { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - key = metaTokens ? key : key.slice(0, -2); - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if ( - (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) || - ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value)) - )) { - // eslint-disable-next-line no-param-reassign - key = removeBrackets(key); - - arr.forEach(function each(el, index) { - !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append( - // eslint-disable-next-line no-nested-ternary - indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), - convertValue(el) - ); - }); - return false; - } - } - - if (isVisitable(value)) { - return true; - } - - formData.append(renderKey(path, key, dots), convertValue(value)); - - return false; - } - - const stack = []; - - const exposedHelpers = Object.assign(predicates, { - defaultVisitor, - convertValue, - isVisitable - }); - - function build(value, path) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return; - - if (stack.indexOf(value) !== -1) { - throw Error('Circular reference detected in ' + path.join('.')); - } - - stack.push(value); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) { - const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call( - formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers - ); - - if (result === true) { - build(el, path ? path.concat(key) : [key]); - } - }); - - stack.pop(); - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('data must be an object'); - } - - build(obj); - - return formData; -} - -/* harmony default export */ __webpack_exports__["default"] = (toFormData); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!*************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \*************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": function() { return /* binding */ toURLEncodedForm; } -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - - - - -function toURLEncodedForm(data, options) { - return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].classes.URLSearchParams(), Object.assign({ - visitor: function(value, key, path, helpers) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBuffer(value)) { - this.append(key, value.toString('base64')); - return false; - } - - return helpers.defaultVisitor.apply(this, arguments); - } - }, options)); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/validator.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/helpers/validator.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - - -const validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -const deprecatedWarnings = {}; - -/** - * Transitional option validator - * - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return (value, opt, opts) => { - if (validator === false) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]( - formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_DEPRECATED - ); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - * - * @returns {object} - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - const keys = Object.keys(options); - let i = keys.length; - while (i-- > 0) { - const opt = keys[i]; - const validator = schema[opt]; - if (validator) { - const value = options[opt]; - const result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION); - } - } -} - -/* harmony default export */ __webpack_exports__["default"] = ({ - assertOptions, - validators -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/browser/classes/Blob.js": -/*!******************************************************************!*\ - !*** ../node_modules/axios/lib/platform/browser/classes/Blob.js ***! - \******************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/* harmony default export */ __webpack_exports__["default"] = (typeof Blob !== 'undefined' ? Blob : null); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/browser/classes/FormData.js": -/*!**********************************************************************!*\ - !*** ../node_modules/axios/lib/platform/browser/classes/FormData.js ***! - \**********************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/* harmony default export */ __webpack_exports__["default"] = (typeof FormData !== 'undefined' ? FormData : null); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": -/*!*****************************************************************************!*\ - !*** ../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! - \*****************************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); - - - -/* harmony default export */ __webpack_exports__["default"] = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"]); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/browser/index.js": -/*!***********************************************************!*\ - !*** ../node_modules/axios/lib/platform/browser/index.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"); -/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "../node_modules/axios/lib/platform/browser/classes/FormData.js"); -/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ "../node_modules/axios/lib/platform/browser/classes/Blob.js"); - - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - isBrowser: true, - classes: { - URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"], - FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"], - Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__["default"] - }, - protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/common/utils.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/platform/common/utils.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hasBrowserEnv: function() { return /* binding */ hasBrowserEnv; }, -/* harmony export */ hasStandardBrowserEnv: function() { return /* binding */ hasStandardBrowserEnv; }, -/* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; } -/* harmony export */ }); -const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - * - * @returns {boolean} - */ -const hasStandardBrowserEnv = ( - (product) => { - return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 - })(typeof navigator !== 'undefined' && navigator.product); - -/** - * Determine if we're running in a standard browser webWorker environment - * - * Although the `isStandardBrowserEnv` method indicates that - * `allows axios to run in a web worker`, the WebWorker will still be - * filtered out due to its judgment standard - * `typeof window !== 'undefined' && typeof document !== 'undefined'`. - * This leads to a problem when axios post `FormData` in webWorker - */ -const hasStandardBrowserWebWorkerEnv = (() => { - return ( - typeof WorkerGlobalScope !== 'undefined' && - // eslint-disable-next-line no-undef - self instanceof WorkerGlobalScope && - typeof self.importScripts === 'function' - ); -})(); - - - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/index.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/platform/index.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); -/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ "../node_modules/axios/lib/platform/common/utils.js"); - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__, - ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__["default"] -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/utils.js": -/*!******************************************!*\ - !*** ../node_modules/axios/lib/utils.js ***! - \******************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); - - - - -// utils is a library of generic helper functions non-specific to axios - -const {toString} = Object.prototype; -const {getPrototypeOf} = Object; - -const kindOf = (cache => thing => { - const str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); -})(Object.create(null)); - -const kindOfTest = (type) => { - type = type.toLowerCase(); - return (thing) => kindOf(thing) === type -} - -const typeOfTest = type => thing => typeof thing === type; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * - * @returns {boolean} True if value is an Array, otherwise false - */ -const {isArray} = Array; - -/** - * Determine if a value is undefined - * - * @param {*} val The value to test - * - * @returns {boolean} True if the value is undefined, otherwise false - */ -const isUndefined = typeOfTest('undefined'); - -/** - * Determine if a value is a Buffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -const isArrayBuffer = kindOfTest('ArrayBuffer'); - - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - let result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a String, otherwise false - */ -const isString = typeOfTest('string'); - -/** - * Determine if a value is a Function - * - * @param {*} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -const isFunction = typeOfTest('function'); - -/** - * Determine if a value is a Number - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Number, otherwise false - */ -const isNumber = typeOfTest('number'); - -/** - * Determine if a value is an Object - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an Object, otherwise false - */ -const isObject = (thing) => thing !== null && typeof thing === 'object'; - -/** - * Determine if a value is a Boolean - * - * @param {*} thing The value to test - * @returns {boolean} True if value is a Boolean, otherwise false - */ -const isBoolean = thing => thing === true || thing === false; - -/** - * Determine if a value is a plain Object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a plain Object, otherwise false - */ -const isPlainObject = (val) => { - if (kindOf(val) !== 'object') { - return false; - } - - const prototype = getPrototypeOf(val); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); -} - -/** - * Determine if a value is a Date - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Date, otherwise false - */ -const isDate = kindOfTest('Date'); - -/** - * Determine if a value is a File - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFile = kindOfTest('File'); - -/** - * Determine if a value is a Blob - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Blob, otherwise false - */ -const isBlob = kindOfTest('Blob'); - -/** - * Determine if a value is a FileList - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFileList = kindOfTest('FileList'); - -/** - * Determine if a value is a Stream - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Stream, otherwise false - */ -const isStream = (val) => isObject(val) && isFunction(val.pipe); - -/** - * Determine if a value is a FormData - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an FormData, otherwise false - */ -const isFormData = (thing) => { - let kind; - return thing && ( - (typeof FormData === 'function' && thing instanceof FormData) || ( - isFunction(thing.append) && ( - (kind = kindOf(thing)) === 'formdata' || - // detect form-data instance - (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') - ) - ) - ) -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -const isURLSearchParams = kindOfTest('URLSearchParams'); - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * - * @returns {String} The String freed of excess whitespace - */ -const trim = (str) => str.trim ? - str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - * - * @param {Boolean} [allOwnKeys = false] - * @returns {any} - */ -function forEach(obj, fn, {allOwnKeys = false} = {}) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - let i; - let l; - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); - const len = keys.length; - let key; - - for (i = 0; i < len; i++) { - key = keys[i]; - fn.call(null, obj[key], key, obj); - } - } -} - -function findKey(obj, key) { - key = key.toLowerCase(); - const keys = Object.keys(obj); - let i = keys.length; - let _key; - while (i-- > 0) { - _key = keys[i]; - if (key === _key.toLowerCase()) { - return _key; - } - } - return null; -} - -const _global = (() => { - /*eslint no-undef:0*/ - if (typeof globalThis !== "undefined") return globalThis; - return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) -})(); - -const isContextDefined = (context) => !isUndefined(context) && context !== _global; - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - const {caseless} = isContextDefined(this) && this || {}; - const result = {}; - const assignValue = (val, key) => { - const targetKey = caseless && findKey(result, key) || key; - if (isPlainObject(result[targetKey]) && isPlainObject(val)) { - result[targetKey] = merge(result[targetKey], val); - } else if (isPlainObject(val)) { - result[targetKey] = merge({}, val); - } else if (isArray(val)) { - result[targetKey] = val.slice(); - } else { - result[targetKey] = val; - } - } - - for (let i = 0, l = arguments.length; i < l; i++) { - arguments[i] && forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * - * @param {Boolean} [allOwnKeys] - * @returns {Object} The resulting value of object a - */ -const extend = (a, b, thisArg, {allOwnKeys}= {}) => { - forEach(b, (val, key) => { - if (thisArg && isFunction(val)) { - a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg); - } else { - a[key] = val; - } - }, {allOwnKeys}); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * - * @returns {string} content value without BOM - */ -const stripBOM = (content) => { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -/** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - * - * @returns {void} - */ -const inherits = (constructor, superConstructor, props, descriptors) => { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - Object.defineProperty(constructor, 'super', { - value: superConstructor.prototype - }); - props && Object.assign(constructor.prototype, props); -} - -/** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function|Boolean} [filter] - * @param {Function} [propFilter] - * - * @returns {Object} - */ -const toFlatObject = (sourceObj, destObj, filter, propFilter) => { - let props; - let i; - let prop; - const merged = {}; - - destObj = destObj || {}; - // eslint-disable-next-line no-eq-null,eqeqeq - if (sourceObj == null) return destObj; - - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = filter !== false && getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - - return destObj; -} - -/** - * Determines whether a string ends with the characters of a specified string - * - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * - * @returns {boolean} - */ -const endsWith = (str, searchString, position) => { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - const lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -} - - -/** - * Returns new array from array like object or null if failed - * - * @param {*} [thing] - * - * @returns {?Array} - */ -const toArray = (thing) => { - if (!thing) return null; - if (isArray(thing)) return thing; - let i = thing.length; - if (!isNumber(i)) return null; - const arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; -} - -/** - * Checking if the Uint8Array exists and if it does, it returns a function that checks if the - * thing passed in is an instance of Uint8Array - * - * @param {TypedArray} - * - * @returns {Array} - */ -// eslint-disable-next-line func-names -const isTypedArray = (TypedArray => { - // eslint-disable-next-line func-names - return thing => { - return TypedArray && thing instanceof TypedArray; - }; -})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); - -/** - * For each entry in the object, call the function with the key and value. - * - * @param {Object} obj - The object to iterate over. - * @param {Function} fn - The function to call for each entry. - * - * @returns {void} - */ -const forEachEntry = (obj, fn) => { - const generator = obj && obj[Symbol.iterator]; - - const iterator = generator.call(obj); - - let result; - - while ((result = iterator.next()) && !result.done) { - const pair = result.value; - fn.call(obj, pair[0], pair[1]); - } -} - -/** - * It takes a regular expression and a string, and returns an array of all the matches - * - * @param {string} regExp - The regular expression to match against. - * @param {string} str - The string to search. - * - * @returns {Array} - */ -const matchAll = (regExp, str) => { - let matches; - const arr = []; - - while ((matches = regExp.exec(str)) !== null) { - arr.push(matches); - } - - return arr; -} - -/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ -const isHTMLForm = kindOfTest('HTMLFormElement'); - -const toCamelCase = str => { - return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, - function replacer(m, p1, p2) { - return p1.toUpperCase() + p2; - } - ); -}; - -/* Creating a function that will check if an object has a property. */ -const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); - -/** - * Determine if a value is a RegExp object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a RegExp object, otherwise false - */ -const isRegExp = kindOfTest('RegExp'); - -const reduceDescriptors = (obj, reducer) => { - const descriptors = Object.getOwnPropertyDescriptors(obj); - const reducedDescriptors = {}; - - forEach(descriptors, (descriptor, name) => { - let ret; - if ((ret = reducer(descriptor, name, obj)) !== false) { - reducedDescriptors[name] = ret || descriptor; - } - }); - - Object.defineProperties(obj, reducedDescriptors); -} - -/** - * Makes all methods read-only - * @param {Object} obj - */ - -const freezeMethods = (obj) => { - reduceDescriptors(obj, (descriptor, name) => { - // skip restricted props in strict mode - if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { - return false; - } - - const value = obj[name]; - - if (!isFunction(value)) return; - - descriptor.enumerable = false; - - if ('writable' in descriptor) { - descriptor.writable = false; - return; - } - - if (!descriptor.set) { - descriptor.set = () => { - throw Error('Can not rewrite read-only method \'' + name + '\''); - }; - } - }); -} - -const toObjectSet = (arrayOrString, delimiter) => { - const obj = {}; - - const define = (arr) => { - arr.forEach(value => { - obj[value] = true; - }); - } - - isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); - - return obj; -} - -const noop = () => {} - -const toFiniteNumber = (value, defaultValue) => { - value = +value; - return Number.isFinite(value) ? value : defaultValue; -} - -const ALPHA = 'abcdefghijklmnopqrstuvwxyz' - -const DIGIT = '0123456789'; - -const ALPHABET = { - DIGIT, - ALPHA, - ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT -} - -const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { - let str = ''; - const {length} = alphabet; - while (size--) { - str += alphabet[Math.random() * length|0] - } - - return str; -} - -/** - * If the thing is a FormData object, return true, otherwise return false. - * - * @param {unknown} thing - The thing to check. - * - * @returns {boolean} - */ -function isSpecCompliantForm(thing) { - return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); -} - -const toJSONObject = (obj) => { - const stack = new Array(10); - - const visit = (source, i) => { - - if (isObject(source)) { - if (stack.indexOf(source) >= 0) { - return; - } - - if(!('toJSON' in source)) { - stack[i] = source; - const target = isArray(source) ? [] : {}; - - forEach(source, (value, key) => { - const reducedValue = visit(value, i + 1); - !isUndefined(reducedValue) && (target[key] = reducedValue); - }); - - stack[i] = undefined; - - return target; - } - } - - return source; - } - - return visit(obj, 0); -} - -const isAsyncFn = kindOfTest('AsyncFunction'); - -const isThenable = (thing) => - thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); - -/* harmony default export */ __webpack_exports__["default"] = ({ - isArray, - isArrayBuffer, - isBuffer, - isFormData, - isArrayBufferView, - isString, - isNumber, - isBoolean, - isObject, - isPlainObject, - isUndefined, - isDate, - isFile, - isBlob, - isRegExp, - isFunction, - isStream, - isURLSearchParams, - isTypedArray, - isFileList, - forEach, - merge, - extend, - trim, - stripBOM, - inherits, - toFlatObject, - kindOf, - kindOfTest, - endsWith, - toArray, - forEachEntry, - matchAll, - isHTMLForm, - hasOwnProperty, - hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors, - freezeMethods, - toObjectSet, - toCamelCase, - noop, - toFiniteNumber, - findKey, - global: _global, - isContextDefined, - ALPHABET, - generateString, - isSpecCompliantForm, - toJSONObject, - isAsyncFn, - isThenable -}); - - -/***/ }), - -/***/ "../node_modules/fast-copy/dist/esm/index.mjs": -/*!****************************************************!*\ - !*** ../node_modules/fast-copy/dist/esm/index.mjs ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ copyStrict: function() { return /* binding */ copyStrict; }, -/* harmony export */ createCopier: function() { return /* binding */ createCopier; }, -/* harmony export */ createStrictCopier: function() { return /* binding */ createStrictCopier; }, -/* harmony export */ "default": function() { return /* binding */ index; } -/* harmony export */ }); -var toStringFunction = Function.prototype.toString; -var create = Object.create; -var toStringObject = Object.prototype.toString; -/** - * @classdesc Fallback cache for when WeakMap is not natively supported - */ -var LegacyCache = /** @class */ (function () { - function LegacyCache() { - this._keys = []; - this._values = []; - } - LegacyCache.prototype.has = function (key) { - return !!~this._keys.indexOf(key); - }; - LegacyCache.prototype.get = function (key) { - return this._values[this._keys.indexOf(key)]; - }; - LegacyCache.prototype.set = function (key, value) { - this._keys.push(key); - this._values.push(value); - }; - return LegacyCache; -}()); -function createCacheLegacy() { - return new LegacyCache(); -} -function createCacheModern() { - return new WeakMap(); -} -/** - * Get a new cache object to prevent circular references. - */ -var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy; -/** - * Get an empty version of the object with the same prototype it has. - */ -function getCleanClone(prototype) { - if (!prototype) { - return create(null); - } - var Constructor = prototype.constructor; - if (Constructor === Object) { - return prototype === Object.prototype ? {} : create(prototype); - } - if (Constructor && - ~toStringFunction.call(Constructor).indexOf('[native code]')) { - try { - return new Constructor(); - } - catch (_a) { } - } - return create(prototype); -} -function getRegExpFlagsLegacy(regExp) { - var flags = ''; - if (regExp.global) { - flags += 'g'; - } - if (regExp.ignoreCase) { - flags += 'i'; - } - if (regExp.multiline) { - flags += 'm'; - } - if (regExp.unicode) { - flags += 'u'; - } - if (regExp.sticky) { - flags += 'y'; - } - return flags; -} -function getRegExpFlagsModern(regExp) { - return regExp.flags; -} -/** - * Get the flags to apply to the copied regexp. - */ -var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy; -function getTagLegacy(value) { - var type = toStringObject.call(value); - return type.substring(8, type.length - 1); -} -function getTagModern(value) { - return value[Symbol.toStringTag] || getTagLegacy(value); -} -/** - * Get the tag of the value passed, so that the correct copier can be used. - */ -var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy; - -var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols; -var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable; -var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function'; -function getStrictPropertiesModern(object) { - return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)); -} -/** - * Get the properites used when copying objects strictly. This includes both keys and symbols. - */ -var getStrictProperties = SUPPORTS_SYMBOL - ? getStrictPropertiesModern - : getOwnPropertyNames; -/** - * Striclty copy all properties contained on the object. - */ -function copyOwnPropertiesStrict(value, clone, state) { - var properties = getStrictProperties(value); - for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) { - property = properties[index]; - if (property === 'callee' || property === 'caller') { - continue; - } - descriptor = getOwnPropertyDescriptor(value, property); - if (!descriptor) { - // In extra edge cases where the property descriptor cannot be retrived, fall back to - // the loose assignment. - clone[property] = state.copier(value[property], state); - continue; - } - // Only clone the value if actually a value, not a getter / setter. - if (!descriptor.get && !descriptor.set) { - descriptor.value = state.copier(descriptor.value, state); - } - try { - defineProperty(clone, property, descriptor); - } - catch (error) { - // Tee above can fail on node in edge cases, so fall back to the loose assignment. - clone[property] = descriptor.value; - } - } - return clone; -} -/** - * Deeply copy the indexed values in the array. - */ -function copyArrayLoose(array, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(array, clone); - for (var index = 0, length_2 = array.length; index < length_2; ++index) { - clone[index] = state.copier(array[index], state); - } - return clone; -} -/** - * Deeply copy the indexed values in the array, as well as any custom properties. - */ -function copyArrayStrict(array, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(array, clone); - return copyOwnPropertiesStrict(array, clone, state); -} -/** - * Copy the contents of the ArrayBuffer. - */ -function copyArrayBuffer(arrayBuffer, _state) { - return arrayBuffer.slice(0); -} -/** - * Create a new Blob with the contents of the original. - */ -function copyBlob(blob, _state) { - return blob.slice(0, blob.size, blob.type); -} -/** - * Create a new DataView with the contents of the original. - */ -function copyDataView(dataView, state) { - return new state.Constructor(copyArrayBuffer(dataView.buffer)); -} -/** - * Create a new Date based on the time of the original. - */ -function copyDate(date, state) { - return new state.Constructor(date.getTime()); -} -/** - * Deeply copy the keys and values of the original. - */ -function copyMapLoose(map, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(map, clone); - map.forEach(function (value, key) { - clone.set(key, state.copier(value, state)); - }); - return clone; -} -/** - * Deeply copy the keys and values of the original, as well as any custom properties. - */ -function copyMapStrict(map, state) { - return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state); -} -function copyObjectLooseLegacy(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = state.copier(object[key], state); - } - } - return clone; -} -function copyObjectLooseModern(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = state.copier(object[key], state); - } - } - var symbols = getOwnPropertySymbols(object); - for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) { - symbol = symbols[index]; - if (propertyIsEnumerable.call(object, symbol)) { - clone[symbol] = state.copier(object[symbol], state); - } - } - return clone; -} -/** - * Deeply copy the properties (keys and symbols) and values of the original. - */ -var copyObjectLoose = SUPPORTS_SYMBOL - ? copyObjectLooseModern - : copyObjectLooseLegacy; -/** - * Deeply copy the properties (keys and symbols) and values of the original, as well - * as any hidden or non-enumerable properties. - */ -function copyObjectStrict(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - return copyOwnPropertiesStrict(object, clone, state); -} -/** - * Create a new primitive wrapper from the value of the original. - */ -function copyPrimitiveWrapper(primitiveObject, state) { - return new state.Constructor(primitiveObject.valueOf()); -} -/** - * Create a new RegExp based on the value and flags of the original. - */ -function copyRegExp(regExp, state) { - var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp)); - clone.lastIndex = regExp.lastIndex; - return clone; -} -/** - * Return the original value (an identity function). - * - * @note - * THis is used for objects that cannot be copied, such as WeakMap. - */ -function copySelf(value, _state) { - return value; -} -/** - * Deeply copy the values of the original. - */ -function copySetLoose(set, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(set, clone); - set.forEach(function (value) { - clone.add(state.copier(value, state)); - }); - return clone; -} -/** - * Deeply copy the values of the original, as well as any custom properties. - */ -function copySetStrict(set, state) { - return copyOwnPropertiesStrict(set, copySetLoose(set, state), state); -} - -var isArray = Array.isArray; -var assign = Object.assign; -var getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; }); -var DEFAULT_LOOSE_OPTIONS = { - array: copyArrayLoose, - arrayBuffer: copyArrayBuffer, - blob: copyBlob, - dataView: copyDataView, - date: copyDate, - error: copySelf, - map: copyMapLoose, - object: copyObjectLoose, - regExp: copyRegExp, - set: copySetLoose, -}; -var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, { - array: copyArrayStrict, - map: copyMapStrict, - object: copyObjectStrict, - set: copySetStrict, -}); -/** - * Get the copiers used for each specific object tag. - */ -function getTagSpecificCopiers(options) { - return { - Arguments: options.object, - Array: options.array, - ArrayBuffer: options.arrayBuffer, - Blob: options.blob, - Boolean: copyPrimitiveWrapper, - DataView: options.dataView, - Date: options.date, - Error: options.error, - Float32Array: options.arrayBuffer, - Float64Array: options.arrayBuffer, - Int8Array: options.arrayBuffer, - Int16Array: options.arrayBuffer, - Int32Array: options.arrayBuffer, - Map: options.map, - Number: copyPrimitiveWrapper, - Object: options.object, - Promise: copySelf, - RegExp: options.regExp, - Set: options.set, - String: copyPrimitiveWrapper, - WeakMap: copySelf, - WeakSet: copySelf, - Uint8Array: options.arrayBuffer, - Uint8ClampedArray: options.arrayBuffer, - Uint16Array: options.arrayBuffer, - Uint32Array: options.arrayBuffer, - Uint64Array: options.arrayBuffer, - }; -} -/** - * Create a custom copier based on the object-specific copy methods passed. - */ -function createCopier(options) { - var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options); - var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions); - var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object; - function copier(value, state) { - state.prototype = state.Constructor = undefined; - if (!value || typeof value !== 'object') { - return value; - } - if (state.cache.has(value)) { - return state.cache.get(value); - } - state.prototype = getPrototypeOf(value); - state.Constructor = state.prototype && state.prototype.constructor; - // plain objects - if (!state.Constructor || state.Constructor === Object) { - return object(value, state); - } - // arrays - if (isArray(value)) { - return array(value, state); - } - var tagSpecificCopier = tagSpecificCopiers[getTag(value)]; - if (tagSpecificCopier) { - return tagSpecificCopier(value, state); - } - return typeof value.then === 'function' ? value : object(value, state); - } - return function copy(value) { - return copier(value, { - Constructor: undefined, - cache: createCache(), - copier: copier, - prototype: undefined, - }); - }; -} -/** - * Create a custom copier based on the object-specific copy methods passed, defaulting to the - * same internals as `copyStrict`. - */ -function createStrictCopier(options) { - return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options)); -} -/** - * Copy an value deeply as much as possible, where strict recreation of object properties - * are maintained. All properties (including non-enumerable ones) are copied with their - * original property descriptors on both objects and arrays. - */ -var copyStrict = createStrictCopier({}); -/** - * Copy an value deeply as much as possible. - */ -var index = createCopier({}); - - -//# sourceMappingURL=index.mjs.map - - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ !function() { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/global */ -/******/ !function() { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -!function() { -"use strict"; -/*!**********************************!*\ - !*** ./contentful-management.ts ***! - \**********************************/ -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ RestAdapter: function() { return /* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_7__.RestAdapter; }, -/* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.ScheduledActionReferenceFilters; }, -/* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionAction; }, -/* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionEffect; }, -/* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionType; }, -/* harmony export */ asIterator: function() { return /* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__.asIterator; }, -/* harmony export */ createClient: function() { return /* binding */ createClient; }, -/* harmony export */ editorInterfaceDefaults: function() { return /* reexport module object */ _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__; }, -/* harmony export */ isDraft: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isDraft; }, -/* harmony export */ isPublished: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isPublished; }, -/* harmony export */ isUpdated: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isUpdated; } -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _create_adapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-adapter */ "./create-adapter.ts"); -/* harmony import */ var _create_contentful_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-contentful-api */ "./create-contentful-api.ts"); -/* harmony import */ var _plain_plain_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plain/plain-client */ "./plain/plain-client.ts"); -/* harmony import */ var _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants/editor-interface-defaults */ "./constants/editor-interface-defaults/index.ts"); -/* harmony import */ var _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plain/as-iterator */ "./plain/as-iterator.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts"); -/* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./export-types */ "./export-types.ts"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Contentful Management API SDK. Allows you to create instances of a client - * with access to the Contentful Content Management API. - * @packageDocumentation - */ - - - - - - - - - - - - - -/** - * @deprecated - */ - -/** - * Create a client instance - * @param params - Client initialization parameters - * - * ```javascript - * const client = contentfulManagement.createClient({ - * accessToken: 'myAccessToken' - * }) - * ``` - */ - -// Usually, overloads with more specific signatures should come first but some IDEs are often not able to handle overloads with separate TSDocs correctly -/** - * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option. - */ - -function createClient(params) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js'; - var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error - "".concat(sdkMain, "/").concat("11.25.3"), params.application, params.integration, params.feature); - var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, { - userAgent: userAgent - })); - - // Parameters and ReturnType only return the types of the last overload - // https://github.com/microsoft/TypeScript/issues/26591 - // @ts-expect-error - var makeRequest = function makeRequest(options) { - return adapter.makeRequest(_objectSpread(_objectSpread({}, options), {}, { - userAgent: userAgent - })); - }; - if (opts.type === 'plain') { - return (0,_plain_plain_client__WEBPACK_IMPORTED_MODULE_3__.createPlainClient)(makeRequest, opts.defaults); - } else { - return (0,_create_contentful_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest); - } -} -}(); -/******/ return __webpack_exports__; -/******/ })() -; -}); -//# sourceMappingURL=contentful-management.browser.js.map \ No newline at end of file diff --git a/node_modules/contentful-management/dist/contentful-management.browser.js.map b/node_modules/contentful-management/dist/contentful-management.browser.js.map deleted file mode 100644 index 5b6aa300..00000000 --- a/node_modules/contentful-management/dist/contentful-management.browser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contentful-management.browser.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;ACL4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,GAAuC,GAAG,SAA1CA,GAAuCA,CAClDC,IAAmB,EACnBC,MAA2B,EACxB;EACH,OAAOH,qCAAO,CAAkBE,IAAI,6BAAAE,MAAA,CAA6BD,MAAM,CAACE,OAAO,CAAE,CAAC;AACpF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,OAA+C,GAAG,SAAlDA,OAA+CA,CAC1DJ,IAAmB,EACnBC,MAAmB,EAChB;EACH,OAAOH,qCAAO,CAAkCE,IAAI,EAAE,yBAAyB,EAAE;IAC/EC,MAAM,EAAEA,MAAM,CAACI;EACjB,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,yBAAmF,GAAG,SAAtFA,yBAAmFA,CAC9FN,IAAmB,EACnBO,OAAW,EACXC,OAAuC,EACvCC,OAAgC,EAC7B;EACH,OAAOX,sCAAQ,CAAkBE,IAAI,EAAE,yBAAyB,EAAEQ,OAAO,EAAE;IACzEC,OAAO,EAAPA;EACF,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAME,MAA6C,GAAG,SAAhDA,MAA6CA,CACxDX,IAAmB,EACnBC,MAA2B,EACxB;EACH,OAAOH,qCAAO,CAAkBE,IAAI,6BAAAE,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BAAgB,WAAAA,iBAACC,SAAqB,EAAE;MACtC,OAAOvF,SAAS,CAAC1J,WAAW,EAAEiP,SAAS,CAAC;IAC1C,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIC,gBAAgB,WAAAA,iBAACC,SAAqB,EAAE;MACtC,OAAOjC,SAAS,CAAClN,WAAW,EAAEmP,SAAS,CAAC;IAC1C,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIC,aAAa,WAAAA,cAAoCtd,YAAoB,EAA0B;MAC7F,IAAMhU,GAAqB,GAAG,IAAI,CAACoiB,aAAa,CAAC,CAAC;MAElD,OAAOF,WAAW,CAAC;QACjBJ,UAAU,EAAE,YAAY;QACxBE,MAAM,EAAE,KAAK;QACb7hB,MAAM,EAAE;UACNe,OAAO,EAAElB,GAAG,CAAC4B,GAAG,CAACknB,KAAK,CAAClnB,GAAG,CAACsK,EAAE;UAC7BlK,aAAa,EAAEhC,GAAG,CAAC4B,GAAG,CAACsK,EAAE;UACzB8H,YAAY,EAAZA;QACF;MACF,CAAC,CAAC,CAACvO,IAAI,CAAC,UAACpE,IAAI;QAAA,OAAKuvB,cAAc,CAAI1O,WAAW,EAAE7gB,IAAI,CAAC;MAAA,EAAC;IACzD,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIkwB,uBAAuB,WAAAA,wBAAC1kB,OAAiC,EAAE;MACzD,IAAM7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EAALA;UAAM,CAAC,CAAC,CAACJ;QAAO;MAC9E,CAAC,CAAC,CAACsF,IAAI,CAAC,UAACpE,IAAI;QAAA,OAAKw3B,kBAAkB,CAAC3W,WAAW,EAAE7gB,IAAI,CAAC;MAAA,EAAC;IAC1D,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACI+8B,UAAU,WAAAA,WAAC/8B,IAAqB,EAAE;MAChC,IAAMrB,GAAG,GAAG,IAAI,CAACoiB,aAAa,CAAC,CAAe;MAC9C,OAAOF,WAAW,CAAC;QACjBJ,UAAU,EAAE,MAAM;QAClBE,MAAM,EAAE,QAAQ;QAChB7hB,MAAM,EAAE;UAAEe,OAAO,EAAElB,GAAG,CAAC4B,GAAG,CAACsK;QAAG,CAAC;QAC/BW,OAAO,EAAExL;MACX,CAAC,CAAC,CAACoE,IAAI,CAAC,UAACpE,IAAI;QAAA,OAAKy6B,QAAQ,CAAC5Z,WAAW,EAAE7gB,IAAI,CAAC;MAAA,EAAC;IAChD,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIg9B,gBAAgB,WAAAA,iBAACnyB,EAAU,EAAEoyB,QAAgC,EAAE;MAC7D,IAAMt+B,GAAG,GAAG,IAAI,CAACoiB,aAAa,CAAC,CAAe;MAC9C,OAAOF,WAAW,CAAC;QACjBJ,UAAU,EAAE,MAAM;QAClBE,MAA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;AACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9C6B;AACT;AACmB;AACJ;AACc;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY,kEAAkE;AACtF,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C,wBAAwB,uCAAuC;AAC/D;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,iDAAS;AAClB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,cAAc,sDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA,GAAG;AACH;AACA,yBAAyB,sDAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,wBAAwB;AACnC,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mDAAY;AAC3B;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,cAAc,eAAe;AAC7B;AACA;AACA,mEAAmE,EAAE,gDAAI;AACzE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA,kBAAkB,gDAAI;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,UAAU,MAAM;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,gDAAI;AACjB;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,2DAAa,eAAe,2DAAa;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2DAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAE6H;;;;;;;;;;;AClvB7H;AACA,IAAI,KAA4D;AAChE,IAAI,CAC2G;AAC/G,CAAC,uBAAuB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,6BAA6B;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,kBAAkB;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kGAAkG,kBAAkB;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAM;AACzB,mBAAmB,qBAAM;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,kBAAkB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;;AClWa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;ACtBa;;AAEb,gBAAgB,mBAAO,CAAC,yFAAa;AACrC,YAAY,mBAAO,CAAC,iFAAS;AAC7B,cAAc,mBAAO,CAAC,qFAAW;;AAEjC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,iFAAS;;AAE7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,+BAA+B;;AAExE;AACA,wCAAwC;;AAExC;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,mCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB;AACxB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACvQa;;AAEb,qBAAqB,mBAAO,CAAC,2DAAc;AAC3C,YAAY,mBAAO,CAAC,iFAAS;AAC7B,cAAc,mBAAO,CAAC,qFAAW;AACjC;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gEAAgE;AACrF,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,oBAAoB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;AC/Ta;;AAEb,cAAc,mBAAO,CAAC,qFAAW;;AAEjC;AACA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,gBAAgB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAiD,EAAE;AACnD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,kDAAkD,EAAE;AACpD;AACA,SAAS;AACT;;AAEA;AACA,oBAAoB,mBAAmB;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,OAAO,UAAU,aAAa;AACjD;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;;AAEA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA,6BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3Pa;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,cAAc;AAClC;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qCAAqC,oBAAoB;AACzD;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA,iFAAiF,sCAAsC;;AAEvH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACnFa;;AAEb,qBAAqB,mBAAO,CAAC,yEAAkB;;AAE/C;;;;;;;;;;;;ACJa;;AAEb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,8CAA8C;AAChF,GAAG;AACH;;AAEA;AACA;AACA;AACA,UAAU;AACV,GAAG;AACH,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,IAAI;AACJ;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,EAAE;AACF;;AAEA,iBAAiB,mBAAO,CAAC,yDAAa;AACtC,eAAe,mBAAO,CAAC,qDAAW;;AAElC;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,GAAG;AACH,gDAAgD;AAChD,GAAG;AACH,sDAAsD;AACtD,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW,mBAAO,CAAC,6DAAe;AAClC,aAAa,mBAAO,CAAC,6CAAK;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC9Va;;AAEb;AACA;AACA;;AAEA;;AAEA;AACA,UAAU,iBAAiB,yBAAyB,kBAAkB;AACtE;;;;;;;;;;;;ACVa;;AAEb;AACA,oBAAoB,mBAAO,CAAC,qDAAS;;AAErC;AACA,yCAAyC;AACzC,qCAAqC;AACrC,8CAA8C;AAC9C,0CAA0C;;AAE1C;AACA;;;;;;;;;;;;ACZa;;AAEb;AACA;AACA,2FAA2F;AAC3F,4CAA4C;;AAE5C;AACA;AACA;AACA,gCAAgC;;AAEhC,kEAAkE;AAClE,qEAAqE;;AAErE;AACA,iCAAiC;AACjC;AACA,uCAAuC;;AAEvC,2DAA2D;AAC3D,+DAA+D;;AAE/D;AACA;AACA,oBAAoB,gBAAgB;AACpC,2EAA2E;;AAE3E,yGAAyG;;AAEzG;AACA,6CAA6C;;AAE7C,8DAA8D;;AAE9D;AACA;AACA,uEAAuE;AACvE;;AAEA;AACA;;;;;;;;;;;;ACzCa;;AAEb,WAAW,mBAAO,CAAC,6DAAe;;AAElC;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gBAAgB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,EAAE;AACvC;AACA,yDAAyD;AACzD;AACA;AACA;AACA,2GAA2G,EAAE;AAC7G;AACA;AACA;AACA;;AAEA,kBAAkB,mBAAO,CAAC,6BAAgB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAuD;AACvD;AACA;AACA,kGAAkG,gCAAgC;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uGAAuG;AAC7H;AACA,kCAAkC;AAClC,kBAAkB,uDAAuD;AACzE;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA,2BAA2B,iCAAiC;AAC5D;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iDAAiD;AACjD;;AAEA,wBAAwB;AACxB,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,iEAAiE;AACjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA,aAAa;AACb;AACA;;AAEA;AACA,sBAAsB;AACtB,mCAAmC,OAAO;AAC1C,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAsB,GAAG;AACzB;;AAEA;AACA;AACA,oCAAoC,sBAAsB;AAC1D;;AAEA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA,2BAA2B;AAC3B,8BAA8B,YAAY;AAC1C,wEAAwE,YAAY;AACpF;AACA;AACA,sBAAsB;AACtB,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACngBa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,yBAAyB;;;;;;;;;;;;ACrGZ;;AAEb,mBAAmB,mBAAO,CAAC,6DAAe;AAC1C,gBAAgB,mBAAO,CAAC,mEAAqB;AAC7C,cAAc,mBAAO,CAAC,+DAAgB;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,6BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB;AACxB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC3HA;;;;;;;;;;;;;;;;ACAgC;AACI;AACF;AACa;;AAE/C;AACA,QAAQ,gDAAW;AACnB,OAAO,+CAAU;AACjB;;AAEA,iDAAK;AACL;AACA;AACA,yCAAyC,MAAM;AAC/C,MAAM;AACN;AACA;AACA,8CAA8C,MAAM;AACpD;AACA,CAAC;;AAED,sCAAsC,OAAO;;AAE7C,sCAAsC,iDAAK;;AAE3C,+DAAe;AACf;AACA,eAAe,iDAAK;;AAEpB,WAAW,QAAQ;AACnB;AACA;;AAEA;;AAEA,oBAAoB,YAAY;AAChC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,oBAAoB,2DAAU,qBAAqB,GAAG;AACtD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,yCAAyC,IAAI;AAC7C;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,2DAAU;AAC1B;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EY;;AAEqB;AACO;AACK;AACE;AACK;AACS;AACC;AAChB;AACQ;AACC;AACZ;AACO;AACC;;AAEpD;AACA;AACA,uBAAuB,mEAAW;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,+DAAe;AACf;AACA;AACA,2BAA2B,6DAAY;AACvC,SAAS,6BAA6B;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,QAAQ,iDAAK;AACb,UAAU,0DAAQ,0BAA0B,0DAAQ;AACpD,8CAA8C;AAC9C,QAAQ;AACR;AACA,oEAAoE;AACpE,yFAAyF;AACzF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,kEAAa;;AAElC,8CAA8C,gEAAQ;;AAEtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,6DAAY;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,2DAAM;AACZ;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,2DAAU,oBAAoB,2DAAU;;AAEzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,2DAAU,kBAAkB,2DAAU;;AAEvD;AACA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD,iEAAoB;AACtE;AACA;AACA;AACA,iBAAiB,2DAAU;AAC3B;AACA,2CAA2C,2DAAU,aAAa,2DAAU;AAC5E;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,0DAAQ;AACf,uBAAuB,iDAAK;;AAE5B,uDAAuD,uEAAe;AACtE;AACA,4EAA4E,4DAAO;;AAEnF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM,iDAAK;AACX;AACA,OAAO;AACP;;AAEA;AACA,SAAS,iDAAK;A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U;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,yDAAa;AACtC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,WAAW,EAAC;;;;;;;;;;;;;;;ACxHd;;AAEkC;AACf;;AAEhC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,aAAa,eAAe;AAC5B;AACA;AACA;AACA,EAAE,2DAAU,oDAAoD,2DAAU;AAC1E;AACA;;AAEA,iDAAK,yBAAyB,2DAAU;AACxC;AACA,CAAC;;AAED,+DAAe,aAAa,EAAC;;;;;;;;;;;;;;;;ACxBhB;;AAEE;AACf;AACA;;;;;;;;;;;;;;;;;;;;;ACJa;;AAEqB;AACY;AACW;AACN;AACR;AACI;AACC;AACH;;AAE7C,mBAAmB,6DAAS;;AAE5B;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,mBAAmB,8DAAkB;AACrC,oBAAoB,8DAAkB;AACtC;AACA;;AAEA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,SAAS;AACtB;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,aAAa,2DAAW;;AAExB,WAAW,yCAAyC;;AAEpD;AACA,MAAM,6DAAS;AACf;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,UAAU,iDAAK;AACf;AACA;AACA;AACA,QAAQ;AACR,QAAQ,6DAAS;AACjB;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC,iDAAK;AACzC;AACA;AACA;;AAEA,eAAe,iDAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,wDAAY;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,qBAAqB,2DAAe;AACpC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,2DAAe;AAC/B,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,2DAAW;AACxB,qBAAqB,6DAAa;AAClC,WAAW,gEAAQ;AACnB;AACA;;AAEA;AACA,iDAAK;AACL;AACA;AACA,wBAAwB,2DAAW,aAAa;AAChD;AACA;AACA,yBAAyB;AACzB,KAAK;AACL;AACA,CAAC;;AAED,iDAAK;AACL;;AAEA;AACA;AACA,0BAA0B,2DAAW,aAAa;AAClD;AACA;AACA;AACA,UAAU,IAAI;AACd;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA,CAAC;;AAED,+DAAe,KAAK,EAAC;;;;;;;;;;;;;;AChOR;;AAEmB;;AAEhC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iDAAK;AACnB;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,CAAC;;AAED;AACA,kDAAkD,YAAY;;AAE9D;AACA;AACA;;AAEA,EAAE,iDAAK;AACP;AACA,GAAG;AACH;AACA,GAAG;;AAEH;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,+DAAe,UAAU,EAAC;;;;;;;;;;;;;;;ACnGb;;AAEmB;AACsB;;AAEtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS,iDAAK;AACd;;AAEA;AACA;AACA,2BAA2B,mBAAmB;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,MAAM,iDAAK;AACX;AACA;;AAEA;AACA;AACA;;AAEA,OAAO,iDAAK;;AAEZ,MAAM,iDAAK;AACX;AACA;;AAEA,MAAM,iDAAK;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,uBAAuB,iDAAK;;AAE5B;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,iDAAK;;AAEvB;AACA;AACA;AACA;;AAEA;AACA,MAAM,iDAAK;;AAEX,QAAQ,iDAAK;AACb;AACA,M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;;AAE7C,oDAAoD,wDAAY,KAAK,WAAW;;AAEhF;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AACA;;AAEA;AACA,QAAQ,iDAAK,0BAA0B,iDAAK;AAC5C,aAAa,iDAAK,aAAa,SAAS;AACxC,MAAM,SAAS,iDAAK;AACpB,aAAa,iDAAK,SAAS;AAC3B,MAAM,SAAS,iDAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAK;AACd;AACA,MAAM,UAAU,iDAAK;AACrB;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAK;AACd;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAK;AACd;AACA,MAAM,UAAU,iDAAK;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAE,iDAAK,qCAAqC;AAC5C;AACA;AACA,KAAK,iDAAK;AACV,GAAG;;AAEH;AACA;;;;;;;;;;;;;;;;;ACzGa;;AAE4B;;AAEzC;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AACA;AACA,IAAI;AACJ,eAAe,sDAAU;AACzB;AACA,OAAO,sDAAU,kBAAkB,sDAAU;AAC7C;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC1Ba;;AAEqB;AACU;AACO;;AAEnD;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B,WAAW,SAAS;AACpB;AACA,aAAa,GAAG;AAChB;AACe;AACf,yBAAyB,0DAAQ;AACjC;AACA,kBAAkB,6D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AACA,CAAC;;AAED,+DAAe,QAAQ,EAAC;;;;;;;;;;;;;AC3JX;;AAEb,+DAAe;AACf;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACNK;;;;;;;;;;;;;ACAM;;AAE4B;;AAEzC;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,qBAAqB;AAChC;AACA,aAAa;AACb;AACA;AACA;;AAEA,YAAY,0DAAU;AACtB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA,GAAG;AACH;;AAEA,+DAAe,oBAAoB,EAAC;;;;;;;;;;;;;ACzDpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,+DAAe,cAAc,EAAC;;;;;;;;;;;;;;;;ACtEjB;;AAEE;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACNa;;AAEmB;AACsC;;AAEtE;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AAC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ACA;;AAEA;AACA;;AAEA,+DAAe,cAAc,EAAC;;;;;;;;;;;;;;;;AC9FjB;;AAEb;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACe;AACf;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACda;;AAEqB;;AAElC;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACe;AACf,SAAS,iDAAK;AACd;;;;;;;;;;;;;;;ACba;;AAEqB;AACU;;AAE5C,+DAAe,0DAAQ;;AAEvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA,sBAAsB,iDAAK;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG,GAAG,EAAC;;;;;;;;;;;;;AClEP;AACA,+DAAe,IAAI,EAAC;;;;;;;;;;;;;;ACDP;;AAEqB;;AAElC;AACA;AACA,0BAA0B,iDAAK;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA,+DAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACtDW;;AAEE;AACf,0BAA0B,KAAK;AAC/B;AACA;;;;;;;;;;;;;ACLa;;AAEb;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,+DAAe,WAAW,EAAC;;;;;;;;;;;;;;;;ACtDd;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACe;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC3Ba;;AAEmB;AACe;AAC/C;AACoE;;AAEpE;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA,SAAS,iDAAK,yBAAyB,iDAAK;AAC5C;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,SAAS,iDAAK;AACd;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA,aAAa;AACb;AACA;AACA,SAAS,iDAAK;AACd;;AAEA,mBAAmB,iDAAK,cAAc,iDAAK,IAAI;AAC/C;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,QAAQ;AACnB,WAAW,qBAAqB;AAChC;AACA;AACA;AACA;AACA,O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a;;AAE0B;AACQ;;AAE/C;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA,wBAAwB,iDAAO;AAC/B;;AAEA;AACA;AACA;AACA,gBAAgB,2DAAU;AAC1B;AACA,QAAQ,2DAAU;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA,aAAa;AACb;;AAEA;AACA;AACA,cAAc,2DAAU,8BAA8B,2DAAU;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,2DAAU,yCAAyC,2DAAU;AAC/E;AACA;AACA;AACA;AACA,gBAAgB,2DAAU,0BAA0B,2DAAU;AAC9D;AACA;AACA;;AAEA,+DAAe;AACf;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;AC1FU;;AAEZ,+DAAe,yCAAyC;;;;;;;;;;;;;ACF3C;;AAEb,+DAAe,iDAAiD,EAAC;;;;;;;;;;;;;;ACFpD;;AAE+D;AAC5E,+DAAe,2DAA2D,wEAAoB,EAAC;;;;;;;;;;;;;;;;ACHrC;AACd;AACR;;AAEpC,+DAAe;AACf;AACA;AACA,mBAAmB;AACnB,YAAY;AACZ,QAAQ;AACR,GAAG;AACH;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;;ACZF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAMA;;;;;;;;;;;;;;;AC9CsC;AACI;;AAE3C,+DAAe;AACf,KAAK,6CAAK;AACV,KAAK,sDAAQ;AACb,CAAC;;;;;;;;;;;;;;ACNY;;AAEwB;;AAErC;;AAEA,OAAO,UAAU;AACjB,OAAO,gBAAgB;;AAEvB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA,OAAO,SAAS;;AAEhB;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,UAAU;AACrB;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA,2BAA2B,oBAAoB,IAAI;AACnD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA4B;AAC5B;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,SAAS,UAAU;AACnB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,kCAAkC;AAClC,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA,gCAAgC,WAAW,IAAI;AAC/C;AACA;AACA,eAAe,4DAAI;AACnB,MAAM;AACN;AACA;AACA,GAAG,GAAG,WAAW;AACjB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,eAAe;;AAEzC;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,QAAQ;AACjB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,+DAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;;;ACltBF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F,kBAAkB;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,kBAAkB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,kBAAkB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gEAAgE,uBAAuB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA,2BAA2B;;AAE+C;AAC1E;;;;;;;UC9YA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;AAEwD;AAGO;AACS;AAGhB;AACwB;AAGhC;AACgB;AAE3C;AACqC;AAC1B;AAEF;;AAe9B;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;;AASA,SAASM,YAAYA,CACnB9tC,MAAqB,EAKO;EAAA,IAJ5Bq5B,IAGC,GAAA/vB,SAAA,CAAArC,MAAA,QAAAqC,SAAA,QAAAvH,SAAA,GAAAuH,SAAA,MAAG,CAAC,CAAC;EAEN,IAAMykC,OAAO,GACX1U,IAAI,CAACv1B,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;EACvF,IAAM0d,SAAS,GAAGmsB,uEAAkB,EAClC;EAAA,GAAA1tC,MAAA,CACG8tC,OAAO,OAAA9tC,MAAA,aACVD,MAAM,CAACguC,WAAW,EAClBhuC,MAAM,CAACiuC,WAAW,EAClBjuC,MAAM,CAACkuC,OACT,CAAC;EAED,IAAMC,OAAO,GAAGzmB,8DAAa,CAAAhmB,aAAA,CAAAA,aAAA,KAAM1B,MAAM;IAAEwhB,SAAS,EAATA;EAAS,EAAE,CAAC;;EAEvD;EACA;EACA;EACA,IAAMO,WAAwB,GAAG,SAA3BA,WAAwBA,CAAIrT,OAAmC;IAAA,OACnEy/B,OAAO,CAACpsB,WAAW,CAAArgB,aAAA,CAAAA,aAAA,KAAMgN,OAAO;MAAE8S,SAAS,EAATA;IAAS,EAAE,CAAC;EAAA;EAEhD,IAAI6X,IAAI,CAACv1B,IAAI,KAAK,OAAO,EAAE;IACzB,OAAOgpC,sEAAiB,CAAC/qB,WAAW,EAAEsX,IAAI,CAACvd,QAAQ,CAAC;EACtD,CAAC,MAAM;IACL,OAAO8xB,kEAAmB,CAAC7rB,WAAW,CAAC;EACzC;AACF,C","sources":["webpack:///webpack/universalModuleDefinition","webpack:///./adapters/REST/endpoints/access-token.ts","webpack:///./adapters/REST/endpoints/api-key.ts","webpack:///./adapters/REST/endpoints/app-access-token.ts","webpack:///./adapters/REST/endpoints/app-action-call.ts","webpack:///./adapters/REST/endpoints/app-action.ts","webpack:///./adapters/REST/endpoints/app-bundle.ts","webpack:///./adapters/REST/endpoints/app-definition.ts","webpack:///./adapters/REST/endpoints/app-details.ts","webpack:///./adapters/REST/endpoints/app-event-subscription.ts","webpack:///./adapters/REST/endpoints/app-installation.ts","webpack:///./adapters/REST/endpoints/app-key.ts","webpack:///./adapters/REST/endpoints/app-signed-request.ts","webpack:///./adapters/REST/endpoints/app-signing-secret.ts","webpack:///./adapters/REST/endpoints/app-upload.ts","webpack:///./adapters/REST/endpoints/asset-key.ts","webpack:///./adapters/REST/endpoints/asset.ts","webpack:///./adapters/REST/endpoints/bulk-action.ts","webpack:///./adapters/REST/endpoints/comment.ts","webpack:///./adapters/REST/endpoints/content-type.ts","webpack:///./adapters/REST/endpoints/editor-interface.ts","webpack:///./adapters/REST/endpoints/entry.ts","webpack:///./adapters/REST/endpoints/environment-alias.ts","webpack:///./adapters/REST/endpoints/environment-template-installation.ts","webpack:///./adapters/REST/endpoints/environment-template.ts","webpack:///./adapters/REST/endpoints/environment.ts","webpack:///./adapters/REST/endpoints/extension.ts","webpack:///./adapters/REST/endpoints/http.ts","webpack:///./adapters/REST/endpoints/index.ts","webpack:///./adapters/REST/endpoints/locale.ts","webpack:///./adapters/REST/endpoints/organization-invitation.ts","webpack:///./adapters/REST/endpoints/organization-membership.ts","webpack:///./adapters/REST/endpoints/organization.ts","webpack:///./adapters/REST/endpoints/personal-access-token.ts","webpack:///./adapters/REST/endpoints/preview-api-key.ts","webpack:///./adapters/REST/endpoints/raw.ts","webpack:///./adapters/REST/endpoints/release-action.ts","webpack:///./adapters/REST/endpoints/release.ts","webpack:///./adapters/REST/endpoints/role.ts","webpack:///./adapters/REST/endpoints/scheduled-action.ts","webpack:///./adapters/REST/endpoints/snapshot.ts","webpack:///./adapters/REST/endpoints/space-member.ts","webpack:///./adapters/REST/endpoints/space-membership.ts","webpack:///./adapters/REST/endpoints/space.ts","webpack:///./adapters/REST/endpoints/tag.ts","webpack:///./adapters/REST/endpoints/task.ts","webpack:///./adapters/REST/endpoints/team-membership.ts","webpack:///./adapters/REST/endpoints/team-space-membership.ts","webpack:///./adapters/REST/endpoints/team.ts","webpack:///./adapters/REST/endpoints/ui-config.ts","webpack:///./adapters/REST/endpoints/upload.ts","webpack:///./adapters/REST/endpoints/usage.ts","webpack:///./adapters/REST/endpoints/user-ui-config.ts","webpack:///./adapters/REST/endpoints/user.ts","webpack:///./adapters/REST/endpoints/utils.ts","webpack:///./adapters/REST/endpoints/webhook.ts","webpack:///./adapters/REST/endpoints/workflow-definition.ts","webpack:///./adapters/REST/endpoints/workflow.ts","webpack:///./adapters/REST/endpoints/workflows-changelog.ts","webpack:///./adapters/REST/rest-adapter.ts","webpack:///./common-types.ts","webpack:///./common-utils.ts","webpack:///./constants/editor-interface-defaults/controls-defaults.ts","webpack:///./constants/editor-interface-defaults/editors-defaults.ts","webpack:///./constants/editor-interface-defaults/index.ts","webpack:///./constants/editor-interface-defaults/sidebar-defaults.ts","webpack:///./constants/editor-interface-defaults/types.ts","webpack:///./create-adapter.ts","webpack:///./create-app-definition-api.ts","webpack:///./create-contentful-api.ts","webpack:///./create-entry-api.ts","webpack:///./create-environment-api.ts","webpack:///./create-environment-template-api.ts","webpack:///./create-organization-api.ts","webpack:///./create-space-api.ts","webpack:///./create-ui-config-api.ts","webpack:///./create-user-ui-config-api.ts","webpack:///./enhance-with-methods.ts","webpack:///./entities/access-token.ts","webpack:///./entities/api-key.ts","webpack:///./entities/app-access-token.ts","webpack:///./entities/app-action-call.ts","webpack:///./entities/app-action.ts","webpack:///./entities/app-bundle.ts","webpack:///./entities/app-definition.ts","webpack:///./entities/app-details.ts","webpack:///./entities/app-event-subscription.ts","webpack:///./entities/app-installation.ts","webpack:///./entities/app-key.ts","webpack:///./entities/app-signed-request.ts","webpack:///./entities/app-signing-secret.ts","webpack:///./entities/app-upload.ts","webpack:///./entities/asset-key.ts","webpack:///./entities/asset.ts","webpack:///./entities/bulk-action.ts","webpack:///./entities/comment.ts","webpack:///./entities/content-type.ts","webpack:///./entities/editor-interface.ts","webpack:///./entities/entry.ts","webpack:///./entities/environment-alias.ts","webpack:///./entities/environment-template-installation.ts","webpack:///./entities/environment-template.ts","webpack:///./entities/environment.ts","webpack:///./entities/extension.ts","webpack:///./entities/index.ts","webpack:///./entities/locale.ts","webpack:///./entities/organization-invitation.ts","webpack:///./entities/organization-membership.ts","webpack:///./entities/organization.ts","webpack:///./entities/personal-access-token.ts","webpack:///./entities/preview-api-key.ts","webpack:///./entities/release-action.ts","webpack:///./entities/release.ts","webpack:///./entities/role.ts","webpack:///./entities/scheduled-action.ts","webpack:///./entities/snapshot.ts","webpack:///./entities/space-member.ts","webpack:///./entities/space-membership.ts","webpack:///./entities/space.ts","webpack:///./entities/tag.ts","webpack:///./entities/task.ts","webpack:///./entities/team-membership.ts","webpack:///./entities/team-space-membership.ts","webpack:///./entities/team.ts","webpack:///./entities/ui-config.ts","webpack:///./entities/upload.ts","webpack:///./entities/usage.ts","webpack:///./entities/user-ui-config.ts","webpack:///./entities/user.ts","webpack:///./entities/webhook.ts","webpack:///./entities/workflow-definition.ts","webpack:///./export-types.ts","webpack:///./methods/action.ts","webpack:///./methods/content-type.ts","webpack:///./methods/utils.ts","webpack:///./plain/as-iterator.ts","webpack:///./plain/checks.ts","webpack:///./plain/common-types.ts","webpack:///./plain/plain-client.ts","webpack:///./plain/wrappers/wrap.ts","webpack:///./upload-http-client.ts","webpack:///../node_modules/call-bind/callBound.js","webpack:///../node_modules/call-bind/index.js","webpack:///../node_modules/contentful-sdk-core/dist/index.es-modules.js","webpack:///../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js","webpack:///../node_modules/function-bind/implementation.js","webpack:///../node_modules/function-bind/index.js","webpack:///../node_modules/get-intrinsic/index.js","webpack:///../node_modules/has-proto/index.js","webpack:///../node_modules/has-symbols/index.js","webpack:///../node_modules/has-symbols/shams.js","webpack:///../node_modules/has/src/index.js","webpack:///../node_modules/lodash.isplainobject/index.js","webpack:///../node_modules/lodash.isstring/index.js","webpack:///../node_modules/object-inspect/index.js","webpack:///../node_modules/p-throttle/index.js","webpack:///../node_modules/side-channel/index.js","webpack:///ignored|/home/circleci/build-and-test/node_modules/object-inspect|./util.inspect","webpack:///../node_modules/axios/lib/adapters/adapters.js","webpack:///../node_modules/axios/lib/adapters/xhr.js","webpack:///../node_modules/axios/lib/axios.js","webpack:///../node_modules/axios/lib/cancel/CancelToken.js","webpack:///../node_modules/axios/lib/cancel/CanceledError.js","webpack:///../node_modules/axios/lib/cancel/isCancel.js","webpack:///../node_modules/axios/lib/core/Axios.js","webpack:///../node_modules/axios/lib/core/AxiosError.js","webpack:///../node_modules/axios/lib/core/AxiosHeaders.js","webpack:///../node_modules/axios/lib/core/InterceptorManager.js","webpack:///../node_modules/axios/lib/core/buildFullPath.js","webpack:///../node_modules/axios/lib/core/dispatchRequest.js","webpack:///../node_modules/axios/lib/core/mergeConfig.js","webpack:///../node_modules/axios/lib/core/settle.js","webpack:///../node_modules/axios/lib/core/transformData.js","webpack:///../node_modules/axios/lib/defaults/index.js","webpack:///../node_modules/axios/lib/defaults/transitional.js","webpack:///../node_modules/axios/lib/env/data.js","webpack:///../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack:///../node_modules/axios/lib/helpers/HttpStatusCode.js","webpack:///../node_modules/axios/lib/helpers/bind.js","webpack:///../node_modules/axios/lib/helpers/buildURL.js","webpack:///../node_modules/axios/lib/helpers/combineURLs.js","webpack:///../node_modules/axios/lib/helpers/cookies.js","webpack:///../node_modules/axios/lib/helpers/formDataToJSON.js","webpack:///../node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///../node_modules/axios/lib/helpers/isAxiosError.js","webpack:///../node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///../node_modules/axios/lib/helpers/null.js","webpack:///../node_modules/axios/lib/helpers/parseHeaders.js","webpack:///../node_modules/axios/lib/helpers/parseProtocol.js","webpack:///../node_modules/axios/lib/helpers/speedometer.js","webpack:///../node_modules/axios/lib/helpers/spread.js","webpack:///../node_modules/axios/lib/helpers/toFormData.js","webpack:///../node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack:///../node_modules/axios/lib/helpers/validator.js","webpack:///../node_modules/axios/lib/platform/browser/classes/Blob.js","webpack:///../node_modules/axios/lib/platform/browser/classes/FormData.js","webpack:///../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack:///../node_modules/axios/lib/platform/browser/index.js","webpack:///../node_modules/axios/lib/platform/common/utils.js","webpack:///../node_modules/axios/lib/platform/index.js","webpack:///../node_modules/axios/lib/utils.js","webpack:///../node_modules/fast-copy/dist/esm/index.mjs","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./contentful-management.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, function() {\nreturn ","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetOrganizationParams, QueryParams } from '../../../common-types'\nimport { CreatePersonalAccessTokenProps, AccessTokenProp } from '../../../entities/access-token'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * Retrieves an access token by its unique token ID for the currently authenticated user.\n *\n * @param {AxiosInstance} http - An Axios HTTP client instance.\n * @param {Object} params - Parameters for the request.\n * @param {string} params.tokenId - The unique token ID of the access token to retrieve.\n * @returns {Promise} A Promise that resolves with the retrieved access token information.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.get({tokenId: 'TestTokenTd'})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const get: RestEndpoint<'AccessToken', 'get'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.get(http, `/users/me/access_tokens/${params.tokenId}`)\n}\n\n/**\n * Retrieves multiple access tokens associated with the currently authenticated user.\n *\n * @param {AxiosInstance} http - An Axios HTTP client instance.\n * @param {QueryParams} params - Query parameters to filter and customize the request.\n * @returns {Promise>} A Promise that resolves with a collection of access token properties.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.getMany()\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\nexport const getMany: RestEndpoint<'AccessToken', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) => {\n return raw.get>(http, '/users/me/access_tokens', {\n params: params.query,\n })\n}\n\n/**\n * Creates a personal access token for the currently authenticated user.\n *\n * @param {AxiosInstance} http - Axios instance for making the HTTP request.\n * @param {Object} _params - Unused parameters (can be an empty object).\n * @param {CreatePersonalAccessTokenProps} rawData - Data for creating the personal access token.\n * @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request.\n * @returns {Promise} A Promise that resolves with the created personal access token.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: '',\n * },\n * { type: 'plain' }\n * )\n * plainClient.createPersonalAccessToken({name: 'Test-Name', scope: ['content_management_manage'], expiresIn: 777596.92})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const createPersonalAccessToken: RestEndpoint<'AccessToken', 'createPersonalAccessToken'> = (\n http: AxiosInstance,\n _params: {},\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, '/users/me/access_tokens', rawData, {\n headers,\n })\n}\n\n/**\n * Revokes an access token associated with the currently authenticated user.\n *\n * @param {AxiosInstance} http - The Axios HTTP client instance.\n * @param {Object} params - The parameters for revoking the access token.\n * @param {string} params.tokenId - The unique identifier of the access token to revoke.\n * @returns {Promise} A Promise that resolves with the updated access token information after revocation.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.revoke({tokenId: 'TestTokenTd'})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const revoke: RestEndpoint<'AccessToken', 'revoke'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null)\n}\n\n/**\n * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization.\n *\n * @param {AxiosInstance} http - The Axios HTTP client instance.\n * @param {GetOrganizationParams & QueryParams} params - Parameters for the request, including organization ID and query parameters.\n * @param {string} params.organizationId - The unique identifier of the organization.\n * @returns {Promise>} A promise that resolves to a collection of access tokens.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.getManyForOrganization({organizationId: 'OrgId'})\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\nexport const getManyForOrganization: RestEndpoint<'AccessToken', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/access_tokens`,\n {\n params: params.query,\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { ApiKeyProps, CreateApiKeyProps } from '../../../entities/api-key'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'ApiKey', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`)\n}\n\nexport const getMany: RestEndpoint<'ApiKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/api_keys`, {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'ApiKey', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/api_keys`, data, { headers })\n}\n\nexport const createWithId: RestEndpoint<'ApiKey', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string },\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'ApiKey', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string },\n rawData: ApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional =\n copy(rawData)\n if ('accessToken' in data) {\n delete data.accessToken\n }\n if ('preview_api_key' in data) {\n delete data.preview_api_key\n }\n if ('policies' in data) {\n delete data.policies\n }\n delete data.sys\n return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'ApiKey', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string }\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { AppAccessTokenProps, CreateAppAccessTokenProps } from '../../../entities/app-access-token'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppInstallationParams } from '../../../common-types'\n\nexport const create: RestEndpoint<'AppAccessToken', 'create'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams,\n data: CreateAppAccessTokenProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`,\n undefined,\n { headers: { Authorization: `Bearer ${data.jwt}` } }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n AppActionCallProps,\n AppActionCallResponse,\n CreateAppActionCallProps,\n} from '../../../entities/app-action-call'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport {\n CreateWithResponseParams,\n GetAppActionCallDetailsParams,\n GetAppActionCallParams,\n} from '../../../common-types'\nimport { isSuccessful, shouldRePoll, waitFor } from '../../../common-utils'\n\nexport const create: RestEndpoint<'AppActionCall', 'create'> = (\n http: AxiosInstance,\n params: GetAppActionCallParams,\n data: CreateAppActionCallProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`,\n data\n )\n}\n\nexport const getCallDetails: RestEndpoint<'AppActionCall', 'getCallDetails'> = (\n http: AxiosInstance,\n params: GetAppActionCallDetailsParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`\n )\n}\n\nconst APP_ACTION_CALL_RETRY_INTERVAL = 2000\nconst APP_ACTION_CALL_RETRIES = 15\n\nasync function callAppActionResult(\n http: AxiosInstance,\n params: CreateWithResponseParams,\n {\n callId,\n }: {\n callId: string\n }\n): Promise {\n let checkCount = 1\n const retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL\n const retries = params.retries || APP_ACTION_CALL_RETRIES\n\n return new Promise((resolve, reject) => {\n const poll = async () => {\n try {\n const result = await getCallDetails(http, { ...params, callId: callId })\n // The lambda failed or returned a 404, so we shouldn't re-poll anymore\n if (result?.response?.statusCode && !isSuccessful(result?.response?.statusCode)) {\n const error = new Error('App action not found or lambda fails')\n reject(error)\n } else if (isSuccessful(result.statusCode)) {\n resolve(result)\n }\n\n // The logs are not ready yet. Continue waiting for them\n else if (shouldRePoll(result.statusCode) && checkCount < retries) {\n checkCount++\n await waitFor(retryInterval)\n poll()\n }\n\n // If the response status code is not successful and is not a status code that should be repolled, reject with an error immediately\n else {\n const error = new Error(\n 'The app action response is taking longer than expected to process.'\n )\n reject(error)\n }\n } catch (error) {\n checkCount++\n\n if (checkCount > retries) {\n reject(new Error('The app action response is taking longer than expected to process.'))\n return\n }\n // If `appActionCalls.getCallDetails` throws, we re-poll as it might mean that the lambda result is not available in the webhook logs yet\n await waitFor(retryInterval)\n poll()\n }\n }\n\n poll()\n })\n}\n\nexport const createWithResponse: RestEndpoint<'AppActionCall', 'createWithResponse'> = async (\n http: AxiosInstance,\n params: CreateWithResponseParams,\n data: CreateAppActionCallProps\n) => {\n const createResponse = await raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`,\n data\n )\n\n const callId = createResponse.sys.id\n\n return callAppActionResult(http, params, { callId })\n}\n","import { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\nimport {\n CollectionProp,\n GetAppActionParams,\n GetAppActionsForEnvParams,\n GetAppDefinitionParams,\n QueryParams,\n} from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppActionProps, CreateAppActionProps } from '../../../entities/app-action'\n\nconst getBaseUrl = (params: GetAppDefinitionParams) =>\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`\n\nconst getAppActionUrl = (params: GetAppActionParams) =>\n `${getBaseUrl(params)}/${params.appActionId}`\n\nconst getAppActionsEnvUrl = (params: GetAppActionsForEnvParams) => {\n if (params.environmentId) {\n return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`\n }\n return `/spaces/${params.spaceId}/actions`\n}\n\nexport const get: RestEndpoint<'AppAction', 'get'> = (\n http: AxiosInstance,\n params: GetAppActionParams\n) => {\n return raw.get(http, getAppActionUrl(params))\n}\n\nexport const getMany: RestEndpoint<'AppAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getManyForEnvironment: RestEndpoint<'AppAction', 'getManyForEnvironment'> = (\n http: AxiosInstance,\n params: GetAppActionsForEnvParams & QueryParams\n) => {\n return raw.get>(http, getAppActionsEnvUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const del: RestEndpoint<'AppAction', 'delete'> = (\n http: AxiosInstance,\n params: GetAppActionParams\n) => {\n return raw.del(http, getAppActionUrl(params))\n}\n\nexport const create: RestEndpoint<'AppAction', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppActionProps\n) => {\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'AppAction', 'update'> = (\n http: AxiosInstance,\n params: GetAppActionParams,\n data: CreateAppActionProps\n) => {\n return raw.put(http, getAppActionUrl(params), data)\n}\n","import { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\nimport {\n CollectionProp,\n GetAppBundleParams,\n GetAppDefinitionParams,\n QueryParams,\n} from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppBundleProps, CreateAppBundleProps } from '../../../entities/app-bundle'\n\nconst getBaseUrl = (params: GetAppDefinitionParams) =>\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`\n\nconst getAppBundleUrl = (params: GetAppBundleParams) =>\n `${getBaseUrl(params)}/${params.appBundleId}`\n\nexport const get: RestEndpoint<'AppBundle', 'get'> = (\n http: AxiosInstance,\n params: GetAppBundleParams\n) => {\n return raw.get(http, getAppBundleUrl(params))\n}\n\nexport const getMany: RestEndpoint<'AppBundle', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const del: RestEndpoint<'AppBundle', 'delete'> = (\n http: AxiosInstance,\n params: GetAppBundleParams\n) => {\n return raw.del(http, getAppBundleUrl(params))\n}\n\nexport const create: RestEndpoint<'AppBundle', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n payload: CreateAppBundleProps\n) => {\n const { appUploadId, comment, actions, functions } = payload\n\n const data = {\n upload: {\n sys: {\n type: 'Link',\n linkType: 'AppUpload',\n id: appUploadId,\n },\n },\n comment,\n actions,\n functions,\n }\n\n return raw.post(http, getBaseUrl(params), data)\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport copy from 'fast-copy'\nimport { normalizeSelect, normalizeSpaceId } from './utils'\nimport {\n GetAppDefinitionParams,\n GetOrganizationParams,\n QueryParams,\n GetAppInstallationsForOrgParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport {\n AppDefinitionProps,\n CreateAppDefinitionProps,\n AppInstallationsForOrganizationProps,\n} from '../../../entities/app-definition'\nimport { RestEndpoint } from '../types'\nimport { SetOptional } from 'type-fest'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/app_definitions`\n\nexport const getAppDefinitionUrl = (params: GetAppDefinitionParams) =>\n getBaseUrl(params) + `/${params.appDefinitionId}`\n\nconst getBaseUrlForOrgInstallations = (params: GetAppInstallationsForOrgParams) =>\n `/app_definitions/${params.appDefinitionId}/app_installations`\n\nexport const get: RestEndpoint<'AppDefinition', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get(http, getAppDefinitionUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'AppDefinition', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'AppDefinition', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n rawData: CreateAppDefinitionProps\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'AppDefinition', 'update'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n rawData: AppDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getAppDefinitionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'AppDefinition', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(http, getAppDefinitionUrl(params))\n}\n\nexport const getInstallationsForOrg: RestEndpoint<'AppDefinition', 'getInstallationsForOrg'> = (\n http: AxiosInstance,\n params: GetAppInstallationsForOrgParams & PaginationQueryParams\n) => {\n return raw.get(\n http,\n getBaseUrlForOrgInstallations(params),\n {\n params: {\n ...normalizeSpaceId(normalizeSelect(params.query)),\n 'sys.organization.sys.id[in]': params.organizationId,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { AppDetailsProps, CreateAppDetailsProps } from '../../../entities/app-details'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppDetails', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`\n )\n}\n\nexport const upsert: RestEndpoint<'AppDetails', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppDetailsProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppDetails', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppEventSubscriptionProps,\n AppEventSubscriptionProps,\n} from '../../../entities/app-event-subscription'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppEventSubscription', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`\n )\n}\n\nexport const upsert: RestEndpoint<'AppEventSubscription', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppEventSubscriptionProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppEventSubscription', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect, normalizeSpaceId } from './utils'\nimport copy from 'fast-copy'\nimport {\n GetAppInstallationParams,\n GetSpaceEnvironmentParams,\n PaginationQueryParams,\n GetAppInstallationsForOrgParams,\n SpaceQueryParams,\n} from '../../../common-types'\nimport {\n AppInstallationProps,\n CreateAppInstallationProps,\n} from '../../../entities/app-installation'\nimport { AppInstallationsForOrganizationProps } from '../../../entities/app-definition'\nimport { CollectionProp } from '../../../common-types'\nimport { RestEndpoint } from '../types'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`\n\nconst getBaseUrlForOrgInstallations = (params: GetAppInstallationsForOrgParams) =>\n `/app_definitions/${params.appDefinitionId}/app_installations`\n\nexport const getAppInstallationUrl = (params: GetAppInstallationParams) =>\n getBaseUrl(params) + `/${params.appDefinitionId}`\n\nexport const get: RestEndpoint<'AppInstallation', 'get'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams & PaginationQueryParams\n) => {\n return raw.get(http, getAppInstallationUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'AppInstallation', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & PaginationQueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const upsert: RestEndpoint<'AppInstallation', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams & { acceptAllTerms?: boolean },\n rawData: CreateAppInstallationProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getAppInstallationUrl(params), data, {\n headers: {\n ...headers,\n ...(params.acceptAllTerms && {\n 'X-Contentful-Marketplace':\n 'i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy',\n }),\n },\n })\n}\n\nexport const del: RestEndpoint<'AppInstallation', 'delete'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams\n) => {\n return raw.del(http, getAppInstallationUrl(params))\n}\n\nexport const getForOrganization: RestEndpoint<'AppInstallation', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetAppInstallationsForOrgParams & SpaceQueryParams\n) => {\n return raw.get(\n http,\n getBaseUrlForOrgInstallations(params),\n {\n params: {\n ...normalizeSpaceId(normalizeSelect(params.query)),\n 'sys.organization.sys.id[in]': params.organizationId,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CreateAppKeyProps, AppKeyProps } from '../../../entities/app-key'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { CollectionProp, GetAppDefinitionParams, GetAppKeyParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppKey', 'get'> = (\n http: AxiosInstance,\n params: GetAppKeyParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`\n )\n}\n\nexport const getMany: RestEndpoint<'AppKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`\n )\n}\n\nexport const create: RestEndpoint<'AppKey', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppKeyProps\n) => {\n return raw.post(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppKey', 'delete'> = (\n http: AxiosInstance,\n params: GetAppKeyParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppSignedRequestProps,\n AppSignedRequestProps,\n} from '../../../entities/app-signed-request'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppInstallationParams } from '../../../common-types'\n\nexport const create: RestEndpoint<'AppSignedRequest', 'create'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams,\n data: CreateAppSignedRequestProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`,\n data\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppSigningSecretProps,\n AppSigningSecretProps,\n} from '../../../entities/app-signing-secret'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppSigningSecret', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`\n )\n}\n\nexport const upsert: RestEndpoint<'AppSigningSecret', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppSigningSecretProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppSigningSecret', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport * as raw from './raw'\nimport { GetAppUploadParams, GetOrganizationParams } from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppUploadProps } from '../../../entities/app-upload'\nimport { getUploadHttpClient } from '../../../upload-http-client'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/app_uploads`\n\nconst getAppUploadUrl = (params: GetAppUploadParams) =>\n `${getBaseUrl(params)}/${params.appUploadId}`\n\nexport const get: RestEndpoint<'AppUpload', 'get'> = (\n http: AxiosInstance,\n params: GetAppUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n return raw.get(httpUpload, getAppUploadUrl(params))\n}\n\nexport const del: RestEndpoint<'AppUpload', 'delete'> = (\n http: AxiosInstance,\n params: GetAppUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n return raw.del(httpUpload, getAppUploadUrl(params))\n}\n\nexport const create: RestEndpoint<'AppUpload', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n payload: { file: string | ArrayBuffer | Stream }\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n const { file } = payload\n\n return raw.post(httpUpload, getBaseUrl(params), file, {\n headers: {\n 'Content-Type': 'application/octet-stream',\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CreateAssetKeyProps, AssetKeyProps } from '../../../entities/asset-key'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetSpaceEnvironmentParams } from '../../../common-types'\n\nconst ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60\n\nexport class ValidationError extends Error {\n constructor(name: string, message: string) {\n super(`Invalid \"${name}\" provided, ` + message)\n this.name = 'ValidationError'\n }\n}\n\ninterface ValidateTimestampOptions {\n maximum?: number\n now?: number\n}\n\nconst validateTimestamp = (name: string, timestamp: number, options: ValidateTimestampOptions) => {\n options = options || {}\n\n if (typeof timestamp !== 'number') {\n throw new ValidationError(\n name,\n `only numeric values are allowed for timestamps, provided type was \"${typeof timestamp}\"`\n )\n }\n if (options.maximum && timestamp > options.maximum) {\n throw new ValidationError(\n name,\n `value (${timestamp}) cannot be further in the future than expected maximum (${options.maximum})`\n )\n }\n if (options.now && timestamp < options.now) {\n throw new ValidationError(\n name,\n `value (${timestamp}) cannot be in the past, current time was ${options.now}`\n )\n }\n}\n\nexport const create: RestEndpoint<'AssetKey', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: CreateAssetKeyProps\n) => {\n const expiresAt = data.expiresAt\n const now = Math.floor(Date.now() / 1000)\n const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME\n validateTimestamp('expiresAt', expiresAt, { maximum: currentMaxLifetime, now })\n\n const postParams = { expiresAt }\n\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/asset_keys`,\n postParams\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { errorHandler } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from '../../../common-types'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from '../../../entities/asset'\nimport { getUploadHttpClient } from '../../../upload-http-client'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { create as createUpload } from './upload'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Asset', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string } & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const getPublished: RestEndpoint<'Asset', 'getPublished'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const getMany: RestEndpoint<'Asset', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const update: RestEndpoint<'Asset', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: AssetProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Asset', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`\n )\n}\n\nexport const publish: RestEndpoint<'Asset', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: AssetProps\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Asset', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`\n )\n}\n\nexport const archive: RestEndpoint<'Asset', 'archive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`\n )\n}\n\nexport const unarchive: RestEndpoint<'Asset', 'unarchive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`\n )\n}\n\nexport const create: RestEndpoint<'Asset', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateAssetProps\n) => {\n const data = copy(rawData)\n\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`,\n data\n )\n}\n\nexport const createWithId: RestEndpoint<'Asset', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: CreateAssetProps\n) => {\n const data = copy(rawData)\n\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n data\n )\n}\n\nexport const createFromFiles: RestEndpoint<'Asset', 'createFromFiles'> = async (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { uploadTimeout?: number },\n data: Omit\n) => {\n const httpUpload = getUploadHttpClient(http, { uploadTimeout: params.uploadTimeout })\n\n const { file } = data.fields\n return Promise.all(\n Object.keys(file).map(async (locale) => {\n const { contentType, fileName } = file[locale]\n\n return createUpload(httpUpload, params, file[locale]).then((upload) => {\n return {\n [locale]: {\n contentType,\n fileName,\n uploadFrom: {\n sys: {\n type: 'Link',\n linkType: 'Upload',\n id: upload.sys.id,\n },\n },\n },\n }\n })\n })\n )\n .then((uploads) => {\n const file = uploads.reduce((fieldsData, upload) => ({ ...fieldsData, ...upload }), {})\n const asset = {\n ...data,\n fields: {\n ...data.fields,\n file,\n },\n }\n return create(http, params, asset)\n })\n .catch(errorHandler)\n}\n\n/**\n * Asset processing\n */\n\nconst ASSET_PROCESSING_CHECK_WAIT = 3000\nconst ASSET_PROCESSING_CHECK_RETRIES = 10\n\nasync function checkIfAssetHasUrl(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n {\n resolve,\n reject,\n locale,\n processingCheckWait = ASSET_PROCESSING_CHECK_WAIT,\n processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES,\n checkCount = 0,\n }: {\n resolve: (asset: AssetProps) => unknown\n reject: (err: Error) => unknown\n locale: string\n checkCount?: number\n } & AssetProcessingForLocale\n) {\n return get(http, params).then((asset) => {\n if (asset.fields.file[locale].url) {\n resolve(asset)\n } else if (checkCount === processingCheckRetries) {\n const error = new Error()\n error.name = 'AssetProcessingTimeout'\n error.message = 'Asset is taking longer then expected to process.'\n reject(error)\n } else {\n checkCount++\n setTimeout(\n () =>\n checkIfAssetHasUrl(http, params, {\n resolve: resolve,\n reject: reject,\n locale: locale,\n checkCount: checkCount,\n processingCheckWait,\n processingCheckRetries,\n }),\n processingCheckWait\n )\n }\n })\n}\n\nexport const processForLocale: RestEndpoint<'Asset', 'processForLocale'> = async (\n http: AxiosInstance,\n {\n asset,\n locale,\n options: { processingCheckRetries, processingCheckWait } = {},\n ...params\n }: GetSpaceEnvironmentParams & {\n asset: AssetProps\n locale: string\n options?: AssetProcessingForLocale\n }\n) => {\n return raw\n .put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${asset.sys.id}/files/${locale}/process`,\n null,\n {\n headers: {\n 'X-Contentful-Version': asset.sys.version,\n },\n }\n )\n .then(() => {\n return new Promise((resolve, reject) =>\n checkIfAssetHasUrl(\n http,\n {\n spaceId: params.spaceId,\n environmentId: params.environmentId,\n assetId: asset.sys.id,\n },\n {\n resolve,\n reject,\n locale,\n processingCheckWait,\n processingCheckRetries,\n }\n )\n )\n })\n}\n\nexport const processForAllLocales: RestEndpoint<'Asset', 'processForAllLocales'> = async (\n http: AxiosInstance,\n {\n asset,\n options = {},\n ...params\n }: GetSpaceEnvironmentParams & { asset: AssetProps; options?: AssetProcessingForLocale }\n) => {\n const locales = Object.keys(asset.fields.file || {})\n\n let mostUpToDateAssetVersion: AssetProps = asset\n\n // Let all the locales process\n // Since they all resolve at different times,\n // we need to pick the last resolved value\n // to reflect the most recent state\n const allProcessingLocales = locales.map((locale) =>\n processForLocale(http, { ...params, asset, locale, options }).then((result) => {\n // Side effect of always setting the most up to date asset version\n // The last one to call this will be the last one that finished\n // and thus the most up to date\n mostUpToDateAssetVersion = result\n })\n )\n\n return Promise.all(allProcessingLocales).then(() => mostUpToDateAssetVersion)\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetBulkActionParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from '../../../entities/bulk-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'BulkAction', 'get'> = (\n http: AxiosInstance,\n params: GetBulkActionParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`\n )\n}\n\nexport const publish: RestEndpoint<'BulkAction', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionPublishPayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`,\n payload\n )\n}\n\nexport const unpublish: RestEndpoint<'BulkAction', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionUnpublishPayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`,\n payload\n )\n}\n\nexport const validate: RestEndpoint<'BulkAction', 'validate'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionValidatePayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`,\n payload\n )\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEntryParams,\n GetCommentParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateCommentParams,\n CreateCommentProps,\n DeleteCommentParams,\n CommentProps,\n UpdateCommentProps,\n GetManyCommentsParams,\n PlainTextBodyFormat,\n RichTextBodyFormat,\n RichTextCommentBodyPayload,\n} from '../../../entities/comment'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst VERSION_HEADER = 'X-Contentful-Version'\nconst BODY_FORMAT_HEADER = 'x-contentful-comment-body-format'\nconst PARENT_ENTITY_REFERENCE_HEADER = 'x-contentful-parent-entity-reference'\nconst PARENT_COMMENT_ID_HEADER = 'x-contentful-parent-id'\n\nconst getSpaceEnvBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}`\nconst getEntityCommentUrl = (params: GetCommentParams) =>\n `${getEntityBaseUrl(params)}/${params.commentId}`\n\nfunction getParentPlural(parentEntityType: 'ContentType' | 'Entry' | 'Workflow') {\n switch (parentEntityType) {\n case 'ContentType':\n return 'content_types'\n case 'Entry':\n return 'entries'\n case 'Workflow':\n return 'workflows'\n }\n}\n\n/**\n * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version\n * to be set as part of the URL path. Workflow comments only support `create` (with\n * versionized URL) and `getMany` (without version). The API might support more methods\n * in the future with new use cases being discovered.\n */\nconst getEntityBaseUrl = (paramsOrg: GetEntryParams | GetManyCommentsParams) => {\n const params: GetManyCommentsParams =\n 'entryId' in paramsOrg\n ? {\n spaceId: paramsOrg.spaceId,\n environmentId: paramsOrg.environmentId,\n parentEntityType: 'Entry' as const,\n parentEntityId: paramsOrg.entryId,\n }\n : paramsOrg\n\n const { parentEntityId, parentEntityType } = params\n const parentPlural = getParentPlural(parentEntityType)\n const versionPath =\n 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : ''\n return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`\n}\n\nexport const get: RestEndpoint<'Comment', 'get'> = (\n http: AxiosInstance,\n params: GetCommentParams & (PlainTextBodyFormat | RichTextBodyFormat)\n) =>\n raw.get(http, getEntityCommentUrl(params), {\n headers:\n params.bodyFormat === 'rich-text'\n ? {\n [BODY_FORMAT_HEADER]: params.bodyFormat,\n }\n : {},\n })\n\nexport const getMany: RestEndpoint<'Comment', 'getMany'> = (\n http: AxiosInstance,\n params: GetManyCommentsParams & QueryParams & (PlainTextBodyFormat | RichTextBodyFormat)\n) =>\n raw.get>(http, getEntityBaseUrl(params), {\n params: normalizeSelect(params.query),\n headers:\n params.bodyFormat === 'rich-text'\n ? {\n [BODY_FORMAT_HEADER]: params.bodyFormat,\n }\n : {},\n })\n\nexport const create: RestEndpoint<'Comment', 'create'> = (\n http: AxiosInstance,\n params: CreateCommentParams,\n rawData: CreateCommentProps | RichTextCommentBodyPayload\n) => {\n const data = copy(rawData)\n return raw.post(http, getEntityBaseUrl(params), data, {\n headers: {\n ...(typeof rawData.body !== 'string' ? { [BODY_FORMAT_HEADER]: 'rich-text' } : {}),\n ...('parentEntityReference' in params && params.parentEntityReference\n ? { [PARENT_ENTITY_REFERENCE_HEADER]: params.parentEntityReference }\n : {}),\n ...(params.parentCommentId ? { [PARENT_COMMENT_ID_HEADER]: params.parentCommentId } : {}),\n },\n })\n}\n\nexport const update: RestEndpoint<'Comment', 'update'> = (\n http: AxiosInstance,\n params: GetCommentParams,\n rawData: UpdateCommentProps | (Omit & RichTextCommentBodyPayload),\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityCommentUrl(params), data, {\n headers: {\n [VERSION_HEADER]: rawData.sys.version ?? 0,\n ...(typeof rawData.body !== 'string' ? { [BODY_FORMAT_HEADER]: 'rich-text' } : {}),\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Comment', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteCommentParams\n) => {\n return raw.del(http, getEntityCommentUrl(params), {\n headers: { [VERSION_HEADER]: version },\n })\n}\n\n// Add a deprecation notice. But `getAll` may never be removed for app compatibility reasons.\n/**\n * @deprecated use `getMany` instead.\n */\nexport const getAll: RestEndpoint<'Comment', 'getAll'> = getMany\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetContentTypeParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport { ContentTypeProps, CreateContentTypeProps } from '../../../entities/content-type'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`\n\nconst getContentTypeUrl = (params: GetContentTypeParams) =>\n getBaseUrl(params) + `/${params.contentTypeId}`\n\nexport const get: RestEndpoint<'ContentType', 'get'> = (\n http: AxiosInstance,\n params: GetContentTypeParams & QueryParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(http, getContentTypeUrl(params), {\n params: normalizeSelect(params.query),\n headers,\n })\n}\n\nexport const getMany: RestEndpoint<'ContentType', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n headers,\n })\n}\n\nexport const create: RestEndpoint<'ContentType', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data, { headers })\n}\n\nexport const createWithId: RestEndpoint<'ContentType', 'createWithId'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: CreateContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getContentTypeUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'ContentType', 'update'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getContentTypeUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'ContentType', 'delete'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getContentTypeUrl(params), { headers })\n}\n\nexport const publish: RestEndpoint<'ContentType', 'publish'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, getContentTypeUrl(params) + '/published', null, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version,\n ...headers,\n },\n })\n}\n\nexport const unpublish: RestEndpoint<'ContentType', 'unpublish'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getContentTypeUrl(params) + '/published', { headers })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEditorInterfaceParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport { EditorInterfaceProps } from '../../../entities/editor-interface'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetEditorInterfaceParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`\n\nexport const get: RestEndpoint<'EditorInterface', 'get'> = (\n http: AxiosInstance,\n params: GetEditorInterfaceParams\n) => {\n return raw.get(http, getBaseUrl(params))\n}\n\nexport const getMany: RestEndpoint<'EditorInterface', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`\n )\n}\n\nexport const update: RestEndpoint<'EditorInterface', 'update'> = (\n http: AxiosInstance,\n params: GetEditorInterfaceParams,\n rawData: EditorInterfaceProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getBaseUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { OpPatch } from 'json-patch'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n KeyValueMap,\n QueryParams,\n} from '../../../common-types'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from '../../../entities/entry'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Entry', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string } & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const getPublished: RestEndpoint<'Entry', 'getPublished'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const getMany: RestEndpoint<'Entry', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const patch: RestEndpoint<'Entry', 'patch'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string; version: number },\n data: OpPatch[],\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.patch>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n 'Content-Type': 'application/json-patch+json',\n ...headers,\n },\n }\n )\n}\n\nexport const update: RestEndpoint<'Entry', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string },\n rawData: EntryProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Entry', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`\n )\n}\n\nexport const publish: RestEndpoint<'Entry', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string },\n rawData: EntryProps\n) => {\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Entry', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`\n )\n}\n\nexport const archive: RestEndpoint<'Entry', 'archive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`\n )\n}\n\nexport const unarchive: RestEndpoint<'Entry', 'unarchive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`\n )\n}\n\nexport const create: RestEndpoint<'Entry', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { contentTypeId: string },\n rawData: CreateEntryProps\n) => {\n const data = copy(rawData)\n\n return raw.post>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`,\n data,\n {\n headers: {\n 'X-Contentful-Content-Type': params.contentTypeId,\n },\n }\n )\n}\n\nexport const createWithId: RestEndpoint<'Entry', 'createWithId'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string },\n rawData: CreateEntryProps\n) => {\n const data = copy(rawData)\n\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Content-Type': params.contentTypeId,\n },\n }\n )\n}\n\nexport const references: RestEndpoint<'Entry', 'references'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n): Promise => {\n const { spaceId, environmentId, entryId, include } = params\n\n const level = include || 2\n\n return raw.get(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvAliasParams,\n GetSpaceParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport {\n CreateEnvironmentAliasProps,\n EnvironmentAliasProps,\n} from '../../../entities/environment-alias'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * Urls\n */\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/environment_aliases`\n\nconst getEnvironmentAliasUrl = (params: GetSpaceEnvAliasParams) =>\n getBaseUrl(params) + `/${params.environmentAliasId}`\n\n/**\n * Endpoints\n */\n\nexport const get: RestEndpoint<'EnvironmentAlias', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams\n) => {\n return raw.get(http, getEnvironmentAliasUrl(params))\n}\n\nexport const getMany: RestEndpoint<'EnvironmentAlias', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & PaginationQueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const createWithId: RestEndpoint<'EnvironmentAlias', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams,\n rawData: CreateEnvironmentAliasProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.put(http, getEnvironmentAliasUrl(params), data, {\n headers: headers,\n })\n}\n\nexport const update: RestEndpoint<'EnvironmentAlias', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams,\n rawData: EnvironmentAliasProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getEnvironmentAliasUrl(params), data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del: RestEndpoint<'EnvironmentAlias', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams\n) => {\n return raw.del(http, getEnvironmentAliasUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst apiPath = (organizationId: string, ...pathSegments: (number | string)[]) =>\n `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/')\n\nexport const getMany: RestEndpoint<'EnvironmentTemplateInstallation', 'getMany'> = (\n http,\n { organizationId, environmentTemplateId, spaceId, environmentId, ...paginationProps },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {\n params: {\n ...paginationProps,\n ...(environmentId && { 'environment.sys.id': environmentId }),\n ...(spaceId && { 'space.sys.id': spaceId }),\n },\n headers,\n })\n\nexport const getForEnvironment: RestEndpoint<\n 'EnvironmentTemplateInstallation',\n 'getForEnvironment'\n> = (\n http,\n { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`,\n {\n params: {\n ...(installationId && { 'sys.id': installationId }),\n ...paginationProps,\n },\n headers,\n }\n )\n","import copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { EnvironmentTemplateProps } from '../../../entities/environment-template'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { RawAxiosRequestHeaders } from 'axios'\n\nconst apiPath = (organizationId: string, ...pathSegments: (number | string)[]) =>\n `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/')\n\nexport const get: RestEndpoint<'EnvironmentTemplate', 'get'> = (\n http,\n { organizationId, environmentTemplateId, version, query = {} },\n headers?: RawAxiosRequestHeaders\n) =>\n version\n ? raw.get(http, apiPath(organizationId, environmentTemplateId, 'versions', version), {\n params: query,\n headers,\n })\n : raw.get(http, apiPath(organizationId, environmentTemplateId), {\n params: query,\n headers,\n })\n\nexport const getMany: RestEndpoint<'EnvironmentTemplate', 'getMany'> = (\n http,\n { organizationId, query = {} },\n headers?: RawAxiosRequestHeaders\n) => raw.get(http, apiPath(organizationId), { params: query, headers })\n\nexport const create: RestEndpoint<'EnvironmentTemplate', 'create'> = (\n http,\n { organizationId },\n payload,\n headers?: RawAxiosRequestHeaders\n) => raw.post(http, apiPath(organizationId), payload, { headers })\n\nexport const update: RestEndpoint<'EnvironmentTemplate', 'update'> = (\n http,\n { organizationId, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(payload)\n delete data.sys\n\n return raw.put(http, apiPath(organizationId, environmentTemplateId), data, {\n headers: {\n 'X-Contentful-Version': payload.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const versionUpdate: RestEndpoint<'EnvironmentTemplate', 'versionUpdate'> = (\n http,\n { organizationId, version, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.patch(http, apiPath(organizationId, environmentTemplateId, 'versions', version), payload, {\n headers,\n })\n\nexport const del: RestEndpoint<'EnvironmentTemplate', 'delete'> = (\n http,\n { organizationId, environmentTemplateId },\n headers?: RawAxiosRequestHeaders\n) => raw.del(http, apiPath(organizationId, environmentTemplateId), { headers })\n\nexport const versions: RestEndpoint<'EnvironmentTemplate', 'versions'> = (\n http,\n { organizationId, environmentTemplateId, query = {} },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, apiPath(organizationId, environmentTemplateId, 'versions'), {\n params: query,\n headers,\n })\n\nexport const validate: RestEndpoint<'EnvironmentTemplate', 'validate'> = (\n http,\n { spaceId, environmentId, environmentTemplateId, version },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.put(\n http,\n version\n ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`\n : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`,\n payload,\n { headers }\n )\n\nexport const install: RestEndpoint<'EnvironmentTemplate', 'install'> = (\n http,\n { spaceId, environmentId, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.post(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`,\n payload,\n { headers }\n )\n\nexport const disconnect: RestEndpoint<'EnvironmentTemplate', 'disconnect'> = (\n http,\n { spaceId, environmentId, environmentTemplateId },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.del(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`,\n { headers }\n )\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport { CreateEnvironmentProps, EnvironmentProps } from '../../../entities/environment'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Environment', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`\n )\n}\n\nexport const getMany: RestEndpoint<'Environment', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & PaginationQueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/environments`, {\n params: params.query,\n })\n}\n\nexport const update: RestEndpoint<'Environment', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: EnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`,\n data,\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Environment', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`)\n}\n\nexport const create: RestEndpoint<'Environment', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: CreateEnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, `/spaces/${params.spaceId}/environments`, data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'Environment', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { sourceEnvironmentId?: string },\n rawData: CreateEnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`,\n data,\n {\n headers: {\n ...headers,\n ...(params.sourceEnvironmentId\n ? {\n 'X-Contentful-Source-Environment': params.sourceEnvironmentId,\n }\n : {}),\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetExtensionParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateExtensionProps, ExtensionProps } from '../../../entities/extension'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`\n\nexport const getExtensionUrl = (params: GetExtensionParams) =>\n getBaseUrl(params) + `/${params.extensionId}`\n\nexport const get: RestEndpoint<'Extension', 'get'> = (\n http: AxiosInstance,\n params: GetExtensionParams & QueryParams\n) => {\n return raw.get(http, getExtensionUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'Extension', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Extension', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const createWithId: RestEndpoint<'Extension', 'createWithId'> = (\n http: AxiosInstance,\n params: GetExtensionParams,\n rawData: CreateExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getExtensionUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'Extension', 'update'> = async (\n http: AxiosInstance,\n params: GetExtensionParams,\n rawData: ExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getExtensionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Extension', 'delete'> = (\n http: AxiosInstance,\n params: GetExtensionParams\n) => {\n return raw.del(http, getExtensionUrl(params))\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance, RawAxiosRequestConfig } from 'axios'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Http', 'get'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.get(http, url, config)\n}\n\nexport const post: RestEndpoint<'Http', 'post'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.post(http, url, payload, config)\n}\n\nexport const put: RestEndpoint<'Http', 'put'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.put(http, url, payload, config)\n}\n\nexport const patch: RestEndpoint<'Http', 'patch'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.patch(http, url, payload, config)\n}\n\nexport const del: RestEndpoint<'Http', 'delete'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.del(http, url, config)\n}\n\nexport const request: RestEndpoint<'Http', 'request'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.http(http, url, config)\n}\n","import * as ApiKey from './api-key'\nimport * as AppAction from './app-action'\nimport * as AppActionCall from './app-action-call'\nimport * as AppBundle from './app-bundle'\nimport * as AppDefinition from './app-definition'\nimport * as AppDetails from './app-details'\nimport * as AppInstallation from './app-installation'\nimport * as AppSignedRequest from './app-signed-request'\nimport * as AppSigningSecret from './app-signing-secret'\nimport * as AppEventSubscription from './app-event-subscription'\nimport * as AppKey from './app-key'\nimport * as AppAccessToken from './app-access-token'\nimport * as AppUpload from './app-upload'\nimport * as Asset from './asset'\nimport * as AssetKey from './asset-key'\nimport * as BulkAction from './bulk-action'\nimport * as Comment from './comment'\nimport * as ContentType from './content-type'\nimport * as EditorInterface from './editor-interface'\nimport * as Entry from './entry'\nimport * as Environment from './environment'\nimport * as EnvironmentAlias from './environment-alias'\nimport * as EnvironmentTemplate from './environment-template'\nimport * as EnvironmentTemplateInstallation from './environment-template-installation'\nimport * as Extension from './extension'\nimport * as Http from './http'\nimport * as Locale from './locale'\nimport * as Organization from './organization'\nimport * as OrganizationInvitation from './organization-invitation'\nimport * as OrganizationMembership from './organization-membership'\nimport * as PersonalAccessToken from './personal-access-token'\nimport * as AccessToken from './access-token'\nimport * as PreviewApiKey from './preview-api-key'\nimport * as Release from './release'\nimport * as ReleaseAction from './release-action'\nimport * as Role from './role'\nimport * as ScheduledAction from './scheduled-action'\nimport * as Snapshot from './snapshot'\nimport * as Space from './space'\nimport * as SpaceMember from './space-member'\nimport * as SpaceMembership from './space-membership'\nimport * as Tag from './tag'\nimport * as Task from './task'\nimport * as Team from './team'\nimport * as TeamMembership from './team-membership'\nimport * as TeamSpaceMembership from './team-space-membership'\nimport * as UIConfig from './ui-config'\nimport * as Upload from './upload'\nimport * as Usage from './usage'\nimport * as User from './user'\nimport * as UserUIConfig from './user-ui-config'\nimport * as Webhook from './webhook'\nimport * as Workflow from './workflow'\nimport * as WorkflowDefinition from './workflow-definition'\nimport * as WorkflowsChangelog from './workflows-changelog'\n\nexport default {\n ApiKey,\n AppAction,\n AppActionCall,\n AppBundle,\n AppDefinition,\n AppInstallation,\n AppUpload,\n AppSignedRequest,\n AppSigningSecret,\n AppEventSubscription,\n AppKey,\n AppAccessToken,\n AppDetails,\n Asset,\n AssetKey,\n BulkAction,\n Comment,\n ContentType,\n EditorInterface,\n Entry,\n Environment,\n EnvironmentAlias,\n EnvironmentTemplate,\n EnvironmentTemplateInstallation,\n Extension,\n Http,\n Locale,\n Organization,\n OrganizationInvitation,\n OrganizationMembership,\n PersonalAccessToken,\n AccessToken,\n PreviewApiKey,\n Release,\n ReleaseAction,\n Role,\n ScheduledAction,\n Snapshot,\n Space,\n SpaceMember,\n SpaceMembership,\n Tag,\n Task,\n Team,\n TeamMembership,\n TeamSpaceMembership,\n UIConfig,\n Upload,\n Usage,\n User,\n UserUIConfig,\n Webhook,\n WorkflowDefinition,\n Workflow,\n WorkflowsChangelog,\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from '../../../common-types'\nimport { CreateLocaleProps, LocaleProps } from '../../../entities/locale'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Locale', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`\n )\n}\n\nexport const getMany: RestEndpoint<'Locale', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`,\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const create: RestEndpoint<'Locale', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: CreateLocaleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`,\n data,\n {\n headers,\n }\n )\n}\n\nexport const update: RestEndpoint<'Locale', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string },\n rawData: LocaleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n delete data.default // we should not send this back\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`,\n data,\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Locale', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from '../../../entities/organization-invitation'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst OrganizationUserManagementAlphaHeaders = {\n 'x-contentful-enable-alpha-feature': 'organization-user-management-api',\n}\n\nconst InvitationAlphaHeaders = {\n 'x-contentful-enable-alpha-feature': 'pending-org-membership',\n}\n\nexport const create: RestEndpoint<'OrganizationInvitation', 'create'> = (\n http: AxiosInstance,\n params: { organizationId: string },\n data: CreateOrganizationInvitationProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(\n http,\n `/organizations/${params.organizationId}/invitations`,\n data,\n {\n headers: {\n ...InvitationAlphaHeaders,\n ...headers,\n },\n }\n )\n}\n\nexport const get: RestEndpoint<'OrganizationInvitation', 'get'> = (\n http: AxiosInstance,\n params: { organizationId: string; invitationId: string },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/invitations/${params.invitationId}`,\n {\n headers: {\n ...OrganizationUserManagementAlphaHeaders,\n ...headers,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationMembershipParams,\n GetOrganizationParams,\n QueryParams,\n} from '../../../common-types'\nimport { OrganizationMembershipProps } from '../../../entities/organization-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/organization_memberships`\n\nconst getEntityUrl = (params: GetOrganizationMembershipParams) =>\n `${getBaseUrl(params)}/${params.organizationMembershipId}`\n\nexport const get: RestEndpoint<'OrganizationMembership', 'get'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams\n) => {\n return raw.get(http, getEntityUrl(params))\n}\n\nexport const getMany: RestEndpoint<'OrganizationMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const update: RestEndpoint<'OrganizationMembership', 'update'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams,\n rawData: OrganizationMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n const { role } = data\n return raw.put(\n http,\n getEntityUrl(params),\n { role },\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'OrganizationMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetOrganizationParams, PaginationQueryParams } from '../../../common-types'\nimport { OrganizationProp } from '../../../entities/organization'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getMany: RestEndpoint<'Organization', 'getMany'> = (\n http: AxiosInstance,\n params?: PaginationQueryParams\n) => {\n return raw.get>(http, `/organizations`, {\n params: params?.query,\n })\n}\n\nexport const get: RestEndpoint<'Organization', 'get'> = (\n http: AxiosInstance,\n params: GetOrganizationParams\n) => {\n return getMany(http, { query: { limit: 100 } }).then((data) => {\n const org = data.items.find((org) => org.sys.id === params.organizationId)\n if (!org) {\n const error = new Error(\n `No organization was found with the ID ${\n params.organizationId\n } instead got ${JSON.stringify(data)}`\n )\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error.status = 404\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error.statusText = 'Not Found'\n return Promise.reject(error)\n }\n return org\n })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, QueryParams } from '../../../common-types'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from '../../../entities/personal-access-token'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * @deprecated use `access-token.get` instead `personal-access-token.get`\n */\nexport const get: RestEndpoint<'PersonalAccessToken', 'get'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.get(http, `/users/me/access_tokens/${params.tokenId}`)\n}\n\n/**\n * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`\n */\nexport const getMany: RestEndpoint<'PersonalAccessToken', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) => {\n return raw.get>(http, '/users/me/access_tokens', {\n params: params.query,\n })\n}\n\n/**\n * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`\n */\nexport const create: RestEndpoint<'PersonalAccessToken', 'create'> = (\n http: AxiosInstance,\n _params: {},\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, '/users/me/access_tokens', rawData, {\n headers,\n })\n}\n\n/**\n * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke`\n */\nexport const revoke: RestEndpoint<'PersonalAccessToken', 'revoke'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.put(\n http,\n `/users/me/access_tokens/${params.tokenId}/revoked`,\n null\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { PreviewApiKeyProps } from '../../../entities/preview-api-key'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'PreviewApiKey', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { previewApiKeyId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`\n )\n}\n\nexport const getMany: RestEndpoint<'PreviewApiKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/preview_api_keys`,\n {\n params: params.query,\n }\n )\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { AxiosInstance, RawAxiosRequestConfig } from 'axios'\nimport { errorHandler } from 'contentful-sdk-core'\n\nfunction getBaseUrl(http: AxiosInstance) {\n return http.defaults.baseURL?.split('/spaces')[0]\n}\n\nexport function get(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig) {\n return http\n .get(url, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function patch(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .patch(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function post(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .post(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function put(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .put(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function del(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig) {\n return http\n .delete(url, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function http(\n http: AxiosInstance,\n url: string,\n config?: Omit\n) {\n return http(url, {\n baseURL: getBaseUrl(http),\n ...config,\n }).then((response) => response.data as T, errorHandler)\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetReleaseParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport { ReleaseActionQueryOptions } from '../../../entities/release-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'ReleaseAction', 'get'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { actionId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`\n )\n}\n\nexport const getMany: RestEndpoint<'ReleaseAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: ReleaseActionQueryOptions }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`,\n {\n params: params.query,\n }\n )\n}\n\nexport const queryForRelease: RestEndpoint<'ReleaseAction', 'queryForRelease'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { query?: ReleaseActionQueryOptions }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`,\n {\n params: {\n 'sys.release.sys.id[in]': params.releaseId,\n ...params.query,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetReleaseParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n ReleasePayload,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from '../../../entities/release'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Release', 'get'> = (\n http: AxiosInstance,\n params: GetReleaseParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`\n )\n}\n\nexport const query: RestEndpoint<'Release', 'query'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: ReleaseQueryOptions }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'Release', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: ReleasePayload\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`,\n payload\n )\n}\n\nexport const update: RestEndpoint<'Release', 'update'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n payload: ReleasePayload,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`,\n payload,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Release', 'delete'> = (\n http: AxiosInstance,\n params: GetReleaseParams\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`\n )\n}\n\nexport const publish: RestEndpoint<'Release', 'publish'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Release', 'unpublish'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const validate: RestEndpoint<'Release', 'validate'> = (\n http: AxiosInstance,\n params: GetReleaseParams,\n payload?: ReleaseValidatePayload\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/validate`,\n payload\n )\n}\n\nexport const archive: RestEndpoint<'Release', 'archive'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: string | number }\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`,\n null,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n\nexport const unarchive: RestEndpoint<'Release', 'unarchive'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: string | number }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateRoleProps, RoleProps } from '../../../entities/role'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Role', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/roles/${params.roleId}`)\n}\n\nexport const getMany: RestEndpoint<'Role', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/roles`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getManyForOrganization: RestEndpoint<'Role', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, `/organizations/${params.organizationId}/roles`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Role', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateRoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/roles`, data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'Role', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string },\n data: CreateRoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'Role', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string },\n rawData: RoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del = (http: AxiosInstance, params: GetSpaceParams & { roleId: string }) => {\n return raw.del(http, `/spaces/${params.spaceId}/roles/${params.roleId}`)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { ScheduledActionProps } from '../../../entities/scheduled-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'ScheduledAction', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { environmentId: string; scheduledActionId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`,\n {\n params: {\n 'environment.sys.id': params.environmentId,\n },\n }\n )\n}\n\nexport const getMany: RestEndpoint<'ScheduledAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/scheduled_actions`,\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const create: RestEndpoint<'ScheduledAction', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: Omit\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/scheduled_actions`, data)\n}\n\nexport const del: RestEndpoint<'ScheduledAction', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { scheduledActionId: string }\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {\n params: {\n 'environment.sys.id': params.environmentId,\n },\n })\n}\n\nexport const update: RestEndpoint<'ScheduledAction', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { scheduledActionId: string; version: number },\n data: Omit\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`,\n data,\n {\n params: {\n 'environment.sys.id': data.environment?.sys.id,\n },\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetSnapshotForContentTypeParams,\n GetSnapshotForEntryParams,\n KeyValueMap,\n QueryParams,\n} from '../../../common-types'\nimport { ContentTypeProps } from '../../../entities/content-type'\nimport { EntryProps } from '../../../entities/entry'\nimport { SnapshotProps } from '../../../entities/snapshot'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseEntryUrl = (params: GetSnapshotForEntryParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`\n\nconst getEntryUrl = (params: GetSnapshotForEntryParams & { snapshotId: string }) =>\n getBaseEntryUrl(params) + `/${params.snapshotId}`\n\nexport const getManyForEntry: RestEndpoint<'Snapshot', 'getManyForEntry'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSnapshotForEntryParams & QueryParams\n) => {\n return raw.get, 'metadata'>>>>(\n http,\n getBaseEntryUrl(params),\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const getForEntry: RestEndpoint<'Snapshot', 'getForEntry'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSnapshotForEntryParams & { snapshotId: string }\n) => {\n return raw.get, 'metadata'>>>(http, getEntryUrl(params))\n}\n\nconst getBaseContentTypeUrl = (params: GetSnapshotForContentTypeParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`\n\nconst getContentTypeUrl = (params: GetSnapshotForContentTypeParams & { snapshotId: string }) =>\n getBaseContentTypeUrl(params) + `/${params.snapshotId}`\n\nexport const getManyForContentType: RestEndpoint<'Snapshot', 'getManyForContentType'> = (\n http: AxiosInstance,\n params: GetSnapshotForContentTypeParams & QueryParams\n) => {\n return raw.get>>(\n http,\n getBaseContentTypeUrl(params),\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const getForContentType: RestEndpoint<'Snapshot', 'getForContentType'> = (\n http: AxiosInstance,\n params: GetSnapshotForContentTypeParams & { snapshotId: string }\n) => {\n return raw.get>(http, getContentTypeUrl(params))\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { SpaceMemberProps } from '../../../entities/space-member'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'SpaceMember', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { spaceMemberId: string }\n) =>\n raw.get(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`)\n\nexport const getMany: RestEndpoint<'SpaceMember', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) =>\n raw.get>(http, `/spaces/${params.spaceId}/space_members`, {\n params: params.query,\n })\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceMembershipProps,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateSpaceMembershipProps,\n SpaceMembershipProps,\n} from '../../../entities/space-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nfunction spaceMembershipDeprecationWarning() {\n console.warn(\n 'The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)'\n )\n}\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/space_memberships`\nconst getEntityUrl = (params: GetSpaceMembershipProps) =>\n `${getBaseUrl(params)}/${params.spaceMembershipId}`\n\nexport const get: RestEndpoint<'SpaceMembership', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps\n) => {\n spaceMembershipDeprecationWarning()\n return raw.get(http, getEntityUrl(params))\n}\n\nexport const getMany: RestEndpoint<'SpaceMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n spaceMembershipDeprecationWarning()\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const getForOrganization: RestEndpoint<'SpaceMembership', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { spaceMembershipId: string }\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<'SpaceMembership', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/space_memberships`,\n {\n params: params.query,\n }\n )\n}\n\nexport const create: RestEndpoint<'SpaceMembership', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n spaceMembershipDeprecationWarning()\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'SpaceMembership', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps,\n data: CreateSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n spaceMembershipDeprecationWarning()\n return raw.put(http, getEntityUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'SpaceMembership', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps,\n rawData: SpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del: RestEndpoint<'SpaceMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { SpaceProps } from '../../../entities/space'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Space', 'get'> = (http: AxiosInstance, params: GetSpaceParams) =>\n raw.get(http, `/spaces/${params.spaceId}`)\n\nexport const getMany: RestEndpoint<'Space', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) =>\n raw.get>(http, `/spaces`, {\n params: params.query,\n })\n\nexport const getManyForOrganization: RestEndpoint<'Space', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(http, `/organizations/${params.organizationId}/spaces`, {\n params: params.query,\n })\n\nexport const create: RestEndpoint<'Space', 'create'> = (\n http: AxiosInstance,\n params: { organizationId?: string },\n payload: Omit,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces`, payload, {\n headers: params.organizationId\n ? { ...headers, 'X-Contentful-Organization': params.organizationId }\n : headers,\n })\n}\n\nexport const update: RestEndpoint<'Space', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: SpaceProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, `/spaces/${params.spaceId}`, data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Space', 'delete'> = (http: AxiosInstance, params: GetSpaceParams) =>\n raw.del(http, `/spaces/${params.spaceId}`)\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetTagParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTagProps, DeleteTagParams, TagProps, UpdateTagProps } from '../../../entities/tag'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`\n\nconst getTagUrl = (params: GetTagParams) => getBaseUrl(params) + `/${params.tagId}`\n\nexport const get: RestEndpoint<'Tag', 'get'> = (http: AxiosInstance, params: GetTagParams) =>\n raw.get(http, getTagUrl(params))\n\nexport const getMany: RestEndpoint<'Tag', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n\nexport const createWithId: RestEndpoint<'Tag', 'createWithId'> = (\n http: AxiosInstance,\n params: GetTagParams,\n rawData: CreateTagProps\n) => {\n const data = copy(rawData)\n return raw.put(http, getTagUrl(params), data, {\n headers: { 'X-Contentful-Tag-Visibility': rawData.sys.visibility ?? 'private' },\n })\n}\n\nexport const update: RestEndpoint<'Tag', 'update'> = (\n http: AxiosInstance,\n params: GetTagParams,\n rawData: UpdateTagProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getTagUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Tag', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteTagParams\n) => {\n return raw.del(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEntryParams,\n GetTaskParams,\n PaginationQueryOptions,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateTaskParams,\n CreateTaskProps,\n DeleteTaskParams,\n TaskProps,\n UpdateTaskProps,\n} from '../../../entities/task'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetEntryParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`\nconst getTaskUrl = (params: GetTaskParams) => `${getBaseUrl(params)}/${params.taskId}`\n\nexport const get: RestEndpoint<'Task', 'get'> = (http: AxiosInstance, params: GetTaskParams) =>\n raw.get(http, getTaskUrl(params))\n\nexport const getMany: RestEndpoint<'Task', 'getMany'> = (\n http: AxiosInstance,\n params: GetEntryParams & QueryParams & PaginationQueryOptions\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n\n/**\n * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.\n */\nexport const getAll: RestEndpoint<'Task', 'getAll'> = getMany\n\nexport const create: RestEndpoint<'Task', 'create'> = (\n http: AxiosInstance,\n params: CreateTaskParams,\n rawData: CreateTaskProps\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'Task', 'update'> = (\n http: AxiosInstance,\n params: GetTaskParams,\n rawData: UpdateTaskProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getTaskUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Task', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteTaskParams\n) => {\n return raw.del(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetTeamMembershipParams,\n GetTeamParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from '../../../entities/team-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetTeamParams) =>\n `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`\n\nconst getEntityUrl = (params: GetTeamMembershipParams) =>\n `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`\n\nexport const get: RestEndpoint<'TeamMembership', 'get'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams\n) => raw.get(http, getEntityUrl(params))\n\nexport const getManyForOrganization = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(\n http,\n `/organizations/${params.organizationId}/team_memberships`,\n {\n params: normalizeSelect(params.query),\n }\n )\n\nexport const getManyForTeam: RestEndpoint<'TeamMembership', 'getManyForTeam'> = (\n http: AxiosInstance,\n params: GetTeamParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'TeamMembership', 'create'> = (\n http: AxiosInstance,\n params: GetTeamParams,\n rawData: CreateTeamMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const update: RestEndpoint<'TeamMembership', 'update'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams,\n rawData: TeamMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version || 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'TeamMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams\n) => raw.del(http, getEntityUrl(params))\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n GetTeamSpaceMembershipParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from '../../../entities/team-space-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/team_space_memberships`\n\nconst getEntityUrl = (params: GetTeamSpaceMembershipParams) =>\n `${getBaseUrl(params)}/${params.teamSpaceMembershipId}`\n\nexport const get: RestEndpoint<'TeamSpaceMembership', 'get'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams\n) => raw.get(http, getEntityUrl(params))\n\nexport const getMany: RestEndpoint<'TeamSpaceMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n\nexport const getForOrganization: RestEndpoint<'TeamSpaceMembership', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { teamSpaceMembershipId: string }\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<\n 'TeamSpaceMembership',\n 'getManyForOrganization'\n> = (http: AxiosInstance, params: GetOrganizationParams & QueryParams & { teamId?: string }) => {\n const query = params.query || {}\n if (params.teamId) {\n query['sys.team.sys.id'] = params.teamId\n }\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/team_space_memberships`,\n {\n params: params.query,\n }\n )\n}\n\nexport const create: RestEndpoint<'TeamSpaceMembership', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { teamId: string },\n rawData: CreateTeamSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, {\n headers: {\n 'x-contentful-team': params.teamId,\n ...headers,\n },\n })\n}\n\nexport const update: RestEndpoint<'TeamSpaceMembership', 'update'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams,\n rawData: TeamSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version || 0,\n 'x-contentful-team': rawData.sys.team.sys.id,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'TeamSpaceMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n GetTeamParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTeamProps, TeamProps } from '../../../entities/team'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/teams`\n\nconst getEntityUrl = (params: GetTeamParams) => `${getBaseUrl(params)}/${params.teamId}`\n\nexport const get: RestEndpoint<'Team', 'get'> = (http: AxiosInstance, params: GetTeamParams) =>\n raw.get(http, getEntityUrl(params))\n\nexport const getMany: RestEndpoint<'Team', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n\nexport const getManyForSpace: RestEndpoint<'Team', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/teams`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Team', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n rawData: CreateTeamProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const update: RestEndpoint<'Team', 'update'> = (\n http: AxiosInstance,\n params: GetTeamParams,\n rawData: TeamProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Team', 'delete'> = (http: AxiosInstance, params: GetTeamParams) =>\n raw.del(http, getEntityUrl(params))\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { SetOptional } from 'type-fest'\nimport { GetUIConfigParams } from '../../../common-types'\nimport { UIConfigProps } from '../../../entities/ui-config'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport copy from 'fast-copy'\n\nconst getUrl = (params: GetUIConfigParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`\n\nexport const get: RestEndpoint<'UIConfig', 'get'> = (\n http: AxiosInstance,\n params: GetUIConfigParams\n) => {\n return raw.get(http, getUrl(params))\n}\n\nexport const update: RestEndpoint<'UIConfig', 'update'> = (\n http: AxiosInstance,\n params: GetUIConfigParams,\n rawData: UIConfigProps\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport { GetSpaceEnvironmentParams, GetSpaceEnvironmentUploadParams } from '../../../common-types'\nimport { getUploadHttpClient } from '../../../upload-http-client'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUploadUrl = (params: GetSpaceEnvironmentParams) => {\n const spacePath = `/spaces/${params.spaceId}/uploads`\n const environmentPath = `/spaces/${params.spaceId}/environments/${params.environmentId}/uploads`\n const path = params.environmentId ? environmentPath : spacePath\n return path\n}\n\nconst getEntityUploadUrl = (params: GetSpaceEnvironmentUploadParams) => {\n const path = getBaseUploadUrl(params)\n return path + `/${params.uploadId}`\n}\n\nexport const create: RestEndpoint<'Upload', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: { file: string | ArrayBuffer | Stream }\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n const { file } = data\n if (!file) {\n return Promise.reject(new Error('Unable to locate a file to upload.'))\n }\n const path = getBaseUploadUrl(params)\n return raw.post(httpUpload, path, file, {\n headers: {\n 'Content-Type': 'application/octet-stream',\n },\n })\n}\n\nexport const del: RestEndpoint<'Upload', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n const path = getEntityUploadUrl(params)\n return raw.del(httpUpload, path)\n}\n\nexport const get: RestEndpoint<'Upload', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n const path = getEntityUploadUrl(params)\n return raw.get(httpUpload, path)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, QueryParams } from '../../../common-types'\nimport { UsageProps } from '../../../entities/usage'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getManyForSpace: RestEndpoint<'Usage', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: { organizationId: string } & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/space_periodic_usages`,\n {\n params: params.query,\n }\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<'Usage', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: { organizationId: string } & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/organization_periodic_usages`,\n {\n params: params.query,\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { GetUserUIConfigParams } from '../../../common-types'\nimport { UserUIConfigProps } from '../../../entities/user-ui-config'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getUrl = (params: GetUserUIConfigParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`\n\nexport const get: RestEndpoint<'UserUIConfig', 'get'> = (\n http: AxiosInstance,\n params: GetUserUIConfigParams\n) => {\n return raw.get(http, getUrl(params))\n}\n\nexport const update: RestEndpoint<'UserUIConfig', 'update'> = (\n http: AxiosInstance,\n params: GetUserUIConfigParams,\n rawData: UserUIConfigProps\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { UserProps } from '../../../entities/user'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getForSpace: RestEndpoint<'User', 'getForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { userId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/users/${params.userId}`)\n}\n\nexport const getCurrent: RestEndpoint<'User', 'getCurrent'> = (\n http: AxiosInstance,\n params?: QueryParams\n) => raw.get(http, `/users/me`, { params: params?.query })\n\nexport const getManyForSpace: RestEndpoint<'User', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/users`, {\n params: params.query,\n })\n}\n\nexport const getForOrganization: RestEndpoint<'User', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { userId: string }\n) => {\n return raw.get(http, `/organizations/${params.organizationId}/users/${params.userId}`)\n}\n\nexport const getManyForOrganization: RestEndpoint<'User', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, `/organizations/${params.organizationId}/users`, {\n params: params.query,\n })\n}\n","import { QueryOptions } from '../../../common-types'\n\nexport function normalizeSelect(query?: QueryOptions): QueryOptions | undefined {\n if (query && query.select && !/sys/i.test(query.select)) {\n return {\n ...query,\n select: query.select + ',sys',\n }\n }\n return query\n}\n\nexport function normalizeSpaceId(query?: QueryOptions): QueryOptions | undefined {\n if (query && query.spaceId) {\n const { spaceId, ...rest } = query\n return {\n ...rest,\n 'sys.space.sys.id[in]': spaceId,\n }\n }\n return query\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n GetSpaceParams,\n GetWebhookCallDetailsUrl,\n GetWebhookParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookProps,\n WebhookRetryPolicyPayload,\n WebhookRetryPolicyProps,\n WebhookSigningSecretProps,\n} from '../../../entities/webhook'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/webhook_definitions`\n\nconst getWebhookCallBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/webhooks`\n\nconst getWebhookUrl = (params: GetWebhookParams) =>\n `${getBaseUrl(params)}/${params.webhookDefinitionId}`\n\nconst getWebhookCallUrl = (params: GetWebhookParams) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls`\n\nconst getWebhookCallDetailsUrl = (params: GetWebhookCallDetailsUrl) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls/${params.callId}`\n\nconst getWebhookHealthUrl = (params: GetWebhookParams) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/health`\n\nconst getWebhookSettingsUrl = (params: GetSpaceParams) =>\n `/spaces/${params.spaceId}/webhook_settings`\n\nconst getWebhookSigningSecretUrl = (params: GetSpaceParams) =>\n `${getWebhookSettingsUrl(params)}/signing_secret`\n\nconst getWebhookRetryPolicyUrl = (params: GetSpaceParams) =>\n `${getWebhookSettingsUrl(params)}/retry_policy`\n\nexport const get: RestEndpoint<'Webhook', 'get'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.get(http, getWebhookUrl(params))\n}\n\nexport const getManyCallDetails: RestEndpoint<'Webhook', 'getManyCallDetails'> = (\n http: AxiosInstance,\n params: GetWebhookParams & QueryParams\n) => {\n return raw.get(http, getWebhookCallUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getCallDetails: RestEndpoint<'Webhook', 'getCallDetails'> = (\n http: AxiosInstance,\n params: GetWebhookCallDetailsUrl\n) => {\n return raw.get(http, getWebhookCallDetailsUrl(params))\n}\n\nexport const getHealthStatus: RestEndpoint<'Webhook', 'getHealthStatus'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.get(http, getWebhookHealthUrl(params))\n}\n\nexport const getMany: RestEndpoint<'Webhook', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getSigningSecret: RestEndpoint<'Webhook', 'getSigningSecret'> = (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.get(http, getWebhookSigningSecretUrl(params))\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const getRetryPolicy: RestEndpoint<'Webhook', 'getRetryPolicy'> = (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.get(http, getWebhookRetryPolicyUrl(params))\n}\n\nexport const create: RestEndpoint<'Webhook', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: CreateWebhooksProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data, { headers })\n}\n\nexport const createWithId = (\n http: AxiosInstance,\n params: GetWebhookParams,\n rawData: CreateWebhooksProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'Webhook', 'update'> = async (\n http: AxiosInstance,\n params: GetWebhookParams,\n rawData: WebhookProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getWebhookUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const upsertSigningSecret: RestEndpoint<'Webhook', 'upsertSigningSecret'> = async (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: UpsertWebhookSigningSecretPayload\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookSigningSecretUrl(params), data)\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const upsertRetryPolicy: RestEndpoint<'Webhook', 'upsertRetryPolicy'> = async (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: WebhookRetryPolicyPayload\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookRetryPolicyUrl(params), data)\n}\n\nexport const del: RestEndpoint<'Webhook', 'delete'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.del(http, getWebhookUrl(params))\n}\n\nexport const deleteSigningSecret: RestEndpoint<'Webhook', 'deleteSigningSecret'> = async (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.del(http, getWebhookSigningSecretUrl(params))\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const deleteRetryPolicy: RestEndpoint<'Webhook', 'deleteRetryPolicy'> = async (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.del(http, getWebhookRetryPolicyUrl(params))\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetWorkflowDefinitionParams,\n} from '../../../common-types'\nimport {\n CreateWorkflowDefinitionParams,\n CreateWorkflowDefinitionProps,\n DeleteWorkflowDefinitionParams,\n UpdateWorkflowDefinitionProps,\n WorkflowDefinitionProps,\n WorkflowDefinitionQueryOptions,\n} from '../../../entities/workflow-definition'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`\nconst getWorkflowDefinitionUrl = (params: GetWorkflowDefinitionParams) =>\n `${getBaseUrl(params)}/${params.workflowDefinitionId}`\n\nexport const get: RestEndpoint<'WorkflowDefinition', 'get'> = (\n http: AxiosInstance,\n params: GetWorkflowDefinitionParams,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, getWorkflowDefinitionUrl(params), {\n headers,\n })\n\nexport const getMany: RestEndpoint<'WorkflowDefinition', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: WorkflowDefinitionQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n\nexport const create: RestEndpoint<'WorkflowDefinition', 'create'> = (\n http: AxiosInstance,\n params: CreateWorkflowDefinitionParams,\n rawData: CreateWorkflowDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'WorkflowDefinition', 'update'> = (\n http: AxiosInstance,\n params: GetWorkflowDefinitionParams,\n rawData: UpdateWorkflowDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getWorkflowDefinitionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'WorkflowDefinition', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteWorkflowDefinitionParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getWorkflowDefinitionUrl(params), {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, GetWorkflowParams } from '../../../common-types'\nimport {\n CompleteWorkflowParams,\n CreateWorkflowParams,\n CreateWorkflowProps,\n DeleteWorkflowParams,\n UpdateWorkflowParams,\n UpdateWorkflowProps,\n WorkflowProps,\n WorkflowQueryOptions,\n} from '../../../entities/workflow'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`\n\nconst getWorkflowUrl = (params: GetWorkflowParams) => `${getBaseUrl(params)}/${params.workflowId}`\n\nconst completeWorkflowUrl = (params: GetWorkflowParams) => `${getWorkflowUrl(params)}/complete`\n\nexport const getMany: RestEndpoint<'Workflow', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: WorkflowQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n\nexport const create: RestEndpoint<'Workflow', 'create'> = (\n http: AxiosInstance,\n params: CreateWorkflowParams,\n rawData: CreateWorkflowProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'Workflow', 'update'> = (\n http: AxiosInstance,\n params: UpdateWorkflowParams,\n rawData: UpdateWorkflowProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getWorkflowUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Workflow', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteWorkflowParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getWorkflowUrl(params), {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n\nexport const complete: RestEndpoint<'Workflow', 'complete'> = (\n http: AxiosInstance,\n { version, ...params }: CompleteWorkflowParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, completeWorkflowUrl(params), null, {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport { CollectionProp, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n WorkflowsChangelogQueryOptions,\n WorkflowsChangelogEntryProps,\n} from '../../../entities/workflows-changelog-entry'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`\n\nexport const getMany: RestEndpoint<'WorkflowsChangelog', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query: WorkflowsChangelogQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n","import axios, { RawAxiosRequestHeaders } from 'axios'\nimport { AxiosInstance, createHttpClient, CreateHttpClientParams } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { OpPatch } from 'json-patch'\nimport { Adapter, MakeRequestOptions, MakeRequestPayload } from '../../common-types'\nimport endpoints from './endpoints'\n\nexport type RestAdapterParams = CreateHttpClientParams & {\n /**\n * Contentful CMA Access Token\n */\n accessToken: CreateHttpClientParams['accessToken']\n /**\n * API host\n * @default api.contentful.com\n */\n host?: string\n\n /**\n * direct file upload host\n * @default upload.contentful.com\n */\n hostUpload?: string\n\n userAgent?: string | undefined\n}\n\n/**\n * @private\n */\nconst defaultHostParameters = {\n defaultHostname: 'api.contentful.com',\n defaultHostnameUpload: 'upload.contentful.com',\n}\n\nexport class RestAdapter implements Adapter {\n private readonly params: RestAdapterParams\n private readonly axiosInstance: AxiosInstance\n\n public constructor(params: RestAdapterParams) {\n if (!params.accessToken) {\n throw new TypeError('Expected parameter accessToken')\n }\n\n this.params = {\n ...defaultHostParameters,\n ...copy(params),\n }\n\n this.axiosInstance = createHttpClient(axios, {\n ...this.params,\n headers: {\n 'Content-Type': 'application/vnd.contentful.management.v1+json',\n // possibly define a default user agent?\n ...(params.userAgent ? { 'X-Contentful-User-Agent': params.userAgent } : {}),\n ...this.params.headers,\n },\n })\n }\n\n public async makeRequest({\n entityType,\n action: actionInput,\n params,\n payload,\n headers,\n userAgent,\n }: MakeRequestOptions): Promise {\n // `delete` is a reserved keyword. Therefore, the methods are called `del`.\n const action = actionInput === 'delete' ? 'del' : actionInput\n\n const endpoint: (\n http: AxiosInstance,\n params?: Record,\n payload?: Record | OpPatch[] | MakeRequestPayload,\n headers?: RawAxiosRequestHeaders\n ) => Promise =\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n endpoints[entityType]?.[action]\n\n if (endpoint === undefined) {\n throw new Error('Unknown endpoint')\n }\n\n return await endpoint(this.axiosInstance, params, payload, {\n ...headers,\n // overwrite the userAgent with the one passed in the request\n ...(userAgent ? { 'X-Contentful-User-Agent': userAgent } : {}),\n })\n }\n}\n","import { RawAxiosRequestConfig, RawAxiosRequestHeaders } from 'axios'\nimport { OpPatch } from 'json-patch'\nimport { Stream } from 'stream'\nimport { AppActionProps, CreateAppActionProps } from './entities/app-action'\nimport {\n AppActionCallProps,\n AppActionCallResponse,\n CreateAppActionCallProps,\n} from './entities/app-action-call'\nimport { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle'\nimport { ApiKeyProps, CreateApiKeyProps } from './entities/api-key'\nimport { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition'\nimport { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from './entities/asset'\nimport { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'\nimport {\n CreateCommentParams,\n CreateCommentProps,\n DeleteCommentParams,\n CommentProps,\n UpdateCommentParams,\n UpdateCommentProps,\n GetManyCommentsParams,\n RichTextBodyFormat,\n RichTextCommentProps,\n PlainTextBodyFormat,\n RichTextCommentBodyPayload,\n GetCommentParentEntityParams,\n} from './entities/comment'\nimport { EditorInterfaceProps } from './entities/editor-interface'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from './entities/entry'\nimport { CreateEnvironmentProps, EnvironmentProps } from './entities/environment'\nimport { CreateEnvironmentAliasProps, EnvironmentAliasProps } from './entities/environment-alias'\nimport { CreateLocaleProps, LocaleProps } from './entities/locale'\nimport { AppInstallationsForOrganizationProps } from './entities/app-definition'\nimport { OrganizationProp } from './entities/organization'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from './entities/organization-invitation'\nimport { OrganizationMembershipProps } from './entities/organization-membership'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from './entities/personal-access-token'\nimport {\n AccessTokenProp,\n CreatePersonalAccessTokenProps as CreatePATProps,\n} from './entities/access-token'\nimport { PreviewApiKeyProps } from './entities/preview-api-key'\nimport { CreateRoleProps, RoleProps } from './entities/role'\nimport { ScheduledActionProps } from './entities/scheduled-action'\nimport { SnapshotProps } from './entities/snapshot'\nimport { SpaceProps } from './entities/space'\nimport { SpaceMemberProps } from './entities/space-member'\nimport { CreateSpaceMembershipProps, SpaceMembershipProps } from './entities/space-membership'\nimport { CreateTagProps, DeleteTagParams, TagProps, UpdateTagProps } from './entities/tag'\nimport { CreateTeamProps, TeamProps } from './entities/team'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from './entities/team-membership'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from './entities/team-space-membership'\nimport { CreateExtensionProps, ExtensionProps } from './entities/extension'\nimport { UsageProps } from './entities/usage'\nimport { UserProps } from './entities/user'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookCallDetailsProps,\n WebhookCallOverviewProps,\n WebhookHealthProps,\n WebhookProps,\n WebhookRetryPolicyPayload,\n WebhookRetryPolicyProps,\n WebhookSigningSecretProps,\n} from './entities/webhook'\nimport { AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'\nimport { AppUploadProps } from './entities/app-upload'\nimport { AppDetailsProps, CreateAppDetailsProps } from './entities/app-details'\nimport { AppSignedRequestProps, CreateAppSignedRequestProps } from './entities/app-signed-request'\nimport { AppSigningSecretProps, CreateAppSigningSecretProps } from './entities/app-signing-secret'\nimport {\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\nimport {\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from './entities/release'\nimport {\n ReleaseAction,\n ReleaseActionProps,\n ReleaseActionQueryOptions,\n} from './entities/release-action'\n\nimport {\n CreateTaskParams,\n CreateTaskProps,\n DeleteTaskParams,\n TaskProps,\n UpdateTaskParams,\n UpdateTaskProps,\n} from './entities/task'\n\nimport {\n CreateWorkflowDefinitionParams,\n CreateWorkflowDefinitionProps,\n DeleteWorkflowDefinitionParams,\n WorkflowDefinitionProps,\n WorkflowDefinitionQueryOptions,\n} from './entities/workflow-definition'\nimport {\n CompleteWorkflowParams,\n CreateWorkflowParams,\n CreateWorkflowProps,\n DeleteWorkflowParams,\n WorkflowProps,\n WorkflowQueryOptions,\n} from './entities/workflow'\nimport {\n WorkflowsChangelogEntryProps,\n WorkflowsChangelogQueryOptions,\n} from './entities/workflows-changelog-entry'\nimport { UIConfigProps } from './entities/ui-config'\nimport { UserUIConfigProps } from './entities/user-ui-config'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplateProps,\n} from './entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationProps,\n ValidateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateValidationProps,\n} from './entities/environment-template-installation'\nimport { FunctionProps } from './entities/function'\nimport {\n AppEventSubscriptionProps,\n CreateAppEventSubscriptionProps,\n} from './entities/app-event-subscription'\nimport { AppKeyProps, CreateAppKeyProps } from './entities/app-key'\nimport { AppAccessTokenProps, CreateAppAccessTokenProps } from './entities/app-access-token'\n\nexport interface DefaultElements {\n toPlainObject(): TPlainObject\n}\n\n/**\n * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve\n */\nexport interface Link {\n sys: {\n type: 'Link'\n linkType: T\n id: string\n }\n}\n\n/**\n * ResourceLink is a reference object to another entity outside of the current space/environment\n */\nexport interface ResourceLink {\n sys: {\n type: 'ResourceLink'\n linkType: T\n urn: string\n }\n}\n\nexport interface VersionedLink {\n sys: {\n type: 'Link'\n linkType: T\n id: string\n version: number\n }\n}\n\nexport interface BaseCollection {\n sys: { type: 'Array' }\n items: T[]\n}\n\n/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */\nexport type ISO8601Timestamp = string\n\nexport interface PaginationQueryOptions {\n skip?: number\n limit?: number\n order?: string\n}\n\nexport interface QueryOptions extends PaginationQueryOptions {\n content_type?: string\n include?: number\n select?: string\n links_to_entry?: string\n\n [key: string]: any\n}\n\nexport interface SpaceQueryOptions extends PaginationQueryOptions {\n spaceId?: string\n}\n\nexport interface BasicMetaSysProps {\n type: string\n id: string\n version: number\n createdBy?: SysLink\n createdAt: string\n updatedBy?: SysLink\n updatedAt: string\n}\n\nexport interface MetaSysProps extends BasicMetaSysProps {\n space?: SysLink\n status?: SysLink\n publishedVersion?: number\n archivedVersion?: number\n archivedBy?: SysLink\n archivedAt?: string\n deletedVersion?: number\n deletedBy?: SysLink\n deletedAt?: string\n}\n\nexport interface EntityMetaSysProps extends MetaSysProps {\n space: SysLink\n contentType: SysLink\n environment: SysLink\n publishedBy?: Link<'User'> | Link<'AppDefinition'>\n publishedAt?: string\n firstPublishedAt?: string\n publishedCounter?: number\n locale?: string\n}\n\nexport interface EntryMetaSysProps extends EntityMetaSysProps {\n automationTags: Link<'Tag'>[]\n}\n\nexport interface MetaLinkProps {\n type: string\n linkType: string\n id: string\n}\n\nexport interface MetadataProps {\n tags: Link<'Tag'>[]\n}\n\nexport interface SysLink {\n sys: MetaLinkProps\n}\n\nexport interface CollectionProp {\n sys: {\n type: 'Array'\n }\n total: number\n skip: number\n limit: number\n items: TObj[]\n}\n\nexport interface CursorPaginatedCollectionProp\n extends Omit, 'total' | 'skip'> {\n pages?: {\n next?: string\n prev?: string\n }\n}\n\nexport interface Collection\n extends CollectionProp,\n DefaultElements> {}\n\nexport interface CursorPaginatedCollection\n extends CursorPaginatedCollectionProp,\n DefaultElements> {}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport interface QueryOptions extends BasicQueryOptions {\n content_type?: string\n include?: number\n select?: string\n}\n\nexport interface BasicQueryOptions {\n skip?: number\n limit?: number\n\n [key: string]: any\n}\n\nexport interface BasicCursorPaginationOptions extends Omit {\n pageNext?: string\n pagePrev?: string\n}\n\nexport type KeyValueMap = Record\n\n/**\n * @private\n */\ntype MRInternal = {\n (opts: MROpts<'Http', 'get', UA>): MRReturn<'Http', 'get'>\n (opts: MROpts<'Http', 'patch', UA>): MRReturn<'Http', 'patch'>\n (opts: MROpts<'Http', 'post', UA>): MRReturn<'Http', 'post'>\n (opts: MROpts<'Http', 'put', UA>): MRReturn<'Http', 'put'>\n (opts: MROpts<'Http', 'delete', UA>): MRReturn<'Http', 'delete'>\n (opts: MROpts<'Http', 'request', UA>): MRReturn<'Http', 'request'>\n\n (opts: MROpts<'AppAction', 'get', UA>): MRReturn<'AppAction', 'get'>\n (opts: MROpts<'AppAction', 'getMany', UA>): MRReturn<'AppAction', 'getMany'>\n (opts: MROpts<'AppAction', 'delete', UA>): MRReturn<'AppAction', 'delete'>\n (opts: MROpts<'AppAction', 'create', UA>): MRReturn<'AppAction', 'create'>\n (opts: MROpts<'AppAction', 'update', UA>): MRReturn<'AppAction', 'update'>\n\n (opts: MROpts<'AppActionCall', 'create', UA>): MRReturn<'AppActionCall', 'create'>\n (opts: MROpts<'AppActionCall', 'createWithResponse', UA>): MRReturn<\n 'AppActionCall',\n 'createWithResponse'\n >\n (opts: MROpts<'AppActionCall', 'getCallDetails', UA>): MRReturn<'AppActionCall', 'getCallDetails'>\n\n (opts: MROpts<'AppBundle', 'get', UA>): MRReturn<'AppBundle', 'get'>\n (opts: MROpts<'AppBundle', 'getMany', UA>): MRReturn<'AppBundle', 'getMany'>\n (opts: MROpts<'AppBundle', 'delete', UA>): MRReturn<'AppBundle', 'delete'>\n (opts: MROpts<'AppBundle', 'create', UA>): MRReturn<'AppBundle', 'create'>\n\n (opts: MROpts<'ApiKey', 'get', UA>): MRReturn<'ApiKey', 'get'>\n (opts: MROpts<'ApiKey', 'getMany', UA>): MRReturn<'ApiKey', 'getMany'>\n (opts: MROpts<'ApiKey', 'create', UA>): MRReturn<'ApiKey', 'create'>\n (opts: MROpts<'ApiKey', 'createWithId', UA>): MRReturn<'ApiKey', 'createWithId'>\n (opts: MROpts<'ApiKey', 'update', UA>): MRReturn<'ApiKey', 'update'>\n (opts: MROpts<'ApiKey', 'delete', UA>): MRReturn<'ApiKey', 'delete'>\n\n (opts: MROpts<'AppDefinition', 'get', UA>): MRReturn<'AppDefinition', 'get'>\n (opts: MROpts<'AppDefinition', 'getMany', UA>): MRReturn<'AppDefinition', 'getMany'>\n (opts: MROpts<'AppDefinition', 'create', UA>): MRReturn<'AppDefinition', 'create'>\n (opts: MROpts<'AppDefinition', 'update', UA>): MRReturn<'AppDefinition', 'update'>\n (opts: MROpts<'AppDefinition', 'delete', UA>): MRReturn<'AppDefinition', 'delete'>\n (opts: MROpts<'AppDefinition', 'getInstallationsForOrg', UA>): MRReturn<\n 'AppDefinition',\n 'getInstallationsForOrg'\n >\n\n (opts: MROpts<'AppInstallation', 'get', UA>): MRReturn<'AppInstallation', 'get'>\n (opts: MROpts<'AppInstallation', 'getMany', UA>): MRReturn<'AppInstallation', 'getMany'>\n (opts: MROpts<'AppInstallation', 'upsert', UA>): MRReturn<'AppInstallation', 'upsert'>\n (opts: MROpts<'AppInstallation', 'delete', UA>): MRReturn<'AppInstallation', 'delete'>\n (opts: MROpts<'AppInstallation', 'getForOrganization', UA>): MRReturn<\n 'AppInstallation',\n 'getForOrganization'\n >\n\n (opts: MROpts<'Asset', 'getMany', UA>): MRReturn<'Asset', 'getMany'>\n (opts: MROpts<'Asset', 'getPublished', UA>): MRReturn<'Asset', 'getPublished'>\n (opts: MROpts<'Asset', 'get', UA>): MRReturn<'Asset', 'get'>\n (opts: MROpts<'Asset', 'update', UA>): MRReturn<'Asset', 'update'>\n (opts: MROpts<'Asset', 'delete', UA>): MRReturn<'Asset', 'delete'>\n (opts: MROpts<'Asset', 'publish', UA>): MRReturn<'Asset', 'publish'>\n (opts: MROpts<'Asset', 'unpublish', UA>): MRReturn<'Asset', 'unpublish'>\n (opts: MROpts<'Asset', 'archive', UA>): MRReturn<'Asset', 'archive'>\n (opts: MROpts<'Asset', 'unarchive', UA>): MRReturn<'Asset', 'unarchive'>\n (opts: MROpts<'Asset', 'create', UA>): MRReturn<'Asset', 'create'>\n (opts: MROpts<'Asset', 'createWithId', UA>): MRReturn<'Asset', 'createWithId'>\n (opts: MROpts<'Asset', 'createFromFiles', UA>): MRReturn<'Asset', 'createFromFiles'>\n (opts: MROpts<'Asset', 'processForAllLocales', UA>): MRReturn<'Asset', 'processForAllLocales'>\n (opts: MROpts<'Asset', 'processForLocale', UA>): MRReturn<'Asset', 'processForLocale'>\n\n (opts: MROpts<'AppUpload', 'get', UA>): MRReturn<'AppUpload', 'get'>\n (opts: MROpts<'AppUpload', 'delete', UA>): MRReturn<'AppUpload', 'delete'>\n (opts: MROpts<'AppUpload', 'create', UA>): MRReturn<'AppUpload', 'create'>\n\n (opts: MROpts<'AppDetails', 'upsert', UA>): MRReturn<'AppDetails', 'upsert'>\n (opts: MROpts<'AppDetails', 'get', UA>): MRReturn<'AppDetails', 'get'>\n (opts: MROpts<'AppDetails', 'delete', UA>): MRReturn<'AppDetails', 'delete'>\n\n (opts: MROpts<'AppSignedRequest', 'create', UA>): MRReturn<'AppSignedRequest', 'create'>\n\n (opts: MROpts<'AppSigningSecret', 'upsert', UA>): MRReturn<'AppSigningSecret', 'upsert'>\n (opts: MROpts<'AppSigningSecret', 'get', UA>): MRReturn<'AppSigningSecret', 'get'>\n (opts: MROpts<'AppSigningSecret', 'delete', UA>): MRReturn<'AppSigningSecret', 'delete'>\n\n (opts: MROpts<'AppEventSubscription', 'upsert', UA>): MRReturn<'AppEventSubscription', 'upsert'>\n (opts: MROpts<'AppEventSubscription', 'get', UA>): MRReturn<'AppEventSubscription', 'get'>\n (opts: MROpts<'AppEventSubscription', 'delete', UA>): MRReturn<'AppEventSubscription', 'delete'>\n\n (opts: MROpts<'AppKey', 'get', UA>): MRReturn<'AppKey', 'get'>\n (opts: MROpts<'AppKey', 'getMany', UA>): MRReturn<'AppKey', 'getMany'>\n (opts: MROpts<'AppKey', 'create', UA>): MRReturn<'AppKey', 'create'>\n (opts: MROpts<'AppKey', 'delete', UA>): MRReturn<'AppKey', 'delete'>\n\n (opts: MROpts<'AppAccessToken', 'create', UA>): MRReturn<'AppAccessToken', 'create'>\n\n (opts: MROpts<'AssetKey', 'create', UA>): MRReturn<'AssetKey', 'create'>\n\n (opts: MROpts<'BulkAction', 'get', UA>): MRReturn<'BulkAction', 'get'>\n (opts: MROpts<'BulkAction', 'publish', UA>): MRReturn<'BulkAction', 'publish'>\n (opts: MROpts<'BulkAction', 'unpublish', UA>): MRReturn<'BulkAction', 'unpublish'>\n (opts: MROpts<'BulkAction', 'validate', UA>): MRReturn<'BulkAction', 'validate'>\n\n (opts: MROpts<'Comment', 'get', UA>): MRReturn<'Comment', 'get'>\n (opts: MROpts<'Comment', 'getMany', UA>): MRReturn<'Comment', 'getMany'>\n (opts: MROpts<'Comment', 'getAll', UA>): MRReturn<'Comment', 'getAll'>\n (opts: MROpts<'Comment', 'create', UA>): MRReturn<'Comment', 'create'>\n (opts: MROpts<'Comment', 'update', UA>): MRReturn<'Comment', 'update'>\n (opts: MROpts<'Comment', 'delete', UA>): MRReturn<'Comment', 'delete'>\n\n (opts: MROpts<'ContentType', 'get', UA>): MRReturn<'ContentType', 'get'>\n (opts: MROpts<'ContentType', 'getMany', UA>): MRReturn<'ContentType', 'getMany'>\n (opts: MROpts<'ContentType', 'update', UA>): MRReturn<'ContentType', 'update'>\n (opts: MROpts<'ContentType', 'create', UA>): MRReturn<'ContentType', 'create'>\n (opts: MROpts<'ContentType', 'createWithId', UA>): MRReturn<'ContentType', 'createWithId'>\n (opts: MROpts<'ContentType', 'delete', UA>): MRReturn<'ContentType', 'delete'>\n (opts: MROpts<'ContentType', 'publish', UA>): MRReturn<'ContentType', 'publish'>\n (opts: MROpts<'ContentType', 'unpublish', UA>): MRReturn<'ContentType', 'unpublish'>\n\n (opts: MROpts<'EditorInterface', 'get', UA>): MRReturn<'EditorInterface', 'get'>\n (opts: MROpts<'EditorInterface', 'getMany', UA>): MRReturn<'EditorInterface', 'getMany'>\n (opts: MROpts<'EditorInterface', 'update', UA>): MRReturn<'EditorInterface', 'update'>\n\n (opts: MROpts<'Environment', 'get', UA>): MRReturn<'Environment', 'get'>\n (opts: MROpts<'Environment', 'getMany', UA>): MRReturn<'Environment', 'getMany'>\n (opts: MROpts<'Environment', 'create', UA>): MRReturn<'Environment', 'create'>\n (opts: MROpts<'Environment', 'createWithId', UA>): MRReturn<'Environment', 'createWithId'>\n (opts: MROpts<'Environment', 'update', UA>): MRReturn<'Environment', 'update'>\n (opts: MROpts<'Environment', 'delete', UA>): MRReturn<'Environment', 'delete'>\n\n (opts: MROpts<'EnvironmentAlias', 'get', UA>): MRReturn<'EnvironmentAlias', 'get'>\n (opts: MROpts<'EnvironmentAlias', 'getMany', UA>): MRReturn<'EnvironmentAlias', 'getMany'>\n (opts: MROpts<'EnvironmentAlias', 'createWithId', UA>): MRReturn<\n 'EnvironmentAlias',\n 'createWithId'\n >\n (opts: MROpts<'EnvironmentAlias', 'update', UA>): MRReturn<'EnvironmentAlias', 'update'>\n (opts: MROpts<'EnvironmentAlias', 'delete', UA>): MRReturn<'EnvironmentAlias', 'delete'>\n\n (opts: MROpts<'EnvironmentTemplate', 'get', UA>): MRReturn<'EnvironmentTemplate', 'get'>\n (opts: MROpts<'EnvironmentTemplate', 'getMany', UA>): MRReturn<'EnvironmentTemplate', 'getMany'>\n (opts: MROpts<'EnvironmentTemplate', 'create', UA>): MRReturn<'EnvironmentTemplate', 'create'>\n (opts: MROpts<'EnvironmentTemplate', 'update', UA>): MRReturn<'EnvironmentTemplate', 'update'>\n (opts: MROpts<'EnvironmentTemplate', 'delete', UA>): MRReturn<'EnvironmentTemplate', 'delete'>\n (opts: MROpts<'EnvironmentTemplate', 'versions', UA>): MRReturn<'EnvironmentTemplate', 'versions'>\n (opts: MROpts<'EnvironmentTemplate', 'versionUpdate', UA>): MRReturn<\n 'EnvironmentTemplate',\n 'versionUpdate'\n >\n (opts: MROpts<'EnvironmentTemplate', 'validate', UA>): MRReturn<'EnvironmentTemplate', 'validate'>\n (opts: MROpts<'EnvironmentTemplate', 'install', UA>): MRReturn<'EnvironmentTemplate', 'install'>\n (opts: MROpts<'EnvironmentTemplate', 'disconnect', UA>): MRReturn<\n 'EnvironmentTemplate',\n 'disconnect'\n >\n\n (opts: MROpts<'EnvironmentTemplateInstallation', 'getMany', UA>): MRReturn<\n 'EnvironmentTemplateInstallation',\n 'getMany'\n >\n (opts: MROpts<'EnvironmentTemplateInstallation', 'getForEnvironment', UA>): MRReturn<\n 'EnvironmentTemplateInstallation',\n 'getForEnvironment'\n >\n\n (opts: MROpts<'Entry', 'getMany', UA>): MRReturn<'Entry', 'getMany'>\n (opts: MROpts<'Entry', 'getPublished', UA>): MRReturn<'Entry', 'getPublished'>\n (opts: MROpts<'Entry', 'get', UA>): MRReturn<'Entry', 'get'>\n (opts: MROpts<'Entry', 'patch', UA>): MRReturn<'Entry', 'patch'>\n (opts: MROpts<'Entry', 'update', UA>): MRReturn<'Entry', 'update'>\n (opts: MROpts<'Entry', 'delete', UA>): MRReturn<'Entry', 'delete'>\n (opts: MROpts<'Entry', 'publish', UA>): MRReturn<'Entry', 'publish'>\n (opts: MROpts<'Entry', 'unpublish', UA>): MRReturn<'Entry', 'unpublish'>\n (opts: MROpts<'Entry', 'archive', UA>): MRReturn<'Entry', 'archive'>\n (opts: MROpts<'Entry', 'unarchive', UA>): MRReturn<'Entry', 'unarchive'>\n (opts: MROpts<'Entry', 'create', UA>): MRReturn<'Entry', 'create'>\n (opts: MROpts<'Entry', 'createWithId', UA>): MRReturn<'Entry', 'createWithId'>\n (opts: MROpts<'Entry', 'references', UA>): MRReturn<'Entry', 'references'>\n\n (opts: MROpts<'Extension', 'get', UA>): MRReturn<'Extension', 'get'>\n (opts: MROpts<'Extension', 'getMany', UA>): MRReturn<'Extension', 'getMany'>\n (opts: MROpts<'Extension', 'create', UA>): MRReturn<'Extension', 'create'>\n (opts: MROpts<'Extension', 'createWithId', UA>): MRReturn<'Extension', 'createWithId'>\n (opts: MROpts<'Extension', 'update', UA>): MRReturn<'Extension', 'update'>\n (opts: MROpts<'Extension', 'delete', UA>): MRReturn<'Extension', 'delete'>\n\n (opts: MROpts<'Locale', 'get', UA>): MRReturn<'Locale', 'get'>\n (opts: MROpts<'Locale', 'getMany', UA>): MRReturn<'Locale', 'getMany'>\n (opts: MROpts<'Locale', 'delete', UA>): MRReturn<'Locale', 'delete'>\n (opts: MROpts<'Locale', 'update', UA>): MRReturn<'Locale', 'update'>\n (opts: MROpts<'Locale', 'create', UA>): MRReturn<'Locale', 'create'>\n\n (opts: MROpts<'Organization', 'getMany', UA>): MRReturn<'Organization', 'getMany'>\n (opts: MROpts<'Organization', 'get', UA>): MRReturn<'Organization', 'get'>\n\n (opts: MROpts<'OrganizationInvitation', 'get', UA>): MRReturn<'OrganizationInvitation', 'get'>\n (opts: MROpts<'OrganizationInvitation', 'create', UA>): MRReturn<\n 'OrganizationInvitation',\n 'create'\n >\n\n (opts: MROpts<'OrganizationMembership', 'get', UA>): MRReturn<'OrganizationMembership', 'get'>\n (opts: MROpts<'OrganizationMembership', 'getMany', UA>): MRReturn<\n 'OrganizationMembership',\n 'getMany'\n >\n (opts: MROpts<'OrganizationMembership', 'update', UA>): MRReturn<\n 'OrganizationMembership',\n 'update'\n >\n (opts: MROpts<'OrganizationMembership', 'delete', UA>): MRReturn<\n 'OrganizationMembership',\n 'delete'\n >\n\n (opts: MROpts<'PersonalAccessToken', 'get', UA>): MRReturn<'PersonalAccessToken', 'get'>\n (opts: MROpts<'PersonalAccessToken', 'getMany', UA>): MRReturn<'PersonalAccessToken', 'getMany'>\n (opts: MROpts<'PersonalAccessToken', 'create', UA>): MRReturn<'PersonalAccessToken', 'create'>\n (opts: MROpts<'PersonalAccessToken', 'revoke', UA>): MRReturn<'PersonalAccessToken', 'revoke'>\n\n (opts: MROpts<'AccessToken', 'get', UA>): MRReturn<'AccessToken', 'get'>\n (opts: MROpts<'AccessToken', 'getMany', UA>): MRReturn<'AccessToken', 'getMany'>\n (opts: MROpts<'AccessToken', 'createPersonalAccessToken', UA>): MRReturn<\n 'AccessToken',\n 'createPersonalAccessToken'\n >\n (opts: MROpts<'AccessToken', 'revoke', UA>): MRReturn<'AccessToken', 'revoke'>\n (opts: MROpts<'AccessToken', 'getManyForOrganization', UA>): MRReturn<\n 'AccessToken',\n 'getManyForOrganization'\n >\n\n (opts: MROpts<'PreviewApiKey', 'get', UA>): MRReturn<'PreviewApiKey', 'get'>\n (opts: MROpts<'PreviewApiKey', 'getMany', UA>): MRReturn<'PreviewApiKey', 'getMany'>\n\n (opts: MROpts<'Release', 'archive', UA>): MRReturn<'Release', 'archive'>\n (opts: MROpts<'Release', 'get', UA>): MRReturn<'Release', 'get'>\n (opts: MROpts<'Release', 'query', UA>): MRReturn<'Release', 'query'>\n (opts: MROpts<'Release', 'create', UA>): MRReturn<'Release', 'create'>\n (opts: MROpts<'Release', 'update', UA>): MRReturn<'Release', 'update'>\n (opts: MROpts<'Release', 'delete', UA>): MRReturn<'Release', 'delete'>\n (opts: MROpts<'Release', 'publish', UA>): MRReturn<'Release', 'publish'>\n (opts: MROpts<'Release', 'unpublish', UA>): MRReturn<'Release', 'unpublish'>\n (opts: MROpts<'Release', 'unarchive', UA>): MRReturn<'Release', 'unarchive'>\n (opts: MROpts<'Release', 'validate', UA>): MRReturn<'Release', 'validate'>\n\n (opts: MROpts<'ReleaseAction', 'get', UA>): MRReturn<'ReleaseAction', 'get'>\n (opts: MROpts<'ReleaseAction', 'getMany', UA>): MRReturn<'ReleaseAction', 'getMany'>\n (opts: MROpts<'ReleaseAction', 'queryForRelease', UA>): MRReturn<\n 'ReleaseAction',\n 'queryForRelease'\n >\n\n (opts: MROpts<'Role', 'get', UA>): MRReturn<'Role', 'get'>\n (opts: MROpts<'Role', 'getMany', UA>): MRReturn<'Role', 'getMany'>\n (opts: MROpts<'Role', 'getManyForOrganization', UA>): MRReturn<'Role', 'getManyForOrganization'>\n (opts: MROpts<'Role', 'create', UA>): MRReturn<'Role', 'create'>\n (opts: MROpts<'Role', 'createWithId', UA>): MRReturn<'Role', 'createWithId'>\n (opts: MROpts<'Role', 'update', UA>): MRReturn<'Role', 'update'>\n (opts: MROpts<'Role', 'delete', UA>): MRReturn<'Role', 'delete'>\n\n (opts: MROpts<'ScheduledAction', 'get', UA>): MRReturn<'ScheduledAction', 'get'>\n (opts: MROpts<'ScheduledAction', 'getMany', UA>): MRReturn<'ScheduledAction', 'getMany'>\n (opts: MROpts<'ScheduledAction', 'create', UA>): MRReturn<'ScheduledAction', 'create'>\n (opts: MROpts<'ScheduledAction', 'update', UA>): MRReturn<'ScheduledAction', 'update'>\n (opts: MROpts<'ScheduledAction', 'delete', UA>): MRReturn<'ScheduledAction', 'delete'>\n\n (opts: MROpts<'Snapshot', 'getManyForEntry', UA>): MRReturn<'Snapshot', 'getManyForEntry'>\n (opts: MROpts<'Snapshot', 'getForEntry', UA>): MRReturn<'Snapshot', 'getForEntry'>\n (opts: MROpts<'Snapshot', 'getManyForContentType', UA>): MRReturn<\n 'Snapshot',\n 'getManyForContentType'\n >\n (opts: MROpts<'Snapshot', 'getForContentType', UA>): MRReturn<'Snapshot', 'getForContentType'>\n\n (opts: MROpts<'Space', 'get', UA>): MRReturn<'Space', 'get'>\n (opts: MROpts<'Space', 'getMany', UA>): MRReturn<'Space', 'getMany'>\n (opts: MROpts<'Space', 'getManyForOrganization', UA>): MRReturn<'Space', 'getManyForOrganization'>\n (opts: MROpts<'Space', 'create', UA>): MRReturn<'Space', 'create'>\n (opts: MROpts<'Space', 'update', UA>): MRReturn<'Space', 'update'>\n (opts: MROpts<'Space', 'delete', UA>): MRReturn<'Space', 'delete'>\n\n (opts: MROpts<'SpaceMember', 'get', UA>): MRReturn<'SpaceMember', 'get'>\n (opts: MROpts<'SpaceMember', 'getMany', UA>): MRReturn<'SpaceMember', 'getMany'>\n\n (opts: MROpts<'SpaceMembership', 'get', UA>): MRReturn<'SpaceMembership', 'get'>\n (opts: MROpts<'SpaceMembership', 'getMany', UA>): MRReturn<'SpaceMembership', 'getMany'>\n (opts: MROpts<'SpaceMembership', 'getForOrganization', UA>): MRReturn<\n 'SpaceMembership',\n 'getForOrganization'\n >\n (opts: MROpts<'SpaceMembership', 'getManyForOrganization', UA>): MRReturn<\n 'SpaceMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'SpaceMembership', 'create', UA>): MRReturn<'SpaceMembership', 'create'>\n (opts: MROpts<'SpaceMembership', 'createWithId', UA>): MRReturn<'SpaceMembership', 'createWithId'>\n (opts: MROpts<'SpaceMembership', 'update', UA>): MRReturn<'SpaceMembership', 'update'>\n (opts: MROpts<'SpaceMembership', 'delete', UA>): MRReturn<'SpaceMembership', 'delete'>\n\n (opts: MROpts<'Tag', 'get', UA>): MRReturn<'Tag', 'get'>\n (opts: MROpts<'Tag', 'getMany', UA>): MRReturn<'Tag', 'getMany'>\n (opts: MROpts<'Tag', 'createWithId', UA>): MRReturn<'Tag', 'createWithId'>\n (opts: MROpts<'Tag', 'update', UA>): MRReturn<'Tag', 'update'>\n (opts: MROpts<'Tag', 'delete', UA>): MRReturn<'Tag', 'delete'>\n\n (opts: MROpts<'Task', 'get', UA>): MRReturn<'Task', 'get'>\n (opts: MROpts<'Task', 'getMany', UA>): MRReturn<'Task', 'getMany'>\n (opts: MROpts<'Task', 'getAll', UA>): MRReturn<'Task', 'getAll'>\n (opts: MROpts<'Task', 'create', UA>): MRReturn<'Task', 'create'>\n (opts: MROpts<'Task', 'update', UA>): MRReturn<'Task', 'update'>\n (opts: MROpts<'Task', 'delete', UA>): MRReturn<'Task', 'delete'>\n\n (opts: MROpts<'Team', 'get', UA>): MRReturn<'Team', 'get'>\n (opts: MROpts<'Team', 'getMany', UA>): MRReturn<'Team', 'getMany'>\n (opts: MROpts<'Team', 'getManyForSpace', UA>): MRReturn<'Team', 'getManyForSpace'>\n (opts: MROpts<'Team', 'create', UA>): MRReturn<'Team', 'create'>\n (opts: MROpts<'Team', 'update', UA>): MRReturn<'Team', 'update'>\n (opts: MROpts<'Team', 'delete', UA>): MRReturn<'Team', 'delete'>\n\n (opts: MROpts<'TeamMembership', 'get', UA>): MRReturn<'TeamMembership', 'get'>\n (opts: MROpts<'TeamMembership', 'getManyForOrganization', UA>): MRReturn<\n 'TeamMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'TeamMembership', 'getManyForTeam', UA>): MRReturn<\n 'TeamMembership',\n 'getManyForTeam'\n >\n (opts: MROpts<'TeamMembership', 'create', UA>): MRReturn<'TeamMembership', 'create'>\n (opts: MROpts<'TeamMembership', 'update', UA>): MRReturn<'TeamMembership', 'update'>\n (opts: MROpts<'TeamMembership', 'delete', UA>): MRReturn<'TeamMembership', 'delete'>\n\n (opts: MROpts<'TeamSpaceMembership', 'get', UA>): MRReturn<'TeamSpaceMembership', 'get'>\n (opts: MROpts<'TeamSpaceMembership', 'getMany', UA>): MRReturn<'TeamSpaceMembership', 'getMany'>\n (opts: MROpts<'TeamSpaceMembership', 'getForOrganization', UA>): MRReturn<\n 'TeamSpaceMembership',\n 'getForOrganization'\n >\n (opts: MROpts<'TeamSpaceMembership', 'getManyForOrganization', UA>): MRReturn<\n 'TeamSpaceMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'TeamSpaceMembership', 'create', UA>): MRReturn<'TeamSpaceMembership', 'create'>\n (opts: MROpts<'TeamSpaceMembership', 'update', UA>): MRReturn<'TeamSpaceMembership', 'update'>\n (opts: MROpts<'TeamSpaceMembership', 'delete', UA>): MRReturn<'TeamSpaceMembership', 'delete'>\n\n (opts: MROpts<'UIConfig', 'get', UA>): MRReturn<'UIConfig', 'get'>\n (opts: MROpts<'UIConfig', 'update', UA>): MRReturn<'UIConfig', 'update'>\n\n (opts: MROpts<'Upload', 'get', UA>): MRReturn<'Entry', 'get'>\n (opts: MROpts<'Upload', 'create', UA>): MRReturn<'Entry', 'create'>\n (opts: MROpts<'Upload', 'delete', UA>): MRReturn<'Entry', 'delete'>\n\n (opts: MROpts<'Usage', 'getManyForSpace', UA>): MRReturn<'Usage', 'getManyForSpace'>\n (opts: MROpts<'Usage', 'getManyForOrganization', UA>): MRReturn<'Usage', 'getManyForOrganization'>\n\n (opts: MROpts<'User', 'getManyForSpace', UA>): MRReturn<'User', 'getManyForSpace'>\n (opts: MROpts<'User', 'getForSpace', UA>): MRReturn<'User', 'getForSpace'>\n (opts: MROpts<'User', 'getCurrent', UA>): MRReturn<'User', 'getCurrent'>\n (opts: MROpts<'User', 'getForOrganization', UA>): MRReturn<'User', 'getForOrganization'>\n (opts: MROpts<'User', 'getManyForOrganization', UA>): MRReturn<'User', 'getManyForOrganization'>\n\n (opts: MROpts<'UserUIConfig', 'get', UA>): MRReturn<'UserUIConfig', 'update'>\n (opts: MROpts<'UserUIConfig', 'update', UA>): MRReturn<'UserUIConfig', 'update'>\n\n (opts: MROpts<'Webhook', 'get', UA>): MRReturn<'Webhook', 'get'>\n (opts: MROpts<'Webhook', 'getMany', UA>): MRReturn<'Webhook', 'getMany'>\n (opts: MROpts<'Webhook', 'getCallDetails', UA>): MRReturn<'Webhook', 'getCallDetails'>\n (opts: MROpts<'Webhook', 'getHealthStatus', UA>): MRReturn<'Webhook', 'getHealthStatus'>\n (opts: MROpts<'Webhook', 'getManyCallDetails', UA>): MRReturn<'Webhook', 'getManyCallDetails'>\n (opts: MROpts<'Webhook', 'getSigningSecret', UA>): MRReturn<'Webhook', 'getSigningSecret'>\n (opts: MROpts<'Webhook', 'getRetryPolicy', UA>): MRReturn<'Webhook', 'getRetryPolicy'>\n (opts: MROpts<'Webhook', 'create', UA>): MRReturn<'Webhook', 'create'>\n (opts: MROpts<'Webhook', 'createWithId', UA>): MRReturn<'Webhook', 'createWithId'>\n (opts: MROpts<'Webhook', 'update', UA>): MRReturn<'Webhook', 'update'>\n (opts: MROpts<'Webhook', 'upsertSigningSecret', UA>): MRReturn<'Webhook', 'upsertSigningSecret'>\n (opts: MROpts<'Webhook', 'upsertRetryPolicy', UA>): MRReturn<'Webhook', 'upsertRetryPolicy'>\n (opts: MROpts<'Webhook', 'delete', UA>): MRReturn<'Webhook', 'delete'>\n (opts: MROpts<'Webhook', 'deleteSigningSecret', UA>): MRReturn<'Webhook', 'deleteSigningSecret'>\n (opts: MROpts<'Webhook', 'deleteRetryPolicy', UA>): MRReturn<'Webhook', 'deleteRetryPolicy'>\n\n (opts: MROpts<'WorkflowDefinition', 'get', UA>): MRReturn<'WorkflowDefinition', 'get'>\n (opts: MROpts<'WorkflowDefinition', 'getMany', UA>): MRReturn<'WorkflowDefinition', 'getMany'>\n (opts: MROpts<'WorkflowDefinition', 'create', UA>): MRReturn<'WorkflowDefinition', 'create'>\n (opts: MROpts<'WorkflowDefinition', 'update', UA>): MRReturn<'WorkflowDefinition', 'update'>\n (opts: MROpts<'WorkflowDefinition', 'delete', UA>): MRReturn<'WorkflowDefinition', 'delete'>\n\n (opts: MROpts<'Workflow', 'getMany', UA>): MRReturn<'Workflow', 'getMany'>\n (opts: MROpts<'Workflow', 'create', UA>): MRReturn<'Workflow', 'create'>\n (opts: MROpts<'Workflow', 'update', UA>): MRReturn<'Workflow', 'update'>\n (opts: MROpts<'Workflow', 'delete', UA>): MRReturn<'Workflow', 'delete'>\n (opts: MROpts<'Workflow', 'complete', UA>): MRReturn<'Workflow', 'complete'>\n\n (opts: MROpts<'WorkflowsChangelog', 'getMany', UA>): MRReturn<'WorkflowsChangelog', 'getMany'>\n}\n\n/**\n * @private\n */\nexport type MakeRequestWithUserAgent = MRInternal\n\n/**\n * @private\n */\nexport type MakeRequest = MRInternal\n\n/**\n * @private\n */\ntype Without = { [P in Exclude]?: never }\n\n/**\n * @private\n */\nexport type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U\n\nexport interface Adapter {\n makeRequest: MakeRequestWithUserAgent\n}\n\n/**\n * @private\n */\nexport type MRActions = {\n Http: {\n get: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n patch: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n post: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n put: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n delete: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n request: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n }\n AppAction: {\n get: { params: GetAppActionParams; return: AppActionProps }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n getManyForEnvironment: {\n params: GetAppActionsForEnvParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetAppActionParams; return: void }\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppActionProps\n return: AppActionProps\n }\n update: {\n params: GetAppActionParams\n payload: CreateAppActionProps\n return: AppActionProps\n }\n }\n AppActionCall: {\n create: {\n params: GetAppActionCallParams\n payload: CreateAppActionCallProps\n return: AppActionCallProps\n }\n getCallDetails: {\n params: GetAppActionCallDetailsParams\n return: AppActionCallResponse\n }\n createWithResponse: {\n params: GetAppActionCallParams\n payload: CreateAppActionCallProps\n return: AppActionCallResponse\n }\n }\n AppBundle: {\n get: { params: GetAppBundleParams; return: AppBundleProps }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetAppBundleParams; return: void }\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppBundleProps\n return: AppBundleProps\n }\n }\n ApiKey: {\n get: { params: GetSpaceParams & { apiKeyId: string }; return: ApiKeyProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetSpaceParams\n payload: CreateApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n createWithId: {\n params: GetSpaceParams & { apiKeyId: string }\n payload: CreateApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n update: {\n params: GetSpaceParams & { apiKeyId: string }\n payload: ApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n delete: { params: GetSpaceParams & { apiKeyId: string }; return: any }\n }\n AppDefinition: {\n get: {\n params: GetOrganizationParams & { appDefinitionId: string }\n return: AppDefinitionProps\n }\n getMany: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetOrganizationParams\n payload: CreateAppDefinitionProps\n return: AppDefinitionProps\n }\n update: {\n params: GetAppDefinitionParams\n payload: AppDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: AppDefinitionProps\n }\n delete: { params: GetAppDefinitionParams; return: any }\n getInstallationsForOrg: {\n params: GetOrganizationParams & { appDefinitionId: string } & SpaceQueryParams\n return: AppInstallationsForOrganizationProps\n }\n }\n AppInstallation: {\n get: { params: GetAppInstallationParams; return: AppInstallationProps }\n getMany: {\n params: GetSpaceEnvironmentParams & PaginationQueryParams\n return: CollectionProp\n }\n upsert: {\n params: GetAppInstallationParams & { acceptAllTerms?: boolean }\n payload: CreateAppInstallationProps\n headers?: RawAxiosRequestHeaders\n return: AppInstallationProps\n }\n delete: { params: GetAppInstallationParams; return: any }\n getForOrganization: {\n params: GetOrganizationParams & { appDefinitionId: string; spaceId?: string }\n return: AppInstallationsForOrganizationProps\n }\n }\n AppUpload: {\n get: {\n params: GetAppUploadParams\n return: AppUploadProps\n }\n delete: {\n params: GetAppUploadParams\n return: void\n }\n create: {\n params: GetOrganizationParams\n payload: { file: string | ArrayBuffer | Stream }\n return: AppUploadProps\n }\n }\n AppDetails: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppDetailsProps\n return: AppDetailsProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppDetailsProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppSignedRequest: {\n create: {\n params: GetAppInstallationParams\n payload: CreateAppSignedRequestProps\n return: AppSignedRequestProps\n }\n }\n AppSigningSecret: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppSigningSecretProps\n return: AppSigningSecretProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppSigningSecretProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppEventSubscription: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppEventSubscriptionProps\n return: AppEventSubscriptionProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppEventSubscriptionProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppKey: {\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppKeyProps\n return: AppKeyProps\n }\n get: {\n params: GetAppDefinitionParams & { fingerprint: string }\n return: AppKeyProps\n }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n delete: {\n params: GetAppDefinitionParams & { fingerprint: string }\n return: void\n }\n }\n AppAccessToken: {\n create: {\n params: GetAppInstallationParams\n payload: CreateAppAccessTokenProps\n return: AppAccessTokenProps\n }\n }\n Asset: {\n getPublished: {\n params: GetSpaceEnvironmentParams & QueryParams\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n get: {\n params: GetSpaceEnvironmentParams & { assetId: string } & QueryParams\n headers?: RawAxiosRequestHeaders\n return: AssetProps\n }\n update: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: AssetProps\n headers?: RawAxiosRequestHeaders\n return: AssetProps\n }\n delete: { params: GetSpaceEnvironmentParams & { assetId: string }; return: any }\n publish: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: AssetProps\n return: AssetProps\n }\n unpublish: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n archive: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n unarchive: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n create: { params: GetSpaceEnvironmentParams; payload: CreateAssetProps; return: AssetProps }\n createWithId: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: CreateAssetProps\n return: AssetProps\n }\n createFromFiles: {\n params: GetSpaceEnvironmentParams & { uploadTimeout?: number }\n payload: Omit\n return: AssetProps\n }\n processForAllLocales: {\n params: GetSpaceEnvironmentParams & {\n asset: AssetProps\n options?: AssetProcessingForLocale\n }\n return: AssetProps\n }\n processForLocale: {\n params: GetSpaceEnvironmentParams & {\n asset: AssetProps\n locale: string\n options?: AssetProcessingForLocale\n }\n return: AssetProps\n }\n }\n AssetKey: {\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateAssetKeyProps\n return: AssetKeyProps\n }\n }\n BulkAction: {\n get: {\n params: GetBulkActionParams\n return: BulkActionProps\n }\n publish: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionPublishPayload\n return: BulkActionProps\n }\n unpublish: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionUnpublishPayload\n return: BulkActionProps\n }\n validate: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionValidatePayload\n return: BulkActionProps\n }\n }\n Comment: {\n get:\n | { params: GetCommentParams & PlainTextBodyFormat; return: CommentProps }\n | { params: GetCommentParams & RichTextBodyFormat; return: RichTextCommentProps }\n getMany:\n | {\n params: GetManyCommentsParams & PlainTextBodyFormat & QueryParams\n return: CollectionProp\n }\n | {\n params: GetManyCommentsParams & QueryParams & RichTextBodyFormat\n return: CollectionProp\n }\n getAll:\n | {\n params: GetManyCommentsParams & QueryParams & PlainTextBodyFormat\n return: CollectionProp\n }\n | {\n params: GetManyCommentsParams & QueryParams & RichTextBodyFormat\n return: CollectionProp\n }\n create:\n | {\n params: CreateCommentParams & PlainTextBodyFormat\n payload: CreateCommentProps\n return: CommentProps\n }\n | {\n params: CreateCommentParams & RichTextBodyFormat\n payload: RichTextCommentBodyPayload\n return: RichTextCommentProps\n }\n update:\n | {\n params: UpdateCommentParams\n payload: UpdateCommentProps\n headers?: RawAxiosRequestHeaders\n return: CommentProps\n }\n | {\n params: UpdateCommentParams\n payload: Omit & RichTextCommentBodyPayload\n headers?: RawAxiosRequestHeaders\n return: RichTextCommentProps\n }\n delete: { params: DeleteCommentParams; return: void }\n }\n ContentType: {\n get: { params: GetContentTypeParams & QueryParams; return: ContentTypeProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateContentTypeProps\n return: ContentTypeProps\n }\n createWithId: {\n params: GetContentTypeParams\n payload: CreateContentTypeProps\n return: ContentTypeProps\n }\n update: {\n params: GetContentTypeParams\n payload: ContentTypeProps\n headers?: RawAxiosRequestHeaders\n return: ContentTypeProps\n }\n delete: { params: GetContentTypeParams; return: any }\n publish: { params: GetContentTypeParams; payload: ContentTypeProps; return: ContentTypeProps }\n unpublish: { params: GetContentTypeParams; return: ContentTypeProps }\n }\n EditorInterface: {\n get: { params: GetEditorInterfaceParams; return: EditorInterfaceProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n update: {\n params: GetEditorInterfaceParams\n payload: EditorInterfaceProps\n headers?: RawAxiosRequestHeaders\n return: EditorInterfaceProps\n }\n }\n Function: {\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n }\n Environment: {\n get: { params: GetSpaceEnvironmentParams; return: EnvironmentProps }\n getMany: {\n params: GetSpaceParams & PaginationQueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: Partial>\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n createWithId: {\n params: GetSpaceEnvironmentParams & { sourceEnvironmentId?: string }\n payload: CreateEnvironmentProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n update: {\n params: GetSpaceEnvironmentParams\n payload: EnvironmentProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n delete: { params: GetSpaceEnvironmentParams; return: any }\n }\n EnvironmentAlias: {\n get: { params: GetSpaceEnvAliasParams; return: EnvironmentAliasProps }\n getMany: {\n params: GetSpaceParams & PaginationQueryParams\n return: CollectionProp\n }\n createWithId: {\n params: GetSpaceEnvAliasParams\n payload: CreateEnvironmentAliasProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentAliasProps\n }\n update: {\n params: GetSpaceEnvAliasParams\n payload: EnvironmentAliasProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentAliasProps\n }\n delete: { params: GetSpaceEnvAliasParams; return: any }\n }\n EnvironmentTemplate: {\n get: {\n params: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n }\n return: EnvironmentTemplateProps\n }\n getMany: {\n params: GetOrganizationParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n }\n return: CursorPaginatedCollectionProp\n }\n create: {\n payload: CreateEnvironmentTemplateProps\n params: GetOrganizationParams\n return: EnvironmentTemplateProps\n }\n versionUpdate: {\n params: GetEnvironmentTemplateParams & {\n version: number\n }\n payload: {\n versionName: string\n versionDescription: string\n }\n return: EnvironmentTemplateProps\n }\n update: {\n params: GetEnvironmentTemplateParams\n payload: EnvironmentTemplateProps\n return: EnvironmentTemplateProps\n }\n delete: {\n params: GetEnvironmentTemplateParams\n return: void\n }\n versions: {\n params: GetEnvironmentTemplateParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n }\n return: CursorPaginatedCollectionProp\n }\n validate: {\n params: EnvironmentTemplateParams & {\n version?: number\n }\n payload: ValidateEnvironmentTemplateInstallationProps\n return: EnvironmentTemplateValidationProps\n }\n install: {\n params: EnvironmentTemplateParams\n payload: CreateEnvironmentTemplateInstallationProps\n return: EnvironmentTemplateInstallationProps\n }\n disconnect: {\n params: EnvironmentTemplateParams\n return: void\n }\n }\n EnvironmentTemplateInstallation: {\n getMany: {\n params: BasicCursorPaginationOptions & {\n environmentId?: string\n environmentTemplateId: string\n organizationId: string\n spaceId?: string\n }\n return: CursorPaginatedCollectionProp\n }\n getForEnvironment: {\n params: BasicCursorPaginationOptions &\n EnvironmentTemplateParams & {\n installationId?: string\n }\n return: CursorPaginatedCollectionProp\n }\n }\n Entry: {\n getPublished: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp>\n }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp>\n }\n get: {\n params: GetSpaceEnvironmentParams & { entryId: string } & QueryParams\n return: EntryProps\n }\n patch: {\n params: GetSpaceEnvironmentParams & { entryId: string; version: number }\n payload: OpPatch[]\n headers?: RawAxiosRequestHeaders\n return: EntryProps\n }\n update: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n payload: EntryProps\n headers?: RawAxiosRequestHeaders\n return: EntryProps\n }\n delete: { params: GetSpaceEnvironmentParams & { entryId: string }; return: any }\n publish: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n payload: EntryProps\n return: EntryProps\n }\n unpublish: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n archive: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n unarchive: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n create: {\n params: GetSpaceEnvironmentParams & { contentTypeId: string }\n payload: CreateEntryProps\n return: EntryProps\n }\n createWithId: {\n params: GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string }\n payload: CreateEntryProps\n return: EntryProps\n }\n references: {\n params: GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n return: EntryReferenceProps\n }\n }\n Extension: {\n get: { params: GetExtensionParams & QueryParams; return: ExtensionProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n createWithId: {\n params: GetExtensionParams\n payload: CreateExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n update: {\n params: GetExtensionParams\n payload: ExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n delete: { params: GetExtensionParams; return: any }\n }\n Locale: {\n get: { params: GetSpaceEnvironmentParams & { localeId: string }; return: LocaleProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetSpaceEnvironmentParams & { localeId: string }; return: any }\n update: {\n params: GetSpaceEnvironmentParams & { localeId: string }\n payload: LocaleProps\n headers?: RawAxiosRequestHeaders\n return: LocaleProps\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateLocaleProps\n headers?: RawAxiosRequestHeaders\n return: LocaleProps\n }\n }\n Organization: {\n getMany: { params: PaginationQueryParams; return: CollectionProp }\n get: { params: GetOrganizationParams; return: OrganizationProp }\n }\n OrganizationInvitation: {\n get: {\n params: { organizationId: string; invitationId: string }\n headers?: RawAxiosRequestHeaders\n return: OrganizationInvitationProps\n }\n create: {\n params: { organizationId: string }\n payload: CreateOrganizationInvitationProps\n headers?: RawAxiosRequestHeaders\n return: OrganizationInvitationProps\n }\n }\n OrganizationMembership: {\n get: { params: GetOrganizationMembershipParams; return: OrganizationMembershipProps }\n getMany: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n update: {\n params: GetOrganizationMembershipParams\n payload: OrganizationMembershipProps\n headers?: RawAxiosRequestHeaders\n return: OrganizationMembershipProps\n }\n delete: { params: GetOrganizationMembershipParams; return: any }\n }\n PersonalAccessToken: {\n get: { params: { tokenId: string }; return: PersonalAccessTokenProp }\n getMany: { params: QueryParams; return: CollectionProp }\n create: {\n params: {}\n payload: CreatePersonalAccessTokenProps\n headers?: RawAxiosRequestHeaders\n return: PersonalAccessTokenProp\n }\n revoke: { params: { tokenId: string }; return: PersonalAccessTokenProp }\n }\n AccessToken: {\n get: { params: { tokenId: string }; return: AccessTokenProp }\n getMany: { params: QueryParams; return: CollectionProp }\n createPersonalAccessToken: {\n params: {}\n payload: CreatePATProps\n headers?: RawAxiosRequestHeaders\n return: AccessTokenProp\n }\n revoke: { params: { tokenId: string }; return: AccessTokenProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n }\n PreviewApiKey: {\n get: { params: GetSpaceParams & { previewApiKeyId: string }; return: PreviewApiKeyProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n }\n Release: {\n archive: {\n params: GetReleaseParams & { version: number }\n return: ReleaseProps\n }\n get: {\n params: GetReleaseParams\n return: ReleaseProps\n }\n query: {\n params: GetSpaceEnvironmentParams & { query?: ReleaseQueryOptions }\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: ReleasePayload\n return: ReleaseProps\n }\n update: {\n params: GetReleaseParams & { version: number }\n payload: ReleasePayload\n return: ReleaseProps\n }\n delete: {\n params: GetReleaseParams\n return: void\n }\n publish: {\n params: GetReleaseParams & { version: number }\n return: ReleaseActionProps<'publish'>\n }\n unarchive: {\n params: GetReleaseParams & { version: number }\n return: ReleaseProps\n }\n unpublish: {\n params: GetReleaseParams & { version: number }\n return: ReleaseActionProps<'unpublish'>\n }\n validate: {\n params: GetReleaseParams\n payload?: ReleaseValidatePayload\n return: ReleaseActionProps<'validate'>\n }\n }\n ReleaseAction: {\n get: {\n params: GetReleaseParams & { actionId: string }\n return: ReleaseAction\n }\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: ReleaseActionQueryOptions }\n return: Collection\n }\n queryForRelease: {\n params: GetReleaseParams & { query?: ReleaseActionQueryOptions }\n return: Collection\n }\n }\n Role: {\n get: { params: GetSpaceParams & { roleId: string }; return: RoleProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: CreateRoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n createWithId: {\n params: GetSpaceParams & { roleId: string }\n payload: CreateRoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n update: {\n params: GetSpaceParams & { roleId: string }\n payload: RoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n delete: { params: GetSpaceParams & { roleId: string }; return: any }\n }\n ScheduledAction: {\n get: {\n params: GetSpaceParams & { scheduledActionId: string; environmentId: string }\n return: ScheduledActionProps\n }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetSpaceParams\n payload: Omit\n return: ScheduledActionProps\n }\n update: {\n params: GetSpaceParams & { scheduledActionId: string; version: number }\n payload: Omit\n return: ScheduledActionProps\n }\n delete: { params: GetSpaceEnvironmentParams & { scheduledActionId: string }; return: any }\n }\n Snapshot: {\n getManyForEntry: {\n params: GetSnapshotForEntryParams & QueryParams\n return: CollectionProp, 'metadata'>>>\n }\n getForEntry: {\n params: GetSnapshotForEntryParams & { snapshotId: string }\n return: SnapshotProps, 'metadata'>>\n }\n getManyForContentType: {\n params: GetSnapshotForContentTypeParams & QueryParams\n return: CollectionProp>\n }\n getForContentType: {\n params: GetSnapshotForContentTypeParams & { snapshotId: string }\n return: SnapshotProps\n }\n }\n Space: {\n get: { params: GetSpaceParams; return: SpaceProps }\n getMany: { params: QueryParams; return: CollectionProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: { organizationId?: string }\n payload: Omit\n headers?: RawAxiosRequestHeaders\n return: any\n }\n update: {\n params: GetSpaceParams\n payload: SpaceProps\n headers?: RawAxiosRequestHeaders\n return: SpaceProps\n }\n delete: { params: GetSpaceParams; return: void }\n }\n SpaceMember: {\n get: { params: GetSpaceParams & { spaceMemberId: string }; return: SpaceMemberProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n }\n SpaceMembership: {\n get: { params: GetSpaceMembershipProps; return: SpaceMembershipProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getForOrganization: {\n params: GetOrganizationParams & { spaceMembershipId: string }\n return: SpaceMembershipProps\n }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: CreateSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n createWithId: {\n params: GetSpaceMembershipProps\n payload: CreateSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n update: {\n params: GetSpaceMembershipProps\n payload: SpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n delete: { params: GetSpaceMembershipProps; return: any }\n }\n Tag: {\n get: { params: GetTagParams; return: TagProps }\n getMany: { params: GetSpaceEnvironmentParams & QueryParams; return: CollectionProp }\n createWithId: { params: GetTagParams; payload: CreateTagProps; return: TagProps }\n update: {\n params: GetTagParams\n payload: UpdateTagProps\n headers?: RawAxiosRequestHeaders\n return: TagProps\n }\n delete: { params: DeleteTagParams; return: any }\n }\n Task: {\n get: { params: GetTaskParams; return: TaskProps }\n getMany: {\n params: GetEntryParams & QueryParams\n return: CollectionProp\n }\n getAll: {\n params: GetEntryParams & QueryParams\n return: CollectionProp\n }\n create: { params: CreateTaskParams; payload: CreateTaskProps; return: TaskProps }\n update: {\n params: UpdateTaskParams\n payload: UpdateTaskProps\n headers?: RawAxiosRequestHeaders\n return: TaskProps\n }\n delete: { params: DeleteTaskParams; return: void }\n }\n Team: {\n get: { params: GetTeamParams; return: TeamProps }\n getMany: { params: GetOrganizationParams & QueryParams; return: CollectionProp }\n getManyForSpace: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetOrganizationParams\n payload: CreateTeamProps\n headers?: RawAxiosRequestHeaders\n return: any\n }\n update: {\n params: GetTeamParams\n payload: TeamProps\n headers?: RawAxiosRequestHeaders\n return: TeamProps\n }\n delete: { params: GetTeamParams; return: any }\n }\n TeamMembership: {\n get: { params: GetTeamMembershipParams; return: TeamMembershipProps }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n getManyForTeam: {\n params: GetTeamParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetTeamParams\n payload: CreateTeamMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamMembershipProps\n }\n update: {\n params: GetTeamMembershipParams\n payload: TeamMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamMembershipProps\n }\n delete: { params: GetTeamMembershipParams; return: any }\n }\n TeamSpaceMembership: {\n get: { params: GetTeamSpaceMembershipParams; return: TeamSpaceMembershipProps }\n getMany: {\n params: GetSpaceParams & QueryParams\n return: CollectionProp\n }\n getForOrganization: {\n params: GetOrganizationParams & { teamSpaceMembershipId: string }\n return: TeamSpaceMembershipProps\n }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams & { teamId?: string }\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams & { teamId: string }\n payload: CreateTeamSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamSpaceMembershipProps\n }\n update: {\n params: GetTeamSpaceMembershipParams\n payload: TeamSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamSpaceMembershipProps\n }\n delete: { params: GetTeamSpaceMembershipParams; return: any }\n }\n UIConfig: {\n get: { params: GetUIConfigParams; return: UIConfigProps }\n update: { params: GetUIConfigParams; payload: UIConfigProps; return: UIConfigProps }\n }\n Upload: {\n get: { params: GetSpaceEnvironmentUploadParams; return: any }\n create: {\n params: GetSpaceEnvironmentParams\n payload: { file: string | ArrayBuffer | Stream }\n return: any\n }\n delete: { params: GetSpaceEnvironmentUploadParams; return: any }\n }\n Usage: {\n getManyForSpace: {\n params: { organizationId: string } & QueryParams\n return: CollectionProp\n }\n getManyForOrganization: {\n params: { organizationId: string } & QueryParams\n return: CollectionProp\n }\n }\n User: {\n getManyForSpace: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getForSpace: { params: GetSpaceParams & { userId: string }; return: UserProps }\n getCurrent: { params?: QueryParams; return: any }\n getForOrganization: { params: GetOrganizationParams & { userId: string }; return: UserProps }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n }\n UserUIConfig: {\n get: { params: GetUserUIConfigParams; return: UserUIConfigProps }\n update: { params: GetUserUIConfigParams; payload: UserUIConfigProps; return: UserUIConfigProps }\n }\n Webhook: {\n get: { params: GetWebhookParams; return: WebhookProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getCallDetails: { params: GetWebhookCallDetailsUrl; return: WebhookCallDetailsProps }\n getHealthStatus: { params: GetWebhookParams; return: WebhookHealthProps }\n getManyCallDetails: {\n params: GetWebhookParams & QueryParams\n return: CollectionProp\n }\n getSigningSecret: { params: GetSpaceParams; return: WebhookSigningSecretProps }\n getRetryPolicy: { params: GetSpaceParams; return: WebhookRetryPolicyProps }\n create: {\n params: GetSpaceParams\n payload: CreateWebhooksProps\n headers?: RawAxiosRequestHeaders\n return: WebhookProps\n }\n createWithId: {\n params: GetWebhookParams\n payload: CreateWebhooksProps\n headers?: RawAxiosRequestHeaders\n return: WebhookProps\n }\n update: { params: GetWebhookParams; payload: WebhookProps; return: WebhookProps }\n upsertSigningSecret: {\n params: GetSpaceParams\n payload: UpsertWebhookSigningSecretPayload\n return: WebhookSigningSecretProps\n }\n upsertRetryPolicy: {\n params: GetSpaceParams\n payload: WebhookRetryPolicyPayload\n return: WebhookRetryPolicyProps\n }\n delete: { params: GetWebhookParams; return: void }\n deleteSigningSecret: { params: GetSpaceParams; return: void }\n deleteRetryPolicy: { params: GetSpaceParams; return: void }\n }\n WorkflowDefinition: {\n get: {\n params: GetWorkflowDefinitionParams\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: WorkflowDefinitionQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n create: {\n params: CreateWorkflowDefinitionParams\n payload: CreateWorkflowDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n update: {\n params: GetWorkflowDefinitionParams\n payload: WorkflowDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n delete: {\n params: DeleteWorkflowDefinitionParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n }\n Workflow: {\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: WorkflowQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n create: {\n params: CreateWorkflowParams\n payload: CreateWorkflowProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowProps\n }\n update: {\n params: GetWorkflowParams\n payload: WorkflowProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowProps\n }\n delete: {\n params: DeleteWorkflowParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n complete: {\n params: CompleteWorkflowParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n }\n WorkflowsChangelog: {\n getMany: {\n params: GetSpaceEnvironmentParams & { query: WorkflowsChangelogQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n }\n}\n\n/**\n * @private\n */\nexport type MROpts<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET],\n UA extends boolean = false\n> = {\n entityType: ET\n action: Action\n} & (UA extends true ? { userAgent: string } : {}) &\n ('params' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['params']\n ? { params?: MRActions[ET][Action]['params'] }\n : { params: MRActions[ET][Action]['params'] }\n : {}) &\n ('payload' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['payload']\n ? { payload?: MRActions[ET][Action]['payload'] }\n : { payload: MRActions[ET][Action]['payload'] }\n : {}) &\n ('headers' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['headers']\n ? { headers?: MRActions[ET][Action]['headers'] }\n : { headers: MRActions[ET][Action]['headers'] }\n : {})\n\n/**\n * @private\n */\nexport type MRReturn<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET]\n> = 'return' extends keyof MRActions[ET][Action] ? Promise : never\n\n/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface MakeRequestPayload {}\n\nexport interface MakeRequestOptions {\n entityType: keyof MRActions\n action: string\n params?: Record\n payload?: Record | OpPatch[] | MakeRequestPayload\n headers?: RawAxiosRequestHeaders\n userAgent: string\n}\n\nexport type EnvironmentTemplateParams = {\n spaceId: string\n environmentId: string\n environmentTemplateId: string\n}\n\nexport type GetAppActionParams = GetAppDefinitionParams & { appActionId: string }\nexport type GetAppActionsForEnvParams = GetSpaceParams & { environmentId?: string }\nexport type GetAppActionCallParams = GetAppInstallationParams & { appActionId: string }\nexport type CreateWithResponseParams = GetAppActionCallParams & {\n retries?: number\n retryInterval?: number\n}\nexport type GetAppActionCallDetailsParams = GetSpaceEnvironmentParams & {\n appActionId: string\n callId: string\n}\nexport type GetAppBundleParams = GetAppDefinitionParams & { appBundleId: string }\nexport type GetAppDefinitionParams = GetOrganizationParams & { appDefinitionId: string }\nexport type GetAppInstallationsForOrgParams = GetOrganizationParams & {\n appDefinitionId: string\n}\nexport type GetAppInstallationParams = GetSpaceEnvironmentParams & { appDefinitionId: string }\nexport type GetBulkActionParams = GetSpaceEnvironmentParams & { bulkActionId: string }\nexport type GetCommentParams = (GetEntryParams | GetCommentParentEntityParams) & {\n commentId: string\n}\nexport type GetContentTypeParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetEditorInterfaceParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetEntryParams = GetSpaceEnvironmentParams & { entryId: string }\nexport type GetExtensionParams = GetSpaceEnvironmentParams & { extensionId: string }\nexport type GetEnvironmentTemplateParams = GetOrganizationParams & { environmentTemplateId: string }\nexport type GetOrganizationParams = { organizationId: string }\nexport type GetReleaseParams = GetSpaceEnvironmentParams & { releaseId: string }\nexport type GetSnapshotForContentTypeParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetSnapshotForEntryParams = GetSpaceEnvironmentParams & { entryId: string }\nexport type GetSpaceEnvAliasParams = GetSpaceParams & { environmentAliasId: string }\nexport type GetSpaceEnvironmentParams = { spaceId: string; environmentId: string }\nexport type GetSpaceEnvironmentUploadParams = GetSpaceEnvironmentParams & { uploadId: string }\nexport type GetSpaceMembershipProps = GetSpaceParams & { spaceMembershipId: string }\nexport type GetSpaceParams = { spaceId: string }\nexport type GetTagParams = GetSpaceEnvironmentParams & { tagId: string }\nexport type GetTaskParams = GetEntryParams & { taskId: string }\nexport type GetTeamMembershipParams = GetTeamParams & { teamMembershipId: string }\nexport type GetTeamParams = { organizationId: string; teamId: string }\nexport type GetTeamSpaceMembershipParams = GetSpaceParams & { teamSpaceMembershipId: string }\nexport type GetWebhookCallDetailsUrl = GetWebhookParams & { callId: string }\nexport type GetWebhookParams = GetSpaceParams & { webhookDefinitionId: string }\nexport type GetOrganizationMembershipParams = GetOrganizationParams & {\n organizationMembershipId: string\n}\n\nexport type GetAppKeyParams = GetAppDefinitionParams & { fingerprint: string }\nexport type GetAppUploadParams = GetOrganizationParams & { appUploadId: string }\nexport type GetWorkflowDefinitionParams = GetSpaceEnvironmentParams & {\n workflowDefinitionId: string\n}\nexport type GetWorkflowParams = GetSpaceEnvironmentParams & {\n workflowId: string\n}\nexport type GetUIConfigParams = GetSpaceEnvironmentParams\nexport type GetUserUIConfigParams = GetUIConfigParams\n\nexport type QueryParams = { query?: QueryOptions }\nexport type SpaceQueryParams = { query?: SpaceQueryOptions }\nexport type PaginationQueryParams = { query?: PaginationQueryOptions }\nexport enum ScheduledActionReferenceFilters {\n contentTypeAnnotationNotIn = 'sys.contentType.metadata.annotations.ContentType[nin]',\n}\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\n\nimport { toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n Collection,\n CollectionProp,\n CursorPaginatedCollection,\n CursorPaginatedCollectionProp,\n MakeRequest,\n} from './common-types'\n\n/**\n * @private\n */\nexport const wrapCollection =\n (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) =>\n (makeRequest: MakeRequest, data: CollectionProp, ...rest: Rest): Collection => {\n const collectionData = toPlainObject(copy(data))\n // @ts-expect-error\n collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest))\n // @ts-expect-error\n return collectionData\n }\n\nexport const wrapCursorPaginatedCollection =\n (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) =>\n (\n makeRequest: MakeRequest,\n data: CursorPaginatedCollectionProp,\n ...rest: Rest\n ): CursorPaginatedCollection => {\n const collectionData = toPlainObject(copy(data))\n // @ts-expect-error\n collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest))\n // @ts-expect-error\n return collectionData\n }\nexport function isSuccessful(statusCode: number) {\n return statusCode < 300\n}\n\nexport function shouldRePoll(statusCode: number) {\n return [404, 422, 429, 400].includes(statusCode)\n}\n\nexport async function waitFor(ms = 1000) {\n return new Promise((resolve) => setTimeout(resolve, ms))\n}\n","import { ContentFields, ContentTypeFieldValidation } from '../../entities/content-type-fields'\nimport { in_ } from './types'\n\nconst DROPDOWN_TYPES = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']\n\nconst INTERNAL_TO_API = {\n Symbol: { type: 'Symbol' },\n Text: { type: 'Text' },\n RichText: { type: 'RichText' },\n Integer: { type: 'Integer' },\n Number: { type: 'Number' },\n Boolean: { type: 'Boolean' },\n Date: { type: 'Date' },\n Location: { type: 'Location' },\n Object: { type: 'Object' },\n File: { type: 'File' },\n\n Entry: { type: 'Link', linkType: 'Entry' },\n Asset: { type: 'Link', linkType: 'Asset' },\n Resource: { type: 'ResourceLink' },\n\n Symbols: { type: 'Array', items: { type: 'Symbol' } },\n Entries: { type: 'Array', items: { type: 'Link', linkType: 'Entry' } },\n Assets: { type: 'Array', items: { type: 'Link', linkType: 'Asset' } },\n Resources: { type: 'Array', items: { type: 'ResourceLink' } },\n} as const\n\nexport const FIELD_TYPES = Object.keys(INTERNAL_TO_API) as Array\n\n/**\n * Returns an internal string identifier for an API field object.\n *\n * We use this string as a simplified reference to field types.\n * Possible values are:\n *\n * - Symbol\n * - Symbols\n * - Text\n * - RichText\n * - Integer\n * - Number\n * - Boolean\n * - Date\n * - Location\n * - Object\n * - Entry\n * - Entries\n * - Asset\n * - Assets\n * - File\n */\nexport function toInternalFieldType(api: Partial) {\n return FIELD_TYPES.find((key) => {\n const internalApi = INTERNAL_TO_API[key]\n const stripped = {\n type: api.type,\n linkType: api.linkType,\n items: api.items,\n }\n if (stripped.items) {\n stripped.items = { type: stripped.items.type, linkType: stripped.items.linkType }\n }\n\n if (internalApi.type === 'Link') {\n return internalApi.linkType === stripped.linkType\n }\n\n if (internalApi.type === 'Array' && internalApi.items && stripped.items) {\n if (internalApi.items.type === 'Link') {\n return internalApi.items.linkType === stripped.items.linkType\n }\n return internalApi.items.type === stripped.items.type\n }\n\n return internalApi.type === stripped.type\n })\n}\n\nexport const DEFAULTS_WIDGET = {\n Text: { widgetId: 'markdown' },\n Symbol: { widgetId: 'singleLine' },\n Integer: { widgetId: 'numberEditor' },\n Number: { widgetId: 'numberEditor' },\n Boolean: { widgetId: 'boolean' },\n Date: { widgetId: 'datePicker' },\n Location: { widgetId: 'locationEditor' },\n Object: { widgetId: 'objectEditor' },\n RichText: { widgetId: 'richTextEditor' },\n Entry: { widgetId: 'entryLinkEditor' },\n Asset: { widgetId: 'assetLinkEditor' },\n Symbols: { widgetId: 'tagEditor' },\n Entries: { widgetId: 'entryLinksEditor' },\n Assets: { widgetId: 'assetLinksEditor' },\n File: { widgetId: 'fileEditor' },\n Resource: { widgetId: 'resourceLinkEditor' },\n Resources: { widgetId: 'resourceLinksEditor' },\n}\n\nexport const DEFAULTS_SETTINGS = {\n Boolean: {\n falseLabel: 'No',\n helpText: null,\n trueLabel: 'Yes',\n },\n Date: {\n helpText: null,\n ampm: '24',\n format: 'timeZ',\n },\n Entry: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n Asset: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n\n Entries: {\n helpText: null,\n bulkEditing: false,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n Assets: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n} as const\n\ninterface DefaultWidget {\n widgetId: string\n settings?: {\n helpText: null | string\n }\n fieldId: string\n widgetNamespace: 'builtin'\n}\n\nfunction getDefaultWidget(field: keyof typeof DEFAULTS_WIDGET, fieldId: string) {\n const defaultWidget: DefaultWidget = {\n ...(DEFAULTS_WIDGET[field] as Pick),\n settings: {\n helpText: null,\n },\n widgetNamespace: 'builtin',\n fieldId,\n }\n if (in_(field, DEFAULTS_SETTINGS)) {\n defaultWidget.settings = {\n ...defaultWidget.settings,\n ...DEFAULTS_SETTINGS[field],\n }\n }\n return defaultWidget\n}\n\n/**\n * Given our internal identifier returns a minimal API field object.\n */\nexport function toApiFieldType(internal: keyof typeof INTERNAL_TO_API) {\n return INTERNAL_TO_API[internal]\n}\n\n/*\n * Gets the default widget ID for a field:\n * - If a field allows predefined values then `dropdown` widget is used\n * in the presence of the `in` validation.\n * - If a Text field is a title then the `singleLine` widget is used.\n * - Otherwise a simple type-to-editor mapping is used.\n */\nexport default function getDefaultControlOfField(field: ContentFields) {\n const fieldType = toInternalFieldType(field)\n\n if (!fieldType) {\n throw new Error('Invalid field type')\n }\n\n const hasInValidation = (field.validations || []).find(\n (v: ContentTypeFieldValidation) => 'in' in v\n )\n\n if (hasInValidation && DROPDOWN_TYPES.includes(fieldType)) {\n return {\n widgetId: 'dropdown',\n fieldId: field.id,\n widgetNameSpace: 'builtin',\n }\n }\n\n return getDefaultWidget(fieldType, field.id)\n}\n","import { DEFAULT_EDITOR_ID, WidgetNamespace } from './types'\n\nexport const EntryEditorWidgetTypes = {\n DEFAULT_EDITOR: {\n name: 'Editor',\n id: DEFAULT_EDITOR_ID,\n icon: 'Entry',\n },\n REFERENCE_TREE: {\n name: 'References',\n id: 'reference-tree',\n icon: 'References',\n },\n TAGS_EDITOR: {\n name: 'Tags',\n id: 'tags-editor',\n icon: 'Tags',\n },\n}\n\nconst DefaultEntryEditor = {\n widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name,\n}\n\nconst ReferencesEntryEditor = {\n widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.REFERENCE_TREE.name,\n}\n\nconst TagsEditor = {\n widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.TAGS_EDITOR.name,\n}\n\nexport const EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]\n","import { SidebarAssetConfiguration, SidebarEntryConfiguration } from './sidebar-defaults'\nimport { EntryConfiguration } from './editors-defaults'\nimport getDefaultControlOfField from './controls-defaults'\n\nexport default {\n SidebarEntryConfiguration,\n SidebarAssetConfiguration,\n EntryConfiguration,\n getDefaultControlOfField,\n}\n","import { WidgetNamespace } from './types'\n\nconst SidebarWidgetTypes = {\n USERS: 'users-widget',\n CONTENT_PREVIEW: 'content-preview-widget',\n TRANSLATION: 'translation-widget',\n INCOMING_LINKS: 'incoming-links-widget',\n PUBLICATION: 'publication-widget',\n RELEASES: 'releases-widget',\n VERSIONS: 'versions-widget',\n INFO_PANEL: 'info-panel',\n JOBS: 'jobs-widget',\n COMMENTS_PANEL: 'comments-panel',\n}\n\nconst Publication = {\n widgetId: SidebarWidgetTypes.PUBLICATION,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Publish & Status',\n description: 'Built-in - View entry status, publish, etc.',\n}\n\nconst Releases = {\n widgetId: SidebarWidgetTypes.RELEASES,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Release',\n description: 'Built-in - View release, add to it, etc.',\n}\n\nconst ContentPreview = {\n widgetId: SidebarWidgetTypes.CONTENT_PREVIEW,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Preview',\n description: 'Built-in - Displays preview functionality.',\n}\n\nconst Links = {\n widgetId: SidebarWidgetTypes.INCOMING_LINKS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Links',\n description: 'Built-in - Shows where an entry is linked.',\n}\n\nconst Translation = {\n widgetId: SidebarWidgetTypes.TRANSLATION,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Translation',\n description: 'Built-in - Manage which translations are visible.',\n}\n\nconst Versions = {\n widgetId: SidebarWidgetTypes.VERSIONS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Versions',\n description:\n 'Built-in - View previously published versions. Available only for master environment.',\n}\n\nconst Users = {\n widgetId: SidebarWidgetTypes.USERS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Users',\n description: 'Built-in - Displays users on the same entry.',\n}\n\nexport const SidebarEntryConfiguration = [\n Publication,\n Releases,\n ContentPreview,\n Links,\n Translation,\n Versions,\n Users,\n]\n\nexport const SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users]\n","export enum WidgetNamespace {\n BUILTIN = 'builtin',\n EXTENSION = 'extension',\n SIDEBAR_BUILTIN = 'sidebar-builtin',\n APP = 'app',\n EDITOR_BUILTIN = 'editor-builtin',\n}\n\nexport const DEFAULT_EDITOR_ID = 'default-editor'\n\n/**\n * @private\n */\nexport const in_ = (key: K, object: O): key is K & keyof O =>\n key in object\n","/**\n * @packageDocumentation\n * @hidden\n */\n\nimport { Adapter } from './common-types'\nimport { RestAdapter, RestAdapterParams } from './adapters/REST/rest-adapter'\n\nexport type AdapterParams = {\n apiAdapter: Adapter\n}\n\n/**\n * @private\n */\nexport function createAdapter(params: RestAdapterParams | AdapterParams): Adapter {\n if ('apiAdapter' in params) {\n return params.apiAdapter\n } else {\n return new RestAdapter(params)\n }\n}\n","import { MakeRequest, QueryOptions, SpaceQueryOptions } from './common-types'\nimport entities from './entities'\nimport { CreateAppBundleProps } from './entities/app-bundle'\nimport { AppDefinitionProps, wrapAppDefinition } from './entities/app-definition'\n\n/**\n * @private\n */\nexport type ContentfulAppDefinitionAPI = ReturnType\n\n/**\n * @private\n */\nexport default function createAppDefinitionApi(makeRequest: MakeRequest) {\n const { wrapAppBundle, wrapAppBundleCollection } = entities.appBundle\n\n const getParams = (data: AppDefinitionProps) => ({\n appDefinitionId: data.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => {\n * appDefinition.name = 'New App Definition name'\n * return appDefinition.update()\n * })\n * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update: function update() {\n const data = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'update',\n params: getParams(data),\n headers: {},\n payload: data,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.delete())\n * .then(() => console.log(`App Definition deleted.`))\n * .catch(console.error)\n * ```\n */\n delete: function del() {\n const data = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'delete',\n params: getParams(data),\n })\n },\n\n /**\n * Gets an app bundle\n * @param id - AppBundle ID\n * @return Promise for an AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundle(''))\n * .then((appBundle) => console.log(appBundle))\n * .catch(console.error)\n * ```\n */\n getAppBundle(id: string) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'get',\n params: {\n appBundleId: id,\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n },\n }).then((data) => wrapAppBundle(makeRequest, data))\n },\n\n /**\n * Gets a collection of AppBundles\n * @return Promise for a collection of AppBundles\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppBundles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'getMany',\n params: { organizationId: raw.sys.organization.sys.id, appDefinitionId: raw.sys.id, query },\n }).then((data) => wrapAppBundleCollection(makeRequest, data))\n },\n\n /**\n * Creates an app bundle\n * @param Object representation of the App Bundle to be created\n * @return Promise for the newly created AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.createAppBundle(''))\n * .then((appBundle) => console.log(appBundle))\n * .catch(console.error)\n * ```\n */\n createAppBundle(data: CreateAppBundleProps) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'create',\n params: {\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n },\n payload: data,\n }).then((data) => wrapAppBundle(makeRequest, data))\n },\n\n /**\n * Gets a list of App Installations across an org for given organization and App Definition\n * If a spaceId is provided in the query object, it will return the App Installations for that specific space.\n * @return Promise for the newly created AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getAppDefinition('', '')\n * .then((appDefinition) => appDefinition.getInstallationsForOrg(\n * { spaceId: '' } // optional\n * ))\n * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items))\n * .catch(console.error)\n * ```\n */\n getInstallationsForOrg(query: SpaceQueryOptions = {}) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'getInstallationsForOrg',\n params: {\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n query,\n },\n })\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport {\n Collection,\n MakeRequest,\n PaginationQueryParams,\n QueryOptions,\n QueryParams,\n GetAppDefinitionParams,\n CursorPaginatedCollection,\n GetEnvironmentTemplateParams,\n BasicCursorPaginationOptions,\n} from './common-types'\nimport entities from './entities'\nimport { Organization, OrganizationProp } from './entities/organization'\nimport { CreatePersonalAccessTokenProps } from './entities/personal-access-token'\nimport { Space, SpaceProps } from './entities/space'\nimport { AppDefinition } from './entities/app-definition'\nimport { UsageQuery } from './entities/usage'\nimport { UserProps } from './entities/user'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplate,\n EnvironmentTemplateProps,\n} from './entities/environment-template'\nimport { RawAxiosRequestConfig } from 'axios'\n\nexport type ClientAPI = ReturnType\ntype CreateSpaceProps = Omit & { defaultLocale?: string }\n\n/**\n * @private\n */\nexport default function createClientApi(makeRequest: MakeRequest) {\n const { wrapSpace, wrapSpaceCollection } = entities.space\n const { wrapUser } = entities.user\n const { wrapPersonalAccessToken, wrapPersonalAccessTokenCollection } =\n entities.personalAccessToken\n const { wrapAccessToken, wrapAccessTokenCollection } = entities.accessToken\n const { wrapOrganization, wrapOrganizationCollection } = entities.organization\n const { wrapUsageCollection } = entities.usage\n const { wrapAppDefinition } = entities.appDefinition\n const { wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection } =\n entities.environmentTemplate\n\n return {\n /**\n * Gets all environment templates for a given organization with the lasted version\n * @param organizationId - Organization ID\n * @return Promise for a collection of EnvironmentTemplates\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplates('')\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironmentTemplates: function getEnvironmentTemplates(\n organizationId: string,\n query: BasicCursorPaginationOptions & { select?: string } = {}\n ): Promise> {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'getMany',\n params: { organizationId, query: createRequestConfig({ query }).params },\n }).then((data) => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId))\n },\n /**\n * Gets the lasted version environment template if params.version is not specified\n * @param params.organizationId - Organization ID\n * @param params.environmentTemplateId - Environment template ID\n * @param [params.version] - Template version number to return a specific version of the environment template\n * @return Promise for a EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate({\n * organizationId: '',\n * environmentTemplateId: '',\n * version: version>\n * })\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n getEnvironmentTemplate: function getEnvironmentTemplate({\n organizationId,\n environmentTemplateId,\n version,\n query = {},\n }: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n }): Promise {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'get',\n params: {\n organizationId,\n environmentTemplateId,\n version,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Creates an environment template\n * @param organizationId - Organization ID\n * @param environmentTemplateData - Object representation of the environment template to be created\n * @return Promise for the newly created EnvironmentTemplate\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createEnvironmentTemplate('', {})\n * .then((environmentTemplate) => console.log(environmentTemplate))\n * .catch(console.error)\n * ```\n */\n createEnvironmentTemplate: function createEnvironmentTemplate(\n organizationId: string,\n environmentTemplateData: CreateEnvironmentTemplateProps\n ): Promise {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'create',\n params: { organizationId },\n payload: environmentTemplateData,\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Gets all spaces\n * @return Promise for a collection of Spaces\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpaces()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getSpaces: function getSpaces(\n query: QueryOptions = {}\n ): Promise> {\n return makeRequest({\n entityType: 'Space',\n action: 'getMany',\n params: { query: createRequestConfig({ query: query }).params },\n }).then((data) => wrapSpaceCollection(makeRequest, data))\n },\n\n /**\n * Gets a space\n * @param spaceId - Space ID\n * @return Promise for a Space\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n getSpace: function getSpace(spaceId: string): Promise {\n return makeRequest({\n entityType: 'Space',\n action: 'get',\n params: { spaceId },\n }).then((data) => wrapSpace(makeRequest, data))\n },\n\n /**\n * Creates a space\n * @param spaceData - Object representation of the Space to be created\n * @param organizationId - Organization ID, if the associated token can manage more than one organization.\n * @return Promise for the newly created Space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createSpace({\n * name: 'Name of new space'\n * })\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n createSpace: function createSpace(\n spaceData: CreateSpaceProps,\n organizationId: string\n ): Promise {\n return makeRequest({\n entityType: 'Space',\n action: 'create',\n params: { organizationId },\n payload: spaceData,\n }).then((data) => wrapSpace(makeRequest, data))\n },\n\n /**\n * Gets an organization\n * @param id - Organization ID\n * @return Promise for a Organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => console.log(org))\n * .catch(console.error)\n * ```\n */\n getOrganization: function getOrganization(id: string): Promise {\n return makeRequest({\n entityType: 'Organization',\n action: 'get',\n params: { organizationId: id },\n }).then((data) => wrapOrganization(makeRequest, data))\n },\n\n /**\n * Gets a collection of Organizations\n * @return Promise for a collection of Organizations\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizations()\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getOrganizations: function getOrganizations(\n query: PaginationQueryParams['query'] = {}\n ): Promise> {\n return makeRequest({\n entityType: 'Organization',\n action: 'getMany',\n params: { query: createRequestConfig({ query }).params },\n }).then((data) => wrapOrganizationCollection(makeRequest, data))\n },\n\n /**\n * Gets the authenticated user\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getCurrentUser()\n * .then(user => console.log(user.firstName))\n * .catch(console.error)\n * ```\n */\n getCurrentUser: function getCurrentUser(params?: QueryParams): Promise {\n return makeRequest({\n entityType: 'User',\n action: 'getCurrent',\n params,\n }).then((data) => wrapUser(makeRequest, data))\n },\n\n /**\n * Gets App Definition\n * @return Promise for App Definition\n * @param organizationId - Id of the organization where the app is installed\n * @param appDefinitionId - Id of the app that will be returned\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAppDefinition(<'org_id'>, <'app_id'>)\n * .then(appDefinition => console.log(appDefinition.name))\n * .catch(console.error)\n * ```\n */\n\n getAppDefinition: function getAppDefinition(\n params: GetAppDefinitionParams\n ): Promise {\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'get',\n params,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Creates a personal access token\n * @param data - personal access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createPersonalAccessToken(\n * {\n * \"name\": \"My Token\",\n * \"scope\": [\n * \"content_management_manage\"\n * ]\n * }\n * )\n * .then(personalAccessToken => console.log(personalAccessToken.token))\n * .catch(console.error)\n * ```\n */\n createPersonalAccessToken: function createPersonalAccessToken(\n data: CreatePersonalAccessTokenProps\n ) {\n return makeRequest({\n /**\n * When the `PersonalAccessToken` entity is removed, replace the `entityType` with `AccessToken`\n * and update the action to `createPersonalToken` to ultilize the new entity called AccessToken.\n */\n entityType: 'PersonalAccessToken',\n action: 'create',\n params: {},\n payload: data,\n }).then((response) => wrapPersonalAccessToken(makeRequest, response))\n },\n\n /**\n * @deprecated - use getAccessToken instead\n *\n * Gets a personal access token\n * @param data - personal access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getPersonalAccessToken(tokenId)\n * .then(token => console.log(token.token))\n * .catch(console.error)\n * ```\n */\n getPersonalAccessToken: function getPersonalAccessToken(tokenId: string) {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'get',\n params: { tokenId },\n }).then((data) => wrapPersonalAccessToken(makeRequest, data))\n },\n\n /**\n * @deprecated - use getAccessTokens instead\n *\n * Gets all personal access tokens\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getPersonalAccessTokens()\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getPersonalAccessTokens: function getPersonalAccessTokens() {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'getMany',\n params: {},\n }).then((data) => wrapPersonalAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Gets a users access token\n * @param data - users access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAccessToken(tokenId)\n * .then(token => console.log(token.token))\n * .catch(console.error)\n * ```\n */\n getAccessToken: function getAccessToken(tokenId: string) {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'get',\n params: { tokenId },\n }).then((data) => wrapAccessToken(makeRequest, data))\n },\n\n /**\n * Gets all user access tokens\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAccessTokens()\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getAccessTokens: function getAccessTokens() {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'getMany',\n params: {},\n }).then((data) => wrapAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization.\n *\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizationAccessTokens(organizationId)\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationAccessTokens: function getOrganizationAccessTokens(\n organizationId: string,\n query: QueryOptions = {}\n ) {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'getManyForOrganization',\n params: { organizationId, query },\n }).then((data) => wrapAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Get organization usage grouped by {@link UsageMetricEnum metric}\n *\n * @param organizationId - Id of an organization\n * @param query - Query parameters\n * @return Promise of a collection of usages\n * @example ```javascript\n *\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizationUsage('', {\n * 'metric[in]': 'cma,gql',\n * 'dateRange.startAt': '2019-10-22',\n * 'dateRange.endAt': '2019-11-10'\n * }\n * })\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationUsage: function getOrganizationUsage(\n organizationId: string,\n query: QueryOptions = {}\n ) {\n return makeRequest({\n entityType: 'Usage',\n action: 'getManyForOrganization',\n params: { organizationId, query },\n }).then((data) => wrapUsageCollection(makeRequest, data))\n },\n\n /**\n * Get organization usage grouped by space and metric\n *\n * @param organizationId - Id of an organization\n * @param query - Query parameters\n * @return Promise of a collection of usages\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpaceUsage('', {\n * skip: 0,\n * limit: 10,\n * 'metric[in]': 'cda,cpa,gql',\n * 'dateRange.startAt': '2019-10-22',\n * 'dateRange.endAt': '2020-11-30'\n * }\n * })\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getSpaceUsage: function getSpaceUsage(organizationId: string, query: UsageQuery = {}) {\n return makeRequest({\n entityType: 'Usage',\n action: 'getManyForSpace',\n params: {\n organizationId,\n query,\n },\n }).then((data) => wrapUsageCollection(makeRequest, data))\n },\n\n /**\n * Make a custom request to the Contentful management API's /spaces endpoint\n * @param opts - axios request options (https://github.com/mzabriskie/axios)\n * @return Promise for the response data\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.rawRequest({\n * method: 'GET',\n * url: '/custom/path'\n * })\n * .then((responseData) => console.log(responseData))\n * .catch(console.error)\n * ```\n */\n rawRequest: function rawRequest({ url, ...config }: RawAxiosRequestConfig & { url: string }) {\n return makeRequest({\n entityType: 'Http',\n action: 'request',\n params: { url, config },\n })\n },\n }\n}\n","import type { OpPatch } from 'json-patch'\nimport { MakeRequest } from './common-types'\nimport { CreateCommentParams, CreateCommentProps } from './entities/comment'\nimport { Entry, EntryProps, EntryReferenceOptionsProps } from './entities/entry'\nimport { CreateTaskProps } from './entities/task'\nimport * as checks from './plain/checks'\nimport entities from './entities'\n\n/**\n * @private\n */\nexport type ContentfulEntryApi = ReturnType\n\n/**\n * @private\n */\nexport default function createEntryApi(makeRequest: MakeRequest) {\n const { wrapEntry, wrapEntryCollection } = entities.entry\n const { wrapSnapshot, wrapSnapshotCollection } = entities.snapshot\n const { wrapTask, wrapTaskCollection } = entities.task\n const { wrapComment, wrapCommentCollection } = entities.comment\n\n const getParams = (self: Entry) => {\n const entry = self.toPlainObject() as EntryProps\n\n return {\n params: {\n spaceId: entry.sys.space.sys.id,\n environmentId: entry.sys.environment.sys.id,\n entryId: entry.sys.id,\n },\n raw: entry,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => {\n * entry.fields.title['en-US'] = 'New entry title'\n * return entry.update()\n * })\n * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update: function update() {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'update',\n params,\n payload: raw,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Sends an JSON patch to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.patch([\n * {\n * op: 'replace',\n * path: '/fields/title/en-US',\n * value: 'New entry title'\n * }\n * ]))\n * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n patch: function patch(ops: OpPatch[]) {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'patch',\n params: {\n ...params,\n version: raw.sys.version,\n },\n payload: ops,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.delete())\n * .then(() => console.log(`Entry deleted.`))\n * .catch(console.error)\n * ```\n */\n delete: function del() {\n const { params } = getParams(this)\n\n return makeRequest({ entityType: 'Entry', action: 'delete', params })\n },\n\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.publish())\n * .then((entry) => console.log(`Entry ${entry.sys.id} published.`))\n * .catch(console.error)\n * ```\n */\n publish: function publish() {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'publish',\n params,\n payload: raw,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.unpublish())\n * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`))\n * .catch(console.error)\n * ```\n */\n\n unpublish: function unpublish() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'unpublish',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Archives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.archive())\n * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`))\n * .catch(console.error)\n * ```\n */\n archive: function archive() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'archive',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Unarchives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.unarchive())\n * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`))\n * .catch(console.error)\n * ```\n */\n unarchive: function unarchive() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'unarchive',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Gets all snapshots of an entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getSnapshots())\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getSnapshots: function (query = {}) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForEntry',\n params: { ...params, query },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n /**\n * Gets a snapshot of an entry\n * @param snapshotId - Id of the snapshot\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getSnapshot(''))\n * .then((snapshot) => console.log(snapshot))\n * .catch(console.error)\n * ```\n */\n getSnapshot: function (snapshotId: string) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getForEntry',\n params: { ...params, snapshotId },\n }).then((data) => wrapSnapshot(makeRequest, data))\n },\n\n /**\n * Creates a new comment for an entry\n * @param data Object representation of the Comment to be created\n * @returns Promise for the newly created Comment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.createComment({\n * body: 'Something left to do'\n * }))\n * .then((comment) => console.log(comment))\n * .catch(console.error)\n * ```\n */\n createComment: function (data: CreateCommentProps) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'create',\n params: {\n spaceId: params.spaceId,\n environmentId: params.environmentId,\n parentEntityId: params.entryId,\n parentEntityType: 'Entry',\n } as CreateCommentParams,\n payload: data,\n }).then((data) => wrapComment(makeRequest, data))\n },\n\n /**\n * Gets all comments of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getComments())\n * .then((comments) => console.log(comments))\n * .catch(console.error)\n * ```\n */\n getComments: function () {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'getMany',\n params,\n }).then((data) => wrapCommentCollection(makeRequest, data))\n },\n\n /**\n * Gets a comment of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getComment(``))\n * .then((comment) => console.log(comment))\n * .catch(console.error)\n * ```\n */\n getComment: function (id: string) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'get',\n params: {\n ...params,\n commentId: id,\n },\n }).then((data) => wrapComment(makeRequest, data))\n },\n\n /**\n * Creates a new task for an entry\n * @param data Object representation of the Task to be created\n * @returns Promise for the newly created Task\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.createTask({\n * body: 'Something left to do',\n * assignedTo: '',\n * status: 'active'\n * }))\n * .then((task) => console.log(task))\n * .catch(console.error)\n * ```\n */\n createTask: function (data: CreateTaskProps) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'create',\n params,\n payload: data,\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n /**\n * Gets all tasks of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getTasks())\n * .then((tasks) => console.log(tasks))\n * .catch(console.error)\n * ```\n */\n getTasks: function (query = {}) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'getMany',\n params: { ...params, query },\n }).then((data) => wrapTaskCollection(makeRequest, data))\n },\n\n /**\n * Gets a task of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getTask(``))\n * .then((task) => console.log(task))\n * .catch(console.error)\n * ```\n */\n getTask: function (id: string) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'get',\n params: {\n ...params,\n taskId: id,\n },\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n /**\n * Checks if the entry is published. A published entry might have unpublished changes\n */\n isPublished: function isPublished() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isPublished(raw)\n },\n\n /**\n * Checks if the entry is updated. This means the entry was previously published but has unpublished changes.\n */\n isUpdated: function isUpdated() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isUpdated(raw)\n },\n\n /**\n * Checks if the entry is in draft mode. This means it is not published.\n */\n isDraft: function isDraft() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isDraft(raw)\n },\n\n /**\n * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs.\n */\n isArchived: function isArchived() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isArchived(raw)\n },\n\n /**\n * Recursively collects references of an entry and their descendants\n */\n references: function references(options?: EntryReferenceOptionsProps) {\n const raw = this.toPlainObject() as EntryProps\n return makeRequest({\n entityType: 'Entry',\n action: 'references',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.environment.sys.id,\n entryId: raw.sys.id,\n include: options?.include,\n },\n }).then((response) => wrapEntryCollection(makeRequest, response))\n },\n }\n}\n","import { Stream } from 'stream'\nimport { createRequestConfig } from 'contentful-sdk-core'\nimport type { BasicCursorPaginationOptions, QueryOptions } from './common-types'\nimport { BasicQueryOptions, MakeRequest } from './common-types'\nimport entities from './entities'\nimport type { CreateAppInstallationProps } from './entities/app-installation'\nimport type { CreateAppSignedRequestProps } from './entities/app-signed-request'\nimport type { CreateAppActionCallProps } from './entities/app-action-call'\nimport type {\n AssetFileProp,\n AssetProps,\n CreateAssetFromFilesOptions,\n CreateAssetProps,\n} from './entities/asset'\nimport type { CreateAssetKeyProps } from './entities/asset-key'\nimport type {\n BulkAction,\n BulkActionPayload,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\n\nimport {\n ReleaseActionQueryOptions,\n wrapReleaseAction,\n wrapReleaseActionCollection,\n} from './entities/release-action'\n\nimport {\n wrapRelease,\n ReleasePayload,\n wrapReleaseCollection,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from './entities/release'\n\nimport type { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'\nimport type {\n CreateEntryProps,\n EntryProps,\n EntryReferenceOptionsProps,\n EntryReferenceProps,\n} from './entities/entry'\nimport { EnvironmentProps } from './entities/environment'\nimport type { CreateExtensionProps } from './entities/extension'\nimport type { CreateLocaleProps } from './entities/locale'\nimport { TagVisibility, wrapTag, wrapTagCollection } from './entities/tag'\nimport { wrapUIConfig } from './entities/ui-config'\nimport { wrapUserUIConfig } from './entities/user-ui-config'\nimport { wrapEnvironmentTemplateInstallationCollection } from './entities/environment-template-installation'\nimport { CreateAppAccessTokenProps } from './entities/app-access-token'\n\n/**\n * @private\n */\nexport type ContentfulEnvironmentAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Environment API\n * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter\n * @return {ContentfulSpaceAPI}\n * @private\n */\nexport default function createEnvironmentApi(makeRequest: MakeRequest) {\n const { wrapEnvironment } = entities.environment\n const { wrapContentType, wrapContentTypeCollection } = entities.contentType\n const { wrapEntry, wrapEntryCollection } = entities.entry\n const { wrapAsset, wrapAssetCollection } = entities.asset\n const { wrapAssetKey } = entities.assetKey\n const { wrapLocale, wrapLocaleCollection } = entities.locale\n const { wrapSnapshotCollection } = entities.snapshot\n const { wrapEditorInterface, wrapEditorInterfaceCollection } = entities.editorInterface\n const { wrapUpload } = entities.upload\n const { wrapExtension, wrapExtensionCollection } = entities.extension\n const { wrapAppInstallation, wrapAppInstallationCollection } = entities.appInstallation\n const { wrapAppSignedRequest } = entities.appSignedRequest\n const { wrapAppActionCall } = entities.appActionCall\n const { wrapBulkAction } = entities.bulkAction\n const { wrapAppAccessToken } = entities.appAccessToken\n\n return {\n /**\n * Deletes the environment\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.delete())\n * .then(() => console.log('Environment deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteEnvironment() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Environment',\n action: 'delete',\n params: { spaceId: raw.sys.space.sys.id, environmentId: raw.sys.id },\n }).then(() => {\n // noop\n })\n },\n /**\n * Updates the environment\n * @return Promise for the updated environment.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => {\n * environment.name = 'New name'\n * return environment.update()\n * })\n * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`)\n * .catch(console.error)\n * ```\n */\n update: function updateEnvironment() {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Environment',\n action: 'update',\n params: { spaceId: raw.sys.space.sys.id, environmentId: raw.sys.id },\n payload: raw,\n }).then((data) => wrapEnvironment(makeRequest, data))\n },\n\n /**\n * Creates SDK Entry object (locally) from entry data\n * @param entryData - Entry Data\n * @return Entry\n * @example ```javascript\n * environment.getEntry('entryId').then(entry => {\n *\n * // Build a plainObject in order to make it usable for React (saving in state or redux)\n * const plainObject = entry.toPlainObject();\n *\n * // The entry is being updated in some way as plainObject:\n * const updatedPlainObject = {\n * ...plainObject,\n * fields: {\n * ...plainObject.fields,\n * title: {\n * 'en-US': 'updatedTitle'\n * }\n * }\n * };\n *\n * // Rebuild an sdk object out of the updated plainObject:\n * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject);\n *\n * // Update with help of the sdk method:\n * entryWithMethodsAgain.update();\n *\n * });\n * ```\n **/\n getEntryFromData(entryData: EntryProps) {\n return wrapEntry(makeRequest, entryData)\n },\n /**\n * Creates SDK Asset object (locally) from entry data\n * @param assetData - Asset ID\n * @return Asset\n * @example ```javascript\n * environment.getAsset('asset_id').then(asset => {\n *\n * // Build a plainObject in order to make it usable for React (saving in state or redux)\n * const plainObject = asset.toPlainObject();\n *\n * // The asset is being updated in some way as plainObject:\n * const updatedPlainObject = {\n * ...plainObject,\n * fields: {\n * ...plainObject.fields,\n * title: {\n * 'en-US': 'updatedTitle'\n * }\n * }\n * };\n *\n * // Rebuild an sdk object out of the updated plainObject:\n * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject);\n *\n * // Update with help of the sdk method:\n * assetWithMethodsAgain.update();\n *\n * });\n * ```\n */\n getAssetFromData(assetData: AssetProps) {\n return wrapAsset(makeRequest, assetData)\n },\n\n /**\n *\n * @description Get a BulkAction by ID.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action\n * @param bulkActionId - ID of the BulkAction to fetch\n * @returns - Promise with the BulkAction\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getBulkAction(''))\n * .then((bulkAction) => console.log(bulkAction))\n * ```\n */\n getBulkAction(bulkActionId: string): Promise> {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n bulkActionId,\n },\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to publish all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createPublishBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await client.getSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createPublishBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createPublishBulkAction(payload: BulkActionPublishPayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'publish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to validate all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * action: 'publish',\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: '', linkType: 'Entry' } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createValidateBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await client.getSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createValidateBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createValidateBulkAction(payload: BulkActionValidatePayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'validate',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUnpublishBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await clientgetSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createUnpublishBulkAction(payload: BulkActionUnpublishPayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'unpublish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * Gets a Content Type\n * @param contentTypeId - Content Type ID\n * @return Promise for a Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n getContentType(contentTypeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n /**\n * Gets a collection of Content Types\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Content Types\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentTypes())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getContentTypes(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'ContentType',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapContentTypeCollection(makeRequest, data))\n },\n /**\n * Creates a Content Type\n * @param data - Object representation of the Content Type to be created\n * @return Promise for the newly created Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createContentType({\n * name: 'Blog Post',\n * fields: [\n * {\n * id: 'title',\n * name: 'Title',\n * required: true,\n * localized: false,\n * type: 'Text'\n * }\n * ]\n * }))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n createContentType(data: CreateContentTypeProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapContentType(makeRequest, response))\n },\n /**\n * Creates a Content Type with a custom ID\n * @param contentTypeId - Content Type ID\n * @param data - Object representation of the Content Type to be created\n * @return Promise for the newly created Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createContentTypeWithId('', {\n * name: 'Blog Post',\n * fields: [\n * {\n * id: 'title',\n * name: 'Title',\n * required: true,\n * localized: false,\n * type: 'Text'\n * }\n * ]\n * }))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n createContentTypeWithId(contentTypeId: string, data: CreateContentTypeProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n payload: data,\n }).then((response) => wrapContentType(makeRequest, response))\n },\n\n /**\n * Gets an EditorInterface for a ContentType\n * @param contentTypeId - Content Type ID\n * @return Promise for an EditorInterface\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEditorInterfaceForContentType(''))\n * .then((EditorInterface) => console.log(EditorInterface))\n * .catch(console.error)\n * ```\n */\n getEditorInterfaceForContentType(contentTypeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n }).then((response) => wrapEditorInterface(makeRequest, response))\n },\n\n /**\n * Gets all EditorInterfaces\n * @return Promise for a collection of EditorInterface\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEditorInterfaces())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEditorInterfaces() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((response) => wrapEditorInterfaceCollection(makeRequest, response))\n },\n\n /**\n * Gets an Entry\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param id - Entry ID\n * @param query - Object with search parameters. In this method it's only useful for `locale`.\n * @return Promise for an Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n getEntry(id: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Deletes an Entry of this environment\n * @param id - Entry ID\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.deleteEntry(\"4bmLXiuviAZH3jkj5DLRWE\"))\n * .then(() => console.log('Entry deleted.'))\n * .catch(console.error)\n * ```\n */\n deleteEntry(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n },\n }).then(() => {\n // noop\n })\n },\n\n /**\n * Gets a collection of Entries\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Entries\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEntries(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntryCollection(makeRequest, data))\n },\n\n /**\n * Gets a collection of published Entries\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of published Entries\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPublishedEntries(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'getPublished',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntryCollection(makeRequest, data))\n },\n\n /**\n * Creates a Entry\n * @param contentTypeId - The Content Type ID of the newly created Entry\n * @param data - Object representation of the Entry to be created\n * @return Promise for the newly created Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createEntry('', {\n * fields: {\n * title: {\n * 'en-US': 'Entry title'\n * }\n * }\n * }))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n createEntry(contentTypeId: string, data: Omit) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId: contentTypeId,\n },\n payload: data,\n }).then((response) => wrapEntry(makeRequest, response))\n },\n\n /**\n * Creates a Entry with a custom ID\n * @param contentTypeId - The Content Type of the newly created Entry\n * @param id - Entry ID\n * @param data - Object representation of the Entry to be created\n * @return Promise for the newly created Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create entry\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createEntryWithId('', '', {\n * fields: {\n * title: {\n * 'en-US': 'Entry title'\n * }\n * }\n * }))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n createEntryWithId(contentTypeId: string, id: string, data: CreateEntryProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n contentTypeId: contentTypeId,\n },\n payload: data,\n }).then((response) => wrapEntry(makeRequest, response))\n },\n\n /**\n * Get entry references\n * @param entryId - Entry ID\n * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum\n * @returns Promise of Entry references\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: '\n * })\n *\n * // Get entry references\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntryReferences('', {include: number}))\n * .then((entry) => console.log(entry.includes))\n * // or\n * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number}))\n * .catch(console.error)\n * ```\n */\n getEntryReferences(entryId: string, options?: EntryReferenceOptionsProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'references',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: entryId,\n include: options?.include,\n },\n }).then((response) => wrapEntryCollection(makeRequest, response) as EntryReferenceProps)\n },\n\n /**\n * Gets an Asset\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param id - Asset ID\n * @param query - Object with search parameters. In this method it's only useful for `locale`.\n * @return Promise for an Asset\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n getAsset(id: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n assetId: id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n /**\n * Gets a collection of Assets\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Assets\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAssets())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAssets(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAssetCollection(makeRequest, data))\n },\n /**\n * Gets a collection of published Assets\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of published Assets\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getPublishedAssets())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPublishedAssets(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'getPublished',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAssetCollection(makeRequest, data))\n },\n /**\n * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create asset\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAsset({\n * fields: {\n * title: {\n * 'en-US': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }\n * }))\n * .then((asset) => asset.processForLocale(\"en-US\")) // OR asset.processForAllLocales()\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAsset(data: CreateAssetProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param id - Asset ID\n * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create asset\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.process())\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAssetWithId(id: string, data: CreateAssetProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n assetId: id,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetFromFiles({\n * fields: {\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'filename_english.jpg',\n * file: createReadStream('path/to/filename_english.jpg')\n * },\n * 'de-DE': {\n * contentType: 'image/svg+xml',\n * fileName: 'filename_german.svg',\n * file: ''\n * }\n * }\n * }\n * }))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAssetFromFiles(data: Omit, options?: CreateAssetFromFilesOptions) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'createFromFiles',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadTimeout: options?.uploadTimeout,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates an asset key for signing asset URLs (Embargoed Assets)\n * @param data Object with request payload\n * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling)\n * @return Promise for the newly created AssetKey\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create assetKey\n * now = () => Math.floor(Date.now() / 1000)\n * const withExpiryIn1Hour = () => now() + 1 * 60 * 60\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() }))\n * .then((policy, secret) => console.log({ policy, secret }))\n * .catch(console.error)\n * ```\n */\n createAssetKey(payload: CreateAssetKeyProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AssetKey',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapAssetKey(makeRequest, data))\n },\n\n /**\n * Gets an Upload\n * @param id - Upload ID\n * @return Promise for an Upload\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * const uploadStream = createReadStream('path/to/filename_english.jpg')\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUpload('')\n * .then((upload) => console.log(upload))\n * .catch(console.error)\n */\n getUpload(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Upload',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadId: id,\n },\n }).then((data) => wrapUpload(makeRequest, data))\n },\n\n /**\n * Creates a Upload.\n * @param data - Object with file information.\n * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream.\n * @return Upload object containing information about the uploaded file.\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * const uploadStream = createReadStream('path/to/filename_english.jpg')\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUpload({file: uploadStream})\n * .then((upload) => console.log(upload))\n * .catch(console.error)\n * ```\n */\n createUpload: function createUpload(data: { file: string | ArrayBuffer | Stream }) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Upload',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((data) => wrapUpload(makeRequest, data))\n },\n /**\n * Gets a Locale\n * @param localeId - Locale ID\n * @return Promise for an Locale\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => console.log(locale))\n * .catch(console.error)\n * ```\n */\n getLocale(localeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n localeId,\n },\n }).then((data) => wrapLocale(makeRequest, data))\n },\n\n /**\n * Gets a collection of Locales\n * @return Promise for a collection of Locales\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocales())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getLocales() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapLocaleCollection(makeRequest, data))\n },\n /**\n * Creates a Locale\n * @param data - Object representation of the Locale to be created\n * @return Promise for the newly created Locale\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create locale\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createLocale({\n * name: 'German (Austria)',\n * code: 'de-AT',\n * fallbackCode: 'de-DE',\n * optional: true\n * }))\n * .then((locale) => console.log(locale))\n * .catch(console.error)\n * ```\n */\n createLocale(data: CreateLocaleProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapLocale(makeRequest, response))\n },\n /**\n * Gets an UI Extension\n * @param id - Extension ID\n * @return Promise for an UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n getUiExtension(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n extensionId: id,\n },\n }).then((data) => wrapExtension(makeRequest, data))\n },\n /**\n * Gets a collection of UI Extension\n * @return Promise for a collection of UI Extensions\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtensions()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getUiExtensions() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((response) => wrapExtensionCollection(makeRequest, response))\n },\n /**\n * Creates a UI Extension\n * @param data - Object representation of the UI Extension to be created\n * @return Promise for the newly created UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUiExtension({\n * extension: {\n * name: 'My awesome extension',\n * src: 'https://example.com/my',\n * fieldTypes: [\n * {\n * type: 'Symbol'\n * },\n * {\n * type: 'Text'\n * }\n * ],\n * sidebar: false\n * }\n * }))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n createUiExtension(data: CreateExtensionProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n /**\n * Creates a UI Extension with a custom ID\n * @param id - Extension ID\n * @param data - Object representation of the UI Extension to be created\n * @return Promise for the newly created UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUiExtensionWithId('', {\n * extension: {\n * name: 'My awesome extension',\n * src: 'https://example.com/my',\n * fieldTypes: [\n * {\n * type: 'Symbol'\n * },\n * {\n * type: 'Text'\n * }\n * ],\n * sidebar: false\n * }\n * }))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n createUiExtensionWithId(id: string, data: CreateExtensionProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n extensionId: id,\n },\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n\n /**\n * Creates an App Installation\n * @param appDefinitionId - AppDefinition ID\n * @param data - AppInstallation data\n * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app)\n * @return Promise for an App Installation\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppInstallation('', {\n * parameters: {\n * someParameter: someValue\n * }\n * })\n * .then((appInstallation) => console.log(appInstallation))\n * .catch(console.error)\n * ```\n */\n createAppInstallation(\n appDefinitionId: string,\n data: CreateAppInstallationProps,\n { acceptAllTerms }: { acceptAllTerms?: boolean } = {}\n ) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'upsert',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n acceptAllTerms,\n },\n payload: data,\n }).then((payload) => wrapAppInstallation(makeRequest, payload))\n },\n /**\n * Gets an App Installation\n * @param id - AppDefintion ID\n * @return Promise for an App Installation\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => console.log(appInstallation))\n * .catch(console.error)\n * ```\n */\n getAppInstallation(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId: id,\n },\n }).then((data) => wrapAppInstallation(makeRequest, data))\n },\n /**\n * Gets a collection of App Installation\n * @return Promise for a collection of App Installations\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallations()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppInstallations() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapAppInstallationCollection(makeRequest, data))\n },\n /**\n * Creates an app action call\n * @param appDefinitionId - AppDefinition ID\n * @param appActionId - action ID\n * @param data - App Action Call data\n * @return Promise for an App Action Call\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * headers: {\n * 'x-my-header': 'some-value'\n * },\n * body: {\n * 'some-body-value': true\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppActionCall('', '', data)\n * .then((appActionCall) => console.log(appActionCall))\n * .catch(console.error)\n * ```\n */\n createAppActionCall(\n appDefinitionId: string,\n appActionId: string,\n data: CreateAppActionCallProps\n ) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n appActionId,\n },\n payload: data,\n }).then((payload) => wrapAppActionCall(makeRequest, payload))\n },\n /**\n * Creates an app signed request\n * @param appDefinitionId - AppDefinition ID\n * @param data - SignedRequest data\n * @return Promise for a Signed Request\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * method: 'POST',\n * path: '/request_path',\n * body: '{ \"key\": \"data\" }',\n * headers: {\n * 'x-my-header': 'some-value'\n * },\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppSignedRequest('', data)\n * .then((signedRequest) => console.log(signedRequest))\n * .catch(console.error)\n * ```\n */\n createAppSignedRequest(appDefinitionId: string, data: CreateAppSignedRequestProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppSignedRequest',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n },\n payload: data,\n }).then((payload) => wrapAppSignedRequest(makeRequest, payload))\n },\n /**\n * Creates an app access token\n * @param appDefinitionId - AppDefinition ID\n * @param data - Json Web Token\n * @return Promise for an app access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const { sign } = require('jsonwebtoken')\n *\n * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' }\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * jwt: sign({}, '', signOptions)\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppAccessToken('', data)\n * .then((appAccessToken) => console.log(appAccessToken))\n * .catch(console.error)\n * ```\n */\n createAppAccessToken(appDefinitionId: string, data: CreateAppAccessTokenProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppAccessToken',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n },\n payload: data,\n }).then((payload) => wrapAppAccessToken(makeRequest, payload))\n },\n /**\n * Gets all snapshots of an entry\n * @func getEntrySnapshots\n * @param entryId - Entry ID\n * @param query - query additional query paramaters\n * @return Promise for a collection of Entry Snapshots\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntrySnapshots(''))\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getEntrySnapshots(entryId: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForEntry',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId,\n query,\n },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n /**\n * Gets all snapshots of a contentType\n * @func getContentTypeSnapshots\n * @param contentTypeId - Content Type ID\n * @param query - query additional query paramaters\n * @return Promise for a collection of Content Type Snapshots\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentTypeSnapshots(''))\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getContentTypeSnapshots(contentTypeId: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForContentType',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n query,\n },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n createTag(id: string, name: string, visibility?: TagVisibility) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n tagId: id,\n },\n payload: {\n name,\n sys: { visibility: visibility ?? 'private' },\n },\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n getTags(query: BasicQueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Tag',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTagCollection(makeRequest, data))\n },\n\n getTag(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n tagId: id,\n },\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n /**\n * Retrieves a Release by ID\n * @param releaseId\n * @returns Promise containing a wrapped Release\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getRelease(''))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n getRelease(releaseId: string) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Gets a Collection of Releases,\n * @param {ReleaseQueryOptions} query filtering options for the collection result\n * @returns Promise containing a wrapped Release Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' }))\n * .then((releases) => console.log(releases))\n * .catch(console.error)\n * ```\n */\n getReleases(query?: ReleaseQueryOptions) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'query',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query,\n },\n }).then((data) => wrapReleaseCollection(makeRequest, data))\n },\n\n /**\n * Creates a new Release with the entities and title in the payload\n * @param payload Object containing the payload in order to create a Release\n * @returns Promise containing a wrapped Release, that has other helper methods within.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * title: 'My Release',\n * entities: {\n * sys: { type: 'Array' },\n * items: [\n * { sys: { linkType: 'Entry', type: 'Link', id: '' } }\n * ]\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createRelease(payload))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n createRelease(payload: ReleasePayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Updates a Release and replaces all the properties.\n * @param {object} options,\n * @param options.releaseId the ID of the release\n * @param options.payload the payload to be updated in the Release\n * @param options.version Release sys.version that to be updated\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n *\n * const payload = {\n * title: \"Updated Release title\",\n * entities: {\n * sys: { type: 'Array' },\n * items: [\n * { sys: { linkType: 'Entry', type: 'Link', id: '' } }\n * ]\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } ))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n updateRelease({\n releaseId,\n payload,\n version,\n }: {\n releaseId: string\n payload: ReleasePayload\n version: number\n }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'update',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n payload,\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Deletes a Release by ID - does not delete any entities.\n * @param releaseId the ID of the release\n *\n * @returns Promise containing a wrapped Release, that has helper methods within.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.deleteRelease('')\n * .catch(console.error)\n * ```\n */\n deleteRelease(releaseId: string) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n })\n },\n\n /**\n * Publishes all Entities contained in a Release.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be published\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n publishRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'publish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Unpublishes all Entities contained in a Release.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be published\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n unpublishRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'unpublish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Validates all Entities contained in a Release against an action (publish or unpublish)\n * @param options.releaseId the ID of the release\n * @param options.payload (optional) the type of action to be validated against\n *\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } }))\n * .catch(console.error)\n * ```\n */\n validateRelease({\n releaseId,\n payload,\n }: {\n releaseId: string\n payload?: ReleaseValidatePayload\n }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'validate',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n payload,\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc).\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be archived\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n archiveRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'archive',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Unarchives a previously archived Release - this enables the release to be published, unpublished etc.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be unarchived\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n unarchiveRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'unarchive',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Retrieves a ReleaseAction by ID\n * @param params.releaseId The ID of a Release\n * @param params.actionId The ID of a Release Action\n * @returns Promise containing a wrapped ReleaseAction\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' }))\n * .then((releaseAction) => console.log(releaseAction))\n * .catch(console.error)\n * ```\n */\n getReleaseAction({ actionId, releaseId }: { actionId: string; releaseId: string }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'get',\n params: {\n actionId,\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Gets a Collection of ReleaseActions\n * @param {string} params.releaseId ID of the Release to fetch the actions from\n * @param {ReleaseQueryOptions} params.query filtering options for the collection result\n * @returns Promise containing a wrapped ReleaseAction Collection\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } }))\n * .then((releaseActions) => console.log(releaseActions))\n * .catch(console.error)\n * ```\n */\n getReleaseActions({ query }: { query?: ReleaseActionQueryOptions }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query,\n },\n }).then((data) => wrapReleaseActionCollection(makeRequest, data))\n },\n\n async getUIConfig() {\n const raw: EnvironmentProps = this.toPlainObject()\n\n const data = await makeRequest({\n entityType: 'UIConfig',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n })\n return wrapUIConfig(makeRequest, data)\n },\n\n async getUserUIConfig() {\n const raw: EnvironmentProps = this.toPlainObject()\n\n const data = await makeRequest({\n entityType: 'UserUIConfig',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n })\n return wrapUserUIConfig(makeRequest, data)\n },\n\n /**\n * Gets a collection of all environment template installations in the environment for a given template\n * @param environmentTemplateId - Environment template ID to return installations for\n * @param [options.installationId] - Installation ID to filter for a specific installation\n * @return Promise for a collection of EnvironmentTemplateInstallations\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEnvironmentTemplateInstallations(''))\n * .then((installations) => console.log(installations.items))\n * .catch(console.error)\n * ```\n */\n async getEnvironmentTemplateInstallations(\n environmentTemplateId: string,\n { installationId, ...query }: BasicCursorPaginationOptions & { installationId?: string } = {}\n ) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'EnvironmentTemplateInstallation',\n action: 'getForEnvironment',\n params: {\n environmentTemplateId,\n ...(installationId && { installationId }),\n query: { ...createRequestConfig({ query }).params },\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentTemplateInstallationCollection(makeRequest, data))\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport { BasicCursorPaginationOptions, MakeRequest } from './common-types'\nimport entities from './entities'\nimport { EnvironmentTemplateProps } from './entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n ValidateEnvironmentTemplateInstallationProps,\n} from './entities/environment-template-installation'\n\nexport type ContentfulEnvironmentTemplateApi = ReturnType\n\nexport function createEnvironmentTemplateApi(makeRequest: MakeRequest, organizationId: string) {\n const { wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection } =\n entities.environmentTemplate\n\n const { wrapEnvironmentTemplateInstallationCollection } = entities.environmentTemplateInstallation\n\n return {\n /**\n * Updates a environment template\n * @return Promise for new version of the template\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => {\n * environmentTemplate.name = 'New name'\n * return environmentTemplate.update()\n * })\n * .then((environmentTemplate) =>\n * console.log(`Environment template ${environmentTemplate.sys.id} renamed.`)\n * ).catch(console.error)\n * ```\n */\n update: function updateEnvironmentTemplate() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'update',\n params: { organizationId, environmentTemplateId: raw.sys.id },\n payload: raw,\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Updates environment template version data\n * @param version.versionName - Name of the environment template version\n * @param version.versionDescription - Description of the environment template version\n * @return Promise for an updated EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => {\n * return environmentTemplate.updateVersion({\n * versionName: 'New Name',\n * versionDescription: 'New Description',\n * })\n * })\n * .then((environmentTemplate) =>\n * console.log(`Environment template version ${environmentTemplate.sys.id} renamed.`)\n * ).catch(console.error)\n * ```\n */\n updateVersion: function updateEnvironmentTemplateVersion({\n versionName,\n versionDescription,\n }: {\n versionName: string\n versionDescription: string\n }) {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'versionUpdate',\n params: { organizationId, environmentTemplateId: raw.sys.id, version: raw.sys.version },\n payload: { versionName, versionDescription },\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Deletes the environment template\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.delete())\n * .then(() => console.log('Environment template deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteEnvironmentTemplate() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'delete',\n params: { organizationId, environmentTemplateId: raw.sys.id },\n })\n },\n /**\n * Gets a collection of all versions for the environment template\n * @return Promise for a EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.getVersions())\n * .then((environmentTemplateVersions) => console.log(environmentTemplateVersions.items))\n * .catch(console.error)\n * ```\n */\n getVersions: function getEnvironmentTemplateVersions() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'versions',\n params: {\n organizationId,\n environmentTemplateId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId))\n },\n /**\n * Gets a collection of all installations for the environment template\n * @param [installationParams.spaceId] - Space ID to filter installations by space and environment\n * @param [installationParams.environmentId] - Environment ID to filter installations by space and environment\n * @return Promise for a collection of EnvironmentTemplateInstallations\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.getInstallations())\n * .then((environmentTemplateInstallations) =>\n * console.log(environmentTemplateInstallations.items)\n * )\n * .catch(console.error)\n * ```\n */\n getInstallations: function getEnvironmentTemplateInstallations({\n spaceId,\n environmentId,\n ...query\n }: {\n spaceId?: string\n environmentId?: string\n } & BasicCursorPaginationOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplateInstallation',\n action: 'getMany',\n params: {\n organizationId,\n environmentTemplateId: raw.sys.id,\n query: { ...createRequestConfig({ query }).params },\n spaceId,\n environmentId,\n },\n }).then((data) => wrapEnvironmentTemplateInstallationCollection(makeRequest, data))\n },\n /**\n * Validates an environment template against a given space and environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @param [params.version] - Version of the template\n * @param [params.installation.takeover] - Already existing Content types to takeover in the target environment\n * @param [params.changeSet] - Change set which should be applied\n * @return Promise for a EnvironmentTemplateValidation\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.validate({\n * spaceId: '',\n * environmentId: '',\n * version: ,\n * }))\n * .then((validationResult) => console.log(validationResult))\n * .catch(console.error)\n * ```\n */\n validate: function validateEnvironmentTemplate({\n spaceId,\n environmentId,\n version,\n takeover,\n changeSet,\n }: {\n spaceId: string\n environmentId: string\n version?: number\n } & ValidateEnvironmentTemplateInstallationProps) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'validate',\n params: {\n spaceId,\n version,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n payload: {\n ...(takeover && { takeover }),\n ...(changeSet && { changeSet }),\n },\n })\n },\n /**\n * Installs a template against a given space and environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @param params.installation.version- Template version which should be installed\n * @param [params.installation.takeover] - Already existing Content types tp takeover in the target environment\n * @param [params.changeSet] - Change set which should be applied\n * @return Promise for a EnvironmentTemplateInstallation\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.validate({\n * spaceId: '',\n * environmentId: '',\n * installation: {\n * version: ,\n * }\n * }))\n * .then((installation) => console.log(installation))\n * .catch(console.error)\n * ```\n */\n install: function installEnvironmentTemplate({\n spaceId,\n environmentId,\n installation,\n }: {\n spaceId: string\n environmentId: string\n installation: CreateEnvironmentTemplateInstallationProps\n }) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'install',\n params: {\n spaceId,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n payload: installation,\n })\n },\n /**\n * Disconnects the template from a given environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @return Promise for the disconnection with no data\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then(environmentTemplate) => environmentTemplate.disconnected())\n * .then(() => console.log('Template disconnected'))\n * .catch(console.error)\n * ```\n */\n disconnect: function disconnectEnvironmentTemplate({\n spaceId,\n environmentId,\n }: {\n spaceId: string\n environmentId: string\n }) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'disconnect',\n params: {\n spaceId,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n })\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport entities from './entities'\nimport { Stream } from 'stream'\nimport { CreateTeamMembershipProps } from './entities/team-membership'\nimport { CreateTeamProps } from './entities/team'\nimport { CreateOrganizationInvitationProps } from './entities/organization-invitation'\nimport { BasicQueryOptions, MakeRequest, QueryOptions, QueryParams } from './common-types'\nimport { CreateAppDefinitionProps } from './entities/app-definition'\nimport { CreateAppActionProps } from './entities/app-action'\nimport { CreateAppSigningSecretProps } from './entities/app-signing-secret'\nimport { CreateAppEventSubscriptionProps } from './entities/app-event-subscription'\nimport { CreateAppKeyProps } from './entities/app-key'\nimport { CreateAppDetailsProps } from './entities/app-details'\nimport { OrganizationProp } from './entities/organization'\n\n/**\n * @private\n */\nexport type ContentfulOrganizationAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Organization API\n * @param {MakeRequest} makeRequest - function to make requests via an adapter\n * @return {ContentfulOrganizationAPI}\n * @private\n */\nexport default function createOrganizationApi(makeRequest: MakeRequest) {\n const { wrapAppDefinition, wrapAppDefinitionCollection } = entities.appDefinition\n const { wrapUser, wrapUserCollection } = entities.user\n const { wrapOrganizationMembership, wrapOrganizationMembershipCollection } =\n entities.organizationMembership\n const { wrapTeamMembership, wrapTeamMembershipCollection } = entities.teamMembership\n const { wrapTeamSpaceMembership, wrapTeamSpaceMembershipCollection } =\n entities.teamSpaceMembership\n const { wrapTeam, wrapTeamCollection } = entities.team\n const { wrapSpaceMembership, wrapSpaceMembershipCollection } = entities.spaceMembership\n const { wrapOrganizationInvitation } = entities.organizationInvitation\n const { wrapAppUpload } = entities.appUpload\n const { wrapAppSigningSecret } = entities.appSigningSecret\n const { wrapAppEventSubscription } = entities.appEventSubscription\n const { wrapAppKey, wrapAppKeyCollection } = entities.appKey\n const { wrapAppDetails } = entities.appDetails\n const { wrapAppAction, wrapAppActionCollection } = entities.appAction\n const { wrapRoleCollection } = entities.role\n const { wrapSpaceCollection } = entities.space\n\n return {\n /**\n * Gets a collection of spaces in the organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Spaces in the organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getSpaces())\n * .then((spaces) => console.log(spaces))\n * .catch(console.error)\n * ```\n */\n getSpaces(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'Space',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceCollection(makeRequest, data))\n },\n\n /**\n * Gets a User\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getUser('id'))\n * .then((user) => console.log(user))\n * .catch(console.error)\n * ```\n */\n getUser(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'User',\n action: 'getForOrganization',\n params: { organizationId: raw.sys.id, userId: id },\n }).then((data) => wrapUser(makeRequest, data))\n },\n /**\n * Gets a collection of Users in organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Users in organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getUsers())\n * .then((users) => console.log(users))\n * .catch(console.error)\n * ```\n */\n getUsers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'User',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapUserCollection(makeRequest, data))\n },\n /**\n * Gets an Organization Membership\n * @param id - Organization Membership ID\n * @return Promise for an Organization Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => console.log(organizationMembership))\n * .catch(console.error)\n * ```\n */\n getOrganizationMembership(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n const organizationId = raw.sys.id\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'get',\n params: {\n organizationId,\n organizationMembershipId: id,\n },\n }).then((data) => wrapOrganizationMembership(makeRequest, data, organizationId))\n },\n /**\n * Gets a collection of Organization Memberships\n * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Organization Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n\n getOrganizationMemberships(params: QueryParams = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n ...params,\n },\n }).then((data) => wrapOrganizationMembershipCollection(makeRequest, data, raw.sys.id))\n },\n /**\n * Creates a Team\n * @param data representation of the Team to be created\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createTeam({\n * name: 'new team',\n * description: 'new team description'\n * }))\n * .then((team) => console.log(team))\n * .catch(console.error)\n * ```\n */\n createTeam(data: CreateTeamProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: data,\n }).then((data) => wrapTeam(makeRequest, data))\n },\n /**\n * Gets an Team\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('orgId')\n * .then((organization) => organization.getTeam('teamId'))\n * .then((team) => console.log(team))\n * .catch(console.error)\n * ```\n */\n getTeam(teamId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'get',\n params: { organizationId: raw.sys.id, teamId },\n }).then((data) => wrapTeam(makeRequest, data))\n },\n /**\n * Gets all Teams in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('orgId')\n * .then((organization) => organization.getTeams())\n * .then((teams) => console.log(teams))\n * .catch(console.error)\n * ```\n */\n getTeams(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamCollection(makeRequest, data))\n },\n /**\n * Creates a Team membership\n * @param teamId - Id of the team the membership will be created in\n * @param data - Object representation of the Team Membership to be created\n * @return Promise for the newly created TeamMembership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((org) => org.createTeamMembership('teamId', {\n * admin: true,\n * organizationMembershipId: 'organizationMembershipId'\n * }))\n * .then((teamMembership) => console.log(teamMembership))\n * .catch(console.error)\n * ```\n */\n createTeamMembership(teamId: string, data: CreateTeamMembershipProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'create',\n params: { organizationId: raw.sys.id, teamId },\n payload: data,\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n /**\n * Gets an Team Membership from the team with given teamId\n * @return Promise for an Team Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id'))\n * .then((teamMembership) => console.log(teamMembership))\n * .catch(console.error)\n * ```\n */\n getTeamMembership(teamId: string, teamMembershipId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'get',\n params: { organizationId: raw.sys.id, teamId, teamMembershipId },\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n /**\n * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization.\n * @return Promise for a Team Membership Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamMemberships('teamId'))\n * .then((teamMemberships) => console.log(teamMemberships))\n * .catch(console.error)\n * ```\n */\n getTeamMemberships(opts: { teamId?: string; query?: QueryOptions } = {}) {\n const { teamId, query = {} } = opts\n const raw = this.toPlainObject() as OrganizationProp\n\n if (teamId) {\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'getManyForTeam',\n params: {\n organizationId: raw.sys.id,\n teamId,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamMembershipCollection(makeRequest, data))\n }\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamMembershipCollection(makeRequest, data))\n },\n\n /**\n * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization.\n * @return Promise for a Team Space Membership Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamSpaceMemberships('teamId'))\n * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMemberships(opts: { teamId?: string; query?: QueryOptions } = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query: opts.query || {} }).params,\n teamId: opts.teamId,\n },\n }).then((data) => wrapTeamSpaceMembershipCollection(makeRequest, data))\n },\n\n /**\n * Get a Team Space Membership with given teamSpaceMembershipId\n * @return Promise for a Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId'))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)]\n * ```\n */\n getTeamSpaceMembership(teamSpaceMembershipId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getForOrganization',\n params: {\n organizationId: raw.sys.id,\n teamSpaceMembershipId,\n },\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n /**\n * Gets an Space Membership in Organization\n * @param id - Organiztion Space Membership ID\n * @return Promise for a Space Membership in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id'))\n * .then((organizationMembership) => console.log(organizationMembership))\n * .catch(console.error)\n * ```\n */\n getOrganizationSpaceMembership(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getForOrganization',\n params: {\n organizationId: raw.sys.id,\n spaceMembershipId: id,\n },\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n /**\n * Gets a collection Space Memberships in organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a Space Membership collection across all spaces in the organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMembershipCollection(makeRequest, data))\n },\n /**\n * Gets an Invitation in Organization\n * @return Promise for a OrganizationInvitation in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getOrganizationInvitation('invitation_id'))\n * .then((invitation) => console.log(invitation))\n * .catch(console.error)\n * ```\n */\n getOrganizationInvitation(invitationId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationInvitation',\n action: 'get',\n params: {\n organizationId: raw.sys.id,\n invitationId,\n },\n }).then((data) => wrapOrganizationInvitation(makeRequest, data))\n },\n /**\n * Create an Invitation in Organization\n * @return Promise for a OrganizationInvitation in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.createOrganizationInvitation({\n * email: 'user.email@example.com'\n * firstName: 'User First Name'\n * lastName: 'User Last Name'\n * role: 'developer'\n * })\n * .catch(console.error)\n * ```\n */\n createOrganizationInvitation(data: CreateOrganizationInvitationProps) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationInvitation',\n action: 'create',\n params: {\n organizationId: raw.sys.id,\n },\n payload: data,\n }).then((data) => wrapOrganizationInvitation(makeRequest, data))\n },\n /**\n * Gets a collection of Roles\n * @return Promise for a collection of Roles\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getRoles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getRoles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'Role',\n action: 'getManyForOrganization',\n params: { organizationId: raw.sys.id, query: createRequestConfig({ query }).params },\n }).then((data) => wrapRoleCollection(makeRequest, data))\n },\n /**\n * Creates an app definition\n * @param Object representation of the App Definition to be created\n * @return Promise for the newly created AppDefinition\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppDefinition({\n * name: 'Example app',\n * locations: [{ location: 'app-config' }],\n * src: \"http://my-app-host.com/my-app\"\n * }))\n * .then((appDefinition) => console.log(appDefinition))\n * .catch(console.error)\n * ```\n */\n createAppDefinition(data: CreateAppDefinitionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: data,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n /**\n * Gets all app definitions\n * @return Promise for a collection of App Definitions\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinitions())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppDefinitions(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'getMany',\n params: { organizationId: raw.sys.id, query: query },\n }).then((data) => wrapAppDefinitionCollection(makeRequest, data))\n },\n\n /**\n * Gets an app definition\n * @return Promise for an App Definition\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => console.log(appDefinition))\n * .catch(console.error)\n * ```\n */\n getAppDefinition(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId: id },\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Gets an app upload\n * @return Promise for an App Upload\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppUpload(''))\n * .then((appUpload) => console.log(appUpload))\n * .catch(console.error)\n * ```\n */\n getAppUpload(appUploadId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppUpload',\n action: 'get',\n params: { organizationId: raw.sys.id, appUploadId },\n }).then((data) => wrapAppUpload(makeRequest, data))\n },\n\n /**\n * Creates an app upload\n * @return Promise for an App Upload\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppUpload('some_zip_file'))\n * .then((appUpload) => console.log(appUpload))\n * .catch(console.error)\n * ```\n */\n createAppUpload(file: string | ArrayBuffer | Stream) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppUpload',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: { file },\n }).then((data) => wrapAppUpload(makeRequest, data))\n },\n /**\n * Creates or updates an app signing secret\n * @return Promise for an App SigningSecret\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' }))\n * .then((appSigningSecret) => console.log(appSigningSecret))\n * .catch(console.error)\n * ```\n */\n upsertAppSigningSecret(appDefinitionId: string, data: CreateAppSigningSecretProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppSigningSecret(makeRequest, payload))\n },\n /**\n * Gets an app signing secret\n * @return Promise for an App SigningSecret\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppSigningSecret('app_definition_id'))\n * .then((appSigningSecret) => console.log(appSigningSecret))\n * .catch(console.error)\n * ```\n */\n getAppSigningSecret(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppSigningSecret(makeRequest, payload))\n },\n /**\n * Deletes an app signing secret\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppSigningSecret('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppSigningSecret(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n upsertAppEventSubscription(appDefinitionId: string, data: CreateAppEventSubscriptionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppEventSubscription(makeRequest, payload))\n },\n /**\n * Gets an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppEventSubscription('app_definition_id'))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n getAppEventSubscription(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppEventSubscription(makeRequest, payload))\n },\n /**\n * Deletes the current App Event Subscription for the given App\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppEventSubscription('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppEventSubscription(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // generate a new private key\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n *\n * // or use an existing JSON Web Key\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n createAppKey(appDefinitionId: string, data: CreateAppKeyProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'create',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppKey(makeRequest, payload))\n },\n /**\n * Gets an app key by fingerprint\n * @return Promise for an App Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppKey('app_definition_id', 'fingerprint'))\n * .then((appKey) => console.log(appKey))\n * .catch(console.error)\n * ```\n */\n getAppKey(appDefinitionId: string, fingerprint: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId, fingerprint },\n }).then((payload) => wrapAppKey(makeRequest, payload))\n },\n /**\n * Gets all keys for the given app\n * @return Promise for an array of App Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // with default pagination\n * client.getOrganization('')\n * .then((org) => org.getAppKeys('app_definition_id'))\n * .then((appKeys) => console.log(appKeys))\n * .catch(console.error)\n *\n * // with explicit pagination\n * client.getOrganization('')\n * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' }))\n * .then((appKeys) => console.log(appKeys))\n * .catch(console.error)\n * ```\n */\n getAppKeys(appDefinitionId: string, query: BasicQueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n appDefinitionId,\n query: createRequestConfig({ query }).params,\n },\n }).then((payload) => wrapAppKeyCollection(makeRequest, payload))\n },\n /**\n * Deletes an app key by fingerprint.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppKey(appDefinitionId: string, fingerprint: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId, fingerprint },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app details entity\n * @return Promise for an App Details\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppDetails('app_definition_id',\n * { icon: { value: 'base_64_image', type: 'base64' }}\n * ))\n * .then((appDetails) => console.log(appDetails))\n * .catch(console.error)\n * ```\n */\n upsertAppDetails(appDefinitionId: string, data: CreateAppDetailsProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppDetails(makeRequest, payload))\n },\n /**\n * Gets an app details entity\n * @return Promise for an App Details\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDetails('app_definition_id'))\n * .then((appDetails) => console.log(appDetails))\n * .catch(console.error)\n * ```\n */\n getAppDetails(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppDetails(makeRequest, payload))\n },\n /**\n * Deletes an app details entity.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppDetails('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppDetails(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates an app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppAction('app_definition_id', {\n * type: 'endpoint',\n * name: 'my nice new app action',\n * url: 'https://www.somewhere.com/action'\n * }))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n createAppAction(appDefinitionId: string, data: CreateAppActionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'create',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Updates an existing app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', {\n * type: 'endpoint',\n * name: 'my nice updated app action',\n * url: 'https://www.somewhere-else.com/action'\n * }))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n updateAppAction(appDefinitionId: string, appActionId: string, data: CreateAppActionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'update',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n payload: data,\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Deletes an app action entity.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppAction(appDefinitionId: string, appActionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n }).then((payload) => {\n /* noop*/\n })\n },\n /**\n * Gets an existing app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppAction('app_definition_id', 'app_action_id'))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n getAppAction(appDefinitionId: string, appActionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Gets existing app actions for an App Definition.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppActions('app_definition_id'))\n * .then((appActions) => console.log(appActions))\n * .catch(console.error)\n * ```\n */\n getAppActions(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'getMany',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppActionCollection(makeRequest, payload))\n },\n }\n}\n","/**\n * Contentful Space API. Contains methods to access any operations at a space\n * level, such as creating and reading entities contained in a space.\n */\n\nimport { createRequestConfig } from 'contentful-sdk-core'\nimport { MakeRequest, PaginationQueryOptions, QueryOptions } from './common-types'\nimport entities from './entities'\nimport { CreateApiKeyProps } from './entities/api-key'\nimport { CreateEnvironmentProps } from './entities/environment'\nimport { CreateEnvironmentAliasProps } from './entities/environment-alias'\nimport { CreateRoleProps, RoleProps } from './entities/role'\nimport { ScheduledActionProps, ScheduledActionQueryOptions } from './entities/scheduled-action'\nimport { SpaceProps } from './entities/space'\nimport { CreateSpaceMembershipProps } from './entities/space-membership'\nimport { CreateTeamSpaceMembershipProps } from './entities/team-space-membership'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookRetryPolicyPayload,\n} from './entities/webhook'\n\n/**\n * @private\n */\nexport type ContentfulSpaceAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Space API\n * @param {MakeRequest} makeRequest - function to make requests via an adapter\n * @return {ContentfulSpaceAPI}\n * @private\n */\nexport default function createSpaceApi(makeRequest: MakeRequest) {\n const { wrapSpace } = entities.space\n const { wrapEnvironment, wrapEnvironmentCollection } = entities.environment\n const { wrapWebhook, wrapWebhookCollection } = entities.webhook\n const { wrapRole, wrapRoleCollection } = entities.role\n const { wrapUser, wrapUserCollection } = entities.user\n const { wrapSpaceMember, wrapSpaceMemberCollection } = entities.spaceMember\n const { wrapSpaceMembership, wrapSpaceMembershipCollection } = entities.spaceMembership\n const { wrapTeamSpaceMembership, wrapTeamSpaceMembershipCollection } =\n entities.teamSpaceMembership\n const { wrapTeamCollection } = entities.team\n const { wrapApiKey, wrapApiKeyCollection } = entities.apiKey\n const { wrapEnvironmentAlias, wrapEnvironmentAliasCollection } = entities.environmentAlias\n const { wrapPreviewApiKey, wrapPreviewApiKeyCollection } = entities.previewApiKey\n const { wrapScheduledAction, wrapScheduledActionCollection } = entities.scheduledAction\n\n return {\n /**\n * Deletes the space\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.delete())\n * .then(() => console.log('Space deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteSpace() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Space',\n action: 'delete',\n params: { spaceId: raw.sys.id },\n })\n },\n /**\n * Updates the space\n * @return Promise for the updated space.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * space.name = 'New name'\n * return space.update()\n * })\n * .then((space) => console.log(`Space ${space.sys.id} renamed.`)\n * .catch(console.error)\n * ```\n */\n update: function updateSpace() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Space',\n action: 'update',\n params: { spaceId: raw.sys.id },\n payload: raw,\n headers: {},\n }).then((data) => wrapSpace(makeRequest, data))\n },\n /**\n * Gets an environment\n * @param id - Environment ID\n * @return Promise for an Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n getEnvironment(environmentId: string) {\n const raw = this.toPlainObject() as SpaceProps\n\n return makeRequest({\n entityType: 'Environment',\n action: 'get',\n params: { spaceId: raw.sys.id, environmentId },\n }).then((data) => wrapEnvironment(makeRequest, data))\n },\n\n /**\n * Gets a collection of Environments\n * @return Promise for a collection of Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironments())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironments(query: PaginationQueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query },\n }).then((data) => wrapEnvironmentCollection(makeRequest, data))\n },\n\n /**\n * Creates an environment\n * @param data - Object representation of the Environment to be created\n * @return Promise for the newly created Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironment({ name: 'Staging' }))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n createEnvironment(data: CreateEnvironmentProps = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapEnvironment(makeRequest, response))\n },\n\n /**\n * Creates an Environment with a custom ID\n * @param id - Environment ID\n * @param data - Object representation of the Environment to be created\n * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is \"master\"\n * @return Promise for the newly created Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master'))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n createEnvironmentWithId(\n id: string,\n data: CreateEnvironmentProps,\n sourceEnvironmentId?: string\n ) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.id,\n environmentId: id,\n sourceEnvironmentId,\n },\n payload: data,\n }).then((response) => wrapEnvironment(makeRequest, response))\n },\n\n /**\n * Gets a Webhook\n * @param id - Webhook ID\n * @return Promise for a Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n getWebhook(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'get',\n params: { spaceId: raw.sys.id, webhookDefinitionId: id },\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Gets a collection of Webhooks\n * @return Promise for a collection of Webhooks\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhooks())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getWebhooks() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getMany',\n params: { spaceId: raw.sys.id },\n }).then((data) => wrapWebhookCollection(makeRequest, data))\n },\n\n /**\n * Fetch a webhook signing secret\n * @returns Promise for the redacted webhook signing secret in this space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhookSigningSecret())\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n getWebhookSigningSecret: function getSigningSecret() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getSigningSecret',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Fetch a webhook retry policy\n * @returns Promise for the redacted webhook retry policy in this space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRetryPolicy())\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n getWebhookRetryPolicy: function getWebhookRetryPolicy() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getRetryPolicy',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Creates a Webhook\n * @param data - Object representation of the Webhook to be created\n * @return Promise for the newly created Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.createWebhook({\n * 'name': 'My webhook',\n * 'url': 'https://www.example.com/test',\n * 'topics': [\n * 'Entry.create',\n * 'ContentType.create',\n * '*.publish',\n * 'Asset.*'\n * ]\n * }))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n createWebhook(data: CreateWebhooksProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Creates a Webhook with a custom ID\n * @param id - Webhook ID\n * @param data - Object representation of the Webhook to be created\n * @return Promise for the newly created Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.createWebhookWithId('', {\n * 'name': 'My webhook',\n * 'url': 'https://www.example.com/test',\n * 'topics': [\n * 'Entry.create',\n * 'ContentType.create',\n * '*.publish',\n * 'Asset.*'\n * ]\n * }))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n createWebhookWithId(id: string, data: CreateWebhooksProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, webhookDefinitionId: id },\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Create or update the webhook signing secret for this space\n * @param data 64 character string that will be used to sign the webhook calls\n * @returns Promise for the redacted webhook signing secret that was created or updated\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const crypto = require('crypto')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const signingSecret = client.getSpace('')\n * .then((space) => space.upsertWebhookSigningSecret({\n * value: crypto.randomBytes(32).toString('hex')\n * }))\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n upsertWebhookSigningSecret: function getSigningSecret(data: UpsertWebhookSigningSecretPayload) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'upsertSigningSecret',\n params: { spaceId: raw.sys.id },\n payload: data,\n })\n },\n /**\n * Create or update the webhook retry policy for this space\n * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy\n * @returns Promise for the redacted webhook retry policy that was created or updated\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const retryPolicy = client.getSpace('')\n * .then((space) => space.upsertWebhookRetryPolicy({\n * maxRetries: 15\n * }))\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n upsertWebhookRetryPolicy: function upsertWebhookRetryPolicy(data: WebhookRetryPolicyPayload) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'upsertRetryPolicy',\n params: { spaceId: raw.sys.id },\n payload: data,\n })\n },\n\n /**\n * Delete the webhook signing secret for this space\n * @returns Promise\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.deleteWebhookSigningSecret())\n * .then(() => console.log(\"success\"))\n * .catch(console.error)\n * ```\n */\n deleteWebhookSigningSecret: function getSigningSecret() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'deleteSigningSecret',\n params: { spaceId: raw.sys.id },\n })\n },\n /**\n * Delete the webhook retry policy for this space\n * @returns Promise\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.deleteWebhookRetryPolicy())\n * .then(() => console.log(\"success\"))\n * .catch(console.error)\n * ```\n */\n deleteWebhookRetryPolicy: function deleteRetryPolicy() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'deleteRetryPolicy',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Gets a Role\n * @param id - Role ID\n * @return Promise for a Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createRole({\n * fields: {\n * title: {\n * 'en-US': 'Role title'\n * }\n * }\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n getRole(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'get',\n params: { spaceId: raw.sys.id, roleId: id },\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Gets a collection of Roles\n * @return Promise for a collection of Roles\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRoles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getRoles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query: createRequestConfig({ query }).params },\n }).then((data) => wrapRoleCollection(makeRequest, data))\n },\n\n /**\n * Creates a Role\n * @param data - Object representation of the Role to be created\n * @return Promise for the newly created Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.createRole({\n * name: 'My Role',\n * description: 'foobar role',\n * permissions: {\n * ContentDelivery: 'all',\n * ContentModel: ['read'],\n * Settings: []\n * },\n * policies: [\n * {\n * effect: 'allow',\n * actions: 'all',\n * constraint: {\n * and: [\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Entry'\n * ]\n * },\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Asset'\n * ]\n * }\n * ]\n * }\n * }\n * ]\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n createRole(data: CreateRoleProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Creates a Role with a custom ID\n * @param id - Role ID\n * @param data - Object representation of the Role to be created\n * @return Promise for the newly created Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.createRoleWithId('', {\n * name: 'My Role',\n * description: 'foobar role',\n * permissions: {\n * ContentDelivery: 'all',\n * ContentModel: ['read'],\n * Settings: []\n * },\n * policies: [\n * {\n * effect: 'allow',\n * actions: 'all',\n * constraint: {\n * and: [\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Entry'\n * ]\n * },\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Asset'\n * ]\n * }\n * ]\n * }\n * }\n * ]\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n createRoleWithId(id: string, roleData: Omit) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, roleId: id },\n payload: roleData,\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Gets a User\n * @param userId - User ID\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceUser('id'))\n * .then((user) => console.log(user))\n * .catch(console.error)\n * ```\n */\n getSpaceUser(userId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'User',\n action: 'getForSpace',\n params: {\n spaceId: raw.sys.id,\n userId,\n },\n }).then((data) => wrapUser(makeRequest, data))\n },\n /**\n * Gets a collection of Users in a space\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Users in a space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceUsers(query))\n * .then((data) => console.log(data))\n * .catch(console.error)\n * ```\n */\n getSpaceUsers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'User',\n action: 'getManyForSpace',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapUserCollection(makeRequest, data))\n },\n\n /**\n * Gets a collection of teams for a space\n * @param query\n * @return Promise for a collection of teams for a space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeams())\n * .then((teamsCollection) => console.log(teamsCollection))\n * .catch(console.error)\n * ```\n */\n getTeams(query: QueryOptions = { limit: 100 }) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Team',\n action: 'getManyForSpace',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamCollection(makeRequest, data))\n },\n /**\n * Gets a Space Member\n * @param id Get Space Member by user_id\n * @return Promise for a Space Member\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMember(id))\n * .then((spaceMember) => console.log(spaceMember))\n * .catch(console.error)\n * ```\n */\n getSpaceMember(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMember',\n action: 'get',\n params: { spaceId: raw.sys.id, spaceMemberId: id },\n }).then((data) => wrapSpaceMember(makeRequest, data))\n },\n /**\n * Gets a collection of Space Members\n * @param query\n * @return Promise for a collection of Space Members\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembers({'limit': 100}))\n * .then((spaceMemberCollection) => console.log(spaceMemberCollection))\n * .catch(console.error)\n * ```\n */\n getSpaceMembers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMember',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMemberCollection(makeRequest, data))\n },\n /**\n * Gets a Space Membership\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param id - Space Membership ID\n * @return Promise for a Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership('id'))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n getSpaceMembership(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'get',\n params: { spaceId: raw.sys.id, spaceMembershipId: id },\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n /**\n * Gets a collection of Space Memberships\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Space Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMembershipCollection(makeRequest, data))\n },\n\n /**\n * Creates a Space Membership\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param data - Object representation of the Space Membership to be created\n * @return Promise for the newly created Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createSpaceMembership({\n * admin: false,\n * roles: [\n * {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * ],\n * email: 'foo@example.com'\n * }))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n createSpaceMembership(data: CreateSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapSpaceMembership(makeRequest, response))\n },\n /**\n * Creates a Space Membership with a custom ID\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param id - Space Membership ID\n * @param data - Object representation of the Space Membership to be created\n * @return Promise for the newly created Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createSpaceMembershipWithId('', {\n * admin: false,\n * roles: [\n * {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * ],\n * email: 'foo@example.com'\n * }))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n createSpaceMembershipWithId(id: string, data: CreateSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.id,\n spaceMembershipId: id,\n },\n payload: data,\n }).then((response) => wrapSpaceMembership(makeRequest, response))\n },\n\n /**\n * Gets a Team Space Membership\n * @param id - Team Space Membership ID\n * @return Promise for a Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership('team_space_membership_id'))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMembership(teamSpaceMembershipId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n teamSpaceMembershipId,\n },\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n\n /**\n * Gets a collection of Team Space Memberships\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Team Space Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMemberships())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapTeamSpaceMembershipCollection(makeRequest, data))\n },\n /**\n * Creates a Team Space Membership\n * @param id - Team ID\n * @param data - Object representation of the Team Space Membership to be created\n * @return Promise for the newly created Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createTeamSpaceMembership('team_id', {\n * admin: false,\n * roles: [\n * {\n sys: {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * }\n * ],\n * }))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)\n * ```\n */\n createTeamSpaceMembership(teamId: string, data: CreateTeamSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n teamId,\n },\n payload: data,\n }).then((response) => wrapTeamSpaceMembership(makeRequest, response))\n },\n /**\n * Gets a Api Key\n * @param id - API Key ID\n * @return Promise for a Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getApiKey(''))\n * .then((apikey) => console.log(apikey))\n * .catch(console.error)\n * ```\n */\n getApiKey(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n apiKeyId: id,\n },\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n /**\n * Gets a collection of Api Keys\n * @return Promise for a collection of Api Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getApiKeys())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getApiKeys() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapApiKeyCollection(makeRequest, data))\n },\n /**\n * Gets a collection of preview Api Keys\n * @return Promise for a collection of Preview Api Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getPreviewApiKeys())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPreviewApiKeys() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'PreviewApiKey',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapPreviewApiKeyCollection(makeRequest, data))\n },\n /**\n * Gets a preview Api Key\n * @param id - Preview API Key ID\n * @return Promise for a Preview Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getPreviewApiKey(''))\n * .then((previewApikey) => console.log(previewApikey))\n * .catch(console.error)\n * ```\n */\n getPreviewApiKey(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'PreviewApiKey',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n previewApiKeyId: id,\n },\n }).then((data) => wrapPreviewApiKey(makeRequest, data))\n },\n /**\n * Creates a Api Key\n * @param payload - Object representation of the Api Key to be created\n * @return Promise for the newly created Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createApiKey({\n * name: 'API Key name',\n * environments:[\n * {\n * sys: {\n * type: 'Link'\n * linkType: 'Environment',\n * id:''\n * }\n * }\n * ]\n * }\n * }))\n * .then((apiKey) => console.log(apiKey))\n * .catch(console.error)\n * ```\n */\n createApiKey: function createApiKey(payload: CreateApiKeyProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload,\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n /**\n * Creates a Api Key with a custom ID\n * @param id - Api Key ID\n * @param payload - Object representation of the Api Key to be created\n * @return Promise for the newly created Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createApiKeyWithId('', {\n * name: 'API Key name'\n * environments:[\n * {\n * sys: {\n * type: 'Link'\n * linkType: 'Environment',\n * id:''\n * }\n * }\n * ]\n * }\n * }))\n * .then((apiKey) => console.log(apiKey))\n * .catch(console.error)\n * ```\n */\n createApiKeyWithId(id: string, payload: CreateApiKeyProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, apiKeyId: id },\n payload,\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n\n /**\n * Creates an EnvironmentAlias with a custom ID\n * @param environmentAliasId - EnvironmentAlias ID\n * @param data - Object representation of the EnvironmentAlias to be created\n * @return Promise for the newly created EnvironmentAlias\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironmentAliasWithId('', {\n * environment: {\n * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' }\n * }\n * }))\n * .then((environmentAlias) => console.log(environmentAlias))\n * .catch(console.error)\n * ```\n */\n createEnvironmentAliasWithId(environmentAliasId: string, data: CreateEnvironmentAliasProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, environmentAliasId },\n payload: data,\n }).then((response) => wrapEnvironmentAlias(makeRequest, response))\n },\n\n /**\n * Gets an Environment Alias\n * @param Environment Alias ID\n * @return Promise for an Environment Alias\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => console.log(alias))\n * .catch(console.error)\n * ```\n */\n getEnvironmentAlias(environmentAliasId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'get',\n params: { spaceId: raw.sys.id, environmentAliasId },\n }).then((data) => wrapEnvironmentAlias(makeRequest, data))\n },\n /**\n * Gets a collection of Environment Aliases\n * @return Promise for a collection of Environment Aliases\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAliases()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironmentAliases() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentAliasCollection(makeRequest, data))\n },\n /**\n * Query for scheduled actions in space.\n * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details.\n * @return Promise for the scheduled actions query\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getScheduledActions({\n * 'environment.sys.id': '',\n * 'sys.status': 'scheduled'\n * }))\n * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items))\n * .catch(console.error)\n * ```\n */\n getScheduledActions(query: ScheduledActionQueryOptions) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query },\n }).then((response) => wrapScheduledActionCollection(makeRequest, response))\n },\n /**\n * Get a Scheduled Action in the current space by environment and ID.\n *\n * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself.\n * @returns Promise with the Scheduled Action\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getScheduledAction({\n * scheduledActionId: '',\n * environmentId: ''\n * }))\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error)\n * ```\n */\n getScheduledAction({\n scheduledActionId,\n environmentId,\n }: {\n scheduledActionId: string\n environmentId: string\n }) {\n const space = this.toPlainObject() as SpaceProps\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'get',\n params: {\n spaceId: space.sys.id,\n environmentId,\n scheduledActionId,\n },\n }).then((scheduledAction) => wrapScheduledAction(makeRequest, scheduledAction))\n },\n\n /**\n * Creates a scheduled action\n * @param data - Object representation of the scheduled action to be created\n * @return Promise for the newly created scheduled actions\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * }))\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error)\n * ```\n */\n createScheduledAction(data: Omit) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n /**\n * Update a scheduled action\n * @param {object} options\n * @param options.scheduledActionId the id of the scheduled action to update\n * @param options.version the sys.version of the scheduled action to be updated\n * @param payload the scheduled actions object with updates, omitting sys object\n * @returns Promise containing a wrapped scheduled action with helper methods\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => {\n * const { _sys, ...payload } = scheduledAction;\n * return space.updateScheduledAction({\n * ...payload,\n * scheduledFor: {\n * ...payload.scheduledFor,\n * timezone: 'Europe/Paris'\n * }\n * })\n * })\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n updateScheduledAction({\n scheduledActionId,\n payload,\n version,\n }: {\n scheduledActionId: string\n payload: Omit\n version: number\n }) {\n const spaceProps = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'update',\n params: {\n spaceId: spaceProps.sys.id,\n version,\n scheduledActionId,\n },\n payload,\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n /**\n * Cancels a Scheduled Action.\n * Only cancels actions that have not yet executed.\n *\n * @param {object} options\n * @param options.scheduledActionId the id of the scheduled action to be canceled\n * @param options.environmentId the environment ID of the scheduled action to be canceled\n * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action.\n * @returns Promise containing a wrapped Scheduled Action with helper methods\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Given that an Scheduled Action is scheduled\n * client.getSpace('')\n * .then((space) => space.deleteScheduledAction({\n * environmentId: '',\n * scheduledActionId: ''\n * }))\n * // The scheduled Action sys.status is now 'canceled'\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n deleteScheduledAction({\n scheduledActionId,\n environmentId,\n }: {\n scheduledActionId: string\n environmentId: string\n }) {\n const spaceProps = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'delete',\n params: {\n spaceId: spaceProps.sys.id,\n environmentId,\n scheduledActionId,\n },\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n }\n}\n","import { MakeRequest } from './common-types'\nimport entities from './entities'\nimport { UIConfig } from './entities/ui-config'\n\n/**\n * @private\n */\nexport type ContentfulUIConfigApi = ReturnType\n\n/**\n * @private\n */\nexport default function createUIConfigApi(makeRequest: MakeRequest) {\n const { wrapUIConfig } = entities.uiConfig\n\n const getParams = (self: UIConfig) => {\n const uiConfig = self.toPlainObject()\n\n return {\n params: {\n spaceId: uiConfig.sys.space.sys.id,\n environmentId: uiConfig.sys.environment.sys.id,\n },\n raw: uiConfig,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUIConfig())\n * .then((uiConfig) => {\n * uiConfig.entryListViews = [...]\n * return uiConfig.update()\n * })\n * .then((uiConfig) => console.log(`UIConfig updated.`))\n * .catch(console.error)\n * ```\n */\n update: async function update() {\n const { raw, params } = getParams(this)\n\n const data = await makeRequest({\n entityType: 'UIConfig',\n action: 'update',\n params,\n payload: raw,\n })\n return wrapUIConfig(makeRequest, data)\n },\n }\n}\n","import { MakeRequest } from './common-types'\nimport entities from './entities'\nimport { UserUIConfig } from './entities/user-ui-config'\n\n/**\n * @private\n */\nexport type ContentfulUIConfigApi = ReturnType\n\n/**\n * @private\n */\nexport default function createUserUIConfigApi(makeRequest: MakeRequest) {\n const { wrapUserUIConfig } = entities.userUIConfig\n\n const getParams = (self: UserUIConfig) => {\n const userUIConfig = self.toPlainObject()\n\n return {\n params: {\n spaceId: userUIConfig.sys.space.sys.id,\n environmentId: userUIConfig.sys.environment.sys.id,\n },\n raw: userUIConfig,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUserUIConfig())\n * .then((uiConfig) => {\n * uiConfig.entryListViews = [...]\n * return uiConfig.update()\n * })\n * .then((uiConfig) => console.log(`UserUIConfig updated.`))\n * .catch(console.error)\n * ```\n */\n update: async function update() {\n const { raw, params } = getParams(this)\n\n const data = await makeRequest({\n entityType: 'UserUIConfig',\n action: 'update',\n params,\n payload: raw,\n })\n return wrapUserUIConfig(makeRequest, data)\n },\n }\n}\n","/**\n * This method enhances a base object which would normally contain data, with\n * methods from another object that might work on manipulating that data.\n * All the added methods are set as non enumerable, non configurable, and non\n * writable properties. This ensures that if we try to clone or stringify the\n * base object, we don't have to worry about these additional methods.\n * @private\n * @param {object} baseObject - Base object with data\n * @param {object} methodsObject - Object with methods as properties. The key\n * values used here will be the same that will be defined on the baseObject.\n */\nexport default function enhanceWithMethods<\n B extends Record,\n M extends Record\n>(baseObject: B, methodsObject: M): M & B {\n // @ts-expect-error\n return Object.keys(methodsObject).reduce((enhancedObject, methodName) => {\n Object.defineProperty(enhancedObject, methodName, {\n enumerable: false,\n configurable: true,\n writable: false,\n value: methodsObject[methodName],\n })\n return enhancedObject\n }, baseObject)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MakeRequest, BasicMetaSysProps, SysLink } from '../common-types'\n\ntype Application = {\n id?: string\n name?: string\n sys: SysLink\n}\n\ntype AccessTokenSysProps = BasicMetaSysProps & {\n application: Application | null\n expiresAt: string | null\n lastUsedAt: string | null\n redactedValue: string\n}\n\nexport type AccessTokenProp = {\n sys: AccessTokenSysProps\n name: string\n scopes: 'content_management_manage'[]\n revokedAt: null | string\n token?: string\n}\n\nexport type CreatePersonalAccessTokenProps = Pick & {\n expiresIn: number\n}\n\nexport interface AccessToken extends AccessTokenProp, DefaultElements {\n /**\n * Revokes access token\n * @return Object the revoked access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: \n * })\n *\n * client.getAccessToken('')\n * .then((AccessToken) => {\n * return accessToken.revoke()\n * })\n * .catch(console.error)\n * ```\n */\n revoke(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw access token data\n * @return Wrapped access token\n */\nexport function wrapAccessToken(makeRequest: MakeRequest, data: AccessTokenProp): AccessToken {\n const AccessToken = toPlainObject(copy(data))\n const accessTokenWithMethods = enhanceWithMethods(AccessToken, {\n revoke: function () {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'revoke',\n params: { tokenId: data.sys.id },\n }).then((data) => wrapAccessToken(makeRequest, data))\n },\n })\n return freezeSys(accessTokenWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw access collection data\n * @return Wrapped access token collection data\n */\nexport const wrapAccessTokenCollection = wrapCollection(wrapAccessToken)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type ApiKeyProps = {\n sys: MetaSysProps\n name: string\n accessToken: string\n environments: {\n sys: MetaLinkProps\n }[]\n preview_api_key: { sys: MetaLinkProps }\n description?: string\n policies?: { effect: string; action: string }[]\n}\n\nexport type CreateApiKeyProps = Pick\n\nexport interface ApiKey extends ApiKeyProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getApiKey())\n * .then((apiKey) => apiKey.delete())\n * .then(() => console.log('apikey deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getApiKey())\n * .then((apiKey) => {\n * apiKey.name = 'New name'\n * return apiKey.update()\n * })\n * .then(apiKey => console.log(apiKey.name))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createApiKeyApi(makeRequest: MakeRequest) {\n const getParams = (data: ApiKeyProps) => ({\n spaceId: data.sys.space?.sys.id ?? '',\n apiKeyId: data.sys.id,\n })\n\n return {\n update: function update() {\n const self = this as ApiKeyProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'update',\n params: getParams(self),\n payload: self,\n headers: {},\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n\n delete: function del() {\n const self = this as ApiKeyProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key data\n */\nexport function wrapApiKey(makeRequest: MakeRequest, data: ApiKeyProps): ApiKey {\n const apiKey = toPlainObject(copy(data))\n const apiKeyWithMethods = enhanceWithMethods(apiKey, createApiKeyApi(makeRequest))\n return freezeSys(apiKeyWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key collection data\n * @return Wrapped api key collection data\n */\nexport const wrapApiKeyCollection = wrapCollection(wrapApiKey)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\n\ntype AppAccessTokenSys = Except & {\n space: SysLink\n environment: SysLink\n appDefinition: SysLink\n expiresAt: string\n}\n\nexport type AppAccessTokenProps = {\n /**\n * System metadata\n */\n sys: AppAccessTokenSys\n /**\n * Token for an app installation in a space environment\n */\n token: string\n}\n\nexport type CreateAppAccessTokenProps = {\n /**\n * JSON Web Token\n */\n jwt: string\n}\n\nexport interface AppAccessToken extends AppAccessTokenProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw app access token data\n * @return {AppAccessToken} Wrapped AppAccessToken data\n */\nexport function wrapAppAccessToken(\n _makeRequest: MakeRequest,\n data: AppAccessTokenProps\n): AppAccessToken {\n const appAccessToken = toPlainObject(copy(data))\n return freezeSys(appAccessToken)\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport {\n BasicMetaSysProps,\n CreateWithResponseParams,\n DefaultElements,\n GetAppActionCallDetailsParams,\n MakeRequest,\n SysLink,\n} from '../common-types'\nimport { WebhookCallDetailsProps } from './webhook'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppActionCallSys = Except & {\n appDefinition: SysLink\n space: SysLink\n environment: SysLink\n action: SysLink\n}\n\ntype RetryOptions = Pick\n\nexport type AppActionCallProps = {\n /**\n * System metadata\n */\n sys: AppActionCallSys\n}\n\nexport type CreateAppActionCallProps = {\n /** The body for the call */\n parameters: { [key: string]: any }\n}\n\ntype AppActionCallApi = {\n createWithResponse(): Promise\n getCallDetails(): Promise\n}\n\nexport type AppActionCallResponse = WebhookCallDetailsProps\n\nexport interface AppActionCallResponseData\n extends AppActionCallResponse,\n DefaultElements,\n AppActionCallApi {}\n\nexport interface AppActionCall extends AppActionCallProps, DefaultElements {}\n\n/**\n * @private\n */\nexport default function createAppActionCallApi(\n makeRequest: MakeRequest,\n retryOptions?: RetryOptions\n): AppActionCallApi {\n return {\n createWithResponse: function () {\n const payload: CreateAppActionCallProps = {\n parameters: {\n recipient: 'Alice ',\n message_body: 'Hello from Bob!',\n },\n }\n\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'createWithResponse',\n params: {\n spaceId: 'space-id',\n environmentId: 'environment-id',\n appDefinitionId: 'app-definiton-id',\n appActionId: 'app-action-id',\n ...retryOptions,\n },\n payload: payload,\n }).then((data) => wrapAppActionCallResponse(makeRequest, data))\n },\n\n getCallDetails: function getCallDetails() {\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'getCallDetails',\n params: {\n spaceId: 'space-id',\n environmentId: 'environment-id',\n callId: 'call-id',\n appActionId: 'app-action-id',\n },\n }).then((data) => wrapAppActionCallResponse(makeRequest, data))\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppActionCall data\n * @return Wrapped AppActionCall data\n */\nexport function wrapAppActionCall(\n makeRequest: MakeRequest,\n data: AppActionCallProps\n): AppActionCall {\n const signedRequest = toPlainObject(copy(data))\n const signedRequestWithMethods = enhanceWithMethods(\n signedRequest,\n createAppActionCallApi(makeRequest)\n )\n return signedRequestWithMethods\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppActionCall data\n * @return Wrapped AppActionCall data\n */\nexport function wrapAppActionCallResponse(\n makeRequest: MakeRequest,\n data: AppActionCallResponse,\n retryOptions?: RetryOptions\n): AppActionCallResponseData {\n const appActionCallResponse = toPlainObject(copy(data))\n const appActionCallResponseWithMethods = enhanceWithMethods(\n appActionCallResponse,\n createAppActionCallApi(makeRequest, retryOptions)\n )\n return appActionCallResponseWithMethods\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport { ParameterDefinition } from './widget-parameters'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppActionSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppActionParameterDefinition = Omit\n\nexport type AppActionCategoryProps = {\n sys: {\n id: AppActionCategoryType\n type: 'AppActionCategory'\n version: string\n }\n name: string\n description: string\n parameters?: AppActionParameterDefinition[]\n}\n\ntype BuiltInCategoriesProps = {\n /**\n * Category identifying the shape of the action.\n */\n category: 'Entries.v1.0' | 'Notification.v1.0'\n}\n\ntype CustomAppActionProps = {\n /**\n * \"Custom\" category requires \"parameters\"\n */\n category: 'Custom'\n parameters: AppActionParameterDefinition[]\n}\n\ntype AppActionCategory = BuiltInCategoriesProps | CustomAppActionProps\nexport type AppActionCategoryType = AppActionCategory['category']\n\nexport type CreateAppActionProps = AppActionCategory & {\n url: string\n name: string\n description?: string\n}\n\nexport type AppActionProps = AppActionCategory & {\n /**\n * System metadata\n */\n sys: AppActionSys\n /**\n * Url that will be called when the action is invoked\n */\n url: string\n /**\n * Human readable name for the action\n */\n name: string\n /**\n * Human readable description of the action\n */\n description?: string\n type?: 'endpoint' | 'function'\n}\n\nexport type AppAction = AppActionProps &\n DefaultElements & {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppAction(''))\n * .then((appAction) => appAction.delete())\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n }\n\n/**\n * @private\n */\nfunction createAppActionApi(makeRequest: MakeRequest) {\n const getParams = (data: AppActionProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n appActionId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppActionProps\n return makeRequest({\n entityType: 'AppAction',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle data\n * @return Wrapped App Bundle data\n */\nexport function wrapAppAction(makeRequest: MakeRequest, data: AppActionProps): AppAction {\n const appAction = toPlainObject(copy(data))\n\n const appActionWithMethods = enhanceWithMethods(appAction, createAppActionApi(makeRequest))\n\n return freezeSys(appActionWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle collection data\n * @return Wrapped App Bundle collection data\n */\nexport const wrapAppActionCollection = wrapCollection(wrapAppAction)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppBundleSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\ninterface ActionManifestProps {\n id?: string\n name: string\n description: string\n category: string\n path: string\n allowNetworks?: string[]\n}\n\ninterface FunctionManifestProps {\n id: string\n name: string\n description: string\n path: string\n accepts?: string[]\n allowNetworks?: string[]\n}\n\nexport type AppBundleFile = {\n name: string\n size: number\n md5: string\n}\n\nexport type CreateAppBundleProps = {\n appUploadId: string\n comment?: string\n actions?: ActionManifestProps[]\n functions?: FunctionManifestProps[]\n}\n\nexport type AppBundleProps = {\n /**\n * System metadata\n */\n sys: AppBundleSys\n /**\n * List of all the files that are in this bundle\n */\n files: AppBundleFile[]\n /**\n * A comment that describes this bundle\n */\n comment?: string\n}\n\nexport interface AppBundle extends AppBundleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundle(''))\n * .then((appBundle) => appBundle.delete())\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppBundleApi(makeRequest: MakeRequest) {\n const getParams = (data: AppBundleProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n appBundleId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppBundleProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle data\n * @return Wrapped App Bundle data\n */\nexport function wrapAppBundle(makeRequest: MakeRequest, data: AppBundleProps): AppBundle {\n const appBundle = toPlainObject(copy(data))\n\n const appBundleWithMethods = enhanceWithMethods(appBundle, createAppBundleApi(makeRequest))\n\n return freezeSys(appBundleWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle collection data\n * @return Wrapped App Bundle collection data\n */\nexport const wrapAppBundleCollection = wrapCollection(wrapAppBundle)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest, Link } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport createAppDefinitionApi, { ContentfulAppDefinitionAPI } from '../create-app-definition-api'\nimport { SetOptional, Except } from 'type-fest'\nimport { FieldType } from './field-type'\nimport { ParameterDefinition } from './widget-parameters'\nimport { AppInstallationProps } from './app-installation'\nimport { EnvironmentProps } from './environment'\n\nexport interface NavigationItem {\n name: string\n path: string\n}\n\ntype LocationType = 'app-config' | 'entry-sidebar' | 'entry-editor' | 'dialog' | 'page' | 'home'\n\nexport interface SimpleLocation {\n location: LocationType\n}\n\nexport interface EntryFieldLocation {\n location: 'entry-field'\n fieldTypes: FieldType[]\n}\n\nexport interface PageLocation {\n location: 'page'\n navigationItem?: NavigationItem\n}\n\nexport type AppLocation = SimpleLocation | EntryFieldLocation | PageLocation\n\nexport type AppDefinitionProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps & {\n organization: SysLink\n shared: boolean\n }\n /**\n * App name\n */\n name: string\n /**\n * URL where the root HTML document of the app can be found\n */\n src?: string\n /**\n * Link to an AppBundle\n */\n bundle?: Link<'AppBundle'>\n /**\n * Locations where the app can be installed\n */\n locations?: AppLocation[]\n /**\n * Instance parameter definitions\n */\n parameters?: {\n instance?: ParameterDefinition[]\n installation?: ParameterDefinition[]\n }\n}\n\nexport type CreateAppDefinitionProps = SetOptional<\n Except,\n 'src' | 'locations'\n>\n\nexport type AppDefinition = ContentfulAppDefinitionAPI &\n AppDefinitionProps &\n DefaultElements\n\nexport type AppInstallationsForOrganizationProps = {\n sys: {\n type: 'Array'\n }\n items: AppInstallationProps[]\n includes: {\n Environment: EnvironmentProps[]\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Definition data\n * @return Wrapped App Definition data\n */\nexport function wrapAppDefinition(\n makeRequest: MakeRequest,\n data: AppDefinitionProps\n): AppDefinition {\n const appDefinition = toPlainObject(copy(data))\n const appDefinitionWithMethods = enhanceWithMethods(\n appDefinition,\n createAppDefinitionApi(makeRequest)\n )\n return freezeSys(appDefinitionWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Definition collection data\n * @return Wrapped App Definition collection data\n */\nexport const wrapAppDefinitionCollection = wrapCollection(wrapAppDefinition)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppDetailsSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type IconType = 'base64'\nexport interface AppIcon {\n value: string\n type: IconType\n}\n\nexport type AppDetailsProps = {\n /**\n * System metadata\n */\n sys: AppDetailsSys\n /**\n * An Icon that represents the App\n */\n icon?: AppIcon\n}\n\nexport type CreateAppDetailsProps = {\n /**\n * An Icon that represents the App\n */\n icon?: AppIcon\n}\n\nexport interface AppDetails extends AppDetailsProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppDetails())\n * .then((appDetails) => appDetails.delete())\n * .then(() => console.log('appDetails deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @return Wrapped App Details data\n */\nfunction createAppDetailsApi(makeRequest: MakeRequest) {\n const getParams = (data: AppDetailsProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppDetailsProps\n return makeRequest({\n entityType: 'AppDetails',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppDetails data\n * @return Wrapped AppDetails data\n */\nexport function wrapAppDetails(makeRequest: MakeRequest, data: AppDetailsProps): AppDetails {\n const appDetails = toPlainObject(copy(data))\n return enhanceWithMethods(appDetails, createAppDetailsApi(makeRequest))\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppEventSubscriptionSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppEventSubscriptionProps = {\n /**\n * System metadata\n */\n sys: AppEventSubscriptionSys\n /** Subscription url that will receive events */\n targetUrl: string\n /** List of topics to subscribe to */\n topics: string[]\n}\n\nexport type CreateAppEventSubscriptionProps = Except\n\nexport interface AppEventSubscription\n extends AppEventSubscriptionProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppEventSubscription())\n * .then((eventSubscription) => eventSubscription.delete())\n * .then(() => console.log('eventSubscription deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createEventSubscriptionApi(makeRequest: MakeRequest) {\n const getParams = (data: AppEventSubscriptionProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppEventSubscriptionProps\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppEventSubscription data\n * @return Wrapped AppEventSubscription data\n */\nexport function wrapAppEventSubscription(\n makeRequest: MakeRequest,\n data: AppEventSubscriptionProps\n): AppEventSubscription {\n const eventSubscription = toPlainObject(copy(data))\n return enhanceWithMethods(eventSubscription, createEventSubscriptionApi(makeRequest))\n}\n","import { toPlainObject, freezeSys } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\nimport { Except } from 'type-fest'\nimport { FreeFormParameters } from './widget-parameters'\n\nexport type AppInstallationProps = {\n sys: Omit & {\n appDefinition: SysLink\n environment: SysLink\n space: SysLink\n }\n /**\n * Free-form installation parameters (API limits stringified length to 32KB)\n */\n parameters?: FreeFormParameters\n}\n\nexport type CreateAppInstallationProps = Except\n\nexport interface AppInstallation\n extends AppInstallationProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => {\n * appInstallation.parameters.someParameter = 'New Value'\n * return appInstallation.update()\n * })\n * .then((appInstallation) => console.log(`App installation ${appInstallation.sys.id} was updated`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => appInstallation.delete())\n * .then(() => console.log(`App installation deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppInstallationApi(makeRequest: MakeRequest) {\n const getParams = (data: AppInstallationProps) => ({\n spaceId: data.sys.space.sys.id,\n environmentId: data.sys.environment.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as AppInstallationProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'upsert',\n params: getParams(data),\n headers: {},\n payload: data,\n }).then((data) => wrapAppInstallation(makeRequest, data))\n },\n\n delete: function del() {\n const data = this.toPlainObject() as AppInstallationProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Installation data\n * @return Wrapped App installation data\n */\nexport function wrapAppInstallation(\n makeRequest: MakeRequest,\n data: AppInstallationProps\n): AppInstallation {\n const appInstallation = toPlainObject(copy(data))\n const appInstallationWithMethods = enhanceWithMethods(\n appInstallation,\n createAppInstallationApi(makeRequest)\n )\n return freezeSys(appInstallationWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapAppInstallationCollection = wrapCollection(wrapAppInstallation)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\n\ntype AppKeySys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport interface JWK {\n alg: 'RS256'\n kty: 'RSA'\n use: 'sig'\n x5c: [string]\n kid: string\n x5t: string\n}\n\nexport type AppKeyProps = {\n /**\n * System metadata\n */\n sys: AppKeySys\n /**\n * JSON Web Key\n */\n jwk: JWK\n /**\n * If generated, private key is returned\n */\n generated?: {\n /**\n * Base64 PEM\n */\n privateKey: string\n }\n}\n\nexport type CreateAppKeyProps = {\n /**\n * Toggle for automatic private key generation\n */\n generate?: boolean\n /**\n * JSON Web Key, required if generate is falsy\n */\n jwk?: JWK\n}\n\nexport interface AppKey extends AppKeyProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppKey())\n * .then((signingSecret) => signingSecret.delete())\n * .then(() => console.log('signingSecret deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createKeyApi(makeRequest: MakeRequest) {\n const getParams = (data: AppKeyProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n fingerprint: data.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppKeyProps\n return makeRequest({\n entityType: 'AppKey',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppKey data\n * @return Wrapped AppKey data\n */\nexport function wrapAppKey(makeRequest: MakeRequest, data: AppKeyProps): AppKey {\n const key = toPlainObject(copy(data))\n return enhanceWithMethods(key, createKeyApi(makeRequest))\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Key collection data\n * @return Wrapped App Key collection data\n */\nexport const wrapAppKeyCollection = wrapCollection(wrapAppKey)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\n\ntype AppSignedRequestSys = Except & {\n appDefinition: SysLink\n space: SysLink\n environment: SysLink\n}\n\nexport type AppSignedRequestProps = {\n /**\n * System metadata\n */\n sys: AppSignedRequestSys\n /** new headers to be included in the request */\n additionalHeaders: {\n 'x-contentful-signature': string\n 'x-contentful-signed-headers': string\n 'x-contentful-timestamp': string\n 'x-contentful-space-id': string\n 'x-contentful-environment-id': string\n 'x-contentful-user-id': string\n }\n}\n\nexport type CreateAppSignedRequestProps = {\n /** the request method */\n method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD'\n /** the path of the request method */\n path: string\n /** optional stringified body of the request */\n body?: string\n /** optional headers of the request */\n headers?: Record\n}\n\nexport interface AppSignedRequest\n extends AppSignedRequestProps,\n DefaultElements {}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppSignedRequest data\n * @return Wrapped AppSignedRequest data\n */\nexport function wrapAppSignedRequest(\n _makeRequest: MakeRequest,\n data: AppSignedRequestProps\n): AppSignedRequest {\n const signedRequest = toPlainObject(copy(data))\n return signedRequest\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppSigningSecretSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppSigningSecretProps = {\n /**\n * System metadata\n */\n sys: AppSigningSecretSys\n /** The last four characters of the signing secret */\n redactedValue: string\n}\n\nexport type CreateAppSigningSecretProps = {\n /** A 64 character matching the regular expression /^[0-9a-zA-Z+/=_-]+$/ */\n value: string\n}\n\nexport interface AppSigningSecret\n extends AppSigningSecretProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppSigningSecret())\n * .then((signingSecret) => signingSecret.delete())\n * .then(() => console.log('signingSecret deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createSigningSecretApi(makeRequest: MakeRequest) {\n const getParams = (data: AppSigningSecretProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppSigningSecretProps\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppSigningSecret data\n * @return Wrapped AppSigningSecret data\n */\nexport function wrapAppSigningSecret(\n makeRequest: MakeRequest,\n data: AppSigningSecretProps\n): AppSigningSecret {\n const signingSecret = toPlainObject(copy(data))\n return enhanceWithMethods(signingSecret, createSigningSecretApi(makeRequest))\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppUploadSys = Except\n\nexport type AppUploadProps = {\n sys: AppUploadSys & {\n expiresAt: string\n organization: SysLink\n }\n}\n\nexport interface AppUpload extends AppUploadProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppUpload(''))\n * .then((appUpload) => appUpload.delete())\n * .then(() => console.log(`App Upload deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppUploadApi(makeRequest: MakeRequest) {\n const getParams = (data: AppUploadProps) => ({\n organizationId: data.sys.organization.sys.id,\n appUploadId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppUploadProps\n return makeRequest({\n entityType: 'AppUpload',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Upload data\n * @return Wrapped App Upload data\n */\nexport function wrapAppUpload(makeRequest: MakeRequest, data: AppUploadProps): AppUpload {\n const appUpload = toPlainObject(copy(data))\n const appUploadWithMethods = enhanceWithMethods(appUpload, createAppUploadApi(makeRequest))\n\n return freezeSys(appUploadWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Upload collection data\n * @return Wrapped App Upload collection data\n */\nexport const wrapAppUploadCollection = wrapCollection(wrapAppUpload)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { DefaultElements, MakeRequest } from '../common-types'\n\nexport type AssetKeyProps = {\n /** A JWT describing a policy; needs to be attached to signed URLs */\n policy: string\n /** A secret key to be used for signing URLs */\n secret: string\n}\n\nexport type CreateAssetKeyProps = {\n /** (required) UNIX timestamp in the future (but not more than 48 hours from now) */\n expiresAt: number\n}\n\nexport interface AssetKey extends AssetKeyProps, DefaultElements {}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw asset key data\n * @return Wrapped asset key data\n */\nexport function wrapAssetKey(_makeRequest: MakeRequest, data: AssetKeyProps): AssetKey {\n const assetKey = toPlainObject(copy(data))\n return assetKey\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport {\n MetaSysProps,\n DefaultElements,\n EntityMetaSysProps,\n MetadataProps,\n MakeRequest,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport * as checks from '../plain/checks'\n\nexport type AssetProps = {\n sys: EntityMetaSysProps\n fields: {\n /** Title for this asset */\n title: { [key: string]: string }\n /** Description for this asset */\n description?: { [key: string]: string }\n /** File object for this asset */\n file: {\n [key: string]: {\n fileName: string\n contentType: string\n /** Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone. */\n upload?: string\n /** Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed. */\n url?: string\n /** Details for the file, depending on file type (example: image size in bytes, etc) */\n details?: Record\n uploadFrom?: Record\n }\n }\n }\n metadata?: MetadataProps\n}\n\nexport type CreateAssetProps = Omit\n\nexport type CreateAssetFromFilesOptions = { uploadTimeout?: number }\n\nexport interface AssetFileProp {\n sys: MetaSysProps\n fields: {\n title: { [key: string]: string }\n description: { [key: string]: string }\n file: {\n [key: string]: {\n file: string | ArrayBuffer | Stream\n contentType: string\n fileName: string\n }\n }\n }\n}\n\nexport interface AssetProcessingForLocale {\n processingCheckWait?: number\n processingCheckRetries?: number\n}\n\ntype AssetApi = {\n /**\n * Triggers asset processing after an upload, for the files uploaded to all locales of an asset.\n * @param options - Additional options for processing\n * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)\n * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)\n * @return Object returned from the server with updated metadata.\n * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner',\n * 'de-DE': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * },\n * 'de-DE': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example-de.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.processForAllLocales())\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n processForAllLocales(options?: AssetProcessingForLocale): Promise\n /**\n * Triggers asset processing after an upload, for the file uploaded to a specific locale.\n * @param locale - Locale which processing should be triggered for\n * @param options - Additional options for processing\n * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)\n * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)\n * @return Object returned from the server with updated metadata.\n * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner',\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.processForLocale('en-US'))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n processForLocale(locale: string, Options?: AssetProcessingForLocale): Promise\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.publish())\n * .then((asset) => console.log(`Asset ${asset.sys.id} published.`)\n * .catch(console.error)\n * ```\n */\n publish(): Promise\n /**\n * Archives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.archive())\n * .then((asset) => console.log(`Asset ${asset.sys.id} archived.`)\n * .catch(console.error)\n * ```\n */\n archive(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.delete())\n * .then((asset) => console.log(`Asset deleted.`)\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Unarchives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.unarchive())\n * .then((asset) => console.log(`Asset ${asset.sys.id} unarchived.`)\n * .catch(console.error)\n * ```\n */\n unarchive(): Promise\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.unpublish())\n * .then((asset) => console.log(`Asset ${asset.sys.id} unpublished.`)\n * .catch(console.error)\n * ```\n */\n unpublish(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => {\n * asset.fields.title['en-US'] = 'New asset title'\n * return asset.update()\n * })\n * .then((asset) => console.log(`Asset ${asset.sys.id} updated.`)\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Checks if the asset is published. A published asset might have unpublished changes\n */\n isPublished(): boolean\n /**\n * Checks if the asset is updated. This means the asset was previously published but has unpublished changes.\n */\n isUpdated(): boolean\n /**\n * Checks if the asset is in draft mode. This means it is not published.\n */\n isDraft(): boolean\n /**\n * Checks if asset is archived. This means it's not exposed to the Delivery/Preview APIs.\n */\n isArchived(): boolean\n}\n\nexport interface Asset extends AssetProps, DefaultElements, AssetApi {}\n\n/**\n * @private\n */\nfunction createAssetApi(makeRequest: MakeRequest): AssetApi {\n const getParams = (raw: AssetProps) => {\n return {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.environment.sys.id,\n assetId: raw.sys.id,\n }\n }\n\n return {\n processForLocale: function processForLocale(\n locale: string,\n options?: AssetProcessingForLocale\n ) {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'processForLocale',\n params: {\n ...getParams(raw),\n locale,\n options,\n asset: raw,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n processForAllLocales: function processForAllLocales(options?: AssetProcessingForLocale) {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'processForAllLocales',\n params: {\n ...getParams(raw),\n asset: raw,\n options,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n update: function update() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n headers: {},\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'delete',\n params: getParams(raw),\n })\n },\n\n publish: function publish() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'publish',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n unpublish: function unpublish() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'unpublish',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n archive: function archive() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'archive',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n unarchive: function unarchive() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'unarchive',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n isPublished: function isPublished() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isPublished(raw)\n },\n\n isUpdated: function isUpdated() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isUpdated(raw)\n },\n\n isDraft: function isDraft() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isDraft(raw)\n },\n\n isArchived: function isArchived() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isArchived(raw)\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw asset data\n * @return Wrapped asset data\n */\nexport function wrapAsset(makeRequest: MakeRequest, data: AssetProps): Asset {\n const asset = toPlainObject(copy(data))\n const assetWithMethods = enhanceWithMethods(asset, createAssetApi(makeRequest))\n return freezeSys(assetWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapAssetCollection = wrapCollection(wrapAsset)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n MakeRequestPayload,\n VersionedLink,\n} from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AsyncActionProcessingOptions, pollAsyncActionStatus } from '../methods/action'\n\n/** Entity types supported by the BulkAction API */\ntype Entity = 'Entry' | 'Asset'\ntype Collection = Array\ntype EntityError = { entity: VersionedLink | Link; error: any }\n\nexport type BulkActionType = 'publish' | 'unpublish' | 'validate'\n\n/** Represents the state of the BulkAction */\nexport enum BulkActionStatus {\n /** BulkAction is pending execution */\n created = 'created',\n /** BulkAction has been started and pending completion */\n inProgress = 'inProgress',\n /** BulkAction was completed successfully (terminal state) */\n succeeded = 'succeeded',\n /** BulkAction failed to complete (terminal state) */\n failed = 'failed',\n}\n\nconst STATUSES = Object.values(BulkActionStatus)\ntype BulkActionStatuses = typeof STATUSES[number]\n\ninterface BulkActionFailedError {\n sys: { type: 'Error'; id: 'BulkActionFailed' }\n message?: string\n details?: {\n errors: Collection\n }\n}\n\nexport type BulkActionPayload =\n | BulkActionPublishPayload\n | BulkActionUnpublishPayload\n | BulkActionValidatePayload\n\nexport interface BulkActionValidatePayload extends MakeRequestPayload {\n action?: 'publish'\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\nexport interface BulkActionUnpublishPayload extends MakeRequestPayload {\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\n\nexport interface BulkActionPublishPayload extends MakeRequestPayload {\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\n\nexport type BulkActionSysProps = {\n id: string\n type: 'BulkAction'\n status: BulkActionStatuses\n space: Link<'Space'>\n environment: Link<'Environment'>\n createdBy: Link<'User'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n}\n\n/** The object returned by the BulkActions API */\nexport interface BulkActionProps {\n sys: BulkActionSysProps\n action: BulkActionType\n /** original payload when BulkAction was created */\n payload: TPayload\n /** error information, if present */\n error?: BulkActionFailedError\n}\n\nexport interface BulkActionApiMethods {\n /** Performs a new GET request and returns the wrapper BulkAction */\n get(): BulkAction\n /** Waits until the BulkAction is in one of the final states (`succeeded` or `failed`) and returns it. */\n waitProcessing(options?: AsyncActionProcessingOptions): Promise\n}\n\n/**\n * @private\n */\nfunction createBulkActionApi(makeRequest: MakeRequest) {\n const getParams = (self: BulkAction) => {\n const bulkAction = self.toPlainObject()\n\n return {\n spaceId: bulkAction.sys.space.sys.id,\n environmentId: bulkAction.sys.environment.sys.id,\n bulkActionId: bulkAction.sys.id,\n }\n }\n\n return {\n async get() {\n const params = getParams(this)\n return makeRequest({\n entityType: 'BulkAction',\n action: 'get',\n params,\n }).then((bulkAction) => wrapBulkAction(makeRequest, bulkAction))\n },\n async waitProcessing(\n options?: AsyncActionProcessingOptions\n ): Promise> {\n return pollAsyncActionStatus>(async () => this.get(), options)\n },\n }\n}\n\nexport interface BulkAction\n extends BulkActionProps,\n BulkActionApiMethods,\n DefaultElements> {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw BulkAction data\n * @return Wrapped BulkAction data\n */\nexport function wrapBulkAction(\n makeRequest: MakeRequest,\n data: BulkActionProps\n): BulkAction {\n const bulkAction = toPlainObject(copy(data))\n const bulkActionWithApiMethods = enhanceWithMethods(\n bulkAction as any,\n createBulkActionApi(makeRequest)\n )\n return freezeSys(bulkActionWithApiMethods) as BulkAction\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Node, Text } from '@contentful/rich-text-types'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetCommentParams,\n GetEntryParams,\n GetSpaceEnvironmentParams,\n Link,\n MakeRequest,\n SysLink,\n VersionedLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n// PROPS //\n\ninterface LinkWithReference extends Link {\n sys: Link['sys'] & {\n ref: string\n }\n}\n\nexport type CommentSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Comment'\n space: SysLink\n environment: SysLink\n parentEntity:\n | Link<'ContentType'>\n | LinkWithReference<'ContentType'>\n | Link<'Entry'>\n | LinkWithReference<'Entry'>\n | VersionedLink<'Workflow'>\n parent: Link<'Comment'> | null\n}\n\nexport type PlainTextBodyProperty = 'plain-text'\nexport type RichTextBodyProperty = 'rich-text'\n\nexport type RichTextBodyFormat = { bodyFormat: RichTextBodyProperty }\nexport type PlainTextBodyFormat = { bodyFormat?: PlainTextBodyProperty }\n\nexport type CommentStatus = 'active' | 'resolved'\n\nexport type CommentProps = {\n sys: CommentSysProps\n body: string\n status: CommentStatus\n}\n\nexport type CreateCommentProps = Omit & { status?: CommentStatus }\nexport type UpdateCommentProps = Omit & {\n sys: Pick\n}\n\n// Remove and replace with BLOCKS as soon as rich-text-types supports mentions\nexport enum CommentNode {\n Document = 'document',\n Paragraph = 'paragraph',\n Mention = 'mention',\n}\n\n// Add \"extends Block\" as soon as rich-text-types supports mentions\nexport interface Mention {\n nodeType: CommentNode.Mention\n data: { target: Link<'User'> | Link<'Team'> }\n content: Text[]\n}\n\nexport interface RootParagraph extends Node {\n nodeType: CommentNode.Paragraph\n content: (Text | Mention)[]\n}\n\n// Add \"extends Document\" as soon as rich-text-types supports mentions.\nexport interface RichTextCommentDocument extends Node {\n nodeType: CommentNode.Document\n content: RootParagraph[]\n}\n\nexport type RichTextCommentBodyPayload = { body: RichTextCommentDocument }\n\nexport type RichTextCommentProps = Omit & RichTextCommentBodyPayload\n\n// PARAMS //\n\n// We keep this type as explicit as possible until we open up the comments entity further\nexport type GetCommentParentEntityParams = GetSpaceEnvironmentParams &\n (\n | {\n parentEntityType: 'ContentType'\n parentEntityId: string\n parentEntityReference?: string\n }\n | {\n parentEntityType: 'Entry'\n parentEntityId: string\n parentEntityReference?: string\n }\n | {\n parentEntityType: 'Workflow'\n parentEntityId: string\n parentEntityVersion?: number\n }\n )\n\nexport type GetManyCommentsParams = (GetEntryParams | GetCommentParentEntityParams) & {\n status?: CommentStatus\n}\nexport type CreateCommentParams = (GetEntryParams | GetCommentParentEntityParams) & {\n parentCommentId?: string\n}\nexport type UpdateCommentParams = GetCommentParams\nexport type DeleteCommentParams = GetCommentParams & {\n version: number\n}\n\n// NESTED CLIENT //\n\ntype CommentApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Comment extends CommentProps, DefaultElements, CommentApi {}\n\nexport interface RichTextComment\n extends Omit,\n RichTextCommentProps,\n DefaultElements,\n CommentApi {}\n\n/**\n * @private\n */\nexport default function createCommentApi(makeRequest: MakeRequest): CommentApi {\n const getParams = (comment: CommentProps): GetCommentParams => ({\n spaceId: comment.sys.space.sys.id,\n environmentId: comment.sys.environment.sys.id,\n entryId: comment.sys.parentEntity.sys.id,\n commentId: comment.sys.id,\n })\n\n return {\n update: async function () {\n const raw = this.toPlainObject() as CommentProps\n\n const data = await makeRequest({\n entityType: 'Comment',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n })\n return wrapComment(makeRequest, data)\n },\n\n delete: async function () {\n const raw = this.toPlainObject() as CommentProps\n\n await makeRequest({\n entityType: 'Comment',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapComment(\n makeRequest: MakeRequest,\n data: CommentProps | RichTextCommentProps\n): Comment | RichTextComment {\n const comment = toPlainObject(copy(data))\n const commentWithMethods = enhanceWithMethods(comment, createCommentApi(makeRequest))\n return freezeSys(commentWithMethods) as Comment | RichTextComment\n}\n\n/**\n * @private\n */\nexport const wrapCommentCollection = wrapCollection(wrapComment)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except, SetOptional, RequireAtLeastOne } from 'type-fest'\nimport {\n BasicMetaSysProps,\n Collection,\n DefaultElements,\n Link,\n MakeRequest,\n QueryOptions,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { isDraft, isPublished, isUpdated } from '../plain/checks'\nimport { ContentFields } from './content-type-fields'\nimport { EditorInterface, wrapEditorInterface } from './editor-interface'\nimport { Snapshot, SnapshotProps, wrapSnapshot, wrapSnapshotCollection } from './snapshot'\nimport { omitAndDeleteField } from '../methods/content-type'\n\nexport type ContentTypeMetadata = {\n annotations?: RequireAtLeastOne<\n {\n ContentType?: AnnotationAssignment[]\n ContentTypeField?: Record\n },\n 'ContentType' | 'ContentTypeField'\n >\n}\n\nexport type AnnotationAssignment = Link<'Annotation'> & {\n parameters?: Record\n}\n\nexport type ContentTypeProps = {\n sys: BasicMetaSysProps & {\n space: SysLink\n environment: SysLink\n firstPublishedAt?: string\n publishedCounter?: number\n publishedVersion?: number\n }\n name: string\n description: string\n /** Field used as the main display field for Entries */\n displayField: string\n /** All the fields contained in this Content Type */\n fields: ContentFields[]\n metadata?: ContentTypeMetadata\n}\n\nexport type CreateContentTypeProps = SetOptional<\n Except,\n 'description' | 'displayField'\n>\n\ntype ContentTypeApi = {\n /**\n * Sends an update to the server with any changes made to the object's properties.
\n * Important note about deleting fields: The standard way to delete a field is with two updates: first omit the property from your responses (set the field attribute \"omitted\" to true), and then\n * delete it by setting the attribute \"deleted\" to true. See the \"Deleting fields\" section in the\n * API reference for more reasoning. Alternatively,\n * you may use the convenience method omitAndDeleteField to do both steps at once.\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => {\n * contentType.name = 'New name'\n * return contentType.update()\n * })\n * .then(contentType => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.delete())\n * .then(() => console.log('contentType deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.publish())\n * .then((contentType) => console.log(`${contentType.sys.id} is published`))\n * .catch(console.error)\n * ```\n */\n publish(): Promise\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.unpublish())\n * .then((contentType) => console.log(`${contentType.sys.id} is unpublished`))\n * .catch(console.error)\n * ```\n */\n unpublish(): Promise\n /**\n * Gets the editor interface for the object
\n * Important note: The editor interface only represent a published contentType.
\n * To get the most recent representation of the contentType make sure to publish it first\n * @return Object returned from the server with the current editor interface.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => console.log(editorInterface.contorls))\n * .catch(console.error)\n * ```\n */\n getEditorInterface(): Promise\n /**\n * Checks if the contentType is in draft mode. This means it is not published.\n */\n isDraft(): boolean\n /**\n * Checks if the contentType is published. A published contentType might have unpublished changes (@see {ContentType.isUpdated})\n */\n isPublished(): boolean\n /**\n * Checks if the contentType is updated. This means the contentType was previously published but has unpublished changes.\n */\n isUpdated(): boolean\n\n /**\n * Omits and deletes a field if it exists on the contentType. This is a convenience method which does both operations at once and potentially less\n * safe than the standard way. See note about deleting fields on the Update method.\n * @return Object returned from the server with updated metadata.\n */\n omitAndDeleteField(id: string): Promise\n\n /**\n * Gets a snapshot of a contentType\n * @param snapshotId - Id of the snapshot\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((entry) => entry.getSnapshot(''))\n * .then((snapshot) => console.log(snapshot))\n * .catch(console.error)\n * ```\n */\n getSnapshot(snapshotId: string): Promise>\n /**\n * Gets all snapshots of a contentType\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((entry) => entry.getSnapshots())\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getSnapshots(): Promise, SnapshotProps>>\n}\n\nexport interface ContentType\n extends ContentTypeProps,\n DefaultElements,\n ContentTypeApi {}\n\n/**\n * @private\n */\nfunction createContentTypeApi(makeRequest: MakeRequest): ContentTypeApi {\n const getParams = (self: ContentType) => {\n const contentType = self.toPlainObject() as ContentTypeProps\n\n return {\n raw: contentType,\n params: {\n spaceId: contentType.sys.space.sys.id,\n environmentId: contentType.sys.environment.sys.id,\n contentTypeId: contentType.sys.id,\n },\n }\n }\n\n return {\n update: function () {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: raw,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n delete: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'delete',\n params,\n }).then(() => {\n // noop\n })\n },\n\n publish: function () {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'publish',\n params,\n payload: raw,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n unpublish: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'unpublish',\n params,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n getEditorInterface: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'get',\n params,\n }).then((data) => wrapEditorInterface(makeRequest, data))\n },\n\n getSnapshots: function (query: QueryOptions = {}) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForContentType',\n params: { ...params, query },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n getSnapshot: function (snapshotId: string) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getForContentType',\n params: { ...params, snapshotId },\n }).then((data) => wrapSnapshot(makeRequest, data))\n },\n\n isPublished: function () {\n return isPublished(this)\n },\n\n isUpdated: function () {\n return isUpdated(this)\n },\n\n isDraft: function () {\n return isDraft(this)\n },\n\n omitAndDeleteField: function (fieldId: string) {\n const { raw, params } = getParams(this)\n return omitAndDeleteField(makeRequest, { ...params, fieldId }, raw).then((data) =>\n wrapContentType(makeRequest, data)\n )\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw content type data\n * @return Wrapped content type data\n */\nexport function wrapContentType(makeRequest: MakeRequest, data: ContentTypeProps): ContentType {\n const contentType = toPlainObject(copy(data))\n const contentTypeWithMethods = enhanceWithMethods(contentType, createContentTypeApi(makeRequest))\n return freezeSys(contentTypeWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapContentTypeCollection = wrapCollection(wrapContentType)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { MetaSysProps, MetaLinkProps, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport { DefinedParameters } from './widget-parameters'\n\ninterface WidgetConfig {\n /**\n * Type of the widget used\n */\n widgetNamespace?: string\n /**\n * ID of the widget used\n */\n widgetId?: string\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport interface Control extends WidgetConfig {\n /**\n * ID of the customized field\n */\n fieldId: string\n}\n\nexport interface GroupControl extends WidgetConfig {\n /**\n * ID of the customized field group\n */\n groupId: string\n}\n\nexport interface FieldGroupItem {\n groupId: string\n name: string\n items: EditorLayoutItem[]\n}\n\nexport interface FieldItem {\n fieldId: string\n}\n\nexport type EditorLayoutItem = FieldItem | FieldGroupItem\n\nexport interface Editor {\n /**\n * Type of the widget used\n */\n widgetNamespace: string\n /**\n * ID of the widget used\n */\n widgetId: string\n /**\n * Widget will be enabled if disabled property is missing\n */\n disabled?: boolean\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport interface SidebarItem {\n /**\n * Type of the widget used\n */\n widgetNamespace: string\n /**\n * ID of the widget used\n */\n widgetId: string\n /**\n * Widget will be enabled if disabled property is missing\n */\n disabled?: boolean\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport type EditorInterfaceProps = {\n sys: MetaSysProps & {\n space: { sys: MetaLinkProps }\n environment: { sys: MetaLinkProps }\n contentType: { sys: MetaLinkProps }\n }\n /**\n * Array of fields and their associated widgetId\n */\n controls?: Control[]\n /**\n * Array of field groups and their associated widgetId\n */\n groupControls?: GroupControl[]\n /**\n * Array of editors. Defaults will be used if property is missing.\n */\n editors?: Editor[]\n /**\n * Legacy singular editor override\n */\n editor?: Editor\n /**\n * Array of editor layout field groups\n */\n editorLayout?: FieldGroupItem[]\n /**\n * Array of sidebar widgets. Defaults will be used if property is missing.\n */\n sidebar?: SidebarItem[]\n}\n\nexport interface EditorInterface\n extends EditorInterfaceProps,\n DefaultElements {\n /**\n * Gets a control for a specific field\n * @return control object for specific field\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => {\n * control = editorInterface.getControlForField('')\n * console.log(control)\n * })\n * .catch(console.error)\n * ```\n */\n getControlForField(id: string): null | Control\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => {\n * editorInterface.controls[0] = { \"fieldId\": \"title\", \"widgetId\": \"singleLine\"}\n * editorInterface.editors = [\n * { \"widgetId\": \"custom-widget\", \"widgetNamespace\": \"app\" }\n * ]\n * return editorInterface.update()\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createEditorInterfaceApi(makeRequest: MakeRequest) {\n return {\n update: function () {\n const self = this as EditorInterface\n const raw = self.toPlainObject()\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'update',\n params: {\n spaceId: self.sys.space.sys.id,\n environmentId: self.sys.environment.sys.id,\n contentTypeId: self.sys.contentType.sys.id,\n },\n payload: raw,\n }).then((response) => wrapEditorInterface(makeRequest, response))\n },\n\n getControlForField: function (fieldId: string) {\n const self = this as EditorInterface\n const result = (self.controls || []).filter((control) => {\n return control.fieldId === fieldId\n })\n return result && result.length > 0 ? result[0] : null\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapEditorInterface(\n makeRequest: MakeRequest,\n data: EditorInterfaceProps\n): EditorInterface {\n const editorInterface = toPlainObject(copy(data))\n const editorInterfaceWithMethods = enhanceWithMethods(\n editorInterface,\n createEditorInterfaceApi(makeRequest)\n )\n return freezeSys(editorInterfaceWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapEditorInterfaceCollection = wrapCollection(wrapEditorInterface)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n CollectionProp,\n DefaultElements,\n EntityMetaSysProps,\n EntryMetaSysProps,\n KeyValueMap,\n MakeRequest,\n MetadataProps,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport createEntryApi, { ContentfulEntryApi } from '../create-entry-api'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AssetProps } from './asset'\n\nexport type EntryProps = {\n sys: EntryMetaSysProps\n metadata?: MetadataProps\n\n fields: T\n}\n\nexport type CreateEntryProps = Omit, 'sys'>\n\nexport type EntryReferenceError = {\n sys: {\n type: 'error'\n id: 'notResolvable'\n }\n details: {\n type: 'Link'\n linkType: 'Entry' | 'Asset'\n id: string\n }\n}\n\nexport interface EntryReferenceProps extends CollectionProp {\n includes?: {\n Entry?: EntryProps[]\n Asset?: AssetProps[]\n }\n errors?: EntryReferenceError[]\n}\n\nexport type EntryReferenceOptionsProps = {\n include?: number\n}\n\nexport interface Entry extends EntryProps, DefaultElements, ContentfulEntryApi {}\n\nexport type WithResourceName = T extends { sys: infer Sys }\n ? Omit & {\n sys: Sys & { urn: string }\n }\n : never\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw entry data\n * @return Wrapped entry data\n */\nexport function wrapEntry(makeRequest: MakeRequest, data: EntryProps): Entry {\n const entry = toPlainObject(copy(data))\n const entryWithMethods = enhanceWithMethods(entry, createEntryApi(makeRequest))\n return freezeSys(entryWithMethods)\n}\n\n/**\n * Data is also mixed in with link getters if links exist and includes were requested\n * @private\n */\nexport const wrapEntryCollection = wrapCollection(wrapEntry)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport {\n DefaultElements,\n MetaLinkProps,\n BasicMetaSysProps,\n SysLink,\n MakeRequest,\n} from '../common-types'\n\nexport type EnvironmentAliasProps = {\n /**\n * System meta data\n */\n sys: BasicMetaSysProps & { space: SysLink }\n environment: { sys: MetaLinkProps }\n}\n\nexport type CreateEnvironmentAliasProps = Omit\n\nexport interface EnvironmentAlias\n extends EnvironmentAliasProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties. Currently, you can only change the id of the alias's underlying environment. See the example below.\n * @memberof EnvironmentAlias\n * @func update\n * @return {Promise} Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => {\n * alias.environment.sys.id = ''\n * return alias.update()\n * })\n * .then((alias) => console.log(`alias ${alias.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @memberof EnvironmentAlias\n * @func delete\n * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => {\n * return alias.delete()\n * })\n * .then(() => console.log(`Alias deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createEnvironmentAliasApi(makeRequest: MakeRequest) {\n const getParams = (alias: EnvironmentAliasProps) => ({\n spaceId: alias.sys.space.sys.id,\n environmentAliasId: alias.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as EnvironmentAliasProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapEnvironmentAlias(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as EnvironmentAliasProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'delete',\n params: getParams(raw),\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw environment alias data\n * @return Wrapped environment alias data\n */\nexport function wrapEnvironmentAlias(\n makeRequest: MakeRequest,\n data: EnvironmentAliasProps\n): EnvironmentAlias {\n const alias = toPlainObject(copy(data))\n const enhancedAlias = enhanceWithMethods(alias, createEnvironmentAliasApi(makeRequest))\n return freezeSys(enhancedAlias)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw environment alias collection data\n * @return Wrapped environment alias collection data\n */\nexport const wrapEnvironmentAliasCollection = wrapCollection(wrapEnvironmentAlias)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n VersionedLink,\n} from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\n\ntype JsonObject = { [Key in string]?: JsonValue }\ntype JsonArray = Array\ntype JsonValue = string | number | boolean | JsonObject | JsonArray | null\n\nenum EnvironmentTemplateInstallationStatuses {\n created = 'created',\n inProgress = 'inProgress',\n failed = 'failed',\n succeeded = 'succeeded',\n disconnected = 'disconnected',\n inRetry = 'inRetry',\n}\n\nexport type EnvironmentTemplateInstallationStatus =\n keyof typeof EnvironmentTemplateInstallationStatuses\n\nexport type EnvironmentTemplateInstallationProps = {\n sys: BasicMetaSysProps & {\n type: 'EnvironmentTemplateInstallation'\n space: Link<'Space'>\n template: VersionedLink<'Template'>\n status: EnvironmentTemplateInstallationStatus\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n createdBy: Link<'User' | 'AppDefinition'>\n updatedBy: Link<'User' | 'AppDefinition'>\n completedAt?: ISO8601Timestamp\n errors?: JsonArray\n environment: Link<'Environment'>\n version: number\n }\n}\n\nexport type CreateEnvironmentTemplateInstallationProps = {\n version: number\n takeover?: {\n items: Link<'ContentType'>[]\n }\n changeSet?: Link<'ChangeSet'>\n}\n\nexport type ValidateEnvironmentTemplateInstallationProps = Omit<\n CreateEnvironmentTemplateInstallationProps,\n 'version'\n>\n\nexport type ValidationFinding = {\n message: string\n details: Record\n}\n\nexport type EnvironmentTemplateValidationProps = {\n sys: {\n type: 'Array'\n environment: Link<'Environment'>\n space: Link<'Space'>\n changeSet: Link<'ChangeSet'>\n }\n items: T[]\n}\n\nexport type EnvironmentTemplateInstallation = EnvironmentTemplateInstallationProps &\n DefaultElements\n\nexport function wrapEnvironmentTemplateInstallation(\n makeRequest: MakeRequest,\n data: EnvironmentTemplateInstallationProps\n): EnvironmentTemplateInstallation {\n const environmentTemplate = toPlainObject(copy(data))\n return freezeSys(environmentTemplate)\n}\n\nexport const wrapEnvironmentTemplateInstallationCollection = wrapCursorPaginatedCollection(\n wrapEnvironmentTemplateInstallation\n)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, Link, MakeRequest, DefaultElements } from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\nimport {\n ContentfulEnvironmentTemplateApi,\n createEnvironmentTemplateApi,\n} from '../create-environment-template-api'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { ContentTypeProps } from './content-type'\nimport { EditorInterfaceProps } from './editor-interface'\n\nexport type Hint = {\n operation: 'renameFieldId'\n fieldId: string\n previousFieldId: string\n}\n\nexport interface EditorInterfaceTemplateProps extends Omit {\n contentTypeTemplate: Link<'ContentTypeTemplate'>\n}\n\nexport interface ContentTypeTemplateProps extends Omit {\n id: string\n basedOn?: {\n space: Link<'Space'>\n environment: Link<'Environment'>\n contentType: Link<'ContentType'>\n }\n hints?: Array\n}\n\nexport type EnvironmentTemplateProps = {\n sys: BasicMetaSysProps & { version: number; organization: Link<'Organization'> }\n name: string\n description?: string\n versionName: string\n versionDescription?: string\n entities: {\n contentTypeTemplates: Array\n editorInterfaceTemplates: Array\n }\n}\n\nexport type CreateEnvironmentTemplateProps = Omit\n\nexport type EnvironmentTemplate = EnvironmentTemplateProps &\n DefaultElements &\n ContentfulEnvironmentTemplateApi\n\nexport function wrapEnvironmentTemplate(\n makeRequest: MakeRequest,\n data: EnvironmentTemplateProps,\n organizationId: string\n): EnvironmentTemplate {\n const environmentTemplate = toPlainObject(copy(data))\n const environmentTemplateApi = createEnvironmentTemplateApi(makeRequest, organizationId)\n const enhancedEnvironmentTemplate = enhanceWithMethods(\n environmentTemplate,\n environmentTemplateApi\n )\n return freezeSys(enhancedEnvironmentTemplate)\n}\n\nexport const wrapEnvironmentTemplateCollection =\n wrapCursorPaginatedCollection(wrapEnvironmentTemplate)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport createEnvironmentApi, { ContentfulEnvironmentAPI } from '../create-environment-api'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, SysLink, BasicMetaSysProps, MakeRequest } from '../common-types'\n\ntype EnvironmentMetaSys = BasicMetaSysProps & {\n status: SysLink\n space: SysLink\n aliases?: Array\n aliasedEnvironment?: SysLink\n}\n\nexport type EnvironmentProps = {\n /**\n * System metadata\n */\n sys: EnvironmentMetaSys\n /**\n * Name of the environment\n */\n name: string\n}\n\nexport type CreateEnvironmentProps = Partial>\n\nexport type Environment = ContentfulEnvironmentAPI &\n EnvironmentProps &\n DefaultElements\n\n/**\n * This method creates the API for the given environment with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with a environment id, so the base path for requests now has the\n * environment id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for a Environment\n * @return\n */\nexport function wrapEnvironment(makeRequest: MakeRequest, data: EnvironmentProps): Environment {\n // do not pollute generated typings\n const environment = toPlainObject(copy(data))\n const environmentApi = createEnvironmentApi(makeRequest)\n const enhancedEnvironment = enhanceWithMethods(environment, environmentApi)\n return freezeSys(enhancedEnvironment)\n}\n\n/**\n * This method wraps each environment in a collection with the environment API. See wrapEnvironment\n * above for more details.\n * @private\n */\nexport const wrapEnvironmentCollection = wrapCollection(wrapEnvironment)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { FieldType } from './field-type'\nimport { DefinedParameters, ParameterDefinition } from './widget-parameters'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\nimport { SetRequired, RequireExactlyOne } from 'type-fest'\n\ntype ExtensionSysProps = BasicMetaSysProps & {\n space: SysLink\n environment: SysLink\n srcdocSha256?: string\n}\n\nexport type ExtensionProps = {\n sys: ExtensionSysProps\n extension: {\n /**\n * Extension name\n */\n name: string\n /**\n * Field types where an extension can be used\n */\n fieldTypes: FieldType[]\n /**\n * URL where the root HTML document of the extension can be found\n */\n src?: string\n /**\n * String representation of the extension (e.g. inline HTML code)\n */\n srcdoc?: string\n /**\n * Parameter definitions\n */\n parameters?: {\n instance?: ParameterDefinition[]\n installation?: ParameterDefinition[]\n }\n /**\n * Controls the location of the extension. If true it will be rendered on the sidebar instead of replacing the field's editing control\n */\n sidebar?: boolean\n }\n /**\n * Values for installation parameters\n */\n parameters?: DefinedParameters\n}\n\nexport type CreateExtensionProps = {\n extension: RequireExactlyOne<\n SetRequired,\n 'src' | 'srcdoc'\n >\n}\n\nexport interface Extension extends ExtensionProps, DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => {\n * extension.extension.name = 'New UI Extension name'\n * return extension.update()\n * })\n * .then((extension) => console.log(`UI Extension ${extension.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => extension.delete())\n * .then(() => console.log(`UI Extension deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createExtensionApi(makeRequest: MakeRequest) {\n const getParams = (data: ExtensionProps) => ({\n spaceId: data.sys.space.sys.id,\n environmentId: data.sys.environment.sys.id,\n extensionId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as ExtensionProps\n return makeRequest({\n entityType: 'Extension',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n delete: function del() {\n const data = this.toPlainObject() as ExtensionProps\n return makeRequest({\n entityType: 'Extension',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw UI Extension data\n * @return Wrapped UI Extension data\n */\nexport function wrapExtension(makeRequest: MakeRequest, data: ExtensionProps): Extension {\n const extension = toPlainObject(copy(data))\n const extensionWithMethods = enhanceWithMethods(extension, createExtensionApi(makeRequest))\n return freezeSys(extensionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapExtensionCollection = wrapCollection(wrapExtension)\n","import * as apiKey from './api-key'\nimport * as appAction from './app-action'\nimport * as appActionCall from './app-action-call'\nimport * as appBundle from './app-bundle'\nimport * as appDefinition from './app-definition'\nimport * as appDetails from './app-details'\nimport * as appInstallation from './app-installation'\nimport * as appSignedRequest from './app-signed-request'\nimport * as appSigningSecret from './app-signing-secret'\nimport * as appEventSubscription from './app-event-subscription'\nimport * as appKey from './app-key'\nimport * as appAccessToken from './app-access-token'\nimport * as appUpload from './app-upload'\nimport * as asset from './asset'\nimport * as assetKey from './asset-key'\nimport * as bulkAction from './bulk-action'\nimport * as comment from './comment'\nimport * as contentType from './content-type'\nimport * as editorInterface from './editor-interface'\nimport * as entry from './entry'\nimport * as environment from './environment'\nimport * as environmentAlias from './environment-alias'\nimport * as environmentTemplate from './environment-template'\nimport * as environmentTemplateInstallation from './environment-template-installation'\nimport * as extension from './extension'\nimport * as locale from './locale'\nimport * as organization from './organization'\nimport * as organizationInvitation from './organization-invitation'\nimport * as organizationMembership from './organization-membership'\nimport * as personalAccessToken from './personal-access-token'\nimport * as accessToken from './access-token'\nimport * as previewApiKey from './preview-api-key'\nimport * as release from './release'\nimport * as releaseAction from './release-action'\nimport * as role from './role'\nimport * as scheduledAction from './scheduled-action'\nimport * as snapshot from './snapshot'\nimport * as space from './space'\nimport * as spaceMember from './space-member'\nimport * as spaceMembership from './space-membership'\nimport * as tag from './tag'\nimport * as task from './task'\nimport * as team from './team'\nimport * as teamMembership from './team-membership'\nimport * as teamSpaceMembership from './team-space-membership'\nimport * as uiConfig from './ui-config'\nimport * as upload from './upload'\nimport * as usage from './usage'\nimport * as user from './user'\nimport * as userUIConfig from './user-ui-config'\nimport * as webhook from './webhook'\nimport * as workflowDefinition from './workflow-definition'\n\nexport default {\n accessToken,\n appAction,\n appActionCall,\n appBundle,\n apiKey,\n appDefinition,\n appInstallation,\n appUpload,\n appDetails,\n appSignedRequest,\n appSigningSecret,\n appEventSubscription,\n appKey,\n appAccessToken,\n asset,\n assetKey,\n bulkAction,\n comment,\n contentType,\n editorInterface,\n entry,\n environment,\n environmentAlias,\n environmentTemplate,\n environmentTemplateInstallation,\n extension,\n locale,\n organization,\n organizationInvitation,\n organizationMembership,\n personalAccessToken,\n previewApiKey,\n release,\n releaseAction,\n role,\n scheduledAction,\n snapshot,\n space,\n spaceMember,\n spaceMembership,\n tag,\n task,\n team,\n teamMembership,\n teamSpaceMembership,\n uiConfig,\n upload,\n usage,\n user,\n userUIConfig,\n webhook,\n workflowDefinition,\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Except, SetOptional } from 'type-fest'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'\n\nexport type LocaleProps = {\n sys: BasicMetaSysProps & { space: SysLink; environment: SysLink }\n /**\n * Locale name\n */\n name: string\n /**\n * Locale code (example: en-us)\n */\n code: string\n /**\n * Internal locale code\n */\n internal_code: string\n /**\n * Locale code to fallback to when there is not content for the current locale\n */\n fallbackCode: string | null\n /**\n * If the content under this locale should be available on the CDA (for public reading)\n */\n contentDeliveryApi: boolean\n /**\n * If the content under this locale should be available on the CMA (for editing)\n */\n contentManagementApi: boolean\n /**\n * If this is the default locale\n */\n default: boolean\n /**\n * If the locale needs to be filled in on entries or not\n */\n optional: boolean\n}\n\nexport type CreateLocaleProps = Omit<\n SetOptional<\n Except,\n 'optional' | 'contentManagementApi' | 'default' | 'contentDeliveryApi'\n >,\n 'internal_code'\n>\n\nexport interface Locale extends LocaleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => locale.delete())\n * .then(() => console.log(`locale deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => {\n * locale.name = 'New locale name'\n * return locale.update()\n * })\n * .then((locale) => console.log(`locale ${locale.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createLocaleApi(makeRequest: MakeRequest) {\n const getParams = (locale: LocaleProps) => ({\n spaceId: locale.sys.space.sys.id,\n environmentId: locale.sys.environment.sys.id,\n localeId: locale.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as LocaleProps\n return makeRequest({\n entityType: 'Locale',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapLocale(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as LocaleProps\n return makeRequest({\n entityType: 'Locale',\n action: 'delete',\n params: getParams(raw),\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw locale data\n * @return Wrapped locale data\n */\nexport function wrapLocale(makeRequest: MakeRequest, data: LocaleProps): Locale {\n delete (data as SetOptional).internal_code\n const locale = toPlainObject(copy(data))\n const localeWithMethods = enhanceWithMethods(locale, createLocaleApi(makeRequest))\n return freezeSys(localeWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapLocaleCollection = wrapCollection(wrapLocale)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\n\nexport type OrganizationInvitationProps = {\n sys: MetaSysProps & {\n organizationMembership: { sys: MetaLinkProps }\n user: Record | null\n invitationUrl: string\n status: string\n }\n firstName: string\n lastName: string\n email: string\n role: string\n}\n\nexport type CreateOrganizationInvitationProps = Omit\n\nexport interface OrganizationInvitation\n extends OrganizationInvitationProps,\n DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw invitation data\n * @return {OrganizationInvitation} Wrapped Inviation data\n */\nexport function wrapOrganizationInvitation(\n _makeRequest: MakeRequest,\n data: OrganizationInvitationProps\n): OrganizationInvitation {\n const invitation = toPlainObject(copy(data))\n return freezeSys(invitation)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type OrganizationMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { user: { sys: MetaLinkProps } }\n\n /**\n * Role\n */\n role: string\n\n /**\n * status\n */\n status: boolean\n}\n\nexport interface OrganizationMembership\n extends OrganizationMembershipProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => {\n * organizationMembership.role = 'member';\n * organizationMembership.update();\n * })\n * .catch(console.error)\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @example```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => {\n * organizationMembership.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createOrganizationMembershipApi(makeRequest: MakeRequest, organizationId: string) {\n const getParams = (data: OrganizationMembershipProps) => ({\n organizationMembershipId: data.sys.id,\n organizationId,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as OrganizationMembershipProps\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapOrganizationMembership(makeRequest, data, organizationId))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as OrganizationMembershipProps\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param {function} makeRequest - function to make requests via an adapter\n * @param {Object} data - Raw organization membership data\n * @return {OrganizationMembership} Wrapped organization membership data\n */\nexport function wrapOrganizationMembership(\n makeRequest: MakeRequest,\n data: OrganizationMembershipProps,\n organizationId: string\n): OrganizationMembership {\n const organizationMembership = toPlainObject(copy(data))\n const organizationMembershipWithMethods = enhanceWithMethods(\n organizationMembership,\n createOrganizationMembershipApi(makeRequest, organizationId)\n )\n return freezeSys(organizationMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapOrganizationMembershipCollection = wrapCollection(wrapOrganizationMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport createOrganizationApi, { ContentfulOrganizationAPI } from '../create-organization-api'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type Organization = DefaultElements &\n OrganizationProp &\n ContentfulOrganizationAPI\n\nexport type OrganizationProp = {\n /**\n * System metadata\n */\n sys: MetaSysProps\n /**\n * Name\n */\n name: string\n}\n\n/**\n * This method creates the API for the given organization with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with an organization id, so the base path for requests now has the\n * organization id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for an Organization\n * @return {Organization}\n */\nexport function wrapOrganization(makeRequest: MakeRequest, data: OrganizationProp): Organization {\n const org = toPlainObject(copy(data))\n const orgApi = createOrganizationApi(makeRequest)\n const enhancedOrganization = enhanceWithMethods(org, orgApi)\n return freezeSys(enhancedOrganization)\n}\n\n/**\n * This method normalizes each organization in a collection.\n * @private\n */\nexport const wrapOrganizationCollection = wrapCollection(wrapOrganization)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type PersonalAccessTokenProp = {\n sys: MetaSysProps & { expiresAt?: string }\n name: string\n scopes: 'content_management_manage'[]\n revokedAt: null | string\n token?: string\n}\n\nexport type CreatePersonalAccessTokenProps = Pick & {\n expiresIn?: number\n}\n\nexport interface PersonalAccessToken\n extends PersonalAccessTokenProp,\n DefaultElements {\n /**\n * Revokes a personal access token\n * @return Object the revoked personal access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: \n * })\n *\n * client.getPersonalAccessToken('')\n * .then((personalAccessToken) => {\n * return personalAccessToken.revoke()\n * })\n * .catch(console.error)\n * ```\n */\n revoke(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw personal access token data\n * @return Wrapped personal access token\n */\nexport function wrapPersonalAccessToken(\n makeRequest: MakeRequest,\n data: PersonalAccessTokenProp\n): PersonalAccessToken {\n const personalAccessToken = toPlainObject(copy(data))\n const personalAccessTokenWithMethods = enhanceWithMethods(personalAccessToken, {\n revoke: function () {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'revoke',\n params: { tokenId: data.sys.id },\n }).then((data) => wrapPersonalAccessToken(makeRequest, data))\n },\n })\n return freezeSys(personalAccessTokenWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw personal access collection data\n * @return Wrapped personal access token collection data\n */\nexport const wrapPersonalAccessTokenCollection = wrapCollection(wrapPersonalAccessToken)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type PreviewApiKeyProps = {\n sys: MetaSysProps\n name: string\n description: string\n accessToken: string\n}\n\nexport interface PreviewApiKey extends PreviewApiKeyProps, DefaultElements {}\n\n/**\n * @private\n */\nfunction createPreviewApiKeyApi() {\n return {}\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key data\n * @return Wrapped preview api key data\n */\nexport function wrapPreviewApiKey(\n _makeRequest: MakeRequest,\n data: PreviewApiKeyProps\n): PreviewApiKey {\n const previewApiKey = toPlainObject(copy(data))\n const previewApiKeyWithMethods = enhanceWithMethods(previewApiKey, createPreviewApiKeyApi())\n return freezeSys(previewApiKeyWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapPreviewApiKeyCollection = wrapCollection(wrapPreviewApiKey)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, ISO8601Timestamp, Link, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport { AsyncActionProcessingOptions, pollAsyncActionStatus } from '../methods/action'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype ReleaseActionStatuses = 'created' | 'inProgress' | 'failed' | 'succeeded'\nexport type ReleaseActionTypes = 'publish' | 'unpublish' | 'validate'\n\nexport type ReleaseActionSysProps = {\n id: string\n type: 'ReleaseAction'\n space: Link<'Space'>\n environment: Link<'Environment'>\n release: Link<'Release'>\n status: ReleaseActionStatuses\n createdBy: Link<'User'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n}\n\n/** The object returned by the Releases API */\nexport interface ReleaseActionProps {\n action: T\n sys: ReleaseActionSysProps\n}\n\nexport interface ReleaseActionQueryOptions {\n /** Find Release Actions by using a comma-separated list of Ids */\n 'sys.id[in]'?: string\n 'sys.release.sys.id[in]'?: string\n 'sys.status[in]'?: string\n 'sys.status[nin]'?: string\n action?: ReleaseActionTypes\n /** Get unique results by this field. Currently supports `sys.release.sys.id` */\n uniqueBy?: string\n\n /** @default -sys.updatedAt */\n order?: string\n /**\n * Limit of how many records are returned in the query result\n * @default 100\n * */\n limit?: number\n}\n\nexport interface ReleaseActionApiMethods {\n /** Performs a new GET request and returns the wrapper Release */\n get(): ReleaseAction\n /** Waits until the Release Action has either succeeded or failed */\n waitProcessing(options?: AsyncActionProcessingOptions): ReleaseAction\n}\n\n/**\n * @private\n */\nfunction createReleaseActionApi(makeRequest: MakeRequest) {\n const getParams = (self: ReleaseAction) => {\n const action = self.toPlainObject()\n\n return {\n spaceId: action.sys.space.sys.id,\n environmentId: action.sys.environment.sys.id,\n releaseId: action.sys.release.sys.id,\n actionId: action.sys.id,\n }\n }\n\n return {\n async get() {\n const params = getParams(this)\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'get',\n params,\n }).then((releaseAction) => wrapReleaseAction(makeRequest, releaseAction))\n },\n\n /** Waits for a Release Action to complete */\n async waitProcessing(options?: AsyncActionProcessingOptions): Promise {\n return pollAsyncActionStatus(async () => this.get(), options)\n },\n }\n}\n\nexport interface ReleaseAction\n extends ReleaseActionProps,\n ReleaseActionApiMethods,\n DefaultElements> {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw Release data\n * @return Wrapped Release data\n */\nexport function wrapReleaseAction(\n makeRequest: MakeRequest,\n data: ReleaseActionProps\n): ReleaseAction {\n const releaseAction = toPlainObject(copy(data))\n const releaseActionWithApiMethods = enhanceWithMethods(\n releaseAction as any,\n createReleaseActionApi(makeRequest)\n )\n return freezeSys(releaseActionWithApiMethods)\n}\n\n/**\n * @private\n */\nexport const wrapReleaseActionCollection = wrapCollection(wrapReleaseAction)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BaseCollection,\n CursorPaginatedCollection,\n CursorPaginatedCollectionProp,\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n MakeRequestPayload,\n ScheduledActionReferenceFilters,\n} from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AsyncActionProcessingOptions } from '../methods/action'\nimport { ReleaseAction, wrapReleaseAction } from './release-action'\n\n/** Entity types supported by the Release API */\ntype Entity = 'Entry' | 'Asset'\ntype ReleaseStatus = 'active' | 'archived'\n\nexport interface ReleaseQueryOptions {\n /** Find releases filtered by the Entity type (Asset, Entry) */\n 'entities.sys.linkType'?: string\n /** Find releases containing the specified, comma-separated entities. Requires `entities.sys.linkType` */\n 'entities.sys.id[in]'?: string\n\n /** Comma-separated list of ids to exclude from the query */\n 'sys.id[nin]'?: string\n\n /** Comma-separated list of Ids to find (inclusion) */\n 'sys.id[in]'?: string\n\n /** Comma-separated list of user Ids to find releases by creator */\n 'sys.createdBy.sys.id[in]'?: string\n\n /** Comma-separated filter (inclusion) by Release status (active, archived) */\n 'sys.status[in]'?: ReleaseStatus\n\n /** Comma-separated filter (exclusion) by Release status (active, archived) */\n 'sys.status[nin]'?: ReleaseStatus\n\n /** Find releases using full text phrase and term matching */\n 'title[match]'?: string\n\n /** Filter by empty Releases (exists=false) or Releases with items (exists=true) */\n 'entities[exists]'?: boolean\n\n /** If present, will return results based on a pagination cursor */\n pageNext?: string\n /**\n * Limit how many records are returned in the result\n * @default 100\n * */\n limit?: number\n /**\n * Order releases\n * Supported values include\n * - `title`, `-title`\n * - `sys.updatedAt`, `-sys.updatedAt`\n * - `sys.createdAt`, `-sys.createdAt`\n * @default -sys.updatedAt\n * */\n order?: string\n}\n\nexport type ReleaseSysProps = {\n id: string\n type: 'Release'\n version: number\n status: ReleaseStatus\n space: Link<'Space'>\n environment: Link<'Environment'>\n archivedBy?: Link<'User'>\n archivedAt?: ISO8601Timestamp\n createdBy: Link<'User'> | Link<'AppDefinition'>\n updatedBy: Link<'User'> | Link<'AppDefinition'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n lastAction?: Link<'ReleaseAction'>\n}\nexport type ReleaseReferenceFilters = ScheduledActionReferenceFilters\nexport const ReleaseReferenceFilters = ScheduledActionReferenceFilters\n\nexport type ReleaseMetadata = {\n withReferences: {\n entity: Link<'Entry'>\n filter: Record\n }[]\n}\n\n/** The object returned by the Releases API */\nexport interface ReleaseProps {\n title: string\n sys: ReleaseSysProps\n entities: BaseCollection>\n metadata?: ReleaseMetadata\n}\n\nexport interface ReleasePayload extends MakeRequestPayload {\n title: string\n entities: BaseCollection>\n}\n\nexport interface ReleaseValidatePayload {\n action?: 'publish'\n}\n\nexport interface ReleaseValidateOptions {\n payload?: ReleaseValidatePayload\n processingOptions?: AsyncActionProcessingOptions\n}\n\nexport interface ReleaseApiMethods {\n /**\n * Archives a release and locks any actions such as adding new entities or publishing/unpublishing.\n * This operation increases the sys.version property\n * @throws {BadRequest} if the release is already archived\n * */\n\n archive(): Promise\n /**\n * Unarchives an `archived` release and unlocks operations on the Release. This operation increases the sys.version property\n * @throws {BadRequest} if the release is not archived\n * */\n unarchive(): Promise\n /** Updates a Release and returns the updated Release object */\n update(payload: ReleasePayload): Promise\n /** Deletes a Release and all ReleaseActions linked to it (non-reversible) */\n delete(): Promise\n /** Publishes a Release and waits until the asynchronous action is completed */\n publish(options?: AsyncActionProcessingOptions): Promise>\n /** Unpublishes a Release and waits until the asynchronous action is completed */\n unpublish(options?: AsyncActionProcessingOptions): Promise>\n /** Validates a Release and waits until the asynchronous action is completed */\n validate({\n payload,\n options,\n }?: {\n payload?: ReleaseValidatePayload\n options?: AsyncActionProcessingOptions\n }): Promise>\n}\n\n/**\n * @private\n */\nfunction createReleaseApi(makeRequest: MakeRequest): ReleaseApiMethods {\n const getParams = (self: Release) => {\n const release = self.toPlainObject()\n\n return {\n spaceId: release.sys.space.sys.id,\n environmentId: release.sys.environment.sys.id,\n releaseId: release.sys.id,\n version: release.sys.version,\n }\n }\n\n return {\n async archive() {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'archive',\n params,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async unarchive() {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'unarchive',\n params,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async update(payload: ReleasePayload) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'update',\n params,\n payload,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async delete() {\n const params = getParams(this)\n\n await makeRequest({\n entityType: 'Release',\n action: 'delete',\n params,\n })\n },\n\n async publish(options?: AsyncActionProcessingOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'publish',\n params,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options))\n },\n\n async unpublish(options?: AsyncActionProcessingOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'unpublish',\n params,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options))\n },\n\n async validate(options?: ReleaseValidateOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'validate',\n params,\n payload: options?.payload,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options?.processingOptions))\n },\n }\n}\n\nexport interface Release extends ReleaseProps, ReleaseApiMethods, DefaultElements {}\n\n/**\n * Return a Release object enhanced with its own API helper functions.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw Release data\n * @return Wrapped Release data\n */\nexport function wrapRelease(makeRequest: MakeRequest, data: ReleaseProps): Release {\n const release = toPlainObject(copy(data))\n const releaseWithApiMethods = enhanceWithMethods(\n release as any,\n createReleaseApi(makeRequest) as any\n )\n return freezeSys(releaseWithApiMethods)\n}\n\n/**\n * @private\n */\nexport const wrapReleaseCollection: (\n makeRequest: MakeRequest,\n data: CursorPaginatedCollectionProp\n) => CursorPaginatedCollection = wrapCursorPaginatedCollection(wrapRelease)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\n\nexport type ActionType =\n | 'read'\n | 'create'\n | 'update'\n | 'delete'\n | 'publish'\n | 'unpublish'\n | 'archive'\n | 'unarchive'\n\ntype ConditionType = 'and' | 'or' | 'not' | 'equals'\nexport type ConstraintType = {\n [key in ConditionType]?: ConstraintType[] | any\n}\n\nexport type RoleProps = {\n sys: BasicMetaSysProps & { space: SysLink }\n name: string\n description?: string\n /**\n * Permissions for application sections\n */\n permissions: {\n ContentDelivery: string[] | string\n ContentModel: string[]\n EnvironmentAliases: string[] | string\n Environments: string[] | string\n Settings: string[] | string\n Tags: string[] | string\n }\n policies: {\n effect: string\n actions: ActionType[] | 'all'\n constraint: ConstraintType\n }[]\n}\n\nexport type CreateRoleProps = Omit\n\nexport interface Role extends RoleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @memberof Role\n * @func delete\n * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRole(''))\n * .then((role) => role.delete())\n * .then((role) => console.log(`role deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRole(''))\n * .then((roles) => {\n * roles.name = 'New role name'\n * return roles.update()\n * })\n * .then((roles) => console.log(`roles ${roles.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createRoleApi(makeRequest: MakeRequest) {\n const getParams = (data: RoleProps) => ({\n spaceId: data.sys.space.sys.id,\n roleId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as RoleProps\n return makeRequest({\n entityType: 'Role',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapRole(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as RoleProps\n return makeRequest({\n entityType: 'Role',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw role data\n * @return Wrapped role data\n */\nexport function wrapRole(makeRequest: MakeRequest, data: RoleProps): Role {\n const role = toPlainObject(copy(data))\n const roleWithMethods = enhanceWithMethods(role, createRoleApi(makeRequest))\n return freezeSys(roleWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapRoleCollection = wrapCollection(wrapRole)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n ISO8601Timestamp,\n MetaLinkProps,\n Link,\n MakeRequest,\n SysLink,\n ScheduledActionReferenceFilters,\n BasicCursorPaginationOptions,\n CollectionProp,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n/**\n * Represents that state of the scheduled action\n */\nenum ScheduledActionStatus {\n /** action is pending execution */\n scheduled = 'scheduled',\n /** action has been started and pending completion */\n inProgress = 'inProgress',\n /** action was completed successfully (terminal state) */\n succeeded = 'succeeded',\n /** action failed to complete (terminal state) */\n failed = 'failed',\n /** action was canceled by a user (terminal state) */\n canceled = 'canceled',\n}\n\ntype SchedulableEntityType = 'Entry' | 'Asset' | 'Release'\ntype SchedulableActionType = 'publish' | 'unpublish'\n\ntype ErrorDetail = { error: any }\ninterface ScheduledActionFailedError {\n sys: {\n type: 'Error'\n id: string\n }\n message?: string\n details?: { errors: ErrorDetail[] }\n}\n\nexport interface CursorPaginatedCollectionProp\n extends Omit, 'total' | 'skip'> {\n pages?: BasicCursorPaginationOptions\n}\n\nexport type ScheduledActionSysProps = {\n id: string\n type: 'ScheduledAction'\n version: number\n space: SysLink\n status: ScheduledActionStatus\n createdAt: ISO8601Timestamp\n createdBy: Link<'User'> | Link<'AppDefinition'>\n /** an ISO8601 date string representing when an action was moved to canceled */\n canceledAt?: ISO8601Timestamp\n canceledBy?: Link<'User'> | Link<'AppDefinition'>\n /** an ISO8601 date string representing when an action was updated */\n updatedAt: ISO8601Timestamp\n updatedBy: Link<'User'> | Link<'AppDefinition'>\n}\n\nexport type ScheduledActionPayloadProps = {\n withReferences?: Record\n}\n\nexport type ScheduledActionProps = {\n sys: ScheduledActionSysProps\n action: SchedulableActionType\n entity: Link\n environment?: { sys: MetaLinkProps }\n scheduledFor: {\n datetime: ISO8601Timestamp\n /**\n * A valid IANA timezone Olson identifier\n *\n * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\n * @example 'Asia/Kolkata'\n */\n timezone?: string\n }\n /**\n * The Contentful-style error that occurred during execution if sys.status is failed\n *\n * @example\n * {\n * sys: {\n * type: 'Error',\n * id: 'InvalidEntry'\n * },\n * message: 'Entry is invalid',\n * details: {\n * errors: [...]\n * }\n * }\n */\n error?: ScheduledActionFailedError\n payload?: ScheduledActionPayloadProps\n}\n\nexport type CreateUpdateScheduledActionProps = Pick<\n ScheduledActionProps,\n 'action' | 'entity' | 'environment' | 'scheduledFor' | 'payload'\n>\n\nexport type ScheduledActionCollection = CursorPaginatedCollectionProp\n\nexport interface ScheduledActionQueryOptions {\n 'environment.sys.id': string\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any\n limit?: number\n next?: string\n prev?: string\n}\n\nexport type ScheduledActionApi = {\n delete(): Promise\n update(): Promise\n}\n\nexport interface ScheduledAction\n extends ScheduledActionProps,\n DefaultElements,\n ScheduledActionApi {}\n\nexport default function getInstanceMethods(makeRequest: MakeRequest): ScheduledActionApi {\n const getParams = (self: ScheduledAction) => {\n const scheduledAction = self.toPlainObject()\n return {\n spaceId: scheduledAction.sys.space.sys.id,\n environmentId: scheduledAction.environment?.sys.id as string,\n scheduledActionId: scheduledAction.sys.id,\n version: scheduledAction.sys.version,\n }\n }\n\n return {\n /**\n * Cancels the current Scheduled Action schedule.\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => scheduledAction.delete())\n * .then((deletedScheduledAction) => console.log(deletedScheduledAction))\n * .catch(console.error);\n * ```\n */\n async delete(): Promise {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'delete',\n params,\n }).then((data) => wrapScheduledAction(makeRequest, data))\n },\n /**\n * Update the current scheduled action. Currently, only changes made to the `scheduledFor` property will be saved.\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => {\n * scheduledAction.scheduledFor.timezone = 'Europe/Paris';\n * return scheduledAction.update();\n * })\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n async update(): Promise {\n const params = getParams(this)\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { sys, ...payload } = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'update',\n params,\n payload,\n }).then((data) => wrapScheduledAction(makeRequest, data))\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapScheduledAction(\n makeRequest: MakeRequest,\n data: ScheduledActionProps\n): ScheduledAction {\n const scheduledAction = toPlainObject(copy(data))\n const scheduledActionWithMethods = enhanceWithMethods(\n scheduledAction,\n getInstanceMethods(makeRequest)\n )\n return freezeSys(scheduledActionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapScheduledActionCollection = wrapCollection(wrapScheduledAction)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type SnapshotProps = {\n sys: MetaSysProps & {\n snapshotType: string\n snapshotEntityType: string\n }\n snapshot: T\n}\n\nexport interface Snapshot extends SnapshotProps, DefaultElements> {}\n\n/**\n * @private\n */\nfunction createSnapshotApi() {\n return {\n /* In case the snapshot object evolve later */\n }\n}\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw snapshot data\n * @return Wrapped snapshot data\n */\nexport function wrapSnapshot(_makeRequest: MakeRequest, data: SnapshotProps): Snapshot {\n const snapshot = toPlainObject(copy(data))\n const snapshotWithMethods = enhanceWithMethods(snapshot, createSnapshotApi())\n return freezeSys(snapshotWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw snapshot collection data\n * @return Wrapped snapshot collection data\n */\nexport const wrapSnapshotCollection = wrapCollection(wrapSnapshot)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\n\nexport type SpaceMemberProps = {\n sys: MetaSysProps\n /**\n * User is an admin\n */\n admin: boolean\n /**\n * Array of Role Links\n */\n roles: { sys: MetaLinkProps }[]\n}\n\nexport interface SpaceMember extends SpaceMemberProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space member data\n * @return Wrapped space member data\n */\nexport function wrapSpaceMember(_makeRequest: MakeRequest, data: SpaceMemberProps) {\n const spaceMember = toPlainObject(copy(data))\n return freezeSys(spaceMember)\n}\n\n/**\n * @private\n */\nexport const wrapSpaceMemberCollection = wrapCollection(wrapSpaceMember)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { SysLink, MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type SpaceMembershipProps = {\n sys: MetaSysProps & { space: SysLink; user: SysLink }\n user: SysLink\n admin: boolean\n roles: SysLink[]\n}\n\nexport type CreateSpaceMembershipProps = Omit & {\n email: string\n}\n\nexport interface SpaceMembership\n extends SpaceMembershipProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership(''))\n * .then((spaceMembership) => spaceMembership.delete())\n * .then(() => console.log(`spaceMembership deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership(''))\n * .then((spaceMembership) => {\n * spaceMembership.name = 'new space membership name'\n * })\n * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createSpaceMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: SpaceMembershipProps) => ({\n spaceId: data.sys.space.sys.id,\n spaceMembershipId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as SpaceMembershipProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as SpaceMembershipProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space membership data\n * @return Wrapped space membership data\n */\nexport function wrapSpaceMembership(\n makeRequest: MakeRequest,\n data: SpaceMembershipProps\n): SpaceMembership {\n const spaceMembership = toPlainObject(copy(data))\n const spaceMembershipWithMethods = enhanceWithMethods(\n spaceMembership,\n createSpaceMembershipApi(makeRequest)\n )\n return freezeSys(spaceMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapSpaceMembershipCollection = wrapCollection(wrapSpaceMembership)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport createSpaceApi, { ContentfulSpaceAPI } from '../create-space-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type SpaceProps = {\n sys: BasicMetaSysProps & { organization: { sys: { id: string } } }\n name: string\n}\n\nexport type Space = SpaceProps & DefaultElements & ContentfulSpaceAPI\n\n/**\n * This method creates the API for the given space with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with a space id, so the base path for requests now has the\n * space id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for a Space\n * @return {Space}\n */\nexport function wrapSpace(makeRequest: MakeRequest, data: SpaceProps): Space {\n const space = toPlainObject(copy(data))\n const spaceApi = createSpaceApi(makeRequest)\n const enhancedSpace = enhanceWithMethods(space, spaceApi)\n return freezeSys(enhancedSpace)\n}\n\n/**\n * This method wraps each space in a collection with the space API. See wrapSpace\n * above for more details.\n * @private\n */\nexport const wrapSpaceCollection = wrapCollection(wrapSpace)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type TagVisibility = 'private' | 'public'\n\nexport type TagSysProps = Pick<\n MetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Tag'\n visibility: TagVisibility\n space: SysLink\n environment: SysLink\n}\n\nexport type TagProps = {\n sys: TagSysProps\n name: string\n}\n\nexport type CreateTagProps = Omit & { sys: Pick }\nexport type UpdateTagProps = Omit & { sys: Pick }\n\nexport type DeleteTagParams = GetTagParams & { version: number }\n\nexport type TagCollectionProps = {\n sys: {\n type: 'Array'\n }\n items: TagProps[]\n total: number\n}\n\nexport interface TagCollection {\n items: Tag[]\n total: number\n}\n\ntype TagApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Tag extends TagProps, DefaultElements, TagApi {}\n\n/**\n * @private\n */\nexport default function createTagApi(makeRequest: MakeRequest): TagApi {\n const getParams = (tag: TagProps) => ({\n spaceId: tag.sys.space.sys.id,\n environmentId: tag.sys.environment.sys.id,\n tagId: tag.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TagProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as TagProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapTag(makeRequest: MakeRequest, data: TagProps): Tag {\n const tag = toPlainObject(copy(data))\n const tagWithMethods = enhanceWithMethods(tag, createTagApi(makeRequest))\n return freezeSys(tagWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTagCollection = wrapCollection(wrapTag)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetEntryParams,\n GetTaskParams,\n Link,\n MakeRequest,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type TaskStatus = 'active' | 'resolved'\n\nexport type TaskSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Task'\n space: SysLink\n environment: SysLink\n parentEntity: Link<'Entry'>\n}\n\nexport type TaskProps = {\n sys: TaskSysProps\n body: string\n assignedTo: Link<'User' | 'Team'>\n status: TaskStatus\n dueDate?: string\n}\n\nexport type CreateTaskProps = Omit\nexport type UpdateTaskProps = Omit & { sys: Pick }\n\nexport type CreateTaskParams = GetEntryParams\nexport type UpdateTaskParams = GetTaskParams\nexport type DeleteTaskParams = GetTaskParams & { version: number }\n\ntype TaskApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Task extends TaskProps, DefaultElements, TaskApi {}\n\n/**\n * @private\n */\nexport default function createTaskApi(makeRequest: MakeRequest): TaskApi {\n const getParams = (task: TaskProps): GetTaskParams => ({\n spaceId: task.sys.space.sys.id,\n environmentId: task.sys.environment.sys.id,\n entryId: task.sys.parentEntity.sys.id,\n taskId: task.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TaskProps\n\n return makeRequest({\n entityType: 'Task',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as TaskProps\n\n return makeRequest({\n entityType: 'Task',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapTask(makeRequest: MakeRequest, data: TaskProps): Task {\n const task = toPlainObject(copy(data))\n const taskWithMethods = enhanceWithMethods(task, createTaskApi(makeRequest))\n return freezeSys(taskWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTaskCollection = wrapCollection(wrapTask)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type TeamMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & {\n team: { sys: MetaLinkProps }\n organization: { sys: MetaLinkProps }\n organizationMembership: { sys: MetaLinkProps }\n }\n\n /**\n * Is admin\n */\n admin: boolean\n\n /**\n * Organization membership id\n */\n organizationMembershipId: string\n}\n\nexport type CreateTeamMembershipProps = Omit\n\nexport interface TeamMembership extends TeamMembershipProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then(org => org.getTeamMembership('teamId', 'teamMembershipId'))\n * .then((teamMembership) => {\n * teamMembership.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then(org => org.getTeamMembership('teamId', 'teamMembershipId'))\n * .then((teamMembership) => {\n * teamMembership.admin = true;\n * teamMembership.update();\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamMembershipProps) => ({\n teamMembershipId: data.sys.id,\n teamId: data.sys.team.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TeamMembershipProps\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as TeamMembershipProps\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw team membership data\n * @return Wrapped team membership data\n */\nexport function wrapTeamMembership(\n makeRequest: MakeRequest,\n data: TeamMembershipProps\n): TeamMembership {\n const teamMembership = toPlainObject(copy(data))\n const teamMembershipWithMethods = enhanceWithMethods(\n teamMembership,\n createTeamMembershipApi(makeRequest)\n )\n return freezeSys(teamMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamMembershipCollection = wrapCollection(wrapTeamMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport {\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n MetaSysProps,\n QueryOptions,\n} from '../common-types'\n\nexport interface Options {\n teamId?: string\n query?: QueryOptions\n}\n\nexport type TeamSpaceMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { team: { sys: MetaLinkProps }; space: { sys: MetaLinkProps } }\n\n /**\n * Is admin\n */\n admin: boolean\n\n /**\n * Roles\n */\n roles: { sys: MetaLinkProps }[]\n}\n\nexport type CreateTeamSpaceMembershipProps = Omit\n\nexport interface TeamSpaceMembership\n extends TeamSpaceMembershipProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership(''))\n * .then((teamSpaceMembership) => teamSpaceMembership.delete())\n * .then(() => console.log(`spaceMembership deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership('team_space_membership_id'))\n * .then((teamSpaceMembership) => {\n * item.roles = [\n * {\n * sys: {\n * type: 'Link',\n * linkType: 'Role',\n * id: 'role_id'\n * }\n * }\n * ]\n * })\n * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamSpaceMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamSpaceMembershipProps) => ({\n teamSpaceMembershipId: data.sys.id,\n spaceId: data.sys.space.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TeamSpaceMembershipProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n\n delete: function del() {\n const data = this.toPlainObject() as TeamSpaceMembershipProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space membership data\n * @return Wrapped team space membership data\n */\nexport function wrapTeamSpaceMembership(\n makeRequest: MakeRequest,\n data: TeamSpaceMembershipProps\n): TeamSpaceMembership {\n const teamSpaceMembership = toPlainObject(copy(data))\n const teamSpaceMembershipWithMethods = enhanceWithMethods(\n teamSpaceMembership,\n createTeamSpaceMembershipApi(makeRequest)\n )\n return freezeSys(teamSpaceMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamSpaceMembershipCollection = wrapCollection(wrapTeamSpaceMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type TeamProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { memberCount: number; organization: { sys: MetaLinkProps } }\n\n /**\n * Name of the team\n */\n name: string\n\n /**\n * Description of the team\n */\n description: string\n}\n\nexport type CreateTeamProps = Omit\n\nexport interface Team extends TeamProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((team) => {\n * team.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getTeam('team_id'))\n * .then((team) => {\n * team.description = 'new description';\n * team.update();\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamProps) => ({\n teamId: data.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n update: function update() {\n const raw = this.toPlainObject() as TeamProps\n return makeRequest({\n entityType: 'Team',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeam(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as TeamProps\n return makeRequest({\n entityType: 'Team',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw team data\n * @return Wrapped team data\n */\nexport function wrapTeam(makeRequest: MakeRequest, data: TeamProps): Team {\n const team = toPlainObject(copy(data))\n const teamWithMethods = enhanceWithMethods(team, createTeamApi(makeRequest))\n return freezeSys(teamWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamCollection = wrapCollection(wrapTeam)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport createUIConfigApi from '../create-ui-config-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UIConfigProps = {\n /**\n * System metadata\n */\n sys: UIConfigSysProps\n\n assetListViews: ViewFolder[]\n entryListViews: ViewFolder[]\n homeViews: HomeView[]\n}\n\nexport interface UIConfigSysProps extends BasicMetaSysProps {\n space: SysLink\n environment: SysLink\n}\n\ninterface HomeView {\n widgetId: string\n widgetNamespace: string\n}\n\ninterface ViewFolder {\n id: string\n title: string\n views: View[]\n}\n\ninterface View {\n id: string\n title: string\n order?: {\n fieldId: string\n direction: 'ascending' | 'descending'\n }\n displayedFieldIds?: string[]\n contentTypeId?: string | null\n contentTypeIds?: string[]\n searchText?: string\n searchFilters?: [string, string, string][]\n roles?: string[]\n}\n\nexport interface UIConfig extends UIConfigProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Wrapped UIConfig\n */\nexport function wrapUIConfig(makeRequest: MakeRequest, data: UIConfigProps) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, createUIConfigApi(makeRequest))\n return freezeSys(userWithMethods)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { DefaultElements, MakeRequest, MetaSysProps, SysLink } from '../common-types'\n\nexport type UploadProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { space: SysLink; environment?: SysLink }\n}\n\nexport interface Upload extends UploadProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUpload(''))\n * .then((upload) => upload.delete())\n * .then((upload) => console.log(`upload ${upload.sys.id} updated.`))\n * .catch(console.error)\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createUploadApi(makeRequest: MakeRequest) {\n return {\n delete: async function del() {\n const raw = this.toPlainObject() as UploadProps\n await makeRequest({\n entityType: 'Upload',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadId: raw.sys.id,\n },\n })\n },\n }\n}\n\n/**\n * @private\n * @param {function} makeRequest - function to make requests via an adapter\n * @param {object} data - Raw upload data\n * @return {Upload} Wrapped upload data\n */\nexport function wrapUpload(makeRequest: MakeRequest, data: UploadProps) {\n const upload = toPlainObject(copy(data))\n const uploadWithMethods = enhanceWithMethods(upload, createUploadApi(makeRequest))\n return freezeSys(uploadWithMethods)\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n MetaSysProps,\n QueryOptions,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UsageMetricEnum = 'cda' | 'cma' | 'cpa' | 'gql'\n\nexport interface UsageQuery extends QueryOptions {\n 'metric[in]'?: string\n 'dateRange.startAt'?: string\n 'dateRange.endAt'?: string\n}\n\nexport type UsageProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & {\n organization?: { sys: MetaLinkProps }\n }\n\n /**\n * Type of usage\n */\n metric: UsageMetricEnum\n\n /**\n * Unit of usage metric\n */\n unitOfMeasure: string\n\n /**\n * Range of usage\n */\n dateRange: {\n startAt: string\n endAt: string\n }\n\n /**\n * Value of the usage\n */\n usage: number\n\n /**\n * Usage per day\n */\n usagePerDay: {\n [key: string]: number\n }\n}\n\nexport interface Usage extends UsageProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Normalized usage\n */\nexport function wrapUsage(_makeRequest: MakeRequest, data: UsageProps): Usage {\n const usage = toPlainObject(copy(data))\n const usageWithMethods = enhanceWithMethods(usage, {})\n return freezeSys(usageWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapUsageCollection = wrapCollection(wrapUsage)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport createUserUIConfigApi from '../create-user-ui-config-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UserUIConfigProps = {\n /**\n * System metadata\n */\n sys: UserUIConfigSysProps\n\n assetListViews: ViewFolder[]\n entryListViews: ViewFolder[]\n}\n\nexport interface UserUIConfigSysProps extends BasicMetaSysProps {\n space: SysLink\n environment: SysLink\n}\n\ninterface ViewFolder {\n id: string\n title: string\n views: View[]\n}\n\ninterface View {\n id: string\n title: string\n order?: {\n fieldId: string\n direction: 'ascending' | 'descending'\n }\n displayedFieldIds?: string[]\n contentTypeId: string | null\n searchText?: string\n searchFilters?: [string, string, string][]\n}\n\nexport interface UserUIConfig extends UserUIConfigProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Wrapped UserUIConfig\n */\nexport function wrapUserUIConfig(makeRequest: MakeRequest, data: UserUIConfigProps) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, createUserUIConfigApi(makeRequest))\n return freezeSys(userWithMethods)\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, MakeRequest } from '../common-types'\n\nexport type UserProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps\n\n /**\n * First name of the user\n */\n firstName: string\n\n /**\n * Last name of the user\n */\n lastName: string\n\n /**\n * Url to the users avatar\n */\n avatarUrl: string\n\n /**\n * Email address of the user\n */\n email: string\n\n /**\n * Activation flag\n */\n activated: boolean\n\n /**\n * Number of sign ins\n */\n signInCount: number\n\n /**\n * User confirmation flag\n */\n confirmed: boolean\n\n '2faEnabled': boolean\n cookieConsentData: string\n}\n\nexport interface User extends UserProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Normalized user\n */\nexport function wrapUser(_makeRequest: MakeRequest, data: T) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, {})\n return freezeSys(userWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data collection\n * @return Normalized user collection\n */\nexport const wrapUserCollection = wrapCollection(wrapUser)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except, JsonValue, SetOptional } from 'type-fest'\nimport {\n BasicMetaSysProps,\n CollectionProp,\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ninterface EqualityConstraint {\n equals: [Doc, string]\n}\ninterface Doc {\n doc: 'sys.id' | 'sys.contentType.sys.id' | 'sys.environment.sys.id'\n}\n\ninterface InConstraint {\n in: [Doc, [string, ...string[]]]\n}\n\ninterface RegexpConstraint {\n regexp: [Doc, Pattern]\n}\n\ninterface Pattern {\n pattern: string\n}\n\ninterface NotConstraint {\n not: EqualityConstraint | InConstraint | RegexpConstraint\n}\n\nexport type WebhookCalls = { total: number; healthy: number }\n\nexport type WebhookCallRequest = {\n url: string\n method: string\n headers: {\n [key: string]: string\n }\n body: string\n}\n\nexport type WebhookCallResponse = WebhookCallRequest & { statusCode: number }\n\nexport type WebhookHealthSys = Except<\n BasicMetaSysProps,\n 'version' | 'updatedAt' | 'updatedBy' | 'createdAt'\n>\n\nexport type WebhookCallDetailsSys = Except\n\nexport type WebhookHeader = { key: string; value: string; secret?: boolean }\n\nexport type WebhookFilter = EqualityConstraint | InConstraint | RegexpConstraint | NotConstraint\n\nexport type WebhookTransformation = {\n method?: null | 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE'\n contentType?:\n | null\n | 'application/vnd.contentful.management.v1+json'\n | 'application/vnd.contentful.management.v1+json; charset=utf-8'\n | 'application/json'\n | 'application/json; charset=utf-8'\n | 'application/x-www-form-urlencoded'\n | 'application/x-www-form-urlencoded; charset=utf-8'\n includeContentLength?: boolean | null\n body?: JsonValue\n}\n\nexport type CreateWebhooksProps = SetOptional, 'headers' | 'active'>\n\nexport type UpdateWebhookProps = SetOptional<\n Except,\n 'headers' | 'name' | 'topics' | 'url' | 'active'\n>\n\nexport type UpsertWebhookSigningSecretPayload = {\n value: string\n}\n\nexport type WebhookCallDetailsProps = {\n /**\n * System metadata\n */\n sys: WebhookCallDetailsSys\n\n /**\n * Request object\n */\n request: WebhookCallRequest\n\n /**\n * Request object\n */\n response: WebhookCallResponse\n\n /**\n * Status code of the request\n */\n statusCode: number\n /**\n * Errors\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n errors: any[]\n /**\n * Type of the webhook\n */\n eventType: string\n /**\n * Url of the request\n */\n url: string\n /**\n * Timestamp of the request\n */\n requestAt: string\n /**\n * Timestamp of the response\n */\n responseAt: string\n}\n\nexport type WebhookCallOverviewProps = Except\n\nexport type WebhookHealthProps = {\n /**\n * System metadata\n */\n sys: WebhookHealthSys & { space: { sys: MetaLinkProps } }\n\n /**\n * Webhook call statistics\n */\n calls: WebhookCalls\n}\n\nexport type WebhookSigningSecretSys = Except\n\nexport type WebhookSigningSecretProps = {\n sys: WebhookSigningSecretSys & { space: { sys: MetaLinkProps } }\n redactedValue: string\n}\n\nexport type WebhookRetryPolicyPayload = {\n maxRetries: number\n}\n\nexport type WebhookRetryPolicySys = Except\n\nexport type WebhookRetryPolicyProps = {\n sys: WebhookRetryPolicySys & { space: { sys: MetaLinkProps } }\n maxRetries: number\n}\n\nexport type WebhookProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps & { space: SysLink }\n\n /**\n * Webhook name\n */\n name: string\n\n /**\n * Webhook url\n */\n url: string\n\n /**\n * Topics the webhook wants to subscribe to\n */\n topics: string[]\n\n /**\n * Username for basic http auth\n */\n httpBasicUsername?: string\n\n /**\n * Password for basic http auth\n */\n httpBasicPassword?: string\n\n /**\n * Headers that should be appended to the webhook request\n */\n headers: Array\n\n /**\n * Webhook filters\n */\n filters?: WebhookFilter[]\n\n /**\n * Transformation to apply\n */\n transformation?: WebhookTransformation\n\n /**\n * Whether the Webhook is active. If set to false, no calls will be made\n */\n active: boolean\n}\n\nexport interface WebHooks extends WebhookProps, DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => {\n * webhook.name = 'new webhook name'\n * return webhook.update()\n * })\n * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.delete())\n * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * List of the most recent webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details.\n * @return Promise for list of calls\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getCalls())\n * .then((response) => console.log(response.items)) // webhook calls\n * .catch(console.error)\n * ```\n */\n getCalls(): Promise>\n\n /**\n * Webhook call with specific id. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details\n * @return Promise for call details\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getCall(''))\n * .then((webhookCall) => console.log(webhookCall))\n * .catch(console.error)\n * ```\n */\n getCall(id: string): Promise\n\n /**\n * Overview of the health of webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details.\n * @return Promise for health info\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getHealth())\n * .then((webhookHealth) => console.log(webhookHealth))\n * .catch(console.error)\n * ```\n */\n getHealth(): Promise\n}\n\n/**\n * @private\n */\nfunction createWebhookApi(makeRequest: MakeRequest) {\n const getParams = (data: WebhookProps) => ({\n spaceId: data.sys.space.sys.id,\n webhookDefinitionId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'delete',\n params: getParams(data),\n })\n },\n getCalls: function getCalls() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getManyCallDetails',\n params: getParams(data),\n })\n },\n getCall: function getCall(id: string) {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getCallDetails',\n params: { ...getParams(data), callId: id },\n })\n },\n getHealth: function getHealth() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getHealthStatus',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw webhook data\n * @return Wrapped webhook data\n */\nexport function wrapWebhook(makeRequest: MakeRequest, data: WebhookProps): WebHooks {\n const webhook = toPlainObject(copy(data))\n const webhookWithMethods = enhanceWithMethods(webhook, createWebhookApi(makeRequest))\n return freezeSys(webhookWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapWebhookCollection = wrapCollection(wrapWebhook)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetSpaceEnvironmentParams,\n GetWorkflowDefinitionParams,\n Link,\n MakeRequest,\n PaginationQueryOptions,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n/* Workflow Step Permission */\ntype NonEmptyArray = [T, ...T[]]\nexport type WorkflowStepPermissionActors = 'all' | NonEmptyArray | Link<'Team'>>\n\nexport enum WorkflowStepPermissionType {\n EntityPermission = 'entity_permission',\n WorkflowPermission = 'workflow_permission',\n}\n\nexport enum WorkflowStepPermissionAction {\n Edit = 'edit',\n Publish = 'publish',\n Delete = 'delete',\n}\n\nexport enum WorkflowStepPermissionEffect {\n Allow = 'allow',\n Deny = 'deny',\n}\n\nexport interface WorkflowStepPermission {\n type: WorkflowStepPermissionType\n configuration: {\n actors: WorkflowStepPermissionActors\n action: WorkflowStepPermissionAction\n effect: WorkflowStepPermissionEffect\n }\n}\n\n/* Workflow Step Action */\nexport enum WorkflowStepActionType {\n App = 'app',\n Email = 'email',\n Task = 'task',\n}\nexport type WorkflowStepAction =\n | WorkflowStepEmailAction\n | WorkflowStepTaskAction\n | WorkflowStepAppAction\n\nexport type WorkflowStepEmailActionRecipient = string | Link<'User'> | Link<'Team'>\n\nexport type WorkflowStepEmailAction = {\n type: 'email'\n configuration: {\n recipients: WorkflowStepEmailActionRecipient[]\n }\n}\n\nexport type WorkflowStepTaskAction = {\n type: 'task'\n configuration: {\n assignee: Link<'User'> | Link<'Team'>\n body: string\n dueDate?: number\n }\n}\n\nexport type WorkflowStepAppAction = {\n type: 'app'\n appId: string\n appActionId: string\n configuration?: {\n body?: Record\n headers?: Record\n }\n}\n\n/* Workflow Step */\nexport type WorkflowStepProps = {\n id: string\n name: string\n description?: string\n actions?: WorkflowStepAction[]\n annotations?: string[]\n permissions?: WorkflowStepPermission[]\n}\n\nexport type UpdateWorkflowStepProps = WorkflowStepProps\nexport type CreateWorkflowStepProps = Omit\n\n/* Workflow Definition */\n\nexport type WorkflowDefinitionSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'WorkflowDefinition'\n space: SysLink\n environment: SysLink\n isLocked: boolean\n}\n\nexport type WorkflowDefinitionValidationLink = {\n type: 'Link'\n validations: Array<{\n linkContentType: string[]\n }>\n linkType: 'Entry'\n}\n\nexport type WorkflowDefinitionProps = {\n sys: WorkflowDefinitionSysProps\n name: string\n description?: string\n appliesTo?: WorkflowDefinitionValidationLink[]\n steps: WorkflowStepProps[]\n startOnEntityCreation?: boolean\n flowType?: 'no_restriction' | 'strict_neighbor'\n}\n\nexport type CreateWorkflowDefinitionProps = Omit & {\n steps: CreateWorkflowStepProps[]\n}\nexport type UpdateWorkflowDefinitionProps = Omit & {\n sys: Pick\n steps: Array\n}\n\nexport type CreateWorkflowDefinitionParams = GetSpaceEnvironmentParams\nexport type UpdateWorkflowDefinitionParams = GetWorkflowDefinitionParams\nexport type DeleteWorkflowDefinitionParams = GetWorkflowDefinitionParams & { version: number }\n\ntype WorkflowDefinitionApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface WorkflowDefinition\n extends WorkflowDefinitionProps,\n DefaultElements,\n WorkflowDefinitionApi {}\n\nexport type WorkflowDefinitionQueryOptions = Omit\n\n/**\n * @private\n */\nexport default function createWorkflowDefinitionApi(\n makeRequest: MakeRequest\n): WorkflowDefinitionApi {\n const getParams = (workflowDefinition: WorkflowDefinitionProps): GetWorkflowDefinitionParams => ({\n spaceId: workflowDefinition.sys.space.sys.id,\n environmentId: workflowDefinition.sys.environment.sys.id,\n workflowDefinitionId: workflowDefinition.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as WorkflowDefinitionProps\n\n return makeRequest({\n entityType: 'WorkflowDefinition',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapWorkflowDefinition(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as WorkflowDefinitionProps\n\n return makeRequest({\n entityType: 'WorkflowDefinition',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapWorkflowDefinition(\n makeRequest: MakeRequest,\n data: WorkflowDefinitionProps\n): WorkflowDefinition {\n const workflowDefinition = toPlainObject(copy(data))\n const workflowDefinitionWithMethods = enhanceWithMethods(\n workflowDefinition,\n createWorkflowDefinitionApi(makeRequest)\n )\n return freezeSys(workflowDefinitionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapWorkflowDefinitionCollection = wrapCollection(wrapWorkflowDefinition)\n","export * from './common-types'\nexport * from './plain/common-types'\nexport type { ApiKey, ApiKeyProps, CreateApiKeyProps } from './entities/api-key'\nexport type {\n AppAction,\n AppActionCategoryProps,\n AppActionCategoryType,\n AppActionParameterDefinition,\n AppActionProps,\n CreateAppActionProps,\n} from './entities/app-action'\nexport type {\n AppActionCall,\n AppActionCallProps,\n CreateAppActionCallProps,\n} from './entities/app-action-call'\nexport type {\n AppBundle,\n AppBundleFile,\n AppBundleProps,\n CreateAppBundleProps,\n} from './entities/app-bundle'\nexport type {\n AppDefinition,\n AppDefinitionProps,\n AppLocation,\n CreateAppDefinitionProps,\n EntryFieldLocation,\n NavigationItem,\n PageLocation,\n SimpleLocation,\n} from './entities/app-definition'\nexport type {\n AppDetails,\n AppDetailsProps,\n AppIcon,\n CreateAppDetailsProps,\n IconType,\n} from './entities/app-details'\nexport type {\n AppInstallation,\n AppInstallationProps,\n CreateAppInstallationProps,\n} from './entities/app-installation'\nexport type {\n AppSignedRequest,\n AppSignedRequestProps,\n CreateAppSignedRequestProps,\n} from './entities/app-signed-request'\nexport type {\n AppSigningSecret,\n AppSigningSecretProps,\n CreateAppSigningSecretProps,\n} from './entities/app-signing-secret'\nexport type {\n AppEventSubscription,\n AppEventSubscriptionProps,\n CreateAppEventSubscriptionProps,\n} from './entities/app-event-subscription'\nexport type { AppKey, AppKeyProps, CreateAppKeyProps } from './entities/app-key'\nexport type {\n AppAccessToken,\n AppAccessTokenProps,\n CreateAppAccessTokenProps,\n} from './entities/app-access-token'\nexport type { AppUpload, AppUploadProps } from './entities/app-upload'\nexport type { Asset, AssetFileProp, AssetProps, CreateAssetProps } from './entities/asset'\nexport type { AssetKey, AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'\nexport type {\n BulkAction,\n BulkActionPayload,\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionStatus,\n BulkActionType,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\nexport type {\n RichTextCommentDocument,\n RichTextCommentProps,\n Comment,\n CommentProps,\n CreateCommentProps,\n UpdateCommentProps,\n DeleteCommentParams,\n GetCommentParentEntityParams,\n GetManyCommentsParams,\n} from './entities/comment'\nexport type {\n AnnotationAssignment,\n ContentType,\n ContentTypeMetadata,\n ContentTypeProps,\n CreateContentTypeProps,\n} from './entities/content-type'\nexport type {\n ContentFields,\n ContentTypeFieldValidation,\n ContentfulEntryResource,\n ExternalResource,\n} from './entities/content-type-fields'\nexport type {\n Control,\n Editor,\n EditorInterface,\n EditorInterfaceProps,\n EditorLayoutItem,\n FieldGroupItem,\n FieldItem,\n GroupControl,\n SidebarItem,\n} from './entities/editor-interface'\nexport type { FunctionProps } from './entities/function'\nexport type { CreateEntryProps, Entry, EntryProps, WithResourceName } from './entities/entry'\nexport type { CreateEnvironmentProps, Environment, EnvironmentProps } from './entities/environment'\nexport type {\n CreateEnvironmentAliasProps,\n EnvironmentAlias,\n EnvironmentAliasProps,\n} from './entities/environment-alias'\nexport type {\n ContentTypeTemplateProps,\n CreateEnvironmentTemplateProps,\n EditorInterfaceTemplateProps,\n EnvironmentTemplate,\n EnvironmentTemplateProps,\n Hint,\n} from './entities/environment-template'\nexport type {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallation,\n EnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationStatus,\n EnvironmentTemplateValidationProps,\n ValidateEnvironmentTemplateInstallationProps,\n ValidationFinding,\n} from './entities/environment-template-installation'\nexport type {\n CreateExtensionProps as CreateUIExtensionProps,\n Extension as UIExtension,\n ExtensionProps as UIExtensionProps,\n} from './entities/extension'\nexport type { FieldType } from './entities/field-type'\nexport type { CreateLocaleProps, Locale, LocaleProps } from './entities/locale'\nexport type { Organization, OrganizationProp } from './entities/organization'\nexport type {\n CreateOrganizationInvitationProps,\n OrganizationInvitation,\n OrganizationInvitationProps,\n} from './entities/organization-invitation'\nexport type {\n OrganizationMembership,\n OrganizationMembershipProps,\n} from './entities/organization-membership'\nexport type {\n CreatePersonalAccessTokenProps,\n PersonalAccessToken,\n PersonalAccessTokenProp,\n} from './entities/personal-access-token'\nexport type {\n CreatePersonalAccessTokenProps as CreatePATProps,\n AccessToken,\n AccessTokenProp,\n} from './entities/access-token'\nexport type { PreviewApiKey, PreviewApiKeyProps } from './entities/preview-api-key'\nexport type {\n Release,\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseSysProps,\n ReleaseValidateOptions,\n ReleaseMetadata,\n ReleaseReferenceFilters,\n} from './entities/release'\nexport type {\n ReleaseAction,\n ReleaseActionProps,\n ReleaseActionQueryOptions,\n ReleaseActionSysProps,\n ReleaseActionTypes,\n} from './entities/release-action'\nexport type { CreateRoleProps, Role, RoleProps } from './entities/role'\nexport type {\n ScheduledAction,\n ScheduledActionProps,\n ScheduledActionSysProps,\n} from './entities/scheduled-action'\nexport type { Snapshot, SnapshotProps } from './entities/snapshot'\nexport type { Space, SpaceProps } from './entities/space'\nexport type { SpaceMember, SpaceMemberProps } from './entities/space-member'\nexport type {\n CreateSpaceMembershipProps,\n SpaceMembership,\n SpaceMembershipProps,\n} from './entities/space-membership'\nexport type { CreateTagProps, Tag, TagProps, TagVisibility } from './entities/tag'\nexport type { CreateTaskProps, Task, TaskProps, UpdateTaskProps } from './entities/task'\nexport type { CreateTeamProps, Team, TeamProps } from './entities/team'\nexport type {\n CreateTeamMembershipProps,\n TeamMembership,\n TeamMembershipProps,\n} from './entities/team-membership'\nexport type {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembership,\n TeamSpaceMembershipProps,\n} from './entities/team-space-membership'\nexport type { UIConfig, UIConfigProps } from './entities/ui-config'\nexport type { Upload, UploadProps } from './entities/upload'\nexport type { Usage, UsageProps } from './entities/usage'\nexport type { User, UserProps } from './entities/user'\nexport type { UserUIConfig, UserUIConfigProps } from './entities/user-ui-config'\nexport type {\n CreateWebhooksProps,\n UpdateWebhookProps,\n WebhookCallRequest,\n WebhookFilter,\n WebhookProps,\n WebHooks,\n WebhookTransformation,\n UpsertWebhookSigningSecretPayload,\n WebhookSigningSecretProps,\n} from './entities/webhook'\nexport type {\n // General typings (props, params, options)\n WorkflowDefinition,\n WorkflowDefinitionSysProps,\n WorkflowDefinitionProps,\n CreateWorkflowDefinitionProps,\n UpdateWorkflowDefinitionProps,\n CreateWorkflowDefinitionParams,\n UpdateWorkflowDefinitionParams,\n DeleteWorkflowDefinitionParams,\n WorkflowStepProps,\n UpdateWorkflowStepProps,\n CreateWorkflowStepProps,\n WorkflowDefinitionQueryOptions,\n // Property: appliesTo\n WorkflowDefinitionValidationLink,\n // Property: step.actions\n WorkflowStepAction,\n WorkflowStepActionType,\n // Property: step.permissions\n WorkflowStepPermission,\n WorkflowStepPermissionActors,\n WorkflowStepEmailActionRecipient,\n WorkflowStepEmailAction,\n WorkflowStepTaskAction,\n WorkflowStepAppAction,\n} from './entities/workflow-definition'\n\nexport {\n WorkflowStepPermissionType,\n WorkflowStepPermissionAction,\n WorkflowStepPermissionEffect,\n} from './entities/workflow-definition'\n\nexport type {\n DefinedParameters,\n FreeFormParameters,\n ParameterDefinition,\n} from './entities/widget-parameters'\nexport type {\n CreateWorkflowProps,\n UpdateWorkflowProps,\n DeleteWorkflowParams,\n Workflow,\n WorkflowProps,\n WorkflowQueryOptions,\n} from './entities/workflow'\nexport type {\n WorkflowsChangelogEntry,\n WorkflowsChangelogEntryProps,\n WorkflowsChangelogQueryOptions,\n} from './entities/workflows-changelog-entry'\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { sleep } from './utils'\n\nconst DEFAULT_MAX_RETRIES = 30\nconst DEFAULT_INITIAL_DELAY_MS = 1000\nconst DEFAULT_RETRY_INTERVAL_MS = 2000\n\n/** Action is an interface that has a sys.status to be checked against */\ninterface Action extends Record {\n sys: {\n status: string\n type: string\n }\n}\n\nexport class AsyncActionProcessingError extends Error {\n public action?: Action\n\n constructor(message: string, action?: Action) {\n super(message)\n this.action = action\n this.name = this.constructor.name\n }\n}\n\nexport class AsyncActionFailedError extends AsyncActionProcessingError {}\n\nexport type AsyncActionProcessingOptions = {\n /** The amount of times to retry.\n * @default 30\n * */\n retryCount?: number\n /** The interval between retries, in milliseconds (ms).\n * @default 2000 (2s)\n * */\n retryIntervalMs?: number\n /**\n * Initial delay in milliseconds when performing the first check.\n * This is used to prevent short running bulkActions of waiting too long for a result.\n * @default 1000 (1s)\n * */\n initialDelayMs?: number\n /**\n * Throws an error if the Action does not complete with a successful (succeeded) status.\n * @default true\n */\n throwOnFailedExecution?: boolean\n}\n\n/**\n * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded)\n * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status\n * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed.\n * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long.\n */\nexport async function pollAsyncActionStatus(\n actionFunction: () => Promise,\n options?: AsyncActionProcessingOptions\n): Promise {\n let retryCount = 0\n let done = false\n let action: T | undefined\n\n const maxRetries = options?.retryCount ?? DEFAULT_MAX_RETRIES\n const retryIntervalMs = options?.retryIntervalMs ?? DEFAULT_RETRY_INTERVAL_MS\n const initialDelayMs = options?.initialDelayMs ?? DEFAULT_INITIAL_DELAY_MS\n const throwOnFailedExecution = options?.throwOnFailedExecution ?? true\n\n // Initial delay for short-running Actions\n await sleep(initialDelayMs)\n\n while (retryCount < maxRetries && !done) {\n action = await actionFunction()\n\n // Terminal states\n if (action && ['succeeded', 'failed'].includes(action.sys.status)) {\n done = true\n\n if (action.sys.status === 'failed' && throwOnFailedExecution) {\n throw new AsyncActionFailedError(`${action.sys.type} failed to execute.`, action)\n }\n\n return action\n }\n\n await sleep(retryIntervalMs)\n retryCount += 1\n }\n\n throw new AsyncActionProcessingError(\n `${action?.sys.type} didn't finish processing within the expected timeframe.`,\n action\n )\n}\n","import { GetContentTypeParams, MakeRequest } from '../common-types'\nimport { ContentTypeProps } from '../entities/content-type'\n\ntype OmitOrDelete = 'omitted' | 'deleted'\n\n/**\n * @private\n * @param id - unique ID of the field\n * @param key - the attribute on the field to change\n * @param value - the value to set the attribute to\n */\nconst findAndUpdateField = function (\n contentType: ContentTypeProps,\n fieldId: string,\n omitOrDelete: OmitOrDelete\n) {\n const field = contentType.fields.find((field) => field.id === fieldId)\n if (!field) {\n return Promise.reject(\n new Error(\n `Tried to omitAndDeleteField on a nonexistent field, ${fieldId}, on the content type ${contentType.name}.`\n )\n )\n }\n\n field[omitOrDelete] = true\n\n return Promise.resolve(contentType)\n}\n\nexport const omitAndDeleteField = (\n makeRequest: MakeRequest,\n {\n fieldId,\n ...params\n }: {\n fieldId: string\n } & GetContentTypeParams,\n contentType: ContentTypeProps\n) => {\n return findAndUpdateField(contentType, fieldId, 'omitted')\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: newContentType,\n })\n })\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'publish',\n params,\n payload: newContentType,\n })\n })\n .then((newContentType) => {\n return findAndUpdateField(newContentType, fieldId, 'deleted')\n })\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: newContentType,\n })\n })\n}\n","/**\n * Helper function that resolves a Promise after the specified duration (in milliseconds)\n * @private\n */\nexport function sleep(durationMs: number): Promise {\n return new Promise((resolve) => setTimeout(resolve, durationMs))\n}\n","import copy from 'fast-copy'\nimport { CollectionProp, QueryParams } from '../common-types'\n\ntype IterableFn

= (params: P) => Promise>\ntype ParamsType = T extends (params: infer P) => any ? P : never\n\nexport const asIterator =

>(\n fn: F,\n params: ParamsType\n): AsyncIterable => {\n return {\n [Symbol.asyncIterator]() {\n let options = copy(params)\n const get = () => fn(copy(options))\n let currentResult = get()\n\n return {\n current: 0,\n async next() {\n const { total = 0, items = [], skip = 0, limit = 100 } = await currentResult\n\n if (total === this.current) {\n return { done: true, value: null }\n }\n\n const value = items[this.current++ - skip]\n const endOfPage = this.current % limit === 0\n const endOfList = this.current === total\n\n if (endOfPage && !endOfList) {\n options = {\n ...options,\n query: {\n ...options.query,\n skip: skip + limit,\n },\n }\n currentResult = get()\n }\n\n return { done: false, value }\n },\n }\n },\n }\n}\n","import { MetaSysProps } from '../common-types'\n\nexport const isPublished = (data: { sys: MetaSysProps }) => !!data.sys.publishedVersion\n\nexport const isUpdated = (data: { sys: MetaSysProps }) => {\n // The act of publishing an entity increases its version by 1, so any entry which has\n // 2 versions higher or more than the publishedVersion has unpublished changes.\n return !!(data.sys.publishedVersion && data.sys.version > data.sys.publishedVersion + 1)\n}\n\nexport const isDraft = (data: { sys: MetaSysProps }) => !data.sys.publishedVersion\n\nexport const isArchived = (data: { sys: MetaSysProps }) => !!data.sys.archivedVersion\n","import { RawAxiosRequestHeaders, RawAxiosRequestConfig } from 'axios'\nimport { OpPatch } from 'json-patch'\nimport {\n CollectionProp,\n GetAppDefinitionParams,\n GetContentTypeParams,\n GetOrganizationMembershipParams,\n GetOrganizationParams,\n GetSnapshotForContentTypeParams,\n GetSnapshotForEntryParams,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n GetTeamMembershipParams,\n GetTeamParams,\n GetTeamSpaceMembershipParams,\n KeyValueMap,\n QueryParams,\n GetBulkActionParams,\n GetReleaseParams,\n CursorPaginatedCollectionProp,\n GetEnvironmentTemplateParams,\n BasicCursorPaginationOptions,\n EnvironmentTemplateParams,\n} from '../common-types'\nimport { ApiKeyProps, CreateApiKeyProps } from '../entities/api-key'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from '../entities/asset'\nimport { ContentTypeProps, CreateContentTypeProps } from '../entities/content-type'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from '../entities/entry'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from '../entities/organization-invitation'\nimport { OrganizationMembershipProps } from '../entities/organization-membership'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from '../entities/personal-access-token'\nimport {\n AccessTokenProp,\n CreatePersonalAccessTokenProps as CreatePATProps,\n} from '../entities/access-token'\nimport { PreviewApiKeyProps } from '../entities/preview-api-key'\nimport {\n ScheduledActionProps,\n CreateUpdateScheduledActionProps,\n} from '../entities/scheduled-action'\nimport { SnapshotProps } from '../entities/snapshot'\nimport { CreateTeamProps, TeamProps } from '../entities/team'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from '../entities/team-membership'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from '../entities/team-space-membership'\nimport { DefaultParams, OptionalDefaults } from './wrappers/wrap'\nimport { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key'\nimport { FunctionProps } from '../entities/function'\nimport {\n BulkActionPayload,\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from '../entities/bulk-action'\nimport {\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from '../entities/release'\nimport { ReleaseActionProps, ReleaseActionQueryOptions } from '../entities/release-action'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplateProps,\n} from '../entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationProps,\n EnvironmentTemplateValidationProps,\n ValidateEnvironmentTemplateInstallationProps,\n} from '../entities/environment-template-installation'\nimport { AppActionPlainClientAPI } from './entities/app-action'\nimport { AppActionCallPlainClientAPI } from './entities/app-action-call'\nimport { EditorInterfacePlainClientAPI } from './entities/editor-interface'\nimport { UIConfigPlainClientAPI } from './entities/ui-config'\nimport { UserUIConfigPlainClientAPI } from './entities/user-ui-config'\nimport { AppDefinitionPlainClientAPI } from './entities/app-definition'\nimport { AppUploadPlainClientAPI } from './entities/app-upload'\nimport { AppBundlePlainClientAPI } from './entities/app-bundle'\nimport { AppDetailsPlainClientAPI } from './entities/app-details'\nimport { AppInstallationPlainClientAPI } from './entities/app-installation'\nimport { WebhookPlainClientAPI } from './entities/webhook'\nimport { AppSignedRequestPlainClientAPI } from './entities/app-signed-request'\nimport { AppSigningSecretPlainClientAPI } from './entities/app-signing-secret'\nimport { ExtensionPlainClientAPI } from './entities/extension'\nimport { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription'\nimport { AppKeyPlainClientAPI } from './entities/app-key'\nimport { UserPlainClientAPI } from './entities/user'\nimport { UploadPlainClientAPI } from './entities/upload'\nimport { OrganizationPlainClientAPI } from './entities/organization'\nimport { LocalePlainClientAPI } from './entities/locale'\nimport { SpacePlainClientAPI } from './entities/space'\nimport { SpaceMembershipPlainClientAPI } from './entities/space-membership'\nimport { SpaceMemberPlainClientAPI } from './entities/space-member'\nimport { EnvironmentPlainClientAPI } from './entities/environment'\nimport { EnvironmentAliasPlainClientAPI } from './entities/environment-alias'\nimport { CommentPlainClientAPI } from './entities/comment'\nimport { TaskPlainClientAPI } from './entities/task'\nimport { WorkflowPlainClientAPI } from './entities/workflow'\nimport { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog'\nimport { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition'\nimport { RolePlainClientAPI } from './entities/role'\nimport { TagPlainClientAPI } from './entities/tag'\nimport { UsagePlainClientAPI } from './entities/usage'\nimport { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership'\nimport { TeamPlainClientAPI } from './entities/team'\nimport { TeamMembershipPlainClientAPI } from './entities/team-membership'\nimport { AppAccessTokenPlainClientAPI } from './entities/app-access-token'\n\nexport type PlainClientAPI = {\n raw: {\n getDefaultParams(): DefaultParams | undefined\n get(url: string, config?: RawAxiosRequestConfig): Promise\n post(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n patch(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n put(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n delete(url: string, config?: RawAxiosRequestConfig): Promise\n http(url: string, config?: RawAxiosRequestConfig): Promise\n }\n appAction: AppActionPlainClientAPI\n appActionCall: AppActionCallPlainClientAPI\n appBundle: AppBundlePlainClientAPI\n appDetails: AppDetailsPlainClientAPI\n appEventSubscription: AppEventSubscriptionPlainClientAPI\n appKey: AppKeyPlainClientAPI\n appSignedRequest: AppSignedRequestPlainClientAPI\n appSigningSecret: AppSigningSecretPlainClientAPI\n appAccessToken: AppAccessTokenPlainClientAPI\n function: {\n getMany(\n params: OptionalDefaults\n ): Promise>\n }\n editorInterface: EditorInterfacePlainClientAPI\n space: SpacePlainClientAPI\n environment: EnvironmentPlainClientAPI\n environmentAlias: EnvironmentAliasPlainClientAPI\n environmentTemplate: {\n get(\n params: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise\n getMany(\n params: GetOrganizationParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n create(\n params: GetOrganizationParams,\n rawData: CreateEnvironmentTemplateProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n versionUpdate(\n params: GetEnvironmentTemplateParams & { version: number },\n rawData: { versionName?: string; versionDescription?: string },\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: GetEnvironmentTemplateParams,\n rawData: EnvironmentTemplateProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: GetEnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise\n versions(\n params: GetEnvironmentTemplateParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n validate(\n params: EnvironmentTemplateParams & {\n version?: number\n },\n rawData: ValidateEnvironmentTemplateInstallationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n install(\n params: EnvironmentTemplateParams,\n rawData: CreateEnvironmentTemplateInstallationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n disconnect(params: EnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise\n }\n environmentTemplateInstallation: {\n getMany(\n params: BasicCursorPaginationOptions & {\n environmentId?: string\n environmentTemplateId: string\n organizationId: string\n spaceId?: string\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n getForEnvironment(\n params: BasicCursorPaginationOptions &\n EnvironmentTemplateParams & {\n installationId?: string\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n }\n bulkAction: {\n get(params: GetBulkActionParams): Promise>\n publish(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionPublishPayload\n ): Promise>\n unpublish(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionUnpublishPayload\n ): Promise>\n validate(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionValidatePayload\n ): Promise>\n }\n comment: CommentPlainClientAPI\n contentType: {\n get(params: OptionalDefaults): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: ContentTypeProps\n ): Promise\n unpublish(params: OptionalDefaults): Promise\n create(\n params: OptionalDefaults,\n rawData: CreateContentTypeProps\n ): Promise\n createWithId(\n params: OptionalDefaults,\n rawData: CreateContentTypeProps\n ): Promise\n omitAndDeleteField(\n params: OptionalDefaults,\n contentType: ContentTypeProps,\n fieldId: string\n ): Promise\n }\n user: UserPlainClientAPI\n entry: {\n getPublished(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>>\n getMany(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>>\n get(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: EntryProps,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n patch(\n params: OptionalDefaults,\n rawData: OpPatch[],\n headers?: RawAxiosRequestHeaders\n ): Promise>\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: EntryProps\n ): Promise>\n unpublish(\n params: OptionalDefaults\n ): Promise>\n archive(\n params: OptionalDefaults\n ): Promise>\n unarchive(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n rawData: CreateEntryProps\n ): Promise>\n createWithId(\n params: OptionalDefaults<\n GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string }\n >,\n rawData: CreateEntryProps\n ): Promise>\n references(\n params: OptionalDefaults<\n GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n >\n ): Promise\n }\n asset: {\n getPublished(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n getMany(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n get(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: OptionalDefaults,\n rawData: AssetProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: AssetProps\n ): Promise\n unpublish(\n params: OptionalDefaults\n ): Promise\n archive(\n params: OptionalDefaults\n ): Promise\n unarchive(\n params: OptionalDefaults\n ): Promise\n create(\n params: OptionalDefaults,\n rawData: CreateAssetProps\n ): Promise\n createWithId(\n params: OptionalDefaults,\n rawData: CreateAssetProps\n ): Promise\n createFromFiles(\n params: OptionalDefaults,\n data: Omit\n ): Promise\n processForAllLocales(\n params: OptionalDefaults,\n asset: AssetProps,\n processingOptions?: AssetProcessingForLocale\n ): Promise\n processForLocale(\n params: OptionalDefaults,\n asset: AssetProps,\n locale: string,\n processingOptions?: AssetProcessingForLocale\n ): Promise\n }\n appUpload: AppUploadPlainClientAPI\n assetKey: {\n create(\n params: OptionalDefaults,\n data: CreateAssetKeyProps\n ): Promise\n }\n upload: UploadPlainClientAPI\n locale: LocalePlainClientAPI\n personalAccessToken: {\n get(params: OptionalDefaults<{ tokenId: string }>): Promise\n getMany(params: OptionalDefaults): Promise>\n create(\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n revoke(params: OptionalDefaults<{ tokenId: string }>): Promise\n }\n accessToken: {\n get(params: OptionalDefaults<{ tokenId: string }>): Promise\n getMany(params: OptionalDefaults): Promise>\n createPersonalAccessToken(\n rawData: CreatePATProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n revoke(params: OptionalDefaults<{ tokenId: string }>): Promise\n getManyForOrganization(\n params: OptionalDefaults\n ): Promise>\n }\n usage: UsagePlainClientAPI\n release: {\n archive(params: OptionalDefaults): Promise\n get(params: OptionalDefaults): Promise\n query(\n params: OptionalDefaults & { query?: ReleaseQueryOptions }\n ): Promise>\n create(\n params: OptionalDefaults,\n data: ReleasePayload\n ): Promise\n update(\n params: OptionalDefaults,\n data: ReleasePayload\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults\n ): Promise>\n unarchive(\n params: OptionalDefaults\n ): Promise\n unpublish(\n params: OptionalDefaults\n ): Promise>\n validate(\n params: OptionalDefaults,\n data?: ReleaseValidatePayload\n ): Promise>\n }\n releaseAction: {\n get(\n params: OptionalDefaults & { actionId: string }\n ): Promise\n getMany(\n params: OptionalDefaults & { query?: ReleaseActionQueryOptions }\n ): Promise>\n queryForRelease(\n params: OptionalDefaults & { query?: ReleaseActionQueryOptions }\n ): Promise>\n }\n role: RolePlainClientAPI\n scheduledActions: {\n get(\n params: OptionalDefaults & {\n scheduledActionId: string\n environmentId: string\n }\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n data: CreateUpdateScheduledActionProps\n ): Promise\n delete(\n params: OptionalDefaults\n ): Promise\n update(\n params: OptionalDefaults,\n data: CreateUpdateScheduledActionProps\n ): Promise\n }\n previewApiKey: {\n get(\n params: OptionalDefaults\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n }\n apiKey: {\n get(params: OptionalDefaults): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n createWithId(\n params: OptionalDefaults,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: OptionalDefaults,\n rawData: ApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n }\n appDefinition: AppDefinitionPlainClientAPI\n appInstallation: AppInstallationPlainClientAPI\n extension: ExtensionPlainClientAPI\n webhook: WebhookPlainClientAPI\n snapshot: {\n getManyForEntry(\n params: OptionalDefaults\n ): Promise, 'metadata'>>>>\n getForEntry(\n params: OptionalDefaults\n ): Promise, 'metadata'>>>\n getManyForContentType(\n params: OptionalDefaults\n ): Promise>>\n getForContentType(\n params: OptionalDefaults\n ): Promise>\n }\n tag: TagPlainClientAPI\n organization: OrganizationPlainClientAPI\n organizationInvitation: {\n get(\n params: OptionalDefaults<{ organizationId: string; invitationId: string }>,\n headers?: RawAxiosRequestHeaders\n ): Promise\n create(\n params: OptionalDefaults<{ organizationId: string }>,\n data: CreateOrganizationInvitationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n }\n organizationMembership: {\n get(\n params: OptionalDefaults\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: OrganizationMembershipProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n }\n spaceMember: SpaceMemberPlainClientAPI\n spaceMembership: SpaceMembershipPlainClientAPI\n task: TaskPlainClientAPI\n team: TeamPlainClientAPI\n teamMembership: TeamMembershipPlainClientAPI\n teamSpaceMembership: TeamSpaceMembershipPlainClientAPI\n uiConfig: UIConfigPlainClientAPI\n userUIConfig: UserUIConfigPlainClientAPI\n workflowDefinition: WorkflowDefinitionPlainClientAPI\n workflow: WorkflowPlainClientAPI\n workflowsChangelog: WorkflowsChangelogPlainClientAPI\n}\n","import { GetContentTypeParams, GetSpaceEnvironmentParams, MakeRequest } from '../common-types'\nimport { omitAndDeleteField } from '../methods/content-type'\nimport { PlainClientAPI } from './common-types'\nimport { DefaultParams, wrap } from './wrappers/wrap'\n\nexport type { DefaultParams } from './wrappers/wrap'\n\n/**\n * @private\n */\nexport const createPlainClient = (\n makeRequest: MakeRequest,\n defaults: DefaultParams | undefined\n): PlainClientAPI => {\n const wrapParams = { makeRequest, defaults }\n\n return {\n raw: {\n getDefaultParams: () => defaults,\n get: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'get',\n params: { url, config },\n }),\n patch: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'patch',\n params: { url, config },\n payload,\n }),\n post: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'post',\n params: { url, config },\n payload,\n }),\n put: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'put',\n params: { url, config },\n payload,\n }),\n delete: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'delete',\n params: { url, config },\n }),\n http: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'request',\n params: { url, config },\n }),\n },\n appAction: {\n get: wrap(wrapParams, 'AppAction', 'get'),\n getMany: wrap(wrapParams, 'AppAction', 'getMany'),\n getManyForEnvironment: wrap(wrapParams, 'AppAction', 'getManyForEnvironment'),\n delete: wrap(wrapParams, 'AppAction', 'delete'),\n create: wrap(wrapParams, 'AppAction', 'create'),\n update: wrap(wrapParams, 'AppAction', 'update'),\n },\n appActionCall: {\n create: wrap(wrapParams, 'AppActionCall', 'create'),\n getCallDetails: wrap(wrapParams, 'AppActionCall', 'getCallDetails'),\n createWithResponse: wrap(wrapParams, 'AppActionCall', 'createWithResponse'),\n },\n appBundle: {\n get: wrap(wrapParams, 'AppBundle', 'get'),\n getMany: wrap(wrapParams, 'AppBundle', 'getMany'),\n delete: wrap(wrapParams, 'AppBundle', 'delete'),\n create: wrap(wrapParams, 'AppBundle', 'create'),\n },\n appDetails: {\n upsert: wrap(wrapParams, 'AppDetails', 'upsert'),\n get: wrap(wrapParams, 'AppDetails', 'get'),\n delete: wrap(wrapParams, 'AppDetails', 'delete'),\n },\n appEventSubscription: {\n upsert: wrap(wrapParams, 'AppEventSubscription', 'upsert'),\n get: wrap(wrapParams, 'AppEventSubscription', 'get'),\n delete: wrap(wrapParams, 'AppEventSubscription', 'delete'),\n },\n appKey: {\n create: wrap(wrapParams, 'AppKey', 'create'),\n get: wrap(wrapParams, 'AppKey', 'get'),\n getMany: wrap(wrapParams, 'AppKey', 'getMany'),\n delete: wrap(wrapParams, 'AppKey', 'delete'),\n },\n appSignedRequest: {\n create: wrap(wrapParams, 'AppSignedRequest', 'create'),\n },\n appSigningSecret: {\n upsert: wrap(wrapParams, 'AppSigningSecret', 'upsert'),\n get: wrap(wrapParams, 'AppSigningSecret', 'get'),\n delete: wrap(wrapParams, 'AppSigningSecret', 'delete'),\n },\n appAccessToken: {\n create: wrap(wrapParams, 'AppAccessToken', 'create'),\n },\n function: {\n getMany: wrap(wrapParams, 'Function', 'getMany'),\n },\n editorInterface: {\n get: wrap(wrapParams, 'EditorInterface', 'get'),\n getMany: wrap(wrapParams, 'EditorInterface', 'getMany'),\n update: wrap(wrapParams, 'EditorInterface', 'update'),\n },\n space: {\n get: wrap(wrapParams, 'Space', 'get'),\n getMany: wrap(wrapParams, 'Space', 'getMany'),\n getManyForOrganization: wrap(wrapParams, 'Space', 'getManyForOrganization'),\n update: wrap(wrapParams, 'Space', 'update'),\n delete: wrap(wrapParams, 'Space', 'delete'),\n create: wrap(wrapParams, 'Space', 'create'),\n },\n environment: {\n get: wrap(wrapParams, 'Environment', 'get'),\n getMany: wrap(wrapParams, 'Environment', 'getMany'),\n create: wrap(wrapParams, 'Environment', 'create'),\n createWithId: wrap(wrapParams, 'Environment', 'createWithId'),\n update: wrap(wrapParams, 'Environment', 'update'),\n delete: wrap(wrapParams, 'Environment', 'delete'),\n },\n environmentAlias: {\n get: wrap(wrapParams, 'EnvironmentAlias', 'get'),\n getMany: wrap(wrapParams, 'EnvironmentAlias', 'getMany'),\n createWithId: wrap(wrapParams, 'EnvironmentAlias', 'createWithId'),\n update: wrap(wrapParams, 'EnvironmentAlias', 'update'),\n delete: wrap(wrapParams, 'EnvironmentAlias', 'delete'),\n },\n environmentTemplate: {\n get: wrap(wrapParams, 'EnvironmentTemplate', 'get'),\n getMany: wrap(wrapParams, 'EnvironmentTemplate', 'getMany'),\n create: wrap(wrapParams, 'EnvironmentTemplate', 'create'),\n versionUpdate: wrap(wrapParams, 'EnvironmentTemplate', 'versionUpdate'),\n update: wrap(wrapParams, 'EnvironmentTemplate', 'update'),\n install: wrap(wrapParams, 'EnvironmentTemplate', 'install'),\n versions: wrap(wrapParams, 'EnvironmentTemplate', 'versions'),\n validate: wrap(wrapParams, 'EnvironmentTemplate', 'validate'),\n disconnect: wrap(wrapParams, 'EnvironmentTemplate', 'disconnect'),\n delete: wrap(wrapParams, 'EnvironmentTemplate', 'delete'),\n },\n environmentTemplateInstallation: {\n getMany: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getMany'),\n getForEnvironment: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getForEnvironment'),\n },\n bulkAction: {\n get: wrap(wrapParams, 'BulkAction', 'get'),\n publish: wrap(wrapParams, 'BulkAction', 'publish'),\n unpublish: wrap(wrapParams, 'BulkAction', 'unpublish'),\n validate: wrap(wrapParams, 'BulkAction', 'validate'),\n },\n comment: {\n get: wrap(wrapParams, 'Comment', 'get') as PlainClientAPI['comment']['get'],\n getMany: wrap(wrapParams, 'Comment', 'getMany') as PlainClientAPI['comment']['getMany'],\n create: wrap(wrapParams, 'Comment', 'create') as PlainClientAPI['comment']['create'],\n update: wrap(wrapParams, 'Comment', 'update') as PlainClientAPI['comment']['update'],\n delete: wrap(wrapParams, 'Comment', 'delete'),\n },\n contentType: {\n get: wrap(wrapParams, 'ContentType', 'get'),\n getMany: wrap(wrapParams, 'ContentType', 'getMany'),\n update: wrap(wrapParams, 'ContentType', 'update'),\n delete: wrap(wrapParams, 'ContentType', 'delete'),\n publish: wrap(wrapParams, 'ContentType', 'publish'),\n unpublish: wrap(wrapParams, 'ContentType', 'unpublish'),\n create: wrap(wrapParams, 'ContentType', 'create'),\n createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),\n omitAndDeleteField: (params, contentType, fieldId) =>\n omitAndDeleteField(\n makeRequest,\n { ...({ ...defaults, ...params } as GetContentTypeParams), fieldId },\n contentType\n ),\n },\n user: {\n getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),\n getForSpace: wrap(wrapParams, 'User', 'getForSpace'),\n getCurrent: wrap(wrapParams, 'User', 'getCurrent'),\n getForOrganization: wrap(wrapParams, 'User', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'User', 'getManyForOrganization'),\n },\n task: {\n get: wrap(wrapParams, 'Task', 'get'),\n getMany: wrap(wrapParams, 'Task', 'getMany'),\n create: wrap(wrapParams, 'Task', 'create'),\n update: wrap(wrapParams, 'Task', 'update'),\n delete: wrap(wrapParams, 'Task', 'delete'),\n },\n entry: {\n getPublished: wrap(wrapParams, 'Entry', 'getPublished'),\n getMany: wrap(wrapParams, 'Entry', 'getMany'),\n get: wrap(wrapParams, 'Entry', 'get'),\n update: wrap(wrapParams, 'Entry', 'update'),\n patch: wrap(wrapParams, 'Entry', 'patch'),\n delete: wrap(wrapParams, 'Entry', 'delete'),\n publish: wrap(wrapParams, 'Entry', 'publish'),\n unpublish: wrap(wrapParams, 'Entry', 'unpublish'),\n archive: wrap(wrapParams, 'Entry', 'archive'),\n unarchive: wrap(wrapParams, 'Entry', 'unarchive'),\n create: wrap(wrapParams, 'Entry', 'create'),\n createWithId: wrap(wrapParams, 'Entry', 'createWithId'),\n references: wrap(wrapParams, 'Entry', 'references'),\n },\n asset: {\n getPublished: wrap(wrapParams, 'Asset', 'getPublished'),\n getMany: wrap(wrapParams, 'Asset', 'getMany'),\n get: wrap(wrapParams, 'Asset', 'get'),\n update: wrap(wrapParams, 'Asset', 'update'),\n delete: wrap(wrapParams, 'Asset', 'delete'),\n publish: wrap(wrapParams, 'Asset', 'publish'),\n unpublish: wrap(wrapParams, 'Asset', 'unpublish'),\n archive: wrap(wrapParams, 'Asset', 'archive'),\n unarchive: wrap(wrapParams, 'Asset', 'unarchive'),\n create: wrap(wrapParams, 'Asset', 'create'),\n createWithId: wrap(wrapParams, 'Asset', 'createWithId'),\n createFromFiles: wrap(wrapParams, 'Asset', 'createFromFiles'),\n processForAllLocales: (params, asset, options) =>\n makeRequest({\n entityType: 'Asset',\n action: 'processForAllLocales',\n params: {\n ...({ ...defaults, ...params } as GetSpaceEnvironmentParams),\n options,\n asset,\n },\n }),\n processForLocale: (params, asset, locale, options) =>\n makeRequest({\n entityType: 'Asset',\n action: 'processForLocale',\n params: {\n ...({ ...defaults, ...params } as GetSpaceEnvironmentParams),\n locale,\n asset,\n options,\n },\n }),\n },\n appUpload: {\n get: wrap(wrapParams, 'AppUpload', 'get'),\n delete: wrap(wrapParams, 'AppUpload', 'delete'),\n create: wrap(wrapParams, 'AppUpload', 'create'),\n },\n assetKey: {\n create: wrap(wrapParams, 'AssetKey', 'create'),\n },\n upload: {\n get: wrap(wrapParams, 'Upload', 'get'),\n create: wrap(wrapParams, 'Upload', 'create'),\n delete: wrap(wrapParams, 'Upload', 'delete'),\n },\n locale: {\n get: wrap(wrapParams, 'Locale', 'get'),\n getMany: wrap(wrapParams, 'Locale', 'getMany'),\n delete: wrap(wrapParams, 'Locale', 'delete'),\n update: wrap(wrapParams, 'Locale', 'update'),\n create: wrap(wrapParams, 'Locale', 'create'),\n },\n personalAccessToken: {\n get: wrap(wrapParams, 'PersonalAccessToken', 'get'),\n getMany: wrap(wrapParams, 'PersonalAccessToken', 'getMany'),\n create: (data, headers) =>\n makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'create',\n params: {},\n headers,\n payload: data,\n }),\n revoke: wrap(wrapParams, 'PersonalAccessToken', 'revoke'),\n },\n accessToken: {\n get: wrap(wrapParams, 'AccessToken', 'get'),\n getMany: wrap(wrapParams, 'AccessToken', 'getMany'),\n createPersonalAccessToken: (data, headers) =>\n makeRequest({\n entityType: 'AccessToken',\n action: 'createPersonalAccessToken',\n params: {},\n headers,\n payload: data,\n }),\n revoke: wrap(wrapParams, 'AccessToken', 'revoke'),\n getManyForOrganization: wrap(wrapParams, 'AccessToken', 'getManyForOrganization'),\n },\n usage: {\n getManyForSpace: wrap(wrapParams, 'Usage', 'getManyForSpace'),\n getManyForOrganization: wrap(wrapParams, 'Usage', 'getManyForOrganization'),\n },\n release: {\n archive: wrap(wrapParams, 'Release', 'archive'),\n get: wrap(wrapParams, 'Release', 'get'),\n query: wrap(wrapParams, 'Release', 'query'),\n create: wrap(wrapParams, 'Release', 'create'),\n update: wrap(wrapParams, 'Release', 'update'),\n delete: wrap(wrapParams, 'Release', 'delete'),\n publish: wrap(wrapParams, 'Release', 'publish'),\n unarchive: wrap(wrapParams, 'Release', 'unarchive'),\n unpublish: wrap(wrapParams, 'Release', 'unpublish'),\n validate: wrap(wrapParams, 'Release', 'validate'),\n },\n releaseAction: {\n get: wrap(wrapParams, 'ReleaseAction', 'get'),\n getMany: wrap(wrapParams, 'ReleaseAction', 'getMany'),\n queryForRelease: wrap(wrapParams, 'ReleaseAction', 'queryForRelease'),\n },\n role: {\n get: wrap(wrapParams, 'Role', 'get'),\n getMany: wrap(wrapParams, 'Role', 'getMany'),\n getManyForOrganization: wrap(wrapParams, 'Role', 'getManyForOrganization'),\n create: wrap(wrapParams, 'Role', 'create'),\n createWithId: wrap(wrapParams, 'Role', 'createWithId'),\n update: wrap(wrapParams, 'Role', 'update'),\n delete: wrap(wrapParams, 'Role', 'delete'),\n },\n scheduledActions: {\n get: wrap(wrapParams, 'ScheduledAction', 'get'),\n getMany: wrap(wrapParams, 'ScheduledAction', 'getMany'),\n create: wrap(wrapParams, 'ScheduledAction', 'create'),\n delete: wrap(wrapParams, 'ScheduledAction', 'delete'),\n update: wrap(wrapParams, 'ScheduledAction', 'update'),\n },\n previewApiKey: {\n get: wrap(wrapParams, 'PreviewApiKey', 'get'),\n getMany: wrap(wrapParams, 'PreviewApiKey', 'getMany'),\n },\n apiKey: {\n get: wrap(wrapParams, 'ApiKey', 'get'),\n getMany: wrap(wrapParams, 'ApiKey', 'getMany'),\n create: wrap(wrapParams, 'ApiKey', 'create'),\n createWithId: wrap(wrapParams, 'ApiKey', 'createWithId'),\n update: wrap(wrapParams, 'ApiKey', 'update'),\n delete: wrap(wrapParams, 'ApiKey', 'delete'),\n },\n appDefinition: {\n get: wrap(wrapParams, 'AppDefinition', 'get'),\n getMany: wrap(wrapParams, 'AppDefinition', 'getMany'),\n create: wrap(wrapParams, 'AppDefinition', 'create'),\n update: wrap(wrapParams, 'AppDefinition', 'update'),\n delete: wrap(wrapParams, 'AppDefinition', 'delete'),\n getInstallationsForOrg: wrap(wrapParams, 'AppDefinition', 'getInstallationsForOrg'),\n },\n appInstallation: {\n get: wrap(wrapParams, 'AppInstallation', 'get'),\n getMany: wrap(wrapParams, 'AppInstallation', 'getMany'),\n getForOrganization: wrap(wrapParams, 'AppInstallation', 'getForOrganization'),\n upsert: wrap(wrapParams, 'AppInstallation', 'upsert'),\n delete: wrap(wrapParams, 'AppInstallation', 'delete'),\n },\n extension: {\n get: wrap(wrapParams, 'Extension', 'get'),\n getMany: wrap(wrapParams, 'Extension', 'getMany'),\n create: wrap(wrapParams, 'Extension', 'create'),\n createWithId: wrap(wrapParams, 'Extension', 'createWithId'),\n update: wrap(wrapParams, 'Extension', 'update'),\n delete: wrap(wrapParams, 'Extension', 'delete'),\n },\n webhook: {\n get: wrap(wrapParams, 'Webhook', 'get'),\n getMany: wrap(wrapParams, 'Webhook', 'getMany'),\n getHealthStatus: wrap(wrapParams, 'Webhook', 'getHealthStatus'),\n getCallDetails: wrap(wrapParams, 'Webhook', 'getCallDetails'),\n getSigningSecret: wrap(wrapParams, 'Webhook', 'getSigningSecret'),\n getRetryPolicy: wrap(wrapParams, 'Webhook', 'getRetryPolicy'),\n getManyCallDetails: wrap(wrapParams, 'Webhook', 'getManyCallDetails'),\n create: wrap(wrapParams, 'Webhook', 'create'),\n update: wrap(wrapParams, 'Webhook', 'update'),\n upsertSigningSecret: wrap(wrapParams, 'Webhook', 'upsertSigningSecret'),\n upsertRetryPolicy: wrap(wrapParams, 'Webhook', 'upsertRetryPolicy'),\n delete: wrap(wrapParams, 'Webhook', 'delete'),\n deleteSigningSecret: wrap(wrapParams, 'Webhook', 'deleteSigningSecret'),\n deleteRetryPolicy: wrap(wrapParams, 'Webhook', 'deleteRetryPolicy'),\n },\n snapshot: {\n getManyForEntry: wrap(wrapParams, 'Snapshot', 'getManyForEntry'),\n getForEntry: wrap(wrapParams, 'Snapshot', 'getForEntry'),\n getManyForContentType: wrap(wrapParams, 'Snapshot', 'getManyForContentType'),\n getForContentType: wrap(wrapParams, 'Snapshot', 'getForContentType'),\n },\n tag: {\n get: wrap(wrapParams, 'Tag', 'get'),\n getMany: wrap(wrapParams, 'Tag', 'getMany'),\n createWithId: wrap(wrapParams, 'Tag', 'createWithId'),\n update: wrap(wrapParams, 'Tag', 'update'),\n delete: wrap(wrapParams, 'Tag', 'delete'),\n },\n organization: {\n getAll: wrap(wrapParams, 'Organization', 'getMany'),\n get: wrap(wrapParams, 'Organization', 'get'),\n },\n organizationInvitation: {\n get: wrap(wrapParams, 'OrganizationInvitation', 'get'),\n create: wrap(wrapParams, 'OrganizationInvitation', 'create'),\n },\n organizationMembership: {\n get: wrap(wrapParams, 'OrganizationMembership', 'get'),\n getMany: wrap(wrapParams, 'OrganizationMembership', 'getMany'),\n update: wrap(wrapParams, 'OrganizationMembership', 'update'),\n delete: wrap(wrapParams, 'OrganizationMembership', 'delete'),\n },\n spaceMember: {\n get: wrap(wrapParams, 'SpaceMember', 'get'),\n getMany: wrap(wrapParams, 'SpaceMember', 'getMany'),\n },\n spaceMembership: {\n get: wrap(wrapParams, 'SpaceMembership', 'get'),\n getMany: wrap(wrapParams, 'SpaceMembership', 'getMany'),\n getForOrganization: wrap(wrapParams, 'SpaceMembership', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'SpaceMembership', 'getManyForOrganization'),\n create: wrap(wrapParams, 'SpaceMembership', 'create'),\n createWithId: wrap(wrapParams, 'SpaceMembership', 'createWithId'),\n update: wrap(wrapParams, 'SpaceMembership', 'update'),\n delete: wrap(wrapParams, 'SpaceMembership', 'delete'),\n },\n team: {\n get: wrap(wrapParams, 'Team', 'get'),\n getMany: wrap(wrapParams, 'Team', 'getMany'),\n getManyForSpace: wrap(wrapParams, 'Team', 'getManyForSpace'),\n create: wrap(wrapParams, 'Team', 'create'),\n update: wrap(wrapParams, 'Team', 'update'),\n delete: wrap(wrapParams, 'Team', 'delete'),\n },\n teamMembership: {\n get: wrap(wrapParams, 'TeamMembership', 'get'),\n getManyForOrganization: wrap(wrapParams, 'TeamMembership', 'getManyForOrganization'),\n getManyForTeam: wrap(wrapParams, 'TeamMembership', 'getManyForTeam'),\n create: wrap(wrapParams, 'TeamMembership', 'create'),\n update: wrap(wrapParams, 'TeamMembership', 'update'),\n delete: wrap(wrapParams, 'TeamMembership', 'delete'),\n },\n teamSpaceMembership: {\n get: wrap(wrapParams, 'TeamSpaceMembership', 'get'),\n getMany: wrap(wrapParams, 'TeamSpaceMembership', 'getMany'),\n getForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getManyForOrganization'),\n create: wrap(wrapParams, 'TeamSpaceMembership', 'create'),\n update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),\n delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),\n },\n uiConfig: {\n get: wrap(wrapParams, 'UIConfig', 'get'),\n update: wrap(wrapParams, 'UIConfig', 'update'),\n },\n userUIConfig: {\n get: wrap(wrapParams, 'UserUIConfig', 'get'),\n update: wrap(wrapParams, 'UserUIConfig', 'update'),\n },\n workflowDefinition: {\n get: wrap(wrapParams, 'WorkflowDefinition', 'get'),\n getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),\n create: wrap(wrapParams, 'WorkflowDefinition', 'create'),\n update: wrap(wrapParams, 'WorkflowDefinition', 'update'),\n delete: wrap(wrapParams, 'WorkflowDefinition', 'delete'),\n },\n workflow: {\n getMany: wrap(wrapParams, 'Workflow', 'getMany'),\n create: wrap(wrapParams, 'Workflow', 'create'),\n update: wrap(wrapParams, 'Workflow', 'update'),\n delete: wrap(wrapParams, 'Workflow', 'delete'),\n complete: wrap(wrapParams, 'Workflow', 'complete'),\n },\n workflowsChangelog: {\n getMany: wrap(wrapParams, 'WorkflowsChangelog', 'getMany'),\n },\n }\n}\n","import { MakeRequest, MRActions, MRReturn } from '../../common-types'\n\nexport type DefaultParams = {\n spaceId?: string\n environmentId?: string\n organizationId?: string\n}\n\n/**\n * @private\n */\nexport type OptionalDefaults = Omit &\n ('organizationId' extends keyof T ? { organizationId?: string } : Record) &\n ('spaceId' extends keyof T ? { spaceId?: string } : Record) &\n ('environmentId' extends keyof T ? { environmentId?: string } : Record)\n\n/**\n * @private\n */\nexport type WrapParams = {\n makeRequest: MakeRequest\n defaults?: DefaultParams\n}\n\n/**\n * @private\n */\nexport type WrapFn<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET],\n Params = 'params' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['params']\n : undefined,\n Payload = 'payload' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['payload']\n : undefined,\n Headers = 'headers' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['headers']\n : undefined,\n Return = MRReturn\n> = Params extends undefined\n ? () => Return\n : Payload extends undefined\n ? (params: Params) => Return\n : Headers extends undefined\n ? (params: Params, payload: Payload) => Return\n : (params: Params, payload: Payload, headers: Headers) => Return\n\n/**\n * @private\n */\nexport const wrap = (\n { makeRequest, defaults }: WrapParams,\n entityType: ET,\n action: Action\n): WrapFn => {\n type Params = 'params' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['params']\n : never\n type Payload = 'payload' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['payload']\n : never\n type Headers = 'headers' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['headers']\n : never\n\n // It's not really possible to make this type safe as we are overloading `makeRequest`.\n // This missing typesafety is only within `wrap`. `wrap` has proper public types.\n // @ts-expect-error\n return (params?: Params, payload?: Payload, headers?: Headers): MRReturn =>\n // @ts-expect-error\n makeRequest({\n // @ts-expect-error\n entityType,\n // @ts-expect-error\n action,\n // @ts-expect-error\n params: { ...defaults, ...params },\n payload,\n // Required after adding optional headers to a delete method for the first time\n // @ts-expect-error\n headers,\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\n\ntype UploadHttpClientOpts = {\n uploadTimeout?: number\n}\n\n/**\n * @private\n */\nexport function getUploadHttpClient(\n http: AxiosInstance,\n options?: UploadHttpClientOpts\n): AxiosInstance {\n const { hostUpload, defaultHostnameUpload, timeout } = http.httpClientParams as Record<\n string,\n any\n >\n const uploadHttp = http.cloneWithNewParams({\n host: hostUpload || defaultHostnameUpload,\n // Using client presets, options or 5 minute default timeout\n timeout: timeout ?? options?.uploadTimeout ?? 300000,\n })\n return uploadHttp\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","import copy from 'fast-copy';\nimport qs from 'qs';\nimport isString from 'lodash.isstring';\nimport pThrottle from 'p-throttle';\nimport isPlainObject from 'lodash.isplainobject';\n\nfunction _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nfunction _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nfunction _wrapRegExp() {\n _wrapRegExp = function (e, r) {\n return new BabelRegExp(e, void 0, r);\n };\n var e = RegExp.prototype,\n r = new WeakMap();\n function BabelRegExp(e, t, p) {\n var o = new RegExp(e, t);\n return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);\n }\n function buildGroups(e, t) {\n var p = r.get(t);\n return Object.keys(p).reduce(function (r, t) {\n var o = p[t];\n if (\"number\" == typeof o) r[t] = e[o];else {\n for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;\n r[t] = e[o[i]];\n }\n return r;\n }, Object.create(null));\n }\n return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {\n var t = e.exec.call(this, r);\n if (t) {\n t.groups = buildGroups(t, this);\n var p = t.indices;\n p && (p.groups = buildGroups(p, this));\n }\n return t;\n }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {\n if (\"string\" == typeof p) {\n var o = r.get(this);\n return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)>/g, function (e, r) {\n var t = o[r];\n return \"$\" + (Array.isArray(t) ? t.join(\"$\") : t);\n }));\n }\n if (\"function\" == typeof p) {\n var i = this;\n return e[Symbol.replace].call(this, t, function () {\n var e = arguments;\n return \"object\" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);\n });\n }\n return e[Symbol.replace].call(this, t, p);\n }, _wrapRegExp.apply(this, arguments);\n}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function () {};\n return {\n s: F,\n n: function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function (e) {\n throw e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function () {\n it = it.call(o);\n },\n n: function () {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function (e) {\n didErr = true;\n err = e;\n },\n f: function () {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\n\nfunction asyncToken(instance, getToken) {\n instance.interceptors.request.use(function (config) {\n return getToken().then(function (accessToken) {\n config.headers.set('Authorization', \"Bearer \".concat(accessToken));\n return config;\n });\n });\n}\n\nfunction isNode() {\n /**\n * Polyfills of 'process' might set process.browser === true\n *\n * See:\n * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8\n * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156\n **/\n return typeof process !== 'undefined' && !process.browser;\n}\nfunction isReactNative() {\n return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative';\n}\nfunction getNodeVersion() {\n return process.versions && process.versions.node ? \"v\".concat(process.versions.node) : process.version;\n}\nfunction getWindow() {\n return window;\n}\nfunction noop() {\n return undefined;\n}\n\nvar delay = function delay(ms) {\n return new Promise(function (resolve) {\n setTimeout(resolve, ms);\n });\n};\nvar defaultWait = function defaultWait(attempts) {\n return Math.pow(Math.SQRT2, attempts);\n};\nfunction rateLimit(instance) {\n var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;\n var _instance$defaults = instance.defaults,\n _instance$defaults$re = _instance$defaults.responseLogger,\n responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re,\n _instance$defaults$re2 = _instance$defaults.requestLogger,\n requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2;\n instance.interceptors.request.use(function (config) {\n requestLogger(config);\n return config;\n }, function (error) {\n requestLogger(error);\n return Promise.reject(error);\n });\n instance.interceptors.response.use(function (response) {\n // we don't need to do anything here\n responseLogger(response);\n return response;\n }, function (error) {\n var response = error.response;\n var config = error.config;\n responseLogger(error);\n // Do not retry if it is disabled or no request config exists (not an axios error)\n if (!config || !instance.defaults.retryOnError) {\n return Promise.reject(error);\n }\n\n // Retried already for max attempts\n var doneAttempts = config.attempts || 1;\n if (doneAttempts > maxRetry) {\n error.attempts = config.attempts;\n return Promise.reject(error);\n }\n var retryErrorType = null;\n var wait = defaultWait(doneAttempts);\n\n // Errors without response did not receive anything from the server\n if (!response) {\n retryErrorType = 'Connection';\n } else if (response.status >= 500 && response.status < 600) {\n // 5** errors are server related\n retryErrorType = \"Server \".concat(response.status);\n } else if (response.status === 429) {\n // 429 errors are exceeded rate limit exceptions\n retryErrorType = 'Rate limit';\n // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413\n if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) {\n wait = response.headers['x-contentful-ratelimit-reset'];\n }\n }\n if (retryErrorType) {\n // convert to ms and add jitter\n wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);\n instance.defaults.logHandler('warning', \"\".concat(retryErrorType, \" error occurred. Waiting for \").concat(wait, \" ms before retrying...\"));\n\n // increase attempts counter\n config.attempts = doneAttempts + 1;\n\n /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object\n to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry\n requests still use the original http/httpsAgent property */\n delete config.httpAgent;\n delete config.httpsAgent;\n return delay(wait).then(function () {\n return instance(config);\n });\n }\n return Promise.reject(error);\n });\n}\n\nvar PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\\d+)(%)/, {\n value: 1\n});\nfunction calculateLimit(type) {\n var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7;\n var limit = max;\n if (PERCENTAGE_REGEX.test(type)) {\n var _type$match;\n var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups;\n if (groups && groups.value) {\n var percentage = parseInt(groups.value) / 100;\n limit = Math.round(max * percentage);\n }\n }\n return Math.min(30, Math.max(1, limit));\n}\nfunction createThrottle(limit, logger) {\n logger('info', \"Throttle request to \".concat(limit, \"/s\"));\n return pThrottle({\n limit: limit,\n interval: 1000,\n strict: false\n });\n}\nvar rateLimitThrottle = (function (axiosInstance) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';\n var _axiosInstance$defaul = axiosInstance.defaults.logHandler,\n logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;\n var limit = isString(type) ? calculateLimit(type) : calculateLimit('auto', type);\n var throttle = createThrottle(limit, logHandler);\n var isCalculated = false;\n var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {\n return throttle(function () {\n return config;\n })();\n }, function (error) {\n return Promise.reject(error);\n });\n var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {\n if (!isCalculated && isString(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {\n var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);\n var nextLimit = calculateLimit(type, rawLimit);\n if (nextLimit !== limit) {\n if (requestInterceptorId) {\n axiosInstance.interceptors.request.eject(requestInterceptorId);\n }\n limit = nextLimit;\n throttle = createThrottle(nextLimit, logHandler);\n requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {\n return throttle(function () {\n return config;\n })();\n }, function (error) {\n return Promise.reject(error);\n });\n }\n isCalculated = true;\n }\n return response;\n }, function (error) {\n return Promise.reject(error);\n });\n return function () {\n axiosInstance.interceptors.request.eject(requestInterceptorId);\n axiosInstance.interceptors.response.eject(responseInterceptorId);\n };\n});\n\n// Matches 'sub.host:port' or 'host:port' and extracts hostname and port\n// Also enforces toplevel domain specified, no spaces and no protocol\nvar HOST_REGEX = /^(?!\\w+:\\/\\/)([^\\s:]+\\.?[^\\s:]+)(?::(\\d+))?(?!:)$/;\n\n/**\n * Create pre-configured axios instance\n * @private\n * @param {AxiosStatic} axios - Axios library\n * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client\n * @return {AxiosInstance} Initialized axios instance\n */\nfunction createHttpClient(axios, options) {\n var defaultConfig = {\n insecure: false,\n retryOnError: true,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n logHandler: function logHandler(level, data) {\n if (level === 'error' && data) {\n var title = [data.name, data.message].filter(function (a) {\n return a;\n }).join(' - ');\n console.error(\"[error] \".concat(title));\n console.error(data);\n return;\n }\n console.log(\"[\".concat(level, \"] \").concat(data));\n },\n // Passed to axios\n headers: {},\n httpAgent: false,\n httpsAgent: false,\n timeout: 30000,\n throttle: 0,\n basePath: '',\n adapter: undefined,\n maxContentLength: 1073741824,\n // 1GB\n maxBodyLength: 1073741824 // 1GB\n };\n var config = _objectSpread2(_objectSpread2({}, defaultConfig), options);\n if (!config.accessToken) {\n var missingAccessTokenError = new TypeError('Expected parameter accessToken');\n config.logHandler('error', missingAccessTokenError);\n throw missingAccessTokenError;\n }\n\n // Construct axios baseURL option\n var protocol = config.insecure ? 'http' : 'https';\n var space = config.space ? \"\".concat(config.space, \"/\") : '';\n var hostname = config.defaultHostname;\n var port = config.insecure ? 80 : 443;\n if (config.host && HOST_REGEX.test(config.host)) {\n var parsed = config.host.split(':');\n if (parsed.length === 2) {\n var _parsed = _slicedToArray(parsed, 2);\n hostname = _parsed[0];\n port = _parsed[1];\n } else {\n hostname = parsed[0];\n }\n }\n\n // Ensure that basePath does start but not end with a slash\n if (config.basePath) {\n config.basePath = \"/\".concat(config.basePath.split('/').filter(Boolean).join('/'));\n }\n var baseURL = options.baseURL || \"\".concat(protocol, \"://\").concat(hostname, \":\").concat(port).concat(config.basePath, \"/spaces/\").concat(space);\n if (!config.headers.Authorization && typeof config.accessToken !== 'function') {\n config.headers.Authorization = 'Bearer ' + config.accessToken;\n }\n var axiosOptions = {\n // Axios\n baseURL: baseURL,\n headers: config.headers,\n httpAgent: config.httpAgent,\n httpsAgent: config.httpsAgent,\n proxy: config.proxy,\n timeout: config.timeout,\n adapter: config.adapter,\n maxContentLength: config.maxContentLength,\n maxBodyLength: config.maxBodyLength,\n paramsSerializer: {\n serialize: function serialize(params) {\n return qs.stringify(params);\n }\n },\n // Contentful\n logHandler: config.logHandler,\n responseLogger: config.responseLogger,\n requestLogger: config.requestLogger,\n retryOnError: config.retryOnError\n };\n var instance = axios.create(axiosOptions);\n instance.httpClientParams = options;\n\n /**\n * Creates a new axios instance with the same default base parameters as the\n * current one, and with any overrides passed to the newParams object\n * This is useful as the SDKs use dependency injection to get the axios library\n * and the version of the library comes from different places depending\n * on whether it's a browser build or a node.js build.\n * @private\n * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client\n * @return {AxiosInstance} Initialized axios instance\n */\n instance.cloneWithNewParams = function (newParams) {\n return createHttpClient(axios, _objectSpread2(_objectSpread2({}, copy(options)), newParams));\n };\n\n /**\n * Apply interceptors.\n * Please note that the order of interceptors is important\n */\n\n if (config.onBeforeRequest) {\n instance.interceptors.request.use(config.onBeforeRequest);\n }\n if (typeof config.accessToken === 'function') {\n asyncToken(instance, config.accessToken);\n }\n if (config.throttle) {\n rateLimitThrottle(instance, config.throttle);\n }\n rateLimit(instance, config.retryLimit);\n if (config.onError) {\n instance.interceptors.response.use(function (response) {\n return response;\n }, config.onError);\n }\n return instance;\n}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * Creates request parameters configuration by parsing an existing query object\n * @private\n * @param {Object} query\n * @return {Object} Config object with `params` property, ready to be used in axios\n */\nfunction createRequestConfig(_ref) {\n var query = _ref.query;\n var config = {};\n delete query.resolveLinks;\n config.params = copy(query);\n return config;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction enforceObjPath(obj, path) {\n if (!(path in obj)) {\n var err = new Error();\n err.name = 'PropertyMissing';\n err.message = \"Required property \".concat(path, \" missing from:\\n\\n\").concat(JSON.stringify(obj), \"\\n\\n\");\n throw err;\n }\n return true;\n}\n\n// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n\nfunction deepFreeze(object) {\n var propNames = Object.getOwnPropertyNames(object);\n var _iterator = _createForOfIteratorHelper(propNames),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var name = _step.value;\n var value = object[name];\n if (value && _typeof(value) === 'object') {\n deepFreeze(value);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return Object.freeze(object);\n}\nfunction freezeSys(obj) {\n deepFreeze(obj.sys || {});\n return obj;\n}\n\nfunction getBrowserOS() {\n var win = getWindow();\n if (!win) {\n return null;\n }\n var userAgent = win.navigator.userAgent;\n // TODO: platform is deprecated.\n var platform = win.navigator.platform;\n var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'];\n var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'];\n var iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n if (macosPlatforms.indexOf(platform) !== -1) {\n return 'macOS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n return 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n return 'Windows';\n } else if (/Android/.test(userAgent)) {\n return 'Android';\n } else if (/Linux/.test(platform)) {\n return 'Linux';\n }\n return null;\n}\nfunction getNodeOS() {\n var platform = process.platform || 'linux';\n var version = process.version || '0.0.0';\n var platformMap = {\n android: 'Android',\n aix: 'Linux',\n darwin: 'macOS',\n freebsd: 'Linux',\n linux: 'Linux',\n openbsd: 'Linux',\n sunos: 'Linux',\n win32: 'Windows'\n };\n if (platform in platformMap) {\n return \"\".concat(platformMap[platform] || 'Linux', \"/\").concat(version);\n }\n return null;\n}\nfunction getUserAgentHeader(sdk, application, integration, feature) {\n var headerParts = [];\n if (application) {\n headerParts.push(\"app \".concat(application));\n }\n if (integration) {\n headerParts.push(\"integration \".concat(integration));\n }\n if (feature) {\n headerParts.push('feature ' + feature);\n }\n headerParts.push(\"sdk \".concat(sdk));\n var platform = null;\n try {\n if (isReactNative()) {\n platform = getBrowserOS();\n headerParts.push('platform ReactNative');\n } else if (isNode()) {\n platform = getNodeOS();\n headerParts.push(\"platform node.js/\".concat(getNodeVersion()));\n } else {\n platform = getBrowserOS();\n headerParts.push('platform browser');\n }\n } catch (e) {\n platform = null;\n }\n if (platform) {\n headerParts.push(\"os \".concat(platform));\n }\n return \"\".concat(headerParts.filter(function (item) {\n return item !== '';\n }).join('; '), \";\");\n}\n\n/**\n * Mixes in a method to return just a plain object with no additional methods\n * @private\n * @param data - Any plain JSON response returned from the API\n * @return Enhanced object with toPlainObject method\n */\nfunction toPlainObject(data) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n return Object.defineProperty(data, 'toPlainObject', {\n enumerable: false,\n configurable: false,\n writable: false,\n value: function value() {\n return copy(this);\n }\n });\n}\n\n/**\n * Handles errors received from the server. Parses the error into a more useful\n * format, places it in an exception and throws it.\n * See https://www.contentful.com/developers/docs/references/errors/\n * for more details on the data received on the errorResponse.data property\n * and the expected error codes.\n * @private\n */\nfunction errorHandler(errorResponse) {\n var config = errorResponse.config,\n response = errorResponse.response;\n var errorName;\n\n // Obscure the Management token\n if (config && config.headers && config.headers['Authorization']) {\n var token = \"...\".concat(config.headers['Authorization'].toString().substr(-5));\n config.headers['Authorization'] = \"Bearer \".concat(token);\n }\n if (!isPlainObject(response) || !isPlainObject(config)) {\n throw errorResponse;\n }\n var data = response === null || response === void 0 ? void 0 : response.data;\n var errorData = {\n status: response === null || response === void 0 ? void 0 : response.status,\n statusText: response === null || response === void 0 ? void 0 : response.statusText,\n message: '',\n details: {}\n };\n if (config && isPlainObject(config)) {\n errorData.request = {\n url: config.url,\n headers: config.headers,\n method: config.method,\n payloadData: config.data\n };\n }\n if (data && _typeof(data) === 'object') {\n var _data$sys;\n if ('requestId' in data) {\n errorData.requestId = data.requestId || 'UNKNOWN';\n }\n if ('message' in data) {\n errorData.message = data.message || '';\n }\n if ('details' in data) {\n errorData.details = data.details || {};\n }\n errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id;\n }\n var error = new Error();\n error.name = errorName && errorName !== 'Unknown' ? errorName : \"\".concat(response === null || response === void 0 ? void 0 : response.status, \" \").concat(response === null || response === void 0 ? void 0 : response.statusText);\n try {\n error.message = JSON.stringify(errorData, null, ' ');\n } catch (_unused) {\n var _errorData$message;\n error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : '';\n }\n throw error;\n}\n\nexport { createHttpClient, createRequestConfig, enforceObjPath, errorHandler, freezeSys, getUserAgentHeader, toPlainObject };\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global[\"fast-copy\"] = factory());\n})(this, (function () { 'use strict';\n\n var toStringFunction = Function.prototype.toString;\n var create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf;\n var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;\n var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function';\n var WEAK_MAP = typeof WeakMap === 'function';\n /**\n * @function createCache\n *\n * @description\n * get a new cache object to prevent circular references\n *\n * @returns the new cache object\n */\n var createCache = (function () {\n if (WEAK_MAP) {\n return function () { return new WeakMap(); };\n }\n var Cache = /** @class */ (function () {\n function Cache() {\n this._keys = [];\n this._values = [];\n }\n Cache.prototype.has = function (key) {\n return !!~this._keys.indexOf(key);\n };\n Cache.prototype.get = function (key) {\n return this._values[this._keys.indexOf(key)];\n };\n Cache.prototype.set = function (key, value) {\n this._keys.push(key);\n this._values.push(value);\n };\n return Cache;\n }());\n return function () { return new Cache(); };\n })();\n /**\n * @function getCleanClone\n *\n * @description\n * get an empty version of the object with the same prototype it has\n *\n * @param object the object to build a clean clone from\n * @param realm the realm the object resides in\n * @returns the empty cloned object\n */\n var getCleanClone = function (object, realm) {\n var prototype = object.__proto__ || getPrototypeOf$1(object);\n if (!prototype) {\n return create(null);\n }\n var Constructor = prototype.constructor;\n if (Constructor === realm.Object) {\n return prototype === realm.Object.prototype ? {} : create(prototype);\n }\n if (~toStringFunction.call(Constructor).indexOf('[native code]')) {\n try {\n return new Constructor();\n }\n catch (_a) { }\n }\n return create(prototype);\n };\n /**\n * @function getObjectCloneLoose\n *\n * @description\n * get a copy of the object based on loose rules, meaning all enumerable keys\n * and symbols are copied, but property descriptors are not considered\n *\n * @param object the object to clone\n * @param realm the realm the object resides in\n * @param handleCopy the function that handles copying the object\n * @returns the copied object\n */\n var getObjectCloneLoose = function (object, realm, handleCopy, cache) {\n var clone = getCleanClone(object, realm);\n // set in the cache immediately to be able to reuse the object recursively\n cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = handleCopy(object[key], cache);\n }\n }\n if (SYMBOL_PROPERTIES) {\n var symbols = getOwnPropertySymbols(object);\n for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {\n symbol = symbols[index];\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = handleCopy(object[symbol], cache);\n }\n }\n }\n return clone;\n };\n /**\n * @function getObjectCloneStrict\n *\n * @description\n * get a copy of the object based on strict rules, meaning all keys and symbols\n * are copied based on the original property descriptors\n *\n * @param object the object to clone\n * @param realm the realm the object resides in\n * @param handleCopy the function that handles copying the object\n * @returns the copied object\n */\n var getObjectCloneStrict = function (object, realm, handleCopy, cache) {\n var clone = getCleanClone(object, realm);\n // set in the cache immediately to be able to reuse the object recursively\n cache.set(object, clone);\n var properties = SYMBOL_PROPERTIES\n ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object))\n : getOwnPropertyNames(object);\n for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {\n property = properties[index];\n if (property !== 'callee' && property !== 'caller') {\n descriptor = getOwnPropertyDescriptor(object, property);\n if (descriptor) {\n // Only clone the value if actually a value, not a getter / setter.\n if (!descriptor.get && !descriptor.set) {\n descriptor.value = handleCopy(object[property], cache);\n }\n try {\n defineProperty(clone, property, descriptor);\n }\n catch (error) {\n // Tee above can fail on node in edge cases, so fall back to the loose assignment.\n clone[property] = descriptor.value;\n }\n }\n else {\n // In extra edge cases where the property descriptor cannot be retrived, fall back to\n // the loose assignment.\n clone[property] = handleCopy(object[property], cache);\n }\n }\n }\n return clone;\n };\n /**\n * @function getRegExpFlags\n *\n * @description\n * get the flags to apply to the copied regexp\n *\n * @param regExp the regexp to get the flags of\n * @returns the flags for the regexp\n */\n var getRegExpFlags = function (regExp) {\n var flags = '';\n if (regExp.global) {\n flags += 'g';\n }\n if (regExp.ignoreCase) {\n flags += 'i';\n }\n if (regExp.multiline) {\n flags += 'm';\n }\n if (regExp.unicode) {\n flags += 'u';\n }\n if (regExp.sticky) {\n flags += 'y';\n }\n return flags;\n };\n\n // utils\n var isArray = Array.isArray;\n var getPrototypeOf = Object.getPrototypeOf;\n var GLOBAL_THIS = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n }\n if (typeof self !== 'undefined') {\n return self;\n }\n if (typeof window !== 'undefined') {\n return window;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n if (console && console.error) {\n console.error('Unable to locate global object, returning \"this\".');\n }\n return this;\n })();\n /**\n * @function copy\n *\n * @description\n * copy an value deeply as much as possible\n *\n * If `strict` is applied, then all properties (including non-enumerable ones)\n * are copied with their original property descriptors on both objects and arrays.\n *\n * The value is compared to the global constructors in the `realm` provided,\n * and the native constructor is always used to ensure that extensions of native\n * objects (allows in ES2015+) are maintained.\n *\n * @param value the value to copy\n * @param [options] the options for copying with\n * @param [options.isStrict] should the copy be strict\n * @param [options.realm] the realm (this) value the value is copied from\n * @returns the copied value\n */\n function copy(value, options) {\n // manually coalesced instead of default parameters for performance\n var isStrict = !!(options && options.isStrict);\n var realm = (options && options.realm) || GLOBAL_THIS;\n var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose;\n /**\n * @function handleCopy\n *\n * @description\n * copy the value recursively based on its type\n *\n * @param value the value to copy\n * @returns the copied value\n */\n var handleCopy = function (value, cache) {\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (cache.has(value)) {\n return cache.get(value);\n }\n var prototype = value.__proto__ || getPrototypeOf(value);\n var Constructor = prototype && prototype.constructor;\n // plain objects\n if (!Constructor || Constructor === realm.Object) {\n return getObjectClone(value, realm, handleCopy, cache);\n }\n var clone;\n // arrays\n if (isArray(value)) {\n // if strict, include non-standard properties\n if (isStrict) {\n return getObjectCloneStrict(value, realm, handleCopy, cache);\n }\n clone = new Constructor();\n cache.set(value, clone);\n for (var index = 0, length_1 = value.length; index < length_1; ++index) {\n clone[index] = handleCopy(value[index], cache);\n }\n return clone;\n }\n // dates\n if (value instanceof realm.Date) {\n return new Constructor(value.getTime());\n }\n // regexps\n if (value instanceof realm.RegExp) {\n clone = new Constructor(value.source, value.flags || getRegExpFlags(value));\n clone.lastIndex = value.lastIndex;\n return clone;\n }\n // maps\n if (realm.Map && value instanceof realm.Map) {\n clone = new Constructor();\n cache.set(value, clone);\n value.forEach(function (value, key) {\n clone.set(key, handleCopy(value, cache));\n });\n return clone;\n }\n // sets\n if (realm.Set && value instanceof realm.Set) {\n clone = new Constructor();\n cache.set(value, clone);\n value.forEach(function (value) {\n clone.add(handleCopy(value, cache));\n });\n return clone;\n }\n // blobs\n if (realm.Blob && value instanceof realm.Blob) {\n return value.slice(0, value.size, value.type);\n }\n // buffers (node-only)\n if (realm.Buffer && realm.Buffer.isBuffer(value)) {\n clone = realm.Buffer.allocUnsafe\n ? realm.Buffer.allocUnsafe(value.length)\n : new Constructor(value.length);\n cache.set(value, clone);\n value.copy(clone);\n return clone;\n }\n // arraybuffers / dataviews\n if (realm.ArrayBuffer) {\n // dataviews\n if (realm.ArrayBuffer.isView(value)) {\n clone = new Constructor(value.buffer.slice(0));\n cache.set(value, clone);\n return clone;\n }\n // arraybuffers\n if (value instanceof realm.ArrayBuffer) {\n clone = value.slice(0);\n cache.set(value, clone);\n return clone;\n }\n }\n // if the value cannot / should not be cloned, don't\n if (\n // promise-like\n typeof value.then === 'function' ||\n // errors\n value instanceof Error ||\n // weakmaps\n (realm.WeakMap && value instanceof realm.WeakMap) ||\n // weaksets\n (realm.WeakSet && value instanceof realm.WeakSet)) {\n return value;\n }\n // assume anything left is a custom constructor\n return getObjectClone(value, realm, handleCopy, cache);\n };\n return handleCopy(value, createCache());\n }\n // Adding reference to allow usage in CommonJS libraries compiled using TSC, which\n // expects there to be a default property on the exported value. See\n // [#37](https://github.com/planttheidea/fast-copy/issues/37) for details.\n copy.default = copy;\n /**\n * @function strictCopy\n *\n * @description\n * copy the value with `strict` option pre-applied\n *\n * @param value the value to copy\n * @param [options] the options for copying with\n * @param [options.realm] the realm (this) value the value is copied from\n * @returns the copied value\n */\n copy.strict = function strictCopy(value, options) {\n return copy(value, {\n isStrict: true,\n realm: options ? options.realm : void 0,\n });\n };\n\n return copy;\n\n}));\n//# sourceMappingURL=fast-copy.js.map\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('has');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar test = {\n\tfoo: {}\n};\n\nvar $Object = Object;\n\nmodule.exports = function hasProto() {\n\treturn { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) ||\n objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return (typeof Ctor == 'function' &&\n Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);\n}\n\nmodule.exports = isPlainObject;\n","/**\n * lodash 4.0.1 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","'use strict';\n\nclass AbortError extends Error {\n\tconstructor() {\n\t\tsuper('Throttled function aborted');\n\t\tthis.name = 'AbortError';\n\t}\n}\n\nconst pThrottle = ({limit, interval, strict}) => {\n\tif (!Number.isFinite(limit)) {\n\t\tthrow new TypeError('Expected `limit` to be a finite number');\n\t}\n\n\tif (!Number.isFinite(interval)) {\n\t\tthrow new TypeError('Expected `interval` to be a finite number');\n\t}\n\n\tconst queue = new Map();\n\n\tlet currentTick = 0;\n\tlet activeCount = 0;\n\n\tfunction windowedDelay() {\n\t\tconst now = Date.now();\n\n\t\tif ((now - currentTick) > interval) {\n\t\t\tactiveCount = 1;\n\t\t\tcurrentTick = now;\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (activeCount < limit) {\n\t\t\tactiveCount++;\n\t\t} else {\n\t\t\tcurrentTick += interval;\n\t\t\tactiveCount = 1;\n\t\t}\n\n\t\treturn currentTick - now;\n\t}\n\n\tconst strictTicks = [];\n\n\tfunction strictDelay() {\n\t\tconst now = Date.now();\n\n\t\tif (strictTicks.length < limit) {\n\t\t\tstrictTicks.push(now);\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst earliestTime = strictTicks.shift() + interval;\n\n\t\tif (now >= earliestTime) {\n\t\t\tstrictTicks.push(now);\n\t\t\treturn 0;\n\t\t}\n\n\t\tstrictTicks.push(earliestTime);\n\t\treturn earliestTime - now;\n\t}\n\n\tconst getDelay = strict ? strictDelay : windowedDelay;\n\n\treturn function_ => {\n\t\tconst throttled = function (...args) {\n\t\t\tif (!throttled.isEnabled) {\n\t\t\t\treturn (async () => function_.apply(this, args))();\n\t\t\t}\n\n\t\t\tlet timeout;\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tconst execute = () => {\n\t\t\t\t\tresolve(function_.apply(this, args));\n\t\t\t\t\tqueue.delete(timeout);\n\t\t\t\t};\n\n\t\t\t\ttimeout = setTimeout(execute, getDelay());\n\n\t\t\t\tqueue.set(timeout, reject);\n\t\t\t});\n\t\t};\n\n\t\tthrottled.abort = () => {\n\t\t\tfor (const timeout of queue.keys()) {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tqueue.get(timeout)(new AbortError());\n\t\t\t}\n\n\t\t\tqueue.clear();\n\t\t\tstrictTicks.splice(0, strictTicks.length);\n\t\t};\n\n\t\tthrottled.isEnabled = true;\n\n\t\treturn throttled;\n\t};\n};\n\nmodule.exports = pThrottle;\nmodule.exports.AbortError = AbortError;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","/* (ignored) */","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","export const VERSION = \"1.6.8\";","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","var toStringFunction = Function.prototype.toString;\nvar create = Object.create;\nvar toStringObject = Object.prototype.toString;\n/**\n * @classdesc Fallback cache for when WeakMap is not natively supported\n */\nvar LegacyCache = /** @class */ (function () {\n function LegacyCache() {\n this._keys = [];\n this._values = [];\n }\n LegacyCache.prototype.has = function (key) {\n return !!~this._keys.indexOf(key);\n };\n LegacyCache.prototype.get = function (key) {\n return this._values[this._keys.indexOf(key)];\n };\n LegacyCache.prototype.set = function (key, value) {\n this._keys.push(key);\n this._values.push(value);\n };\n return LegacyCache;\n}());\nfunction createCacheLegacy() {\n return new LegacyCache();\n}\nfunction createCacheModern() {\n return new WeakMap();\n}\n/**\n * Get a new cache object to prevent circular references.\n */\nvar createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;\n/**\n * Get an empty version of the object with the same prototype it has.\n */\nfunction getCleanClone(prototype) {\n if (!prototype) {\n return create(null);\n }\n var Constructor = prototype.constructor;\n if (Constructor === Object) {\n return prototype === Object.prototype ? {} : create(prototype);\n }\n if (Constructor &&\n ~toStringFunction.call(Constructor).indexOf('[native code]')) {\n try {\n return new Constructor();\n }\n catch (_a) { }\n }\n return create(prototype);\n}\nfunction getRegExpFlagsLegacy(regExp) {\n var flags = '';\n if (regExp.global) {\n flags += 'g';\n }\n if (regExp.ignoreCase) {\n flags += 'i';\n }\n if (regExp.multiline) {\n flags += 'm';\n }\n if (regExp.unicode) {\n flags += 'u';\n }\n if (regExp.sticky) {\n flags += 'y';\n }\n return flags;\n}\nfunction getRegExpFlagsModern(regExp) {\n return regExp.flags;\n}\n/**\n * Get the flags to apply to the copied regexp.\n */\nvar getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;\nfunction getTagLegacy(value) {\n var type = toStringObject.call(value);\n return type.substring(8, type.length - 1);\n}\nfunction getTagModern(value) {\n return value[Symbol.toStringTag] || getTagLegacy(value);\n}\n/**\n * Get the tag of the value passed, so that the correct copier can be used.\n */\nvar getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;\n\nvar defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;\nvar SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';\nfunction getStrictPropertiesModern(object) {\n return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));\n}\n/**\n * Get the properites used when copying objects strictly. This includes both keys and symbols.\n */\nvar getStrictProperties = SUPPORTS_SYMBOL\n ? getStrictPropertiesModern\n : getOwnPropertyNames;\n/**\n * Striclty copy all properties contained on the object.\n */\nfunction copyOwnPropertiesStrict(value, clone, state) {\n var properties = getStrictProperties(value);\n for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {\n property = properties[index];\n if (property === 'callee' || property === 'caller') {\n continue;\n }\n descriptor = getOwnPropertyDescriptor(value, property);\n if (!descriptor) {\n // In extra edge cases where the property descriptor cannot be retrived, fall back to\n // the loose assignment.\n clone[property] = state.copier(value[property], state);\n continue;\n }\n // Only clone the value if actually a value, not a getter / setter.\n if (!descriptor.get && !descriptor.set) {\n descriptor.value = state.copier(descriptor.value, state);\n }\n try {\n defineProperty(clone, property, descriptor);\n }\n catch (error) {\n // Tee above can fail on node in edge cases, so fall back to the loose assignment.\n clone[property] = descriptor.value;\n }\n }\n return clone;\n}\n/**\n * Deeply copy the indexed values in the array.\n */\nfunction copyArrayLoose(array, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n for (var index = 0, length_2 = array.length; index < length_2; ++index) {\n clone[index] = state.copier(array[index], state);\n }\n return clone;\n}\n/**\n * Deeply copy the indexed values in the array, as well as any custom properties.\n */\nfunction copyArrayStrict(array, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n return copyOwnPropertiesStrict(array, clone, state);\n}\n/**\n * Copy the contents of the ArrayBuffer.\n */\nfunction copyArrayBuffer(arrayBuffer, _state) {\n return arrayBuffer.slice(0);\n}\n/**\n * Create a new Blob with the contents of the original.\n */\nfunction copyBlob(blob, _state) {\n return blob.slice(0, blob.size, blob.type);\n}\n/**\n * Create a new DataView with the contents of the original.\n */\nfunction copyDataView(dataView, state) {\n return new state.Constructor(copyArrayBuffer(dataView.buffer));\n}\n/**\n * Create a new Date based on the time of the original.\n */\nfunction copyDate(date, state) {\n return new state.Constructor(date.getTime());\n}\n/**\n * Deeply copy the keys and values of the original.\n */\nfunction copyMapLoose(map, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(map, clone);\n map.forEach(function (value, key) {\n clone.set(key, state.copier(value, state));\n });\n return clone;\n}\n/**\n * Deeply copy the keys and values of the original, as well as any custom properties.\n */\nfunction copyMapStrict(map, state) {\n return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);\n}\nfunction copyObjectLooseLegacy(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n return clone;\n}\nfunction copyObjectLooseModern(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n var symbols = getOwnPropertySymbols(object);\n for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {\n symbol = symbols[index];\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = state.copier(object[symbol], state);\n }\n }\n return clone;\n}\n/**\n * Deeply copy the properties (keys and symbols) and values of the original.\n */\nvar copyObjectLoose = SUPPORTS_SYMBOL\n ? copyObjectLooseModern\n : copyObjectLooseLegacy;\n/**\n * Deeply copy the properties (keys and symbols) and values of the original, as well\n * as any hidden or non-enumerable properties.\n */\nfunction copyObjectStrict(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n return copyOwnPropertiesStrict(object, clone, state);\n}\n/**\n * Create a new primitive wrapper from the value of the original.\n */\nfunction copyPrimitiveWrapper(primitiveObject, state) {\n return new state.Constructor(primitiveObject.valueOf());\n}\n/**\n * Create a new RegExp based on the value and flags of the original.\n */\nfunction copyRegExp(regExp, state) {\n var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));\n clone.lastIndex = regExp.lastIndex;\n return clone;\n}\n/**\n * Return the original value (an identity function).\n *\n * @note\n * THis is used for objects that cannot be copied, such as WeakMap.\n */\nfunction copySelf(value, _state) {\n return value;\n}\n/**\n * Deeply copy the values of the original.\n */\nfunction copySetLoose(set, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(set, clone);\n set.forEach(function (value) {\n clone.add(state.copier(value, state));\n });\n return clone;\n}\n/**\n * Deeply copy the values of the original, as well as any custom properties.\n */\nfunction copySetStrict(set, state) {\n return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);\n}\n\nvar isArray = Array.isArray;\nvar assign = Object.assign;\nvar getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; });\nvar DEFAULT_LOOSE_OPTIONS = {\n array: copyArrayLoose,\n arrayBuffer: copyArrayBuffer,\n blob: copyBlob,\n dataView: copyDataView,\n date: copyDate,\n error: copySelf,\n map: copyMapLoose,\n object: copyObjectLoose,\n regExp: copyRegExp,\n set: copySetLoose,\n};\nvar DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {\n array: copyArrayStrict,\n map: copyMapStrict,\n object: copyObjectStrict,\n set: copySetStrict,\n});\n/**\n * Get the copiers used for each specific object tag.\n */\nfunction getTagSpecificCopiers(options) {\n return {\n Arguments: options.object,\n Array: options.array,\n ArrayBuffer: options.arrayBuffer,\n Blob: options.blob,\n Boolean: copyPrimitiveWrapper,\n DataView: options.dataView,\n Date: options.date,\n Error: options.error,\n Float32Array: options.arrayBuffer,\n Float64Array: options.arrayBuffer,\n Int8Array: options.arrayBuffer,\n Int16Array: options.arrayBuffer,\n Int32Array: options.arrayBuffer,\n Map: options.map,\n Number: copyPrimitiveWrapper,\n Object: options.object,\n Promise: copySelf,\n RegExp: options.regExp,\n Set: options.set,\n String: copyPrimitiveWrapper,\n WeakMap: copySelf,\n WeakSet: copySelf,\n Uint8Array: options.arrayBuffer,\n Uint8ClampedArray: options.arrayBuffer,\n Uint16Array: options.arrayBuffer,\n Uint32Array: options.arrayBuffer,\n Uint64Array: options.arrayBuffer,\n };\n}\n/**\n * Create a custom copier based on the object-specific copy methods passed.\n */\nfunction createCopier(options) {\n var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);\n var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);\n var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;\n function copier(value, state) {\n state.prototype = state.Constructor = undefined;\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (state.cache.has(value)) {\n return state.cache.get(value);\n }\n state.prototype = getPrototypeOf(value);\n state.Constructor = state.prototype && state.prototype.constructor;\n // plain objects\n if (!state.Constructor || state.Constructor === Object) {\n return object(value, state);\n }\n // arrays\n if (isArray(value)) {\n return array(value, state);\n }\n var tagSpecificCopier = tagSpecificCopiers[getTag(value)];\n if (tagSpecificCopier) {\n return tagSpecificCopier(value, state);\n }\n return typeof value.then === 'function' ? value : object(value, state);\n }\n return function copy(value) {\n return copier(value, {\n Constructor: undefined,\n cache: createCache(),\n copier: copier,\n prototype: undefined,\n });\n };\n}\n/**\n * Create a custom copier based on the object-specific copy methods passed, defaulting to the\n * same internals as `copyStrict`.\n */\nfunction createStrictCopier(options) {\n return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));\n}\n/**\n * Copy an value deeply as much as possible, where strict recreation of object properties\n * are maintained. All properties (including non-enumerable ones) are copied with their\n * original property descriptors on both objects and arrays.\n */\nvar copyStrict = createStrictCopier({});\n/**\n * Copy an value deeply as much as possible.\n */\nvar index = createCopier({});\n\nexport { copyStrict, createCopier, createStrictCopier, index as default };\n//# sourceMappingURL=index.mjs.map\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Contentful Management API SDK. Allows you to create instances of a client\n * with access to the Contentful Content Management API.\n * @packageDocumentation\n */\n\nimport { getUserAgentHeader } from 'contentful-sdk-core'\nimport type { RestAdapterParams } from './adapters/REST/rest-adapter'\nimport type { MakeRequest, XOR } from './common-types'\nimport { AdapterParams, createAdapter } from './create-adapter'\nimport createContentfulApi, { ClientAPI } from './create-contentful-api'\nimport type { PlainClientAPI } from './plain/common-types'\nimport type { DefaultParams } from './plain/plain-client'\nimport { createPlainClient } from './plain/plain-client'\nimport * as editorInterfaceDefaults from './constants/editor-interface-defaults'\n\nexport type { ClientAPI } from './create-contentful-api'\nexport { asIterator } from './plain/as-iterator'\nexport { isDraft, isPublished, isUpdated } from './plain/checks'\nexport type { PlainClientAPI } from './plain/common-types'\nexport { createClient }\nexport { RestAdapter } from './adapters/REST/rest-adapter'\nexport { editorInterfaceDefaults }\nexport type PlainClientDefaultParams = DefaultParams\nexport * from './export-types'\n\ninterface UserAgentParams {\n /**\n * Application name and version e.g myApp/version\n */\n application?: string\n /**\n * Integration name and version e.g react/version\n */\n integration?: string\n\n feature?: string\n}\n\n/**\n * @deprecated\n */\nexport type ClientParams = RestAdapterParams & UserAgentParams\ntype ClientOptions = UserAgentParams & XOR\n\n/**\n * Create a client instance\n * @param params - Client initialization parameters\n *\n * ```javascript\n * const client = contentfulManagement.createClient({\n * accessToken: 'myAccessToken'\n * })\n * ```\n */\nfunction createClient(params: ClientOptions): ClientAPI\nfunction createClient(\n params: ClientOptions,\n opts: {\n type: 'plain'\n defaults?: DefaultParams\n }\n): PlainClientAPI\n// Usually, overloads with more specific signatures should come first but some IDEs are often not able to handle overloads with separate TSDocs correctly\n/**\n * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option.\n */\nfunction createClient(\n params: ClientOptions,\n opts: {\n type?: 'plain'\n alphaFeatures: string[]\n defaults?: DefaultParams\n }\n): ClientAPI | PlainClientAPI\nfunction createClient(\n params: ClientOptions,\n opts: {\n type?: 'plain'\n defaults?: DefaultParams\n } = {}\n): ClientAPI | PlainClientAPI {\n const sdkMain =\n opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js'\n const userAgent = getUserAgentHeader(\n // @ts-expect-error\n `${sdkMain}/${__VERSION__}`,\n params.application,\n params.integration,\n params.feature\n )\n\n const adapter = createAdapter({ ...params, userAgent })\n\n // Parameters and ReturnType only return the types of the last overload\n // https://github.com/microsoft/TypeScript/issues/26591\n // @ts-expect-error\n const makeRequest: MakeRequest = (options: Parameters[0]): ReturnType =>\n adapter.makeRequest({ ...options, userAgent })\n\n if (opts.type === 'plain') {\n return createPlainClient(makeRequest, opts.defaults)\n } else {\n return createContentfulApi(makeRequest) as ClientAPI\n }\n}\n"],"names":["raw","get","http","params","concat","tokenId","getMany","query","createPersonalAccessToken","_params","rawData","headers","post","revoke","put","getManyForOrganization","organizationId","copy","spaceId","apiKeyId","create","data","createWithId","update","_rawData$sys$version","accessToken","preview_api_key","policies","sys","_objectSpread","version","del","environmentId","appDefinitionId","undefined","Authorization","jwt","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","_catch","delegateYield","asyncGeneratorStep","gen","reject","_next","_throw","key","info","error","_asyncToGenerator","fn","self","args","arguments","apply","err","isSuccessful","shouldRePoll","waitFor","appActionId","getCallDetails","callId","APP_ACTION_CALL_RETRY_INTERVAL","APP_ACTION_CALL_RETRIES","callAppActionResult","_x","_x2","_x3","_callAppActionResult","_callee3","_ref","checkCount","retryInterval","retries","_callee3$","_context3","poll","_ref3","_callee2","_result$response","_result$response2","result","_error","_callee2$","_context2","response","statusCode","t0","createWithResponse","_ref2","_callee","createResponse","_callee$","_context","id","_x4","_x5","_x6","normalizeSelect","getBaseUrl","getAppActionUrl","getAppActionsEnvUrl","getManyForEnvironment","getAppBundleUrl","appBundleId","payload","appUploadId","comment","actions","functions","upload","linkType","normalizeSpaceId","getAppDefinitionUrl","getBaseUrlForOrgInstallations","getInstallationsForOrg","upsert","getAppInstallationUrl","acceptAllTerms","getForOrganization","fingerprint","getUploadHttpClient","getAppUploadUrl","httpUpload","file","ASSET_KEY_MAX_LIFETIME","ValidationError","_Error","message","_this","_classCallCheck","_callSuper","_inherits","_createClass","_wrapNativeSuper","validateTimestamp","timestamp","options","maximum","now","expiresAt","Math","floor","Date","currentMaxLifetime","postParams","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","_defineProperty","getOwnPropertyDescriptors","defineProperties","obj","_toPropertyKey","_toPrimitive","toPrimitive","String","Number","errorHandler","createUpload","assetId","getPublished","publish","_rawData$sys$version2","unpublish","archive","unarchive","createFromFiles","uploadTimeout","fields","all","map","locale","_file$locale","contentType","fileName","uploadFrom","uploads","reduce","fieldsData","asset","ASSET_PROCESSING_CHECK_WAIT","ASSET_PROCESSING_CHECK_RETRIES","checkIfAssetHasUrl","_x7","_checkIfAssetHasUrl","_callee5","_ref4","_ref4$processingCheck","processingCheckWait","_ref4$processingCheck2","processingCheckRetries","_ref4$checkCount","_callee5$","_context5","url","setTimeout","processForLocale","_ref6","_ref5","_ref5$options","_ref5$options2","_objectWithoutProperties","_excluded","_x8","_x9","processForAllLocales","_ref8","_callee4","_ref7","_ref7$options","locales","mostUpToDateAssetVersion","allProcessingLocales","_callee4$","_context4","_excluded2","_x10","_x11","bulkActionId","validate","VERSION_HEADER","BODY_FORMAT_HEADER","PARENT_ENTITY_REFERENCE_HEADER","PARENT_COMMENT_ID_HEADER","getSpaceEnvBaseUrl","getEntityCommentUrl","getEntityBaseUrl","commentId","getParentPlural","parentEntityType","paramsOrg","parentEntityId","entryId","parentPlural","versionPath","parentEntityVersion","bodyFormat","body","parentEntityReference","parentCommentId","getAll","getContentTypeUrl","contentTypeId","patch","references","include","level","getEnvironmentAliasUrl","environmentAliasId","apiPath","_len","pathSegments","Array","_key","join","environmentTemplateId","paginationProps","getForEnvironment","installationId","_ref$query","_ref2$query","_payload$sys$version","versionUpdate","versions","_ref7$query","install","_ref9","disconnect","_ref10","sourceEnvironmentId","getExtensionUrl","extensionId","config","request","ApiKey","AppAction","AppActionCall","AppBundle","AppDefinition","AppDetails","AppInstallation","AppSignedRequest","AppSigningSecret","AppEventSubscription","AppKey","AppAccessToken","AppUpload","Asset","AssetKey","BulkAction","Comment","ContentType","EditorInterface","Entry","Environment","EnvironmentAlias","EnvironmentTemplate","EnvironmentTemplateInstallation","Extension","Http","Locale","Organization","OrganizationInvitation","OrganizationMembership","PersonalAccessToken","AccessToken","PreviewApiKey","Release","ReleaseAction","Role","ScheduledAction","Snapshot","Space","SpaceMember","SpaceMembership","Tag","Task","Team","TeamMembership","TeamSpaceMembership","UIConfig","Upload","Usage","User","UserUIConfig","Webhook","Workflow","WorkflowDefinition","WorkflowsChangelog","localeId","default","OrganizationUserManagementAlphaHeaders","InvitationAlphaHeaders","invitationId","getEntityUrl","organizationMembershipId","role","limit","org","items","find","JSON","stringify","status","statusText","previewApiKeyId","_http$defaults$baseUR","defaults","baseURL","split","delete","releaseId","actionId","queryForRelease","roleId","scheduledActionId","_data$environment","environment","getBaseEntryUrl","getEntryUrl","snapshotId","getManyForEntry","getForEntry","getBaseContentTypeUrl","getManyForContentType","getForContentType","spaceMemberId","spaceMembershipDeprecationWarning","console","warn","spaceMembershipId","getTagUrl","tagId","_rawData$sys$visibili","visibility","getTaskUrl","taskId","teamId","teamMembershipId","getManyForTeam","teamSpaceMembershipId","team","getManyForSpace","getUrl","getBaseUploadUrl","spacePath","environmentPath","path","getEntityUploadUrl","uploadId","getForSpace","userId","getCurrent","select","test","rest","getWebhookCallBaseUrl","getWebhookUrl","webhookDefinitionId","getWebhookCallUrl","getWebhookCallDetailsUrl","getWebhookHealthUrl","getWebhookSettingsUrl","getWebhookSigningSecretUrl","getWebhookRetryPolicyUrl","getManyCallDetails","getHealthStatus","getSigningSecret","getRetryPolicy","upsertSigningSecret","upsertRetryPolicy","deleteSigningSecret","_x12","deleteRetryPolicy","_x13","_x14","getWorkflowDefinitionUrl","workflowDefinitionId","getWorkflowUrl","workflowId","completeWorkflowUrl","instance","Constructor","_defineProperties","target","props","descriptor","protoProps","staticProps","axios","createHttpClient","endpoints","defaultHostParameters","defaultHostname","defaultHostnameUpload","RestAdapter","axiosInstance","userAgent","_makeRequest","_endpoints$entityType","entityType","actionInput","action","endpoint","makeRequest","ScheduledActionReferenceFilters","toPlainObject","wrapCollection","collectionData","entity","wrapCursorPaginatedCollection","_len2","_key2","includes","_waitFor","ms","_args","in_","DROPDOWN_TYPES","INTERNAL_TO_API","Text","RichText","Integer","Boolean","Location","File","Resource","Symbols","Entries","Assets","Resources","FIELD_TYPES","toInternalFieldType","api","internalApi","stripped","DEFAULTS_WIDGET","widgetId","DEFAULTS_SETTINGS","falseLabel","helpText","trueLabel","ampm","format","showCreateEntityAction","showLinkEntityAction","bulkEditing","getDefaultWidget","field","fieldId","defaultWidget","settings","widgetNamespace","toApiFieldType","internal","getDefaultControlOfField","fieldType","hasInValidation","validations","widgetNameSpace","DEFAULT_EDITOR_ID","WidgetNamespace","EntryEditorWidgetTypes","DEFAULT_EDITOR","icon","REFERENCE_TREE","TAGS_EDITOR","DefaultEntryEditor","EDITOR_BUILTIN","ReferencesEntryEditor","TagsEditor","EntryConfiguration","SidebarAssetConfiguration","SidebarEntryConfiguration","SidebarWidgetTypes","USERS","CONTENT_PREVIEW","TRANSLATION","INCOMING_LINKS","PUBLICATION","RELEASES","VERSIONS","INFO_PANEL","JOBS","COMMENTS_PANEL","Publication","SIDEBAR_BUILTIN","description","Releases","ContentPreview","Links","Translation","Versions","Users","object","createAdapter","apiAdapter","entities","wrapAppDefinition","createAppDefinitionApi","_entities$appBundle","appBundle","wrapAppBundle","wrapAppBundleCollection","getParams","organization","getAppBundle","getAppBundles","createAppBundle","createRequestConfig","createClientApi","_entities$space","space","wrapSpace","wrapSpaceCollection","wrapUser","user","_entities$personalAcc","personalAccessToken","wrapPersonalAccessToken","wrapPersonalAccessTokenCollection","_entities$accessToken","wrapAccessToken","wrapAccessTokenCollection","_entities$organizatio","wrapOrganization","wrapOrganizationCollection","wrapUsageCollection","usage","appDefinition","_entities$environment","environmentTemplate","wrapEnvironmentTemplate","wrapEnvironmentTemplateCollection","getEnvironmentTemplates","getEnvironmentTemplate","createEnvironmentTemplate","environmentTemplateData","getSpaces","getSpace","createSpace","spaceData","getOrganization","getOrganizations","getCurrentUser","getAppDefinition","getPersonalAccessToken","getPersonalAccessTokens","getAccessToken","getAccessTokens","getOrganizationAccessTokens","getOrganizationUsage","getSpaceUsage","rawRequest","checks","createEntryApi","_entities$entry","entry","wrapEntry","wrapEntryCollection","_entities$snapshot","snapshot","wrapSnapshot","wrapSnapshotCollection","_entities$task","task","wrapTask","wrapTaskCollection","_entities$comment","wrapComment","wrapCommentCollection","_getParams","ops","_getParams2","_getParams3","_getParams4","_getParams5","_getParams6","_getParams7","getSnapshots","_getParams8","getSnapshot","_getParams9","createComment","_getParams10","getComments","_getParams11","getComment","_getParams12","createTask","_getParams13","getTasks","_getParams14","getTask","_getParams15","isPublished","isUpdated","isDraft","isArchived","wrapReleaseAction","wrapReleaseActionCollection","wrapRelease","wrapReleaseCollection","wrapTag","wrapTagCollection","wrapUIConfig","wrapUserUIConfig","wrapEnvironmentTemplateInstallationCollection","createEnvironmentApi","wrapEnvironment","_entities$contentType","wrapContentType","wrapContentTypeCollection","_entities$asset","wrapAsset","wrapAssetCollection","wrapAssetKey","assetKey","_entities$locale","wrapLocale","wrapLocaleCollection","_entities$editorInter","editorInterface","wrapEditorInterface","wrapEditorInterfaceCollection","wrapUpload","_entities$extension","extension","wrapExtension","wrapExtensionCollection","_entities$appInstalla","appInstallation","wrapAppInstallation","wrapAppInstallationCollection","wrapAppSignedRequest","appSignedRequest","wrapAppActionCall","appActionCall","wrapBulkAction","bulkAction","wrapAppAccessToken","appAccessToken","deleteEnvironment","updateEnvironment","getEntryFromData","entryData","getAssetFromData","assetData","getBulkAction","createPublishBulkAction","createValidateBulkAction","createUnpublishBulkAction","getContentType","getContentTypes","createContentType","createContentTypeWithId","getEditorInterfaceForContentType","getEditorInterfaces","getEntry","deleteEntry","getEntries","getPublishedEntries","createEntry","createEntryWithId","getEntryReferences","getAsset","getAssets","getPublishedAssets","createAsset","createAssetWithId","createAssetFromFiles","createAssetKey","getUpload","getLocale","getLocales","createLocale","getUiExtension","getUiExtensions","createUiExtension","createUiExtensionWithId","createAppInstallation","getAppInstallation","getAppInstallations","createAppActionCall","createAppSignedRequest","createAppAccessToken","getEntrySnapshots","getContentTypeSnapshots","createTag","getTags","getTag","getRelease","getReleases","createRelease","updateRelease","deleteRelease","publishRelease","unpublishRelease","validateRelease","archiveRelease","unarchiveRelease","getReleaseAction","getReleaseActions","getUIConfig","getUserUIConfig","_this2","getEnvironmentTemplateInstallations","_arguments","_this3","createEnvironmentTemplateApi","environmentTemplateInstallation","updateEnvironmentTemplate","updateVersion","updateEnvironmentTemplateVersion","versionName","versionDescription","deleteEnvironmentTemplate","getVersions","getEnvironmentTemplateVersions","getInstallations","validateEnvironmentTemplate","takeover","changeSet","installEnvironmentTemplate","installation","disconnectEnvironmentTemplate","createOrganizationApi","_entities$appDefiniti","wrapAppDefinitionCollection","_entities$user","wrapUserCollection","organizationMembership","wrapOrganizationMembership","wrapOrganizationMembershipCollection","_entities$teamMembers","teamMembership","wrapTeamMembership","wrapTeamMembershipCollection","_entities$teamSpaceMe","teamSpaceMembership","wrapTeamSpaceMembership","wrapTeamSpaceMembershipCollection","_entities$team","wrapTeam","wrapTeamCollection","_entities$spaceMember","spaceMembership","wrapSpaceMembership","wrapSpaceMembershipCollection","wrapOrganizationInvitation","organizationInvitation","wrapAppUpload","appUpload","wrapAppSigningSecret","appSigningSecret","wrapAppEventSubscription","appEventSubscription","_entities$appKey","appKey","wrapAppKey","wrapAppKeyCollection","wrapAppDetails","appDetails","_entities$appAction","appAction","wrapAppAction","wrapAppActionCollection","wrapRoleCollection","getUser","getUsers","getOrganizationMembership","getOrganizationMemberships","createTeam","getTeam","getTeams","createTeamMembership","getTeamMembership","getTeamMemberships","opts","_opts$query","getTeamSpaceMemberships","getTeamSpaceMembership","getOrganizationSpaceMembership","getOrganizationSpaceMemberships","getOrganizationInvitation","createOrganizationInvitation","getRoles","createAppDefinition","getAppDefinitions","getAppUpload","createAppUpload","upsertAppSigningSecret","getAppSigningSecret","deleteAppSigningSecret","upsertAppEventSubscription","getAppEventSubscription","deleteAppEventSubscription","createAppKey","getAppKey","getAppKeys","deleteAppKey","upsertAppDetails","getAppDetails","deleteAppDetails","createAppAction","updateAppAction","deleteAppAction","getAppAction","getAppActions","createSpaceApi","wrapEnvironmentCollection","_entities$webhook","webhook","wrapWebhook","wrapWebhookCollection","_entities$role","wrapRole","spaceMember","wrapSpaceMember","wrapSpaceMemberCollection","_entities$spaceMember2","_entities$apiKey","apiKey","wrapApiKey","wrapApiKeyCollection","_entities$environment2","environmentAlias","wrapEnvironmentAlias","wrapEnvironmentAliasCollection","_entities$previewApiK","previewApiKey","wrapPreviewApiKey","wrapPreviewApiKeyCollection","_entities$scheduledAc","scheduledAction","wrapScheduledAction","wrapScheduledActionCollection","deleteSpace","updateSpace","getEnvironment","getEnvironments","createEnvironment","createEnvironmentWithId","getWebhook","getWebhooks","getWebhookSigningSecret","getWebhookRetryPolicy","createWebhook","createWebhookWithId","upsertWebhookSigningSecret","upsertWebhookRetryPolicy","deleteWebhookSigningSecret","deleteWebhookRetryPolicy","getRole","createRole","createRoleWithId","roleData","getSpaceUser","getSpaceUsers","getSpaceMember","getSpaceMembers","getSpaceMembership","getSpaceMemberships","createSpaceMembership","createSpaceMembershipWithId","createTeamSpaceMembership","getApiKey","getApiKeys","getPreviewApiKeys","getPreviewApiKey","createApiKey","createApiKeyWithId","createEnvironmentAliasWithId","getEnvironmentAlias","getEnvironmentAliases","getScheduledActions","getScheduledAction","createScheduledAction","updateScheduledAction","spaceProps","deleteScheduledAction","createUIConfigApi","uiConfig","_update","createUserUIConfigApi","userUIConfig","enhanceWithMethods","baseObject","methodsObject","enhancedObject","methodName","freezeSys","accessTokenWithMethods","createApiKeyApi","_data$sys$space$sys$i","_data$sys$space","apiKeyWithMethods","createAppActionCallApi","retryOptions","parameters","recipient","message_body","wrapAppActionCallResponse","signedRequest","signedRequestWithMethods","appActionCallResponse","appActionCallResponseWithMethods","createAppActionApi","appActionWithMethods","createAppBundleApi","appBundleWithMethods","appDefinitionWithMethods","createAppDetailsApi","createEventSubscriptionApi","eventSubscription","createAppInstallationApi","appInstallationWithMethods","createKeyApi","createSigningSecretApi","signingSecret","createAppUploadApi","appUploadWithMethods","wrapAppUploadCollection","createAssetApi","assetWithMethods","pollAsyncActionStatus","BulkActionStatus","STATUSES","createBulkActionApi","waitProcessing","bulkActionWithApiMethods","CommentNode","createCommentApi","parentEntity","_delete2","_delete","commentWithMethods","omitAndDeleteField","createContentTypeApi","getEditorInterface","contentTypeWithMethods","createEditorInterfaceApi","getControlForField","controls","control","editorInterfaceWithMethods","entryWithMethods","createEnvironmentAliasApi","alias","enhancedAlias","EnvironmentTemplateInstallationStatuses","wrapEnvironmentTemplateInstallation","environmentTemplateApi","enhancedEnvironmentTemplate","environmentApi","enhancedEnvironment","createExtensionApi","extensionWithMethods","release","releaseAction","tag","workflowDefinition","createLocaleApi","internal_code","localeWithMethods","invitation","createOrganizationMembershipApi","organizationMembershipWithMethods","orgApi","enhancedOrganization","personalAccessTokenWithMethods","createPreviewApiKeyApi","previewApiKeyWithMethods","createReleaseActionApi","releaseActionWithApiMethods","ReleaseReferenceFilters","createReleaseApi","_this4","_this5","_this6","_callee6","_callee6$","_context6","_this7","_callee7","_callee7$","_context7","processingOptions","releaseWithApiMethods","createRoleApi","roleWithMethods","ScheduledActionStatus","getInstanceMethods","_scheduledAction$envi","_this2$toPlainObject","scheduledActionWithMethods","createSnapshotApi","snapshotWithMethods","createSpaceMembershipApi","spaceMembershipWithMethods","spaceApi","enhancedSpace","createTagApi","tagWithMethods","createTaskApi","taskWithMethods","createTeamMembershipApi","teamMembershipWithMethods","createTeamSpaceMembershipApi","teamSpaceMembershipWithMethods","createTeamApi","teamWithMethods","userWithMethods","createUploadApi","_del","uploadWithMethods","wrapUsage","usageWithMethods","createWebhookApi","getCalls","getCall","getHealth","webhookWithMethods","WorkflowStepPermissionType","WorkflowStepPermissionAction","WorkflowStepPermissionEffect","WorkflowStepActionType","createWorkflowDefinitionApi","wrapWorkflowDefinition","workflowDefinitionWithMethods","wrapWorkflowDefinitionCollection","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","_assertThisInitialized","ReferenceError","subClass","superClass","_setPrototypeOf","Class","_cache","Map","_isNativeFunction","has","set","Wrapper","_construct","bind","valueOf","Function","toString","indexOf","sleep","DEFAULT_MAX_RETRIES","DEFAULT_INITIAL_DELAY_MS","DEFAULT_RETRY_INTERVAL_MS","AsyncActionProcessingError","AsyncActionFailedError","_AsyncActionProcessin","_pollAsyncActionStatus","actionFunction","_options$retryCount","_options$retryInterva","_options$initialDelay","_options$throwOnFaile","_action","retryCount","maxRetries","retryIntervalMs","initialDelayMs","throwOnFailedExecution","findAndUpdateField","omitOrDelete","newContentType","durationMs","asIterator","currentResult","current","_yield$currentResult","_yield$currentResult$","total","_yield$currentResult$2","_yield$currentResult$3","skip","_yield$currentResult$4","endOfPage","endOfList","publishedVersion","archivedVersion","createPlainClient","wrapParams","getDefaultParams","function","scheduledActions","workflow","workflowsChangelog","httpClientParams","hostUpload","timeout","uploadHttp","cloneWithNewParams","host","getUserAgentHeader","createContentfulApi","editorInterfaceDefaults","createClient","sdkMain","application","integration","feature","adapter"],"sourceRoot":""} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/contentful-management.browser.min.js b/node_modules/contentful-management/dist/contentful-management.browser.min.js deleted file mode 100644 index 8bf4542a..00000000 --- a/node_modules/contentful-management/dist/contentful-management.browser.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see contentful-management.browser.min.js.LICENSE.txt */ -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={737:function(t,e,n){"use strict";var r=n(750),o=n(573),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},573:function(t,e,n){"use strict";var r=n(132),o=n(750),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var e=c(r,a,arguments);return u&&s&&u(e,"length").configurable&&s(e,"length",{value:1+p(0,t.length-(arguments.length-1))}),e};var f=function(){return c(r,i,arguments)};s?s(t.exports,"apply",{value:f}):t.exports.apply=f},254:function(t,e,n){t.exports=function(){"use strict";var t=Function.prototype.toString,e=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,u=Object.prototype,s=u.hasOwnProperty,p=u.propertyIsEnumerable,f="function"==typeof a,l="function"==typeof WeakMap,y=function(){if(l)return function(){return new WeakMap};var t=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(t){return!!~this._keys.indexOf(t)},t.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},t.prototype.set=function(t,e){this._keys.push(t),this._values.push(e)},t}();return function(){return new t}}(),d=function(n,r){var o=n.__proto__||c(n);if(!o)return e(null);var i=o.constructor;if(i===r.Object)return o===r.Object.prototype?{}:e(o);if(~t.call(i).indexOf("[native code]"))try{return new i}catch(t){}return e(o)},h=function(t,e,n,r){var o=d(t,e);for(var i in r.set(t,o),t)s.call(t,i)&&(o[i]=n(t[i],r));if(f)for(var c=a(t),u=0,l=c.length,y=void 0;u-1?t.split(","):t},s=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,p=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;p.push(s)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f=0;--i){var a,c=t[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(s,10);n.parseArrays||""!==s?!isNaN(p)&&c!==s&&String(p)===s&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(a=[])[p]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(p,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var n,s={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,f),y=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(s,h)?s[h]=r.combine(s[h],v):s[h]=v}return s}(t,n):t,f=n.plainObjects?Object.create(null):{},l=Object.keys(p),y=0;y0?I.join(",")||null:void 0}];else if(u(l))x=l;else{var L=Object.keys(I);x=h?L.sort(h):L}for(var _=a&&u(I)&&1===I.length?n+"[]":n,D=0;D0?O+w:""}},634:function(t,e,n){"use strict";var r=n(137),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===r.RFC1738&&(40===p||41===p)?u+=c.charAt(s):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(s+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(s)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return I(t,T,(function(t,e,n,o){r[r.length]=n?I(o,A,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",i=x("%"+r+"%",e),c=i.name,s=i.value,p=!1,f=i.alias;f&&(r=f[0],P(n,j([0,1],f)));for(var l=1,y=!0;l=n.length){var b=u(s,d);s=(y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[d]}else y=O(s,d),s=s[d];y&&!p&&(v[c]=s)}}return s}},574:function(t){"use strict";var e={foo:{}},n=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof n)}},679:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(186);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},186:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},492:function(t,e,n){"use strict";var r=n(132);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},261:function(t){var e,n,r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,c=i.call(Object),u=o.toString,s=(e=Object.getPrototypeOf,n=Object,function(t){return e(n(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=u.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=s(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&i.call(n)==c}},451:function(t){var e=Object.prototype.toString,n=Array.isArray;t.exports=function(t){return"string"==typeof t||!n(t)&&function(t){return!!t&&"object"==typeof t}(t)&&"[object String]"==e.call(t)}},524:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=c&&u&&"function"==typeof u.get?u.get:null,p=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,j=RegExp.prototype.test,P=Array.prototype.concat,I=Array.prototype.join,S=Array.prototype.slice,E=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-E(-t):E(t);if(r!==t){var o=String(r),i=b.call(e,o.length+1);return g.call(o,n,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(e,n,"$&_")}var C=n(553),F=C.custom,R=B(F)?F:null;function N(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function z(t){return g.call(String(t),/"/g,""")}function U(t){return!("[object Array]"!==K(t)||L&&"object"==typeof t&&L in t)}function q(t){return!("[object RegExp]"!==K(t)||L&&"object"==typeof t&&L in t)}function B(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!x)return!1;try{return x.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var c=n||{};if(G(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!G(c,"customInspect")||c.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?M(e,w):w}if("bigint"==typeof e){var j=String(e)+"n";return h?M(e,j):j}var E=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=E&&E>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var A,F=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=I.call(Array(t.indent+1)," ")}return{base:n,prev:I.call(Array(e+1),n)}}(c,r);if(void 0===o)o=[];else if(V(o,e)>=0)return"[Circular]";function W(e,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:c.depth};return G(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,r+1,o)}return t(e,c,r+1,o)}if("function"==typeof e&&!q(e)){var X=function(t){if(t.name)return t.name;var e=m.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Z(e,W);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(tt.length>0?" { "+I.call(tt,", ")+" }":"")}if(B(e)){var et=k?g.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(e);return"object"!=typeof e||k?et:Y(et)}if((A=e)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var nt="<"+O.call(String(e.nodeName)),rt=e.attributes||[],ot=0;ot"}if(U(e)){if(0===e.length)return"[]";var it=Z(e,W);return F&&!function(t){for(var e=0;e=0)return!1;return!0}(it)?"["+Q(it,F)+"]":"[ "+I.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==K(t)||L&&"object"==typeof t&&L in t)}(e)){var at=Z(e,W);return"cause"in Error.prototype||!("cause"in e)||_.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+I.call(at,", ")+" }":"{ ["+String(e)+"] "+I.call(P.call("[cause]: "+W(e.cause),at),", ")+" }"}if("object"==typeof e&&u){if(R&&"function"==typeof e[R]&&C)return C(e,{depth:E-r});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return a&&a.call(e,(function(t,n){ct.push(W(n,e,!0)+" => "+W(t,e))})),J("Map",i.call(e),ct,F)}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return p&&p.call(e,(function(t){ut.push(W(t,e))})),J("Set",s.call(e),ut,F)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return $("WeakMap");if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return $("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==K(t)||L&&"object"==typeof t&&L in t)}(e))return Y(W(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return Y(W(T.call(e)));if(function(t){return!("[object Boolean]"!==K(t)||L&&"object"==typeof t&&L in t)}(e))return Y(d.call(e));if(function(t){return!("[object String]"!==K(t)||L&&"object"==typeof t&&L in t)}(e))return Y(W(String(e)));if(!function(t){return!("[object Date]"!==K(t)||L&&"object"==typeof t&&L in t)}(e)&&!q(e)){var st=Z(e,W),pt=D?D(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",lt=!pt&&L&&Object(e)===e&&L in e?b.call(K(e),8,-1):ft?"Object":"",yt=(pt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(lt||ft?"["+I.call(P.call([],lt||[],ft||[]),": ")+"] ":"");return 0===st.length?yt+"{}":F?yt+"{"+Q(st,F)+"}":yt+"{ "+I.call(st,", ")+" }"}return String(e)};var W=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return W.call(t,e)}function K(t){return h.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return H(b.call(t,0,e.maxStringLength),e)+r}return N(g.call(g.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",e)}function X(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Y(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function J(t,e,n,r){return t+" ("+e+") {"+(r?Q(n,r):I.call(n,", "))+"}"}function Q(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+I.call(t,","+n)+"\n"+e.prev}function Z(t,e){var n=U(t),r=[];if(n){r.length=t.length;for(var o=0;o{if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,a=0;const c=[],u=r?function(){const e=Date.now();if(c.length=r?(c.push(e),0):(c.push(r),r-e)}:function(){const e=Date.now();return e-i>n?(a=1,i=e,0):(a{const n=function(...e){if(!n.isEnabled)return(async()=>t.apply(this,e))();let r;return new Promise(((n,i)=>{r=setTimeout((()=>{n(t.apply(this,e)),o.delete(r)}),u()),o.set(r,i)}))};return n.abort=()=>{for(const t of o.keys())clearTimeout(t),o.get(t)(new e);o.clear(),c.splice(0,c.length)},n.isEnabled=!0,n}},t.exports.AbortError=e},337:function(t,e,n){"use strict";var r=n(750),o=n(737),i=n(524),a=r("%TypeError%"),c=r("%WeakMap%",!0),u=r("%Map%",!0),s=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),l=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),h=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(u){if(e)return l(e,r)}else if(n)return function(t,e){var n=h(t,e);return n&&n.value}(n,r)},has:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){return!!h(t,e)}(n,r);return!1},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),p(t,r,o)):u?(e||(e=new u),y(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=h(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},553:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{RestAdapter:function(){return ay},ScheduledActionReferenceFilters:function(){return Yd},WorkflowStepPermissionAction:function(){return Hv},WorkflowStepPermissionEffect:function(){return Xv},WorkflowStepPermissionType:function(){return Vv},asIterator:function(){return Um},createClient:function(){return Gm},editorInterfaceDefaults:function(){return ne},isDraft:function(){return Cy},isPublished:function(){return Dy},isUpdated:function(){return My}});var t={};n.r(t),n.d(t,{hasBrowserEnv:function(){return _n},hasStandardBrowserEnv:function(){return Dn},hasStandardBrowserWebWorkerEnv:function(){return Cn}});var e={};n.r(e),n.d(e,{create:function(){return ho},createWithId:function(){return vo},del:function(){return bo},get:function(){return lo},getMany:function(){return yo},update:function(){return mo}});var o={};n.r(o),n.d(o,{create:function(){return Lo},del:function(){return ko},get:function(){return To},getMany:function(){return Ao},getManyForEnvironment:function(){return xo},update:function(){return _o}});var i={};n.r(i),n.d(i,{create:function(){return Ho},createWithResponse:function(){return Zo},getCallDetails:function(){return Xo}});var a={};n.r(a),n.d(a,{create:function(){return ii},del:function(){return oi},get:function(){return ni},getMany:function(){return ri}});var c={};n.r(c),n.d(c,{create:function(){return yi},del:function(){return hi},get:function(){return fi},getAppDefinitionUrl:function(){return pi},getInstallationsForOrg:function(){return vi},getMany:function(){return li},update:function(){return di}});var u={};n.r(u),n.d(u,{del:function(){return gi},get:function(){return mi},upsert:function(){return bi}});var s={};n.r(s),n.d(s,{del:function(){return Ai},get:function(){return Si},getAppInstallationUrl:function(){return Ii},getForOrganization:function(){return xi},getMany:function(){return Ei},upsert:function(){return Ti}});var p={};n.r(p),n.d(p,{create:function(){return ki}});var f={};n.r(f),n.d(f,{del:function(){return Di},get:function(){return Li},upsert:function(){return _i}});var l={};n.r(l),n.d(l,{del:function(){return Fi},get:function(){return Mi},upsert:function(){return Ci}});var y={};n.r(y),n.d(y,{create:function(){return zi},del:function(){return Ui},get:function(){return Ri},getMany:function(){return Ni}});var d={};n.r(d),n.d(d,{create:function(){return qi}});var h={};n.r(h),n.d(h,{create:function(){return Hi},del:function(){return Vi},get:function(){return Ki}});var v={};n.r(v),n.d(v,{create:function(){return $i},del:function(){return Ji},get:function(){return Qi}});var m={};n.r(m),n.d(m,{archive:function(){return va},create:function(){return ba},createFromFiles:function(){return wa},createWithId:function(){return ga},del:function(){return ya},get:function(){return sa},getMany:function(){return fa},getPublished:function(){return pa},processForAllLocales:function(){return Ea},processForLocale:function(){return Sa},publish:function(){return da},unarchive:function(){return ma},unpublish:function(){return ha},update:function(){return la}});var b={};n.r(b),n.d(b,{ValidationError:function(){return _a},create:function(){return Da}});var g={};n.r(g),n.d(g,{get:function(){return Ma},publish:function(){return Ca},unpublish:function(){return Fa},validate:function(){return Ra}});var w={};n.r(w),n.d(w,{create:function(){return Ya},del:function(){return Ja},get:function(){return Ha},getAll:function(){return Qa},getMany:function(){return Xa},update:function(){return $a}});var O={};n.r(O),n.d(O,{create:function(){return ac},createWithId:function(){return cc},del:function(){return sc},get:function(){return oc},getMany:function(){return ic},publish:function(){return pc},unpublish:function(){return fc},update:function(){return uc}});var j={};n.r(j),n.d(j,{get:function(){return vc},getMany:function(){return mc},update:function(){return bc}});var P={};n.r(P),n.d(P,{archive:function(){return kc},create:function(){return _c},createWithId:function(){return Dc},del:function(){return Tc},get:function(){return jc},getMany:function(){return Ic},getPublished:function(){return Pc},patch:function(){return Sc},publish:function(){return Ac},references:function(){return Mc},unarchive:function(){return Lc},unpublish:function(){return xc},update:function(){return Ec}});var I={};n.r(I),n.d(I,{create:function(){return Bc},createWithId:function(){return Wc},del:function(){return qc},get:function(){return Nc},getMany:function(){return zc},update:function(){return Uc}});var S={};n.r(S),n.d(S,{createWithId:function(){return Jc},del:function(){return Zc},get:function(){return Yc},getMany:function(){return $c},update:function(){return Qc}});var E={};n.r(E),n.d(E,{create:function(){return au},del:function(){return su},disconnect:function(){return yu},get:function(){return ou},getMany:function(){return iu},install:function(){return lu},update:function(){return cu},validate:function(){return fu},versionUpdate:function(){return uu},versions:function(){return pu}});var T={};n.r(T),n.d(T,{getForEnvironment:function(){return Ou},getMany:function(){return wu}});var A={};n.r(A),n.d(A,{create:function(){return Lu},createWithId:function(){return _u},del:function(){return Mu},get:function(){return xu},getExtensionUrl:function(){return Au},getMany:function(){return ku},update:function(){return Du}});var x={};n.r(x),n.d(x,{del:function(){return zu},get:function(){return Cu},patch:function(){return Nu},post:function(){return Fu},put:function(){return Ru},request:function(){return Uu}});var k={};n.r(k),n.d(k,{create:function(){return Vu},del:function(){return Xu},get:function(){return Gu},getMany:function(){return Ku},update:function(){return Hu}});var L={};n.r(L),n.d(L,{get:function(){return $u},getMany:function(){return Yu}});var _={};n.r(_),n.d(_,{create:function(){return ns},get:function(){return rs}});var D={};n.r(D),n.d(D,{del:function(){return ls},get:function(){return ss},getMany:function(){return ps},update:function(){return fs}});var M={};n.r(M),n.d(M,{create:function(){return hs},get:function(){return ys},getMany:function(){return ds},revoke:function(){return vs}});var C={};n.r(C),n.d(C,{createPersonalAccessToken:function(){return gs},get:function(){return ms},getMany:function(){return bs},getManyForOrganization:function(){return Os},revoke:function(){return ws}});var F={};n.r(F),n.d(F,{get:function(){return js},getMany:function(){return Ps}});var R={};n.r(R),n.d(R,{archive:function(){return Cs},create:function(){return xs},del:function(){return Ls},get:function(){return Ts},publish:function(){return _s},query:function(){return As},unarchive:function(){return Fs},unpublish:function(){return Ds},update:function(){return ks},validate:function(){return Ms}});var N={};n.r(N),n.d(N,{get:function(){return Us},getMany:function(){return qs},queryForRelease:function(){return Bs}});var z={};n.r(z),n.d(z,{create:function(){return Ys},createWithId:function(){return $s},del:function(){return Qs},get:function(){return Vs},getMany:function(){return Hs},getManyForOrganization:function(){return Xs},update:function(){return Js}});var U={};n.r(U),n.d(U,{create:function(){return ep},del:function(){return np},get:function(){return Zs},getMany:function(){return tp},update:function(){return rp}});var q={};n.r(q),n.d(q,{getForContentType:function(){return sp},getForEntry:function(){return ap},getManyForContentType:function(){return up},getManyForEntry:function(){return ip}});var B={};n.r(B),n.d(B,{create:function(){return vp},del:function(){return bp},get:function(){return yp},getMany:function(){return dp},getManyForOrganization:function(){return hp},update:function(){return mp}});var W={};n.r(W),n.d(W,{get:function(){return gp},getMany:function(){return wp}});var G={};n.r(G),n.d(G,{create:function(){return Lp},createWithId:function(){return _p},del:function(){return Mp},get:function(){return Tp},getForOrganization:function(){return xp},getMany:function(){return Ap},getManyForOrganization:function(){return kp},update:function(){return Dp}});var K={};n.r(K),n.d(K,{createWithId:function(){return Wp},del:function(){return Kp},get:function(){return qp},getMany:function(){return Bp},update:function(){return Gp}});var V={};n.r(V),n.d(V,{create:function(){return ef},del:function(){return rf},get:function(){return Qp},getAll:function(){return tf},getMany:function(){return Zp},update:function(){return nf}});var H={};n.r(H),n.d(H,{create:function(){return yf},del:function(){return hf},get:function(){return pf},getMany:function(){return ff},getManyForSpace:function(){return lf},update:function(){return df}});var X={};n.r(X),n.d(X,{create:function(){return If},del:function(){return Ef},get:function(){return Of},getManyForOrganization:function(){return jf},getManyForTeam:function(){return Pf},update:function(){return Sf}});var Y={};n.r(Y),n.d(Y,{create:function(){return Ff},del:function(){return Nf},get:function(){return _f},getForOrganization:function(){return Mf},getMany:function(){return Df},getManyForOrganization:function(){return Cf},update:function(){return Rf}});var $={};n.r($),n.d($,{get:function(){return Uf},update:function(){return qf}});var J={};n.r(J),n.d(J,{getManyForOrganization:function(){return Wf},getManyForSpace:function(){return Bf}});var Q={};n.r(Q),n.d(Q,{getCurrent:function(){return Kf},getForOrganization:function(){return Hf},getForSpace:function(){return Gf},getManyForOrganization:function(){return Xf},getManyForSpace:function(){return Vf}});var Z={};n.r(Z),n.d(Z,{get:function(){return $f},update:function(){return Jf}});var tt={};n.r(tt),n.d(tt,{create:function(){return ml},createWithId:function(){return bl},del:function(){return jl},deleteRetryPolicy:function(){return Il},deleteSigningSecret:function(){return Pl},get:function(){return pl},getCallDetails:function(){return ll},getHealthStatus:function(){return yl},getMany:function(){return dl},getManyCallDetails:function(){return fl},getRetryPolicy:function(){return vl},getSigningSecret:function(){return hl},update:function(){return gl},upsertRetryPolicy:function(){return Ol},upsertSigningSecret:function(){return wl}});var et={};n.r(et),n.d(et,{complete:function(){return Rl},create:function(){return Ml},del:function(){return Fl},getMany:function(){return Dl},update:function(){return Cl}});var nt={};n.r(nt),n.d(nt,{create:function(){return Vl},del:function(){return Xl},get:function(){return Gl},getMany:function(){return Kl},update:function(){return Hl}});var rt={};n.r(rt),n.d(rt,{getMany:function(){return Yl}});var ot={};n.r(ot),n.d(ot,{wrapApiKey:function(){return uy},wrapApiKeyCollection:function(){return sy}});var it={};n.r(it),n.d(it,{wrapAppAction:function(){return py},wrapAppActionCollection:function(){return fy}});var at={};n.r(at),n.d(at,{default:function(){return hy},wrapAppActionCall:function(){return vy},wrapAppActionCallResponse:function(){return my}});var ct={};n.r(ct),n.d(ct,{wrapAppBundle:function(){return by},wrapAppBundleCollection:function(){return gy}});var ut={};n.r(ut),n.d(ut,{wrapAppDefinition:function(){return wy},wrapAppDefinitionCollection:function(){return Oy}});var st={};n.r(st),n.d(st,{wrapAppDetails:function(){return jy}});var pt={};n.r(pt),n.d(pt,{wrapAppInstallation:function(){return Py},wrapAppInstallationCollection:function(){return Iy}});var ft={};n.r(ft),n.d(ft,{wrapAppSignedRequest:function(){return Sy}});var lt={};n.r(lt),n.d(lt,{wrapAppSigningSecret:function(){return Ey}});var yt={};n.r(yt),n.d(yt,{wrapAppEventSubscription:function(){return Ty}});var dt={};n.r(dt),n.d(dt,{wrapAppKey:function(){return Ay},wrapAppKeyCollection:function(){return xy}});var ht={};n.r(ht),n.d(ht,{wrapAppAccessToken:function(){return ky}});var vt={};n.r(vt),n.d(vt,{wrapAppUpload:function(){return Ly},wrapAppUploadCollection:function(){return _y}});var mt={};n.r(mt),n.d(mt,{wrapAsset:function(){return Uy},wrapAssetCollection:function(){return qy}});var bt={};n.r(bt),n.d(bt,{wrapAssetKey:function(){return By}});var gt={};n.r(gt),n.d(gt,{BulkActionStatus:function(){return dd},wrapBulkAction:function(){return hd}});var wt={};n.r(wt),n.d(wt,{CommentNode:function(){return jd},default:function(){return Pd},wrapComment:function(){return Id},wrapCommentCollection:function(){return Sd}});var Ot={};n.r(Ot),n.d(Ot,{wrapEditorInterface:function(){return Ed},wrapEditorInterfaceCollection:function(){return Td}});var jt={};n.r(jt),n.d(jt,{wrapSnapshot:function(){return Ad},wrapSnapshotCollection:function(){return xd}});var Pt={};n.r(Pt),n.d(Pt,{wrapContentType:function(){return Fd},wrapContentTypeCollection:function(){return Rd}});var It={};n.r(It),n.d(It,{wrapEntry:function(){return qd},wrapEntryCollection:function(){return Bd}});var St={};n.r(St),n.d(St,{wrapReleaseAction:function(){return Hd},wrapReleaseActionCollection:function(){return Xd}});var Et={};n.r(Et),n.d(Et,{ReleaseReferenceFilters:function(){return th},wrapRelease:function(){return eh},wrapReleaseCollection:function(){return nh}});var Tt={};n.r(Tt),n.d(Tt,{default:function(){return ah},wrapTag:function(){return ch},wrapTagCollection:function(){return uh}});var At={};n.r(At),n.d(At,{wrapUIConfig:function(){return lh}});var xt={};n.r(xt),n.d(xt,{wrapUserUIConfig:function(){return vh}});var kt={};n.r(kt),n.d(kt,{wrapEnvironmentTemplateInstallation:function(){return mh},wrapEnvironmentTemplateInstallationCollection:function(){return bh}});var Lt={};n.r(Lt),n.d(Lt,{wrapEnvironment:function(){return Th},wrapEnvironmentCollection:function(){return Ah}});var _t={};n.r(_t),n.d(_t,{wrapEnvironmentAlias:function(){return xh},wrapEnvironmentAliasCollection:function(){return kh}});var Dt={};n.r(Dt),n.d(Dt,{wrapEnvironmentTemplate:function(){return Ch},wrapEnvironmentTemplateCollection:function(){return Fh}});var Mt={};n.r(Mt),n.d(Mt,{wrapExtension:function(){return Rh},wrapExtensionCollection:function(){return Nh}});var Ct={};n.r(Ct),n.d(Ct,{wrapLocale:function(){return zh},wrapLocaleCollection:function(){return Uh}});var Ft={};n.r(Ft),n.d(Ft,{wrapOrganization:function(){return Gh},wrapOrganizationCollection:function(){return Kh}});var Rt={};n.r(Rt),n.d(Rt,{wrapOrganizationInvitation:function(){return Vh}});var Nt={};n.r(Nt),n.d(Nt,{wrapOrganizationMembership:function(){return Hh},wrapOrganizationMembershipCollection:function(){return Xh}});var zt={};n.r(zt),n.d(zt,{wrapPersonalAccessToken:function(){return Yh},wrapPersonalAccessTokenCollection:function(){return $h}});var Ut={};n.r(Ut),n.d(Ut,{wrapAccessToken:function(){return Jh},wrapAccessTokenCollection:function(){return Qh}});var qt={};n.r(qt),n.d(qt,{wrapPreviewApiKey:function(){return Zh},wrapPreviewApiKeyCollection:function(){return tv}});var Bt={};n.r(Bt),n.d(Bt,{wrapRole:function(){return ev},wrapRoleCollection:function(){return nv}});var Wt={};n.r(Wt),n.d(Wt,{default:function(){return sv},wrapScheduledAction:function(){return pv},wrapScheduledActionCollection:function(){return fv}});var Gt={};n.r(Gt),n.d(Gt,{wrapSpace:function(){return lv},wrapSpaceCollection:function(){return yv}});var Kt={};n.r(Kt),n.d(Kt,{wrapSpaceMember:function(){return dv},wrapSpaceMemberCollection:function(){return hv}});var Vt={};n.r(Vt),n.d(Vt,{wrapSpaceMembership:function(){return vv},wrapSpaceMembershipCollection:function(){return mv}});var Ht={};n.r(Ht),n.d(Ht,{default:function(){return Ov},wrapTask:function(){return jv},wrapTaskCollection:function(){return Pv}});var Xt={};n.r(Xt),n.d(Xt,{wrapTeam:function(){return Iv},wrapTeamCollection:function(){return Sv}});var Yt={};n.r(Yt),n.d(Yt,{wrapTeamMembership:function(){return Ev},wrapTeamMembershipCollection:function(){return Tv}});var $t={};n.r($t),n.d($t,{wrapTeamSpaceMembership:function(){return Av},wrapTeamSpaceMembershipCollection:function(){return xv}});var Jt={};n.r(Jt),n.d(Jt,{wrapUpload:function(){return Dv}});var Qt={};n.r(Qt),n.d(Qt,{wrapUsage:function(){return Mv},wrapUsageCollection:function(){return Cv}});var Zt={};n.r(Zt),n.d(Zt,{wrapUser:function(){return Fv},wrapUserCollection:function(){return Rv}});var te={};n.r(te),n.d(te,{wrapWebhook:function(){return qv},wrapWebhookCollection:function(){return Bv}});var ee={};n.r(ee),n.d(ee,{WorkflowStepActionType:function(){return Yv},WorkflowStepPermissionAction:function(){return Hv},WorkflowStepPermissionEffect:function(){return Xv},WorkflowStepPermissionType:function(){return Vv},default:function(){return $v},wrapWorkflowDefinition:function(){return Jv},wrapWorkflowDefinitionCollection:function(){return Qv}});var ne={};n.r(ne),n.d(ne,{default:function(){return Dm}});var re=n(254),oe=n.n(re),ie=n(122),ae=n.n(ie),ce=n(451),ue=n.n(ce),se=n(930),pe=n.n(se),fe=n(261),le=n.n(fe);function ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function de(t){for(var e=1;e]+)>/g,(function(t,e){var n=i[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},ve.apply(this,arguments)}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}function be(t,e){if(t){if("string"==typeof t)return ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:7,n=e;if(Oe.test(t)){var r,o=null===(r=t.match(Oe))||void 0===r?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(e*i)}}return Math.min(30,Math.max(1,n))}function Pe(t,e){return e("info","Throttle request to ".concat(t,"/s")),pe()({limit:t,interval:1e3,strict:!1})}var Ie=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Se(t,e){var n=de(de({},{insecure:!1,retryOnError:!0,logHandler:function(t,e){if("error"===t&&e){var n=[e.name,e.message].filter((function(t){return t})).join(" - ");return console.error("[error] ".concat(n)),void console.error(e)}console.log("[".concat(t,"] ").concat(e))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),e);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o,i,a=n.insecure?"http":"https",c=n.space?"".concat(n.space,"/"):"",u=n.defaultHostname,s=n.insecure?80:443;if(n.host&&Ie.test(n.host)){var p=n.host.split(":");if(2===p.length){var f=(i=2,function(t){if(Array.isArray(t))return t}(o=p)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(o,i)||be(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());u=f[0],s=f[1]}else u=p[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var l=e.baseURL||"".concat(a,"://").concat(u,":").concat(s).concat(n.basePath,"/spaces/").concat(c);n.headers.Authorization||"function"==typeof n.accessToken||(n.headers.Authorization="Bearer "+n.accessToken);var y={baseURL:l,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,paramsSerializer:{serialize:function(t){return ae().stringify(t)}},logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},d=t.create(y);return d.httpClientParams=e,d.cloneWithNewParams=function(n){return Se(t,de(de({},oe()(e)),n))},n.onBeforeRequest&&d.interceptors.request.use(n.onBeforeRequest),"function"==typeof n.accessToken&&function(t,e){t.interceptors.request.use((function(t){return e().then((function(e){return t.headers.set("Authorization","Bearer ".concat(e)),t}))}))}(d,n.accessToken),n.throttle&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=t.defaults.logHandler,r=void 0===n?we:n,o=ue()(e)?je(e):je("auto",e),i=Pe(o,r),a=!1,c=t.interceptors.request.use((function(t){return i((function(){return t}))()}),(function(t){return Promise.reject(t)}));t.interceptors.response.use((function(n){if(!a&&ue()(e)&&("auto"===e||Oe.test(e))&&n.headers&&n.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(n.headers["x-contentful-ratelimit-second-limit"]),s=je(e,u);s!==o&&(c&&t.interceptors.request.eject(c),o=s,i=Pe(s,r),c=t.interceptors.request.use((function(t){return i((function(){return t}))()}),(function(t){return Promise.reject(t)}))),a=!0}return n}),(function(t){return Promise.reject(t)}))}(d,n.throttle),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,o=void 0===r?we:r,i=n.requestLogger,a=void 0===i?we:i;t.interceptors.request.use((function(t){return a(t),t}),(function(t){return a(t),Promise.reject(t)})),t.interceptors.response.use((function(t){return o(t),t}),(function(n){var r=n.response,i=n.config;if(o(n),!i||!t.defaults.retryOnError)return Promise.reject(n);var a=i.attempts||1;if(a>e)return n.attempts=i.attempts,Promise.reject(n);var c,u,s=null,p=(c=a,Math.pow(Math.SQRT2,c));return r?r.status>=500&&r.status<600?s="Server ".concat(r.status):429===r.status&&(s="Rate limit",r.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(p=r.headers["x-contentful-ratelimit-reset"])):s="Connection",s?(p=Math.floor(1e3*p+200*Math.random()+500),t.defaults.logHandler("warning","".concat(s," error occurred. Waiting for ").concat(p," ms before retrying...")),i.attempts=a+1,delete i.httpAgent,delete i.httpsAgent,(u=p,new Promise((function(t){setTimeout(t,u)}))).then((function(){return t(i)}))):Promise.reject(n)}))}(d,n.retryLimit),n.onError&&d.interceptors.response.use((function(t){return t}),n.onError),d}function Ee(t){var e=t.query,n={};return delete e.resolveLinks,n.params=oe()(e),n}function Te(t){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=be(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(Object.getOwnPropertyNames(t));try{for(n.s();!(e=n.n()).done;){var r=t[e.value];r&&"object"===he(r)&&Te(r)}}catch(t){n.e(t)}finally{n.f()}return Object.freeze(t)}function Ae(t){return Te(t.sys||{}),t}function xe(){var t=window;if(!t)return null;var e=t.navigator.userAgent,n=t.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(n)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(n)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(n)?"Windows":/Android/.test(e)?"Android":/Linux/.test(n)?"Linux":null}function ke(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return oe()(this)}})}function Le(t){var e,n=t.config,r=t.response;if(n&&n.headers&&n.headers.Authorization){var o="...".concat(n.headers.Authorization.toString().substr(-5));n.headers.Authorization="Bearer ".concat(o)}if(!le()(r)||!le()(n))throw t;var i,a=null==r?void 0:r.data,c={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};n&&le()(n)&&(c.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),a&&"object"===he(a)&&("requestId"in a&&(c.requestId=a.requestId||"UNKNOWN"),"message"in a&&(c.message=a.message||""),"details"in a&&(c.details=a.details||{}),e=null===(i=a.sys)||void 0===i?void 0:i.id);var u=new Error;u.name=e&&"Unknown"!==e?e:"".concat(null==r?void 0:r.status," ").concat(null==r?void 0:r.statusText);try{u.message=JSON.stringify(c,null," ")}catch(t){var s;u.message=null!==(s=null==c?void 0:c.message)&&void 0!==s?s:""}throw u}function _e(t,e){return function(){return t.apply(e,arguments)}}const{toString:De}=Object.prototype,{getPrototypeOf:Me}=Object,Ce=(Fe=Object.create(null),t=>{const e=De.call(t);return Fe[e]||(Fe[e]=e.slice(8,-1).toLowerCase())});var Fe;const Re=t=>(t=t.toLowerCase(),e=>Ce(e)===t),Ne=t=>e=>typeof e===t,{isArray:ze}=Array,Ue=Ne("undefined"),qe=Re("ArrayBuffer"),Be=Ne("string"),We=Ne("function"),Ge=Ne("number"),Ke=t=>null!==t&&"object"==typeof t,Ve=t=>{if("object"!==Ce(t))return!1;const e=Me(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},He=Re("Date"),Xe=Re("File"),Ye=Re("Blob"),$e=Re("FileList"),Je=Re("URLSearchParams");function Qe(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),ze(t))for(r=0,o=t.length;r0;)if(r=n[o],e===r.toLowerCase())return r;return null}const tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,en=t=>!Ue(t)&&t!==tn,nn=(rn="undefined"!=typeof Uint8Array&&Me(Uint8Array),t=>rn&&t instanceof rn);var rn;const on=Re("HTMLFormElement"),an=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),cn=Re("RegExp"),un=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Qe(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},sn="abcdefghijklmnopqrstuvwxyz",pn="0123456789",fn={DIGIT:pn,ALPHA:sn,ALPHA_DIGIT:sn+sn.toUpperCase()+pn},ln=Re("AsyncFunction");var yn={isArray:ze,isArrayBuffer:qe,isBuffer:function(t){return null!==t&&!Ue(t)&&null!==t.constructor&&!Ue(t.constructor)&&We(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||We(t.append)&&("formdata"===(e=Ce(t))||"object"===e&&We(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&qe(t.buffer),e},isString:Be,isNumber:Ge,isBoolean:t=>!0===t||!1===t,isObject:Ke,isPlainObject:Ve,isUndefined:Ue,isDate:He,isFile:Xe,isBlob:Ye,isRegExp:cn,isFunction:We,isStream:t=>Ke(t)&&We(t.pipe),isURLSearchParams:Je,isTypedArray:nn,isFileList:$e,forEach:Qe,merge:function t(){const{caseless:e}=en(this)&&this||{},n={},r=(r,o)=>{const i=e&&Ze(n,o)||o;Ve(n[i])&&Ve(r)?n[i]=t(n[i],r):Ve(r)?n[i]=t({},r):ze(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t(Qe(e,((e,r)=>{n&&We(e)?t[r]=_e(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&Me(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Ce,kindOfTest:Re,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(ze(t))return t;let e=t.length;if(!Ge(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:on,hasOwnProperty:an,hasOwnProp:an,reduceDescriptors:un,freezeMethods:t=>{un(t,((e,n)=>{if(We(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];We(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return ze(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Ze,global:tn,isContextDefined:en,ALPHABET:fn,generateString:(t=16,e=fn.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&We(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(Ke(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=ze(t)?[]:{};return Qe(t,((t,e)=>{const i=n(t,r+1);!Ue(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:ln,isThenable:t=>t&&(Ke(t)||We(t))&&We(t.then)&&We(t.catch)};function dn(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}yn.inherits(dn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:yn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hn=dn.prototype,vn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{vn[t]={value:t}})),Object.defineProperties(dn,vn),Object.defineProperty(hn,"isAxiosError",{value:!0}),dn.from=(t,e,n,r,o,i)=>{const a=Object.create(hn);return yn.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dn.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};var mn=dn;function bn(t){return yn.isPlainObject(t)||yn.isArray(t)}function gn(t){return yn.endsWith(t,"[]")?t.slice(0,-2):t}function wn(t,e,n){return t?t.concat(e).map((function(t,e){return t=gn(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const On=yn.toFlatObject(yn,{},null,(function(t){return/^is[A-Z]/.test(t)}));var jn=function(t,e,n){if(!yn.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=yn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!yn.isUndefined(e[t])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&yn.isSpecCompliantForm(e);if(!yn.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(yn.isDate(t))return t.toISOString();if(!c&&yn.isBlob(t))throw new mn("Blob is not supported. Use a Buffer instead.");return yn.isArrayBuffer(t)||yn.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function s(t,n,o){let c=t;if(t&&!o&&"object"==typeof t)if(yn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(yn.isArray(t)&&function(t){return yn.isArray(t)&&!t.some(bn)}(t)||(yn.isFileList(t)||yn.endsWith(n,"[]"))&&(c=yn.toArray(t)))return n=gn(n),c.forEach((function(t,r){!yn.isUndefined(t)&&null!==t&&e.append(!0===a?wn([n],r,i):null===a?n:n+"[]",u(t))})),!1;return!!bn(t)||(e.append(wn(o,n,i),u(t)),!1)}const p=[],f=Object.assign(On,{defaultVisitor:s,convertValue:u,isVisitable:bn});if(!yn.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!yn.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),yn.forEach(n,(function(n,i){!0===(!(yn.isUndefined(n)||null===n)&&o.call(e,n,yn.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),p.pop()}}(t),e};function Pn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function In(t,e){this._pairs=[],t&&jn(t,this,e)}const Sn=In.prototype;Sn.append=function(t,e){this._pairs.push([t,e])},Sn.toString=function(t){const e=t?function(e){return t.call(this,e,Pn)}:Pn;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var En=In;function Tn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function An(t,e,n){if(!e)return t;const r=n&&n.encode||Tn,o=n&&n.serialize;let i;if(i=o?o(e,n):yn.isURLSearchParams(e)?e.toString():new En(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}var xn=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){yn.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ln={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:En,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const _n="undefined"!=typeof window&&"undefined"!=typeof document,Dn=(Mn="undefined"!=typeof navigator&&navigator.product,_n&&["ReactNative","NativeScript","NS"].indexOf(Mn)<0);var Mn;const Cn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var Fn={...t,...Ln},Rn=function(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),c=o>=t.length;return i=!i&&yn.isArray(r)?r.length:i,c?(yn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&yn.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&yn.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r{e(function(t){return yn.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const Nn={transitional:kn,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=yn.isObject(t);if(o&&yn.isHTMLForm(t)&&(t=new FormData(t)),yn.isFormData(t))return r?JSON.stringify(Rn(t)):t;if(yn.isArrayBuffer(t)||yn.isBuffer(t)||yn.isStream(t)||yn.isFile(t)||yn.isBlob(t))return t;if(yn.isArrayBufferView(t))return t.buffer;if(yn.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return jn(t,new Fn.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Fn.isNode&&yn.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=yn.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return jn(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(yn.isString(t))try{return(0,JSON.parse)(t),yn.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Nn.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&yn.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw mn.from(t,mn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};yn.forEach(["delete","get","head","post","put","patch"],(t=>{Nn.headers[t]={}}));var zn=Nn;const Un=yn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qn=Symbol("internals");function Bn(t){return t&&String(t).trim().toLowerCase()}function Wn(t){return!1===t||null==t?t:yn.isArray(t)?t.map(Wn):String(t)}function Gn(t,e,n,r,o){return yn.isFunction(r)?r.call(this,e,n):(o&&(e=n),yn.isString(e)?yn.isString(r)?-1!==e.indexOf(r):yn.isRegExp(r)?r.test(e):void 0:void 0)}class Kn{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Bn(e);if(!o)throw new Error("header name must be a non-empty string");const i=yn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Wn(t))}const i=(t,e)=>yn.forEach(t,((t,n)=>o(t,n,e)));return yn.isPlainObject(t)||t instanceof this.constructor?i(t,e):yn.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Un[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=Bn(t)){const n=yn.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(yn.isFunction(e))return e.call(this,t,n);if(yn.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Bn(t)){const n=yn.findKey(this,t);return!(!n||void 0===this[n]||e&&!Gn(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Bn(t)){const o=yn.findKey(n,t);!o||e&&!Gn(0,n[o],o,e)||(delete n[o],r=!0)}}return yn.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Gn(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return yn.forEach(this,((r,o)=>{const i=yn.findKey(n,o);if(i)return e[i]=Wn(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Wn(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return yn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&yn.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[qn]=this[qn]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Bn(t);e[r]||(function(t,e){const n=yn.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return yn.isArray(t)?t.forEach(r):r(t),this}}Kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),yn.reduceDescriptors(Kn.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),yn.freezeMethods(Kn);var Vn=Kn;function Hn(t,e){const n=this||zn,r=e||n,o=Vn.from(r.headers);let i=r.data;return yn.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Xn(t){return!(!t||!t.__CANCEL__)}function Yn(t,e,n){mn.call(this,null==t?"canceled":t,mn.ERR_CANCELED,e,n),this.name="CanceledError"}yn.inherits(Yn,mn,{__CANCEL__:!0});var $n=Yn,Jn=Fn.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const a=[t+"="+encodeURIComponent(e)];yn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),yn.isString(r)&&a.push("path="+r),yn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qn(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Zn=Fn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=yn.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function tr(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(c){const u=Date.now(),s=r[a];o||(o=u),n[i]=c,r[i]=u;let p=a,f=0;for(;p!==i;)f+=n[p++],p%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-n,u=r(c);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};s[e?"download":"upload"]=!0,t(s)}}var er="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=Vn.from(t.headers).normalize();let i,a,{responseType:c,withXSRFToken:u}=t;function s(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}if(yn.isFormData(r))if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[t,...e]=a?a.split(";").map((t=>t.trim())).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let p=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const f=Qn(t.baseURL,t.url);function l(){if(!p)return;const r=Vn.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new mn("Request failed with status code "+n.status,[mn.ERR_BAD_REQUEST,mn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),s()}),(function(t){n(t),s()}),{data:c&&"text"!==c&&"json"!==c?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p}),p=null}if(p.open(t.method.toUpperCase(),An(f,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,"onloadend"in p?p.onloadend=l:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(l)},p.onabort=function(){p&&(n(new mn("Request aborted",mn.ECONNABORTED,t,p)),p=null)},p.onerror=function(){n(new mn("Network Error",mn.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||kn;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new mn(e,r.clarifyTimeoutError?mn.ETIMEDOUT:mn.ECONNABORTED,t,p)),p=null},Fn.hasStandardBrowserEnv&&(u&&yn.isFunction(u)&&(u=u(t)),u||!1!==u&&Zn(f))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&Jn.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in p&&yn.forEach(o.toJSON(),(function(t,e){p.setRequestHeader(e,t)})),yn.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),c&&"json"!==c&&(p.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",tr(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",tr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{p&&(n(!e||e.type?new $n(null,t,p):e),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const y=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);y&&-1===Fn.protocols.indexOf(y)?n(new mn("Unsupported protocol "+y+":",mn.ERR_BAD_REQUEST,t)):p.send(r||null)}))};const nr={http:null,xhr:er};yn.forEach(nr,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const rr=t=>`- ${t}`,or=t=>yn.isFunction(t)||null===t||!1===t;var ir=t=>{t=yn.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(rr).join("\n"):" "+rr(t[0]):"as no adapter specified";throw new mn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ar(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new $n(null,t)}function cr(t){return ar(t),t.headers=Vn.from(t.headers),t.data=Hn.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ir(t.adapter||zn.adapter)(t).then((function(e){return ar(t),e.data=Hn.call(t,t.transformResponse,e),e.headers=Vn.from(e.headers),e}),(function(e){return Xn(e)||(ar(t),e&&e.response&&(e.response.data=Hn.call(t,t.transformResponse,e.response),e.response.headers=Vn.from(e.response.headers))),Promise.reject(e)}))}const ur=t=>t instanceof Vn?{...t}:t;function sr(t,e){e=e||{};const n={};function r(t,e,n){return yn.isPlainObject(t)&&yn.isPlainObject(e)?yn.merge.call({caseless:n},t,e):yn.isPlainObject(e)?yn.merge({},e):yn.isArray(e)?e.slice():e}function o(t,e,n){return yn.isUndefined(e)?yn.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!yn.isUndefined(e))return r(void 0,e)}function a(t,e){return yn.isUndefined(e)?yn.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function c(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(t,e)=>o(ur(t),ur(e),!0)};return yn.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=u[r]||o,a=i(t[r],e[r],r);yn.isUndefined(a)&&i!==c||(n[r]=a)})),n}const pr={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{pr[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const fr={};pr.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.8] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new mn(r(o," has been removed"+(e?" in "+e:"")),mn.ERR_DEPRECATED);return e&&!fr[o]&&(fr[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};var lr={assertOptions:function(t,e,n){if("object"!=typeof t)throw new mn("options must be an object",mn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new mn("option "+i+" must be "+n,mn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new mn("Unknown option "+i,mn.ERR_BAD_OPTION)}},validators:pr};const yr=lr.validators;class dr{constructor(t){this.defaults=t,this.interceptors={request:new xn,response:new xn}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=sr(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&lr.assertOptions(n,{silentJSONParsing:yr.transitional(yr.boolean),forcedJSONParsing:yr.transitional(yr.boolean),clarifyTimeoutError:yr.transitional(yr.boolean)},!1),null!=r&&(yn.isFunction(r)?e.paramsSerializer={serialize:r}:lr.assertOptions(r,{encode:yr.function,serialize:yr.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&yn.merge(o.common,o[e.method]);o&&yn.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Vn.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let p,f=0;if(!c){const t=[cr.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),p=t.length,s=Promise.resolve(e);f{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new $n(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new vr((function(e){t=e})),cancel:t}}}var mr=vr;const br={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(br).forEach((([t,e])=>{br[e]=t}));var gr=br;const wr=function t(e){const n=new hr(e),r=_e(hr.prototype.request,n);return yn.extend(r,hr.prototype,n,{allOwnKeys:!0}),yn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(sr(e,n))},r}(zn);wr.Axios=hr,wr.CanceledError=$n,wr.CancelToken=mr,wr.isCancel=Xn,wr.VERSION="1.6.8",wr.toFormData=jn,wr.AxiosError=mn,wr.Cancel=wr.CanceledError,wr.all=function(t){return Promise.all(t)},wr.spread=function(t){return function(e){return t.apply(null,e)}},wr.isAxiosError=function(t){return yn.isObject(t)&&!0===t.isAxiosError},wr.mergeConfig=sr,wr.AxiosHeaders=Vn,wr.formToJSON=t=>Rn(yn.isHTMLForm(t)?new FormData(t):t),wr.getAdapter=ir,wr.HttpStatusCode=gr,wr.default=wr;var Or=wr,jr=Function.prototype.toString,Pr=Object.create,Ir=Object.prototype.toString,Sr=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(t){return!!~this._keys.indexOf(t)},t.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},t.prototype.set=function(t,e){this._keys.push(t),this._values.push(e)},t}(),Er="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Sr};function Tr(t){if(!t)return Pr(null);var e=t.constructor;if(e===Object)return t===Object.prototype?{}:Pr(t);if(e&&~jr.call(e).indexOf("[native code]"))try{return new e}catch(t){}return Pr(t)}var Ar="g"===/test/g.flags?function(t){return t.flags}:function(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function xr(t){var e=Ir.call(t);return e.substring(8,e.length-1)}var kr="undefined"!=typeof Symbol?function(t){return t[Symbol.toStringTag]||xr(t)}:xr,Lr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,Dr=Object.getOwnPropertyNames,Mr=Object.getOwnPropertySymbols,Cr=Object.prototype,Fr=Cr.hasOwnProperty,Rr=Cr.propertyIsEnumerable,Nr="function"==typeof Mr,zr=Nr?function(t){return Dr(t).concat(Mr(t))}:Dr;function Ur(t,e,n){for(var r=zr(t),o=0,i=r.length,a=void 0,c=void 0;o=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,go)),{},{"sys.space.sys.id[in]":e})}return t}var So=function(t){return"/organizations/".concat(t.organizationId,"/app_definitions/").concat(t.appDefinitionId,"/actions")},Eo=function(t){return"".concat(So(t),"/").concat(t.appActionId)},To=function(t,e){return oo(t,Eo(e))},Ao=function(t,e){return oo(t,So(e),{params:Po(e.query)})},xo=function(t,e){return oo(t,function(t){return t.environmentId?"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/actions"):"/spaces/".concat(t.spaceId,"/actions")}(e),{params:Po(e.query)})},ko=function(t,e){return uo(t,Eo(e))},Lo=function(t,e,n){return ao(t,So(e),n)},_o=function(t,e,n){return co(t,Eo(e),n)};function Do(t){return Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(t)}function Mo(){Mo=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==Do(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Co(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var Fo=function(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i2?r-2:0),i=2;i0&&void 0!==n[0]?n[0]:1e3,t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 2:case"end":return t.stop()}}),t)})),Uo=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Co(i,r,o,a,c,"next",t)}function c(t){Co(i,r,o,a,c,"throw",t)}a(void 0)}))},Uo.apply(this,arguments)}function qo(t){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(t)}function Bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wo(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ko(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Vo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ko(i,r,o,a,c,"next",t)}function c(t){Ko(i,r,o,a,c,"throw",t)}a(void 0)}))}}var Ho=function(t,e,n){return ao(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/app_installations/").concat(e.appDefinitionId,"/actions/").concat(e.appActionId,"/calls"),n)},Xo=function(t,e){return oo(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/actions/").concat(e.appActionId,"/calls/").concat(e.callId))},Yo=2e3,$o=15;function Jo(t,e,n){return Qo.apply(this,arguments)}function Qo(){return Qo=Vo(Go().mark((function t(e,n,r){var o,i,a,c;return Go().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.callId,i=1,a=n.retryInterval||Yo,c=n.retries||$o,t.abrupt("return",new Promise((function(t,r){var u=function(){var s=Vo(Go().mark((function s(){var p,f,l,y,d;return Go().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Xo(e,Wo(Wo({},n),{},{callId:o}));case 3:if(null==(l=s.sent)||null===(p=l.response)||void 0===p||!p.statusCode||No(null==l||null===(f=l.response)||void 0===f?void 0:f.statusCode)){s.next=9;break}y=new Error("App action not found or lambda fails"),r(y),s.next=22;break;case 9:if(!No(l.statusCode)){s.next=13;break}t(l),s.next=22;break;case 13:if(h=l.statusCode,!([404,422,429,400].includes(h)&&ic)){s.next=30;break}return r(new Error("The app action response is taking longer than expected to process.")),s.abrupt("return");case 30:return s.next=32,zo(a);case 32:u();case 33:case"end":return s.stop()}var h}),s,null,[[0,24]])})));return function(){return s.apply(this,arguments)}}();u()})));case 5:case"end":return t.stop()}}),t)}))),Qo.apply(this,arguments)}var Zo=function(){var t=Vo(Go().mark((function t(e,n,r){var o,i;return Go().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ao(e,"/spaces/".concat(n.spaceId,"/environments/").concat(n.environmentId,"/app_installations/").concat(n.appDefinitionId,"/actions/").concat(n.appActionId,"/calls"),r);case 2:return o=t.sent,i=o.sys.id,t.abrupt("return",Jo(e,n,{callId:i}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),ti=function(t){return"/organizations/".concat(t.organizationId,"/app_definitions/").concat(t.appDefinitionId,"/app_bundles")},ei=function(t){return"".concat(ti(t),"/").concat(t.appBundleId)},ni=function(t,e){return oo(t,ei(e))},ri=function(t,e){return oo(t,ti(e),{params:Po(e.query)})},oi=function(t,e){return uo(t,ei(e))},ii=function(t,e,n){var r={upload:{sys:{type:"Link",linkType:"AppUpload",id:n.appUploadId}},comment:n.comment,actions:n.actions,functions:n.functions};return ao(t,ti(e),r)};function ai(t){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(t)}function ci(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ui(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ra(){ra=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==ea(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function oa(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function ia(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){oa(i,r,o,a,c,"next",t)}function c(t){oa(i,r,o,a,c,"throw",t)}a(void 0)}))}}function aa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ca(t){for(var e=1;en.maximum)throw new _a(t,"value (".concat(e,") cannot be further in the future than expected maximum (").concat(n.maximum,")"));if(n.now&&e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Na);return uo(t,Ka(r),{headers:Ba({},Wa,n)})},Qa=Xa;function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ec(t){for(var e=1;e1?e-1:0),r=1;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var wu=function(t,e,n){var r=e.organizationId,o=e.environmentTemplateId,i=e.spaceId,a=e.environmentId,c=gu(e,hu);return oo(t,function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Iu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Su(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Cp);return uo(t,Up(r),{headers:{"X-Contentful-Version":n}})},Vp=["version"];function Hp(t){return Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hp(t)}function Xp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yp(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Vp);return uo(t,Jp(r),{headers:{"X-Contentful-Version":n}})};function of(t){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},of(t)}function af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cf(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function tl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function el(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function xl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kl(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Nl);return uo(t,Wl(o),{headers:ql({"X-Contentful-Version":r},n)})},Yl=function(t,e,n){return oo(t,function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/workflows_changelog")}(e),{headers:n,params:e.query})},$l={ApiKey:e,AppAction:o,AppActionCall:i,AppBundle:a,AppDefinition:c,AppInstallation:s,AppUpload:h,AppSignedRequest:p,AppSigningSecret:f,AppEventSubscription:l,AppKey:y,AppAccessToken:d,AppDetails:u,Asset:m,AssetKey:b,BulkAction:g,Comment:w,ContentType:O,EditorInterface:j,Entry:P,Environment:I,EnvironmentAlias:S,EnvironmentTemplate:E,EnvironmentTemplateInstallation:T,Extension:A,Http:x,Locale:k,Organization:L,OrganizationInvitation:_,OrganizationMembership:D,PersonalAccessToken:M,AccessToken:C,PreviewApiKey:F,Release:R,ReleaseAction:N,Role:z,ScheduledAction:U,Snapshot:q,Space:B,SpaceMember:W,SpaceMembership:G,Tag:K,Task:V,Team:H,TeamMembership:X,TeamSpaceMembership:Y,UIConfig:$,Upload:v,Usage:J,User:Q,UserUIConfig:Z,Webhook:tt,WorkflowDefinition:nt,Workflow:et,WorkflowsChangelog:rt};function Jl(t){return Jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(t)}function Ql(){Ql=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==Jl(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Zl(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ey(t){for(var e=1;e",message_body:"Hello from Bob!"}}}).then((function(e){return my(t,e)}))},getCallDetails:function(){return t({entityType:"AppActionCall",action:"getCallDetails",params:{spaceId:"space-id",environmentId:"environment-id",callId:"call-id",appActionId:"app-action-id"}}).then((function(e){return my(t,e)}))}}}function vy(t,e){return cy(ke(Zr(e)),hy(t))}function my(t,e,n){return cy(ke(Zr(e)),hy(t,n))}function by(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{organizationId:t.sys.organization.sys.id,appDefinitionId:t.sys.appDefinition.sys.id,appBundleId:t.sys.id}};return{delete:function(){var n=this.toPlainObject();return t({entityType:"AppBundle",action:"delete",params:e(n)})}}}(t));return Ae(n)}var gy=Fo(by);function wy(t,e){var n=cy(ke(Zr(e)),function(t){var e=Zv.appBundle,n=e.wrapAppBundle,r=e.wrapAppBundleCollection,o=function(t){return{appDefinitionId:t.sys.id,organizationId:t.sys.organization.sys.id}};return{update:function(){var e=this.toPlainObject();return t({entityType:"AppDefinition",action:"update",params:o(e),headers:{},payload:e}).then((function(e){return wy(t,e)}))},delete:function(){var e=this.toPlainObject();return t({entityType:"AppDefinition",action:"delete",params:o(e)})},getAppBundle:function(e){var r=this.toPlainObject();return t({entityType:"AppBundle",action:"get",params:{appBundleId:e,appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id}}).then((function(e){return n(t,e)}))},getAppBundles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppBundle",action:"getMany",params:{organizationId:n.sys.organization.sys.id,appDefinitionId:n.sys.id,query:e}}).then((function(e){return r(t,e)}))},createAppBundle:function(e){var r=this.toPlainObject();return t({entityType:"AppBundle",action:"create",params:{appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id},payload:e}).then((function(e){return n(t,e)}))},getInstallationsForOrg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppDefinition",action:"getInstallationsForOrg",params:{appDefinitionId:n.sys.id,organizationId:n.sys.organization.sys.id,query:e}})}}}(t));return Ae(n)}var Oy=Fo(wy);function jy(t,e){return cy(ke(Zr(e)),function(t){return{delete:function(){return t({entityType:"AppDetails",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(t))}function Py(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,appDefinitionId:t.sys.appDefinition.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"upsert",params:e(n),headers:{},payload:n}).then((function(e){return Py(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"delete",params:e(n)})}}}(t));return Ae(n)}var Iy=Fo(Py);function Sy(t,e){return ke(Zr(e))}function Ey(t,e){return cy(ke(Zr(e)),function(t){return{delete:function(){return t({entityType:"AppSigningSecret",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(t))}function Ty(t,e){return cy(ke(Zr(e)),function(t){return{delete:function(){return t({entityType:"AppEventSubscription",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(t))}function Ay(t,e){return cy(ke(Zr(e)),function(t){return{delete:function(){var e;return t({entityType:"AppKey",action:"delete",params:(e=this,{organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id,fingerprint:e.sys.id})})}}}(t))}var xy=Fo(Ay);function ky(t,e){return Ae(ke(Zr(e)))}function Ly(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{organizationId:t.sys.organization.sys.id,appUploadId:t.sys.id}};return{delete:function(){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"delete",params:e(n)})}}}(t));return Ae(n)}var _y=Fo(Ly),Dy=function(t){return!!t.sys.publishedVersion},My=function(t){return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},Cy=function(t){return!t.sys.publishedVersion},Fy=function(t){return!!t.sys.archivedVersion};function Ry(t){return Ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ry(t)}function Ny(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zy(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ky(t){return Ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(t)}function Vy(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Hy(t,e){for(var n=0;n=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function ld(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function yd(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ld(i,r,o,a,c,"next",t)}function c(t){ld(i,r,o,a,c,"throw",t)}a(void 0)}))}}var dd=function(t){return t.created="created",t.inProgress="inProgress",t.succeeded="succeeded",t.failed="failed",t}({});function hd(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,bulkActionId:e.sys.id}};return{get:function(){var n=this;return yd(fd().mark((function r(){var o;return fd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"BulkAction",action:"get",params:o}).then((function(e){return hd(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},waitProcessing:function(t){var e=this;return yd(fd().mark((function n(){return fd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",ud(yd(fd().mark((function t(){return fd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.get());case 1:case"end":return t.stop()}}),t)}))),t));case 1:case"end":return n.stop()}}),n)})))()}}}(t));return Ae(n)}function vd(t){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(t)}function md(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bd(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function wd(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Od(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){wd(i,r,o,a,c,"next",t)}function c(t){wd(i,r,o,a,c,"throw",t)}a(void 0)}))}}Object.values(dd);var jd=function(t){return t.Document="document",t.Paragraph="paragraph",t.Mention="mention",t}({});function Pd(t){var e,n,r=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,entryId:t.sys.parentEntity.sys.id,commentId:t.sys.id}};return{update:(n=Od(gd().mark((function e(){var n,o;return gd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.toPlainObject(),e.next=3,t({entityType:"Comment",action:"update",params:r(n),payload:n});case 3:return o=e.sent,e.abrupt("return",Id(t,o));case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)}),delete:(e=Od(gd().mark((function e(){var n;return gd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.toPlainObject(),e.next=3,t({entityType:"Comment",action:"delete",params:bd(bd({},r(n)),{},{version:n.sys.version})});case 3:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}}function Id(t,e){return Ae(cy(ke(Zr(e)),Pd(t)))}var Sd=Fo(Id);function Ed(t,e){var n=cy(ke(Zr(e)),function(t){return{update:function(){var e=this,n=e.toPlainObject();return t({entityType:"EditorInterface",action:"update",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,contentTypeId:e.sys.contentType.sys.id},payload:n}).then((function(e){return Ed(t,e)}))},getControlForField:function(t){var e=(this.controls||[]).filter((function(e){return e.fieldId===t}));return e&&e.length>0?e[0]:null}}}(t));return Ae(n)}var Td=Fo(Ed);function Ad(t,e){return Ae(cy(ke(Zr(e)),{}))}var xd=Fo(Ad),kd=["fieldId"];var Ld=function(t,e,n){var r=t.fields.find((function(t){return t.id===e}));return r?(r[n]=!0,Promise.resolve(t)):Promise.reject(new Error("Tried to omitAndDeleteField on a nonexistent field, ".concat(e,", on the content type ").concat(t.name,".")))},_d=function(t,e,n){var r=e.fieldId,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,kd);return Ld(n,r,"omitted").then((function(e){return t({entityType:"ContentType",action:"update",params:o,payload:e})})).then((function(e){return t({entityType:"ContentType",action:"publish",params:o,payload:e})})).then((function(t){return Ld(t,r,"deleted")})).then((function(e){return t({entityType:"ContentType",action:"update",params:o,payload:e})}))};function Dd(t){return Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dd(t)}function Md(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cd(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=e(this).params;return t({entityType:"Snapshot",action:"getManyForContentType",params:Cd(Cd({},r),{},{query:n})}).then((function(e){return xd(t,e)}))},getSnapshot:function(n){var r=e(this).params;return t({entityType:"Snapshot",action:"getForContentType",params:Cd(Cd({},r),{},{snapshotId:n})}).then((function(t){return Ad(0,t)}))},isPublished:function(){return Dy(this)},isUpdated:function(){return My(this)},isDraft:function(){return Cy(this)},omitAndDeleteField:function(n){var r=e(this),o=r.raw,i=r.params;return _d(t,Cd(Cd({},i),{},{fieldId:n}),o).then((function(e){return Fd(t,e)}))}}}(t));return Ae(n)}var Rd=Fo(Fd);function Nd(t){return Nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nd(t)}function zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ud(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=y(this).params;return t({entityType:"Snapshot",action:"getManyForEntry",params:Ud(Ud({},n),{},{query:e})}).then((function(e){return a(t,e)}))},getSnapshot:function(e){var n=y(this).params;return t({entityType:"Snapshot",action:"getForEntry",params:Ud(Ud({},n),{},{snapshotId:e})}).then((function(e){return i(t,e)}))},createComment:function(e){var n=y(this).params;return t({entityType:"Comment",action:"create",params:{spaceId:n.spaceId,environmentId:n.environmentId,parentEntityId:n.entryId,parentEntityType:"Entry"},payload:e}).then((function(e){return f(t,e)}))},getComments:function(){var e=y(this).params;return t({entityType:"Comment",action:"getMany",params:e}).then((function(e){return l(t,e)}))},getComment:function(e){var n=y(this).params;return t({entityType:"Comment",action:"get",params:Ud(Ud({},n),{},{commentId:e})}).then((function(e){return f(t,e)}))},createTask:function(e){var n=y(this).params;return t({entityType:"Task",action:"create",params:n,payload:e}).then((function(e){return u(t,e)}))},getTasks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=y(this).params;return t({entityType:"Task",action:"getMany",params:Ud(Ud({},n),{},{query:e})}).then((function(e){return s(t,e)}))},getTask:function(e){var n=y(this).params;return t({entityType:"Task",action:"get",params:Ud(Ud({},n),{},{taskId:e})}).then((function(e){return u(t,e)}))},isPublished:function(){var t=this.toPlainObject();return Dy(t)},isUpdated:function(){var t=this.toPlainObject();return My(t)},isDraft:function(){var t=this.toPlainObject();return Cy(t)},isArchived:function(){var t=this.toPlainObject();return Fy(t)},references:function(e){var n=this.toPlainObject();return t({entityType:"Entry",action:"references",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.environment.sys.id,entryId:n.sys.id,include:null==e?void 0:e.include}}).then((function(e){return r(t,e)}))}}}(t));return Ae(n)}var Bd=Fo(qd);function Wd(t){return Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wd(t)}function Gd(){Gd=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==Wd(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Kd(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Vd(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Kd(i,r,o,a,c,"next",t)}function c(t){Kd(i,r,o,a,c,"throw",t)}a(void 0)}))}}function Hd(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,releaseId:e.sys.release.sys.id,actionId:e.sys.id}};return{get:function(){var n=this;return Vd(Gd().mark((function r(){var o;return Gd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"ReleaseAction",action:"get",params:o}).then((function(e){return Hd(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},waitProcessing:function(t){var e=this;return Vd(Gd().mark((function n(){return Gd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",ud(Vd(Gd().mark((function t(){return Gd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.get());case 1:case"end":return t.stop()}}),t)}))),t));case 1:case"end":return n.stop()}}),n)})))()}}}(t));return Ae(n)}var Xd=Fo(Hd),Yd=function(t){return t.contentTypeAnnotationNotIn="sys.contentType.metadata.annotations.ContentType[nin]",t}({});function $d(t){return $d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$d(t)}function Jd(){Jd=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==$d(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Qd(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Zd(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Qd(i,r,o,a,c,"next",t)}function c(t){Qd(i,r,o,a,c,"throw",t)}a(void 0)}))}}var th=Yd;function eh(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,releaseId:e.sys.id,version:e.sys.version}};return{archive:function(){var n=this;return Zd(Jd().mark((function r(){var o;return Jd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"Release",action:"archive",params:o}).then((function(e){return eh(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},unarchive:function(){var n=this;return Zd(Jd().mark((function r(){var o;return Jd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"Release",action:"unarchive",params:o}).then((function(e){return eh(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},update:function(n){var r=this;return Zd(Jd().mark((function o(){var i;return Jd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"update",params:i,payload:n}).then((function(e){return eh(t,e)})));case 2:case"end":return o.stop()}}),o)})))()},delete:function(){var n=this;return Zd(Jd().mark((function r(){var o;return Jd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.next=3,t({entityType:"Release",action:"delete",params:o});case 3:case"end":return r.stop()}}),r)})))()},publish:function(n){var r=this;return Zd(Jd().mark((function o(){var i;return Jd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"publish",params:i}).then((function(e){return Hd(t,e)})).then((function(t){return t.waitProcessing(n)})));case 2:case"end":return o.stop()}}),o)})))()},unpublish:function(n){var r=this;return Zd(Jd().mark((function o(){var i;return Jd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"unpublish",params:i}).then((function(e){return Hd(t,e)})).then((function(t){return t.waitProcessing(n)})));case 2:case"end":return o.stop()}}),o)})))()},validate:function(n){var r=this;return Zd(Jd().mark((function o(){var i;return Jd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"validate",params:i,payload:null==n?void 0:n.payload}).then((function(e){return Hd(t,e)})).then((function(t){return t.waitProcessing(null==n?void 0:n.processingOptions)})));case 2:case"end":return o.stop()}}),o)})))()}}}(t));return Ae(n)}var nh=Ro(eh);function rh(t){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(t)}function oh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ih(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function fh(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function lh(t,e){return Ae(cy(ke(Zr(e)),function(t){var e,n,r=Zv.uiConfig.wrapUIConfig,o=function(t){var e=t.toPlainObject();return{params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id},raw:e}};return{update:(e=ph().mark((function e(){var n,i,a,c;return ph().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o(this),i=n.raw,a=n.params,e.next=3,t({entityType:"UIConfig",action:"update",params:a,payload:i});case 3:return c=e.sent,e.abrupt("return",r(t,c));case 5:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){fh(i,r,o,a,c,"next",t)}function c(t){fh(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return n.apply(this,arguments)})}}(t)))}function yh(t){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(t)}function dh(){dh=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==yh(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function hh(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function vh(t,e){return Ae(cy(ke(Zr(e)),function(t){var e,n,r=Zv.userUIConfig.wrapUserUIConfig,o=function(t){var e=t.toPlainObject();return{params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id},raw:e}};return{update:(e=dh().mark((function e(){var n,i,a,c;return dh().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o(this),i=n.raw,a=n.params,e.next=3,t({entityType:"UserUIConfig",action:"update",params:a,payload:i});case 3:return c=e.sent,e.abrupt("return",r(t,c));case 5:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){hh(i,r,o,a,c,"next",t)}function c(t){hh(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return n.apply(this,arguments)})}}(t)))}function mh(t,e){return Ae(ke(Zr(e)))}var bh=Ro(mh);function gh(t){return gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(t)}var wh=["installationId"];function Oh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jh(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Ih(){Ih=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==gh(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Sh(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Eh(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Sh(i,r,o,a,c,"next",t)}function c(t){Sh(i,r,o,a,c,"throw",t)}a(void 0)}))}}function Th(t,e){var n=ke(Zr(e)),r=function(t){var e=Zv.environment.wrapEnvironment,n=Zv.contentType,r=n.wrapContentType,o=n.wrapContentTypeCollection,i=Zv.entry,a=i.wrapEntry,c=i.wrapEntryCollection,u=Zv.asset,s=u.wrapAsset,p=u.wrapAssetCollection,f=Zv.assetKey.wrapAssetKey,l=Zv.locale,y=l.wrapLocale,d=l.wrapLocaleCollection,h=Zv.snapshot.wrapSnapshotCollection,v=Zv.editorInterface,m=v.wrapEditorInterface,b=v.wrapEditorInterfaceCollection,g=Zv.upload.wrapUpload,w=Zv.extension,O=w.wrapExtension,j=w.wrapExtensionCollection,P=Zv.appInstallation,I=P.wrapAppInstallation,S=P.wrapAppInstallationCollection,E=Zv.appSignedRequest.wrapAppSignedRequest,T=Zv.appActionCall.wrapAppActionCall,A=Zv.bulkAction.wrapBulkAction,x=Zv.appAccessToken.wrapAppAccessToken;return{delete:function(){var e=this.toPlainObject();return t({entityType:"Environment",action:"delete",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(){}))},update:function(){var n=this.toPlainObject();return t({entityType:"Environment",action:"update",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:n}).then((function(n){return e(t,n)}))},getEntryFromData:function(e){return a(t,e)},getAssetFromData:function(e){return s(t,e)},getBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,bulkActionId:e}}).then((function(e){return A(t,e)}))},createPublishBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"publish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return A(t,e)}))},createValidateBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"validate",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return A(t,e)}))},createUnpublishBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"unpublish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return A(t,e)}))},getContentType:function(e){var n=this.toPlainObject();return t({entityType:"ContentType",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:e}}).then((function(e){return r(t,e)}))},getContentTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"ContentType",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return o(t,e)}))},createContentType:function(e){var n=this.toPlainObject();return t({entityType:"ContentType",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return r(t,e)}))},createContentTypeWithId:function(e,n){var o=this.toPlainObject();return t({entityType:"ContentType",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,contentTypeId:e},payload:n}).then((function(e){return r(t,e)}))},getEditorInterfaceForContentType:function(e){var n=this.toPlainObject();return t({entityType:"EditorInterface",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:e}}).then((function(e){return m(t,e)}))},getEditorInterfaces:function(){var e=this.toPlainObject();return t({entityType:"EditorInterface",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return b(t,e)}))},getEntry:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Entry",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:e,query:Ee({query:n}).params}}).then((function(e){return a(t,e)}))},deleteEntry:function(e){var n=this.toPlainObject();return t({entityType:"Entry",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,entryId:e}}).then((function(){}))},getEntries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Entry",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return c(t,e)}))},getPublishedEntries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Entry",action:"getPublished",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return c(t,e)}))},createEntry:function(e,n){var r=this.toPlainObject();return t({entityType:"Entry",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:e},payload:n}).then((function(e){return a(t,e)}))},createEntryWithId:function(e,n,r){var o=this.toPlainObject();return t({entityType:"Entry",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,entryId:n,contentTypeId:e},payload:r}).then((function(e){return a(t,e)}))},getEntryReferences:function(e,n){var r=this.toPlainObject();return t({entityType:"Entry",action:"references",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:e,include:null==n?void 0:n.include}}).then((function(e){return c(t,e)}))},getAsset:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Asset",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,assetId:e,query:Ee({query:n}).params}}).then((function(e){return s(t,e)}))},getAssets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Asset",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return p(t,e)}))},getPublishedAssets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Asset",action:"getPublished",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return p(t,e)}))},createAsset:function(e){var n=this.toPlainObject();return t({entityType:"Asset",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return s(t,e)}))},createAssetWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Asset",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,assetId:e},payload:n}).then((function(e){return s(t,e)}))},createAssetFromFiles:function(e,n){var r=this.toPlainObject();return t({entityType:"Asset",action:"createFromFiles",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,uploadTimeout:null==n?void 0:n.uploadTimeout},payload:e}).then((function(e){return s(t,e)}))},createAssetKey:function(e){var n=this.toPlainObject();return t({entityType:"AssetKey",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return f(t,e)}))},getUpload:function(e){var n=this.toPlainObject();return t({entityType:"Upload",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,uploadId:e}}).then((function(e){return g(t,e)}))},createUpload:function(e){var n=this.toPlainObject();return t({entityType:"Upload",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return g(t,e)}))},getLocale:function(e){var n=this.toPlainObject();return t({entityType:"Locale",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,localeId:e}}).then((function(e){return y(t,e)}))},getLocales:function(){var e=this.toPlainObject();return t({entityType:"Locale",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return d(t,e)}))},createLocale:function(e){var n=this.toPlainObject();return t({entityType:"Locale",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return y(t,e)}))},getUiExtension:function(e){var n=this.toPlainObject();return t({entityType:"Extension",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,extensionId:e}}).then((function(e){return O(t,e)}))},getUiExtensions:function(){var e=this.toPlainObject();return t({entityType:"Extension",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return j(t,e)}))},createUiExtension:function(e){var n=this.toPlainObject();return t({entityType:"Extension",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return O(t,e)}))},createUiExtensionWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Extension",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,extensionId:e},payload:n}).then((function(e){return O(t,e)}))},createAppInstallation:function(e,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).acceptAllTerms,o=this.toPlainObject();return t({entityType:"AppInstallation",action:"upsert",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,appDefinitionId:e,acceptAllTerms:r},payload:n}).then((function(e){return I(t,e)}))},getAppInstallation:function(e){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,appDefinitionId:e}}).then((function(e){return I(t,e)}))},getAppInstallations:function(){var e=this.toPlainObject();return t({entityType:"AppInstallation",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return S(t,e)}))},createAppActionCall:function(e,n,r){var o=this.toPlainObject();return t({entityType:"AppActionCall",action:"create",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,appDefinitionId:e,appActionId:n},payload:r}).then((function(e){return T(t,e)}))},createAppSignedRequest:function(e,n){var r=this.toPlainObject();return t({entityType:"AppSignedRequest",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return E(t,e)}))},createAppAccessToken:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAccessToken",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return x(t,e)}))},getEntrySnapshots:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Snapshot",action:"getManyForEntry",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:e,query:n}}).then((function(e){return h(t,e)}))},getContentTypeSnapshots:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Snapshot",action:"getManyForContentType",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:e,query:n}}).then((function(e){return h(t,e)}))},createTag:function(e,n,r){var o=this.toPlainObject();return t({entityType:"Tag",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,tagId:e},payload:{name:n,sys:{visibility:null!=r?r:"private"}}}).then((function(e){return ch(t,e)}))},getTags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Tag",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return uh(t,e)}))},getTag:function(e){var n=this.toPlainObject();return t({entityType:"Tag",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,tagId:e}}).then((function(e){return ch(t,e)}))},getRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:e}}).then((function(e){return eh(t,e)}))},getReleases:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"query",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:e}}).then((function(e){return nh(t,e)}))},createRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return eh(t,e)}))},updateRelease:function(e){var n=e.releaseId,r=e.payload,o=e.version,i=this.toPlainObject();return t({entityType:"Release",action:"update",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,releaseId:n,version:o},payload:r}).then((function(e){return eh(t,e)}))},deleteRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:e}})},publishRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"publish",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Hd(t,e)}))},unpublishRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"unpublish",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Hd(t,e)}))},validateRelease:function(e){var n=e.releaseId,r=e.payload,o=this.toPlainObject();return t({entityType:"Release",action:"validate",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n},payload:r}).then((function(e){return Hd(t,e)}))},archiveRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"archive",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return eh(t,e)}))},unarchiveRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"unarchive",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return eh(t,e)}))},getReleaseAction:function(e){var n=e.actionId,r=e.releaseId,o=this.toPlainObject();return t({entityType:"ReleaseAction",action:"get",params:{actionId:n,spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:r}}).then((function(e){return Hd(t,e)}))},getReleaseActions:function(e){var n=e.query,r=this.toPlainObject();return t({entityType:"ReleaseAction",action:"getMany",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,query:n}}).then((function(e){return Xd(t,e)}))},getUIConfig:function(){var e=this;return Eh(Ih().mark((function n(){var r,o;return Ih().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.toPlainObject(),n.next=3,t({entityType:"UIConfig",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id}});case 3:return o=n.sent,n.abrupt("return",lh(t,o));case 5:case"end":return n.stop()}}),n)})))()},getUserUIConfig:function(){var e=this;return Eh(Ih().mark((function n(){var r,o;return Ih().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.toPlainObject(),n.next=3,t({entityType:"UserUIConfig",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id}});case 3:return o=n.sent,n.abrupt("return",vh(t,o));case 5:case"end":return n.stop()}}),n)})))()},getEnvironmentTemplateInstallations:function(e){var n=arguments,r=this;return Eh(Ih().mark((function o(){var i,a,c,u;return Ih().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=(i=n.length>1&&void 0!==n[1]?n[1]:{}).installationId,c=Ph(i,wh),u=r.toPlainObject(),o.abrupt("return",t({entityType:"EnvironmentTemplateInstallation",action:"getForEnvironment",params:jh(jh({environmentTemplateId:e},a&&{installationId:a}),{},{query:jh({},Ee({query:c}).params),spaceId:u.sys.space.sys.id,environmentId:u.sys.id})}).then((function(e){return bh(t,e)})));case 4:case"end":return o.stop()}}),o)})))()}}}(t);return Ae(cy(n,r))}var Ah=Fo(Th);function xh(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentAliasId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"update",params:e(n),payload:n}).then((function(e){return xh(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"delete",params:e(n)}).then((function(){}))}}}(t));return Ae(n)}var kh=Fo(xh);function Lh(t){return Lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lh(t)}var _h=["spaceId","environmentId"];function Dh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mh(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=n.spaceId,o=n.environmentId,a=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(n,_h),c=this.toPlainObject();return t({entityType:"EnvironmentTemplateInstallation",action:"getMany",params:{organizationId:e,environmentTemplateId:c.sys.id,query:Mh({},Ee({query:a}).params),spaceId:r,environmentId:o}}).then((function(e){return i(t,e)}))},validate:function(e){var n=e.spaceId,r=e.environmentId,o=e.version,i=e.takeover,a=e.changeSet,c=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"validate",params:{spaceId:n,version:o,environmentId:r,environmentTemplateId:c.sys.id},payload:Mh(Mh({},i&&{takeover:i}),a&&{changeSet:a})})},install:function(e){var n=e.spaceId,r=e.environmentId,o=e.installation,i=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"install",params:{spaceId:n,environmentId:r,environmentTemplateId:i.sys.id},payload:o})},disconnect:function(e){var n=e.spaceId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"disconnect",params:{spaceId:n,environmentId:r,environmentTemplateId:o.sys.id}})}}}(t,n);return Ae(cy(r,o))}var Fh=Ro(Ch);function Rh(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,extensionId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Extension",action:"update",params:e(n),payload:n}).then((function(e){return Rh(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Extension",action:"delete",params:e(n)})}}}(t));return Ae(n)}var Nh=Fo(Rh);function zh(t,e){delete e.internal_code;var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,localeId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Locale",action:"update",params:e(n),payload:n}).then((function(e){return zh(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Locale",action:"delete",params:e(n)}).then((function(){}))}}}(t));return Ae(n)}var Uh=Fo(zh);function qh(t){return qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qh(t)}function Bh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wh(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Space",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return M(t,e)}))},getUser:function(e){var n=this.toPlainObject();return t({entityType:"User",action:"getForOrganization",params:{organizationId:n.sys.id,userId:e}}).then((function(e){return i(t,e)}))},getUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"User",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return a(t,e)}))},getOrganizationMembership:function(e){var n=this.toPlainObject().sys.id;return t({entityType:"OrganizationMembership",action:"get",params:{organizationId:n,organizationMembershipId:e}}).then((function(e){return u(t,e,n)}))},getOrganizationMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"getMany",params:Wh({organizationId:n.sys.id},e)}).then((function(e){return s(t,e,n.sys.id)}))},createTeam:function(e){var n=this.toPlainObject();return t({entityType:"Team",action:"create",params:{organizationId:n.sys.id},payload:e}).then((function(e){return m(t,e)}))},getTeam:function(e){var n=this.toPlainObject();return t({entityType:"Team",action:"get",params:{organizationId:n.sys.id,teamId:e}}).then((function(e){return m(t,e)}))},getTeams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Team",action:"getMany",params:{organizationId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return b(t,e)}))},createTeamMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamMembership",action:"create",params:{organizationId:r.sys.id,teamId:e},payload:n}).then((function(e){return f(t,e)}))},getTeamMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamMembership",action:"get",params:{organizationId:r.sys.id,teamId:e,teamMembershipId:n}}).then((function(e){return f(t,e)}))},getTeamMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.teamId,r=e.query,o=void 0===r?{}:r,i=this.toPlainObject();return n?t({entityType:"TeamMembership",action:"getManyForTeam",params:{organizationId:i.sys.id,teamId:n,query:Ee({query:o}).params}}).then((function(e){return l(t,e)})):t({entityType:"TeamMembership",action:"getManyForOrganization",params:{organizationId:i.sys.id,query:Ee({query:o}).params}}).then((function(e){return l(t,e)}))},getTeamSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Ee({query:e.query||{}}).params,teamId:e.teamId}}).then((function(e){return h(t,e)}))},getTeamSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,teamSpaceMembershipId:e}}).then((function(e){return d(t,e)}))},getOrganizationSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,spaceMembershipId:e}}).then((function(e){return w(t,e)}))},getOrganizationSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return O(t,e)}))},getOrganizationInvitation:function(e){var n=this.toPlainObject();return t({entityType:"OrganizationInvitation",action:"get",params:{organizationId:n.sys.id,invitationId:e}}).then((function(e){return j(t,e)}))},createOrganizationInvitation:function(e){var n=this.toPlainObject();return t({entityType:"OrganizationInvitation",action:"create",params:{organizationId:n.sys.id},payload:e}).then((function(e){return j(t,e)}))},getRoles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Role",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return D(t,e)}))},createAppDefinition:function(e){var r=this.toPlainObject();return t({entityType:"AppDefinition",action:"create",params:{organizationId:r.sys.id},payload:e}).then((function(e){return n(t,e)}))},getAppDefinitions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppDefinition",action:"getMany",params:{organizationId:n.sys.id,query:e}}).then((function(e){return r(t,e)}))},getAppDefinition:function(e){var r=this.toPlainObject();return t({entityType:"AppDefinition",action:"get",params:{organizationId:r.sys.id,appDefinitionId:e}}).then((function(e){return n(t,e)}))},getAppUpload:function(e){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"get",params:{organizationId:n.sys.id,appUploadId:e}}).then((function(e){return P(t,e)}))},createAppUpload:function(e){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"create",params:{organizationId:n.sys.id},payload:{file:e}}).then((function(e){return P(t,e)}))},upsertAppSigningSecret:function(e,n){var r=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"upsert",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return I(t,e)}))},getAppSigningSecret:function(e){var n=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"get",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return I(t,e)}))},deleteAppSigningSecret:function(e){var n=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(){}))},upsertAppEventSubscription:function(e,n){var r=this.toPlainObject();return t({entityType:"AppEventSubscription",action:"upsert",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return S(t,e)}))},getAppEventSubscription:function(e){var n=this.toPlainObject();return t({entityType:"AppEventSubscription",action:"get",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return S(t,e)}))},deleteAppEventSubscription:function(e){var n=this.toPlainObject();return t({entityType:"AppEventSubscription",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(){}))},createAppKey:function(e,n){var r=this.toPlainObject();return t({entityType:"AppKey",action:"create",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return T(t,e)}))},getAppKey:function(e,n){var r=this.toPlainObject();return t({entityType:"AppKey",action:"get",params:{organizationId:r.sys.id,appDefinitionId:e,fingerprint:n}}).then((function(e){return T(t,e)}))},getAppKeys:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"AppKey",action:"getMany",params:{organizationId:r.sys.id,appDefinitionId:e,query:Ee({query:n}).params}}).then((function(e){return A(t,e)}))},deleteAppKey:function(e,n){var r=this.toPlainObject();return t({entityType:"AppKey",action:"delete",params:{organizationId:r.sys.id,appDefinitionId:e,fingerprint:n}}).then((function(){}))},upsertAppDetails:function(e,n){var r=this.toPlainObject();return t({entityType:"AppDetails",action:"upsert",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return x(t,e)}))},getAppDetails:function(e){var n=this.toPlainObject();return t({entityType:"AppDetails",action:"get",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return x(t,e)}))},deleteAppDetails:function(e){var n=this.toPlainObject();return t({entityType:"AppDetails",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(){}))},createAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"create",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return L(t,e)}))},updateAppAction:function(e,n,r){var o=this.toPlainObject();return t({entityType:"AppAction",action:"update",params:{organizationId:o.sys.id,appDefinitionId:e,appActionId:n},payload:r}).then((function(e){return L(t,e)}))},deleteAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"delete",params:{organizationId:r.sys.id,appDefinitionId:e,appActionId:n}}).then((function(t){}))},getAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"get",params:{organizationId:r.sys.id,appDefinitionId:e,appActionId:n}}).then((function(e){return L(t,e)}))},getAppActions:function(e){var n=this.toPlainObject();return t({entityType:"AppAction",action:"getMany",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return _(t,e)}))}}}(t);return Ae(cy(n,r))}var Kh=Fo(Gh);function Vh(t,e){return Ae(ke(Zr(e)))}function Hh(t,e,n){var r=cy(ke(Zr(e)),function(t,e){var n=function(t){return{organizationMembershipId:t.sys.id,organizationId:e}};return{update:function(){var r=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"update",params:n(r),payload:r}).then((function(n){return Hh(t,n,e)}))},delete:function(){var e=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"delete",params:n(e)})}}}(t,n));return Ae(r)}var Xh=Fo(Hh);function Yh(t,e){return Ae(cy(ke(Zr(e)),{revoke:function(){return t({entityType:"PersonalAccessToken",action:"revoke",params:{tokenId:e.sys.id}}).then((function(e){return Yh(t,e)}))}}))}var $h=Fo(Yh);function Jh(t,e){return Ae(cy(ke(Zr(e)),{revoke:function(){return t({entityType:"AccessToken",action:"revoke",params:{tokenId:e.sys.id}}).then((function(e){return Jh(t,e)}))}}))}var Qh=Fo(Jh);function Zh(t,e){return Ae(cy(ke(Zr(e)),{}))}var tv=Fo(Zh);function ev(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,roleId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Role",action:"update",params:e(n),payload:n}).then((function(e){return ev(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Role",action:"delete",params:e(n)})}}}(t));return Ae(n)}var nv=Fo(ev);function rv(t){return rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(t)}var ov=["sys"];function iv(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function av(){av=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var l="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(L([])));j&&j!==n&&r.call(j,a)&&(w=j);var P=g.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==rv(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=l;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function cv(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function uv(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){cv(i,r,o,a,c,"next",t)}function c(t){cv(i,r,o,a,c,"throw",t)}a(void 0)}))}}function sv(t){var e=function(t){var e,n=t.toPlainObject();return{spaceId:n.sys.space.sys.id,environmentId:null===(e=n.environment)||void 0===e?void 0:e.sys.id,scheduledActionId:n.sys.id,version:n.sys.version}};return{delete:function(){var n=this;return uv(av().mark((function r(){var o;return av().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"ScheduledAction",action:"delete",params:o}).then((function(e){return pv(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},update:function(){var n=this;return uv(av().mark((function r(){var o,i,a;return av().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),(i=n.toPlainObject()).sys,a=iv(i,ov),r.abrupt("return",t({entityType:"ScheduledAction",action:"update",params:o,payload:a}).then((function(e){return pv(t,e)})));case 3:case"end":return r.stop()}}),r)})))()}}}function pv(t,e){return Ae(cy(ke(Zr(e)),sv(t)))}var fv=Fo(pv);function lv(t,e){var n=ke(Zr(e)),r=function(t){var e=Zv.space.wrapSpace,n=Zv.environment,r=n.wrapEnvironment,o=n.wrapEnvironmentCollection,i=Zv.webhook,a=i.wrapWebhook,c=i.wrapWebhookCollection,u=Zv.role,s=u.wrapRole,p=u.wrapRoleCollection,f=Zv.user,l=f.wrapUser,y=f.wrapUserCollection,d=Zv.spaceMember,h=d.wrapSpaceMember,v=d.wrapSpaceMemberCollection,m=Zv.spaceMembership,b=m.wrapSpaceMembership,g=m.wrapSpaceMembershipCollection,w=Zv.teamSpaceMembership,O=w.wrapTeamSpaceMembership,j=w.wrapTeamSpaceMembershipCollection,P=Zv.team.wrapTeamCollection,I=Zv.apiKey,S=I.wrapApiKey,E=I.wrapApiKeyCollection,T=Zv.environmentAlias,A=T.wrapEnvironmentAlias,x=T.wrapEnvironmentAliasCollection,k=Zv.previewApiKey,L=k.wrapPreviewApiKey,_=k.wrapPreviewApiKeyCollection,D=Zv.scheduledAction,M=D.wrapScheduledAction,C=D.wrapScheduledActionCollection;return{delete:function(){var e=this.toPlainObject();return t({entityType:"Space",action:"delete",params:{spaceId:e.sys.id}})},update:function(){var n=this.toPlainObject();return t({entityType:"Space",action:"update",params:{spaceId:n.sys.id},payload:n,headers:{}}).then((function(n){return e(t,n)}))},getEnvironment:function(e){var n=this.toPlainObject();return t({entityType:"Environment",action:"get",params:{spaceId:n.sys.id,environmentId:e}}).then((function(e){return r(t,e)}))},getEnvironments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Environment",action:"getMany",params:{spaceId:n.sys.id,query:e}}).then((function(e){return o(t,e)}))},createEnvironment:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Environment",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return r(t,e)}))},createEnvironmentWithId:function(e,n,o){var i=this.toPlainObject();return t({entityType:"Environment",action:"createWithId",params:{spaceId:i.sys.id,environmentId:e,sourceEnvironmentId:o},payload:n}).then((function(e){return r(t,e)}))},getWebhook:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"get",params:{spaceId:n.sys.id,webhookDefinitionId:e}}).then((function(e){return a(t,e)}))},getWebhooks:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return c(t,e)}))},getWebhookSigningSecret:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"getSigningSecret",params:{spaceId:e.sys.id}})},getWebhookRetryPolicy:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"getRetryPolicy",params:{spaceId:e.sys.id}})},createWebhook:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return a(t,e)}))},createWebhookWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Webhook",action:"createWithId",params:{spaceId:r.sys.id,webhookDefinitionId:e},payload:n}).then((function(e){return a(t,e)}))},upsertWebhookSigningSecret:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"upsertSigningSecret",params:{spaceId:n.sys.id},payload:e})},upsertWebhookRetryPolicy:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"upsertRetryPolicy",params:{spaceId:n.sys.id},payload:e})},deleteWebhookSigningSecret:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"deleteSigningSecret",params:{spaceId:e.sys.id}})},deleteWebhookRetryPolicy:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"deleteRetryPolicy",params:{spaceId:e.sys.id}})},getRole:function(e){var n=this.toPlainObject();return t({entityType:"Role",action:"get",params:{spaceId:n.sys.id,roleId:e}}).then((function(e){return s(t,e)}))},getRoles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Role",action:"getMany",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return p(t,e)}))},createRole:function(e){var n=this.toPlainObject();return t({entityType:"Role",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return s(t,e)}))},createRoleWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Role",action:"createWithId",params:{spaceId:r.sys.id,roleId:e},payload:n}).then((function(e){return s(t,e)}))},getSpaceUser:function(e){var n=this.toPlainObject();return t({entityType:"User",action:"getForSpace",params:{spaceId:n.sys.id,userId:e}}).then((function(e){return l(t,e)}))},getSpaceUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"User",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return y(t,e)}))},getTeams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{limit:100},n=this.toPlainObject();return t({entityType:"Team",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return P(t,e)}))},getSpaceMember:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMember",action:"get",params:{spaceId:n.sys.id,spaceMemberId:e}}).then((function(e){return h(t,e)}))},getSpaceMembers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMember",action:"getMany",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return v(t,e)}))},getSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"get",params:{spaceId:n.sys.id,spaceMembershipId:e}}).then((function(e){return b(t,e)}))},getSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return g(t,e)}))},createSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return b(t,e)}))},createSpaceMembershipWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"SpaceMembership",action:"createWithId",params:{spaceId:r.sys.id,spaceMembershipId:e},payload:n}).then((function(e){return b(t,e)}))},getTeamSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"get",params:{spaceId:n.sys.id,teamSpaceMembershipId:e}}).then((function(e){return O(t,e)}))},getTeamSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Ee({query:e}).params}}).then((function(e){return j(t,e)}))},createTeamSpaceMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"create",params:{spaceId:r.sys.id,teamId:e},payload:n}).then((function(e){return O(t,e)}))},getApiKey:function(e){var n=this.toPlainObject();return t({entityType:"ApiKey",action:"get",params:{spaceId:n.sys.id,apiKeyId:e}}).then((function(e){return S(t,e)}))},getApiKeys:function(){var e=this.toPlainObject();return t({entityType:"ApiKey",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return E(t,e)}))},getPreviewApiKeys:function(){var e=this.toPlainObject();return t({entityType:"PreviewApiKey",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return _(t,e)}))},getPreviewApiKey:function(e){var n=this.toPlainObject();return t({entityType:"PreviewApiKey",action:"get",params:{spaceId:n.sys.id,previewApiKeyId:e}}).then((function(e){return L(t,e)}))},createApiKey:function(e){var n=this.toPlainObject();return t({entityType:"ApiKey",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return S(t,e)}))},createApiKeyWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"ApiKey",action:"createWithId",params:{spaceId:r.sys.id,apiKeyId:e},payload:n}).then((function(e){return S(t,e)}))},createEnvironmentAliasWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"createWithId",params:{spaceId:r.sys.id,environmentAliasId:e},payload:n}).then((function(e){return A(t,e)}))},getEnvironmentAlias:function(e){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"get",params:{spaceId:n.sys.id,environmentAliasId:e}}).then((function(e){return A(t,e)}))},getEnvironmentAliases:function(){var e=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return x(t,e)}))},getScheduledActions:function(e){var n=this.toPlainObject();return t({entityType:"ScheduledAction",action:"getMany",params:{spaceId:n.sys.id,query:e}}).then((function(e){return C(t,e)}))},getScheduledAction:function(e){var n=e.scheduledActionId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"ScheduledAction",action:"get",params:{spaceId:o.sys.id,environmentId:r,scheduledActionId:n}}).then((function(e){return M(t,e)}))},createScheduledAction:function(e){var n=this.toPlainObject();return t({entityType:"ScheduledAction",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return M(t,e)}))},updateScheduledAction:function(e){var n=e.scheduledActionId,r=e.payload,o=e.version,i=this.toPlainObject();return t({entityType:"ScheduledAction",action:"update",params:{spaceId:i.sys.id,version:o,scheduledActionId:n},payload:r}).then((function(e){return M(t,e)}))},deleteScheduledAction:function(e){var n=e.scheduledActionId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"ScheduledAction",action:"delete",params:{spaceId:o.sys.id,environmentId:r,scheduledActionId:n}}).then((function(e){return M(t,e)}))}}}(t);return Ae(cy(n,r))}var yv=Fo(lv);function dv(t,e){return Ae(ke(Zr(e)))}var hv=Fo(dv);function vv(t,e){var n=cy(ke(Zr(e)),function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,spaceMembershipId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"update",params:e(n),payload:n}).then((function(e){return vv(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"delete",params:e(n)})}}}(t));return Ae(n)}var mv=Fo(vv);function bv(t){return bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bv(t)}function gv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wv(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function _v(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Dv(t,e){return Ae(cy(ke(Zr(e)),function(t){return{delete:(e=Lv().mark((function e(){var n;return Lv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.toPlainObject(),e.next=3,t({entityType:"Upload",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,uploadId:n.sys.id}});case 3:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){_v(i,r,o,a,c,"next",t)}function c(t){_v(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return n.apply(this,arguments)})};var e,n}(t)))}function Mv(t,e){return Ae(cy(ke(Zr(e)),{}))}var Cv=Fo(Mv);function Fv(t,e){return Ae(cy(ke(Zr(e)),{}))}var Rv=Fo(Fv);function Nv(t){return Nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nv(t)}function zv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uv(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rm(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n="plain"===e.type?"contentful-management-plain.js":"contentful-management.js",r=function(t,e,n,r){var o=[];e&&o.push("app ".concat(e)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(t));var i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=xe(),o.push("platform ReactNative")):"undefined"==typeof process||process.browser?(i=xe(),o.push("platform browser")):(i=function(){var t=process.platform||"linux",e=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?"".concat(n[t]||"Linux","/").concat(e):null}(),o.push("platform node.js/".concat(process.versions&&process.versions.node?"v".concat(process.versions.node):process.version)))}catch(t){i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter((function(t){return""!==t})).join("; "),";")}("".concat(n,"/").concat("11.25.3"),t.application,t.integration,t.feature),o=function(t){return"apiAdapter"in t?t.apiAdapter:new ay(t)}(Wm(Wm({},t),{},{userAgent:r})),i=function(t){return o.makeRequest(Wm(Wm({},t),{},{userAgent:r}))};return"plain"===e.type?um(i,e.defaults):function(t){var e=Zv.space,n=e.wrapSpace,r=e.wrapSpaceCollection,o=Zv.user.wrapUser,i=Zv.personalAccessToken,a=i.wrapPersonalAccessToken,c=i.wrapPersonalAccessTokenCollection,u=Zv.accessToken,s=u.wrapAccessToken,p=u.wrapAccessTokenCollection,f=Zv.organization,l=f.wrapOrganization,y=f.wrapOrganizationCollection,d=Zv.usage.wrapUsageCollection,h=Zv.appDefinition.wrapAppDefinition,v=Zv.environmentTemplate,m=v.wrapEnvironmentTemplate,b=v.wrapEnvironmentTemplateCollection;return{getEnvironmentTemplates:function(e){return t({entityType:"EnvironmentTemplate",action:"getMany",params:{organizationId:e,query:Ee({query:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}).params}}).then((function(n){return b(t,n,e)}))},getEnvironmentTemplate:function(e){var n=e.organizationId,r=e.environmentTemplateId,o=e.version,i=e.query;return t({entityType:"EnvironmentTemplate",action:"get",params:{organizationId:n,environmentTemplateId:r,version:o,query:Ee({query:void 0===i?{}:i}).params}}).then((function(e){return m(t,e,n)}))},createEnvironmentTemplate:function(e,n){return t({entityType:"EnvironmentTemplate",action:"create",params:{organizationId:e},payload:n}).then((function(n){return m(t,n,e)}))},getSpaces:function(){return t({entityType:"Space",action:"getMany",params:{query:Ee({query:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}).params}}).then((function(e){return r(t,e)}))},getSpace:function(e){return t({entityType:"Space",action:"get",params:{spaceId:e}}).then((function(e){return n(t,e)}))},createSpace:function(e,r){return t({entityType:"Space",action:"create",params:{organizationId:r},payload:e}).then((function(e){return n(t,e)}))},getOrganization:function(e){return t({entityType:"Organization",action:"get",params:{organizationId:e}}).then((function(e){return l(t,e)}))},getOrganizations:function(){return t({entityType:"Organization",action:"getMany",params:{query:Ee({query:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}).params}}).then((function(e){return y(t,e)}))},getCurrentUser:function(e){return t({entityType:"User",action:"getCurrent",params:e}).then((function(e){return o(t,e)}))},getAppDefinition:function(e){return t({entityType:"AppDefinition",action:"get",params:e}).then((function(e){return h(t,e)}))},createPersonalAccessToken:function(e){return t({entityType:"PersonalAccessToken",action:"create",params:{},payload:e}).then((function(e){return a(t,e)}))},getPersonalAccessToken:function(e){return t({entityType:"PersonalAccessToken",action:"get",params:{tokenId:e}}).then((function(e){return a(t,e)}))},getPersonalAccessTokens:function(){return t({entityType:"PersonalAccessToken",action:"getMany",params:{}}).then((function(e){return c(t,e)}))},getAccessToken:function(e){return t({entityType:"AccessToken",action:"get",params:{tokenId:e}}).then((function(e){return s(t,e)}))},getAccessTokens:function(){return t({entityType:"AccessToken",action:"getMany",params:{}}).then((function(e){return p(t,e)}))},getOrganizationAccessTokens:function(e){return t({entityType:"AccessToken",action:"getManyForOrganization",params:{organizationId:e,query:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}).then((function(e){return p(t,e)}))},getOrganizationUsage:function(e){return t({entityType:"Usage",action:"getManyForOrganization",params:{organizationId:e,query:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}).then((function(e){return d(t,e)}))},getSpaceUsage:function(e){return t({entityType:"Usage",action:"getManyForSpace",params:{organizationId:e,query:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}).then((function(e){return d(t,e)}))},rawRequest:function(e){var n=e.url,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,tm);return t({entityType:"Http",action:"request",params:{url:n,config:r}})}}}(i)}}(),r}()})); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/contentful-management.node.js b/node_modules/contentful-management/dist/contentful-management.node.js deleted file mode 100644 index 85517408..00000000 --- a/node_modules/contentful-management/dist/contentful-management.node.js +++ /dev/null @@ -1,29014 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "../node_modules/asynckit/index.js": -/*!*****************************************!*\ - !*** ../node_modules/asynckit/index.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = -{ - parallel : __webpack_require__(/*! ./parallel.js */ "../node_modules/asynckit/parallel.js"), - serial : __webpack_require__(/*! ./serial.js */ "../node_modules/asynckit/serial.js"), - serialOrdered : __webpack_require__(/*! ./serialOrdered.js */ "../node_modules/asynckit/serialOrdered.js") -}; - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/abort.js": -/*!*********************************************!*\ - !*** ../node_modules/asynckit/lib/abort.js ***! - \*********************************************/ -/***/ ((module) => { - -// API -module.exports = abort; - -/** - * Aborts leftover active jobs - * - * @param {object} state - current state object - */ -function abort(state) -{ - Object.keys(state.jobs).forEach(clean.bind(state)); - - // reset leftover jobs - state.jobs = {}; -} - -/** - * Cleans up leftover job by invoking abort function for the provided job id - * - * @this state - * @param {string|number} key - job id to abort - */ -function clean(key) -{ - if (typeof this.jobs[key] == 'function') - { - this.jobs[key](); - } -} - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/async.js": -/*!*********************************************!*\ - !*** ../node_modules/asynckit/lib/async.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var defer = __webpack_require__(/*! ./defer.js */ "../node_modules/asynckit/lib/defer.js"); - -// API -module.exports = async; - -/** - * Runs provided callback asynchronously - * even if callback itself is not - * - * @param {function} callback - callback to invoke - * @returns {function} - augmented callback - */ -function async(callback) -{ - var isAsync = false; - - // check if async happened - defer(function() { isAsync = true; }); - - return function async_callback(err, result) - { - if (isAsync) - { - callback(err, result); - } - else - { - defer(function nextTick_callback() - { - callback(err, result); - }); - } - }; -} - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/defer.js": -/*!*********************************************!*\ - !*** ../node_modules/asynckit/lib/defer.js ***! - \*********************************************/ -/***/ ((module) => { - -module.exports = defer; - -/** - * Runs provided function on next iteration of the event loop - * - * @param {function} fn - function to run - */ -function defer(fn) -{ - var nextTick = typeof setImmediate == 'function' - ? setImmediate - : ( - typeof process == 'object' && typeof process.nextTick == 'function' - ? process.nextTick - : null - ); - - if (nextTick) - { - nextTick(fn); - } - else - { - setTimeout(fn, 0); - } -} - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/iterate.js": -/*!***********************************************!*\ - !*** ../node_modules/asynckit/lib/iterate.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var async = __webpack_require__(/*! ./async.js */ "../node_modules/asynckit/lib/async.js") - , abort = __webpack_require__(/*! ./abort.js */ "../node_modules/asynckit/lib/abort.js") - ; - -// API -module.exports = iterate; - -/** - * Iterates over each job object - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {object} state - current job status - * @param {function} callback - invoked when all elements processed - */ -function iterate(list, iterator, state, callback) -{ - // store current index - var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; - - state.jobs[key] = runJob(iterator, key, list[key], function(error, output) - { - // don't repeat yourself - // skip secondary callbacks - if (!(key in state.jobs)) - { - return; - } - - // clean up jobs - delete state.jobs[key]; - - if (error) - { - // don't process rest of the results - // stop still active jobs - // and reset the list - abort(state); - } - else - { - state.results[key] = output; - } - - // return salvaged results - callback(error, state.results); - }); -} - -/** - * Runs iterator over provided job element - * - * @param {function} iterator - iterator to invoke - * @param {string|number} key - key/index of the element in the list of jobs - * @param {mixed} item - job description - * @param {function} callback - invoked after iterator is done with the job - * @returns {function|mixed} - job abort function or something else - */ -function runJob(iterator, key, item, callback) -{ - var aborter; - - // allow shortcut if iterator expects only two arguments - if (iterator.length == 2) - { - aborter = iterator(item, async(callback)); - } - // otherwise go with full three arguments - else - { - aborter = iterator(item, key, async(callback)); - } - - return aborter; -} - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/state.js": -/*!*********************************************!*\ - !*** ../node_modules/asynckit/lib/state.js ***! - \*********************************************/ -/***/ ((module) => { - -// API -module.exports = state; - -/** - * Creates initial state object - * for iteration over list - * - * @param {array|object} list - list to iterate over - * @param {function|null} sortMethod - function to use for keys sort, - * or `null` to keep them as is - * @returns {object} - initial state object - */ -function state(list, sortMethod) -{ - var isNamedList = !Array.isArray(list) - , initState = - { - index : 0, - keyedList: isNamedList || sortMethod ? Object.keys(list) : null, - jobs : {}, - results : isNamedList ? {} : [], - size : isNamedList ? Object.keys(list).length : list.length - } - ; - - if (sortMethod) - { - // sort array keys based on it's values - // sort object's keys just on own merit - initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) - { - return sortMethod(list[a], list[b]); - }); - } - - return initState; -} - - -/***/ }), - -/***/ "../node_modules/asynckit/lib/terminator.js": -/*!**************************************************!*\ - !*** ../node_modules/asynckit/lib/terminator.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var abort = __webpack_require__(/*! ./abort.js */ "../node_modules/asynckit/lib/abort.js") - , async = __webpack_require__(/*! ./async.js */ "../node_modules/asynckit/lib/async.js") - ; - -// API -module.exports = terminator; - -/** - * Terminates jobs in the attached state context - * - * @this AsyncKitState# - * @param {function} callback - final callback to invoke after termination - */ -function terminator(callback) -{ - if (!Object.keys(this.jobs).length) - { - return; - } - - // fast forward iteration index - this.index = this.size; - - // abort jobs - abort(this); - - // send back results we have so far - async(callback)(null, this.results); -} - - -/***/ }), - -/***/ "../node_modules/asynckit/parallel.js": -/*!********************************************!*\ - !*** ../node_modules/asynckit/parallel.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var iterate = __webpack_require__(/*! ./lib/iterate.js */ "../node_modules/asynckit/lib/iterate.js") - , initState = __webpack_require__(/*! ./lib/state.js */ "../node_modules/asynckit/lib/state.js") - , terminator = __webpack_require__(/*! ./lib/terminator.js */ "../node_modules/asynckit/lib/terminator.js") - ; - -// Public API -module.exports = parallel; - -/** - * Runs iterator over provided array elements in parallel - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function parallel(list, iterator, callback) -{ - var state = initState(list); - - while (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, function(error, result) - { - if (error) - { - callback(error, result); - return; - } - - // looks like it's the last one - if (Object.keys(state.jobs).length === 0) - { - callback(null, state.results); - return; - } - }); - - state.index++; - } - - return terminator.bind(state, callback); -} - - -/***/ }), - -/***/ "../node_modules/asynckit/serial.js": -/*!******************************************!*\ - !*** ../node_modules/asynckit/serial.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var serialOrdered = __webpack_require__(/*! ./serialOrdered.js */ "../node_modules/asynckit/serialOrdered.js"); - -// Public API -module.exports = serial; - -/** - * Runs iterator over provided array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serial(list, iterator, callback) -{ - return serialOrdered(list, iterator, null, callback); -} - - -/***/ }), - -/***/ "../node_modules/asynckit/serialOrdered.js": -/*!*************************************************!*\ - !*** ../node_modules/asynckit/serialOrdered.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var iterate = __webpack_require__(/*! ./lib/iterate.js */ "../node_modules/asynckit/lib/iterate.js") - , initState = __webpack_require__(/*! ./lib/state.js */ "../node_modules/asynckit/lib/state.js") - , terminator = __webpack_require__(/*! ./lib/terminator.js */ "../node_modules/asynckit/lib/terminator.js") - ; - -// Public API -module.exports = serialOrdered; -// sorting helpers -module.exports.ascending = ascending; -module.exports.descending = descending; - -/** - * Runs iterator over provided sorted array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} sortMethod - custom sort function - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serialOrdered(list, iterator, sortMethod, callback) -{ - var state = initState(list, sortMethod); - - iterate(list, iterator, state, function iteratorHandler(error, result) - { - if (error) - { - callback(error, result); - return; - } - - state.index++; - - // are we there yet? - if (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, iteratorHandler); - return; - } - - // done here - callback(null, state.results); - }); - - return terminator.bind(state, callback); -} - -/* - * -- Sort methods - */ - -/** - * sort helper to sort array elements in ascending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function ascending(a, b) -{ - return a < b ? -1 : a > b ? 1 : 0; -} - -/** - * sort helper to sort array elements in descending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function descending(a, b) -{ - return -1 * ascending(a, b); -} - - -/***/ }), - -/***/ "./adapters/REST/endpoints/access-token.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/access-token.ts ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createPersonalAccessToken: () => (/* binding */ createPersonalAccessToken), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ revoke: () => (/* binding */ revoke) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -/** - * Retrieves an access token by its unique token ID for the currently authenticated user. - * - * @param {AxiosInstance} http - An Axios HTTP client instance. - * @param {Object} params - Parameters for the request. - * @param {string} params.tokenId - The unique token ID of the access token to retrieve. - * @returns {Promise} A Promise that resolves with the retrieved access token information. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.get({tokenId: 'TestTokenTd'}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/users/me/access_tokens/${params.tokenId}`); -}; - -/** - * Retrieves multiple access tokens associated with the currently authenticated user. - * - * @param {AxiosInstance} http - An Axios HTTP client instance. - * @param {QueryParams} params - Query parameters to filter and customize the request. - * @returns {Promise>} A Promise that resolves with a collection of access token properties. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.getMany() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, '/users/me/access_tokens', { - params: params.query - }); -}; - -/** - * Creates a personal access token for the currently authenticated user. - * - * @param {AxiosInstance} http - Axios instance for making the HTTP request. - * @param {Object} _params - Unused parameters (can be an empty object). - * @param {CreatePersonalAccessTokenProps} rawData - Data for creating the personal access token. - * @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request. - * @returns {Promise} A Promise that resolves with the created personal access token. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '', - * }, - * { type: 'plain' } - * ) - * plainClient.createPersonalAccessToken({name: 'Test-Name', scope: ['content_management_manage'], expiresIn: 777596.92}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -const createPersonalAccessToken = (http, _params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, '/users/me/access_tokens', rawData, { - headers - }); -}; - -/** - * Revokes an access token associated with the currently authenticated user. - * - * @param {AxiosInstance} http - The Axios HTTP client instance. - * @param {Object} params - The parameters for revoking the access token. - * @param {string} params.tokenId - The unique identifier of the access token to revoke. - * @returns {Promise} A Promise that resolves with the updated access token information after revocation. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.revoke({tokenId: 'TestTokenTd'}) - * .then(token => console.log(token)) - * .catch(console.error) - * ``` - */ -const revoke = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null); -}; - -/** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @param {AxiosInstance} http - The Axios HTTP client instance. - * @param {GetOrganizationParams & QueryParams} params - Parameters for the request, including organization ID and query parameters. - * @param {string} params.organizationId - The unique identifier of the organization. - * @returns {Promise>} A promise that resolves to a collection of access tokens. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const plainClient = contentful.createClient( - * { - * accessToken: '' - * }, - * { type: 'plain' } - * ) - * plainClient.getManyForOrganization({organizationId: 'OrgId'}) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ -const getManyForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/access_tokens`, { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/api-key.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/api-key.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/api_keys`, { - params: params.query - }); -}; -const create = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/api_keys`, data, { - headers - }); -}; -const createWithId = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - if ('accessToken' in data) { - delete data.accessToken; - } - if ('preview_api_key' in data) { - delete data.preview_api_key; - } - if ('policies' in data) { - delete data.policies; - } - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-access-token.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/app-access-token.ts ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`, undefined, { - headers: { - Authorization: `Bearer ${data.jwt}` - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-action-call.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/app-action-call.ts ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithResponse: () => (/* binding */ createWithResponse), -/* harmony export */ getCallDetails: () => (/* binding */ getCallDetails) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common-utils */ "./common-utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data); -}; -const getCallDetails = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`); -}; -const APP_ACTION_CALL_RETRY_INTERVAL = 2000; -const APP_ACTION_CALL_RETRIES = 15; -async function callAppActionResult(http, params, { - callId -}) { - let checkCount = 1; - const retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL; - const retries = params.retries || APP_ACTION_CALL_RETRIES; - return new Promise((resolve, reject) => { - const poll = async () => { - try { - var _result$response, _result$response2; - const result = await getCallDetails(http, _objectSpread(_objectSpread({}, params), {}, { - callId: callId - })); - // The lambda failed or returned a 404, so we shouldn't re-poll anymore - if (result !== null && result !== void 0 && (_result$response = result.response) !== null && _result$response !== void 0 && _result$response.statusCode && !(0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.isSuccessful)(result === null || result === void 0 ? void 0 : (_result$response2 = result.response) === null || _result$response2 === void 0 ? void 0 : _result$response2.statusCode)) { - const error = new Error('App action not found or lambda fails'); - reject(error); - } else if ((0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.isSuccessful)(result.statusCode)) { - resolve(result); - } - - // The logs are not ready yet. Continue waiting for them - else if ((0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.shouldRePoll)(result.statusCode) && checkCount < retries) { - checkCount++; - await (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval); - poll(); - } - - // If the response status code is not successful and is not a status code that should be repolled, reject with an error immediately - else { - const error = new Error('The app action response is taking longer than expected to process.'); - reject(error); - } - } catch (error) { - checkCount++; - if (checkCount > retries) { - reject(new Error('The app action response is taking longer than expected to process.')); - return; - } - // If `appActionCalls.getCallDetails` throws, we re-poll as it might mean that the lambda result is not available in the webhook logs yet - await (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval); - poll(); - } - }; - poll(); - }); -} -const createWithResponse = async (http, params, data) => { - const createResponse = await _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data); - const callId = createResponse.sys.id; - return callAppActionResult(http, params, { - callId - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-action.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-action.ts ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForEnvironment: () => (/* binding */ getManyForEnvironment), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`; -const getAppActionUrl = params => `${getBaseUrl(params)}/${params.appActionId}`; -const getAppActionsEnvUrl = params => { - if (params.environmentId) { - return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`; - } - return `/spaces/${params.spaceId}/actions`; -}; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppActionUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const getManyForEnvironment = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppActionsEnvUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppActionUrl(params)); -}; -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; -const update = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppActionUrl(params), data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-bundle.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-bundle.ts ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`; -const getAppBundleUrl = params => `${getBaseUrl(params)}/${params.appBundleId}`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppBundleUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppBundleUrl(params)); -}; -const create = (http, params, payload) => { - const { - appUploadId, - comment, - actions, - functions - } = payload; - const data = { - upload: { - sys: { - type: 'Link', - linkType: 'AppUpload', - id: appUploadId - } - }, - comment, - actions, - functions - }; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-definition.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/app-definition.ts ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getAppDefinitionUrl: () => (/* binding */ getAppDefinitionUrl), -/* harmony export */ getInstallationsForOrg: () => (/* binding */ getInstallationsForOrg), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions`; -const getAppDefinitionUrl = params => getBaseUrl(params) + `/${params.appDefinitionId}`; -const getBaseUrlForOrgInstallations = params => `/app_definitions/${params.appDefinitionId}/app_installations`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppDefinitionUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -const create = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppDefinitionUrl(params)); -}; -const getInstallationsForOrg = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSpaceId)((0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-details.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/app-details.ts ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ upsert: () => (/* binding */ upsert) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`); -}; -const upsert = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-event-subscription.ts": -/*!***********************************************************!*\ - !*** ./adapters/REST/endpoints/app-event-subscription.ts ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ upsert: () => (/* binding */ upsert) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`); -}; -const upsert = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`, data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-installation.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/app-installation.ts ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getAppInstallationUrl: () => (/* binding */ getAppInstallationUrl), -/* harmony export */ getForOrganization: () => (/* binding */ getForOrganization), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ upsert: () => (/* binding */ upsert) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`; -const getBaseUrlForOrgInstallations = params => `/app_definitions/${params.appDefinitionId}/app_installations`; -const getAppInstallationUrl = params => getBaseUrl(params) + `/${params.appDefinitionId}`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getAppInstallationUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const upsert = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_2__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getAppInstallationUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), params.acceptAllTerms && { - 'X-Contentful-Marketplace': 'i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy' - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getAppInstallationUrl(params)); -}; -const getForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSpaceId)((0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-key.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/app-key.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`); -}; -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`, data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-signed-request.ts": -/*!*******************************************************!*\ - !*** ./adapters/REST/endpoints/app-signed-request.ts ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`, data); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-signing-secret.ts": -/*!*******************************************************!*\ - !*** ./adapters/REST/endpoints/app-signing-secret.ts ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ upsert: () => (/* binding */ upsert) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`); -}; -const upsert = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/app-upload.ts": -/*!***********************************************!*\ - !*** ./adapters/REST/endpoints/app-upload.ts ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); - - -const getBaseUrl = params => `/organizations/${params.organizationId}/app_uploads`; -const getAppUploadUrl = params => `${getBaseUrl(params)}/${params.appUploadId}`; -const get = (http, params) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(httpUpload, getAppUploadUrl(params)); -}; -const del = (http, params) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(httpUpload, getAppUploadUrl(params)); -}; -const create = (http, params, payload) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_1__.getUploadHttpClient)(http); - const { - file - } = payload; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(httpUpload, getBaseUrl(params), file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/asset-key.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/asset-key.ts ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ValidationError: () => (/* binding */ ValidationError), -/* harmony export */ create: () => (/* binding */ create) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60; -class ValidationError extends Error { - constructor(name, message) { - super(`Invalid "${name}" provided, ` + message); - this.name = 'ValidationError'; - } -} -const validateTimestamp = (name, timestamp, options) => { - options = options || {}; - if (typeof timestamp !== 'number') { - throw new ValidationError(name, `only numeric values are allowed for timestamps, provided type was "${typeof timestamp}"`); - } - if (options.maximum && timestamp > options.maximum) { - throw new ValidationError(name, `value (${timestamp}) cannot be further in the future than expected maximum (${options.maximum})`); - } - if (options.now && timestamp < options.now) { - throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`); - } -}; -const create = (http, params, data) => { - const expiresAt = data.expiresAt; - const now = Math.floor(Date.now() / 1000); - const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME; - validateTimestamp('expiresAt', expiresAt, { - maximum: currentMaxLifetime, - now - }); - const postParams = { - expiresAt - }; - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/asset_keys`, postParams); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/asset.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/asset.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: () => (/* binding */ archive), -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createFromFiles: () => (/* binding */ createFromFiles), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getPublished: () => (/* binding */ getPublished), -/* harmony export */ processForAllLocales: () => (/* binding */ processForAllLocales), -/* harmony export */ processForLocale: () => (/* binding */ processForLocale), -/* harmony export */ publish: () => (/* binding */ publish), -/* harmony export */ unarchive: () => (/* binding */ unarchive), -/* harmony export */ unpublish: () => (/* binding */ unpublish), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -const _excluded = ["asset", "locale", "options"], - _excluded2 = ["asset", "options"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - -const get = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -const getPublished = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -const getMany = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.normalizeSelect)(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`); -}; -const publish = (http, params, rawData) => { - var _rawData$sys$version2; - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, null, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version2 = rawData.sys.version) !== null && _rawData$sys$version2 !== void 0 ? _rawData$sys$version2 : 0 - } - }); -}; -const unpublish = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`); -}; -const archive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`); -}; -const unarchive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`); -}; -const create = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_3__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data); -}; -const createWithId = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data); -}; -const createFromFiles = async (http, params, data) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_2__.getUploadHttpClient)(http, { - uploadTimeout: params.uploadTimeout - }); - const { - file - } = data.fields; - return Promise.all(Object.keys(file).map(async locale => { - const { - contentType, - fileName - } = file[locale]; - return (0,_upload__WEBPACK_IMPORTED_MODULE_4__.create)(httpUpload, params, file[locale]).then(upload => { - return { - [locale]: { - contentType, - fileName, - uploadFrom: { - sys: { - type: 'Link', - linkType: 'Upload', - id: upload.sys.id - } - } - } - }; - }); - })).then(uploads => { - const file = uploads.reduce((fieldsData, upload) => _objectSpread(_objectSpread({}, fieldsData), upload), {}); - const asset = _objectSpread(_objectSpread({}, data), {}, { - fields: _objectSpread(_objectSpread({}, data.fields), {}, { - file - }) - }); - return create(http, params, asset); - }).catch(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -}; - -/** - * Asset processing - */ - -const ASSET_PROCESSING_CHECK_WAIT = 3000; -const ASSET_PROCESSING_CHECK_RETRIES = 10; -async function checkIfAssetHasUrl(http, params, { - resolve, - reject, - locale, - processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, - processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, - checkCount = 0 -}) { - return get(http, params).then(asset => { - if (asset.fields.file[locale].url) { - resolve(asset); - } else if (checkCount === processingCheckRetries) { - const error = new Error(); - error.name = 'AssetProcessingTimeout'; - error.message = 'Asset is taking longer then expected to process.'; - reject(error); - } else { - checkCount++; - setTimeout(() => checkIfAssetHasUrl(http, params, { - resolve: resolve, - reject: reject, - locale: locale, - checkCount: checkCount, - processingCheckWait, - processingCheckRetries - }), processingCheckWait); - } - }); -} -const processForLocale = async (http, _ref) => { - let { - asset, - locale, - options: { - processingCheckRetries, - processingCheckWait - } = {} - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${asset.sys.id}/files/${locale}/process`, null, { - headers: { - 'X-Contentful-Version': asset.sys.version - } - }).then(() => { - return new Promise((resolve, reject) => checkIfAssetHasUrl(http, { - spaceId: params.spaceId, - environmentId: params.environmentId, - assetId: asset.sys.id - }, { - resolve, - reject, - locale, - processingCheckWait, - processingCheckRetries - })); - }); -}; -const processForAllLocales = async (http, _ref2) => { - let { - asset, - options = {} - } = _ref2, - params = _objectWithoutProperties(_ref2, _excluded2); - const locales = Object.keys(asset.fields.file || {}); - let mostUpToDateAssetVersion = asset; - - // Let all the locales process - // Since they all resolve at different times, - // we need to pick the last resolved value - // to reflect the most recent state - const allProcessingLocales = locales.map(locale => processForLocale(http, _objectSpread(_objectSpread({}, params), {}, { - asset, - locale, - options - })).then(result => { - // Side effect of always setting the most up to date asset version - // The last one to call this will be the last one that finished - // and thus the most up to date - mostUpToDateAssetVersion = result; - })); - return Promise.all(allProcessingLocales).then(() => mostUpToDateAssetVersion); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/bulk-action.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/bulk-action.ts ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ publish: () => (/* binding */ publish), -/* harmony export */ unpublish: () => (/* binding */ unpublish), -/* harmony export */ validate: () => (/* binding */ validate) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`); -}; -const publish = (http, params, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload); -}; -const unpublish = (http, params, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload); -}; -const validate = (http, params, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/comment.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/comment.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getAll: () => (/* binding */ getAll), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const VERSION_HEADER = 'X-Contentful-Version'; -const BODY_FORMAT_HEADER = 'x-contentful-comment-body-format'; -const PARENT_ENTITY_REFERENCE_HEADER = 'x-contentful-parent-entity-reference'; -const PARENT_COMMENT_ID_HEADER = 'x-contentful-parent-id'; -const getSpaceEnvBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}`; -const getEntityCommentUrl = params => `${getEntityBaseUrl(params)}/${params.commentId}`; -function getParentPlural(parentEntityType) { - switch (parentEntityType) { - case 'ContentType': - return 'content_types'; - case 'Entry': - return 'entries'; - case 'Workflow': - return 'workflows'; - } -} - -/** - * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version - * to be set as part of the URL path. Workflow comments only support `create` (with - * versionized URL) and `getMany` (without version). The API might support more methods - * in the future with new use cases being discovered. - */ -const getEntityBaseUrl = paramsOrg => { - const params = 'entryId' in paramsOrg ? { - spaceId: paramsOrg.spaceId, - environmentId: paramsOrg.environmentId, - parentEntityType: 'Entry', - parentEntityId: paramsOrg.entryId - } : paramsOrg; - const { - parentEntityId, - parentEntityType - } = params; - const parentPlural = getParentPlural(parentEntityType); - const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : ''; - return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`; -}; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityCommentUrl(params), { - headers: params.bodyFormat === 'rich-text' ? { - [BODY_FORMAT_HEADER]: params.bodyFormat - } : {} -}); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: params.bodyFormat === 'rich-text' ? { - [BODY_FORMAT_HEADER]: params.bodyFormat - } : {} -}); -const create = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getEntityBaseUrl(params), data, { - headers: _objectSpread(_objectSpread(_objectSpread({}, typeof rawData.body !== 'string' ? { - [BODY_FORMAT_HEADER]: 'rich-text' - } : {}), 'parentEntityReference' in params && params.parentEntityReference ? { - [PARENT_ENTITY_REFERENCE_HEADER]: params.parentEntityReference - } : {}), params.parentCommentId ? { - [PARENT_COMMENT_ID_HEADER]: params.parentCommentId - } : {}) - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityCommentUrl(params), data, { - headers: _objectSpread(_objectSpread({ - [VERSION_HEADER]: (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, typeof rawData.body !== 'string' ? { - [BODY_FORMAT_HEADER]: 'rich-text' - } : {}), headers) - }); -}; -const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityCommentUrl(params), { - headers: { - [VERSION_HEADER]: version - } - }); -}; - -// Add a deprecation notice. But `getAll` may never be removed for app compatibility reasons. -/** - * @deprecated use `getMany` instead. - */ -const getAll = getMany; - -/***/ }), - -/***/ "./adapters/REST/endpoints/content-type.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/content-type.ts ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ publish: () => (/* binding */ publish), -/* harmony export */ unpublish: () => (/* binding */ unpublish), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`; -const getContentTypeUrl = params => getBaseUrl(params) + `/${params.contentTypeId}`; -const get = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getContentTypeUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers - }); -}; -const getMany = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query, - headers - }); -}; -const create = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers - }); -}; -const createWithId = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params), data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getContentTypeUrl(params), { - headers - }); -}; -const publish = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getContentTypeUrl(params) + '/published', null, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version - }, headers) - }); -}; -const unpublish = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getContentTypeUrl(params) + '/published', { - headers - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/editor-interface.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/editor-interface.ts ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getBaseUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/entry.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/entry.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: () => (/* binding */ archive), -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getPublished: () => (/* binding */ getPublished), -/* harmony export */ patch: () => (/* binding */ patch), -/* harmony export */ publish: () => (/* binding */ publish), -/* harmony export */ references: () => (/* binding */ references), -/* harmony export */ unarchive: () => (/* binding */ unarchive), -/* harmony export */ unpublish: () => (/* binding */ unpublish), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const get = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -const getPublished = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -const getMany = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query), - headers: _objectSpread({}, headers) - }); -}; -const patch = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.patch(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version, - 'Content-Type': 'application/json-patch+json' - }, headers) - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`); -}; -const publish = (http, params, rawData) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, null, { - headers: { - 'X-Contentful-Version': rawData.sys.version - } - }); -}; -const unpublish = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`); -}; -const archive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`); -}; -const unarchive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`); -}; -const create = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -const createWithId = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -const references = (http, params) => { - const { - spaceId, - environmentId, - entryId, - include - } = params; - const level = include || 2; - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-alias.ts": -/*!******************************************************!*\ - !*** ./adapters/REST/endpoints/environment-alias.ts ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * Urls - */ - -const getBaseUrl = params => `/spaces/${params.spaceId}/environment_aliases`; -const getEnvironmentAliasUrl = params => getBaseUrl(params) + `/${params.environmentAliasId}`; - -/** - * Endpoints - */ - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEnvironmentAliasUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -const createWithId = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEnvironmentAliasUrl(params), data, { - headers: headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEnvironmentAliasUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEnvironmentAliasUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-template-installation.ts": -/*!**********************************************************************!*\ - !*** ./adapters/REST/endpoints/environment-template-installation.ts ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getForEnvironment: () => (/* binding */ getForEnvironment), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -const _excluded = ["organizationId", "environmentTemplateId", "spaceId", "environmentId"], - _excluded2 = ["spaceId", "environmentId", "environmentTemplateId", "installationId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - -const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/'); -const getMany = (http, _ref, headers) => { - let { - organizationId, - environmentTemplateId, - spaceId, - environmentId - } = _ref, - paginationProps = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), { - params: _objectSpread(_objectSpread(_objectSpread({}, paginationProps), environmentId && { - 'environment.sys.id': environmentId - }), spaceId && { - 'space.sys.id': spaceId - }), - headers - }); -}; -const getForEnvironment = (http, _ref2, headers) => { - let { - spaceId, - environmentId, - environmentTemplateId, - installationId - } = _ref2, - paginationProps = _objectWithoutProperties(_ref2, _excluded2); - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { - params: _objectSpread(_objectSpread({}, installationId && { - 'sys.id': installationId - }), paginationProps), - headers - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment-template.ts": -/*!*********************************************************!*\ - !*** ./adapters/REST/endpoints/environment-template.ts ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ disconnect: () => (/* binding */ disconnect), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ install: () => (/* binding */ install), -/* harmony export */ update: () => (/* binding */ update), -/* harmony export */ validate: () => (/* binding */ validate), -/* harmony export */ versionUpdate: () => (/* binding */ versionUpdate), -/* harmony export */ versions: () => (/* binding */ versions) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/'); -const get = (http, { - organizationId, - environmentTemplateId, - version, - query = {} -}, headers) => version ? _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId, 'versions', version), { - params: query, - headers -}) : _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId), { - params: query, - headers -}); -const getMany = (http, { - organizationId, - query = {} -}, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId), { - params: query, - headers -}); -const create = (http, { - organizationId -}, payload, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, apiPath(organizationId), payload, { - headers -}); -const update = (http, { - organizationId, - environmentTemplateId -}, payload, headers) => { - var _payload$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(payload); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, apiPath(organizationId, environmentTemplateId), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_payload$sys$version = payload.sys.version) !== null && _payload$sys$version !== void 0 ? _payload$sys$version : 0 - }, headers) - }); -}; -const versionUpdate = (http, { - organizationId, - version, - environmentTemplateId -}, payload, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.patch(http, apiPath(organizationId, environmentTemplateId, 'versions', version), payload, { - headers -}); -const del = (http, { - organizationId, - environmentTemplateId -}, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, apiPath(organizationId, environmentTemplateId), { - headers -}); -const versions = (http, { - organizationId, - environmentTemplateId, - query = {} -}, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, apiPath(organizationId, environmentTemplateId, 'versions'), { - params: query, - headers -}); -const validate = (http, { - spaceId, - environmentId, - environmentTemplateId, - version -}, payload, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, version ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated` : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { - headers -}); -const install = (http, { - spaceId, - environmentId, - environmentTemplateId -}, payload, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { - headers -}); -const disconnect = (http, { - spaceId, - environmentId, - environmentTemplateId -}, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { - headers -}); - -/***/ }), - -/***/ "./adapters/REST/endpoints/environment.ts": -/*!************************************************!*\ - !*** ./adapters/REST/endpoints/environment.ts ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments`, { - params: params.query - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`); -}; -const create = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments`, data, { - headers - }); -}; -const createWithId = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), params.sourceEnvironmentId ? { - 'X-Contentful-Source-Environment': params.sourceEnvironmentId - } : {}) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/extension.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/extension.ts ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getExtensionUrl: () => (/* binding */ getExtensionUrl), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`; -const getExtensionUrl = params => getBaseUrl(params) + `/${params.extensionId}`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getExtensionUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -const createWithId = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getExtensionUrl(params), data, { - headers - }); -}; -const update = async (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getExtensionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getExtensionUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/http.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/http.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ patch: () => (/* binding */ patch), -/* harmony export */ post: () => (/* binding */ post), -/* harmony export */ put: () => (/* binding */ put), -/* harmony export */ request: () => (/* binding */ request) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -const get = (http, { - url, - config -}) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, url, config); -}; -const post = (http, { - url, - config -}, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, url, payload, config); -}; -const put = (http, { - url, - config -}, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, url, payload, config); -}; -const patch = (http, { - url, - config -}, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.patch(http, url, payload, config); -}; -const del = (http, { - url, - config -}) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, url, config); -}; -const request = (http, { - url, - config -}) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.http(http, url, config); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/index.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/index.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api-key */ "./adapters/REST/endpoints/api-key.ts"); -/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app-action */ "./adapters/REST/endpoints/app-action.ts"); -/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./adapters/REST/endpoints/app-action-call.ts"); -/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./adapters/REST/endpoints/app-bundle.ts"); -/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./adapters/REST/endpoints/app-definition.ts"); -/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./adapters/REST/endpoints/app-details.ts"); -/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./adapters/REST/endpoints/app-installation.ts"); -/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./adapters/REST/endpoints/app-signed-request.ts"); -/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./adapters/REST/endpoints/app-signing-secret.ts"); -/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-event-subscription */ "./adapters/REST/endpoints/app-event-subscription.ts"); -/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-key */ "./adapters/REST/endpoints/app-key.ts"); -/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-access-token */ "./adapters/REST/endpoints/app-access-token.ts"); -/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-upload */ "./adapters/REST/endpoints/app-upload.ts"); -/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./asset */ "./adapters/REST/endpoints/asset.ts"); -/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./asset-key */ "./adapters/REST/endpoints/asset-key.ts"); -/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./bulk-action */ "./adapters/REST/endpoints/bulk-action.ts"); -/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./comment */ "./adapters/REST/endpoints/comment.ts"); -/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./content-type */ "./adapters/REST/endpoints/content-type.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./editor-interface */ "./adapters/REST/endpoints/editor-interface.ts"); -/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./entry */ "./adapters/REST/endpoints/entry.ts"); -/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment */ "./adapters/REST/endpoints/environment.ts"); -/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./environment-alias */ "./adapters/REST/endpoints/environment-alias.ts"); -/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts"); -/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts"); -/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts"); -/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts"); -/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts"); -/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts"); -/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts"); -/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts"); -/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts"); -/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./access-token */ "./adapters/REST/endpoints/access-token.ts"); -/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts"); -/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts"); -/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts"); -/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts"); -/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts"); -/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts"); -/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts"); -/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts"); -/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts"); -/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts"); -/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts"); -/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts"); -/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts"); -/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts"); -/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts"); -/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts"); -/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts"); -/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts"); -/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts"); -/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts"); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - ApiKey: _api_key__WEBPACK_IMPORTED_MODULE_0__, - AppAction: _app_action__WEBPACK_IMPORTED_MODULE_1__, - AppActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__, - AppBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__, - AppDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__, - AppInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__, - AppUpload: _app_upload__WEBPACK_IMPORTED_MODULE_12__, - AppSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__, - AppSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__, - AppEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__, - AppKey: _app_key__WEBPACK_IMPORTED_MODULE_10__, - AppAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_11__, - AppDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__, - Asset: _asset__WEBPACK_IMPORTED_MODULE_13__, - AssetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__, - BulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__, - Comment: _comment__WEBPACK_IMPORTED_MODULE_16__, - ContentType: _content_type__WEBPACK_IMPORTED_MODULE_17__, - EditorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__, - Entry: _entry__WEBPACK_IMPORTED_MODULE_19__, - Environment: _environment__WEBPACK_IMPORTED_MODULE_20__, - EnvironmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_21__, - EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__, - EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__, - Extension: _extension__WEBPACK_IMPORTED_MODULE_24__, - Http: _http__WEBPACK_IMPORTED_MODULE_25__, - Locale: _locale__WEBPACK_IMPORTED_MODULE_26__, - Organization: _organization__WEBPACK_IMPORTED_MODULE_27__, - OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_28__, - OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_29__, - PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_30__, - AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_31__, - PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_32__, - Release: _release__WEBPACK_IMPORTED_MODULE_33__, - ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_34__, - Role: _role__WEBPACK_IMPORTED_MODULE_35__, - ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_36__, - Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_37__, - Space: _space__WEBPACK_IMPORTED_MODULE_38__, - SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_39__, - SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_40__, - Tag: _tag__WEBPACK_IMPORTED_MODULE_41__, - Task: _task__WEBPACK_IMPORTED_MODULE_42__, - Team: _team__WEBPACK_IMPORTED_MODULE_43__, - TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_44__, - TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_45__, - UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_46__, - Upload: _upload__WEBPACK_IMPORTED_MODULE_47__, - Usage: _usage__WEBPACK_IMPORTED_MODULE_48__, - User: _user__WEBPACK_IMPORTED_MODULE_49__, - UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_50__, - Webhook: _webhook__WEBPACK_IMPORTED_MODULE_51__, - WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_53__, - Workflow: _workflow__WEBPACK_IMPORTED_MODULE_52__, - WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_54__ -}); - -/***/ }), - -/***/ "./adapters/REST/endpoints/locale.ts": -/*!*******************************************!*\ - !*** ./adapters/REST/endpoints/locale.ts ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - delete data.default; // we should not send this back - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization-invitation.ts": -/*!************************************************************!*\ - !*** ./adapters/REST/endpoints/organization-invitation.ts ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ get: () => (/* binding */ get) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -const OrganizationUserManagementAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'organization-user-management-api' -}; -const InvitationAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'pending-org-membership' -}; -const create = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/organizations/${params.organizationId}/invitations`, data, { - headers: _objectSpread(_objectSpread({}, InvitationAlphaHeaders), headers) - }); -}; -const get = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, { - headers: _objectSpread(_objectSpread({}, OrganizationUserManagementAlphaHeaders), headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization-membership.ts": -/*!************************************************************!*\ - !*** ./adapters/REST/endpoints/organization-membership.ts ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/organizations/${params.organizationId}/organization_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.organizationMembershipId}`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - const { - role - } = data; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), { - role - }, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/organization.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/organization.ts ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations`, { - params: params === null || params === void 0 ? void 0 : params.query - }); -}; -const get = (http, params) => { - return getMany(http, { - query: { - limit: 100 - } - }).then(data => { - const org = data.items.find(org => org.sys.id === params.organizationId); - if (!org) { - const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.status = 404; - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.statusText = 'Not Found'; - return Promise.reject(error); - } - return org; - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/personal-access-token.ts": -/*!**********************************************************!*\ - !*** ./adapters/REST/endpoints/personal-access-token.ts ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ revoke: () => (/* binding */ revoke) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -/** - * @deprecated use `access-token.get` instead `personal-access-token.get` - */ -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/users/me/access_tokens/${params.tokenId}`); -}; - -/** - * @deprecated use `access-token.getMany` instead `personal-access-token.getMany` - */ -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, '/users/me/access_tokens', { - params: params.query - }); -}; - -/** - * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create` - */ -const create = (http, _params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, '/users/me/access_tokens', rawData, { - headers - }); -}; - -/** - * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke` - */ -const revoke = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/preview-api-key.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/preview-api-key.ts ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/preview_api_keys`, { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/raw.ts": -/*!****************************************!*\ - !*** ./adapters/REST/endpoints/raw.ts ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ http: () => (/* binding */ http), -/* harmony export */ patch: () => (/* binding */ patch), -/* harmony export */ post: () => (/* binding */ post), -/* harmony export */ put: () => (/* binding */ put) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -function getBaseUrl(http) { - var _http$defaults$baseUR; - return (_http$defaults$baseUR = http.defaults.baseURL) === null || _http$defaults$baseUR === void 0 ? void 0 : _http$defaults$baseUR.split('/spaces')[0]; -} -function get(http, url, config) { - return http.get(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function patch(http, url, payload, config) { - return http.patch(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function post(http, url, payload, config) { - return http.post(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function put(http, url, payload, config) { - return http.put(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function del(http, url, config) { - return http.delete(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} -function http(http, url, config) { - return http(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.errorHandler); -} - -/***/ }), - -/***/ "./adapters/REST/endpoints/release-action.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/release-action.ts ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ queryForRelease: () => (/* binding */ queryForRelease) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, { - params: params.query - }); -}; -const queryForRelease = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, { - params: _objectSpread({ - 'sys.release.sys.id[in]': params.releaseId - }, params.query) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/release.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/release.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ archive: () => (/* binding */ archive), -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ publish: () => (/* binding */ publish), -/* harmony export */ query: () => (/* binding */ query), -/* harmony export */ unarchive: () => (/* binding */ unarchive), -/* harmony export */ unpublish: () => (/* binding */ unpublish), -/* harmony export */ update: () => (/* binding */ update), -/* harmony export */ validate: () => (/* binding */ validate) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`); -}; -const query = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, { - params: params.query - }); -}; -const create = (http, params, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, payload); -}; -const update = (http, params, payload, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`, payload, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`); -}; -const publish = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -const unpublish = (http, params, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -const validate = (http, params, payload) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/validate`, payload); -}; -const archive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, null, { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; -const unarchive = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/role.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/role.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/roles/${params.roleId}`); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/roles`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const getManyForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/roles`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/roles`, data, { - headers - }); -}; -const createWithId = (http, params, data, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/roles/${params.roleId}`); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/scheduled-action.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/scheduled-action.ts ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/scheduled_actions`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, data) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/scheduled_actions`, data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -const update = (http, params, data) => { - var _data$environment; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, data, { - params: { - 'environment.sys.id': (_data$environment = data.environment) === null || _data$environment === void 0 ? void 0 : _data$environment.sys.id - }, - headers: { - 'X-Contentful-Version': params.version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/snapshot.ts": -/*!*********************************************!*\ - !*** ./adapters/REST/endpoints/snapshot.ts ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getForContentType: () => (/* binding */ getForContentType), -/* harmony export */ getForEntry: () => (/* binding */ getForEntry), -/* harmony export */ getManyForContentType: () => (/* binding */ getManyForContentType), -/* harmony export */ getManyForEntry: () => (/* binding */ getManyForEntry) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); - - -const getBaseEntryUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`; -const getEntryUrl = params => getBaseEntryUrl(params) + `/${params.snapshotId}`; -const getManyForEntry = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseEntryUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const getForEntry = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getEntryUrl(params)); -}; -const getBaseContentTypeUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`; -const getContentTypeUrl = params => getBaseContentTypeUrl(params) + `/${params.snapshotId}`; -const getManyForContentType = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseContentTypeUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.normalizeSelect)(params.query) - }); -}; -const getForContentType = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getContentTypeUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/space-member.ts": -/*!*************************************************!*\ - !*** ./adapters/REST/endpoints/space-member.ts ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/space_members`, { - params: params.query -}); - -/***/ }), - -/***/ "./adapters/REST/endpoints/space-membership.ts": -/*!*****************************************************!*\ - !*** ./adapters/REST/endpoints/space-membership.ts ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getForOrganization: () => (/* binding */ getForOrganization), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -function spaceMembershipDeprecationWarning() { - console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)'); -} -const getBaseUrl = params => `/spaces/${params.spaceId}/space_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.spaceMembershipId}`; -const get = (http, params) => { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -}; -const getMany = (http, params) => { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query - }); -}; -const getForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`); -}; -const getManyForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/space_memberships`, { - params: params.query - }); -}; -const create = (http, params, data, headers) => { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers - }); -}; -const createWithId = (http, params, data, headers) => { - spaceMembershipDeprecationWarning(); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/space.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/space.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}`); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces`, { - params: params.query -}); -const getManyForOrganization = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/spaces`, { - params: params.query -}); -const create = (http, params, payload, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces`, payload, { - headers: params.organizationId ? _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Organization': params.organizationId - }) : headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}`); - -/***/ }), - -/***/ "./adapters/REST/endpoints/tag.ts": -/*!****************************************!*\ - !*** ./adapters/REST/endpoints/tag.ts ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`; -const getTagUrl = params => getBaseUrl(params) + `/${params.tagId}`; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getTagUrl(params)); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query -}); -const createWithId = (http, params, rawData) => { - var _rawData$sys$visibili; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTagUrl(params), data, { - headers: { - 'X-Contentful-Tag-Visibility': (_rawData$sys$visibili = rawData.sys.visibility) !== null && _rawData$sys$visibili !== void 0 ? _rawData$sys$visibili : 'private' - } - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTagUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getTagUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/task.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/task.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getAll: () => (/* binding */ getAll), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`; -const getTaskUrl = params => `${getBaseUrl(params)}/${params.taskId}`; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getTaskUrl(params)); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) -}); - -/** - * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons. - */ -const getAll = getMany; -const create = (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getTaskUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getTaskUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/team-membership.ts": -/*!****************************************************!*\ - !*** ./adapters/REST/endpoints/team-membership.ts ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ getManyForTeam: () => (/* binding */ getManyForTeam), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`; -const getEntityUrl = params => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -const getManyForOrganization = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/team_memberships`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) -}); -const getManyForTeam = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0 - }, headers) - }); -}; -const del = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); - -/***/ }), - -/***/ "./adapters/REST/endpoints/team-space-membership.ts": -/*!**********************************************************!*\ - !*** ./adapters/REST/endpoints/team-space-membership.ts ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getForOrganization: () => (/* binding */ getForOrganization), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/spaces/${params.spaceId}/team_space_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.teamSpaceMembershipId}`; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: params.query -}); -const getForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`); -}; -const getManyForOrganization = (http, params) => { - const query = params.query || {}; - if (params.teamId) { - query['sys.team.sys.id'] = params.teamId; - } - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/organizations/${params.organizationId}/team_space_memberships`, { - params: params.query - }); -}; -const create = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers: _objectSpread({ - 'x-contentful-team': params.teamId - }, headers) - }); -}; -const update = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0, - 'x-contentful-team': rawData.sys.team.sys.id - }, headers) - }); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/team.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/team.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyForSpace: () => (/* binding */ getManyForSpace), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/organizations/${params.organizationId}/teams`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.teamId}`; -const get = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getEntityUrl(params)); -const getMany = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) -}); -const getManyForSpace = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/teams`, { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const create = (http, params, rawData, headers) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getEntityUrl(params)); - -/***/ }), - -/***/ "./adapters/REST/endpoints/ui-config.ts": -/*!**********************************************!*\ - !*** ./adapters/REST/endpoints/ui-config.ts ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); - - -const getUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getUrl(params)); -}; -const update = (http, params, rawData) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getUrl(params), data, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/upload.ts": -/*!*******************************************!*\ - !*** ./adapters/REST/endpoints/upload.ts ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get) -/* harmony export */ }); -/* harmony import */ var _upload_http_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../upload-http-client */ "./upload-http-client.ts"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -const getBaseUploadUrl = params => { - const spacePath = `/spaces/${params.spaceId}/uploads`; - const environmentPath = `/spaces/${params.spaceId}/environments/${params.environmentId}/uploads`; - const path = params.environmentId ? environmentPath : spacePath; - return path; -}; -const getEntityUploadUrl = params => { - const path = getBaseUploadUrl(params); - return path + `/${params.uploadId}`; -}; -const create = (http, params, data) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - const { - file - } = data; - if (!file) { - return Promise.reject(new Error('Unable to locate a file to upload.')); - } - const path = getBaseUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(httpUpload, path, file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; -const del = (http, params) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - const path = getEntityUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(httpUpload, path); -}; -const get = (http, params) => { - const httpUpload = (0,_upload_http_client__WEBPACK_IMPORTED_MODULE_0__.getUploadHttpClient)(http); - const path = getEntityUploadUrl(params); - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(httpUpload, path); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/usage.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/usage.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ getManyForSpace: () => (/* binding */ getManyForSpace) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const getManyForSpace = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/space_periodic_usages`, { - params: params.query - }); -}; -const getManyForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/organization_periodic_usages`, { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/user-ui-config.ts": -/*!***************************************************!*\ - !*** ./adapters/REST/endpoints/user-ui-config.ts ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - - -const getUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getUrl(params)); -}; -const update = (http, params, rawData) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getUrl(params), data, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - } - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/user.ts": -/*!*****************************************!*\ - !*** ./adapters/REST/endpoints/user.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getCurrent: () => (/* binding */ getCurrent), -/* harmony export */ getForOrganization: () => (/* binding */ getForOrganization), -/* harmony export */ getForSpace: () => (/* binding */ getForSpace), -/* harmony export */ getManyForOrganization: () => (/* binding */ getManyForOrganization), -/* harmony export */ getManyForSpace: () => (/* binding */ getManyForSpace) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const getForSpace = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/users/${params.userId}`); -}; -const getCurrent = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/users/me`, { - params: params === null || params === void 0 ? void 0 : params.query -}); -const getManyForSpace = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/users`, { - params: params.query - }); -}; -const getForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/users/${params.userId}`); -}; -const getManyForOrganization = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/organizations/${params.organizationId}/users`, { - params: params.query - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/utils.ts": -/*!******************************************!*\ - !*** ./adapters/REST/endpoints/utils.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ normalizeSelect: () => (/* binding */ normalizeSelect), -/* harmony export */ normalizeSpaceId: () => (/* binding */ normalizeSpaceId) -/* harmony export */ }); -const _excluded = ["spaceId"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function normalizeSelect(query) { - if (query && query.select && !/sys/i.test(query.select)) { - return _objectSpread(_objectSpread({}, query), {}, { - select: query.select + ',sys' - }); - } - return query; -} -function normalizeSpaceId(query) { - if (query && query.spaceId) { - const { - spaceId - } = query, - rest = _objectWithoutProperties(query, _excluded); - return _objectSpread(_objectSpread({}, rest), {}, { - 'sys.space.sys.id[in]': spaceId - }); - } - return query; -} - -/***/ }), - -/***/ "./adapters/REST/endpoints/webhook.ts": -/*!********************************************!*\ - !*** ./adapters/REST/endpoints/webhook.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ createWithId: () => (/* binding */ createWithId), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ deleteRetryPolicy: () => (/* binding */ deleteRetryPolicy), -/* harmony export */ deleteSigningSecret: () => (/* binding */ deleteSigningSecret), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getCallDetails: () => (/* binding */ getCallDetails), -/* harmony export */ getHealthStatus: () => (/* binding */ getHealthStatus), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ getManyCallDetails: () => (/* binding */ getManyCallDetails), -/* harmony export */ getRetryPolicy: () => (/* binding */ getRetryPolicy), -/* harmony export */ getSigningSecret: () => (/* binding */ getSigningSecret), -/* harmony export */ update: () => (/* binding */ update), -/* harmony export */ upsertRetryPolicy: () => (/* binding */ upsertRetryPolicy), -/* harmony export */ upsertSigningSecret: () => (/* binding */ upsertSigningSecret) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -const getBaseUrl = params => `/spaces/${params.spaceId}/webhook_definitions`; -const getWebhookCallBaseUrl = params => `/spaces/${params.spaceId}/webhooks`; -const getWebhookUrl = params => `${getBaseUrl(params)}/${params.webhookDefinitionId}`; -const getWebhookCallUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls`; -const getWebhookCallDetailsUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls/${params.callId}`; -const getWebhookHealthUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/health`; -const getWebhookSettingsUrl = params => `/spaces/${params.spaceId}/webhook_settings`; -const getWebhookSigningSecretUrl = params => `${getWebhookSettingsUrl(params)}/signing_secret`; -const getWebhookRetryPolicyUrl = params => `${getWebhookSettingsUrl(params)}/retry_policy`; -const get = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookUrl(params)); -}; -const getManyCallDetails = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookCallUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const getCallDetails = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookCallDetailsUrl(params)); -}; -const getHealthStatus = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookHealthUrl(params)); -}; -const getMany = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - params: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeSelect)(params.query) - }); -}; -const getSigningSecret = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookSigningSecretUrl(params)); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -const getRetryPolicy = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWebhookRetryPolicyUrl(params)); -}; -const create = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers - }); -}; -const createWithId = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookUrl(params), data, { - headers - }); -}; -const update = async (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const upsertSigningSecret = async (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookSigningSecretUrl(params), data); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -const upsertRetryPolicy = async (http, params, rawData) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWebhookRetryPolicyUrl(params), data); -}; -const del = (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookUrl(params)); -}; -const deleteSigningSecret = async (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookSigningSecretUrl(params)); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -const deleteRetryPolicy = async (http, params) => { - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWebhookRetryPolicyUrl(params)); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflow-definition.ts": -/*!********************************************************!*\ - !*** ./adapters/REST/endpoints/workflow-definition.ts ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`; -const getWorkflowDefinitionUrl = params => `${getBaseUrl(params)}/${params.workflowDefinitionId}`; -const get = (http, params, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getWorkflowDefinitionUrl(params), { - headers -}); -const getMany = (http, params, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - headers, - params: params.query -}); -const create = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWorkflowDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, _ref, headers) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWorkflowDefinitionUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflow.ts": -/*!*********************************************!*\ - !*** ./adapters/REST/endpoints/workflow.ts ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ complete: () => (/* binding */ complete), -/* harmony export */ create: () => (/* binding */ create), -/* harmony export */ del: () => (/* binding */ del), -/* harmony export */ getMany: () => (/* binding */ getMany), -/* harmony export */ update: () => (/* binding */ update) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); -const _excluded = ["version"], - _excluded2 = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`; -const getWorkflowUrl = params => `${getBaseUrl(params)}/${params.workflowId}`; -const completeWorkflowUrl = params => `${getWorkflowUrl(params)}/complete`; -const getMany = (http, params, headers) => _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, getBaseUrl(params), { - headers, - params: params.query -}); -const create = (http, params, rawData, headers) => { - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, getBaseUrl(params), data, { - headers - }); -}; -const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData); - delete data.sys; - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, getWorkflowUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -const del = (http, _ref, headers) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, getWorkflowUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; -const complete = (http, _ref2, headers) => { - let { - version - } = _ref2, - params = _objectWithoutProperties(_ref2, _excluded2); - return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, completeWorkflowUrl(params), null, { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; - -/***/ }), - -/***/ "./adapters/REST/endpoints/workflows-changelog.ts": -/*!********************************************************!*\ - !*** ./adapters/REST/endpoints/workflows-changelog.ts ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getMany: () => (/* binding */ getMany) -/* harmony export */ }); -/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts"); - -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`; -const getMany = (http, params, headers) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), { - headers, - params: params.query -}); - -/***/ }), - -/***/ "./adapters/REST/rest-adapter.ts": -/*!***************************************!*\ - !*** ./adapters/REST/rest-adapter.ts ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ RestAdapter: () => (/* binding */ RestAdapter) -/* harmony export */ }); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "../node_modules/axios/lib/axios.js"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./endpoints */ "./adapters/REST/endpoints/index.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -const defaultHostParameters = { - defaultHostname: 'api.contentful.com', - defaultHostnameUpload: 'upload.contentful.com' -}; -class RestAdapter { - constructor(params) { - _defineProperty(this, "params", void 0); - _defineProperty(this, "axiosInstance", void 0); - if (!params.accessToken) { - throw new TypeError('Expected parameter accessToken'); - } - this.params = _objectSpread(_objectSpread({}, defaultHostParameters), (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(params)); - this.axiosInstance = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_3__["default"], _objectSpread(_objectSpread({}, this.params), {}, { - headers: _objectSpread(_objectSpread({ - 'Content-Type': 'application/vnd.contentful.management.v1+json' - }, params.userAgent ? { - 'X-Contentful-User-Agent': params.userAgent - } : {}), this.params.headers) - })); - } - async makeRequest({ - entityType, - action: actionInput, - params, - payload, - headers, - userAgent - }) { - var _endpoints$entityType; - // `delete` is a reserved keyword. Therefore, the methods are called `del`. - const action = actionInput === 'delete' ? 'del' : actionInput; - const endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_2__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action]; - if (endpoint === undefined) { - throw new Error('Unknown endpoint'); - } - return await endpoint(this.axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? { - 'X-Contentful-User-Agent': userAgent - } : {})); - } -} - -/***/ }), - -/***/ "./common-types.ts": -/*!*************************!*\ - !*** ./common-types.ts ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ScheduledActionReferenceFilters: () => (/* binding */ ScheduledActionReferenceFilters) -/* harmony export */ }); -/** - * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve - */ - -/** - * ResourceLink is a reference object to another entity outside of the current space/environment - */ - -/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */ - -/* eslint-disable @typescript-eslint/no-explicit-any */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface - -let ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) { - ScheduledActionReferenceFilters["contentTypeAnnotationNotIn"] = "sys.contentType.metadata.annotations.ContentType[nin]"; - return ScheduledActionReferenceFilters; -}({}); - -/***/ }), - -/***/ "./common-utils.ts": -/*!*************************!*\ - !*** ./common-utils.ts ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isSuccessful: () => (/* binding */ isSuccessful), -/* harmony export */ shouldRePoll: () => (/* binding */ shouldRePoll), -/* harmony export */ waitFor: () => (/* binding */ waitFor), -/* harmony export */ wrapCollection: () => (/* binding */ wrapCollection), -/* harmony export */ wrapCursorPaginatedCollection: () => (/* binding */ wrapCursorPaginatedCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* eslint-disable @typescript-eslint/ban-ts-comment */ - - - -/** - * @private - */ -const wrapCollection = fn => (makeRequest, data, ...rest) => { - const collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(entity => fn(makeRequest, entity, ...rest)); - // @ts-expect-error - return collectionData; -}; -const wrapCursorPaginatedCollection = fn => (makeRequest, data, ...rest) => { - const collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(entity => fn(makeRequest, entity, ...rest)); - // @ts-expect-error - return collectionData; -}; -function isSuccessful(statusCode) { - return statusCode < 300; -} -function shouldRePoll(statusCode) { - return [404, 422, 429, 400].includes(statusCode); -} -async function waitFor(ms = 1000) { - return new Promise(resolve => setTimeout(resolve, ms)); -} - -/***/ }), - -/***/ "./constants/editor-interface-defaults/controls-defaults.ts": -/*!******************************************************************!*\ - !*** ./constants/editor-interface-defaults/controls-defaults.ts ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULTS_SETTINGS: () => (/* binding */ DEFAULTS_SETTINGS), -/* harmony export */ DEFAULTS_WIDGET: () => (/* binding */ DEFAULTS_WIDGET), -/* harmony export */ FIELD_TYPES: () => (/* binding */ FIELD_TYPES), -/* harmony export */ "default": () => (/* binding */ getDefaultControlOfField), -/* harmony export */ toApiFieldType: () => (/* binding */ toApiFieldType), -/* harmony export */ toInternalFieldType: () => (/* binding */ toInternalFieldType) -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -const DROPDOWN_TYPES = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']; -const INTERNAL_TO_API = { - Symbol: { - type: 'Symbol' - }, - Text: { - type: 'Text' - }, - RichText: { - type: 'RichText' - }, - Integer: { - type: 'Integer' - }, - Number: { - type: 'Number' - }, - Boolean: { - type: 'Boolean' - }, - Date: { - type: 'Date' - }, - Location: { - type: 'Location' - }, - Object: { - type: 'Object' - }, - File: { - type: 'File' - }, - Entry: { - type: 'Link', - linkType: 'Entry' - }, - Asset: { - type: 'Link', - linkType: 'Asset' - }, - Resource: { - type: 'ResourceLink' - }, - Symbols: { - type: 'Array', - items: { - type: 'Symbol' - } - }, - Entries: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Entry' - } - }, - Assets: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Asset' - } - }, - Resources: { - type: 'Array', - items: { - type: 'ResourceLink' - } - } -}; -const FIELD_TYPES = Object.keys(INTERNAL_TO_API); - -/** - * Returns an internal string identifier for an API field object. - * - * We use this string as a simplified reference to field types. - * Possible values are: - * - * - Symbol - * - Symbols - * - Text - * - RichText - * - Integer - * - Number - * - Boolean - * - Date - * - Location - * - Object - * - Entry - * - Entries - * - Asset - * - Assets - * - File - */ -function toInternalFieldType(api) { - return FIELD_TYPES.find(key => { - const internalApi = INTERNAL_TO_API[key]; - const stripped = { - type: api.type, - linkType: api.linkType, - items: api.items - }; - if (stripped.items) { - stripped.items = { - type: stripped.items.type, - linkType: stripped.items.linkType - }; - } - if (internalApi.type === 'Link') { - return internalApi.linkType === stripped.linkType; - } - if (internalApi.type === 'Array' && internalApi.items && stripped.items) { - if (internalApi.items.type === 'Link') { - return internalApi.items.linkType === stripped.items.linkType; - } - return internalApi.items.type === stripped.items.type; - } - return internalApi.type === stripped.type; - }); -} -const DEFAULTS_WIDGET = { - Text: { - widgetId: 'markdown' - }, - Symbol: { - widgetId: 'singleLine' - }, - Integer: { - widgetId: 'numberEditor' - }, - Number: { - widgetId: 'numberEditor' - }, - Boolean: { - widgetId: 'boolean' - }, - Date: { - widgetId: 'datePicker' - }, - Location: { - widgetId: 'locationEditor' - }, - Object: { - widgetId: 'objectEditor' - }, - RichText: { - widgetId: 'richTextEditor' - }, - Entry: { - widgetId: 'entryLinkEditor' - }, - Asset: { - widgetId: 'assetLinkEditor' - }, - Symbols: { - widgetId: 'tagEditor' - }, - Entries: { - widgetId: 'entryLinksEditor' - }, - Assets: { - widgetId: 'assetLinksEditor' - }, - File: { - widgetId: 'fileEditor' - }, - Resource: { - widgetId: 'resourceLinkEditor' - }, - Resources: { - widgetId: 'resourceLinksEditor' - } -}; -const DEFAULTS_SETTINGS = { - Boolean: { - falseLabel: 'No', - helpText: null, - trueLabel: 'Yes' - }, - Date: { - helpText: null, - ampm: '24', - format: 'timeZ' - }, - Entry: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Asset: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Entries: { - helpText: null, - bulkEditing: false, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Assets: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - } -}; -function getDefaultWidget(field, fieldId) { - const defaultWidget = _objectSpread(_objectSpread({}, DEFAULTS_WIDGET[field]), {}, { - settings: { - helpText: null - }, - widgetNamespace: 'builtin', - fieldId - }); - if ((0,_types__WEBPACK_IMPORTED_MODULE_0__.in_)(field, DEFAULTS_SETTINGS)) { - defaultWidget.settings = _objectSpread(_objectSpread({}, defaultWidget.settings), DEFAULTS_SETTINGS[field]); - } - return defaultWidget; -} - -/** - * Given our internal identifier returns a minimal API field object. - */ -function toApiFieldType(internal) { - return INTERNAL_TO_API[internal]; -} - -/* - * Gets the default widget ID for a field: - * - If a field allows predefined values then `dropdown` widget is used - * in the presence of the `in` validation. - * - If a Text field is a title then the `singleLine` widget is used. - * - Otherwise a simple type-to-editor mapping is used. - */ -function getDefaultControlOfField(field) { - const fieldType = toInternalFieldType(field); - if (!fieldType) { - throw new Error('Invalid field type'); - } - const hasInValidation = (field.validations || []).find(v => 'in' in v); - if (hasInValidation && DROPDOWN_TYPES.includes(fieldType)) { - return { - widgetId: 'dropdown', - fieldId: field.id, - widgetNameSpace: 'builtin' - }; - } - return getDefaultWidget(fieldType, field.id); -} - -/***/ }), - -/***/ "./constants/editor-interface-defaults/editors-defaults.ts": -/*!*****************************************************************!*\ - !*** ./constants/editor-interface-defaults/editors-defaults.ts ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ EntryConfiguration: () => (/* binding */ EntryConfiguration), -/* harmony export */ EntryEditorWidgetTypes: () => (/* binding */ EntryEditorWidgetTypes) -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); - -const EntryEditorWidgetTypes = { - DEFAULT_EDITOR: { - name: 'Editor', - id: _types__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_EDITOR_ID, - icon: 'Entry' - }, - REFERENCE_TREE: { - name: 'References', - id: 'reference-tree', - icon: 'References' - }, - TAGS_EDITOR: { - name: 'Tags', - id: 'tags-editor', - icon: 'Tags' - } -}; -const DefaultEntryEditor = { - widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name -}; -const ReferencesEntryEditor = { - widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.REFERENCE_TREE.name -}; -const TagsEditor = { - widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.TAGS_EDITOR.name -}; -const EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]; - -/***/ }), - -/***/ "./constants/editor-interface-defaults/index.ts": -/*!******************************************************!*\ - !*** ./constants/editor-interface-defaults/index.ts ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sidebar-defaults */ "./constants/editor-interface-defaults/sidebar-defaults.ts"); -/* harmony import */ var _editors_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editors-defaults */ "./constants/editor-interface-defaults/editors-defaults.ts"); -/* harmony import */ var _controls_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controls-defaults */ "./constants/editor-interface-defaults/controls-defaults.ts"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - SidebarEntryConfiguration: _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__.SidebarEntryConfiguration, - SidebarAssetConfiguration: _sidebar_defaults__WEBPACK_IMPORTED_MODULE_0__.SidebarAssetConfiguration, - EntryConfiguration: _editors_defaults__WEBPACK_IMPORTED_MODULE_1__.EntryConfiguration, - getDefaultControlOfField: _controls_defaults__WEBPACK_IMPORTED_MODULE_2__["default"] -}); - -/***/ }), - -/***/ "./constants/editor-interface-defaults/sidebar-defaults.ts": -/*!*****************************************************************!*\ - !*** ./constants/editor-interface-defaults/sidebar-defaults.ts ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SidebarAssetConfiguration: () => (/* binding */ SidebarAssetConfiguration), -/* harmony export */ SidebarEntryConfiguration: () => (/* binding */ SidebarEntryConfiguration) -/* harmony export */ }); -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./constants/editor-interface-defaults/types.ts"); - -const SidebarWidgetTypes = { - USERS: 'users-widget', - CONTENT_PREVIEW: 'content-preview-widget', - TRANSLATION: 'translation-widget', - INCOMING_LINKS: 'incoming-links-widget', - PUBLICATION: 'publication-widget', - RELEASES: 'releases-widget', - VERSIONS: 'versions-widget', - INFO_PANEL: 'info-panel', - JOBS: 'jobs-widget', - COMMENTS_PANEL: 'comments-panel' -}; -const Publication = { - widgetId: SidebarWidgetTypes.PUBLICATION, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Publish & Status', - description: 'Built-in - View entry status, publish, etc.' -}; -const Releases = { - widgetId: SidebarWidgetTypes.RELEASES, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Release', - description: 'Built-in - View release, add to it, etc.' -}; -const ContentPreview = { - widgetId: SidebarWidgetTypes.CONTENT_PREVIEW, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Preview', - description: 'Built-in - Displays preview functionality.' -}; -const Links = { - widgetId: SidebarWidgetTypes.INCOMING_LINKS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Links', - description: 'Built-in - Shows where an entry is linked.' -}; -const Translation = { - widgetId: SidebarWidgetTypes.TRANSLATION, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Translation', - description: 'Built-in - Manage which translations are visible.' -}; -const Versions = { - widgetId: SidebarWidgetTypes.VERSIONS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Versions', - description: 'Built-in - View previously published versions. Available only for master environment.' -}; -const Users = { - widgetId: SidebarWidgetTypes.USERS, - widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__.WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Users', - description: 'Built-in - Displays users on the same entry.' -}; -const SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users]; -const SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users]; - -/***/ }), - -/***/ "./constants/editor-interface-defaults/types.ts": -/*!******************************************************!*\ - !*** ./constants/editor-interface-defaults/types.ts ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULT_EDITOR_ID: () => (/* binding */ DEFAULT_EDITOR_ID), -/* harmony export */ WidgetNamespace: () => (/* binding */ WidgetNamespace), -/* harmony export */ in_: () => (/* binding */ in_) -/* harmony export */ }); -let WidgetNamespace = /*#__PURE__*/function (WidgetNamespace) { - WidgetNamespace["BUILTIN"] = "builtin"; - WidgetNamespace["EXTENSION"] = "extension"; - WidgetNamespace["SIDEBAR_BUILTIN"] = "sidebar-builtin"; - WidgetNamespace["APP"] = "app"; - WidgetNamespace["EDITOR_BUILTIN"] = "editor-builtin"; - return WidgetNamespace; -}({}); -const DEFAULT_EDITOR_ID = 'default-editor'; - -/** - * @private - */ -const in_ = (key, object) => key in object; - -/***/ }), - -/***/ "./create-adapter.ts": -/*!***************************!*\ - !*** ./create-adapter.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createAdapter: () => (/* binding */ createAdapter) -/* harmony export */ }); -/* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts"); -/** - * @packageDocumentation - * @hidden - */ - - -/** - * @private - */ -function createAdapter(params) { - if ('apiAdapter' in params) { - return params.apiAdapter; - } else { - return new _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_0__.RestAdapter(params); - } -} - -/***/ }), - -/***/ "./create-app-definition-api.ts": -/*!**************************************!*\ - !*** ./create-app-definition-api.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createAppDefinitionApi) -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/* harmony import */ var _entities_app_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities/app-definition */ "./entities/app-definition.ts"); - - - -/** - * @private - */ - -/** - * @private - */ -function createAppDefinitionApi(makeRequest) { - const { - wrapAppBundle, - wrapAppBundleCollection - } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].appBundle; - const getParams = data => ({ - appDefinitionId: data.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => { - * appDefinition.name = 'New App Definition name' - * return appDefinition.update() - * }) - * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'update', - params: getParams(data), - headers: {}, - payload: data - }).then(data => (0,_entities_app_definition__WEBPACK_IMPORTED_MODULE_1__.wrapAppDefinition)(makeRequest, data)); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.delete()) - * .then(() => console.log(`App Definition deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'delete', - params: getParams(data) - }); - }, - /** - * Gets an app bundle - * @param id - AppBundle ID - * @return Promise for an AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - getAppBundle(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'get', - params: { - appBundleId: id, - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - } - }).then(data => wrapAppBundle(makeRequest, data)); - }, - /** - * Gets a collection of AppBundles - * @return Promise for a collection of AppBundles - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppBundles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'getMany', - params: { - organizationId: raw.sys.organization.sys.id, - appDefinitionId: raw.sys.id, - query - } - }).then(data => wrapAppBundleCollection(makeRequest, data)); - }, - /** - * Creates an app bundle - * @param Object representation of the App Bundle to be created - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.createAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - createAppBundle(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'create', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - }, - payload: data - }).then(data => wrapAppBundle(makeRequest, data)); - }, - /** - * Gets a list of App Installations across an org for given organization and App Definition - * If a spaceId is provided in the query object, it will return the App Installations for that specific space. - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getAppDefinition('', '') - * .then((appDefinition) => appDefinition.getInstallationsForOrg( - * { spaceId: '' } // optional - * )) - * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items)) - * .catch(console.error) - * ``` - */ - getInstallationsForOrg(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getInstallationsForOrg', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id, - query - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-contentful-api.ts": -/*!**********************************!*\ - !*** ./create-contentful-api.ts ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createClientApi) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -const _excluded = ["url"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - -/** - * @private - */ -function createClientApi(makeRequest) { - const { - wrapSpace, - wrapSpaceCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space; - const { - wrapUser - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user; - const { - wrapPersonalAccessToken, - wrapPersonalAccessTokenCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].personalAccessToken; - const { - wrapAccessToken, - wrapAccessTokenCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].accessToken; - const { - wrapOrganization, - wrapOrganizationCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organization; - const { - wrapUsageCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].usage; - const { - wrapAppDefinition - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDefinition; - const { - wrapEnvironmentTemplate, - wrapEnvironmentTemplateCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate; - return { - /** - * Gets all environment templates for a given organization with the lasted version - * @param organizationId - Organization ID - * @return Promise for a collection of EnvironmentTemplates - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplates('') - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplates: function getEnvironmentTemplates(organizationId, query = {}) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'getMany', - params: { - organizationId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId)); - }, - /** - * Gets the lasted version environment template if params.version is not specified - * @param params.organizationId - Organization ID - * @param params.environmentTemplateId - Environment template ID - * @param [params.version] - Template version number to return a specific version of the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate({ - * organizationId: '', - * environmentTemplateId: '', - * version: version> - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplate: function getEnvironmentTemplate({ - organizationId, - environmentTemplateId, - version, - query = {} - }) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'get', - params: { - organizationId, - environmentTemplateId, - version, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Creates an environment template - * @param organizationId - Organization ID - * @param environmentTemplateData - Object representation of the environment template to be created - * @return Promise for the newly created EnvironmentTemplate - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createEnvironmentTemplate('', {}) - * .then((environmentTemplate) => console.log(environmentTemplate)) - * .catch(console.error) - * ``` - */ - createEnvironmentTemplate: function createEnvironmentTemplate(organizationId, environmentTemplateData) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'create', - params: { - organizationId - }, - payload: environmentTemplateData - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Gets all spaces - * @return Promise for a collection of Spaces - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaces() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaces: function getSpaces(query = {}) { - return makeRequest({ - entityType: 'Space', - action: 'getMany', - params: { - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapSpaceCollection(makeRequest, data)); - }, - /** - * Gets a space - * @param spaceId - Space ID - * @return Promise for a Space - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getSpace: function getSpace(spaceId) { - return makeRequest({ - entityType: 'Space', - action: 'get', - params: { - spaceId - } - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Creates a space - * @param spaceData - Object representation of the Space to be created - * @param organizationId - Organization ID, if the associated token can manage more than one organization. - * @return Promise for the newly created Space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createSpace({ - * name: 'Name of new space' - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - createSpace: function createSpace(spaceData, organizationId) { - return makeRequest({ - entityType: 'Space', - action: 'create', - params: { - organizationId - }, - payload: spaceData - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Gets an organization - * @param id - Organization ID - * @return Promise for a Organization - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => console.log(org)) - * .catch(console.error) - * ``` - */ - getOrganization: function getOrganization(id) { - return makeRequest({ - entityType: 'Organization', - action: 'get', - params: { - organizationId: id - } - }).then(data => wrapOrganization(makeRequest, data)); - }, - /** - * Gets a collection of Organizations - * @return Promise for a collection of Organizations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizations() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizations: function getOrganizations(query = {}) { - return makeRequest({ - entityType: 'Organization', - action: 'getMany', - params: { - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapOrganizationCollection(makeRequest, data)); - }, - /** - * Gets the authenticated user - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getCurrentUser() - * .then(user => console.log(user.firstName)) - * .catch(console.error) - * ``` - */ - getCurrentUser: function getCurrentUser(params) { - return makeRequest({ - entityType: 'User', - action: 'getCurrent', - params - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets App Definition - * @return Promise for App Definition - * @param organizationId - Id of the organization where the app is installed - * @param appDefinitionId - Id of the app that will be returned - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAppDefinition(<'org_id'>, <'app_id'>) - * .then(appDefinition => console.log(appDefinition.name)) - * .catch(console.error) - * ``` - */ - - getAppDefinition: function getAppDefinition(params) { - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Creates a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createPersonalAccessToken( - * { - * "name": "My Token", - * "scope": [ - * "content_management_manage" - * ] - * } - * ) - * .then(personalAccessToken => console.log(personalAccessToken.token)) - * .catch(console.error) - * ``` - */ - createPersonalAccessToken: function createPersonalAccessToken(data) { - return makeRequest({ - /** - * When the `PersonalAccessToken` entity is removed, replace the `entityType` with `AccessToken` - * and update the action to `createPersonalToken` to ultilize the new entity called AccessToken. - */ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - payload: data - }).then(response => wrapPersonalAccessToken(makeRequest, response)); - }, - /** - * @deprecated - use getAccessToken instead - * - * Gets a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getPersonalAccessToken: function getPersonalAccessToken(tokenId) { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'get', - params: { - tokenId - } - }).then(data => wrapPersonalAccessToken(makeRequest, data)); - }, - /** - * @deprecated - use getAccessTokens instead - * - * Gets all personal access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getPersonalAccessTokens: function getPersonalAccessTokens() { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'getMany', - params: {} - }).then(data => wrapPersonalAccessTokenCollection(makeRequest, data)); - }, - /** - * Gets a users access token - * @param data - users access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getAccessToken: function getAccessToken(tokenId) { - return makeRequest({ - entityType: 'AccessToken', - action: 'get', - params: { - tokenId - } - }).then(data => wrapAccessToken(makeRequest, data)); - }, - /** - * Gets all user access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getAccessTokens: function getAccessTokens() { - return makeRequest({ - entityType: 'AccessToken', - action: 'getMany', - params: {} - }).then(data => wrapAccessTokenCollection(makeRequest, data)); - }, - /** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationAccessTokens(organizationId) - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getOrganizationAccessTokens: function getOrganizationAccessTokens(organizationId, query = {}) { - return makeRequest({ - entityType: 'AccessToken', - action: 'getManyForOrganization', - params: { - organizationId, - query - } - }).then(data => wrapAccessTokenCollection(makeRequest, data)); - }, - /** - * Get organization usage grouped by {@link UsageMetricEnum metric} - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * @example ```javascript - * - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationUsage('', { - * 'metric[in]': 'cma,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2019-11-10' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizationUsage: function getOrganizationUsage(organizationId, query = {}) { - return makeRequest({ - entityType: 'Usage', - action: 'getManyForOrganization', - params: { - organizationId, - query - } - }).then(data => wrapUsageCollection(makeRequest, data)); - }, - /** - * Get organization usage grouped by space and metric - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaceUsage('', { - * skip: 0, - * limit: 10, - * 'metric[in]': 'cda,cpa,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2020-11-30' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getSpaceUsage: function getSpaceUsage(organizationId, query = {}) { - return makeRequest({ - entityType: 'Usage', - action: 'getManyForSpace', - params: { - organizationId, - query - } - }).then(data => wrapUsageCollection(makeRequest, data)); - }, - /** - * Make a custom request to the Contentful management API's /spaces endpoint - * @param opts - axios request options (https://github.com/mzabriskie/axios) - * @return Promise for the response data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.rawRequest({ - * method: 'GET', - * url: '/custom/path' - * }) - * .then((responseData) => console.log(responseData)) - * .catch(console.error) - * ``` - */ - rawRequest: function rawRequest(_ref) { - let { - url - } = _ref, - config = _objectWithoutProperties(_ref, _excluded); - return makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url, - config - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-entry-api.ts": -/*!*****************************!*\ - !*** ./create-entry-api.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createEntryApi) -/* harmony export */ }); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ - -/** - * @private - */ -function createEntryApi(makeRequest) { - const { - wrapEntry, - wrapEntryCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].entry; - const { - wrapSnapshot, - wrapSnapshotCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].snapshot; - const { - wrapTask, - wrapTaskCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].task; - const { - wrapComment, - wrapCommentCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].comment; - const getParams = self => { - const entry = self.toPlainObject(); - return { - params: { - spaceId: entry.sys.space.sys.id, - environmentId: entry.sys.environment.sys.id, - entryId: entry.sys.id - }, - raw: entry - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => { - * entry.fields.title['en-US'] = 'New entry title' - * return entry.update() - * }) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'update', - params, - payload: raw - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Sends an JSON patch to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.patch([ - * { - * op: 'replace', - * path: '/fields/title/en-US', - * value: 'New entry title' - * } - * ])) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - patch: function patch(ops) { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'patch', - params: _objectSpread(_objectSpread({}, params), {}, { - version: raw.sys.version - }), - payload: ops - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.delete()) - * .then(() => console.log(`Entry deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params - }); - }, - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.publish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} published.`)) - * .catch(console.error) - * ``` - */ - publish: function publish() { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'publish', - params, - payload: raw - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unpublish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`)) - * .catch(console.error) - * ``` - */ - - unpublish: function unpublish() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'unpublish', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Archives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.archive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`)) - * .catch(console.error) - * ``` - */ - archive: function archive() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'archive', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Unarchives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unarchive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`)) - * .catch(console.error) - * ``` - */ - unarchive: function unarchive() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'unarchive', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Gets all snapshots of an entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshots()) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getSnapshots: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - /** - * Gets a snapshot of an entry - * @param snapshotId - Id of the snapshot - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshot('')) - * .then((snapshot) => console.log(snapshot)) - * .catch(console.error) - * ``` - */ - getSnapshot: function (snapshotId) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId - }) - }).then(data => wrapSnapshot(makeRequest, data)); - }, - /** - * Creates a new comment for an entry - * @param data Object representation of the Comment to be created - * @returns Promise for the newly created Comment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createComment({ - * body: 'Something left to do' - * })) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - createComment: function (data) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'create', - params: { - spaceId: params.spaceId, - environmentId: params.environmentId, - parentEntityId: params.entryId, - parentEntityType: 'Entry' - }, - payload: data - }).then(data => wrapComment(makeRequest, data)); - }, - /** - * Gets all comments of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComments()) - * .then((comments) => console.log(comments)) - * .catch(console.error) - * ``` - */ - getComments: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'getMany', - params - }).then(data => wrapCommentCollection(makeRequest, data)); - }, - /** - * Gets a comment of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComment(``)) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - getComment: function (id) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - commentId: id - }) - }).then(data => wrapComment(makeRequest, data)); - }, - /** - * Creates a new task for an entry - * @param data Object representation of the Task to be created - * @returns Promise for the newly created Task - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createTask({ - * body: 'Something left to do', - * assignedTo: '', - * status: 'active' - * })) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - createTask: function (data) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'create', - params, - payload: data - }).then(data => wrapTask(makeRequest, data)); - }, - /** - * Gets all tasks of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTasks()) - * .then((tasks) => console.log(tasks)) - * .catch(console.error) - * ``` - */ - getTasks: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'getMany', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => wrapTaskCollection(makeRequest, data)); - }, - /** - * Gets a task of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTask(``)) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - getTask: function (id) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - taskId: id - }) - }).then(data => wrapTask(makeRequest, data)); - }, - /** - * Checks if the entry is published. A published entry might have unpublished changes - */ - isPublished: function isPublished() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isPublished(raw); - }, - /** - * Checks if the entry is updated. This means the entry was previously published but has unpublished changes. - */ - isUpdated: function isUpdated() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isUpdated(raw); - }, - /** - * Checks if the entry is in draft mode. This means it is not published. - */ - isDraft: function isDraft() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isDraft(raw); - }, - /** - * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs. - */ - isArchived: function isArchived() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_0__.isArchived(raw); - }, - /** - * Recursively collects references of an entry and their descendants - */ - references: function references(options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - entryId: raw.sys.id, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(response => wrapEntryCollection(makeRequest, response)); - } - }; -} - -/***/ }), - -/***/ "./create-environment-api.ts": -/*!***********************************!*\ - !*** ./create-environment-api.ts ***! - \***********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createEnvironmentApi) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/* harmony import */ var _entities_release_action__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/release-action */ "./entities/release-action.ts"); -/* harmony import */ var _entities_release__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/release */ "./entities/release.ts"); -/* harmony import */ var _entities_tag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./entities/tag */ "./entities/tag.ts"); -/* harmony import */ var _entities_ui_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/ui-config */ "./entities/ui-config.ts"); -/* harmony import */ var _entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/user-ui-config */ "./entities/user-ui-config.ts"); -/* harmony import */ var _entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/environment-template-installation */ "./entities/environment-template-installation.ts"); -const _excluded = ["installationId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - - - - - - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Environment API - * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -function createEnvironmentApi(makeRequest) { - const { - wrapEnvironment - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environment; - const { - wrapContentType, - wrapContentTypeCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].contentType; - const { - wrapEntry, - wrapEntryCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].entry; - const { - wrapAsset, - wrapAssetCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].asset; - const { - wrapAssetKey - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].assetKey; - const { - wrapLocale, - wrapLocaleCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].locale; - const { - wrapSnapshotCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].snapshot; - const { - wrapEditorInterface, - wrapEditorInterfaceCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].editorInterface; - const { - wrapUpload - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].upload; - const { - wrapExtension, - wrapExtensionCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].extension; - const { - wrapAppInstallation, - wrapAppInstallationCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appInstallation; - const { - wrapAppSignedRequest - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appSignedRequest; - const { - wrapAppActionCall - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appActionCall; - const { - wrapBulkAction - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].bulkAction; - const { - wrapAppAccessToken - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAccessToken; - return { - /** - * Deletes the environment - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.delete()) - * .then(() => console.log('Environment deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteEnvironment() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(() => { - // noop - }); - }, - /** - * Updates the environment - * @return Promise for the updated environment. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => { - * environment.name = 'New name' - * return environment.update() - * }) - * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateEnvironment() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: raw - }).then(data => wrapEnvironment(makeRequest, data)); - }, - /** - * Creates SDK Entry object (locally) from entry data - * @param entryData - Entry Data - * @return Entry - * @example ```javascript - * environment.getEntry('entryId').then(entry => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = entry.toPlainObject(); - * - * // The entry is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * entryWithMethodsAgain.update(); - * - * }); - * ``` - **/ - getEntryFromData(entryData) { - return wrapEntry(makeRequest, entryData); - }, - /** - * Creates SDK Asset object (locally) from entry data - * @param assetData - Asset ID - * @return Asset - * @example ```javascript - * environment.getAsset('asset_id').then(asset => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = asset.toPlainObject(); - * - * // The asset is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * assetWithMethodsAgain.update(); - * - * }); - * ``` - */ - getAssetFromData(assetData) { - return wrapAsset(makeRequest, assetData); - }, - /** - * - * @description Get a BulkAction by ID. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action - * @param bulkActionId - ID of the BulkAction to fetch - * @returns - Promise with the BulkAction - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getBulkAction('')) - * .then((bulkAction) => console.log(bulkAction)) - * ``` - */ - getBulkAction(bulkActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - bulkActionId - } - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to publish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createPublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createPublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createPublishBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to validate all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * action: 'publish', - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createValidateBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createValidateBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createValidateBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUnpublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await clientgetSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createUnpublishBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * Gets a Content Type - * @param contentTypeId - Content Type ID - * @return Promise for a Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - getContentType(contentTypeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - } - }).then(data => wrapContentType(makeRequest, data)); - }, - /** - * Gets a collection of Content Types - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Content Types - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypes()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getContentTypes(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapContentTypeCollection(makeRequest, data)); - }, - /** - * Creates a Content Type - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentType({ - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentType(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapContentType(makeRequest, response)); - }, - /** - * Creates a Content Type with a custom ID - * @param contentTypeId - Content Type ID - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentTypeWithId('', { - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentTypeWithId(contentTypeId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - }, - payload: data - }).then(response => wrapContentType(makeRequest, response)); - }, - /** - * Gets an EditorInterface for a ContentType - * @param contentTypeId - Content Type ID - * @return Promise for an EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaceForContentType('')) - * .then((EditorInterface) => console.log(EditorInterface)) - * .catch(console.error) - * ``` - */ - getEditorInterfaceForContentType(contentTypeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - } - }).then(response => wrapEditorInterface(makeRequest, response)); - }, - /** - * Gets all EditorInterfaces - * @return Promise for a collection of EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaces()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEditorInterfaces() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(response => wrapEditorInterfaceCollection(makeRequest, response)); - }, - /** - * Gets an Entry - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Entry ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - getEntry(id, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Deletes an Entry of this environment - * @param id - Entry ID - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteEntry("4bmLXiuviAZH3jkj5DLRWE")) - * .then(() => console.log('Entry deleted.')) - * .catch(console.error) - * ``` - */ - deleteEntry(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id - } - }).then(() => { - // noop - }); - }, - /** - * Gets a collection of Entries - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEntries(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapEntryCollection(makeRequest, data)); - }, - /** - * Gets a collection of published Entries - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedEntries(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapEntryCollection(makeRequest, data)); - }, - /** - * Creates a Entry - * @param contentTypeId - The Content Type ID of the newly created Entry - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntry('', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntry(contentTypeId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - }, - payload: data - }).then(response => wrapEntry(makeRequest, response)); - }, - /** - * Creates a Entry with a custom ID - * @param contentTypeId - The Content Type of the newly created Entry - * @param id - Entry ID - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create entry - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntryWithId('', '', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntryWithId(contentTypeId, id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - contentTypeId: contentTypeId - }, - payload: data - }).then(response => wrapEntry(makeRequest, response)); - }, - /** - * Get entry references - * @param entryId - Entry ID - * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum - * @returns Promise of Entry references - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: ' - * }) - * - * // Get entry references - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntryReferences('', {include: number})) - * .then((entry) => console.log(entry.includes)) - * // or - * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number})) - * .catch(console.error) - * ``` - */ - getEntryReferences(entryId, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: entryId, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(response => wrapEntryCollection(makeRequest, response)); - }, - /** - * Gets an Asset - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Asset ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Asset - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - getAsset(id, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapAsset(makeRequest, data)); - }, - /** - * Gets a collection of Assets - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAssets(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapAssetCollection(makeRequest, data)); - }, - /** - * Gets a collection of published Assets - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedAssets(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapAssetCollection(makeRequest, data)); - }, - /** - * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAsset({ - * fields: { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * } - * })) - * .then((asset) => asset.processForLocale("en-US")) // OR asset.processForAllLocales() - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAsset(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param id - Asset ID - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * })) - * .then((asset) => asset.process()) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetFromFiles({ - * fields: { - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'filename_english.jpg', - * file: createReadStream('path/to/filename_english.jpg') - * }, - * 'de-DE': { - * contentType: 'image/svg+xml', - * fileName: 'filename_german.svg', - * file: '' - * } - * } - * } - * })) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetFromFiles(data, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createFromFiles', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadTimeout: options === null || options === void 0 ? void 0 : options.uploadTimeout - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates an asset key for signing asset URLs (Embargoed Assets) - * @param data Object with request payload - * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling) - * @return Promise for the newly created AssetKey - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create assetKey - * now = () => Math.floor(Date.now() / 1000) - * const withExpiryIn1Hour = () => now() + 1 * 60 * 60 - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() })) - * .then((policy, secret) => console.log({ policy, secret })) - * .catch(console.error) - * ``` - */ - createAssetKey(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AssetKey', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapAssetKey(makeRequest, data)); - }, - /** - * Gets an Upload - * @param id - Upload ID - * @return Promise for an Upload - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUpload('') - * .then((upload) => console.log(upload)) - * .catch(console.error) - */ - getUpload(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: id - } - }).then(data => wrapUpload(makeRequest, data)); - }, - /** - * Creates a Upload. - * @param data - Object with file information. - * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream. - * @return Upload object containing information about the uploaded file. - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUpload({file: uploadStream}) - * .then((upload) => console.log(upload)) - * .catch(console.error) - * ``` - */ - createUpload: function createUpload(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(data => wrapUpload(makeRequest, data)); - }, - /** - * Gets a Locale - * @param localeId - Locale ID - * @return Promise for an Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - getLocale(localeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - localeId - } - }).then(data => wrapLocale(makeRequest, data)); - }, - /** - * Gets a collection of Locales - * @return Promise for a collection of Locales - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocales()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getLocales() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(data => wrapLocaleCollection(makeRequest, data)); - }, - /** - * Creates a Locale - * @param data - Object representation of the Locale to be created - * @return Promise for the newly created Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create locale - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createLocale({ - * name: 'German (Austria)', - * code: 'de-AT', - * fallbackCode: 'de-DE', - * optional: true - * })) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - createLocale(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapLocale(makeRequest, response)); - }, - /** - * Gets an UI Extension - * @param id - Extension ID - * @return Promise for an UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - getUiExtension(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - } - }).then(data => wrapExtension(makeRequest, data)); - }, - /** - * Gets a collection of UI Extension - * @return Promise for a collection of UI Extensions - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtensions() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getUiExtensions() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(response => wrapExtensionCollection(makeRequest, response)); - }, - /** - * Creates a UI Extension - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtension({ - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtension(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - /** - * Creates a UI Extension with a custom ID - * @param id - Extension ID - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtensionWithId('', { - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtensionWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - }, - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - /** - * Creates an App Installation - * @param appDefinitionId - AppDefinition ID - * @param data - AppInstallation data - * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app) - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppInstallation('', { - * parameters: { - * someParameter: someValue - * } - * }) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - createAppInstallation(appDefinitionId, data, { - acceptAllTerms - } = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId, - acceptAllTerms - }, - payload: data - }).then(payload => wrapAppInstallation(makeRequest, payload)); - }, - /** - * Gets an App Installation - * @param id - AppDefintion ID - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - getAppInstallation(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: id - } - }).then(data => wrapAppInstallation(makeRequest, data)); - }, - /** - * Gets a collection of App Installation - * @return Promise for a collection of App Installations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallations() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppInstallations() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(data => wrapAppInstallationCollection(makeRequest, data)); - }, - /** - * Creates an app action call - * @param appDefinitionId - AppDefinition ID - * @param appActionId - action ID - * @param data - App Action Call data - * @return Promise for an App Action Call - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * headers: { - * 'x-my-header': 'some-value' - * }, - * body: { - * 'some-body-value': true - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppActionCall('', '', data) - * .then((appActionCall) => console.log(appActionCall)) - * .catch(console.error) - * ``` - */ - createAppActionCall(appDefinitionId, appActionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppActionCall', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId, - appActionId - }, - payload: data - }).then(payload => wrapAppActionCall(makeRequest, payload)); - }, - /** - * Creates an app signed request - * @param appDefinitionId - AppDefinition ID - * @param data - SignedRequest data - * @return Promise for a Signed Request - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * method: 'POST', - * path: '/request_path', - * body: '{ "key": "data" }', - * headers: { - * 'x-my-header': 'some-value' - * }, - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppSignedRequest('', data) - * .then((signedRequest) => console.log(signedRequest)) - * .catch(console.error) - * ``` - */ - createAppSignedRequest(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSignedRequest', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppSignedRequest(makeRequest, payload)); - }, - /** - * Creates an app access token - * @param appDefinitionId - AppDefinition ID - * @param data - Json Web Token - * @return Promise for an app access token - * @example ```javascript - * const contentful = require('contentful-management') - * const { sign } = require('jsonwebtoken') - * - * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' } - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * jwt: sign({}, '', signOptions) - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppAccessToken('', data) - * .then((appAccessToken) => console.log(appAccessToken)) - * .catch(console.error) - * ``` - */ - createAppAccessToken(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAccessToken', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppAccessToken(makeRequest, payload)); - }, - /** - * Gets all snapshots of an entry - * @func getEntrySnapshots - * @param entryId - Entry ID - * @param query - query additional query paramaters - * @return Promise for a collection of Entry Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntrySnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getEntrySnapshots(entryId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId, - query - } - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - /** - * Gets all snapshots of a contentType - * @func getContentTypeSnapshots - * @param contentTypeId - Content Type ID - * @param query - query additional query paramaters - * @return Promise for a collection of Content Type Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypeSnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getContentTypeSnapshots(contentTypeId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId, - query - } - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - createTag(id, name, visibility) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - }, - payload: { - name, - sys: { - visibility: visibility !== null && visibility !== void 0 ? visibility : 'private' - } - } - }).then(data => (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTag)(makeRequest, data)); - }, - getTags(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTagCollection)(makeRequest, data)); - }, - getTag(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - } - }).then(data => (0,_entities_tag__WEBPACK_IMPORTED_MODULE_4__.wrapTag)(makeRequest, data)); - }, - /** - * Retrieves a Release by ID - * @param releaseId - * @returns Promise containing a wrapped Release - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getRelease('')) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - getRelease(releaseId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data)); - }, - /** - * Gets a Collection of Releases, - * @param {ReleaseQueryOptions} query filtering options for the collection result - * @returns Promise containing a wrapped Release Collection - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' })) - * .then((releases) => console.log(releases)) - * .catch(console.error) - * ``` - */ - getReleases(query) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'query', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query - } - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapReleaseCollection)(makeRequest, data)); - }, - /** - * Creates a new Release with the entities and title in the payload - * @param payload Object containing the payload in order to create a Release - * @returns Promise containing a wrapped Release, that has other helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * title: 'My Release', - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createRelease(payload)) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - createRelease(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data)); - }, - /** - * Updates a Release and replaces all the properties. - * @param {object} options, - * @param options.releaseId the ID of the release - * @param options.payload the payload to be updated in the Release - * @param options.version Release sys.version that to be updated - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * - * const payload = { - * title: "Updated Release title", - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } )) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - updateRelease({ - releaseId, - payload, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - }, - payload - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data)); - }, - /** - * Deletes a Release by ID - does not delete any entities. - * @param releaseId the ID of the release - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteRelease('') - * .catch(console.error) - * ``` - */ - deleteRelease(releaseId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }); - }, - /** - * Publishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - publishRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data)); - }, - /** - * Unpublishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unpublishRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data)); - }, - /** - * Validates all Entities contained in a Release against an action (publish or unpublish) - * @param options.releaseId the ID of the release - * @param options.payload (optional) the type of action to be validated against - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } })) - * .catch(console.error) - * ``` - */ - validateRelease({ - releaseId, - payload - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - }, - payload - }).then(data => (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data)); - }, - /** - * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc). - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be archived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - archiveRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'archive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data)); - }, - /** - * Unarchives a previously archived Release - this enables the release to be published, unpublished etc. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be unarchived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unarchiveRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unarchive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => (0,_entities_release__WEBPACK_IMPORTED_MODULE_3__.wrapRelease)(makeRequest, data)); - }, - /** - * Retrieves a ReleaseAction by ID - * @param params.releaseId The ID of a Release - * @param params.actionId The ID of a Release Action - * @returns Promise containing a wrapped ReleaseAction - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' })) - * .then((releaseAction) => console.log(releaseAction)) - * .catch(console.error) - * ``` - */ - getReleaseAction({ - actionId, - releaseId - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params: { - actionId, - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }).then(data => (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseAction)(makeRequest, data)); - }, - /** - * Gets a Collection of ReleaseActions - * @param {string} params.releaseId ID of the Release to fetch the actions from - * @param {ReleaseQueryOptions} params.query filtering options for the collection result - * @returns Promise containing a wrapped ReleaseAction Collection - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } })) - * .then((releaseActions) => console.log(releaseActions)) - * .catch(console.error) - * ``` - */ - getReleaseActions({ - query - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query - } - }).then(data => (0,_entities_release_action__WEBPACK_IMPORTED_MODULE_2__.wrapReleaseActionCollection)(makeRequest, data)); - }, - async getUIConfig() { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'UIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - return (0,_entities_ui_config__WEBPACK_IMPORTED_MODULE_5__.wrapUIConfig)(makeRequest, data); - }, - async getUserUIConfig() { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'UserUIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - return (0,_entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__.wrapUserUIConfig)(makeRequest, data); - }, - /** - * Gets a collection of all environment template installations in the environment for a given template - * @param environmentTemplateId - Environment template ID to return installations for - * @param [options.installationId] - Installation ID to filter for a specific installation - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEnvironmentTemplateInstallations('')) - * .then((installations) => console.log(installations.items)) - * .catch(console.error) - * ``` - */ - async getEnvironmentTemplateInstallations(environmentTemplateId, _ref = {}) { - let { - installationId - } = _ref, - query = _objectWithoutProperties(_ref, _excluded); - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplateInstallation', - action: 'getForEnvironment', - params: _objectSpread(_objectSpread({ - environmentTemplateId - }, installationId && { - installationId - }), {}, { - query: _objectSpread({}, (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params), - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }) - }).then(data => (0,_entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__.wrapEnvironmentTemplateInstallationCollection)(makeRequest, data)); - } - }; -} - -/***/ }), - -/***/ "./create-environment-template-api.ts": -/*!********************************************!*\ - !*** ./create-environment-template-api.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createEnvironmentTemplateApi: () => (/* binding */ createEnvironmentTemplateApi) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -const _excluded = ["spaceId", "environmentId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - -function createEnvironmentTemplateApi(makeRequest, organizationId) { - const { - wrapEnvironmentTemplate, - wrapEnvironmentTemplateCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate; - const { - wrapEnvironmentTemplateInstallationCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplateInstallation; - return { - /** - * Updates a environment template - * @return Promise for new version of the template - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => { - * environmentTemplate.name = 'New name' - * return environmentTemplate.update() - * }) - * .then((environmentTemplate) => - * console.log(`Environment template ${environmentTemplate.sys.id} renamed.`) - * ).catch(console.error) - * ``` - */ - update: function updateEnvironmentTemplate() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'update', - params: { - organizationId, - environmentTemplateId: raw.sys.id - }, - payload: raw - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Updates environment template version data - * @param version.versionName - Name of the environment template version - * @param version.versionDescription - Description of the environment template version - * @return Promise for an updated EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => { - * return environmentTemplate.updateVersion({ - * versionName: 'New Name', - * versionDescription: 'New Description', - * }) - * }) - * .then((environmentTemplate) => - * console.log(`Environment template version ${environmentTemplate.sys.id} renamed.`) - * ).catch(console.error) - * ``` - */ - updateVersion: function updateEnvironmentTemplateVersion({ - versionName, - versionDescription - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'versionUpdate', - params: { - organizationId, - environmentTemplateId: raw.sys.id, - version: raw.sys.version - }, - payload: { - versionName, - versionDescription - } - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Deletes the environment template - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.delete()) - * .then(() => console.log('Environment template deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteEnvironmentTemplate() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'delete', - params: { - organizationId, - environmentTemplateId: raw.sys.id - } - }); - }, - /** - * Gets a collection of all versions for the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.getVersions()) - * .then((environmentTemplateVersions) => console.log(environmentTemplateVersions.items)) - * .catch(console.error) - * ``` - */ - getVersions: function getEnvironmentTemplateVersions() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'versions', - params: { - organizationId, - environmentTemplateId: raw.sys.id - } - }).then(data => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId)); - }, - /** - * Gets a collection of all installations for the environment template - * @param [installationParams.spaceId] - Space ID to filter installations by space and environment - * @param [installationParams.environmentId] - Environment ID to filter installations by space and environment - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.getInstallations()) - * .then((environmentTemplateInstallations) => - * console.log(environmentTemplateInstallations.items) - * ) - * .catch(console.error) - * ``` - */ - getInstallations: function getEnvironmentTemplateInstallations(_ref = {}) { - let { - spaceId, - environmentId - } = _ref, - query = _objectWithoutProperties(_ref, _excluded); - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplateInstallation', - action: 'getMany', - params: { - organizationId, - environmentTemplateId: raw.sys.id, - query: _objectSpread({}, (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params), - spaceId, - environmentId - } - }).then(data => wrapEnvironmentTemplateInstallationCollection(makeRequest, data)); - }, - /** - * Validates an environment template against a given space and environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @param [params.version] - Version of the template - * @param [params.installation.takeover] - Already existing Content types to takeover in the target environment - * @param [params.changeSet] - Change set which should be applied - * @return Promise for a EnvironmentTemplateValidation - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.validate({ - * spaceId: '', - * environmentId: '', - * version: , - * })) - * .then((validationResult) => console.log(validationResult)) - * .catch(console.error) - * ``` - */ - validate: function validateEnvironmentTemplate({ - spaceId, - environmentId, - version, - takeover, - changeSet - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'validate', - params: { - spaceId, - version, - environmentId, - environmentTemplateId: raw.sys.id - }, - payload: _objectSpread(_objectSpread({}, takeover && { - takeover - }), changeSet && { - changeSet - }) - }); - }, - /** - * Installs a template against a given space and environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @param params.installation.version- Template version which should be installed - * @param [params.installation.takeover] - Already existing Content types tp takeover in the target environment - * @param [params.changeSet] - Change set which should be applied - * @return Promise for a EnvironmentTemplateInstallation - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then((environmentTemplate) => environmentTemplate.validate({ - * spaceId: '', - * environmentId: '', - * installation: { - * version: , - * } - * })) - * .then((installation) => console.log(installation)) - * .catch(console.error) - * ``` - */ - install: function installEnvironmentTemplate({ - spaceId, - environmentId, - installation - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'install', - params: { - spaceId, - environmentId, - environmentTemplateId: raw.sys.id - }, - payload: installation - }); - }, - /** - * Disconnects the template from a given environment - * @param params.spaceId - Space ID where the template should be installed into - * @param params.environmentId - Environment ID where the template should be installed into - * @return Promise for the disconnection with no data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate('', '') - * .then(environmentTemplate) => environmentTemplate.disconnected()) - * .then(() => console.log('Template disconnected')) - * .catch(console.error) - * ``` - */ - disconnect: function disconnectEnvironmentTemplate({ - spaceId, - environmentId - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'disconnect', - params: { - spaceId, - environmentId, - environmentTemplateId: raw.sys.id - } - }); - } - }; -} - -/***/ }), - -/***/ "./create-organization-api.ts": -/*!************************************!*\ - !*** ./create-organization-api.ts ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createOrganizationApi) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Organization API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulOrganizationAPI} - * @private - */ -function createOrganizationApi(makeRequest) { - const { - wrapAppDefinition, - wrapAppDefinitionCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDefinition; - const { - wrapUser, - wrapUserCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user; - const { - wrapOrganizationMembership, - wrapOrganizationMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organizationMembership; - const { - wrapTeamMembership, - wrapTeamMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamMembership; - const { - wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamSpaceMembership; - const { - wrapTeam, - wrapTeamCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].team; - const { - wrapSpaceMembership, - wrapSpaceMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMembership; - const { - wrapOrganizationInvitation - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].organizationInvitation; - const { - wrapAppUpload - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appUpload; - const { - wrapAppSigningSecret - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appSigningSecret; - const { - wrapAppEventSubscription - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appEventSubscription; - const { - wrapAppKey, - wrapAppKeyCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appKey; - const { - wrapAppDetails - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDetails; - const { - wrapAppAction, - wrapAppActionCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAction; - const { - wrapRoleCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].role; - const { - wrapSpaceCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space; - return { - /** - * Gets a collection of spaces in the organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getSpaces()) - * .then((spaces) => console.log(spaces)) - * .catch(console.error) - * ``` - */ - getSpaces(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapSpaceCollection(makeRequest, data)); - }, - /** - * Gets a User - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getUser(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - userId: id - } - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets a collection of Users in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUsers()) - * .then((users) => console.log(users)) - * .catch(console.error) - * ``` - */ - getUsers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapUserCollection(makeRequest, data)); - }, - /** - * Gets an Organization Membership - * @param id - Organization Membership ID - * @return Promise for an Organization Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationMembership(id) { - const raw = this.toPlainObject(); - const organizationId = raw.sys.id; - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'get', - params: { - organizationId, - organizationMembershipId: id - } - }).then(data => wrapOrganizationMembership(makeRequest, data, organizationId)); - }, - /** - * Gets a collection of Organization Memberships - * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Organization Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - - getOrganizationMemberships(params = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'getMany', - params: _objectSpread({ - organizationId: raw.sys.id - }, params) - }).then(data => wrapOrganizationMembershipCollection(makeRequest, data, raw.sys.id)); - }, - /** - * Creates a Team - * @param data representation of the Team to be created - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createTeam({ - * name: 'new team', - * description: 'new team description' - * })) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - createTeam(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapTeam(makeRequest, data)); - }, - /** - * Gets an Team - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeam('teamId')) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - getTeam(teamId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId - } - }).then(data => wrapTeam(makeRequest, data)); - }, - /** - * Gets all Teams in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeams()) - * .then((teams) => console.log(teams)) - * .catch(console.error) - * ``` - */ - getTeams(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapTeamCollection(makeRequest, data)); - }, - /** - * Creates a Team membership - * @param teamId - Id of the team the membership will be created in - * @param data - Object representation of the Team Membership to be created - * @return Promise for the newly created TeamMembership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((org) => org.createTeamMembership('teamId', { - * admin: true, - * organizationMembershipId: 'organizationMembershipId' - * })) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - createTeamMembership(teamId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'create', - params: { - organizationId: raw.sys.id, - teamId - }, - payload: data - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - /** - * Gets an Team Membership from the team with given teamId - * @return Promise for an Team Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id')) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - getTeamMembership(teamId, teamMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId, - teamMembershipId - } - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - /** - * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization. - * @return Promise for a Team Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMemberships('teamId')) - * .then((teamMemberships) => console.log(teamMemberships)) - * .catch(console.error) - * ``` - */ - getTeamMemberships(opts = {}) { - const { - teamId, - query = {} - } = opts; - const raw = this.toPlainObject(); - if (teamId) { - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForTeam', - params: { - organizationId: raw.sys.id, - teamId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapTeamMembershipCollection(makeRequest, data)); - } - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapTeamMembershipCollection(makeRequest, data)); - }, - /** - * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization. - * @return Promise for a Team Space Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMemberships('teamId')) - * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(opts = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: opts.query || {} - }).params, - teamId: opts.teamId - } - }).then(data => wrapTeamSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Get a Team Space Membership with given teamSpaceMembershipId - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error)] - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - teamSpaceMembershipId - } - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - /** - * Gets an Space Membership in Organization - * @param id - Organiztion Space Membership ID - * @return Promise for a Space Membership in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMembership(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - spaceMembershipId: id - } - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection Space Memberships in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a Space Membership collection across all spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100 - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Gets an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getOrganizationInvitation('invitation_id')) - * .then((invitation) => console.log(invitation)) - * .catch(console.error) - * ``` - */ - getOrganizationInvitation(invitationId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'get', - params: { - organizationId: raw.sys.id, - invitationId - } - }).then(data => wrapOrganizationInvitation(makeRequest, data)); - }, - /** - * Create an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.createOrganizationInvitation({ - * email: 'user.email@example.com' - * firstName: 'User First Name' - * lastName: 'User Last Name' - * role: 'developer' - * }) - * .catch(console.error) - * ``` - */ - createOrganizationInvitation(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapOrganizationInvitation(makeRequest, data)); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapRoleCollection(makeRequest, data)); - }, - /** - * Creates an app definition - * @param Object representation of the App Definition to be created - * @return Promise for the newly created AppDefinition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppDefinition({ - * name: 'Example app', - * locations: [{ location: 'app-config' }], - * src: "http://my-app-host.com/my-app" - * })) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - createAppDefinition(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Gets all app definitions - * @return Promise for a collection of App Definitions - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinitions()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppDefinitions(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: query - } - }).then(data => wrapAppDefinitionCollection(makeRequest, data)); - }, - /** - * Gets an app definition - * @return Promise for an App Definition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - getAppDefinition(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: id - } - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Gets an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppUpload('')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - getAppUpload(appUploadId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'get', - params: { - organizationId: raw.sys.id, - appUploadId - } - }).then(data => wrapAppUpload(makeRequest, data)); - }, - /** - * Creates an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppUpload('some_zip_file')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - createAppUpload(file) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: { - file - } - }).then(data => wrapAppUpload(makeRequest, data)); - }, - /** - * Creates or updates an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' })) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - upsertAppSigningSecret(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppSigningSecret(makeRequest, payload)); - }, - /** - * Gets an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppSigningSecret('app_definition_id')) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - getAppSigningSecret(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppSigningSecret(makeRequest, payload)); - }, - /** - * Deletes an app signing secret - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppSigningSecret('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppSigningSecret(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - upsertAppEventSubscription(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppEventSubscription(makeRequest, payload)); - }, - /** - * Gets an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppEventSubscription('app_definition_id')) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - getAppEventSubscription(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppEventSubscription(makeRequest, payload)); - }, - /** - * Deletes the current App Event Subscription for the given App - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppEventSubscription('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppEventSubscription(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // generate a new private key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * - * // or use an existing JSON Web Key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - createAppKey(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppKey(makeRequest, payload)); - }, - /** - * Gets an app key by fingerprint - * @return Promise for an App Key - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppKey('app_definition_id', 'fingerprint')) - * .then((appKey) => console.log(appKey)) - * .catch(console.error) - * ``` - */ - getAppKey(appDefinitionId, fingerprint) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId, - fingerprint - } - }).then(payload => wrapAppKey(makeRequest, payload)); - }, - /** - * Gets all keys for the given app - * @return Promise for an array of App Keys - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // with default pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id')) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * - * // with explicit pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' })) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * ``` - */ - getAppKeys(appDefinitionId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(payload => wrapAppKeyCollection(makeRequest, payload)); - }, - /** - * Deletes an app key by fingerprint. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppKey(appDefinitionId, fingerprint) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId, - fingerprint - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppDetails('app_definition_id', - * { icon: { value: 'base_64_image', type: 'base64' }} - * )) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - upsertAppDetails(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppDetails(makeRequest, payload)); - }, - /** - * Gets an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDetails('app_definition_id')) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - getAppDetails(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppDetails(makeRequest, payload)); - }, - /** - * Deletes an app details entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppDetails('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppDetails(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates an app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppAction('app_definition_id', { - * type: 'endpoint', - * name: 'my nice new app action', - * url: 'https://www.somewhere.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - createAppAction(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Updates an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', { - * type: 'endpoint', - * name: 'my nice updated app action', - * url: 'https://www.somewhere-else.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - updateAppAction(appDefinitionId, appActionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'update', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - }, - payload: data - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Deletes an app action entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppAction(appDefinitionId, appActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - } - }).then(payload => { - /* noop*/ - }); - }, - /** - * Gets an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppAction('app_definition_id', 'app_action_id')) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - getAppAction(appDefinitionId, appActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - } - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Gets existing app actions for an App Definition. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppActions('app_definition_id')) - * .then((appActions) => console.log(appActions)) - * .catch(console.error) - * ``` - */ - getAppActions(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppActionCollection(makeRequest, payload)); - } - }; -} - -/***/ }), - -/***/ "./create-space-api.ts": -/*!*****************************!*\ - !*** ./create-space-api.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createSpaceApi) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); -/** - * Contentful Space API. Contains methods to access any operations at a space - * level, such as creating and reading entities contained in a space. - */ - - - - -/** - * @private - */ - -/** - * Creates API object with methods to access the Space API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -function createSpaceApi(makeRequest) { - const { - wrapSpace - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space; - const { - wrapEnvironment, - wrapEnvironmentCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environment; - const { - wrapWebhook, - wrapWebhookCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].webhook; - const { - wrapRole, - wrapRoleCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].role; - const { - wrapUser, - wrapUserCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].user; - const { - wrapSpaceMember, - wrapSpaceMemberCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMember; - const { - wrapSpaceMembership, - wrapSpaceMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].spaceMembership; - const { - wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].teamSpaceMembership; - const { - wrapTeamCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].team; - const { - wrapApiKey, - wrapApiKeyCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].apiKey; - const { - wrapEnvironmentAlias, - wrapEnvironmentAliasCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentAlias; - const { - wrapPreviewApiKey, - wrapPreviewApiKeyCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].previewApiKey; - const { - wrapScheduledAction, - wrapScheduledActionCollection - } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].scheduledAction; - return { - /** - * Deletes the space - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.delete()) - * .then(() => console.log('Space deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteSpace() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'delete', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Updates the space - * @return Promise for the updated space. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * space.name = 'New name' - * return space.update() - * }) - * .then((space) => console.log(`Space ${space.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateSpace() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'update', - params: { - spaceId: raw.sys.id - }, - payload: raw, - headers: {} - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Gets an environment - * @param id - Environment ID - * @return Promise for an Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - getEnvironment(environmentId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentId - } - }).then(data => wrapEnvironment(makeRequest, data)); - }, - /** - * Gets a collection of Environments - * @return Promise for a collection of Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironments()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironments(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query - } - }).then(data => wrapEnvironmentCollection(makeRequest, data)); - }, - /** - * Creates an environment - * @param data - Object representation of the Environment to be created - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironment({ name: 'Staging' })) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironment(data = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapEnvironment(makeRequest, response)); - }, - /** - * Creates an Environment with a custom ID - * @param id - Environment ID - * @param data - Object representation of the Environment to be created - * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is "master" - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironmentWithId(id, data, sourceEnvironmentId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentId: id, - sourceEnvironmentId - }, - payload: data - }).then(response => wrapEnvironment(makeRequest, response)); - }, - /** - * Gets a Webhook - * @param id - Webhook ID - * @return Promise for a Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - getWebhook(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'get', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - } - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Gets a collection of Webhooks - * @return Promise for a collection of Webhooks - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhooks()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getWebhooks() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapWebhookCollection(makeRequest, data)); - }, - /** - * Fetch a webhook signing secret - * @returns Promise for the redacted webhook signing secret in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhookSigningSecret()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookSigningSecret: function getSigningSecret() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Fetch a webhook retry policy - * @returns Promise for the redacted webhook retry policy in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRetryPolicy()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookRetryPolicy: function getWebhookRetryPolicy() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Creates a Webhook - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhook({ - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhook(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Creates a Webhook with a custom ID - * @param id - Webhook ID - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhookWithId('', { - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhookWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - }, - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Create or update the webhook signing secret for this space - * @param data 64 character string that will be used to sign the webhook calls - * @returns Promise for the redacted webhook signing secret that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * const crypto = require('crypto') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const signingSecret = client.getSpace('') - * .then((space) => space.upsertWebhookSigningSecret({ - * value: crypto.randomBytes(32).toString('hex') - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookSigningSecret: function getSigningSecret(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertSigningSecret', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Create or update the webhook retry policy for this space - * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy - * @returns Promise for the redacted webhook retry policy that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const retryPolicy = client.getSpace('') - * .then((space) => space.upsertWebhookRetryPolicy({ - * maxRetries: 15 - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookRetryPolicy: function upsertWebhookRetryPolicy(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertRetryPolicy', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Delete the webhook signing secret for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookSigningSecret()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookSigningSecret: function getSigningSecret() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Delete the webhook retry policy for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookRetryPolicy()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookRetryPolicy: function deleteRetryPolicy() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Gets a Role - * @param id - Role ID - * @return Promise for a Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createRole({ - * fields: { - * title: { - * 'en-US': 'Role title' - * } - * } - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - getRole(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'get', - params: { - spaceId: raw.sys.id, - roleId: id - } - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapRoleCollection(makeRequest, data)); - }, - /** - * Creates a Role - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRole({ - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRole(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Creates a Role with a custom ID - * @param id - Role ID - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRoleWithId('', { - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRoleWithId(id, roleData) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - roleId: id - }, - payload: roleData - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Gets a User - * @param userId - User ID - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getSpaceUser(userId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForSpace', - params: { - spaceId: raw.sys.id, - userId - } - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets a collection of Users in a space - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUsers(query)) - * .then((data) => console.log(data)) - * .catch(console.error) - * ``` - */ - getSpaceUsers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapUserCollection(makeRequest, data)); - }, - /** - * Gets a collection of teams for a space - * @param query - * @return Promise for a collection of teams for a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeams()) - * .then((teamsCollection) => console.log(teamsCollection)) - * .catch(console.error) - * ``` - */ - getTeams(query = { - limit: 100 - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapTeamCollection(makeRequest, data)); - }, - /** - * Gets a Space Member - * @param id Get Space Member by user_id - * @return Promise for a Space Member - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMember(id)) - * .then((spaceMember) => console.log(spaceMember)) - * .catch(console.error) - * ``` - */ - getSpaceMember(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMemberId: id - } - }).then(data => wrapSpaceMember(makeRequest, data)); - }, - /** - * Gets a collection of Space Members - * @param query - * @return Promise for a collection of Space Members - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembers({'limit': 100})) - * .then((spaceMemberCollection) => console.log(spaceMemberCollection)) - * .catch(console.error) - * ``` - */ - getSpaceMembers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapSpaceMemberCollection(makeRequest, data)); - }, - /** - * Gets a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @return Promise for a Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('id')) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - getSpaceMembership(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - } - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection of Space Memberships - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query - }).params - } - }).then(data => wrapSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Creates a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembership({ - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembership(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapSpaceMembership(makeRequest, response)); - }, - /** - * Creates a Space Membership with a custom ID - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembershipWithId('', { - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembershipWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - }, - payload: data - }).then(response => wrapSpaceMembership(makeRequest, response)); - }, - /** - * Gets a Team Space Membership - * @param id - Team Space Membership ID - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('team_space_membership_id')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - teamSpaceMembershipId - } - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection of Team Space Memberships - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Team Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMemberships()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({ - query: query - }).params - } - }).then(data => wrapTeamSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Creates a Team Space Membership - * @param id - Team ID - * @param data - Object representation of the Team Space Membership to be created - * @return Promise for the newly created Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createTeamSpaceMembership('team_id', { - * admin: false, - * roles: [ - * { - sys: { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * } - * ], - * })) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - createTeamSpaceMembership(teamId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id, - teamId - }, - payload: data - }).then(response => wrapTeamSpaceMembership(makeRequest, response)); - }, - /** - * Gets a Api Key - * @param id - API Key ID - * @return Promise for a Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKey('')) - * .then((apikey) => console.log(apikey)) - * .catch(console.error) - * ``` - */ - getApiKey(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - apiKeyId: id - } - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Gets a collection of Api Keys - * @return Promise for a collection of Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getApiKeys() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapApiKeyCollection(makeRequest, data)); - }, - /** - * Gets a collection of preview Api Keys - * @return Promise for a collection of Preview Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPreviewApiKeys() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapPreviewApiKeyCollection(makeRequest, data)); - }, - /** - * Gets a preview Api Key - * @param id - Preview API Key ID - * @return Promise for a Preview Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKey('')) - * .then((previewApikey) => console.log(previewApikey)) - * .catch(console.error) - * ``` - */ - getPreviewApiKey(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - previewApiKeyId: id - } - }).then(data => wrapPreviewApiKey(makeRequest, data)); - }, - /** - * Creates a Api Key - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKey({ - * name: 'API Key name', - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKey: function createApiKey(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Creates a Api Key with a custom ID - * @param id - Api Key ID - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKeyWithId('', { - * name: 'API Key name' - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKeyWithId(id, payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - apiKeyId: id - }, - payload - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Creates an EnvironmentAlias with a custom ID - * @param environmentAliasId - EnvironmentAlias ID - * @param data - Object representation of the EnvironmentAlias to be created - * @return Promise for the newly created EnvironmentAlias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentAliasWithId('', { - * environment: { - * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' } - * } - * })) - * .then((environmentAlias) => console.log(environmentAlias)) - * .catch(console.error) - * ``` - */ - createEnvironmentAliasWithId(environmentAliasId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentAliasId - }, - payload: data - }).then(response => wrapEnvironmentAlias(makeRequest, response)); - }, - /** - * Gets an Environment Alias - * @param Environment Alias ID - * @return Promise for an Environment Alias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => console.log(alias)) - * .catch(console.error) - * ``` - */ - getEnvironmentAlias(environmentAliasId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentAliasId - } - }).then(data => wrapEnvironmentAlias(makeRequest, data)); - }, - /** - * Gets a collection of Environment Aliases - * @return Promise for a collection of Environment Aliases - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAliases() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentAliases() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapEnvironmentAliasCollection(makeRequest, data)); - }, - /** - * Query for scheduled actions in space. - * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details. - * @return Promise for the scheduled actions query - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledActions({ - * 'environment.sys.id': '', - * 'sys.status': 'scheduled' - * })) - * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items)) - * .catch(console.error) - * ``` - */ - getScheduledActions(query) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query - } - }).then(response => wrapScheduledActionCollection(makeRequest, response)); - }, - /** - * Get a Scheduled Action in the current space by environment and ID. - * - * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself. - * @returns Promise with the Scheduled Action - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledAction({ - * scheduledActionId: '', - * environmentId: '' - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - getScheduledAction({ - scheduledActionId, - environmentId - }) { - const space = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'get', - params: { - spaceId: space.sys.id, - environmentId, - scheduledActionId - } - }).then(scheduledAction => wrapScheduledAction(makeRequest, scheduledAction)); - }, - /** - * Creates a scheduled action - * @param data - Object representation of the scheduled action to be created - * @return Promise for the newly created scheduled actions - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - createScheduledAction(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapScheduledAction(makeRequest, response)); - }, - /** - * Update a scheduled action - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to update - * @param options.version the sys.version of the scheduled action to be updated - * @param payload the scheduled actions object with updates, omitting sys object - * @returns Promise containing a wrapped scheduled action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * const { _sys, ...payload } = scheduledAction; - * return space.updateScheduledAction({ - * ...payload, - * scheduledFor: { - * ...payload.scheduledFor, - * timezone: 'Europe/Paris' - * } - * }) - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - updateScheduledAction({ - scheduledActionId, - payload, - version - }) { - const spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params: { - spaceId: spaceProps.sys.id, - version, - scheduledActionId - }, - payload - }).then(response => wrapScheduledAction(makeRequest, response)); - }, - /** - * Cancels a Scheduled Action. - * Only cancels actions that have not yet executed. - * - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to be canceled - * @param options.environmentId the environment ID of the scheduled action to be canceled - * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action. - * @returns Promise containing a wrapped Scheduled Action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Given that an Scheduled Action is scheduled - * client.getSpace('') - * .then((space) => space.deleteScheduledAction({ - * environmentId: '', - * scheduledActionId: '' - * })) - * // The scheduled Action sys.status is now 'canceled' - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - deleteScheduledAction({ - scheduledActionId, - environmentId - }) { - const spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params: { - spaceId: spaceProps.sys.id, - environmentId, - scheduledActionId - } - }).then(response => wrapScheduledAction(makeRequest, response)); - } - }; -} - -/***/ }), - -/***/ "./create-ui-config-api.ts": -/*!*********************************!*\ - !*** ./create-ui-config-api.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createUIConfigApi) -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); - - -/** - * @private - */ - -/** - * @private - */ -function createUIConfigApi(makeRequest) { - const { - wrapUIConfig - } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].uiConfig; - const getParams = self => { - const uiConfig = self.toPlainObject(); - return { - params: { - spaceId: uiConfig.sys.space.sys.id, - environmentId: uiConfig.sys.environment.sys.id - }, - raw: uiConfig - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUIConfig()) - * .then((uiConfig) => { - * uiConfig.entryListViews = [...] - * return uiConfig.update() - * }) - * .then((uiConfig) => console.log(`UIConfig updated.`)) - * .catch(console.error) - * ``` - */ - update: async function update() { - const { - raw, - params - } = getParams(this); - const data = await makeRequest({ - entityType: 'UIConfig', - action: 'update', - params, - payload: raw - }); - return wrapUIConfig(makeRequest, data); - } - }; -} - -/***/ }), - -/***/ "./create-user-ui-config-api.ts": -/*!**************************************!*\ - !*** ./create-user-ui-config-api.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createUserUIConfigApi) -/* harmony export */ }); -/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts"); - - -/** - * @private - */ - -/** - * @private - */ -function createUserUIConfigApi(makeRequest) { - const { - wrapUserUIConfig - } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].userUIConfig; - const getParams = self => { - const userUIConfig = self.toPlainObject(); - return { - params: { - spaceId: userUIConfig.sys.space.sys.id, - environmentId: userUIConfig.sys.environment.sys.id - }, - raw: userUIConfig - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUserUIConfig()) - * .then((uiConfig) => { - * uiConfig.entryListViews = [...] - * return uiConfig.update() - * }) - * .then((uiConfig) => console.log(`UserUIConfig updated.`)) - * .catch(console.error) - * ``` - */ - update: async function update() { - const { - raw, - params - } = getParams(this); - const data = await makeRequest({ - entityType: 'UserUIConfig', - action: 'update', - params, - payload: raw - }); - return wrapUserUIConfig(makeRequest, data); - } - }; -} - -/***/ }), - -/***/ "./enhance-with-methods.ts": -/*!*********************************!*\ - !*** ./enhance-with-methods.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ enhanceWithMethods) -/* harmony export */ }); -/** - * This method enhances a base object which would normally contain data, with - * methods from another object that might work on manipulating that data. - * All the added methods are set as non enumerable, non configurable, and non - * writable properties. This ensures that if we try to clone or stringify the - * base object, we don't have to worry about these additional methods. - * @private - * @param {object} baseObject - Base object with data - * @param {object} methodsObject - Object with methods as properties. The key - * values used here will be the same that will be defined on the baseObject. - */ -function enhanceWithMethods(baseObject, methodsObject) { - // @ts-expect-error - return Object.keys(methodsObject).reduce((enhancedObject, methodName) => { - Object.defineProperty(enhancedObject, methodName, { - enumerable: false, - configurable: true, - writable: false, - value: methodsObject[methodName] - }); - return enhancedObject; - }, baseObject); -} - -/***/ }), - -/***/ "./entities/access-token.ts": -/*!**********************************!*\ - !*** ./entities/access-token.ts ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAccessToken: () => (/* binding */ wrapAccessToken), -/* harmony export */ wrapAccessTokenCollection: () => (/* binding */ wrapAccessTokenCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw access token data - * @return Wrapped access token - */ -function wrapAccessToken(makeRequest, data) { - const AccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const accessTokenWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(AccessToken, { - revoke: function () { - return makeRequest({ - entityType: 'AccessToken', - action: 'revoke', - params: { - tokenId: data.sys.id - } - }).then(data => wrapAccessToken(makeRequest, data)); - } - }); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(accessTokenWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw access collection data - * @return Wrapped access token collection data - */ -const wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAccessToken); - -/***/ }), - -/***/ "./entities/api-key.ts": -/*!*****************************!*\ - !*** ./entities/api-key.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapApiKey: () => (/* binding */ wrapApiKey), -/* harmony export */ wrapApiKeyCollection: () => (/* binding */ wrapApiKeyCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createApiKeyApi(makeRequest) { - const getParams = data => { - var _data$sys$space$sys$i, _data$sys$space; - return { - spaceId: (_data$sys$space$sys$i = (_data$sys$space = data.sys.space) === null || _data$sys$space === void 0 ? void 0 : _data$sys$space.sys.id) !== null && _data$sys$space$sys$i !== void 0 ? _data$sys$space$sys$i : '', - apiKeyId: data.sys.id - }; - }; - return { - update: function update() { - const self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'update', - params: getParams(self), - payload: self, - headers: {} - }).then(data => wrapApiKey(makeRequest, data)); - }, - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - */ -function wrapApiKey(makeRequest, data) { - const apiKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const apiKeyWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(apiKey, createApiKeyApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(apiKeyWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key collection data - * @return Wrapped api key collection data - */ -const wrapApiKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapApiKey); - -/***/ }), - -/***/ "./entities/app-access-token.ts": -/*!**************************************!*\ - !*** ./entities/app-access-token.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppAccessToken: () => (/* binding */ wrapAppAccessToken) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw app access token data - * @return {AppAccessToken} Wrapped AppAccessToken data - */ -function wrapAppAccessToken(_makeRequest, data) { - const appAccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(appAccessToken); -} - -/***/ }), - -/***/ "./entities/app-action-call.ts": -/*!*************************************!*\ - !*** ./entities/app-action-call.ts ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createAppActionCallApi), -/* harmony export */ wrapAppActionCall: () => (/* binding */ wrapAppActionCall), -/* harmony export */ wrapAppActionCallResponse: () => (/* binding */ wrapAppActionCallResponse) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - -/** - * @private - */ -function createAppActionCallApi(makeRequest, retryOptions) { - return { - createWithResponse: function () { - const payload = { - parameters: { - recipient: 'Alice ', - message_body: 'Hello from Bob!' - } - }; - return makeRequest({ - entityType: 'AppActionCall', - action: 'createWithResponse', - params: _objectSpread({ - spaceId: 'space-id', - environmentId: 'environment-id', - appDefinitionId: 'app-definiton-id', - appActionId: 'app-action-id' - }, retryOptions), - payload: payload - }).then(data => wrapAppActionCallResponse(makeRequest, data)); - }, - getCallDetails: function getCallDetails() { - return makeRequest({ - entityType: 'AppActionCall', - action: 'getCallDetails', - params: { - spaceId: 'space-id', - environmentId: 'environment-id', - callId: 'call-id', - appActionId: 'app-action-id' - } - }).then(data => wrapAppActionCallResponse(makeRequest, data)); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -function wrapAppActionCall(makeRequest, data) { - const signedRequest = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const signedRequestWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(signedRequest, createAppActionCallApi(makeRequest)); - return signedRequestWithMethods; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -function wrapAppActionCallResponse(makeRequest, data, retryOptions) { - const appActionCallResponse = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const appActionCallResponseWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appActionCallResponse, createAppActionCallApi(makeRequest, retryOptions)); - return appActionCallResponseWithMethods; -} - -/***/ }), - -/***/ "./entities/app-action.ts": -/*!********************************!*\ - !*** ./entities/app-action.ts ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppAction: () => (/* binding */ wrapAppAction), -/* harmony export */ wrapAppActionCollection: () => (/* binding */ wrapAppActionCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppActionApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appActionId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -function wrapAppAction(makeRequest, data) { - const appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, createAppActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -const wrapAppActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppAction); - -/***/ }), - -/***/ "./entities/app-bundle.ts": -/*!********************************!*\ - !*** ./entities/app-bundle.ts ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppBundle: () => (/* binding */ wrapAppBundle), -/* harmony export */ wrapAppBundleCollection: () => (/* binding */ wrapAppBundleCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppBundleApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appBundleId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -function wrapAppBundle(makeRequest, data) { - const appBundle = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const appBundleWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appBundle, createAppBundleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appBundleWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -const wrapAppBundleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppBundle); - -/***/ }), - -/***/ "./entities/app-definition.ts": -/*!************************************!*\ - !*** ./entities/app-definition.ts ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppDefinition: () => (/* binding */ wrapAppDefinition), -/* harmony export */ wrapAppDefinitionCollection: () => (/* binding */ wrapAppDefinitionCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_app_definition_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-app-definition-api */ "./create-app-definition-api.ts"); - - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition data - * @return Wrapped App Definition data - */ -function wrapAppDefinition(makeRequest, data) { - const appDefinition = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const appDefinitionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appDefinition, (0,_create_app_definition_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(appDefinitionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition collection data - * @return Wrapped App Definition collection data - */ -const wrapAppDefinitionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppDefinition); - -/***/ }), - -/***/ "./entities/app-details.ts": -/*!*********************************!*\ - !*** ./entities/app-details.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppDetails: () => (/* binding */ wrapAppDetails) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @return Wrapped App Details data - */ -function createAppDetailsApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppDetails data - * @return Wrapped AppDetails data - */ -function wrapAppDetails(makeRequest, data) { - const appDetails = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appDetails, createAppDetailsApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-event-subscription.ts": -/*!********************************************!*\ - !*** ./entities/app-event-subscription.ts ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppEventSubscription: () => (/* binding */ wrapAppEventSubscription) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -function createEventSubscriptionApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppEventSubscription data - * @return Wrapped AppEventSubscription data - */ -function wrapAppEventSubscription(makeRequest, data) { - const eventSubscription = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(eventSubscription, createEventSubscriptionApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-installation.ts": -/*!**************************************!*\ - !*** ./entities/app-installation.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppInstallation: () => (/* binding */ wrapAppInstallation), -/* harmony export */ wrapAppInstallationCollection: () => (/* binding */ wrapAppInstallationCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createAppInstallationApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: getParams(data), - headers: {}, - payload: data - }).then(data => wrapAppInstallation(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Installation data - * @return Wrapped App installation data - */ -function wrapAppInstallation(makeRequest, data) { - const appInstallation = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const appInstallationWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(appInstallation, createAppInstallationApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appInstallationWithMethods); -} - -/** - * @private - */ -const wrapAppInstallationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppInstallation); - -/***/ }), - -/***/ "./entities/app-key.ts": -/*!*****************************!*\ - !*** ./entities/app-key.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppKey: () => (/* binding */ wrapAppKey), -/* harmony export */ wrapAppKeyCollection: () => (/* binding */ wrapAppKeyCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -function createKeyApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - fingerprint: data.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppKey', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppKey data - * @return Wrapped AppKey data - */ -function wrapAppKey(makeRequest, data) { - const key = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(key, createKeyApi(makeRequest)); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Key collection data - * @return Wrapped App Key collection data - */ -const wrapAppKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAppKey); - -/***/ }), - -/***/ "./entities/app-signed-request.ts": -/*!****************************************!*\ - !*** ./entities/app-signed-request.ts ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppSignedRequest: () => (/* binding */ wrapAppSignedRequest) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSignedRequest data - * @return Wrapped AppSignedRequest data - */ -function wrapAppSignedRequest(_makeRequest, data) { - const signedRequest = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return signedRequest; -} - -/***/ }), - -/***/ "./entities/app-signing-secret.ts": -/*!****************************************!*\ - !*** ./entities/app-signing-secret.ts ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppSigningSecret: () => (/* binding */ wrapAppSigningSecret) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -function createSigningSecretApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSigningSecret data - * @return Wrapped AppSigningSecret data - */ -function wrapAppSigningSecret(makeRequest, data) { - const signingSecret = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(signingSecret, createSigningSecretApi(makeRequest)); -} - -/***/ }), - -/***/ "./entities/app-upload.ts": -/*!********************************!*\ - !*** ./entities/app-upload.ts ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAppUpload: () => (/* binding */ wrapAppUpload), -/* harmony export */ wrapAppUploadCollection: () => (/* binding */ wrapAppUploadCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createAppUploadApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appUploadId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload data - * @return Wrapped App Upload data - */ -function wrapAppUpload(makeRequest, data) { - const appUpload = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const appUploadWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appUpload, createAppUploadApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appUploadWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload collection data - * @return Wrapped App Upload collection data - */ -const wrapAppUploadCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAppUpload); - -/***/ }), - -/***/ "./entities/asset-key.ts": -/*!*******************************!*\ - !*** ./entities/asset-key.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAssetKey: () => (/* binding */ wrapAssetKey) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); - - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw asset key data - * @return Wrapped asset key data - */ -function wrapAssetKey(_makeRequest, data) { - const assetKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - return assetKey; -} - -/***/ }), - -/***/ "./entities/asset.ts": -/*!***************************!*\ - !*** ./entities/asset.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapAsset: () => (/* binding */ wrapAsset), -/* harmony export */ wrapAssetCollection: () => (/* binding */ wrapAssetCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plain/checks */ "./plain/checks.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - -/** - * @private - */ -function createAssetApi(makeRequest) { - const getParams = raw => { - return { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - assetId: raw.sys.id - }; - }; - return { - processForLocale: function processForLocale(locale, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - locale, - options, - asset: raw - }) - }).then(data => wrapAsset(makeRequest, data)); - }, - processForAllLocales: function processForAllLocales(options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - asset: raw, - options - }) - }).then(data => wrapAsset(makeRequest, data)); - }, - update: function update() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'update', - params: getParams(raw), - payload: raw, - headers: {} - }).then(data => wrapAsset(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'delete', - params: getParams(raw) - }); - }, - publish: function publish() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'publish', - params: getParams(raw), - payload: raw - }).then(data => wrapAsset(makeRequest, data)); - }, - unpublish: function unpublish() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unpublish', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - archive: function archive() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'archive', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - unarchive: function unarchive() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unarchive', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - isPublished: function isPublished() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isPublished(raw); - }, - isUpdated: function isUpdated() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isUpdated(raw); - }, - isDraft: function isDraft() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isDraft(raw); - }, - isArchived: function isArchived() { - const raw = this.toPlainObject(); - return _plain_checks__WEBPACK_IMPORTED_MODULE_4__.isArchived(raw); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw asset data - * @return Wrapped asset data - */ -function wrapAsset(makeRequest, data) { - const asset = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const assetWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(asset, createAssetApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(assetWithMethods); -} - -/** - * @private - */ -const wrapAssetCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapAsset); - -/***/ }), - -/***/ "./entities/bulk-action.ts": -/*!*********************************!*\ - !*** ./entities/bulk-action.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ BulkActionStatus: () => (/* binding */ BulkActionStatus), -/* harmony export */ wrapBulkAction: () => (/* binding */ wrapBulkAction) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _methods_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../methods/action */ "./methods/action.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - -/** Entity types supported by the BulkAction API */ - -/** Represents the state of the BulkAction */ -let BulkActionStatus = /*#__PURE__*/function (BulkActionStatus) { - BulkActionStatus["created"] = "created"; - BulkActionStatus["inProgress"] = "inProgress"; - BulkActionStatus["succeeded"] = "succeeded"; - BulkActionStatus["failed"] = "failed"; - return BulkActionStatus; -}({}); -const STATUSES = Object.values(BulkActionStatus); - -/** The object returned by the BulkActions API */ - -/** - * @private - */ -function createBulkActionApi(makeRequest) { - const getParams = self => { - const bulkAction = self.toPlainObject(); - return { - spaceId: bulkAction.sys.space.sys.id, - environmentId: bulkAction.sys.environment.sys.id, - bulkActionId: bulkAction.sys.id - }; - }; - return { - async get() { - const params = getParams(this); - return makeRequest({ - entityType: 'BulkAction', - action: 'get', - params - }).then(bulkAction => wrapBulkAction(makeRequest, bulkAction)); - }, - async waitProcessing(options) { - return (0,_methods_action__WEBPACK_IMPORTED_MODULE_3__.pollAsyncActionStatus)(async () => this.get(), options); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw BulkAction data - * @return Wrapped BulkAction data - */ -function wrapBulkAction(makeRequest, data) { - const bulkAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const bulkActionWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(bulkAction, createBulkActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(bulkActionWithApiMethods); -} - -/***/ }), - -/***/ "./entities/comment.ts": -/*!*****************************!*\ - !*** ./entities/comment.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CommentNode: () => (/* binding */ CommentNode), -/* harmony export */ "default": () => (/* binding */ createCommentApi), -/* harmony export */ wrapComment: () => (/* binding */ wrapComment), -/* harmony export */ wrapCommentCollection: () => (/* binding */ wrapCommentCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - -// PROPS // - -// Remove and replace with BLOCKS as soon as rich-text-types supports mentions -let CommentNode = /*#__PURE__*/function (CommentNode) { - CommentNode["Document"] = "document"; - CommentNode["Paragraph"] = "paragraph"; - CommentNode["Mention"] = "mention"; - return CommentNode; -}({}); - -// Add "extends Block" as soon as rich-text-types supports mentions - -// Add "extends Document" as soon as rich-text-types supports mentions. - -// PARAMS // - -// We keep this type as explicit as possible until we open up the comments entity further - -// NESTED CLIENT // - -/** - * @private - */ -function createCommentApi(makeRequest) { - const getParams = comment => ({ - spaceId: comment.sys.space.sys.id, - environmentId: comment.sys.environment.sys.id, - entryId: comment.sys.parentEntity.sys.id, - commentId: comment.sys.id - }); - return { - update: async function () { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'Comment', - action: 'update', - params: getParams(raw), - payload: raw - }); - return wrapComment(makeRequest, data); - }, - delete: async function () { - const raw = this.toPlainObject(); - await makeRequest({ - entityType: 'Comment', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }); - } - }; -} - -/** - * @private - */ -function wrapComment(makeRequest, data) { - const comment = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const commentWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(comment, createCommentApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(commentWithMethods); -} - -/** - * @private - */ -const wrapCommentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapComment); - -/***/ }), - -/***/ "./entities/content-type.ts": -/*!**********************************!*\ - !*** ./entities/content-type.ts ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapContentType: () => (/* binding */ wrapContentType), -/* harmony export */ wrapContentTypeCollection: () => (/* binding */ wrapContentTypeCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts"); -/* harmony import */ var _methods_content_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../methods/content-type */ "./methods/content-type.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - - - -/** - * @private - */ -function createContentTypeApi(makeRequest) { - const getParams = self => { - const contentType = self.toPlainObject(); - return { - raw: contentType, - params: { - spaceId: contentType.sys.space.sys.id, - environmentId: contentType.sys.environment.sys.id, - contentTypeId: contentType.sys.id - } - }; - }; - return { - update: function () { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: raw - }).then(data => wrapContentType(makeRequest, data)); - }, - delete: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'delete', - params - }).then(() => { - // noop - }); - }, - publish: function () { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params, - payload: raw - }).then(data => wrapContentType(makeRequest, data)); - }, - unpublish: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'unpublish', - params - }).then(data => wrapContentType(makeRequest, data)); - }, - getEditorInterface: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params - }).then(data => (0,_editor_interface__WEBPACK_IMPORTED_MODULE_5__.wrapEditorInterface)(makeRequest, data)); - }, - getSnapshots: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => (0,_snapshot__WEBPACK_IMPORTED_MODULE_6__.wrapSnapshotCollection)(makeRequest, data)); - }, - getSnapshot: function (snapshotId) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId - }) - }).then(data => (0,_snapshot__WEBPACK_IMPORTED_MODULE_6__.wrapSnapshot)(makeRequest, data)); - }, - isPublished: function () { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isPublished)(this); - }, - isUpdated: function () { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isUpdated)(this); - }, - isDraft: function () { - return (0,_plain_checks__WEBPACK_IMPORTED_MODULE_4__.isDraft)(this); - }, - omitAndDeleteField: function (fieldId) { - const { - raw, - params - } = getParams(this); - return (0,_methods_content_type__WEBPACK_IMPORTED_MODULE_7__.omitAndDeleteField)(makeRequest, _objectSpread(_objectSpread({}, params), {}, { - fieldId - }), raw).then(data => wrapContentType(makeRequest, data)); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw content type data - * @return Wrapped content type data - */ -function wrapContentType(makeRequest, data) { - const contentType = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const contentTypeWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(contentType, createContentTypeApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(contentTypeWithMethods); -} - -/** - * @private - */ -const wrapContentTypeCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapContentType); - -/***/ }), - -/***/ "./entities/editor-interface.ts": -/*!**************************************!*\ - !*** ./entities/editor-interface.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEditorInterface: () => (/* binding */ wrapEditorInterface), -/* harmony export */ wrapEditorInterfaceCollection: () => (/* binding */ wrapEditorInterfaceCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createEditorInterfaceApi(makeRequest) { - return { - update: function () { - const self = this; - const raw = self.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'update', - params: { - spaceId: self.sys.space.sys.id, - environmentId: self.sys.environment.sys.id, - contentTypeId: self.sys.contentType.sys.id - }, - payload: raw - }).then(response => wrapEditorInterface(makeRequest, response)); - }, - getControlForField: function (fieldId) { - const self = this; - const result = (self.controls || []).filter(control => { - return control.fieldId === fieldId; - }); - return result && result.length > 0 ? result[0] : null; - } - }; -} - -/** - * @private - */ -function wrapEditorInterface(makeRequest, data) { - const editorInterface = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const editorInterfaceWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(editorInterface, createEditorInterfaceApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(editorInterfaceWithMethods); -} - -/** - * @private - */ -const wrapEditorInterfaceCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapEditorInterface); - -/***/ }), - -/***/ "./entities/entry.ts": -/*!***************************!*\ - !*** ./entities/entry.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEntry: () => (/* binding */ wrapEntry), -/* harmony export */ wrapEntryCollection: () => (/* binding */ wrapEntryCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_entry_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-entry-api */ "./create-entry-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw entry data - * @return Wrapped entry data - */ -function wrapEntry(makeRequest, data) { - const entry = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const entryWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(entry, (0,_create_entry_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(entryWithMethods); -} - -/** - * Data is also mixed in with link getters if links exist and includes were requested - * @private - */ -const wrapEntryCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapEntry); - -/***/ }), - -/***/ "./entities/environment-alias.ts": -/*!***************************************!*\ - !*** ./entities/environment-alias.ts ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentAlias: () => (/* binding */ wrapEnvironmentAlias), -/* harmony export */ wrapEnvironmentAliasCollection: () => (/* binding */ wrapEnvironmentAliasCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createEnvironmentAliasApi(makeRequest) { - const getParams = alias => ({ - spaceId: alias.sys.space.sys.id, - environmentAliasId: alias.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapEnvironmentAlias(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'delete', - params: getParams(raw) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias data - * @return Wrapped environment alias data - */ -function wrapEnvironmentAlias(makeRequest, data) { - const alias = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const enhancedAlias = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(alias, createEnvironmentAliasApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedAlias); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias collection data - * @return Wrapped environment alias collection data - */ -const wrapEnvironmentAliasCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapEnvironmentAlias); - -/***/ }), - -/***/ "./entities/environment-template-installation.ts": -/*!*******************************************************!*\ - !*** ./entities/environment-template-installation.ts ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentTemplateInstallation: () => (/* binding */ wrapEnvironmentTemplateInstallation), -/* harmony export */ wrapEnvironmentTemplateInstallationCollection: () => (/* binding */ wrapEnvironmentTemplateInstallationCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - -var EnvironmentTemplateInstallationStatuses = /*#__PURE__*/function (EnvironmentTemplateInstallationStatuses) { - EnvironmentTemplateInstallationStatuses["created"] = "created"; - EnvironmentTemplateInstallationStatuses["inProgress"] = "inProgress"; - EnvironmentTemplateInstallationStatuses["failed"] = "failed"; - EnvironmentTemplateInstallationStatuses["succeeded"] = "succeeded"; - EnvironmentTemplateInstallationStatuses["disconnected"] = "disconnected"; - EnvironmentTemplateInstallationStatuses["inRetry"] = "inRetry"; - return EnvironmentTemplateInstallationStatuses; -}(EnvironmentTemplateInstallationStatuses || {}); -function wrapEnvironmentTemplateInstallation(makeRequest, data) { - const environmentTemplate = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(environmentTemplate); -} -const wrapEnvironmentTemplateInstallationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCursorPaginatedCollection)(wrapEnvironmentTemplateInstallation); - -/***/ }), - -/***/ "./entities/environment-template.ts": -/*!******************************************!*\ - !*** ./entities/environment-template.ts ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironmentTemplate: () => (/* binding */ wrapEnvironmentTemplate), -/* harmony export */ wrapEnvironmentTemplateCollection: () => (/* binding */ wrapEnvironmentTemplateCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-environment-template-api */ "./create-environment-template-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -function wrapEnvironmentTemplate(makeRequest, data, organizationId) { - const environmentTemplate = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const environmentTemplateApi = (0,_create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__.createEnvironmentTemplateApi)(makeRequest, organizationId); - const enhancedEnvironmentTemplate = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(environmentTemplate, environmentTemplateApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(enhancedEnvironmentTemplate); -} -const wrapEnvironmentTemplateCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCursorPaginatedCollection)(wrapEnvironmentTemplate); - -/***/ }), - -/***/ "./entities/environment.ts": -/*!*********************************!*\ - !*** ./entities/environment.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapEnvironment: () => (/* binding */ wrapEnvironment), -/* harmony export */ wrapEnvironmentCollection: () => (/* binding */ wrapEnvironmentCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _create_environment_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-environment-api */ "./create-environment-api.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - - -/** - * This method creates the API for the given environment with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a environment id, so the base path for requests now has the - * environment id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Environment - * @return - */ -function wrapEnvironment(makeRequest, data) { - // do not pollute generated typings - const environment = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const environmentApi = (0,_create_environment_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - const enhancedEnvironment = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(environment, environmentApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedEnvironment); -} - -/** - * This method wraps each environment in a collection with the environment API. See wrapEnvironment - * above for more details. - * @private - */ -const wrapEnvironmentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_4__.wrapCollection)(wrapEnvironment); - -/***/ }), - -/***/ "./entities/extension.ts": -/*!*******************************!*\ - !*** ./entities/extension.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapExtension: () => (/* binding */ wrapExtension), -/* harmony export */ wrapExtensionCollection: () => (/* binding */ wrapExtensionCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createExtensionApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - extensionId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'update', - params: getParams(data), - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw UI Extension data - * @return Wrapped UI Extension data - */ -function wrapExtension(makeRequest, data) { - const extension = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const extensionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(extension, createExtensionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(extensionWithMethods); -} - -/** - * @private - */ -const wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapExtension); - -/***/ }), - -/***/ "./entities/index.ts": -/*!***************************!*\ - !*** ./entities/index.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api-key */ "./entities/api-key.ts"); -/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app-action */ "./entities/app-action.ts"); -/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./entities/app-action-call.ts"); -/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./entities/app-bundle.ts"); -/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts"); -/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./entities/app-details.ts"); -/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts"); -/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./entities/app-signed-request.ts"); -/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./entities/app-signing-secret.ts"); -/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-event-subscription */ "./entities/app-event-subscription.ts"); -/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-key */ "./entities/app-key.ts"); -/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-access-token */ "./entities/app-access-token.ts"); -/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-upload */ "./entities/app-upload.ts"); -/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts"); -/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts"); -/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./bulk-action */ "./entities/bulk-action.ts"); -/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./comment */ "./entities/comment.ts"); -/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./content-type */ "./entities/content-type.ts"); -/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts"); -/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts"); -/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts"); -/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts"); -/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts"); -/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts"); -/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts"); -/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts"); -/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts"); -/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts"); -/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts"); -/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts"); -/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts"); -/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts"); -/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./release */ "./entities/release.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts"); -/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./role */ "./entities/role.ts"); -/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts"); -/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts"); -/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./space */ "./entities/space.ts"); -/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts"); -/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts"); -/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts"); -/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./task */ "./entities/task.ts"); -/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./team */ "./entities/team.ts"); -/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts"); -/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts"); -/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts"); -/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts"); -/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts"); -/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./user */ "./entities/user.ts"); -/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts"); -/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts"); -/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts"); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - accessToken: _access_token__WEBPACK_IMPORTED_MODULE_30__, - appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__, - appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__, - appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__, - apiKey: _api_key__WEBPACK_IMPORTED_MODULE_0__, - appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__, - appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__, - appUpload: _app_upload__WEBPACK_IMPORTED_MODULE_12__, - appDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__, - appSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__, - appSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__, - appEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_9__, - appKey: _app_key__WEBPACK_IMPORTED_MODULE_10__, - appAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_11__, - asset: _asset__WEBPACK_IMPORTED_MODULE_13__, - assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__, - bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__, - comment: _comment__WEBPACK_IMPORTED_MODULE_16__, - contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__, - editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__, - entry: _entry__WEBPACK_IMPORTED_MODULE_19__, - environment: _environment__WEBPACK_IMPORTED_MODULE_20__, - environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_21__, - environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__, - environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__, - extension: _extension__WEBPACK_IMPORTED_MODULE_24__, - locale: _locale__WEBPACK_IMPORTED_MODULE_25__, - organization: _organization__WEBPACK_IMPORTED_MODULE_26__, - organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_27__, - organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_28__, - personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_29__, - previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_31__, - release: _release__WEBPACK_IMPORTED_MODULE_32__, - releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_33__, - role: _role__WEBPACK_IMPORTED_MODULE_34__, - scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_35__, - snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_36__, - space: _space__WEBPACK_IMPORTED_MODULE_37__, - spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_38__, - spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_39__, - tag: _tag__WEBPACK_IMPORTED_MODULE_40__, - task: _task__WEBPACK_IMPORTED_MODULE_41__, - team: _team__WEBPACK_IMPORTED_MODULE_42__, - teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_43__, - teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_44__, - uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_45__, - upload: _upload__WEBPACK_IMPORTED_MODULE_46__, - usage: _usage__WEBPACK_IMPORTED_MODULE_47__, - user: _user__WEBPACK_IMPORTED_MODULE_48__, - userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_49__, - webhook: _webhook__WEBPACK_IMPORTED_MODULE_50__, - workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_51__ -}); - -/***/ }), - -/***/ "./entities/locale.ts": -/*!****************************!*\ - !*** ./entities/locale.ts ***! - \****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapLocale: () => (/* binding */ wrapLocale), -/* harmony export */ wrapLocaleCollection: () => (/* binding */ wrapLocaleCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createLocaleApi(makeRequest) { - const getParams = locale => ({ - spaceId: locale.sys.space.sys.id, - environmentId: locale.sys.environment.sys.id, - localeId: locale.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapLocale(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'delete', - params: getParams(raw) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw locale data - * @return Wrapped locale data - */ -function wrapLocale(makeRequest, data) { - delete data.internal_code; - const locale = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const localeWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(locale, createLocaleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(localeWithMethods); -} - -/** - * @private - */ -const wrapLocaleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapLocale); - -/***/ }), - -/***/ "./entities/organization-invitation.ts": -/*!*********************************************!*\ - !*** ./entities/organization-invitation.ts ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganizationInvitation: () => (/* binding */ wrapOrganizationInvitation) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw invitation data - * @return {OrganizationInvitation} Wrapped Inviation data - */ -function wrapOrganizationInvitation(_makeRequest, data) { - const invitation = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(invitation); -} - -/***/ }), - -/***/ "./entities/organization-membership.ts": -/*!*********************************************!*\ - !*** ./entities/organization-membership.ts ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganizationMembership: () => (/* binding */ wrapOrganizationMembership), -/* harmony export */ wrapOrganizationMembershipCollection: () => (/* binding */ wrapOrganizationMembershipCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createOrganizationMembershipApi(makeRequest, organizationId) { - const getParams = data => ({ - organizationMembershipId: data.sys.id, - organizationId - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapOrganizationMembership(makeRequest, data, organizationId)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {Object} data - Raw organization membership data - * @return {OrganizationMembership} Wrapped organization membership data - */ -function wrapOrganizationMembership(makeRequest, data, organizationId) { - const organizationMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const organizationMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(organizationMembership, createOrganizationMembershipApi(makeRequest, organizationId)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(organizationMembershipWithMethods); -} - -/** - * @private - */ -const wrapOrganizationMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapOrganizationMembership); - -/***/ }), - -/***/ "./entities/organization.ts": -/*!**********************************!*\ - !*** ./entities/organization.ts ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapOrganization: () => (/* binding */ wrapOrganization), -/* harmony export */ wrapOrganizationCollection: () => (/* binding */ wrapOrganizationCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _create_organization_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-organization-api */ "./create-organization-api.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - - -/** - * This method creates the API for the given organization with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with an organization id, so the base path for requests now has the - * organization id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for an Organization - * @return {Organization} - */ -function wrapOrganization(makeRequest, data) { - const org = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const orgApi = (0,_create_organization_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - const enhancedOrganization = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(org, orgApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(enhancedOrganization); -} - -/** - * This method normalizes each organization in a collection. - * @private - */ -const wrapOrganizationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_4__.wrapCollection)(wrapOrganization); - -/***/ }), - -/***/ "./entities/personal-access-token.ts": -/*!*******************************************!*\ - !*** ./entities/personal-access-token.ts ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapPersonalAccessToken: () => (/* binding */ wrapPersonalAccessToken), -/* harmony export */ wrapPersonalAccessTokenCollection: () => (/* binding */ wrapPersonalAccessTokenCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access token data - * @return Wrapped personal access token - */ -function wrapPersonalAccessToken(makeRequest, data) { - const personalAccessToken = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const personalAccessTokenWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(personalAccessToken, { - revoke: function () { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'revoke', - params: { - tokenId: data.sys.id - } - }).then(data => wrapPersonalAccessToken(makeRequest, data)); - } - }); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(personalAccessTokenWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access collection data - * @return Wrapped personal access token collection data - */ -const wrapPersonalAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapPersonalAccessToken); - -/***/ }), - -/***/ "./entities/preview-api-key.ts": -/*!*************************************!*\ - !*** ./entities/preview-api-key.ts ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapPreviewApiKey: () => (/* binding */ wrapPreviewApiKey), -/* harmony export */ wrapPreviewApiKeyCollection: () => (/* binding */ wrapPreviewApiKeyCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - */ -function createPreviewApiKeyApi() { - return {}; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - * @return Wrapped preview api key data - */ -function wrapPreviewApiKey(_makeRequest, data) { - const previewApiKey = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const previewApiKeyWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(previewApiKey, createPreviewApiKeyApi()); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(previewApiKeyWithMethods); -} - -/** - * @private - */ -const wrapPreviewApiKeyCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapPreviewApiKey); - -/***/ }), - -/***/ "./entities/release-action.ts": -/*!************************************!*\ - !*** ./entities/release-action.ts ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapReleaseAction: () => (/* binding */ wrapReleaseAction), -/* harmony export */ wrapReleaseActionCollection: () => (/* binding */ wrapReleaseActionCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _methods_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../methods/action */ "./methods/action.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseActionApi(makeRequest) { - const getParams = self => { - const action = self.toPlainObject(); - return { - spaceId: action.sys.space.sys.id, - environmentId: action.sys.environment.sys.id, - releaseId: action.sys.release.sys.id, - actionId: action.sys.id - }; - }; - return { - async get() { - const params = getParams(this); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params - }).then(releaseAction => wrapReleaseAction(makeRequest, releaseAction)); - }, - /** Waits for a Release Action to complete */ - async waitProcessing(options) { - return (0,_methods_action__WEBPACK_IMPORTED_MODULE_3__.pollAsyncActionStatus)(async () => this.get(), options); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -function wrapReleaseAction(makeRequest, data) { - const releaseAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const releaseActionWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(releaseAction, createReleaseActionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(releaseActionWithApiMethods); -} - -/** - * @private - */ -const wrapReleaseActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapReleaseAction); - -/***/ }), - -/***/ "./entities/release.ts": -/*!*****************************!*\ - !*** ./entities/release.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ReleaseReferenceFilters: () => (/* binding */ ReleaseReferenceFilters), -/* harmony export */ wrapRelease: () => (/* binding */ wrapRelease), -/* harmony export */ wrapReleaseCollection: () => (/* binding */ wrapReleaseCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-types */ "./common-types.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts"); -/* eslint-disable @typescript-eslint/no-explicit-any */ - - - - - - - -/** Entity types supported by the Release API */ - -const ReleaseReferenceFilters = _common_types__WEBPACK_IMPORTED_MODULE_2__.ScheduledActionReferenceFilters; - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseApi(makeRequest) { - const getParams = self => { - const release = self.toPlainObject(); - return { - spaceId: release.sys.space.sys.id, - environmentId: release.sys.environment.sys.id, - releaseId: release.sys.id, - version: release.sys.version - }; - }; - return { - async archive() { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'archive', - params - }).then(release => wrapRelease(makeRequest, release)); - }, - async unarchive() { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'unarchive', - params - }).then(release => wrapRelease(makeRequest, release)); - }, - async update(payload) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'update', - params, - payload - }).then(release => wrapRelease(makeRequest, release)); - }, - async delete() { - const params = getParams(this); - await makeRequest({ - entityType: 'Release', - action: 'delete', - params - }); - }, - async publish(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'publish', - params - }).then(data => (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data)).then(action => action.waitProcessing(options)); - }, - async unpublish(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'unpublish', - params - }).then(data => (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data)).then(action => action.waitProcessing(options)); - }, - async validate(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'validate', - params, - payload: options === null || options === void 0 ? void 0 : options.payload - }).then(data => (0,_release_action__WEBPACK_IMPORTED_MODULE_5__.wrapReleaseAction)(makeRequest, data)).then(action => action.waitProcessing(options === null || options === void 0 ? void 0 : options.processingOptions)); - } - }; -} -/** - * Return a Release object enhanced with its own API helper functions. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -function wrapRelease(makeRequest, data) { - const release = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const releaseWithApiMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(release, createReleaseApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(releaseWithApiMethods); -} - -/** - * @private - */ -const wrapReleaseCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCursorPaginatedCollection)(wrapRelease); - -/***/ }), - -/***/ "./entities/role.ts": -/*!**************************!*\ - !*** ./entities/role.ts ***! - \**************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapRole: () => (/* binding */ wrapRole), -/* harmony export */ wrapRoleCollection: () => (/* binding */ wrapRoleCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createRoleApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - roleId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapRole(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw role data - * @return Wrapped role data - */ -function wrapRole(makeRequest, data) { - const role = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const roleWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(role, createRoleApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(roleWithMethods); -} - -/** - * @private - */ -const wrapRoleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapRole); - -/***/ }), - -/***/ "./entities/scheduled-action.ts": -/*!**************************************!*\ - !*** ./entities/scheduled-action.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getInstanceMethods), -/* harmony export */ wrapScheduledAction: () => (/* binding */ wrapScheduledAction), -/* harmony export */ wrapScheduledActionCollection: () => (/* binding */ wrapScheduledActionCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -const _excluded = ["sys"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - - - - -/** - * Represents that state of the scheduled action - */ -var ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) { - ScheduledActionStatus["scheduled"] = "scheduled"; - ScheduledActionStatus["inProgress"] = "inProgress"; - ScheduledActionStatus["succeeded"] = "succeeded"; - ScheduledActionStatus["failed"] = "failed"; - ScheduledActionStatus["canceled"] = "canceled"; - return ScheduledActionStatus; -}(ScheduledActionStatus || {}); -function getInstanceMethods(makeRequest) { - const getParams = self => { - var _scheduledAction$envi; - const scheduledAction = self.toPlainObject(); - return { - spaceId: scheduledAction.sys.space.sys.id, - environmentId: (_scheduledAction$envi = scheduledAction.environment) === null || _scheduledAction$envi === void 0 ? void 0 : _scheduledAction$envi.sys.id, - scheduledActionId: scheduledAction.sys.id, - version: scheduledAction.sys.version - }; - }; - return { - /** - * Cancels the current Scheduled Action schedule. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => scheduledAction.delete()) - * .then((deletedScheduledAction) => console.log(deletedScheduledAction)) - * .catch(console.error); - * ``` - */ - async delete() { - const params = getParams(this); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params - }).then(data => wrapScheduledAction(makeRequest, data)); - }, - /** - * Update the current scheduled action. Currently, only changes made to the `scheduledFor` property will be saved. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * scheduledAction.scheduledFor.timezone = 'Europe/Paris'; - * return scheduledAction.update(); - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - async update() { - const params = getParams(this); - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const _this$toPlainObject = this.toPlainObject(), - { - sys - } = _this$toPlainObject, - payload = _objectWithoutProperties(_this$toPlainObject, _excluded); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params, - payload - }).then(data => wrapScheduledAction(makeRequest, data)); - } - }; -} - -/** - * @private - */ -function wrapScheduledAction(makeRequest, data) { - const scheduledAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const scheduledActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(scheduledAction, getInstanceMethods(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(scheduledActionWithMethods); -} - -/** - * @private - */ -const wrapScheduledActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapScheduledAction); - -/***/ }), - -/***/ "./entities/snapshot.ts": -/*!******************************!*\ - !*** ./entities/snapshot.ts ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSnapshot: () => (/* binding */ wrapSnapshot), -/* harmony export */ wrapSnapshotCollection: () => (/* binding */ wrapSnapshotCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createSnapshotApi() { - return { - /* In case the snapshot object evolve later */ - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot data - * @return Wrapped snapshot data - */ -function wrapSnapshot(_makeRequest, data) { - const snapshot = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const snapshotWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(snapshot, createSnapshotApi()); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(snapshotWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot collection data - * @return Wrapped snapshot collection data - */ -const wrapSnapshotCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapSnapshot); - -/***/ }), - -/***/ "./entities/space-member.ts": -/*!**********************************!*\ - !*** ./entities/space-member.ts ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpaceMember: () => (/* binding */ wrapSpaceMember), -/* harmony export */ wrapSpaceMemberCollection: () => (/* binding */ wrapSpaceMemberCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space member data - * @return Wrapped space member data - */ -function wrapSpaceMember(_makeRequest, data) { - const spaceMember = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(spaceMember); -} - -/** - * @private - */ -const wrapSpaceMemberCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapSpaceMember); - -/***/ }), - -/***/ "./entities/space-membership.ts": -/*!**************************************!*\ - !*** ./entities/space-membership.ts ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpaceMembership: () => (/* binding */ wrapSpaceMembership), -/* harmony export */ wrapSpaceMembershipCollection: () => (/* binding */ wrapSpaceMembershipCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createSpaceMembershipApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - spaceMembershipId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped space membership data - */ -function wrapSpaceMembership(makeRequest, data) { - const spaceMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const spaceMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(spaceMembership, createSpaceMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(spaceMembershipWithMethods); -} - -/** - * @private - */ -const wrapSpaceMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapSpaceMembership); - -/***/ }), - -/***/ "./entities/space.ts": -/*!***************************!*\ - !*** ./entities/space.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapSpace: () => (/* binding */ wrapSpace), -/* harmony export */ wrapSpaceCollection: () => (/* binding */ wrapSpaceCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _create_space_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-space-api */ "./create-space-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - - -/** - * This method creates the API for the given space with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a space id, so the base path for requests now has the - * space id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Space - * @return {Space} - */ -function wrapSpace(makeRequest, data) { - const space = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const spaceApi = (0,_create_space_api__WEBPACK_IMPORTED_MODULE_3__["default"])(makeRequest); - const enhancedSpace = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(space, spaceApi); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(enhancedSpace); -} - -/** - * This method wraps each space in a collection with the space API. See wrapSpace - * above for more details. - * @private - */ -const wrapSpaceCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapSpace); - -/***/ }), - -/***/ "./entities/tag.ts": -/*!*************************!*\ - !*** ./entities/tag.ts ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createTagApi), -/* harmony export */ wrapTag: () => (/* binding */ wrapTag), -/* harmony export */ wrapTagCollection: () => (/* binding */ wrapTagCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createTagApi(makeRequest) { - const getParams = tag => ({ - spaceId: tag.sys.space.sys.id, - environmentId: tag.sys.environment.sys.id, - tagId: tag.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTag(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapTag(makeRequest, data) { - const tag = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const tagWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(tag, createTagApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(tagWithMethods); -} - -/** - * @private - */ -const wrapTagCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapTag); - -/***/ }), - -/***/ "./entities/task.ts": -/*!**************************!*\ - !*** ./entities/task.ts ***! - \**************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createTaskApi), -/* harmony export */ wrapTask: () => (/* binding */ wrapTask), -/* harmony export */ wrapTaskCollection: () => (/* binding */ wrapTaskCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createTaskApi(makeRequest) { - const getParams = task => ({ - spaceId: task.sys.space.sys.id, - environmentId: task.sys.environment.sys.id, - entryId: task.sys.parentEntity.sys.id, - taskId: task.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTask(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapTask(makeRequest, data) { - const task = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const taskWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(task, createTaskApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(taskWithMethods); -} - -/** - * @private - */ -const wrapTaskCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapTask); - -/***/ }), - -/***/ "./entities/team-membership.ts": -/*!*************************************!*\ - !*** ./entities/team-membership.ts ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeamMembership: () => (/* binding */ wrapTeamMembership), -/* harmony export */ wrapTeamMembershipCollection: () => (/* binding */ wrapTeamMembershipCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamMembershipApi(makeRequest) { - const getParams = data => ({ - teamMembershipId: data.sys.id, - teamId: data.sys.team.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team membership data - * @return Wrapped team membership data - */ -function wrapTeamMembership(makeRequest, data) { - const teamMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const teamMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(teamMembership, createTeamMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamMembershipWithMethods); -} - -/** - * @private - */ -const wrapTeamMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeamMembership); - -/***/ }), - -/***/ "./entities/team-space-membership.ts": -/*!*******************************************!*\ - !*** ./entities/team-space-membership.ts ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeamSpaceMembership: () => (/* binding */ wrapTeamSpaceMembership), -/* harmony export */ wrapTeamSpaceMembershipCollection: () => (/* binding */ wrapTeamSpaceMembershipCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamSpaceMembershipApi(makeRequest) { - const getParams = data => ({ - teamSpaceMembershipId: data.sys.id, - spaceId: data.sys.space.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped team space membership data - */ -function wrapTeamSpaceMembership(makeRequest, data) { - const teamSpaceMembership = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const teamSpaceMembershipWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(teamSpaceMembership, createTeamSpaceMembershipApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamSpaceMembershipWithMethods); -} - -/** - * @private - */ -const wrapTeamSpaceMembershipCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeamSpaceMembership); - -/***/ }), - -/***/ "./entities/team.ts": -/*!**************************!*\ - !*** ./entities/team.ts ***! - \**************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapTeam: () => (/* binding */ wrapTeam), -/* harmony export */ wrapTeamCollection: () => (/* binding */ wrapTeamCollection) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - */ -function createTeamApi(makeRequest) { - const getParams = data => ({ - teamId: data.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - update: function update() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeam(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team data - * @return Wrapped team data - */ -function wrapTeam(makeRequest, data) { - const team = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const teamWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(team, createTeamApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(teamWithMethods); -} - -/** - * @private - */ -const wrapTeamCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapTeam); - -/***/ }), - -/***/ "./entities/ui-config.ts": -/*!*******************************!*\ - !*** ./entities/ui-config.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUIConfig: () => (/* binding */ wrapUIConfig) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-ui-config-api */ "./create-ui-config-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Wrapped UIConfig - */ -function wrapUIConfig(makeRequest, data) { - const user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, (0,_create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/***/ }), - -/***/ "./entities/upload.ts": -/*!****************************!*\ - !*** ./entities/upload.ts ***! - \****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUpload: () => (/* binding */ wrapUpload) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - -/** - * @private - */ -function createUploadApi(makeRequest) { - return { - delete: async function del() { - const raw = this.toPlainObject(); - await makeRequest({ - entityType: 'Upload', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: raw.sys.id - } - }); - } - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {object} data - Raw upload data - * @return {Upload} Wrapped upload data - */ -function wrapUpload(makeRequest, data) { - const upload = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data)); - const uploadWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(upload, createUploadApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(uploadWithMethods); -} - -/***/ }), - -/***/ "./entities/usage.ts": -/*!***************************!*\ - !*** ./entities/usage.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUsage: () => (/* binding */ wrapUsage), -/* harmony export */ wrapUsageCollection: () => (/* binding */ wrapUsageCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized usage - */ -function wrapUsage(_makeRequest, data) { - const usage = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const usageWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(usage, {}); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(usageWithMethods); -} - -/** - * @private - */ -const wrapUsageCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapUsage); - -/***/ }), - -/***/ "./entities/user-ui-config.ts": -/*!************************************!*\ - !*** ./entities/user-ui-config.ts ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUserUIConfig: () => (/* binding */ wrapUserUIConfig) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-user-ui-config-api */ "./create-user-ui-config-api.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Wrapped UserUIConfig - */ -function wrapUserUIConfig(makeRequest, data) { - const user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, (0,_create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/***/ }), - -/***/ "./entities/user.ts": -/*!**************************!*\ - !*** ./entities/user.ts ***! - \**************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapUser: () => (/* binding */ wrapUser), -/* harmony export */ wrapUserCollection: () => (/* binding */ wrapUserCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); - - - - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized user - */ -function wrapUser(_makeRequest, data) { - const user = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const userWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(user, {}); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(userWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data collection - * @return Normalized user collection - */ -const wrapUserCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapUser); - -/***/ }), - -/***/ "./entities/webhook.ts": -/*!*****************************!*\ - !*** ./entities/webhook.ts ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrapWebhook: () => (/* binding */ wrapWebhook), -/* harmony export */ wrapWebhookCollection: () => (/* binding */ wrapWebhookCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - -/** - * @private - */ -function createWebhookApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - webhookDefinitionId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'delete', - params: getParams(data) - }); - }, - getCalls: function getCalls() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getManyCallDetails', - params: getParams(data) - }); - }, - getCall: function getCall(id) { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getCallDetails', - params: _objectSpread(_objectSpread({}, getParams(data)), {}, { - callId: id - }) - }); - }, - getHealth: function getHealth() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getHealthStatus', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw webhook data - * @return Wrapped webhook data - */ -function wrapWebhook(makeRequest, data) { - const webhook = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const webhookWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(webhook, createWebhookApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(webhookWithMethods); -} - -/** - * @private - */ -const wrapWebhookCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapWebhook); - -/***/ }), - -/***/ "./entities/workflow-definition.ts": -/*!*****************************************!*\ - !*** ./entities/workflow-definition.ts ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ WorkflowStepActionType: () => (/* binding */ WorkflowStepActionType), -/* harmony export */ WorkflowStepPermissionAction: () => (/* binding */ WorkflowStepPermissionAction), -/* harmony export */ WorkflowStepPermissionEffect: () => (/* binding */ WorkflowStepPermissionEffect), -/* harmony export */ WorkflowStepPermissionType: () => (/* binding */ WorkflowStepPermissionType), -/* harmony export */ "default": () => (/* binding */ createWorkflowDefinitionApi), -/* harmony export */ wrapWorkflowDefinition: () => (/* binding */ wrapWorkflowDefinition), -/* harmony export */ wrapWorkflowDefinitionCollection: () => (/* binding */ wrapWorkflowDefinitionCollection) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts"); -/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - -/* Workflow Step Permission */ - -let WorkflowStepPermissionType = /*#__PURE__*/function (WorkflowStepPermissionType) { - WorkflowStepPermissionType["EntityPermission"] = "entity_permission"; - WorkflowStepPermissionType["WorkflowPermission"] = "workflow_permission"; - return WorkflowStepPermissionType; -}({}); -let WorkflowStepPermissionAction = /*#__PURE__*/function (WorkflowStepPermissionAction) { - WorkflowStepPermissionAction["Edit"] = "edit"; - WorkflowStepPermissionAction["Publish"] = "publish"; - WorkflowStepPermissionAction["Delete"] = "delete"; - return WorkflowStepPermissionAction; -}({}); -let WorkflowStepPermissionEffect = /*#__PURE__*/function (WorkflowStepPermissionEffect) { - WorkflowStepPermissionEffect["Allow"] = "allow"; - WorkflowStepPermissionEffect["Deny"] = "deny"; - return WorkflowStepPermissionEffect; -}({}); -/* Workflow Step Action */ -let WorkflowStepActionType = /*#__PURE__*/function (WorkflowStepActionType) { - WorkflowStepActionType["App"] = "app"; - WorkflowStepActionType["Email"] = "email"; - WorkflowStepActionType["Task"] = "task"; - return WorkflowStepActionType; -}({}); - -/* Workflow Step */ - -/* Workflow Definition */ - -/** - * @private - */ -function createWorkflowDefinitionApi(makeRequest) { - const getParams = workflowDefinition => ({ - spaceId: workflowDefinition.sys.space.sys.id, - environmentId: workflowDefinition.sys.environment.sys.id, - workflowDefinitionId: workflowDefinition.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapWorkflowDefinition(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -function wrapWorkflowDefinition(makeRequest, data) { - const workflowDefinition = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data)); - const workflowDefinitionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(workflowDefinition, createWorkflowDefinitionApi(makeRequest)); - return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(workflowDefinitionWithMethods); -} - -/** - * @private - */ -const wrapWorkflowDefinitionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapWorkflowDefinition); - -/***/ }), - -/***/ "./export-types.ts": -/*!*************************!*\ - !*** ./export-types.ts ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ScheduledActionReferenceFilters: () => (/* reexport safe */ _common_types__WEBPACK_IMPORTED_MODULE_0__.ScheduledActionReferenceFilters), -/* harmony export */ WorkflowStepPermissionAction: () => (/* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionAction), -/* harmony export */ WorkflowStepPermissionEffect: () => (/* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionEffect), -/* harmony export */ WorkflowStepPermissionType: () => (/* reexport safe */ _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__.WorkflowStepPermissionType) -/* harmony export */ }); -/* harmony import */ var _common_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common-types */ "./common-types.ts"); -/* harmony import */ var _plain_common_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./plain/common-types */ "./plain/common-types.ts"); -/* harmony import */ var _entities_workflow_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/workflow-definition */ "./entities/workflow-definition.ts"); - - - - -/***/ }), - -/***/ "./methods/action.ts": -/*!***************************!*\ - !*** ./methods/action.ts ***! - \***************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AsyncActionFailedError: () => (/* binding */ AsyncActionFailedError), -/* harmony export */ AsyncActionProcessingError: () => (/* binding */ AsyncActionProcessingError), -/* harmony export */ pollAsyncActionStatus: () => (/* binding */ pollAsyncActionStatus) -/* harmony export */ }); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./methods/utils.ts"); -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - -const DEFAULT_MAX_RETRIES = 30; -const DEFAULT_INITIAL_DELAY_MS = 1000; -const DEFAULT_RETRY_INTERVAL_MS = 2000; - -/** Action is an interface that has a sys.status to be checked against */ - -class AsyncActionProcessingError extends Error { - constructor(message, action) { - super(message); - _defineProperty(this, "action", void 0); - this.action = action; - this.name = this.constructor.name; - } -} -class AsyncActionFailedError extends AsyncActionProcessingError {} -/** - * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded) - * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status - * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed. - * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long. - */ -async function pollAsyncActionStatus(actionFunction, options) { - var _options$retryCount, _options$retryInterva, _options$initialDelay, _options$throwOnFaile, _action; - let retryCount = 0; - let done = false; - let action; - const maxRetries = (_options$retryCount = options === null || options === void 0 ? void 0 : options.retryCount) !== null && _options$retryCount !== void 0 ? _options$retryCount : DEFAULT_MAX_RETRIES; - const retryIntervalMs = (_options$retryInterva = options === null || options === void 0 ? void 0 : options.retryIntervalMs) !== null && _options$retryInterva !== void 0 ? _options$retryInterva : DEFAULT_RETRY_INTERVAL_MS; - const initialDelayMs = (_options$initialDelay = options === null || options === void 0 ? void 0 : options.initialDelayMs) !== null && _options$initialDelay !== void 0 ? _options$initialDelay : DEFAULT_INITIAL_DELAY_MS; - const throwOnFailedExecution = (_options$throwOnFaile = options === null || options === void 0 ? void 0 : options.throwOnFailedExecution) !== null && _options$throwOnFaile !== void 0 ? _options$throwOnFaile : true; - - // Initial delay for short-running Actions - await (0,_utils__WEBPACK_IMPORTED_MODULE_0__.sleep)(initialDelayMs); - while (retryCount < maxRetries && !done) { - action = await actionFunction(); - - // Terminal states - if (action && ['succeeded', 'failed'].includes(action.sys.status)) { - done = true; - if (action.sys.status === 'failed' && throwOnFailedExecution) { - throw new AsyncActionFailedError(`${action.sys.type} failed to execute.`, action); - } - return action; - } - await (0,_utils__WEBPACK_IMPORTED_MODULE_0__.sleep)(retryIntervalMs); - retryCount += 1; - } - throw new AsyncActionProcessingError(`${(_action = action) === null || _action === void 0 ? void 0 : _action.sys.type} didn't finish processing within the expected timeframe.`, action); -} - -/***/ }), - -/***/ "./methods/content-type.ts": -/*!*********************************!*\ - !*** ./methods/content-type.ts ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ omitAndDeleteField: () => (/* binding */ omitAndDeleteField) -/* harmony export */ }); -const _excluded = ["fieldId"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -/** - * @private - * @param id - unique ID of the field - * @param key - the attribute on the field to change - * @param value - the value to set the attribute to - */ -const findAndUpdateField = function (contentType, fieldId, omitOrDelete) { - const field = contentType.fields.find(field => field.id === fieldId); - if (!field) { - return Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${fieldId}, on the content type ${contentType.name}.`)); - } - field[omitOrDelete] = true; - return Promise.resolve(contentType); -}; -const omitAndDeleteField = (makeRequest, _ref, contentType) => { - let { - fieldId - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return findAndUpdateField(contentType, fieldId, 'omitted').then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: newContentType - }); - }).then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params, - payload: newContentType - }); - }).then(newContentType => { - return findAndUpdateField(newContentType, fieldId, 'deleted'); - }).then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: newContentType - }); - }); -}; - -/***/ }), - -/***/ "./methods/utils.ts": -/*!**************************!*\ - !*** ./methods/utils.ts ***! - \**************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ sleep: () => (/* binding */ sleep) -/* harmony export */ }); -/** - * Helper function that resolves a Promise after the specified duration (in milliseconds) - * @private - */ -function sleep(durationMs) { - return new Promise(resolve => setTimeout(resolve, durationMs)); -} - -/***/ }), - -/***/ "./plain/as-iterator.ts": -/*!******************************!*\ - !*** ./plain/as-iterator.ts ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ asIterator: () => (/* binding */ asIterator) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -const asIterator = (fn, params) => { - return { - [Symbol.asyncIterator]() { - let options = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(params); - const get = () => fn((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(options)); - let currentResult = get(); - return { - current: 0, - async next() { - const { - total = 0, - items = [], - skip = 0, - limit = 100 - } = await currentResult; - if (total === this.current) { - return { - done: true, - value: null - }; - } - const value = items[this.current++ - skip]; - const endOfPage = this.current % limit === 0; - const endOfList = this.current === total; - if (endOfPage && !endOfList) { - options = _objectSpread(_objectSpread({}, options), {}, { - query: _objectSpread(_objectSpread({}, options.query), {}, { - skip: skip + limit - }) - }); - currentResult = get(); - } - return { - done: false, - value - }; - } - }; - } - }; -}; - -/***/ }), - -/***/ "./plain/checks.ts": -/*!*************************!*\ - !*** ./plain/checks.ts ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isArchived: () => (/* binding */ isArchived), -/* harmony export */ isDraft: () => (/* binding */ isDraft), -/* harmony export */ isPublished: () => (/* binding */ isPublished), -/* harmony export */ isUpdated: () => (/* binding */ isUpdated) -/* harmony export */ }); -const isPublished = data => !!data.sys.publishedVersion; -const isUpdated = data => { - // The act of publishing an entity increases its version by 1, so any entry which has - // 2 versions higher or more than the publishedVersion has unpublished changes. - return !!(data.sys.publishedVersion && data.sys.version > data.sys.publishedVersion + 1); -}; -const isDraft = data => !data.sys.publishedVersion; -const isArchived = data => !!data.sys.archivedVersion; - -/***/ }), - -/***/ "./plain/common-types.ts": -/*!*******************************!*\ - !*** ./plain/common-types.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - - -/***/ }), - -/***/ "./plain/plain-client.ts": -/*!*******************************!*\ - !*** ./plain/plain-client.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createPlainClient: () => (/* binding */ createPlainClient) -/* harmony export */ }); -/* harmony import */ var _methods_content_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../methods/content-type */ "./methods/content-type.ts"); -/* harmony import */ var _wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrappers/wrap */ "./plain/wrappers/wrap.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - -/** - * @private - */ -const createPlainClient = (makeRequest, defaults) => { - const wrapParams = { - makeRequest, - defaults - }; - return { - raw: { - getDefaultParams: () => defaults, - get: (url, config) => makeRequest({ - entityType: 'Http', - action: 'get', - params: { - url, - config - } - }), - patch: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'patch', - params: { - url, - config - }, - payload - }), - post: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'post', - params: { - url, - config - }, - payload - }), - put: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'put', - params: { - url, - config - }, - payload - }), - delete: (url, config) => makeRequest({ - entityType: 'Http', - action: 'delete', - params: { - url, - config - } - }), - http: (url, config) => makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url, - config - } - }) - }, - appAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getMany'), - getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getManyForEnvironment'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'update') - }, - appActionCall: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'create'), - getCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'getCallDetails'), - createWithResponse: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppActionCall', 'createWithResponse') - }, - appBundle: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppBundle', 'create') - }, - appDetails: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDetails', 'delete') - }, - appEventSubscription: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppEventSubscription', 'delete') - }, - appKey: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'create'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppKey', 'delete') - }, - appSignedRequest: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSignedRequest', 'create') - }, - appSigningSecret: { - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'upsert'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppSigningSecret', 'delete') - }, - appAccessToken: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAccessToken', 'create') - }, - function: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany') - }, - editorInterface: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'update') - }, - space: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'getMany'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'getManyForOrganization'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Space', 'create') - }, - environment: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Environment', 'delete') - }, - environmentAlias: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'getMany'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentAlias', 'delete') - }, - environmentTemplate: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'create'), - versionUpdate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'versionUpdate'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'update'), - install: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'install'), - versions: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'versions'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'validate'), - disconnect: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'disconnect'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplate', 'delete') - }, - environmentTemplateInstallation: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplateInstallation', 'getMany'), - getForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EnvironmentTemplateInstallation', 'getForEnvironment') - }, - bulkAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'get'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'unpublish'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validate') - }, - comment: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'delete') - }, - contentType: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'unpublish'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ContentType', 'createWithId'), - omitAndDeleteField: (params, contentType, fieldId) => (0,_methods_content_type__WEBPACK_IMPORTED_MODULE_0__.omitAndDeleteField)(makeRequest, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - fieldId - }), contentType) - }, - user: { - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getManyForSpace'), - getForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getForSpace'), - getCurrent: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getCurrent'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'User', 'getManyForOrganization') - }, - task: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Task', 'delete') - }, - entry: { - getPublished: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'getPublished'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'update'), - patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'patch'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'unpublish'), - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'archive'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'unarchive'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'createWithId'), - references: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Entry', 'references') - }, - asset: { - getPublished: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'getPublished'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'publish'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'unpublish'), - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'archive'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'unarchive'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'createWithId'), - createFromFiles: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Asset', 'createFromFiles'), - processForAllLocales: (params, asset, options) => makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - options, - asset - }) - }), - processForLocale: (params, asset, locale, options) => makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - locale, - asset, - options - }) - }) - }, - appUpload: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'get'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'delete'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppUpload', 'create') - }, - assetKey: { - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AssetKey', 'create') - }, - upload: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'get'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'create'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Upload', 'delete') - }, - locale: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'getMany'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'delete'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'update'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Locale', 'create') - }, - personalAccessToken: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'getMany'), - create: (data, headers) => makeRequest({ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - headers, - payload: data - }), - revoke: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PersonalAccessToken', 'revoke') - }, - accessToken: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'getMany'), - createPersonalAccessToken: (data, headers) => makeRequest({ - entityType: 'AccessToken', - action: 'createPersonalAccessToken', - params: {}, - headers, - payload: data - }), - revoke: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'revoke'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AccessToken', 'getManyForOrganization') - }, - usage: { - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Usage', 'getManyForSpace'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Usage', 'getManyForOrganization') - }, - release: { - archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'get'), - query: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'query'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'delete'), - publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'publish'), - unarchive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'unarchive'), - unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'unpublish'), - validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'validate') - }, - releaseAction: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'getMany'), - queryForRelease: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseAction', 'queryForRelease') - }, - role: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'getMany'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Role', 'delete') - }, - scheduledActions: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'create'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'delete'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ScheduledAction', 'update') - }, - previewApiKey: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PreviewApiKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'PreviewApiKey', 'getMany') - }, - apiKey: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ApiKey', 'delete') - }, - appDefinition: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'delete'), - getInstallationsForOrg: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppDefinition', 'getInstallationsForOrg') - }, - appInstallation: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'getForOrganization'), - upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'upsert'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'delete') - }, - extension: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'delete') - }, - webhook: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getMany'), - getHealthStatus: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getHealthStatus'), - getCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getCallDetails'), - getSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getSigningSecret'), - getRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getRetryPolicy'), - getManyCallDetails: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'getManyCallDetails'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'update'), - upsertSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'upsertSigningSecret'), - upsertRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'upsertRetryPolicy'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'delete'), - deleteSigningSecret: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'deleteSigningSecret'), - deleteRetryPolicy: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Webhook', 'deleteRetryPolicy') - }, - snapshot: { - getManyForEntry: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getManyForEntry'), - getForEntry: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getForEntry'), - getManyForContentType: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getManyForContentType'), - getForContentType: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Snapshot', 'getForContentType') - }, - tag: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'getMany'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Tag', 'delete') - }, - organization: { - getAll: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Organization', 'getMany'), - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Organization', 'get') - }, - organizationInvitation: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationInvitation', 'get'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationInvitation', 'create') - }, - organizationMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'getMany'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'delete') - }, - spaceMember: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'getMany') - }, - spaceMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'create'), - createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'createWithId'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMembership', 'delete') - }, - team: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'getMany'), - getManyForSpace: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'getManyForSpace'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Team', 'delete') - }, - teamMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'get'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'getManyForOrganization'), - getManyForTeam: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'getManyForTeam'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamMembership', 'delete') - }, - teamSpaceMembership: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getMany'), - getForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getForOrganization'), - getManyForOrganization: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'getManyForOrganization'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'TeamSpaceMembership', 'delete') - }, - uiConfig: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UIConfig', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UIConfig', 'update') - }, - userUIConfig: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UserUIConfig', 'get'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'UserUIConfig', 'update') - }, - workflowDefinition: { - get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'get'), - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowDefinition', 'delete') - }, - workflow: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'getMany'), - create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'create'), - update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'update'), - delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'delete'), - complete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Workflow', 'complete') - }, - workflowsChangelog: { - getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'WorkflowsChangelog', 'getMany') - } - }; -}; - -/***/ }), - -/***/ "./plain/wrappers/wrap.ts": -/*!********************************!*\ - !*** ./plain/wrappers/wrap.ts ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ wrap: () => (/* binding */ wrap) -/* harmony export */ }); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ -const wrap = ({ - makeRequest, - defaults -}, entityType, action) => { - // It's not really possible to make this type safe as we are overloading `makeRequest`. - // This missing typesafety is only within `wrap`. `wrap` has proper public types. - // @ts-expect-error - return (params, payload, headers) => - // @ts-expect-error - makeRequest({ - // @ts-expect-error - entityType, - // @ts-expect-error - action, - // @ts-expect-error - params: _objectSpread(_objectSpread({}, defaults), params), - payload, - // Required after adding optional headers to a delete method for the first time - // @ts-expect-error - headers - }); -}; - -/***/ }), - -/***/ "./upload-http-client.ts": -/*!*******************************!*\ - !*** ./upload-http-client.ts ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getUploadHttpClient: () => (/* binding */ getUploadHttpClient) -/* harmony export */ }); -/** - * @private - */ -function getUploadHttpClient(http, options) { - var _ref; - const { - hostUpload, - defaultHostnameUpload, - timeout - } = http.httpClientParams; - const uploadHttp = http.cloneWithNewParams({ - host: hostUpload || defaultHostnameUpload, - // Using client presets, options or 5 minute default timeout - timeout: (_ref = timeout !== null && timeout !== void 0 ? timeout : options === null || options === void 0 ? void 0 : options.uploadTimeout) !== null && _ref !== void 0 ? _ref : 300000 - }); - return uploadHttp; -} - -/***/ }), - -/***/ "../node_modules/call-bind/callBound.js": -/*!**********************************************!*\ - !*** ../node_modules/call-bind/callBound.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); - -var callBind = __webpack_require__(/*! ./ */ "../node_modules/call-bind/index.js"); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; - - -/***/ }), - -/***/ "../node_modules/call-bind/index.js": -/*!******************************************!*\ - !*** ../node_modules/call-bind/index.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); - -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); - -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - -/***/ }), - -/***/ "../node_modules/combined-stream/lib/combined_stream.js": -/*!**************************************************************!*\ - !*** ../node_modules/combined-stream/lib/combined_stream.js ***! - \**************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var util = __webpack_require__(/*! util */ "util"); -var Stream = (__webpack_require__(/*! stream */ "stream").Stream); -var DelayedStream = __webpack_require__(/*! delayed-stream */ "../node_modules/delayed-stream/lib/delayed_stream.js"); - -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); - -CombinedStream.create = function(options) { - var combinedStream = new this(); - - options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } - - return combinedStream; -}; - -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; - -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; - } - - this._handleErrors(stream); - - if (this.pauseStreams) { - stream.pause(); - } - } - - this._streams.push(stream); - return this; -}; - -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; - -CombinedStream.prototype._getNext = function() { - this._currentStream = null; - - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call - } - - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; - -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); - - - if (typeof stream == 'undefined') { - this.end(); - return; - } - - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; - } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); -}; - -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; - - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } - - var value = stream; - this.write(value); - this._getNext(); -}; - -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; - -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; - -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; - -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; - -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; - -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; - -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } - - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; - -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } - - self.dataSize += stream.dataSize; - }); - - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; - -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/dist/index.es-modules.js": -/*!********************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/dist/index.es-modules.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createHttpClient: () => (/* binding */ createHttpClient), -/* harmony export */ createRequestConfig: () => (/* binding */ createRequestConfig), -/* harmony export */ enforceObjPath: () => (/* binding */ enforceObjPath), -/* harmony export */ errorHandler: () => (/* binding */ errorHandler), -/* harmony export */ freezeSys: () => (/* binding */ freezeSys), -/* harmony export */ getUserAgentHeader: () => (/* binding */ getUserAgentHeader), -/* harmony export */ toPlainObject: () => (/* binding */ toPlainObject) -/* harmony export */ }); -/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.esm.js"); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js"); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js"); -/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js"); -/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js"); -/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__); - - - - - - -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _wrapRegExp() { - _wrapRegExp = function (e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = new RegExp(e, t); - return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function () {}; - return { - s: F, - n: function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function (e) { - throw e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function () { - it = it.call(o); - }, - n: function () { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function (e) { - didErr = true; - err = e; - }, - f: function () { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; -} -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function asyncToken(instance, getToken) { - instance.interceptors.request.use(function (config) { - return getToken().then(function (accessToken) { - config.headers.set('Authorization', "Bearer ".concat(accessToken)); - return config; - }); - }); -} - -function isNode() { - /** - * Polyfills of 'process' might set process.browser === true - * - * See: - * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8 - * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156 - **/ - return typeof process !== 'undefined' && !process.browser; -} -function isReactNative() { - return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative'; -} -function getNodeVersion() { - return process.versions && process.versions.node ? "v".concat(process.versions.node) : process.version; -} -function getWindow() { - return window; -} -function noop() { - return undefined; -} - -var delay = function delay(ms) { - return new Promise(function (resolve) { - setTimeout(resolve, ms); - }); -}; -var defaultWait = function defaultWait(attempts) { - return Math.pow(Math.SQRT2, attempts); -}; -function rateLimit(instance) { - var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5; - var _instance$defaults = instance.defaults, - _instance$defaults$re = _instance$defaults.responseLogger, - responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re, - _instance$defaults$re2 = _instance$defaults.requestLogger, - requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2; - instance.interceptors.request.use(function (config) { - requestLogger(config); - return config; - }, function (error) { - requestLogger(error); - return Promise.reject(error); - }); - instance.interceptors.response.use(function (response) { - // we don't need to do anything here - responseLogger(response); - return response; - }, function (error) { - var response = error.response; - var config = error.config; - responseLogger(error); - // Do not retry if it is disabled or no request config exists (not an axios error) - if (!config || !instance.defaults.retryOnError) { - return Promise.reject(error); - } - - // Retried already for max attempts - var doneAttempts = config.attempts || 1; - if (doneAttempts > maxRetry) { - error.attempts = config.attempts; - return Promise.reject(error); - } - var retryErrorType = null; - var wait = defaultWait(doneAttempts); - - // Errors without response did not receive anything from the server - if (!response) { - retryErrorType = 'Connection'; - } else if (response.status >= 500 && response.status < 600) { - // 5** errors are server related - retryErrorType = "Server ".concat(response.status); - } else if (response.status === 429) { - // 429 errors are exceeded rate limit exceptions - retryErrorType = 'Rate limit'; - // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413 - if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) { - wait = response.headers['x-contentful-ratelimit-reset']; - } - } - if (retryErrorType) { - // convert to ms and add jitter - wait = Math.floor(wait * 1000 + Math.random() * 200 + 500); - instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); - - // increase attempts counter - config.attempts = doneAttempts + 1; - - /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object - to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry - requests still use the original http/httpsAgent property */ - delete config.httpAgent; - delete config.httpsAgent; - return delay(wait).then(function () { - return instance(config); - }); - } - return Promise.reject(error); - }); -} - -var PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\d+)(%)/, { - value: 1 -}); -function calculateLimit(type) { - var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7; - var limit = max; - if (PERCENTAGE_REGEX.test(type)) { - var _type$match; - var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups; - if (groups && groups.value) { - var percentage = parseInt(groups.value) / 100; - limit = Math.round(max * percentage); - } - } - return Math.min(30, Math.max(1, limit)); -} -function createThrottle(limit, logger) { - logger('info', "Throttle request to ".concat(limit, "/s")); - return p_throttle__WEBPACK_IMPORTED_MODULE_3___default()({ - limit: limit, - interval: 1000, - strict: false - }); -} -var rateLimitThrottle = (function (axiosInstance) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto'; - var _axiosInstance$defaul = axiosInstance.defaults.logHandler, - logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul; - var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) ? calculateLimit(type) : calculateLimit('auto', type); - var throttle = createThrottle(limit, logHandler); - var isCalculated = false; - var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) { - if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) { - var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']); - var nextLimit = calculateLimit(type, rawLimit); - if (nextLimit !== limit) { - if (requestInterceptorId) { - axiosInstance.interceptors.request.eject(requestInterceptorId); - } - limit = nextLimit; - throttle = createThrottle(nextLimit, logHandler); - requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - } - isCalculated = true; - } - return response; - }, function (error) { - return Promise.reject(error); - }); - return function () { - axiosInstance.interceptors.request.eject(requestInterceptorId); - axiosInstance.interceptors.response.eject(responseInterceptorId); - }; -}); - -// Matches 'sub.host:port' or 'host:port' and extracts hostname and port -// Also enforces toplevel domain specified, no spaces and no protocol -var HOST_REGEX = /^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/; - -/** - * Create pre-configured axios instance - * @private - * @param {AxiosStatic} axios - Axios library - * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ -function createHttpClient(axios, options) { - var defaultConfig = { - insecure: false, - retryOnError: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - logHandler: function logHandler(level, data) { - if (level === 'error' && data) { - var title = [data.name, data.message].filter(function (a) { - return a; - }).join(' - '); - console.error("[error] ".concat(title)); - console.error(data); - return; - } - console.log("[".concat(level, "] ").concat(data)); - }, - // Passed to axios - headers: {}, - httpAgent: false, - httpsAgent: false, - timeout: 30000, - throttle: 0, - basePath: '', - adapter: undefined, - maxContentLength: 1073741824, - // 1GB - maxBodyLength: 1073741824 // 1GB - }; - var config = _objectSpread2(_objectSpread2({}, defaultConfig), options); - if (!config.accessToken) { - var missingAccessTokenError = new TypeError('Expected parameter accessToken'); - config.logHandler('error', missingAccessTokenError); - throw missingAccessTokenError; - } - - // Construct axios baseURL option - var protocol = config.insecure ? 'http' : 'https'; - var space = config.space ? "".concat(config.space, "/") : ''; - var hostname = config.defaultHostname; - var port = config.insecure ? 80 : 443; - if (config.host && HOST_REGEX.test(config.host)) { - var parsed = config.host.split(':'); - if (parsed.length === 2) { - var _parsed = _slicedToArray(parsed, 2); - hostname = _parsed[0]; - port = _parsed[1]; - } else { - hostname = parsed[0]; - } - } - - // Ensure that basePath does start but not end with a slash - if (config.basePath) { - config.basePath = "/".concat(config.basePath.split('/').filter(Boolean).join('/')); - } - var baseURL = options.baseURL || "".concat(protocol, "://").concat(hostname, ":").concat(port).concat(config.basePath, "/spaces/").concat(space); - if (!config.headers.Authorization && typeof config.accessToken !== 'function') { - config.headers.Authorization = 'Bearer ' + config.accessToken; - } - var axiosOptions = { - // Axios - baseURL: baseURL, - headers: config.headers, - httpAgent: config.httpAgent, - httpsAgent: config.httpsAgent, - proxy: config.proxy, - timeout: config.timeout, - adapter: config.adapter, - maxContentLength: config.maxContentLength, - maxBodyLength: config.maxBodyLength, - paramsSerializer: { - serialize: function serialize(params) { - return qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(params); - } - }, - // Contentful - logHandler: config.logHandler, - responseLogger: config.responseLogger, - requestLogger: config.requestLogger, - retryOnError: config.retryOnError - }; - var instance = axios.create(axiosOptions); - instance.httpClientParams = options; - - /** - * Creates a new axios instance with the same default base parameters as the - * current one, and with any overrides passed to the newParams object - * This is useful as the SDKs use dependency injection to get the axios library - * and the version of the library comes from different places depending - * on whether it's a browser build or a node.js build. - * @private - * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ - instance.cloneWithNewParams = function (newParams) { - return createHttpClient(axios, _objectSpread2(_objectSpread2({}, (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(options)), newParams)); - }; - - /** - * Apply interceptors. - * Please note that the order of interceptors is important - */ - - if (config.onBeforeRequest) { - instance.interceptors.request.use(config.onBeforeRequest); - } - if (typeof config.accessToken === 'function') { - asyncToken(instance, config.accessToken); - } - if (config.throttle) { - rateLimitThrottle(instance, config.throttle); - } - rateLimit(instance, config.retryLimit); - if (config.onError) { - instance.interceptors.response.use(function (response) { - return response; - }, config.onError); - } - return instance; -} - -/* eslint-disable @typescript-eslint/no-explicit-any */ -/** - * Creates request parameters configuration by parsing an existing query object - * @private - * @param {Object} query - * @return {Object} Config object with `params` property, ready to be used in axios - */ -function createRequestConfig(_ref) { - var query = _ref.query; - var config = {}; - delete query.resolveLinks; - config.params = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(query); - return config; -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function enforceObjPath(obj, path) { - if (!(path in obj)) { - var err = new Error(); - err.name = 'PropertyMissing'; - err.message = "Required property ".concat(path, " missing from:\n\n").concat(JSON.stringify(obj), "\n\n"); - throw err; - } - return true; -} - -// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze - -function deepFreeze(object) { - var propNames = Object.getOwnPropertyNames(object); - var _iterator = _createForOfIteratorHelper(propNames), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var name = _step.value; - var value = object[name]; - if (value && _typeof(value) === 'object') { - deepFreeze(value); - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - return Object.freeze(object); -} -function freezeSys(obj) { - deepFreeze(obj.sys || {}); - return obj; -} - -function getBrowserOS() { - var win = getWindow(); - if (!win) { - return null; - } - var userAgent = win.navigator.userAgent; - // TODO: platform is deprecated. - var platform = win.navigator.platform; - var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; - var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; - var iosPlatforms = ['iPhone', 'iPad', 'iPod']; - if (macosPlatforms.indexOf(platform) !== -1) { - return 'macOS'; - } else if (iosPlatforms.indexOf(platform) !== -1) { - return 'iOS'; - } else if (windowsPlatforms.indexOf(platform) !== -1) { - return 'Windows'; - } else if (/Android/.test(userAgent)) { - return 'Android'; - } else if (/Linux/.test(platform)) { - return 'Linux'; - } - return null; -} -function getNodeOS() { - var platform = process.platform || 'linux'; - var version = process.version || '0.0.0'; - var platformMap = { - android: 'Android', - aix: 'Linux', - darwin: 'macOS', - freebsd: 'Linux', - linux: 'Linux', - openbsd: 'Linux', - sunos: 'Linux', - win32: 'Windows' - }; - if (platform in platformMap) { - return "".concat(platformMap[platform] || 'Linux', "/").concat(version); - } - return null; -} -function getUserAgentHeader(sdk, application, integration, feature) { - var headerParts = []; - if (application) { - headerParts.push("app ".concat(application)); - } - if (integration) { - headerParts.push("integration ".concat(integration)); - } - if (feature) { - headerParts.push('feature ' + feature); - } - headerParts.push("sdk ".concat(sdk)); - var platform = null; - try { - if (isReactNative()) { - platform = getBrowserOS(); - headerParts.push('platform ReactNative'); - } else if (isNode()) { - platform = getNodeOS(); - headerParts.push("platform node.js/".concat(getNodeVersion())); - } else { - platform = getBrowserOS(); - headerParts.push('platform browser'); - } - } catch (e) { - platform = null; - } - if (platform) { - headerParts.push("os ".concat(platform)); - } - return "".concat(headerParts.filter(function (item) { - return item !== ''; - }).join('; '), ";"); -} - -/** - * Mixes in a method to return just a plain object with no additional methods - * @private - * @param data - Any plain JSON response returned from the API - * @return Enhanced object with toPlainObject method - */ -function toPlainObject(data) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - return Object.defineProperty(data, 'toPlainObject', { - enumerable: false, - configurable: false, - writable: false, - value: function value() { - return (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(this); - } - }); -} - -/** - * Handles errors received from the server. Parses the error into a more useful - * format, places it in an exception and throws it. - * See https://www.contentful.com/developers/docs/references/errors/ - * for more details on the data received on the errorResponse.data property - * and the expected error codes. - * @private - */ -function errorHandler(errorResponse) { - var config = errorResponse.config, - response = errorResponse.response; - var errorName; - - // Obscure the Management token - if (config && config.headers && config.headers['Authorization']) { - var token = "...".concat(config.headers['Authorization'].toString().substr(-5)); - config.headers['Authorization'] = "Bearer ".concat(token); - } - if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) { - throw errorResponse; - } - var data = response === null || response === void 0 ? void 0 : response.data; - var errorData = { - status: response === null || response === void 0 ? void 0 : response.status, - statusText: response === null || response === void 0 ? void 0 : response.statusText, - message: '', - details: {} - }; - if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) { - errorData.request = { - url: config.url, - headers: config.headers, - method: config.method, - payloadData: config.data - }; - } - if (data && _typeof(data) === 'object') { - var _data$sys; - if ('requestId' in data) { - errorData.requestId = data.requestId || 'UNKNOWN'; - } - if ('message' in data) { - errorData.message = data.message || ''; - } - if ('details' in data) { - errorData.details = data.details || {}; - } - errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id; - } - var error = new Error(); - error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response === void 0 ? void 0 : response.status, " ").concat(response === null || response === void 0 ? void 0 : response.statusText); - try { - error.message = JSON.stringify(errorData, null, ' '); - } catch (_unused) { - var _errorData$message; - error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : ''; - } - throw error; -} - - - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.esm.js": -/*!****************************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.esm.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ copy) -/* harmony export */ }); -var toStringFunction = Function.prototype.toString; -var create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf; -var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable; -var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function'; -var WEAK_MAP = typeof WeakMap === 'function'; -/** - * @function createCache - * - * @description - * get a new cache object to prevent circular references - * - * @returns the new cache object - */ -var createCache = (function () { - if (WEAK_MAP) { - return function () { return new WeakMap(); }; - } - var Cache = /** @class */ (function () { - function Cache() { - this._keys = []; - this._values = []; - } - Cache.prototype.has = function (key) { - return !!~this._keys.indexOf(key); - }; - Cache.prototype.get = function (key) { - return this._values[this._keys.indexOf(key)]; - }; - Cache.prototype.set = function (key, value) { - this._keys.push(key); - this._values.push(value); - }; - return Cache; - }()); - return function () { return new Cache(); }; -})(); -/** - * @function getCleanClone - * - * @description - * get an empty version of the object with the same prototype it has - * - * @param object the object to build a clean clone from - * @param realm the realm the object resides in - * @returns the empty cloned object - */ -var getCleanClone = function (object, realm) { - var prototype = object.__proto__ || getPrototypeOf$1(object); - if (!prototype) { - return create(null); - } - var Constructor = prototype.constructor; - if (Constructor === realm.Object) { - return prototype === realm.Object.prototype ? {} : create(prototype); - } - if (~toStringFunction.call(Constructor).indexOf('[native code]')) { - try { - return new Constructor(); - } - catch (_a) { } - } - return create(prototype); -}; -/** - * @function getObjectCloneLoose - * - * @description - * get a copy of the object based on loose rules, meaning all enumerable keys - * and symbols are copied, but property descriptors are not considered - * - * @param object the object to clone - * @param realm the realm the object resides in - * @param handleCopy the function that handles copying the object - * @returns the copied object - */ -var getObjectCloneLoose = function (object, realm, handleCopy, cache) { - var clone = getCleanClone(object, realm); - // set in the cache immediately to be able to reuse the object recursively - cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = handleCopy(object[key], cache); - } - } - if (SYMBOL_PROPERTIES) { - var symbols = getOwnPropertySymbols(object); - for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) { - symbol = symbols[index]; - if (propertyIsEnumerable.call(object, symbol)) { - clone[symbol] = handleCopy(object[symbol], cache); - } - } - } - return clone; -}; -/** - * @function getObjectCloneStrict - * - * @description - * get a copy of the object based on strict rules, meaning all keys and symbols - * are copied based on the original property descriptors - * - * @param object the object to clone - * @param realm the realm the object resides in - * @param handleCopy the function that handles copying the object - * @returns the copied object - */ -var getObjectCloneStrict = function (object, realm, handleCopy, cache) { - var clone = getCleanClone(object, realm); - // set in the cache immediately to be able to reuse the object recursively - cache.set(object, clone); - var properties = SYMBOL_PROPERTIES - ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)) - : getOwnPropertyNames(object); - for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) { - property = properties[index]; - if (property !== 'callee' && property !== 'caller') { - descriptor = getOwnPropertyDescriptor(object, property); - if (descriptor) { - // Only clone the value if actually a value, not a getter / setter. - if (!descriptor.get && !descriptor.set) { - descriptor.value = handleCopy(object[property], cache); - } - try { - defineProperty(clone, property, descriptor); - } - catch (error) { - // Tee above can fail on node in edge cases, so fall back to the loose assignment. - clone[property] = descriptor.value; - } - } - else { - // In extra edge cases where the property descriptor cannot be retrived, fall back to - // the loose assignment. - clone[property] = handleCopy(object[property], cache); - } - } - } - return clone; -}; -/** - * @function getRegExpFlags - * - * @description - * get the flags to apply to the copied regexp - * - * @param regExp the regexp to get the flags of - * @returns the flags for the regexp - */ -var getRegExpFlags = function (regExp) { - var flags = ''; - if (regExp.global) { - flags += 'g'; - } - if (regExp.ignoreCase) { - flags += 'i'; - } - if (regExp.multiline) { - flags += 'm'; - } - if (regExp.unicode) { - flags += 'u'; - } - if (regExp.sticky) { - flags += 'y'; - } - return flags; -}; - -// utils -var isArray = Array.isArray; -var getPrototypeOf = Object.getPrototypeOf; -var GLOBAL_THIS = (function () { - if (typeof globalThis !== 'undefined') { - return globalThis; - } - if (typeof self !== 'undefined') { - return self; - } - if (typeof window !== 'undefined') { - return window; - } - if (typeof global !== 'undefined') { - return global; - } - if (console && console.error) { - console.error('Unable to locate global object, returning "this".'); - } - return this; -})(); -/** - * @function copy - * - * @description - * copy an value deeply as much as possible - * - * If `strict` is applied, then all properties (including non-enumerable ones) - * are copied with their original property descriptors on both objects and arrays. - * - * The value is compared to the global constructors in the `realm` provided, - * and the native constructor is always used to ensure that extensions of native - * objects (allows in ES2015+) are maintained. - * - * @param value the value to copy - * @param [options] the options for copying with - * @param [options.isStrict] should the copy be strict - * @param [options.realm] the realm (this) value the value is copied from - * @returns the copied value - */ -function copy(value, options) { - // manually coalesced instead of default parameters for performance - var isStrict = !!(options && options.isStrict); - var realm = (options && options.realm) || GLOBAL_THIS; - var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose; - /** - * @function handleCopy - * - * @description - * copy the value recursively based on its type - * - * @param value the value to copy - * @returns the copied value - */ - var handleCopy = function (value, cache) { - if (!value || typeof value !== 'object') { - return value; - } - if (cache.has(value)) { - return cache.get(value); - } - var prototype = value.__proto__ || getPrototypeOf(value); - var Constructor = prototype && prototype.constructor; - // plain objects - if (!Constructor || Constructor === realm.Object) { - return getObjectClone(value, realm, handleCopy, cache); - } - var clone; - // arrays - if (isArray(value)) { - // if strict, include non-standard properties - if (isStrict) { - return getObjectCloneStrict(value, realm, handleCopy, cache); - } - clone = new Constructor(); - cache.set(value, clone); - for (var index = 0, length_1 = value.length; index < length_1; ++index) { - clone[index] = handleCopy(value[index], cache); - } - return clone; - } - // dates - if (value instanceof realm.Date) { - return new Constructor(value.getTime()); - } - // regexps - if (value instanceof realm.RegExp) { - clone = new Constructor(value.source, value.flags || getRegExpFlags(value)); - clone.lastIndex = value.lastIndex; - return clone; - } - // maps - if (realm.Map && value instanceof realm.Map) { - clone = new Constructor(); - cache.set(value, clone); - value.forEach(function (value, key) { - clone.set(key, handleCopy(value, cache)); - }); - return clone; - } - // sets - if (realm.Set && value instanceof realm.Set) { - clone = new Constructor(); - cache.set(value, clone); - value.forEach(function (value) { - clone.add(handleCopy(value, cache)); - }); - return clone; - } - // blobs - if (realm.Blob && value instanceof realm.Blob) { - return value.slice(0, value.size, value.type); - } - // buffers (node-only) - if (realm.Buffer && realm.Buffer.isBuffer(value)) { - clone = realm.Buffer.allocUnsafe - ? realm.Buffer.allocUnsafe(value.length) - : new Constructor(value.length); - cache.set(value, clone); - value.copy(clone); - return clone; - } - // arraybuffers / dataviews - if (realm.ArrayBuffer) { - // dataviews - if (realm.ArrayBuffer.isView(value)) { - clone = new Constructor(value.buffer.slice(0)); - cache.set(value, clone); - return clone; - } - // arraybuffers - if (value instanceof realm.ArrayBuffer) { - clone = value.slice(0); - cache.set(value, clone); - return clone; - } - } - // if the value cannot / should not be cloned, don't - if ( - // promise-like - typeof value.then === 'function' || - // errors - value instanceof Error || - // weakmaps - (realm.WeakMap && value instanceof realm.WeakMap) || - // weaksets - (realm.WeakSet && value instanceof realm.WeakSet)) { - return value; - } - // assume anything left is a custom constructor - return getObjectClone(value, realm, handleCopy, cache); - }; - return handleCopy(value, createCache()); -} -// Adding reference to allow usage in CommonJS libraries compiled using TSC, which -// expects there to be a default property on the exported value. See -// [#37](https://github.com/planttheidea/fast-copy/issues/37) for details. -copy.default = copy; -/** - * @function strictCopy - * - * @description - * copy the value with `strict` option pre-applied - * - * @param value the value to copy - * @param [options] the options for copying with - * @param [options.realm] the realm (this) value the value is copied from - * @returns the copied value - */ -copy.strict = function strictCopy(value, options) { - return copy(value, { - isStrict: true, - realm: options ? options.realm : void 0, - }); -}; - - -//# sourceMappingURL=fast-copy.esm.js.map - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js": -/*!**************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js ***! - \**************************************************************************/ -/***/ ((module) => { - -"use strict"; - - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; - -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; - -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js"); -var parse = __webpack_require__(/*! ./parse */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js"); -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); - -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; - -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; - -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } - - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = { __proto__: null }; - - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } - - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); - } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } - - return obj; -}; - -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== cleanRoot - && String(index) === cleanRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; - } - } - - leaf = obj; - } - - return leaf; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options, valuesParsed); -}; - -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - - if (options.allowSparse === true) { - return obj; - } - - return utils.compact(obj); -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js": -/*!****************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js ***! - \****************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js"); -var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js"); -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); -var has = Object.prototype.hasOwnProperty; - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; - -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; - -var toISO = Date.prototype.toISOString; - -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; - -var sentinel = {}; - -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; - - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); - } - - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } - - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; - - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; - - if (skipNulls && value === null) { - continue; - } - - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix - : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); - - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } - - return values; -}; - -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (options.sort) { - objKeys.sort(options.sort); - } - - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - commaRoundTrip, - options.strictNullHandling, - options.skipNulls, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } - - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } - - return joined.length > 0 ? prefix + joined : ''; -}; - - -/***/ }), - -/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js": -/*!************************************************************************!*\ - !*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - - item.obj[item.prop] = compacted; - } - } -}; - -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - - return target; - } - - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - /* eslint operator-linebreak: [2, "before"] */ - out += hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - } - - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); - } - } - } - - compactQueue(queue); - - return value; -}; - -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -var combine = function combine(a, b) { - return [].concat(a, b); -}; - -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; - -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; - - -/***/ }), - -/***/ "../node_modules/debug/node_modules/ms/index.js": -/*!******************************************************!*\ - !*** ../node_modules/debug/node_modules/ms/index.js ***! - \******************************************************/ -/***/ ((module) => { - -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function (val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - - -/***/ }), - -/***/ "../node_modules/debug/src/browser.js": -/*!********************************************!*\ - !*** ../node_modules/debug/src/browser.js ***! - \********************************************/ -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -/** - * Colors. - */ - -exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33']; -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ -// eslint-disable-next-line complexity - -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } // Internet Explorer and Edge do not support colors. - - - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - - - return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); -} -/** - * Colorize log arguments if enabled. - * - * @api public - */ - - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - var c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - - var index = 0; - var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function (match) { - if (match === '%%') { - return; - } - - index++; - - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - args.splice(lastC, 0, c); -} -/** - * Invokes `console.log()` when available. - * No-op when `console.log` is not a "function". - * - * @api public - */ - - -function log() { - var _console; - - // This hackery is required for IE8/9, where - // the `console.log` function doesn't have 'apply' - return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments); -} -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - - -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) {// Swallow - // XXX (@Qix-) should we be logging these? - } -} -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - - -function load() { - var r; - - try { - r = exports.storage.getItem('debug'); - } catch (error) {} // Swallow - // XXX (@Qix-) should we be logging these? - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - - - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) {// Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = __webpack_require__(/*! ./common */ "../node_modules/debug/src/common.js")(exports); -var formatters = module.exports.formatters; -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; - - - -/***/ }), - -/***/ "../node_modules/debug/src/common.js": -/*!*******************************************!*\ - !*** ../node_modules/debug/src/common.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __webpack_require__(/*! ms */ "../node_modules/debug/node_modules/ms/index.js"); - Object.keys(env).forEach(function (key) { - createDebug[key] = env[key]; - }); - /** - * Active `debug` instances. - */ - - createDebug.instances = []; - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - - createDebug.formatters = {}; - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - - function selectColor(namespace) { - var hash = 0; - - for (var i = 0; i < namespace.length; i++) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - - createDebug.selectColor = selectColor; - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - - function createDebug(namespace) { - var prevTime; - - function debug() { - // Disabled? - if (!debug.enabled) { - return; - } - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var self = debug; // Set `diff` timestamp - - var curr = Number(new Date()); - var ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } // Apply any `formatters` transformations - - - var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return match; - } - - index++; - var formatter = createDebug.formatters[format]; - - if (typeof formatter === 'function') { - var val = args[index]; - match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format` - - args.splice(index, 1); - index--; - } - - return match; - }); // Apply env-specific formatting (colors, etc.) - - createDebug.formatArgs.call(self, args); - var logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.enabled = createDebug.enabled(namespace); - debug.useColors = createDebug.useColors(); - debug.color = selectColor(namespace); - debug.destroy = destroy; - debug.extend = extend; // Debug.formatArgs = formatArgs; - // debug.rawLog = rawLog; - // env-specific initialization logic for debug instances - - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - createDebug.instances.push(debug); - return debug; - } - - function destroy() { - var index = createDebug.instances.indexOf(this); - - if (index !== -1) { - createDebug.instances.splice(index, 1); - return true; - } - - return false; - } - - function extend(namespace, delimiter) { - return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - } - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - - - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.names = []; - createDebug.skips = []; - var i; - var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - var len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - - for (i = 0; i < createDebug.instances.length; i++) { - var instance = createDebug.instances[i]; - instance.enabled = createDebug.enabled(instance.namespace); - } - } - /** - * Disable debug output. - * - * @api public - */ - - - function disable() { - createDebug.enable(''); - } - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - - - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - var i; - var len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - - - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - - return val; - } - - createDebug.enable(createDebug.load()); - return createDebug; -} - -module.exports = setup; - - - -/***/ }), - -/***/ "../node_modules/debug/src/index.js": -/*!******************************************!*\ - !*** ../node_modules/debug/src/index.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __webpack_require__(/*! ./browser.js */ "../node_modules/debug/src/browser.js"); -} else { - module.exports = __webpack_require__(/*! ./node.js */ "../node_modules/debug/src/node.js"); -} - - - -/***/ }), - -/***/ "../node_modules/debug/src/node.js": -/*!*****************************************!*\ - !*** ../node_modules/debug/src/node.js ***! - \*****************************************/ -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -/** - * Module dependencies. - */ -var tty = __webpack_require__(/*! tty */ "tty"); - -var util = __webpack_require__(/*! util */ "util"); -/** - * This is the Node.js implementation of `debug()`. - */ - - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - var supportsColor = __webpack_require__(/*! supports-color */ "../node_modules/supports-color/index.js"); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221]; - } -} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be. - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - - -exports.inspectOpts = Object.keys(process.env).filter(function (key) { - return /^debug_/i.test(key); -}).reduce(function (obj, key) { - // Camel-case - var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) { - return k.toUpperCase(); - }); // Coerce string value into JS value - - var val = process.env[key]; - - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd); -} -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - - -function formatArgs(args) { - var name = this.namespace, - useColors = this.useColors; - - if (useColors) { - var c = this.color; - var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c); - var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m"); - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m"); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - - return new Date().toISOString() + ' '; -} -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ - - -function log() { - return process.stderr.write(util.format.apply(util, arguments) + '\n'); -} -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - - -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - - -function load() { - return process.env.DEBUG; -} -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - - -function init(debug) { - debug.inspectOpts = {}; - var keys = Object.keys(exports.inspectOpts); - - for (var i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = __webpack_require__(/*! ./common */ "../node_modules/debug/src/common.js")(exports); -var formatters = module.exports.formatters; -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(function (str) { return str.trim(); }) - .join(' '); -}; -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; - - - -/***/ }), - -/***/ "../node_modules/delayed-stream/lib/delayed_stream.js": -/*!************************************************************!*\ - !*** ../node_modules/delayed-stream/lib/delayed_stream.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stream = (__webpack_require__(/*! stream */ "stream").Stream); -var util = __webpack_require__(/*! util */ "util"); - -module.exports = DelayedStream; -function DelayedStream() { - this.source = null; - this.dataSize = 0; - this.maxDataSize = 1024 * 1024; - this.pauseStream = true; - - this._maxDataSizeExceeded = false; - this._released = false; - this._bufferedEvents = []; -} -util.inherits(DelayedStream, Stream); - -DelayedStream.create = function(source, options) { - var delayedStream = new this(); - - options = options || {}; - for (var option in options) { - delayedStream[option] = options[option]; - } - - delayedStream.source = source; - - var realEmit = source.emit; - source.emit = function() { - delayedStream._handleEmit(arguments); - return realEmit.apply(source, arguments); - }; - - source.on('error', function() {}); - if (delayedStream.pauseStream) { - source.pause(); - } - - return delayedStream; -}; - -Object.defineProperty(DelayedStream.prototype, 'readable', { - configurable: true, - enumerable: true, - get: function() { - return this.source.readable; - } -}); - -DelayedStream.prototype.setEncoding = function() { - return this.source.setEncoding.apply(this.source, arguments); -}; - -DelayedStream.prototype.resume = function() { - if (!this._released) { - this.release(); - } - - this.source.resume(); -}; - -DelayedStream.prototype.pause = function() { - this.source.pause(); -}; - -DelayedStream.prototype.release = function() { - this._released = true; - - this._bufferedEvents.forEach(function(args) { - this.emit.apply(this, args); - }.bind(this)); - this._bufferedEvents = []; -}; - -DelayedStream.prototype.pipe = function() { - var r = Stream.prototype.pipe.apply(this, arguments); - this.resume(); - return r; -}; - -DelayedStream.prototype._handleEmit = function(args) { - if (this._released) { - this.emit.apply(this, args); - return; - } - - if (args[0] === 'data') { - this.dataSize += args[1].length; - this._checkIfMaxDataSizeExceeded(); - } - - this._bufferedEvents.push(args); -}; - -DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { - if (this._maxDataSizeExceeded) { - return; - } - - if (this.dataSize <= this.maxDataSize) { - return; - } - - this._maxDataSizeExceeded = true; - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' - this.emit('error', new Error(message)); -}; - - -/***/ }), - -/***/ "../node_modules/follow-redirects/debug.js": -/*!*************************************************!*\ - !*** ../node_modules/follow-redirects/debug.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var debug; - -module.exports = function () { - if (!debug) { - try { - /* eslint global-require: off */ - debug = __webpack_require__(/*! debug */ "../node_modules/debug/src/index.js")("follow-redirects"); - } - catch (error) { /* */ } - if (typeof debug !== "function") { - debug = function () { /* */ }; - } - } - debug.apply(null, arguments); -}; - - -/***/ }), - -/***/ "../node_modules/follow-redirects/index.js": -/*!*************************************************!*\ - !*** ../node_modules/follow-redirects/index.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var url = __webpack_require__(/*! url */ "url"); -var URL = url.URL; -var http = __webpack_require__(/*! http */ "http"); -var https = __webpack_require__(/*! https */ "https"); -var Writable = (__webpack_require__(/*! stream */ "stream").Writable); -var assert = __webpack_require__(/*! assert */ "assert"); -var debug = __webpack_require__(/*! ./debug */ "../node_modules/follow-redirects/debug.js"); - -// Whether to use the native URL object or the legacy url module -var useNativeURL = false; -try { - assert(new URL()); -} -catch (error) { - useNativeURL = error.code === "ERR_INVALID_URL"; -} - -// URL fields to preserve in copy operations -var preservedUrlFields = [ - "auth", - "host", - "hostname", - "href", - "path", - "pathname", - "port", - "protocol", - "query", - "search", - "hash", -]; - -// Create handlers that pass events from native requests -var events = ["abort", "aborted", "connect", "error", "socket", "timeout"]; -var eventHandlers = Object.create(null); -events.forEach(function (event) { - eventHandlers[event] = function (arg1, arg2, arg3) { - this._redirectable.emit(event, arg1, arg2, arg3); - }; -}); - -// Error types with codes -var InvalidUrlError = createErrorType( - "ERR_INVALID_URL", - "Invalid URL", - TypeError -); -var RedirectionError = createErrorType( - "ERR_FR_REDIRECTION_FAILURE", - "Redirected request failed" -); -var TooManyRedirectsError = createErrorType( - "ERR_FR_TOO_MANY_REDIRECTS", - "Maximum number of redirects exceeded", - RedirectionError -); -var MaxBodyLengthExceededError = createErrorType( - "ERR_FR_MAX_BODY_LENGTH_EXCEEDED", - "Request body larger than maxBodyLength limit" -); -var WriteAfterEndError = createErrorType( - "ERR_STREAM_WRITE_AFTER_END", - "write after end" -); - -// istanbul ignore next -var destroy = Writable.prototype.destroy || noop; - -// An HTTP(S) request that can be redirected -function RedirectableRequest(options, responseCallback) { - // Initialize the request - Writable.call(this); - this._sanitizeOptions(options); - this._options = options; - this._ended = false; - this._ending = false; - this._redirectCount = 0; - this._redirects = []; - this._requestBodyLength = 0; - this._requestBodyBuffers = []; - - // Attach a callback if passed - if (responseCallback) { - this.on("response", responseCallback); - } - - // React to responses of native requests - var self = this; - this._onNativeResponse = function (response) { - try { - self._processResponse(response); - } - catch (cause) { - self.emit("error", cause instanceof RedirectionError ? - cause : new RedirectionError({ cause: cause })); - } - }; - - // Perform the first request - this._performRequest(); -} -RedirectableRequest.prototype = Object.create(Writable.prototype); - -RedirectableRequest.prototype.abort = function () { - destroyRequest(this._currentRequest); - this._currentRequest.abort(); - this.emit("abort"); -}; - -RedirectableRequest.prototype.destroy = function (error) { - destroyRequest(this._currentRequest, error); - destroy.call(this, error); - return this; -}; - -// Writes buffered data to the current native request -RedirectableRequest.prototype.write = function (data, encoding, callback) { - // Writing is not allowed if end has been called - if (this._ending) { - throw new WriteAfterEndError(); - } - - // Validate input and shift parameters if necessary - if (!isString(data) && !isBuffer(data)) { - throw new TypeError("data should be a string, Buffer or Uint8Array"); - } - if (isFunction(encoding)) { - callback = encoding; - encoding = null; - } - - // Ignore empty buffers, since writing them doesn't invoke the callback - // https://github.com/nodejs/node/issues/22066 - if (data.length === 0) { - if (callback) { - callback(); - } - return; - } - // Only write when we don't exceed the maximum body length - if (this._requestBodyLength + data.length <= this._options.maxBodyLength) { - this._requestBodyLength += data.length; - this._requestBodyBuffers.push({ data: data, encoding: encoding }); - this._currentRequest.write(data, encoding, callback); - } - // Error when we exceed the maximum body length - else { - this.emit("error", new MaxBodyLengthExceededError()); - this.abort(); - } -}; - -// Ends the current native request -RedirectableRequest.prototype.end = function (data, encoding, callback) { - // Shift parameters if necessary - if (isFunction(data)) { - callback = data; - data = encoding = null; - } - else if (isFunction(encoding)) { - callback = encoding; - encoding = null; - } - - // Write data if needed and end - if (!data) { - this._ended = this._ending = true; - this._currentRequest.end(null, null, callback); - } - else { - var self = this; - var currentRequest = this._currentRequest; - this.write(data, encoding, function () { - self._ended = true; - currentRequest.end(null, null, callback); - }); - this._ending = true; - } -}; - -// Sets a header value on the current native request -RedirectableRequest.prototype.setHeader = function (name, value) { - this._options.headers[name] = value; - this._currentRequest.setHeader(name, value); -}; - -// Clears a header value on the current native request -RedirectableRequest.prototype.removeHeader = function (name) { - delete this._options.headers[name]; - this._currentRequest.removeHeader(name); -}; - -// Global timeout for all underlying requests -RedirectableRequest.prototype.setTimeout = function (msecs, callback) { - var self = this; - - // Destroys the socket on timeout - function destroyOnTimeout(socket) { - socket.setTimeout(msecs); - socket.removeListener("timeout", socket.destroy); - socket.addListener("timeout", socket.destroy); - } - - // Sets up a timer to trigger a timeout event - function startTimer(socket) { - if (self._timeout) { - clearTimeout(self._timeout); - } - self._timeout = setTimeout(function () { - self.emit("timeout"); - clearTimer(); - }, msecs); - destroyOnTimeout(socket); - } - - // Stops a timeout from triggering - function clearTimer() { - // Clear the timeout - if (self._timeout) { - clearTimeout(self._timeout); - self._timeout = null; - } - - // Clean up all attached listeners - self.removeListener("abort", clearTimer); - self.removeListener("error", clearTimer); - self.removeListener("response", clearTimer); - self.removeListener("close", clearTimer); - if (callback) { - self.removeListener("timeout", callback); - } - if (!self.socket) { - self._currentRequest.removeListener("socket", startTimer); - } - } - - // Attach callback if passed - if (callback) { - this.on("timeout", callback); - } - - // Start the timer if or when the socket is opened - if (this.socket) { - startTimer(this.socket); - } - else { - this._currentRequest.once("socket", startTimer); - } - - // Clean up on events - this.on("socket", destroyOnTimeout); - this.on("abort", clearTimer); - this.on("error", clearTimer); - this.on("response", clearTimer); - this.on("close", clearTimer); - - return this; -}; - -// Proxy all other public ClientRequest methods -[ - "flushHeaders", "getHeader", - "setNoDelay", "setSocketKeepAlive", -].forEach(function (method) { - RedirectableRequest.prototype[method] = function (a, b) { - return this._currentRequest[method](a, b); - }; -}); - -// Proxy all public ClientRequest properties -["aborted", "connection", "socket"].forEach(function (property) { - Object.defineProperty(RedirectableRequest.prototype, property, { - get: function () { return this._currentRequest[property]; }, - }); -}); - -RedirectableRequest.prototype._sanitizeOptions = function (options) { - // Ensure headers are always present - if (!options.headers) { - options.headers = {}; - } - - // Since http.request treats host as an alias of hostname, - // but the url module interprets host as hostname plus port, - // eliminate the host property to avoid confusion. - if (options.host) { - // Use hostname if set, because it has precedence - if (!options.hostname) { - options.hostname = options.host; - } - delete options.host; - } - - // Complete the URL object when necessary - if (!options.pathname && options.path) { - var searchPos = options.path.indexOf("?"); - if (searchPos < 0) { - options.pathname = options.path; - } - else { - options.pathname = options.path.substring(0, searchPos); - options.search = options.path.substring(searchPos); - } - } -}; - - -// Executes the next native request (initial or redirect) -RedirectableRequest.prototype._performRequest = function () { - // Load the native protocol - var protocol = this._options.protocol; - var nativeProtocol = this._options.nativeProtocols[protocol]; - if (!nativeProtocol) { - throw new TypeError("Unsupported protocol " + protocol); - } - - // If specified, use the agent corresponding to the protocol - // (HTTP and HTTPS use different types of agents) - if (this._options.agents) { - var scheme = protocol.slice(0, -1); - this._options.agent = this._options.agents[scheme]; - } - - // Create the native request and set up its event handlers - var request = this._currentRequest = - nativeProtocol.request(this._options, this._onNativeResponse); - request._redirectable = this; - for (var event of events) { - request.on(event, eventHandlers[event]); - } - - // RFC7230§5.3.1: When making a request directly to an origin server, […] - // a client MUST send only the absolute path […] as the request-target. - this._currentUrl = /^\//.test(this._options.path) ? - url.format(this._options) : - // When making a request to a proxy, […] - // a client MUST send the target URI in absolute-form […]. - this._options.path; - - // End a redirected request - // (The first request must be ended explicitly with RedirectableRequest#end) - if (this._isRedirect) { - // Write the request entity and end - var i = 0; - var self = this; - var buffers = this._requestBodyBuffers; - (function writeNext(error) { - // Only write if this request has not been redirected yet - /* istanbul ignore else */ - if (request === self._currentRequest) { - // Report any write errors - /* istanbul ignore if */ - if (error) { - self.emit("error", error); - } - // Write the next buffer if there are still left - else if (i < buffers.length) { - var buffer = buffers[i++]; - /* istanbul ignore else */ - if (!request.finished) { - request.write(buffer.data, buffer.encoding, writeNext); - } - } - // End the request if `end` has been called on us - else if (self._ended) { - request.end(); - } - } - }()); - } -}; - -// Processes a response from the current native request -RedirectableRequest.prototype._processResponse = function (response) { - // Store the redirected response - var statusCode = response.statusCode; - if (this._options.trackRedirects) { - this._redirects.push({ - url: this._currentUrl, - headers: response.headers, - statusCode: statusCode, - }); - } - - // RFC7231§6.4: The 3xx (Redirection) class of status code indicates - // that further action needs to be taken by the user agent in order to - // fulfill the request. If a Location header field is provided, - // the user agent MAY automatically redirect its request to the URI - // referenced by the Location field value, - // even if the specific status code is not understood. - - // If the response is not a redirect; return it as-is - var location = response.headers.location; - if (!location || this._options.followRedirects === false || - statusCode < 300 || statusCode >= 400) { - response.responseUrl = this._currentUrl; - response.redirects = this._redirects; - this.emit("response", response); - - // Clean up - this._requestBodyBuffers = []; - return; - } - - // The response is a redirect, so abort the current request - destroyRequest(this._currentRequest); - // Discard the remainder of the response to avoid waiting for data - response.destroy(); - - // RFC7231§6.4: A client SHOULD detect and intervene - // in cyclical redirections (i.e., "infinite" redirection loops). - if (++this._redirectCount > this._options.maxRedirects) { - throw new TooManyRedirectsError(); - } - - // Store the request headers if applicable - var requestHeaders; - var beforeRedirect = this._options.beforeRedirect; - if (beforeRedirect) { - requestHeaders = Object.assign({ - // The Host header was set by nativeProtocol.request - Host: response.req.getHeader("host"), - }, this._options.headers); - } - - // RFC7231§6.4: Automatic redirection needs to done with - // care for methods not known to be safe, […] - // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change - // the request method from POST to GET for the subsequent request. - var method = this._options.method; - if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || - // RFC7231§6.4.4: The 303 (See Other) status code indicates that - // the server is redirecting the user agent to a different resource […] - // A user agent can perform a retrieval request targeting that URI - // (a GET or HEAD request if using HTTP) […] - (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) { - this._options.method = "GET"; - // Drop a possible entity and headers related to it - this._requestBodyBuffers = []; - removeMatchingHeaders(/^content-/i, this._options.headers); - } - - // Drop the Host header, as the redirect might lead to a different host - var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers); - - // If the redirect is relative, carry over the host of the last request - var currentUrlParts = parseUrl(this._currentUrl); - var currentHost = currentHostHeader || currentUrlParts.host; - var currentUrl = /^\w+:/.test(location) ? this._currentUrl : - url.format(Object.assign(currentUrlParts, { host: currentHost })); - - // Create the redirected request - var redirectUrl = resolveUrl(location, currentUrl); - debug("redirecting to", redirectUrl.href); - this._isRedirect = true; - spreadUrlObject(redirectUrl, this._options); - - // Drop confidential headers when redirecting to a less secure protocol - // or to a different domain that is not a superdomain - if (redirectUrl.protocol !== currentUrlParts.protocol && - redirectUrl.protocol !== "https:" || - redirectUrl.host !== currentHost && - !isSubdomain(redirectUrl.host, currentHost)) { - removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers); - } - - // Evaluate the beforeRedirect callback - if (isFunction(beforeRedirect)) { - var responseDetails = { - headers: response.headers, - statusCode: statusCode, - }; - var requestDetails = { - url: currentUrl, - method: method, - headers: requestHeaders, - }; - beforeRedirect(this._options, responseDetails, requestDetails); - this._sanitizeOptions(this._options); - } - - // Perform the redirected request - this._performRequest(); -}; - -// Wraps the key/value object of protocols with redirect functionality -function wrap(protocols) { - // Default settings - var exports = { - maxRedirects: 21, - maxBodyLength: 10 * 1024 * 1024, - }; - - // Wrap each protocol - var nativeProtocols = {}; - Object.keys(protocols).forEach(function (scheme) { - var protocol = scheme + ":"; - var nativeProtocol = nativeProtocols[protocol] = protocols[scheme]; - var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol); - - // Executes a request, following redirects - function request(input, options, callback) { - // Parse parameters, ensuring that input is an object - if (isURL(input)) { - input = spreadUrlObject(input); - } - else if (isString(input)) { - input = spreadUrlObject(parseUrl(input)); - } - else { - callback = options; - options = validateUrl(input); - input = { protocol: protocol }; - } - if (isFunction(options)) { - callback = options; - options = null; - } - - // Set defaults - options = Object.assign({ - maxRedirects: exports.maxRedirects, - maxBodyLength: exports.maxBodyLength, - }, input, options); - options.nativeProtocols = nativeProtocols; - if (!isString(options.host) && !isString(options.hostname)) { - options.hostname = "::1"; - } - - assert.equal(options.protocol, protocol, "protocol mismatch"); - debug("options", options); - return new RedirectableRequest(options, callback); - } - - // Executes a GET request, following redirects - function get(input, options, callback) { - var wrappedRequest = wrappedProtocol.request(input, options, callback); - wrappedRequest.end(); - return wrappedRequest; - } - - // Expose the properties on the wrapped protocol - Object.defineProperties(wrappedProtocol, { - request: { value: request, configurable: true, enumerable: true, writable: true }, - get: { value: get, configurable: true, enumerable: true, writable: true }, - }); - }); - return exports; -} - -function noop() { /* empty */ } - -function parseUrl(input) { - var parsed; - /* istanbul ignore else */ - if (useNativeURL) { - parsed = new URL(input); - } - else { - // Ensure the URL is valid and absolute - parsed = validateUrl(url.parse(input)); - if (!isString(parsed.protocol)) { - throw new InvalidUrlError({ input }); - } - } - return parsed; -} - -function resolveUrl(relative, base) { - /* istanbul ignore next */ - return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative)); -} - -function validateUrl(input) { - if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) { - throw new InvalidUrlError({ input: input.href || input }); - } - if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) { - throw new InvalidUrlError({ input: input.href || input }); - } - return input; -} - -function spreadUrlObject(urlObject, target) { - var spread = target || {}; - for (var key of preservedUrlFields) { - spread[key] = urlObject[key]; - } - - // Fix IPv6 hostname - if (spread.hostname.startsWith("[")) { - spread.hostname = spread.hostname.slice(1, -1); - } - // Ensure port is a number - if (spread.port !== "") { - spread.port = Number(spread.port); - } - // Concatenate path - spread.path = spread.search ? spread.pathname + spread.search : spread.pathname; - - return spread; -} - -function removeMatchingHeaders(regex, headers) { - var lastValue; - for (var header in headers) { - if (regex.test(header)) { - lastValue = headers[header]; - delete headers[header]; - } - } - return (lastValue === null || typeof lastValue === "undefined") ? - undefined : String(lastValue).trim(); -} - -function createErrorType(code, message, baseClass) { - // Create constructor - function CustomError(properties) { - Error.captureStackTrace(this, this.constructor); - Object.assign(this, properties || {}); - this.code = code; - this.message = this.cause ? message + ": " + this.cause.message : message; - } - - // Attach constructor and set default properties - CustomError.prototype = new (baseClass || Error)(); - Object.defineProperties(CustomError.prototype, { - constructor: { - value: CustomError, - enumerable: false, - }, - name: { - value: "Error [" + code + "]", - enumerable: false, - }, - }); - return CustomError; -} - -function destroyRequest(request, error) { - for (var event of events) { - request.removeListener(event, eventHandlers[event]); - } - request.on("error", noop); - request.destroy(error); -} - -function isSubdomain(subdomain, domain) { - assert(isString(subdomain) && isString(domain)); - var dot = subdomain.length - domain.length - 1; - return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain); -} - -function isString(value) { - return typeof value === "string" || value instanceof String; -} - -function isFunction(value) { - return typeof value === "function"; -} - -function isBuffer(value) { - return typeof value === "object" && ("length" in value); -} - -function isURL(value) { - return URL && value instanceof URL; -} - -// Exports -module.exports = wrap({ http: http, https: https }); -module.exports.wrap = wrap; - - -/***/ }), - -/***/ "../node_modules/form-data/lib/form_data.js": -/*!**************************************************!*\ - !*** ../node_modules/form-data/lib/form_data.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var CombinedStream = __webpack_require__(/*! combined-stream */ "../node_modules/combined-stream/lib/combined_stream.js"); -var util = __webpack_require__(/*! util */ "util"); -var path = __webpack_require__(/*! path */ "path"); -var http = __webpack_require__(/*! http */ "http"); -var https = __webpack_require__(/*! https */ "https"); -var parseUrl = (__webpack_require__(/*! url */ "url").parse); -var fs = __webpack_require__(/*! fs */ "fs"); -var Stream = (__webpack_require__(/*! stream */ "stream").Stream); -var mime = __webpack_require__(/*! mime-types */ "../node_modules/mime-types/index.js"); -var asynckit = __webpack_require__(/*! asynckit */ "../node_modules/asynckit/index.js"); -var populate = __webpack_require__(/*! ./populate.js */ "../node_modules/form-data/lib/populate.js"); - -// Public API -module.exports = FormData; - -// make it a Stream -util.inherits(FormData, CombinedStream); - -/** - * Create readable "multipart/form-data" streams. - * Can be used to submit forms - * and file uploads to other web applications. - * - * @constructor - * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream - */ -function FormData(options) { - if (!(this instanceof FormData)) { - return new FormData(options); - } - - this._overheadLength = 0; - this._valueLength = 0; - this._valuesToMeasure = []; - - CombinedStream.call(this); - - options = options || {}; - for (var option in options) { - this[option] = options[option]; - } -} - -FormData.LINE_BREAK = '\r\n'; -FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; - -FormData.prototype.append = function(field, value, options) { - - options = options || {}; - - // allow filename as single option - if (typeof options == 'string') { - options = {filename: options}; - } - - var append = CombinedStream.prototype.append.bind(this); - - // all that streamy business can't handle numbers - if (typeof value == 'number') { - value = '' + value; - } - - // https://github.com/felixge/node-form-data/issues/38 - if (util.isArray(value)) { - // Please convert your array into string - // the way web server expects it - this._error(new Error('Arrays are not supported.')); - return; - } - - var header = this._multiPartHeader(field, value, options); - var footer = this._multiPartFooter(); - - append(header); - append(value); - append(footer); - - // pass along options.knownLength - this._trackLength(header, value, options); -}; - -FormData.prototype._trackLength = function(header, value, options) { - var valueLength = 0; - - // used w/ getLengthSync(), when length is known. - // e.g. for streaming directly from a remote server, - // w/ a known file a size, and not wanting to wait for - // incoming file to finish to get its size. - if (options.knownLength != null) { - valueLength += +options.knownLength; - } else if (Buffer.isBuffer(value)) { - valueLength = value.length; - } else if (typeof value === 'string') { - valueLength = Buffer.byteLength(value); - } - - this._valueLength += valueLength; - - // @check why add CRLF? does this account for custom/multiple CRLFs? - this._overheadLength += - Buffer.byteLength(header) + - FormData.LINE_BREAK.length; - - // empty or either doesn't have path or not an http response or not a stream - if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) { - return; - } - - // no need to bother with the length - if (!options.knownLength) { - this._valuesToMeasure.push(value); - } -}; - -FormData.prototype._lengthRetriever = function(value, callback) { - - if (value.hasOwnProperty('fd')) { - - // take read range into a account - // `end` = Infinity –> read file till the end - // - // TODO: Looks like there is bug in Node fs.createReadStream - // it doesn't respect `end` options without `start` options - // Fix it when node fixes it. - // https://github.com/joyent/node/issues/7819 - if (value.end != undefined && value.end != Infinity && value.start != undefined) { - - // when end specified - // no need to calculate range - // inclusive, starts with 0 - callback(null, value.end + 1 - (value.start ? value.start : 0)); - - // not that fast snoopy - } else { - // still need to fetch file size from fs - fs.stat(value.path, function(err, stat) { - - var fileSize; - - if (err) { - callback(err); - return; - } - - // update final size based on the range options - fileSize = stat.size - (value.start ? value.start : 0); - callback(null, fileSize); - }); - } - - // or http response - } else if (value.hasOwnProperty('httpVersion')) { - callback(null, +value.headers['content-length']); - - // or request stream http://github.com/mikeal/request - } else if (value.hasOwnProperty('httpModule')) { - // wait till response come back - value.on('response', function(response) { - value.pause(); - callback(null, +response.headers['content-length']); - }); - value.resume(); - - // something else - } else { - callback('Unknown stream'); - } -}; - -FormData.prototype._multiPartHeader = function(field, value, options) { - // custom header specified (as string)? - // it becomes responsible for boundary - // (e.g. to handle extra CRLFs on .NET servers) - if (typeof options.header == 'string') { - return options.header; - } - - var contentDisposition = this._getContentDisposition(value, options); - var contentType = this._getContentType(value, options); - - var contents = ''; - var headers = { - // add custom disposition as third element or keep it two elements if not - 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), - // if no content type. allow it to be empty array - 'Content-Type': [].concat(contentType || []) - }; - - // allow custom headers. - if (typeof options.header == 'object') { - populate(headers, options.header); - } - - var header; - for (var prop in headers) { - if (!headers.hasOwnProperty(prop)) continue; - header = headers[prop]; - - // skip nullish headers. - if (header == null) { - continue; - } - - // convert all headers to arrays. - if (!Array.isArray(header)) { - header = [header]; - } - - // add non-empty headers. - if (header.length) { - contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; - } - } - - return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; -}; - -FormData.prototype._getContentDisposition = function(value, options) { - - var filename - , contentDisposition - ; - - if (typeof options.filepath === 'string') { - // custom filepath for relative paths - filename = path.normalize(options.filepath).replace(/\\/g, '/'); - } else if (options.filename || value.name || value.path) { - // custom filename take precedence - // formidable and the browser add a name property - // fs- and request- streams have path property - filename = path.basename(options.filename || value.name || value.path); - } else if (value.readable && value.hasOwnProperty('httpVersion')) { - // or try http response - filename = path.basename(value.client._httpMessage.path || ''); - } - - if (filename) { - contentDisposition = 'filename="' + filename + '"'; - } - - return contentDisposition; -}; - -FormData.prototype._getContentType = function(value, options) { - - // use custom content-type above all - var contentType = options.contentType; - - // or try `name` from formidable, browser - if (!contentType && value.name) { - contentType = mime.lookup(value.name); - } - - // or try `path` from fs-, request- streams - if (!contentType && value.path) { - contentType = mime.lookup(value.path); - } - - // or if it's http-reponse - if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) { - contentType = value.headers['content-type']; - } - - // or guess it from the filepath or filename - if (!contentType && (options.filepath || options.filename)) { - contentType = mime.lookup(options.filepath || options.filename); - } - - // fallback to the default content type if `value` is not simple value - if (!contentType && typeof value == 'object') { - contentType = FormData.DEFAULT_CONTENT_TYPE; - } - - return contentType; -}; - -FormData.prototype._multiPartFooter = function() { - return function(next) { - var footer = FormData.LINE_BREAK; - - var lastPart = (this._streams.length === 0); - if (lastPart) { - footer += this._lastBoundary(); - } - - next(footer); - }.bind(this); -}; - -FormData.prototype._lastBoundary = function() { - return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; -}; - -FormData.prototype.getHeaders = function(userHeaders) { - var header; - var formHeaders = { - 'content-type': 'multipart/form-data; boundary=' + this.getBoundary() - }; - - for (header in userHeaders) { - if (userHeaders.hasOwnProperty(header)) { - formHeaders[header.toLowerCase()] = userHeaders[header]; - } - } - - return formHeaders; -}; - -FormData.prototype.setBoundary = function(boundary) { - this._boundary = boundary; -}; - -FormData.prototype.getBoundary = function() { - if (!this._boundary) { - this._generateBoundary(); - } - - return this._boundary; -}; - -FormData.prototype.getBuffer = function() { - var dataBuffer = new Buffer.alloc( 0 ); - var boundary = this.getBoundary(); - - // Create the form content. Add Line breaks to the end of data. - for (var i = 0, len = this._streams.length; i < len; i++) { - if (typeof this._streams[i] !== 'function') { - - // Add content to the buffer. - if(Buffer.isBuffer(this._streams[i])) { - dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]); - }else { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]); - } - - // Add break after content. - if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] ); - } - } - } - - // Add the footer and return the Buffer object. - return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] ); -}; - -FormData.prototype._generateBoundary = function() { - // This generates a 50 character boundary similar to those used by Firefox. - // They are optimized for boyer-moore parsing. - var boundary = '--------------------------'; - for (var i = 0; i < 24; i++) { - boundary += Math.floor(Math.random() * 10).toString(16); - } - - this._boundary = boundary; -}; - -// Note: getLengthSync DOESN'T calculate streams length -// As workaround one can calculate file size manually -// and add it as knownLength option -FormData.prototype.getLengthSync = function() { - var knownLength = this._overheadLength + this._valueLength; - - // Don't get confused, there are 3 "internal" streams for each keyval pair - // so it basically checks if there is any value added to the form - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } - - // https://github.com/form-data/form-data/issues/40 - if (!this.hasKnownLength()) { - // Some async length retrievers are present - // therefore synchronous length calculation is false. - // Please use getLength(callback) to get proper length - this._error(new Error('Cannot calculate proper length in synchronous way.')); - } - - return knownLength; -}; - -// Public API to check if length of added values is known -// https://github.com/form-data/form-data/issues/196 -// https://github.com/form-data/form-data/issues/262 -FormData.prototype.hasKnownLength = function() { - var hasKnownLength = true; - - if (this._valuesToMeasure.length) { - hasKnownLength = false; - } - - return hasKnownLength; -}; - -FormData.prototype.getLength = function(cb) { - var knownLength = this._overheadLength + this._valueLength; - - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } - - if (!this._valuesToMeasure.length) { - process.nextTick(cb.bind(this, null, knownLength)); - return; - } - - asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) { - if (err) { - cb(err); - return; - } - - values.forEach(function(length) { - knownLength += length; - }); - - cb(null, knownLength); - }); -}; - -FormData.prototype.submit = function(params, cb) { - var request - , options - , defaults = {method: 'post'} - ; - - // parse provided url if it's string - // or treat it as options object - if (typeof params == 'string') { - - params = parseUrl(params); - options = populate({ - port: params.port, - path: params.pathname, - host: params.hostname, - protocol: params.protocol - }, defaults); - - // use custom params - } else { - - options = populate(params, defaults); - // if no port provided use default one - if (!options.port) { - options.port = options.protocol == 'https:' ? 443 : 80; - } - } - - // put that good code in getHeaders to some use - options.headers = this.getHeaders(params.headers); - - // https if specified, fallback to http in any other case - if (options.protocol == 'https:') { - request = https.request(options); - } else { - request = http.request(options); - } - - // get content length and fire away - this.getLength(function(err, length) { - if (err && err !== 'Unknown stream') { - this._error(err); - return; - } - - // add content length - if (length) { - request.setHeader('Content-Length', length); - } - - this.pipe(request); - if (cb) { - var onResponse; - - var callback = function (error, responce) { - request.removeListener('error', callback); - request.removeListener('response', onResponse); - - return cb.call(this, error, responce); - }; - - onResponse = callback.bind(this, null); - - request.on('error', callback); - request.on('response', onResponse); - } - }.bind(this)); - - return request; -}; - -FormData.prototype._error = function(err) { - if (!this.error) { - this.error = err; - this.pause(); - this.emit('error', err); - } -}; - -FormData.prototype.toString = function () { - return '[object FormData]'; -}; - - -/***/ }), - -/***/ "../node_modules/form-data/lib/populate.js": -/*!*************************************************!*\ - !*** ../node_modules/form-data/lib/populate.js ***! - \*************************************************/ -/***/ ((module) => { - -// populates missing values -module.exports = function(dst, src) { - - Object.keys(src).forEach(function(prop) - { - dst[prop] = dst[prop] || src[prop]; - }); - - return dst; -}; - - -/***/ }), - -/***/ "../node_modules/function-bind/implementation.js": -/*!*******************************************************!*\ - !*** ../node_modules/function-bind/implementation.js ***! - \*******************************************************/ -/***/ ((module) => { - -"use strict"; - - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; - -var concatty = function concatty(a, b) { - var arr = []; - - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - - return arr; -}; - -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; -}; - -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; -}; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - concatty(args, arguments) - ); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply( - that, - concatty(args, arguments) - ); - - }; - - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; - } - - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; - - -/***/ }), - -/***/ "../node_modules/function-bind/index.js": -/*!**********************************************!*\ - !*** ../node_modules/function-bind/index.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__(/*! ./implementation */ "../node_modules/function-bind/implementation.js"); - -module.exports = Function.prototype.bind || implementation; - - -/***/ }), - -/***/ "../node_modules/get-intrinsic/index.js": -/*!**********************************************!*\ - !*** ../node_modules/get-intrinsic/index.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var undefined; - -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; - -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} - -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; - -var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")(); -var hasProto = __webpack_require__(/*! has-proto */ "../node_modules/has-proto/index.js")(); - -var getProto = Object.getPrototypeOf || ( - hasProto - ? function (x) { return x.__proto__; } // eslint-disable-line no-proto - : null -); - -var needsEval = {}; - -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; - -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} - -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - - INTRINSICS[name] = value; - - return value; -}; - -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); -var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js"); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - - -/***/ }), - -/***/ "../node_modules/has-flag/index.js": -/*!*****************************************!*\ - !*** ../node_modules/has-flag/index.js ***! - \*****************************************/ -/***/ ((module) => { - -"use strict"; - -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; - - -/***/ }), - -/***/ "../node_modules/has-proto/index.js": -/*!******************************************!*\ - !*** ../node_modules/has-proto/index.js ***! - \******************************************/ -/***/ ((module) => { - -"use strict"; - - -var test = { - foo: {} -}; - -var $Object = Object; - -module.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); -}; - - -/***/ }), - -/***/ "../node_modules/has-symbols/index.js": -/*!********************************************!*\ - !*** ../node_modules/has-symbols/index.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js"); - -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } - - return hasSymbolSham(); -}; - - -/***/ }), - -/***/ "../node_modules/has-symbols/shams.js": -/*!********************************************!*\ - !*** ../node_modules/has-symbols/shams.js ***! - \********************************************/ -/***/ ((module) => { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), - -/***/ "../node_modules/has/src/index.js": -/*!****************************************!*\ - !*** ../node_modules/has/src/index.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js"); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "../node_modules/lodash.isplainobject/index.js": -/*!*****************************************************!*\ - !*** ../node_modules/lodash.isplainobject/index.js ***! - \*****************************************************/ -/***/ ((module) => { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** `Object#toString` result references. */ -var objectTag = '[object Object]'; - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -module.exports = isPlainObject; - - -/***/ }), - -/***/ "../node_modules/lodash.isstring/index.js": -/*!************************************************!*\ - !*** ../node_modules/lodash.isstring/index.js ***! - \************************************************/ -/***/ ((module) => { - -/** - * lodash 4.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var stringTag = '[object String]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} - -module.exports = isString; - - -/***/ }), - -/***/ "../node_modules/mime-db/index.js": -/*!****************************************!*\ - !*** ../node_modules/mime-db/index.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module exports. - */ - -module.exports = __webpack_require__(/*! ./db.json */ "../node_modules/mime-db/db.json") - - -/***/ }), - -/***/ "../node_modules/mime-types/index.js": -/*!*******************************************!*\ - !*** ../node_modules/mime-types/index.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module dependencies. - * @private - */ - -var db = __webpack_require__(/*! mime-db */ "../node_modules/mime-db/index.js") -var extname = (__webpack_require__(/*! path */ "path").extname) - -/** - * Module variables. - * @private - */ - -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i - -/** - * Module exports. - * @public - */ - -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - -/** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } - - return false -} - -/** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} - */ - -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - -/** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] - - if (!exts || !exts.length) { - return false - } - - return exts[0] -} - -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} - */ - -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } - - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) - - if (!extension) { - return false - } - - return exports.types[extension] || false -} - -/** - * Populate the extensions and types maps. - * @private - */ - -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] - - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - - if (!exts || !exts.length) { - return - } - - // mime -> extensions - extensions[type] = exts - - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] - - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) - - if (types[extension] !== 'application/octet-stream' && - (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { - // skip the remapping - continue - } - } - - // set the extension -> mime - types[extension] = type - } - }) -} - - -/***/ }), - -/***/ "../node_modules/object-inspect/index.js": -/*!***********************************************!*\ - !*** ../node_modules/object-inspect/index.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') - ? Symbol.toStringTag - : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( - [].__proto__ === Array.prototype // eslint-disable-line no-proto - ? function (O) { - return O.__proto__; // eslint-disable-line no-proto - } - : null -); - -function addNumericSeparator(num, str) { - if ( - num === Infinity - || num === -Infinity - || num !== num - || (num && num > -1000 && num < 1000) - || $test.call(/e/, str) - ) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} - -var utilInspect = __webpack_require__(/*! ./util.inspect */ "../node_modules/object-inspect/util.inspect.js"); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; - -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } - - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } - - var indent = getIndent(opts, depth); - - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - - if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { return tag + '{}'; } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; - } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; - } - return String(obj); -}; - -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} - -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} - -function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } - -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} - -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} - -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} - -function toStr(obj) { - return objectToString.call(obj); -} - -function nameOf(f) { - if (f.name) { return f.name; } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} - -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} - -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} - -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} - -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} - -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} - -function markBoxed(str) { - return 'Object(' + str + ')'; -} - -function weakCollectionOf(type) { - return type + ' { ? }'; -} - -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} - -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; -} - -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} - -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} - -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; - } - } - - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } - } - return xs; -} - - -/***/ }), - -/***/ "../node_modules/object-inspect/util.inspect.js": -/*!******************************************************!*\ - !*** ../node_modules/object-inspect/util.inspect.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(/*! util */ "util").inspect; - - -/***/ }), - -/***/ "../node_modules/p-throttle/index.js": -/*!*******************************************!*\ - !*** ../node_modules/p-throttle/index.js ***! - \*******************************************/ -/***/ ((module) => { - -"use strict"; - - -class AbortError extends Error { - constructor() { - super('Throttled function aborted'); - this.name = 'AbortError'; - } -} - -const pThrottle = ({limit, interval, strict}) => { - if (!Number.isFinite(limit)) { - throw new TypeError('Expected `limit` to be a finite number'); - } - - if (!Number.isFinite(interval)) { - throw new TypeError('Expected `interval` to be a finite number'); - } - - const queue = new Map(); - - let currentTick = 0; - let activeCount = 0; - - function windowedDelay() { - const now = Date.now(); - - if ((now - currentTick) > interval) { - activeCount = 1; - currentTick = now; - return 0; - } - - if (activeCount < limit) { - activeCount++; - } else { - currentTick += interval; - activeCount = 1; - } - - return currentTick - now; - } - - const strictTicks = []; - - function strictDelay() { - const now = Date.now(); - - if (strictTicks.length < limit) { - strictTicks.push(now); - return 0; - } - - const earliestTime = strictTicks.shift() + interval; - - if (now >= earliestTime) { - strictTicks.push(now); - return 0; - } - - strictTicks.push(earliestTime); - return earliestTime - now; - } - - const getDelay = strict ? strictDelay : windowedDelay; - - return function_ => { - const throttled = function (...args) { - if (!throttled.isEnabled) { - return (async () => function_.apply(this, args))(); - } - - let timeout; - return new Promise((resolve, reject) => { - const execute = () => { - resolve(function_.apply(this, args)); - queue.delete(timeout); - }; - - timeout = setTimeout(execute, getDelay()); - - queue.set(timeout, reject); - }); - }; - - throttled.abort = () => { - for (const timeout of queue.keys()) { - clearTimeout(timeout); - queue.get(timeout)(new AbortError()); - } - - queue.clear(); - strictTicks.splice(0, strictTicks.length); - }; - - throttled.isEnabled = true; - - return throttled; - }; -}; - -module.exports = pThrottle; -module.exports.AbortError = AbortError; - - -/***/ }), - -/***/ "../node_modules/proxy-from-env/index.js": -/*!***********************************************!*\ - !*** ../node_modules/proxy-from-env/index.js ***! - \***********************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var parseUrl = (__webpack_require__(/*! url */ "url").parse); - -var DEFAULT_PORTS = { - ftp: 21, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443, -}; - -var stringEndsWith = String.prototype.endsWith || function(s) { - return s.length <= this.length && - this.indexOf(s, this.length - s.length) !== -1; -}; - -/** - * @param {string|object} url - The URL, or the result from url.parse. - * @return {string} The URL of the proxy that should handle the request to the - * given URL. If no proxy is set, this will be an empty string. - */ -function getProxyForUrl(url) { - var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {}; - var proto = parsedUrl.protocol; - var hostname = parsedUrl.host; - var port = parsedUrl.port; - if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') { - return ''; // Don't proxy URLs without a valid scheme or host. - } - - proto = proto.split(':', 1)[0]; - // Stripping ports in this way instead of using parsedUrl.hostname to make - // sure that the brackets around IPv6 addresses are kept. - hostname = hostname.replace(/:\d*$/, ''); - port = parseInt(port) || DEFAULT_PORTS[proto] || 0; - if (!shouldProxy(hostname, port)) { - return ''; // Don't proxy URLs that match NO_PROXY. - } - - var proxy = - getEnv('npm_config_' + proto + '_proxy') || - getEnv(proto + '_proxy') || - getEnv('npm_config_proxy') || - getEnv('all_proxy'); - if (proxy && proxy.indexOf('://') === -1) { - // Missing scheme in proxy, default to the requested URL's scheme. - proxy = proto + '://' + proxy; - } - return proxy; -} - -/** - * Determines whether a given URL should be proxied. - * - * @param {string} hostname - The host name of the URL. - * @param {number} port - The effective port of the URL. - * @returns {boolean} Whether the given URL should be proxied. - * @private - */ -function shouldProxy(hostname, port) { - var NO_PROXY = - (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase(); - if (!NO_PROXY) { - return true; // Always proxy if NO_PROXY is not set. - } - if (NO_PROXY === '*') { - return false; // Never proxy if wildcard is set. - } - - return NO_PROXY.split(/[,\s]/).every(function(proxy) { - if (!proxy) { - return true; // Skip zero-length hosts. - } - var parsedProxy = proxy.match(/^(.+):(\d+)$/); - var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; - var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; - if (parsedProxyPort && parsedProxyPort !== port) { - return true; // Skip if ports don't match. - } - - if (!/^[.*]/.test(parsedProxyHostname)) { - // No wildcards, so stop proxying if there is an exact match. - return hostname !== parsedProxyHostname; - } - - if (parsedProxyHostname.charAt(0) === '*') { - // Remove leading wildcard. - parsedProxyHostname = parsedProxyHostname.slice(1); - } - // Stop proxying if the hostname ends with the no_proxy host. - return !stringEndsWith.call(hostname, parsedProxyHostname); - }); -} - -/** - * Get the value for an environment variable. - * - * @param {string} key - The name of the environment variable. - * @return {string} The value of the environment variable. - * @private - */ -function getEnv(key) { - return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ''; -} - -exports.getProxyForUrl = getProxyForUrl; - - -/***/ }), - -/***/ "../node_modules/side-channel/index.js": -/*!*********************************************!*\ - !*** ../node_modules/side-channel/index.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js"); -var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js"); -var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js"); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $WeakMap = GetIntrinsic('%WeakMap%', true); -var $Map = GetIntrinsic('%Map%', true); - -var $weakMapGet = callBound('WeakMap.prototype.get', true); -var $weakMapSet = callBound('WeakMap.prototype.set', true); -var $weakMapHas = callBound('WeakMap.prototype.has', true); -var $mapGet = callBound('Map.prototype.get', true); -var $mapSet = callBound('Map.prototype.set', true); -var $mapHas = callBound('Map.prototype.has', true); - -/* - * This function traverses the list returning the node corresponding to the - * given key. - * - * That node is also moved to the head of the list, so that if it's accessed - * again we don't need to traverse the whole list. By doing so, all the recently - * used nodes can be accessed relatively quickly. - */ -var listGetNode = function (list, key) { // eslint-disable-line consistent-return - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - curr.next = list.next; - list.next = curr; // eslint-disable-line no-param-reassign - return curr; - } - } -}; - -var listGet = function (objects, key) { - var node = listGetNode(objects, key); - return node && node.value; -}; -var listSet = function (objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - // Prepend the new node to the beginning of the list - objects.next = { // eslint-disable-line no-param-reassign - key: key, - next: objects.next, - value: value - }; - } -}; -var listHas = function (objects, key) { - return !!listGetNode(objects, key); -}; - -module.exports = function getSideChannel() { - var $wm; - var $m; - var $o; - var channel = { - assert: function (key) { - if (!channel.has(key)) { - throw new $TypeError('Side channel does not contain ' + inspect(key)); - } - }, - get: function (key) { // eslint-disable-line consistent-return - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapGet($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapGet($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listGet($o, key); - } - } - }, - has: function (key) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapHas($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapHas($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listHas($o, key); - } - } - return false; - }, - set: function (key, value) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if (!$wm) { - $wm = new $WeakMap(); - } - $weakMapSet($wm, key, value); - } else if ($Map) { - if (!$m) { - $m = new $Map(); - } - $mapSet($m, key, value); - } else { - if (!$o) { - /* - * Initialize the linked list as an empty node, so that we don't have - * to special-case handling of the first node: we can always refer to - * it as (previous node).next, instead of something like (list).head - */ - $o = { key: {}, next: null }; - } - listSet($o, key, value); - } - } - }; - return channel; -}; - - -/***/ }), - -/***/ "../node_modules/supports-color/index.js": -/*!***********************************************!*\ - !*** ../node_modules/supports-color/index.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -const os = __webpack_require__(/*! os */ "os"); -const hasFlag = __webpack_require__(/*! has-flag */ "../node_modules/has-flag/index.js"); - -const env = process.env; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - forceColor = false; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = true; -} -if ('FORCE_COLOR' in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(stream) { - if (forceColor === false) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (stream && !stream.isTTY && forceColor !== true) { - return 0; - } - - const min = forceColor ? 1 : 0; - - if (process.platform === 'win32') { - // Node.js 7.5.0 is the first version of Node.js to include a patch to - // libuv that enables 256 color output on Windows. Anything earlier and it - // won't work. However, here we target Node.js 8 at minimum as it is an LTS - // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. Windows 10 build 14931 is the first release - // that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(process.versions.node.split('.')[0]) >= 8 && - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - if (env.TERM === 'dumb') { - return min; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) -}; - - -/***/ }), - -/***/ "assert": -/*!*************************!*\ - !*** external "assert" ***! - \*************************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("assert"); - -/***/ }), - -/***/ "events": -/*!*************************!*\ - !*** external "events" ***! - \*************************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("events"); - -/***/ }), - -/***/ "fs": -/*!*********************!*\ - !*** external "fs" ***! - \*********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ "http": -/*!***********************!*\ - !*** external "http" ***! - \***********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("http"); - -/***/ }), - -/***/ "https": -/*!************************!*\ - !*** external "https" ***! - \************************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("https"); - -/***/ }), - -/***/ "os": -/*!*********************!*\ - !*** external "os" ***! - \*********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("os"); - -/***/ }), - -/***/ "path": -/*!***********************!*\ - !*** external "path" ***! - \***********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ "stream": -/*!*************************!*\ - !*** external "stream" ***! - \*************************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("stream"); - -/***/ }), - -/***/ "tty": -/*!**********************!*\ - !*** external "tty" ***! - \**********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("tty"); - -/***/ }), - -/***/ "url": -/*!**********************!*\ - !*** external "url" ***! - \**********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("url"); - -/***/ }), - -/***/ "util": -/*!***********************!*\ - !*** external "util" ***! - \***********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("util"); - -/***/ }), - -/***/ "zlib": -/*!***********************!*\ - !*** external "zlib" ***! - \***********************/ -/***/ ((module) => { - -"use strict"; -module.exports = require("zlib"); - -/***/ }), - -/***/ "../node_modules/axios/lib/adapters/adapters.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/adapters/adapters.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "../node_modules/axios/lib/adapters/http.js"); -/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "../node_modules/axios/lib/adapters/xhr.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - - -const knownAdapters = { - http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"], - xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"] -} - -_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, value) => { - if (fn) { - try { - Object.defineProperty(fn, 'name', {value}); - } catch (e) { - // eslint-disable-next-line no-empty - } - Object.defineProperty(fn, 'adapterName', {value}); - } -}); - -const renderReason = (reason) => `- ${reason}`; - -const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(adapter) || adapter === null || adapter === false; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - getAdapter: (adapters) => { - adapters = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isArray(adapters) ? adapters : [adapters]; - - const {length} = adapters; - let nameOrAdapter; - let adapter; - - const rejectedReasons = {}; - - for (let i = 0; i < length; i++) { - nameOrAdapter = adapters[i]; - let id; - - adapter = nameOrAdapter; - - if (!isResolvedHandle(nameOrAdapter)) { - adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; - - if (adapter === undefined) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](`Unknown adapter '${id}'`); - } - } - - if (adapter) { - break; - } - - rejectedReasons[id || '#' + i] = adapter; - } - - if (!adapter) { - - const reasons = Object.entries(rejectedReasons) - .map(([id, state]) => `adapter ${id} ` + - (state === false ? 'is not supported by the environment' : 'is not available in the build') - ); - - let s = length ? - (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : - 'as no adapter specified'; - - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]( - `There is no suitable adapter to dispatch the request ` + s, - 'ERR_NOT_SUPPORT' - ); - } - - return adapter; - }, - adapters: knownAdapters -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/adapters/http.js": -/*!**************************************************!*\ - !*** ../node_modules/axios/lib/adapters/http.js ***! - \**************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ __setProxy: () => (/* binding */ __setProxy), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js"); -/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var proxy_from_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! proxy-from-env */ "../node_modules/proxy-from-env/index.js"); -/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! http */ "http"); -/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! https */ "https"); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! util */ "util"); -/* harmony import */ var follow_redirects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! follow-redirects */ "../node_modules/follow-redirects/index.js"); -/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zlib */ "zlib"); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js"); -/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../helpers/fromDataURI.js */ "../node_modules/axios/lib/helpers/fromDataURI.js"); -/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stream */ "stream"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../helpers/AxiosTransformStream.js */ "../node_modules/axios/lib/helpers/AxiosTransformStream.js"); -/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "events"); -/* harmony import */ var _helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../helpers/formDataToStream.js */ "../node_modules/axios/lib/helpers/formDataToStream.js"); -/* harmony import */ var _helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../helpers/readBlob.js */ "../node_modules/axios/lib/helpers/readBlob.js"); -/* harmony import */ var _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../helpers/ZlibHeaderTransformStream.js */ "../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"); -/* harmony import */ var _helpers_callbackify_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/callbackify.js */ "../node_modules/axios/lib/helpers/callbackify.js"); - - - - - - - - - - - - - - - - - - - - - - - - - - - -const zlibOptions = { - flush: zlib__WEBPACK_IMPORTED_MODULE_5__.constants.Z_SYNC_FLUSH, - finishFlush: zlib__WEBPACK_IMPORTED_MODULE_5__.constants.Z_SYNC_FLUSH -}; - -const brotliOptions = { - flush: zlib__WEBPACK_IMPORTED_MODULE_5__.constants.BROTLI_OPERATION_FLUSH, - finishFlush: zlib__WEBPACK_IMPORTED_MODULE_5__.constants.BROTLI_OPERATION_FLUSH -} - -const isBrotliSupported = _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isFunction(zlib__WEBPACK_IMPORTED_MODULE_5__.createBrotliDecompress); - -const {http: httpFollow, https: httpsFollow} = follow_redirects__WEBPACK_IMPORTED_MODULE_4__; - -const isHttps = /https:?/; - -const supportedProtocols = _platform_index_js__WEBPACK_IMPORTED_MODULE_9__["default"].protocols.map(protocol => { - return protocol + ':'; -}); - -/** - * If the proxy or config beforeRedirects functions are defined, call them with the options - * object. - * - * @param {Object} options - The options object that was passed to the request. - * - * @returns {Object} - */ -function dispatchBeforeRedirect(options, responseDetails) { - if (options.beforeRedirects.proxy) { - options.beforeRedirects.proxy(options); - } - if (options.beforeRedirects.config) { - options.beforeRedirects.config(options, responseDetails); - } -} - -/** - * If the proxy or config afterRedirects functions are defined, call them with the options - * - * @param {http.ClientRequestArgs} options - * @param {AxiosProxyConfig} configProxy configuration from Axios options object - * @param {string} location - * - * @returns {http.ClientRequestArgs} - */ -function setProxy(options, configProxy, location) { - let proxy = configProxy; - if (!proxy && proxy !== false) { - const proxyUrl = (0,proxy_from_env__WEBPACK_IMPORTED_MODULE_0__.getProxyForUrl)(location); - if (proxyUrl) { - proxy = new URL(proxyUrl); - } - } - if (proxy) { - // Basic proxy authorization - if (proxy.username) { - proxy.auth = (proxy.username || '') + ':' + (proxy.password || ''); - } - - if (proxy.auth) { - // Support proxy auth object form - if (proxy.auth.username || proxy.auth.password) { - proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || ''); - } - const base64 = Buffer - .from(proxy.auth, 'utf8') - .toString('base64'); - options.headers['Proxy-Authorization'] = 'Basic ' + base64; - } - - options.headers.host = options.hostname + (options.port ? ':' + options.port : ''); - const proxyHost = proxy.hostname || proxy.host; - options.hostname = proxyHost; - // Replace 'host' since options is not a URL object - options.host = proxyHost; - options.port = proxy.port; - options.path = location; - if (proxy.protocol) { - options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`; - } - } - - options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) { - // Configure proxy for redirected request, passing the original config proxy to apply - // the exact same logic as if the redirected request was performed by axios directly. - setProxy(redirectOptions, configProxy, redirectOptions.href); - }; -} - -const isHttpAdapterSupported = typeof process !== 'undefined' && _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].kindOf(process) === 'process'; - -// temporary hotfix - -const wrapAsync = (asyncExecutor) => { - return new Promise((resolve, reject) => { - let onDone; - let isDone; - - const done = (value, isRejected) => { - if (isDone) return; - isDone = true; - onDone && onDone(value, isRejected); - } - - const _resolve = (value) => { - done(value); - resolve(value); - }; - - const _reject = (reason) => { - done(reason, true); - reject(reason); - } - - asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject); - }) -}; - -const resolveFamily = ({address, family}) => { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isString(address)) { - throw TypeError('address must be a string'); - } - return ({ - address, - family: family || (address.indexOf('.') < 0 ? 6 : 4) - }); -} - -const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isObject(address) ? address : {address, family}); - -/*eslint consistent-return:0*/ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isHttpAdapterSupported && function httpAdapter(config) { - return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { - let {data, lookup, family} = config; - const {responseType, responseEncoding} = config; - const method = config.method.toUpperCase(); - let isDone; - let rejected = false; - let req; - - if (lookup) { - const _lookup = (0,_helpers_callbackify_js__WEBPACK_IMPORTED_MODULE_10__["default"])(lookup, (value) => _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isArray(value) ? value : [value]); - // hotfix to support opt.all option which is required for node 20.x - lookup = (hostname, opt, cb) => { - _lookup(hostname, opt, (err, arg0, arg1) => { - if (err) { - return cb(err); - } - - const addresses = _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)]; - - opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family); - }); - } - } - - // temporary internal emitter until the AxiosRequest class will be implemented - const emitter = new events__WEBPACK_IMPORTED_MODULE_7__.EventEmitter(); - - const onFinished = () => { - if (config.cancelToken) { - config.cancelToken.unsubscribe(abort); - } - - if (config.signal) { - config.signal.removeEventListener('abort', abort); - } - - emitter.removeAllListeners(); - } - - onDone((value, isRejected) => { - isDone = true; - if (isRejected) { - rejected = true; - onFinished(); - } - }); - - function abort(reason) { - emitter.emit('abort', !reason || reason.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, req) : reason); - } - - emitter.once('abort', reject); - - if (config.cancelToken || config.signal) { - config.cancelToken && config.cancelToken.subscribe(abort); - if (config.signal) { - config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort); - } - } - - // Parse url - const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_12__["default"])(config.baseURL, config.url); - const parsed = new URL(fullPath, 'http://localhost'); - const protocol = parsed.protocol || supportedProtocols[0]; - - if (protocol === 'data:') { - let convertedData; - - if (method !== 'GET') { - return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_13__["default"])(resolve, reject, { - status: 405, - statusText: 'method not allowed', - headers: {}, - config - }); - } - - try { - convertedData = (0,_helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_14__["default"])(config.url, responseType === 'blob', { - Blob: config.env && config.env.Blob - }); - } catch (err) { - throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].from(err, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_REQUEST, config); - } - - if (responseType === 'text') { - convertedData = convertedData.toString(responseEncoding); - - if (!responseEncoding || responseEncoding === 'utf8') { - convertedData = _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].stripBOM(convertedData); - } - } else if (responseType === 'stream') { - convertedData = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(convertedData); - } - - return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_13__["default"])(resolve, reject, { - data: convertedData, - status: 200, - statusText: 'OK', - headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_16__["default"](), - config - }); - } - - if (supportedProtocols.indexOf(protocol) === -1) { - return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - 'Unsupported protocol ' + protocol, - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_REQUEST, - config - )); - } - - const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_16__["default"].from(config.headers).normalize(); - - // Set User-Agent (required by some servers) - // See https://github.com/axios/axios/issues/69 - // User-Agent is specified; handle case where no UA header is desired - // Only set header if it hasn't been set in config - headers.set('User-Agent', 'axios/' + _env_data_js__WEBPACK_IMPORTED_MODULE_17__.VERSION, false); - - const onDownloadProgress = config.onDownloadProgress; - const onUploadProgress = config.onUploadProgress; - const maxRate = config.maxRate; - let maxUploadRate = undefined; - let maxDownloadRate = undefined; - - // support for spec compliant FormData objects - if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isSpecCompliantForm(data)) { - const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i); - - data = (0,_helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_18__["default"])(data, (formHeaders) => { - headers.set(formHeaders); - }, { - tag: `axios-${_env_data_js__WEBPACK_IMPORTED_MODULE_17__.VERSION}-boundary`, - boundary: userBoundary && userBoundary[1] || undefined - }); - // support for https://www.npmjs.com/package/form-data api - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isFormData(data) && _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isFunction(data.getHeaders)) { - headers.set(data.getHeaders()); - - if (!headers.hasContentLength()) { - try { - const knownLength = await util__WEBPACK_IMPORTED_MODULE_3__.promisify(data.getLength).call(data); - Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength); - /*eslint no-empty:0*/ - } catch (e) { - } - } - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isBlob(data)) { - data.size && headers.setContentType(data.type || 'application/octet-stream'); - headers.setContentLength(data.size || 0); - data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from((0,_helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_19__["default"])(data)); - } else if (data && !_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isStream(data)) { - if (Buffer.isBuffer(data)) { - // Nothing to do... - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isArrayBuffer(data)) { - data = Buffer.from(new Uint8Array(data)); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isString(data)) { - data = Buffer.from(data, 'utf-8'); - } else { - return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_REQUEST, - config - )); - } - - // Add Content-Length header if data exists - headers.setContentLength(data.length, false); - - if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { - return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - 'Request body larger than maxBodyLength limit', - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_REQUEST, - config - )); - } - } - - const contentLength = _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(headers.getContentLength()); - - if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isArray(maxRate)) { - maxUploadRate = maxRate[0]; - maxDownloadRate = maxRate[1]; - } else { - maxUploadRate = maxDownloadRate = maxRate; - } - - if (data && (onUploadProgress || maxUploadRate)) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isStream(data)) { - data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(data, {objectMode: false}); - } - - data = stream__WEBPACK_IMPORTED_MODULE_6__.pipeline([data, new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_20__["default"]({ - length: contentLength, - maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxUploadRate) - })], _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].noop); - - onUploadProgress && data.on('progress', progress => { - onUploadProgress(Object.assign(progress, { - upload: true - })); - }); - } - - // HTTP basic authentication - let auth = undefined; - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password || ''; - auth = username + ':' + password; - } - - if (!auth && parsed.username) { - const urlUsername = parsed.username; - const urlPassword = parsed.password; - auth = urlUsername + ':' + urlPassword; - } - - auth && headers.delete('authorization'); - - let path; - - try { - path = (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_21__["default"])( - parsed.pathname + parsed.search, - config.params, - config.paramsSerializer - ).replace(/^\?/, ''); - } catch (err) { - const customErr = new Error(err.message); - customErr.config = config; - customErr.url = config.url; - customErr.exists = true; - return reject(customErr); - } - - headers.set( - 'Accept-Encoding', - 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false - ); - - const options = { - path, - method: method, - headers: headers.toJSON(), - agents: { http: config.httpAgent, https: config.httpsAgent }, - auth, - protocol, - family, - beforeRedirect: dispatchBeforeRedirect, - beforeRedirects: {} - }; - - // cacheable-lookup integration hotfix - !_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isUndefined(lookup) && (options.lookup = lookup); - - if (config.socketPath) { - options.socketPath = config.socketPath; - } else { - options.hostname = parsed.hostname; - options.port = parsed.port; - setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); - } - - let transport; - const isHttpsRequest = isHttps.test(options.protocol); - options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; - if (config.transport) { - transport = config.transport; - } else if (config.maxRedirects === 0) { - transport = isHttpsRequest ? https__WEBPACK_IMPORTED_MODULE_2__ : http__WEBPACK_IMPORTED_MODULE_1__; - } else { - if (config.maxRedirects) { - options.maxRedirects = config.maxRedirects; - } - if (config.beforeRedirect) { - options.beforeRedirects.config = config.beforeRedirect; - } - transport = isHttpsRequest ? httpsFollow : httpFollow; - } - - if (config.maxBodyLength > -1) { - options.maxBodyLength = config.maxBodyLength; - } else { - // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited - options.maxBodyLength = Infinity; - } - - if (config.insecureHTTPParser) { - options.insecureHTTPParser = config.insecureHTTPParser; - } - - // Create the request - req = transport.request(options, function handleResponse(res) { - if (req.destroyed) return; - - const streams = [res]; - - const responseLength = +res.headers['content-length']; - - if (onDownloadProgress) { - const transformStream = new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_20__["default"]({ - length: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(responseLength), - maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxDownloadRate) - }); - - onDownloadProgress && transformStream.on('progress', progress => { - onDownloadProgress(Object.assign(progress, { - download: true - })); - }); - - streams.push(transformStream); - } - - // decompress the response body transparently if required - let responseStream = res; - - // return the last request in case of redirects - const lastRequest = res.req || req; - - // if decompress disabled we should not decompress - if (config.decompress !== false && res.headers['content-encoding']) { - // if no content, but headers still say that it is encoded, - // remove the header not confuse downstream operations - if (method === 'HEAD' || res.statusCode === 204) { - delete res.headers['content-encoding']; - } - - switch ((res.headers['content-encoding'] || '').toLowerCase()) { - /*eslint default-case:0*/ - case 'gzip': - case 'x-gzip': - case 'compress': - case 'x-compress': - // add the unzipper to the body stream processing pipeline - streams.push(zlib__WEBPACK_IMPORTED_MODULE_5__.createUnzip(zlibOptions)); - - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - case 'deflate': - streams.push(new _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_22__["default"]()); - - // add the unzipper to the body stream processing pipeline - streams.push(zlib__WEBPACK_IMPORTED_MODULE_5__.createUnzip(zlibOptions)); - - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - case 'br': - if (isBrotliSupported) { - streams.push(zlib__WEBPACK_IMPORTED_MODULE_5__.createBrotliDecompress(brotliOptions)); - delete res.headers['content-encoding']; - } - } - } - - responseStream = streams.length > 1 ? stream__WEBPACK_IMPORTED_MODULE_6__.pipeline(streams, _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].noop) : streams[0]; - - const offListeners = stream__WEBPACK_IMPORTED_MODULE_6__.finished(responseStream, () => { - offListeners(); - onFinished(); - }); - - const response = { - status: res.statusCode, - statusText: res.statusMessage, - headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_16__["default"](res.headers), - config, - request: lastRequest - }; - - if (responseType === 'stream') { - response.data = responseStream; - (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_13__["default"])(resolve, reject, response); - } else { - const responseBuffer = []; - let totalResponseBytes = 0; - - responseStream.on('data', function handleStreamData(chunk) { - responseBuffer.push(chunk); - totalResponseBytes += chunk.length; - - // make sure the content length is not over the maxContentLength if specified - if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { - // stream.destroy() emit aborted event before calling reject() on Node.js v16 - rejected = true; - responseStream.destroy(); - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]('maxContentLength size of ' + config.maxContentLength + ' exceeded', - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_RESPONSE, config, lastRequest)); - } - }); - - responseStream.on('aborted', function handlerStreamAborted() { - if (rejected) { - return; - } - - const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - 'maxContentLength size of ' + config.maxContentLength + ' exceeded', - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_RESPONSE, - config, - lastRequest - ); - responseStream.destroy(err); - reject(err); - }); - - responseStream.on('error', function handleStreamError(err) { - if (req.destroyed) return; - reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].from(err, null, config, lastRequest)); - }); - - responseStream.on('end', function handleStreamEnd() { - try { - let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer); - if (responseType !== 'arraybuffer') { - responseData = responseData.toString(responseEncoding); - if (!responseEncoding || responseEncoding === 'utf8') { - responseData = _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].stripBOM(responseData); - } - } - response.data = responseData; - } catch (err) { - return reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].from(err, null, config, response.request, response)); - } - (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_13__["default"])(resolve, reject, response); - }); - } - - emitter.once('abort', err => { - if (!responseStream.destroyed) { - responseStream.emit('error', err); - responseStream.destroy(); - } - }); - }); - - emitter.once('abort', err => { - reject(err); - req.destroy(err); - }); - - // Handle errors - req.on('error', function handleRequestError(err) { - // @todo remove - // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return; - reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].from(err, null, config, req)); - }); - - // set tcp keep alive to prevent drop connection by peer - req.on('socket', function handleRequestSocket(socket) { - // default interval of sending ack packet is 1 minute - socket.setKeepAlive(true, 1000 * 60); - }); - - // Handle request timeout - if (config.timeout) { - // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. - const timeout = parseInt(config.timeout, 10); - - if (Number.isNaN(timeout)) { - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - 'error trying to parse `config.timeout` to int', - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ERR_BAD_OPTION_VALUE, - config, - req - )); - - return; - } - - // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. - // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. - // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. - // And then these socket which be hang up will devouring CPU little by little. - // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. - req.setTimeout(timeout, function handleRequestTimeout() { - if (isDone) return; - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_23__["default"]; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"]( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_15__["default"].ECONNABORTED, - config, - req - )); - abort(); - }); - } - - - // Send the request - if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isStream(data)) { - let ended = false; - let errored = false; - - data.on('end', () => { - ended = true; - }); - - data.once('error', err => { - errored = true; - req.destroy(err); - }); - - data.on('close', () => { - if (!ended && !errored) { - abort(new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"]('Request stream has been aborted', config, req)); - } - }); - - data.pipe(req); - } else { - req.end(data); - } - }); -}); - -const __setProxy = setProxy; - - -/***/ }), - -/***/ "../node_modules/axios/lib/adapters/xhr.js": -/*!*************************************************!*\ - !*** ../node_modules/axios/lib/adapters/xhr.js ***! - \*************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js"); -/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../helpers/cookies.js */ "../node_modules/axios/lib/helpers/cookies.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js"); -/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js"); - - - - - - - - - - - - - - - - -function progressEventReducer(listener, isDownloadStream) { - let bytesNotified = 0; - const _speedometer = (0,_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250); - - return e => { - const loaded = e.loaded; - const total = e.lengthComputable ? e.total : undefined; - const progressBytes = loaded - bytesNotified; - const rate = _speedometer(progressBytes); - const inRange = loaded <= total; - - bytesNotified = loaded; - - const data = { - loaded, - total, - progress: total ? (loaded / total) : undefined, - bytes: progressBytes, - rate: rate ? rate : undefined, - estimated: rate && total && inRange ? (total - loaded) / rate : undefined, - event: e - }; - - data[isDownloadStream ? 'download' : 'upload'] = true; - - listener(data); - }; -} - -const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - let requestData = config.data; - const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers).normalize(); - let {responseType, withXSRFToken} = config; - let onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - let contentType; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(requestData)) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserWebWorkerEnv) { - requestHeaders.setContentType(false); // Let the browser set it - } else if ((contentType = requestHeaders.getContentType()) !== false) { - // fix semicolon duplication issue for ReactNative FormData implementation - const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; - requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); - } - } - - let request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); - } - - const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config.baseURL, config.url); - - request.open(config.method.toUpperCase(), (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__["default"])(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from( - 'getAllResponseHeaders' in request && request.getAllResponseHeaders() - ); - const responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - const response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config, - request - }; - - (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_NETWORK, config, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"]; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, - config, - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if(_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv) { - withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); - - if (withXSRFToken || (withXSRFToken !== false && (0,_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__["default"])(fullPath))) { - // Add xsrf header - const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__["default"].read(config.xsrfCookieName); - - if (xsrfValue) { - requestHeaders.set(config.xsrfHeaderName, xsrfValue); - } - } - } - - // Remove Content-Type if data is undefined - requestData === undefined && requestHeaders.setContentType(null); - - // Add headers to the request - if ('setRequestHeader' in request) { - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { - request.setRequestHeader(key, val); - }); - } - - // Add withCredentials to request if needed - if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = cancel => { - if (!request) { - return; - } - reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, request) : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__["default"])(fullPath); - - if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].protocols.indexOf(protocol) === -1) { - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_BAD_REQUEST, config)); - return; - } - - - // Send the request - request.send(requestData || null); - }); -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/axios.js": -/*!******************************************!*\ - !*** ../node_modules/axios/lib/axios.js ***! - \******************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); -/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ "../node_modules/axios/lib/core/Axios.js"); -/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "../node_modules/axios/lib/cancel/CancelToken.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ "../node_modules/axios/lib/env/data.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ "../node_modules/axios/lib/helpers/spread.js"); -/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "../node_modules/axios/lib/helpers/isAxiosError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "../node_modules/axios/lib/adapters/adapters.js"); -/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "../node_modules/axios/lib/helpers/HttpStatusCode.js"); - - - - - - - - - - - - - - - - - - - - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * - * @returns {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"](defaultConfig); - const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.request, context); - - // Copy axios.prototype to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, context, {allOwnKeys: true}); - - // Copy context to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, context, null, {allOwnKeys: true}); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]); - -// Expose Axios class to allow class inheritance -axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - -// Expose Cancel & CancelToken -axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__["default"]; -axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__["default"]; -axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__["default"]; -axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION; -axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__["default"]; - -// Expose AxiosError class -axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__["default"]; - -// alias for CanceledError for backward compatibility -axios.Cancel = axios.CanceledError; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; - -axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__["default"]; - -// Expose isAxiosError -axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__["default"]; - -// Expose mergeConfig -axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"]; - -axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__["default"]; - -axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isHTMLForm(thing) ? new FormData(thing) : thing); - -axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter; - -axios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__["default"]; - -axios.default = axios; - -// this module should only have a default export -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (axios); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/CancelToken.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/cancel/CancelToken.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); - - - - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @param {Function} executor The executor function. - * - * @returns {CancelToken} - */ -class CancelToken { - constructor(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - let resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - const token = this; - - // eslint-disable-next-line func-names - this.promise.then(cancel => { - if (!token._listeners) return; - - let i = token._listeners.length; - - while (i-- > 0) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = onfulfilled => { - let _resolve; - // eslint-disable-next-line func-names - const promise = new Promise(resolve => { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message, config, request) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](message, config, request); - resolvePromise(token.reason); - }); - } - - /** - * Throws a `CanceledError` if cancellation has been requested. - */ - throwIfRequested() { - if (this.reason) { - throw this.reason; - } - } - - /** - * Subscribe to the cancel signal - */ - - subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } - } - - /** - * Unsubscribe from the cancel signal - */ - - unsubscribe(listener) { - if (!this._listeners) { - return; - } - const index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } - } - - /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ - static source() { - let cancel; - const token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token, - cancel - }; - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CancelToken); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/CanceledError.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/cancel/CanceledError.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - - -/** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @param {string=} message The message. - * @param {Object=} config The config. - * @param {Object=} request The request. - * - * @returns {CanceledError} The created error. - */ -function CanceledError(message, config, request) { - // eslint-disable-next-line no-eq-null,eqeqeq - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request); - this.name = 'CanceledError'; -} - -_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], { - __CANCEL__: true -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanceledError); - - -/***/ }), - -/***/ "../node_modules/axios/lib/cancel/isCancel.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/cancel/isCancel.js ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isCancel) -/* harmony export */ }); - - -function isCancel(value) { - return !!(value && value.__CANCEL__); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/Axios.js": -/*!***********************************************!*\ - !*** ../node_modules/axios/lib/core/Axios.js ***! - \***********************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "../node_modules/axios/lib/core/InterceptorManager.js"); -/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ "../node_modules/axios/lib/core/dispatchRequest.js"); -/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "../node_modules/axios/lib/helpers/validator.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - - - - - - -const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].validators; - -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - * - * @return {Axios} A new instance of Axios - */ -class Axios { - constructor(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](), - response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]() - }; - } - - /** - * Dispatch a request - * - * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) - * @param {?Object} config - * - * @returns {Promise} The Promise to be fulfilled - */ - async request(configOrUrl, config) { - try { - return await this._request(configOrUrl, config); - } catch (err) { - if (err instanceof Error) { - let dummy; - - Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); - - // slice off the Error: ... line - const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; - - if (!err.stack) { - err.stack = stack; - // match without the 2 top stack lines - } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { - err.stack += '\n' + stack - } - } - - throw err; - } - } - - _request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - - const {transitional, paramsSerializer, headers} = config; - - if (transitional !== undefined) { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - if (paramsSerializer != null) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(paramsSerializer)) { - config.paramsSerializer = { - serialize: paramsSerializer - } - } else { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(paramsSerializer, { - encode: validators.function, - serialize: validators.function - }, true); - } - } - - // Set config.method - config.method = (config.method || this.defaults.method || 'get').toLowerCase(); - - // Flatten headers - let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].merge( - headers.common, - headers[config.method] - ); - - headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - (method) => { - delete headers[method]; - } - ); - - config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].concat(contextHeaders, headers); - - // filter out skipped interceptors - const requestInterceptorChain = []; - let synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - const responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - let promise; - let i = 0; - let len; - - if (!synchronousRequestInterceptors) { - const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].bind(this), undefined]; - chain.unshift.apply(chain, requestInterceptorChain); - chain.push.apply(chain, responseInterceptorChain); - len = chain.length; - - promise = Promise.resolve(config); - - while (i < len) { - promise = promise.then(chain[i++], chain[i++]); - } - - return promise; - } - - len = requestInterceptorChain.length; - - let newConfig = config; - - i = 0; - - while (i < len) { - const onFulfilled = requestInterceptorChain[i++]; - const onRejected = requestInterceptorChain[i++]; - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected.call(this, error); - break; - } - } - - try { - promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].call(this, newConfig); - } catch (error) { - return Promise.reject(error); - } - - i = 0; - len = responseInterceptorChain.length; - - while (i < len) { - promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); - } - - return promise; - } - - getUri(config) { - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url); - return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer); - } -} - -// Provide aliases for supported request methods -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - url, - data: (config || {}).data - })); - }; -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url, - data - })); - }; - } - - Axios.prototype[method] = generateHTTPMethod(); - - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Axios); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/AxiosError.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/core/AxiosError.js ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * - * @returns {Error} The created error. - */ -function AxiosError(message, code, config, request, response) { - Error.call(this); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } else { - this.stack = (new Error()).stack; - } - - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); -} - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config), - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } -}); - -const prototype = AxiosError.prototype; -const descriptors = {}; - -[ - 'ERR_BAD_OPTION_VALUE', - 'ERR_BAD_OPTION', - 'ECONNABORTED', - 'ETIMEDOUT', - 'ERR_NETWORK', - 'ERR_FR_TOO_MANY_REDIRECTS', - 'ERR_DEPRECATED', - 'ERR_BAD_RESPONSE', - 'ERR_BAD_REQUEST', - 'ERR_CANCELED', - 'ERR_NOT_SUPPORT', - 'ERR_INVALID_URL' -// eslint-disable-next-line func-names -].forEach(code => { - descriptors[code] = {value: code}; -}); - -Object.defineProperties(AxiosError, descriptors); -Object.defineProperty(prototype, 'isAxiosError', {value: true}); - -// eslint-disable-next-line func-names -AxiosError.from = (error, code, config, request, response, customProps) => { - const axiosError = Object.create(prototype); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }, prop => { - return prop !== 'isAxiosError'; - }); - - AxiosError.call(axiosError, error.message, code, config, request, response); - - axiosError.cause = error; - - axiosError.name = error.name; - - customProps && Object.assign(axiosError, customProps); - - return axiosError; -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/AxiosHeaders.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/core/AxiosHeaders.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "../node_modules/axios/lib/helpers/parseHeaders.js"); - - - - - -const $internals = Symbol('internals'); - -function normalizeHeader(header) { - return header && String(header).trim().toLowerCase(); -} - -function normalizeValue(value) { - if (value === false || value == null) { - return value; - } - - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value); -} - -function parseTokens(str) { - const tokens = Object.create(null); - const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; - let match; - - while ((match = tokensRE.exec(str))) { - tokens[match[1]] = match[2]; - } - - return tokens; -} - -const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); - -function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) { - return filter.call(this, value, header); - } - - if (isHeaderNameFilter) { - value = header; - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value)) return; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(filter)) { - return value.indexOf(filter) !== -1; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(filter)) { - return filter.test(value); - } -} - -function formatHeader(header) { - return header.trim() - .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { - return char.toUpperCase() + str; - }); -} - -function buildAccessors(obj, header) { - const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header); - - ['get', 'set', 'has'].forEach(methodName => { - Object.defineProperty(obj, methodName + accessorName, { - value: function(arg1, arg2, arg3) { - return this[methodName].call(this, header, arg1, arg2, arg3); - }, - configurable: true - }); - }); -} - -class AxiosHeaders { - constructor(headers) { - headers && this.set(headers); - } - - set(header, valueOrRewrite, rewrite) { - const self = this; - - function setHeader(_value, _header, _rewrite) { - const lHeader = normalizeHeader(_header); - - if (!lHeader) { - throw new Error('header name must be a non-empty string'); - } - - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader); - - if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { - self[key || _header] = normalizeValue(_value); - } - } - - const setHeaders = (headers, _rewrite) => - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) { - setHeaders(header, valueOrRewrite) - } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { - setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite); - } else { - header != null && setHeader(valueOrRewrite, header, rewrite); - } - - return this; - } - - get(header, parser) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - if (key) { - const value = this[key]; - - if (!parser) { - return value; - } - - if (parser === true) { - return parseTokens(value); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(parser)) { - return parser.call(this, value, key); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(parser)) { - return parser.exec(value); - } - - throw new TypeError('parser must be boolean|regexp|function'); - } - } - } - - has(header, matcher) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); - } - - return false; - } - - delete(header, matcher) { - const self = this; - let deleted = false; - - function deleteHeader(_header) { - _header = normalizeHeader(_header); - - if (_header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, _header); - - if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { - delete self[key]; - - deleted = true; - } - } - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header)) { - header.forEach(deleteHeader); - } else { - deleteHeader(header); - } - - return deleted; - } - - clear(matcher) { - const keys = Object.keys(this); - let i = keys.length; - let deleted = false; - - while (i--) { - const key = keys[i]; - if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { - delete this[key]; - deleted = true; - } - } - - return deleted; - } - - normalize(format) { - const self = this; - const headers = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header); - - if (key) { - self[key] = normalizeValue(value); - delete self[header]; - return; - } - - const normalized = format ? formatHeader(header) : String(header).trim(); - - if (normalized !== header) { - delete self[header]; - } - - self[normalized] = normalizeValue(value); - - headers[normalized] = true; - }); - - return this; - } - - concat(...targets) { - return this.constructor.concat(this, ...targets); - } - - toJSON(asStrings) { - const obj = Object.create(null); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value); - }); - - return obj; - } - - [Symbol.iterator]() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - - toString() { - return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); - } - - get [Symbol.toStringTag]() { - return 'AxiosHeaders'; - } - - static from(thing) { - return thing instanceof this ? thing : new this(thing); - } - - static concat(first, ...targets) { - const computed = new this(first); - - targets.forEach((target) => computed.set(target)); - - return computed; - } - - static accessor(header) { - const internals = this[$internals] = (this[$internals] = { - accessors: {} - }); - - const accessors = internals.accessors; - const prototype = this.prototype; - - function defineAccessor(_header) { - const lHeader = normalizeHeader(_header); - - if (!accessors[lHeader]) { - buildAccessors(prototype, _header); - accessors[lHeader] = true; - } - } - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); - - return this; - } -} - -AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); - -// reserved names hotfix -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { - let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` - return { - get: () => value, - set(headerValue) { - this[mapped] = headerValue; - } - } -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosHeaders); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/InterceptorManager.js": -/*!************************************************************!*\ - !*** ../node_modules/axios/lib/core/InterceptorManager.js ***! - \************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -class InterceptorManager { - constructor() { - this.handlers = []; - } - - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ - use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled, - rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; - } - - /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - * - * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise - */ - eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - } - - /** - * Clear all interceptors from the stack - * - * @returns {void} - */ - clear() { - if (this.handlers) { - this.handlers = []; - } - } - - /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - * - * @returns {void} - */ - forEach(fn) { - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InterceptorManager); - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/buildFullPath.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/core/buildFullPath.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildFullPath) -/* harmony export */ }); -/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "../node_modules/axios/lib/helpers/isAbsoluteURL.js"); -/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "../node_modules/axios/lib/helpers/combineURLs.js"); - - - - - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * - * @returns {string} The combined full path - */ -function buildFullPath(baseURL, requestedURL) { - if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) { - return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL); - } - return requestedURL; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/dispatchRequest.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/core/dispatchRequest.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ dispatchRequest) -/* harmony export */ }); -/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ "../node_modules/axios/lib/core/transformData.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ "../node_modules/axios/lib/adapters/adapters.js"); - - - - - - - - - -/** - * Throws a `CanceledError` if cancellation has been requested. - * - * @param {Object} config The config that is to be used for the request - * - * @returns {void} - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](null, config); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * - * @returns {Promise} The Promise to be fulfilled - */ -function dispatchRequest(config) { - throwIfCancellationRequested(config); - - config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers); - - // Transform request data - config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformRequest - ); - - if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { - config.headers.setContentType('application/x-www-form-urlencoded', false); - } - - const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter); - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - response - ); - - response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(response.headers); - - return response; - }, function onAdapterRejection(reason) { - if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__["default"])(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - reason.response - ); - reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(reason.response.headers); - } - } - - return Promise.reject(reason); - }); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/mergeConfig.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/core/mergeConfig.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ mergeConfig) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - -const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? { ...thing } : thing; - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * - * @returns {Object} New object resulting from merging config2 to config1 - */ -function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - const config = {}; - - function getMergedValue(target, source, caseless) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(a, b, caseless) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(a, b, caseless); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a, caseless); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(a, b, prop) { - if (prop in config2) { - return getMergedValue(a, b); - } else if (prop in config1) { - return getMergedValue(undefined, a); - } - } - - const mergeMap = { - url: valueFromConfig2, - method: valueFromConfig2, - data: valueFromConfig2, - baseURL: defaultToConfig2, - transformRequest: defaultToConfig2, - transformResponse: defaultToConfig2, - paramsSerializer: defaultToConfig2, - timeout: defaultToConfig2, - timeoutMessage: defaultToConfig2, - withCredentials: defaultToConfig2, - withXSRFToken: defaultToConfig2, - adapter: defaultToConfig2, - responseType: defaultToConfig2, - xsrfCookieName: defaultToConfig2, - xsrfHeaderName: defaultToConfig2, - onUploadProgress: defaultToConfig2, - onDownloadProgress: defaultToConfig2, - decompress: defaultToConfig2, - maxContentLength: defaultToConfig2, - maxBodyLength: defaultToConfig2, - beforeRedirect: defaultToConfig2, - transport: defaultToConfig2, - httpAgent: defaultToConfig2, - httpsAgent: defaultToConfig2, - cancelToken: defaultToConfig2, - socketPath: defaultToConfig2, - responseEncoding: defaultToConfig2, - validateStatus: mergeDirectKeys, - headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) - }; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { - const merge = mergeMap[prop] || mergeDeepProperties; - const configValue = merge(config1[prop], config2[prop], prop); - (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/settle.js": -/*!************************************************!*\ - !*** ../node_modules/axios/lib/core/settle.js ***! - \************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ settle) -/* harmony export */ }); -/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - * - * @returns {object} The response. - */ -function settle(resolve, reject, response) { - const validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"]( - 'Request failed with status code ' + response.status, - [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); - } -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/core/transformData.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/core/transformData.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ transformData) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - -/** - * Transform the data for a request or a response - * - * @param {Array|Function} fns A single function or Array of functions - * @param {?Object} response The response object - * - * @returns {*} The resulting transformed data - */ -function transformData(fns, response) { - const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - const context = response || config; - const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(context.headers); - let data = context.data; - - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(fns, function transform(fn) { - data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); - }); - - headers.normalize(); - - return data; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/defaults/index.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/defaults/index.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "../node_modules/axios/lib/helpers/toURLEncodedForm.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); - - - - - - - - - - -/** - * It takes a string, tries to parse it, and if it fails, it returns the stringified version - * of the input - * - * @param {any} rawValue - The value to be stringified. - * @param {Function} parser - A function that parses a string into a JavaScript object. - * @param {Function} encoder - A function that takes a value and returns a string. - * - * @returns {string} A stringified version of the rawValue. - */ -function stringifySafely(rawValue, parser, encoder) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -const defaults = { - - transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"], - - adapter: ['xhr', 'http'], - - transformRequest: [function transformRequest(data, headers) { - const contentType = headers.getContentType() || ''; - const hasJSONContentType = contentType.indexOf('application/json') > -1; - const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data); - - if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) { - data = new FormData(data); - } - - const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data); - - if (isFormData) { - return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) - ) { - return data; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) { - return data.buffer; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) { - headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); - return data.toString(); - } - - let isFileList; - - if (isObjectPayload) { - if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { - return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString(); - } - - if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { - const _FormData = this.env && this.env.FormData; - - return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])( - isFileList ? {'files[]': data} : data, - _FormData && new _FormData(), - this.formSerializer - ); - } - } - - if (isObjectPayload || hasJSONContentType ) { - headers.setContentType('application/json', false); - return stringifySafely(data); - } - - return data; - }], - - transformResponse: [function transformResponse(data) { - const transitional = this.transitional || defaults.transitional; - const forcedJSONParsing = transitional && transitional.forcedJSONParsing; - const JSONRequested = this.responseType === 'json'; - - if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { - const silentJSONParsing = transitional && transitional.silentJSONParsing; - const strictJSONParsing = !silentJSONParsing && JSONRequested; - - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - env: { - FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.FormData, - Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.Blob - }, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*', - 'Content-Type': undefined - } - } -}; - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { - defaults.headers[method] = {}; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaults); - - -/***/ }), - -/***/ "../node_modules/axios/lib/defaults/transitional.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/defaults/transitional.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/env/data.js": -/*!*********************************************!*\ - !*** ../node_modules/axios/lib/env/data.js ***! - \*********************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ VERSION: () => (/* binding */ VERSION) -/* harmony export */ }); -const VERSION = "1.6.8"; - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/AxiosTransformStream.js": -/*!*****************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/AxiosTransformStream.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! stream */ "stream"); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./throttle.js */ "../node_modules/axios/lib/helpers/throttle.js"); -/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js"); - - - - - - - -const kInternals = Symbol('internals'); - -class AxiosTransformStream extends stream__WEBPACK_IMPORTED_MODULE_0__.Transform{ - constructor(options) { - options = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFlatObject(options, { - maxRate: 0, - chunkSize: 64 * 1024, - minChunkSize: 100, - timeWindow: 500, - ticksRate: 2, - samplesCount: 15 - }, null, (prop, source) => { - return !_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(source[prop]); - }); - - super({ - readableHighWaterMark: options.chunkSize - }); - - const self = this; - - const internals = this[kInternals] = { - length: options.length, - timeWindow: options.timeWindow, - ticksRate: options.ticksRate, - chunkSize: options.chunkSize, - maxRate: options.maxRate, - minChunkSize: options.minChunkSize, - bytesSeen: 0, - isCaptured: false, - notifiedBytesLoaded: 0, - ts: Date.now(), - bytes: 0, - onReadCallback: null - }; - - const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(internals.ticksRate * options.samplesCount, internals.timeWindow); - - this.on('newListener', event => { - if (event === 'progress') { - if (!internals.isCaptured) { - internals.isCaptured = true; - } - } - }); - - let bytesNotified = 0; - - internals.updateProgress = (0,_throttle_js__WEBPACK_IMPORTED_MODULE_3__["default"])(function throttledHandler() { - const totalBytes = internals.length; - const bytesTransferred = internals.bytesSeen; - const progressBytes = bytesTransferred - bytesNotified; - if (!progressBytes || self.destroyed) return; - - const rate = _speedometer(progressBytes); - - bytesNotified = bytesTransferred; - - process.nextTick(() => { - self.emit('progress', { - 'loaded': bytesTransferred, - 'total': totalBytes, - 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined, - 'bytes': progressBytes, - 'rate': rate ? rate : undefined, - 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ? - (totalBytes - bytesTransferred) / rate : undefined - }); - }); - }, internals.ticksRate); - - const onFinish = () => { - internals.updateProgress(true); - }; - - this.once('end', onFinish); - this.once('error', onFinish); - } - - _read(size) { - const internals = this[kInternals]; - - if (internals.onReadCallback) { - internals.onReadCallback(); - } - - return super._read(size); - } - - _transform(chunk, encoding, callback) { - const self = this; - const internals = this[kInternals]; - const maxRate = internals.maxRate; - - const readableHighWaterMark = this.readableHighWaterMark; - - const timeWindow = internals.timeWindow; - - const divider = 1000 / timeWindow; - const bytesThreshold = (maxRate / divider); - const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0; - - function pushChunk(_chunk, _callback) { - const bytes = Buffer.byteLength(_chunk); - internals.bytesSeen += bytes; - internals.bytes += bytes; - - if (internals.isCaptured) { - internals.updateProgress(); - } - - if (self.push(_chunk)) { - process.nextTick(_callback); - } else { - internals.onReadCallback = () => { - internals.onReadCallback = null; - process.nextTick(_callback); - }; - } - } - - const transformChunk = (_chunk, _callback) => { - const chunkSize = Buffer.byteLength(_chunk); - let chunkRemainder = null; - let maxChunkSize = readableHighWaterMark; - let bytesLeft; - let passed = 0; - - if (maxRate) { - const now = Date.now(); - - if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) { - internals.ts = now; - bytesLeft = bytesThreshold - internals.bytes; - internals.bytes = bytesLeft < 0 ? -bytesLeft : 0; - passed = 0; - } - - bytesLeft = bytesThreshold - internals.bytes; - } - - if (maxRate) { - if (bytesLeft <= 0) { - // next time window - return setTimeout(() => { - _callback(null, _chunk); - }, timeWindow - passed); - } - - if (bytesLeft < maxChunkSize) { - maxChunkSize = bytesLeft; - } - } - - if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) { - chunkRemainder = _chunk.subarray(maxChunkSize); - _chunk = _chunk.subarray(0, maxChunkSize); - } - - pushChunk(_chunk, chunkRemainder ? () => { - process.nextTick(_callback, null, chunkRemainder); - } : _callback); - }; - - transformChunk(chunk, function transformNextChunk(err, _chunk) { - if (err) { - return callback(err); - } - - if (_chunk) { - transformChunk(_chunk, transformNextChunk); - } else { - callback(null); - } - }); - } - - setLength(length) { - this[kInternals].length = +length; - return this; - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosTransformStream); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!*****************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); - - - - -/** - * It encodes a string by replacing all characters that are not in the unreserved set with - * their percent-encoded equivalents - * - * @param {string} str - The string to encode. - * - * @returns {string} The encoded string. - */ -function encode(str) { - const charMap = { - '!': '%21', - "'": '%27', - '(': '%28', - ')': '%29', - '~': '%7E', - '%20': '+', - '%00': '\x00' - }; - return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { - return charMap[match]; - }); -} - -/** - * It takes a params object and converts it to a FormData object - * - * @param {Object} params - The parameters to be converted to a FormData object. - * @param {Object} options - The options object passed to the Axios constructor. - * - * @returns {void} - */ -function AxiosURLSearchParams(params, options) { - this._pairs = []; - - params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(params, this, options); -} - -const prototype = AxiosURLSearchParams.prototype; - -prototype.append = function append(name, value) { - this._pairs.push([name, value]); -}; - -prototype.toString = function toString(encoder) { - const _encode = encoder ? function(value) { - return encoder.call(this, value, encode); - } : encode; - - return this._pairs.map(function each(pair) { - return _encode(pair[0]) + '=' + _encode(pair[1]); - }, '').join('&'); -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosURLSearchParams); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!***********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \***********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -const HttpStatusCode = { - Continue: 100, - SwitchingProtocols: 101, - Processing: 102, - EarlyHints: 103, - Ok: 200, - Created: 201, - Accepted: 202, - NonAuthoritativeInformation: 203, - NoContent: 204, - ResetContent: 205, - PartialContent: 206, - MultiStatus: 207, - AlreadyReported: 208, - ImUsed: 226, - MultipleChoices: 300, - MovedPermanently: 301, - Found: 302, - SeeOther: 303, - NotModified: 304, - UseProxy: 305, - Unused: 306, - TemporaryRedirect: 307, - PermanentRedirect: 308, - BadRequest: 400, - Unauthorized: 401, - PaymentRequired: 402, - Forbidden: 403, - NotFound: 404, - MethodNotAllowed: 405, - NotAcceptable: 406, - ProxyAuthenticationRequired: 407, - RequestTimeout: 408, - Conflict: 409, - Gone: 410, - LengthRequired: 411, - PreconditionFailed: 412, - PayloadTooLarge: 413, - UriTooLong: 414, - UnsupportedMediaType: 415, - RangeNotSatisfiable: 416, - ExpectationFailed: 417, - ImATeapot: 418, - MisdirectedRequest: 421, - UnprocessableEntity: 422, - Locked: 423, - FailedDependency: 424, - TooEarly: 425, - UpgradeRequired: 426, - PreconditionRequired: 428, - TooManyRequests: 429, - RequestHeaderFieldsTooLarge: 431, - UnavailableForLegalReasons: 451, - InternalServerError: 500, - NotImplemented: 501, - BadGateway: 502, - ServiceUnavailable: 503, - GatewayTimeout: 504, - HttpVersionNotSupported: 505, - VariantAlsoNegotiates: 506, - InsufficientStorage: 507, - LoopDetected: 508, - NotExtended: 510, - NetworkAuthenticationRequired: 511, -}; - -Object.entries(HttpStatusCode).forEach(([key, value]) => { - HttpStatusCode[value] = key; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HttpStatusCode); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js": -/*!**********************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! stream */ "stream"); - - - - -class ZlibHeaderTransformStream extends stream__WEBPACK_IMPORTED_MODULE_0__.Transform { - __transform(chunk, encoding, callback) { - this.push(chunk); - callback(); - } - - _transform(chunk, encoding, callback) { - if (chunk.length !== 0) { - this._transform = this.__transform; - - // Add Default Compression headers if no zlib headers are present - if (chunk[0] !== 120) { // Hex: 78 - const header = Buffer.alloc(2); - header[0] = 120; // Hex: 78 - header[1] = 156; // Hex: 9C - this.push(header, encoding); - } - } - - this.__transform(chunk, encoding, callback); - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ZlibHeaderTransformStream); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/bind.js": -/*!*************************************************!*\ - !*** ../node_modules/axios/lib/helpers/bind.js ***! - \*************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ bind) -/* harmony export */ }); - - -function bind(fn, thisArg) { - return function wrap() { - return fn.apply(thisArg, arguments); - }; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/buildURL.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/buildURL.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildURL) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); - - - - - -/** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts - * - * @param {string} val The value to be encoded. - * - * @returns {string} The encoded value. - */ -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @param {?object} options - * - * @returns {string} The formatted url - */ -function buildURL(url, params, options) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - const _encode = options && options.encode || encode; - - const serializeFn = options && options.serialize; - - let serializedParams; - - if (serializeFn) { - serializedParams = serializeFn(params, options); - } else { - serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ? - params.toString() : - new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, options).toString(_encode); - } - - if (serializedParams) { - const hashmarkIndex = url.indexOf("#"); - - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/callbackify.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/callbackify.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - -const callbackify = (fn, reducer) => { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isAsyncFn(fn) ? function (...args) { - const cb = args.pop(); - fn.apply(this, args).then((value) => { - try { - reducer ? cb(null, ...reducer(value)) : cb(null, value); - } catch (err) { - cb(err); - } - }, cb); - } : fn; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (callbackify); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/combineURLs.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/combineURLs.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ combineURLs) -/* harmony export */ }); - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * - * @returns {string} The combined URL - */ -function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/cookies.js": -/*!****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/cookies.js ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - - // Standard browser envs support document.cookie - { - write(name, value, expires, path, domain, secure) { - const cookie = [name + '=' + encodeURIComponent(value)]; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(path) && cookie.push('path=' + path); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(domain) && cookie.push('domain=' + domain); - - secure === true && cookie.push('secure'); - - document.cookie = cookie.join('; '); - }, - - read(name) { - const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove(name) { - this.write(name, '', Date.now() - 86400000); - } - } - - : - - // Non-standard browser env (web workers, react-native) lack needed support. - { - write() {}, - read() { - return null; - }, - remove() {} - }); - - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/formDataToJSON.js": -/*!***********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/formDataToJSON.js ***! - \***********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] - * - * @param {string} name - The name of the property to get. - * - * @returns An array of strings. - */ -function parsePropPath(name) { - // foo[x][y][z] - // foo.x.y.z - // foo-x-y-z - // foo x y z - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => { - return match[0] === '[]' ? '' : match[1] || match[0]; - }); -} - -/** - * Convert an array to an object. - * - * @param {Array} arr - The array to convert to an object. - * - * @returns An object with the same keys and values as the array. - */ -function arrayToObject(arr) { - const obj = {}; - const keys = Object.keys(arr); - let i; - const len = keys.length; - let key; - for (i = 0; i < len; i++) { - key = keys[i]; - obj[key] = arr[key]; - } - return obj; -} - -/** - * It takes a FormData object and returns a JavaScript object - * - * @param {string} formData The FormData object to convert to JSON. - * - * @returns {Object | null} The converted object. - */ -function formDataToJSON(formData) { - function buildPath(path, value, target, index) { - let name = path[index++]; - - if (name === '__proto__') return true; - - const isNumericKey = Number.isFinite(+name); - const isLast = index >= path.length; - name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target) ? target.length : name; - - if (isLast) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) { - target[name] = [target[name], value]; - } else { - target[name] = value; - } - - return !isNumericKey; - } - - if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) { - target[name] = []; - } - - const result = buildPath(path, value, target[name], index); - - if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])) { - target[name] = arrayToObject(target[name]); - } - - return !isNumericKey; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(formData.entries)) { - const obj = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEachEntry(formData, (name, value) => { - buildPath(parsePropPath(name), value, obj, 0); - }); - - return obj; - } - - return null; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formDataToJSON); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/formDataToStream.js": -/*!*************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/formDataToStream.js ***! - \*************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! util */ "util"); -/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! stream */ "stream"); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _readBlob_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./readBlob.js */ "../node_modules/axios/lib/helpers/readBlob.js"); - - - - - -const BOUNDARY_ALPHABET = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].ALPHABET.ALPHA_DIGIT + '-_'; - -const textEncoder = new util__WEBPACK_IMPORTED_MODULE_0__.TextEncoder(); - -const CRLF = '\r\n'; -const CRLF_BYTES = textEncoder.encode(CRLF); -const CRLF_BYTES_COUNT = 2; - -class FormDataPart { - constructor(name, value) { - const {escapeName} = this.constructor; - const isStringValue = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isString(value); - - let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${ - !isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : '' - }${CRLF}`; - - if (isStringValue) { - value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF)); - } else { - headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}` - } - - this.headers = textEncoder.encode(headers + CRLF); - - this.contentLength = isStringValue ? value.byteLength : value.size; - - this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT; - - this.name = name; - this.value = value; - } - - async *encode(){ - yield this.headers; - - const {value} = this; - - if(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isTypedArray(value)) { - yield value; - } else { - yield* (0,_readBlob_js__WEBPACK_IMPORTED_MODULE_3__["default"])(value); - } - - yield CRLF_BYTES; - } - - static escapeName(name) { - return String(name).replace(/[\r\n"]/g, (match) => ({ - '\r' : '%0D', - '\n' : '%0A', - '"' : '%22', - }[match])); - } -} - -const formDataToStream = (form, headersHandler, options) => { - const { - tag = 'form-data-boundary', - size = 25, - boundary = tag + '-' + _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].generateString(size, BOUNDARY_ALPHABET) - } = options || {}; - - if(!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(form)) { - throw TypeError('FormData instance required'); - } - - if (boundary.length < 1 || boundary.length > 70) { - throw Error('boundary must be 10-70 characters long') - } - - const boundaryBytes = textEncoder.encode('--' + boundary + CRLF); - const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF); - let contentLength = footerBytes.byteLength; - - const parts = Array.from(form.entries()).map(([name, value]) => { - const part = new FormDataPart(name, value); - contentLength += part.size; - return part; - }); - - contentLength += boundaryBytes.byteLength * parts.length; - - contentLength = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].toFiniteNumber(contentLength); - - const computedHeaders = { - 'Content-Type': `multipart/form-data; boundary=${boundary}` - } - - if (Number.isFinite(contentLength)) { - computedHeaders['Content-Length'] = contentLength; - } - - headersHandler && headersHandler(computedHeaders); - - return stream__WEBPACK_IMPORTED_MODULE_1__.Readable.from((async function *() { - for(const part of parts) { - yield boundaryBytes; - yield* part.encode(); - } - - yield footerBytes; - })()); -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formDataToStream); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/fromDataURI.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/fromDataURI.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ fromDataURI) -/* harmony export */ }); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _parseProtocol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - - - - -const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/; - -/** - * Parse data uri to a Buffer or Blob - * - * @param {String} uri - * @param {?Boolean} asBlob - * @param {?Object} options - * @param {?Function} options.Blob - * - * @returns {Buffer|Blob} - */ -function fromDataURI(uri, asBlob, options) { - const _Blob = options && options.Blob || _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].classes.Blob; - const protocol = (0,_parseProtocol_js__WEBPACK_IMPORTED_MODULE_1__["default"])(uri); - - if (asBlob === undefined && _Blob) { - asBlob = true; - } - - if (protocol === 'data') { - uri = protocol.length ? uri.slice(protocol.length + 1) : uri; - - const match = DATA_URL_PATTERN.exec(uri); - - if (!match) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Invalid URL', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_INVALID_URL); - } - - const mime = match[1]; - const isBase64 = match[2]; - const body = match[3]; - const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8'); - - if (asBlob) { - if (!_Blob) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT); - } - - return new _Blob([buffer], {type: mime}); - } - - return buffer; - } - - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Unsupported protocol ' + protocol, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isAbsoluteURL) -/* harmony export */ }); - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isAxiosError.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isAxiosError.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isAxiosError) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -function isAxiosError(payload) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - -// Standard browser envs have full support of the APIs needed to test -// whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - const msie = /(msie|trident)/i.test(navigator.userAgent); - const urlParsingNode = document.createElement('a'); - let originURL; - - /** - * Parse a URL to discover its components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - let href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })()); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/parseHeaders.js": -/*!*********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/parseHeaders.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); - - - - -// RawAxiosHeaders whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]); - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} rawHeaders Headers needing to be parsed - * - * @returns {Object} Headers parsed into an object - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rawHeaders => { - const parsed = {}; - let key; - let val; - let i; - - rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { - i = line.indexOf(':'); - key = line.substring(0, i).trim().toLowerCase(); - val = line.substring(i + 1).trim(); - - if (!key || (parsed[key] && ignoreDuplicateOf[key])) { - return; - } - - if (key === 'set-cookie') { - if (parsed[key]) { - parsed[key].push(val); - } else { - parsed[key] = [val]; - } - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - - return parsed; -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/parseProtocol.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/parseProtocol.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ parseProtocol) -/* harmony export */ }); - - -function parseProtocol(url) { - const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/readBlob.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/readBlob.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -const {asyncIterator} = Symbol; - -const readBlob = async function* (blob) { - if (blob.stream) { - yield* blob.stream() - } else if (blob.arrayBuffer) { - yield await blob.arrayBuffer() - } else if (blob[asyncIterator]) { - yield* blob[asyncIterator](); - } else { - yield blob; - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (readBlob); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/speedometer.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/helpers/speedometer.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/** - * Calculate data maxRate - * @param {Number} [samplesCount= 10] - * @param {Number} [min= 1000] - * @returns {Function} - */ -function speedometer(samplesCount, min) { - samplesCount = samplesCount || 10; - const bytes = new Array(samplesCount); - const timestamps = new Array(samplesCount); - let head = 0; - let tail = 0; - let firstSampleTS; - - min = min !== undefined ? min : 1000; - - return function push(chunkLength) { - const now = Date.now(); - - const startedAt = timestamps[tail]; - - if (!firstSampleTS) { - firstSampleTS = now; - } - - bytes[head] = chunkLength; - timestamps[head] = now; - - let i = tail; - let bytesCount = 0; - - while (i !== head) { - bytesCount += bytes[i++]; - i = i % samplesCount; - } - - head = (head + 1) % samplesCount; - - if (head === tail) { - tail = (tail + 1) % samplesCount; - } - - if (now - firstSampleTS < min) { - return; - } - - const passed = startedAt && now - startedAt; - - return passed ? Math.round(bytesCount * 1000 / passed) : undefined; - }; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (speedometer); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/spread.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/helpers/spread.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ spread) -/* harmony export */ }); - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * - * @returns {Function} - */ -function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/throttle.js": -/*!*****************************************************!*\ - !*** ../node_modules/axios/lib/helpers/throttle.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/** - * Throttle decorator - * @param {Function} fn - * @param {Number} freq - * @return {Function} - */ -function throttle(fn, freq) { - let timestamp = 0; - const threshold = 1000 / freq; - let timer = null; - return function throttled(force, args) { - const now = Date.now(); - if (force || now - timestamp > threshold) { - if (timer) { - clearTimeout(timer); - timer = null; - } - timestamp = now; - return fn.apply(null, args); - } - if (!timer) { - timer = setTimeout(() => { - timer = null; - timestamp = Date.now(); - return fn.apply(null, args); - }, threshold - (now - timestamp)); - } - }; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (throttle); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/toFormData.js": -/*!*******************************************************!*\ - !*** ../node_modules/axios/lib/helpers/toFormData.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ "../node_modules/axios/lib/platform/node/classes/FormData.js"); - - - - -// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored - - -/** - * Determines if the given thing is a array or js object. - * - * @param {string} thing - The object or array to be visited. - * - * @returns {boolean} - */ -function isVisitable(thing) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(thing); -} - -/** - * It removes the brackets from the end of a string - * - * @param {string} key - The key of the parameter. - * - * @returns {string} the key without the brackets. - */ -function removeBrackets(key) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key; -} - -/** - * It takes a path, a key, and a boolean, and returns a string - * - * @param {string} path - The path to the current key. - * @param {string} key - The key of the current object being iterated over. - * @param {string} dots - If true, the key will be rendered with dots instead of brackets. - * - * @returns {string} The path to the current key. - */ -function renderKey(path, key, dots) { - if (!path) return key; - return path.concat(key).map(function each(token, i) { - // eslint-disable-next-line no-param-reassign - token = removeBrackets(token); - return !dots && i ? '[' + token + ']' : token; - }).join(dots ? '.' : ''); -} - -/** - * If the array is an array and none of its elements are visitable, then it's a flat array. - * - * @param {Array} arr - The array to check - * - * @returns {boolean} - */ -function isFlatArray(arr) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(arr) && !arr.some(isVisitable); -} - -const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"], {}, null, function filter(prop) { - return /^is[A-Z]/.test(prop); -}); - -/** - * Convert a data object to FormData - * - * @param {Object} obj - * @param {?Object} [formData] - * @param {?Object} [options] - * @param {Function} [options.visitor] - * @param {Boolean} [options.metaTokens = true] - * @param {Boolean} [options.dots = false] - * @param {?Boolean} [options.indexes = false] - * - * @returns {Object} - **/ - -/** - * It converts an object into a FormData object - * - * @param {Object} obj - The object to convert to form data. - * @param {string} formData - The FormData object to append to. - * @param {Object} options - * - * @returns - */ -function toFormData(obj, formData, options) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('target must be an object'); - } - - // eslint-disable-next-line no-param-reassign - formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"] || FormData)(); - - // eslint-disable-next-line no-param-reassign - options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, { - metaTokens: true, - dots: false, - indexes: false - }, false, function defined(option, source) { - // eslint-disable-next-line no-eq-null,eqeqeq - return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]); - }); - - const metaTokens = options.metaTokens; - // eslint-disable-next-line no-use-before-define - const visitor = options.visitor || defaultVisitor; - const dots = options.dots; - const indexes = options.indexes; - const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; - const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData); - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) { - throw new TypeError('visitor must be a function'); - } - - function convertValue(value) { - if (value === null) return ''; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isDate(value)) { - return value.toISOString(); - } - - if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.'); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) { - return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - - return value; - } - - /** - * Default visitor. - * - * @param {*} value - * @param {String|Number} key - * @param {Array} path - * @this {FormData} - * - * @returns {boolean} return true to visit the each prop of the value recursively - */ - function defaultVisitor(value, key, path) { - let arr = value; - - if (value && !path && typeof value === 'object') { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - key = metaTokens ? key : key.slice(0, -2); - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if ( - (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) || - ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value)) - )) { - // eslint-disable-next-line no-param-reassign - key = removeBrackets(key); - - arr.forEach(function each(el, index) { - !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append( - // eslint-disable-next-line no-nested-ternary - indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), - convertValue(el) - ); - }); - return false; - } - } - - if (isVisitable(value)) { - return true; - } - - formData.append(renderKey(path, key, dots), convertValue(value)); - - return false; - } - - const stack = []; - - const exposedHelpers = Object.assign(predicates, { - defaultVisitor, - convertValue, - isVisitable - }); - - function build(value, path) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return; - - if (stack.indexOf(value) !== -1) { - throw Error('Circular reference detected in ' + path.join('.')); - } - - stack.push(value); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) { - const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call( - formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers - ); - - if (result === true) { - build(el, path ? path.concat(key) : [key]); - } - }); - - stack.pop(); - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('data must be an object'); - } - - build(obj); - - return formData; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toFormData); - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!*************************************************************!*\ - !*** ../node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \*************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ toURLEncodedForm) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js"); - - - - - - -function toURLEncodedForm(data, options) { - return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].classes.URLSearchParams(), Object.assign({ - visitor: function(value, key, path, helpers) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBuffer(value)) { - this.append(key, value.toString('base64')); - return false; - } - - return helpers.defaultVisitor.apply(this, arguments); - } - }, options)); -} - - -/***/ }), - -/***/ "../node_modules/axios/lib/helpers/validator.js": -/*!******************************************************!*\ - !*** ../node_modules/axios/lib/helpers/validator.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); - - - - - -const validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -const deprecatedWarnings = {}; - -/** - * Transitional option validator - * - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return (value, opt, opts) => { - if (validator === false) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]( - formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_DEPRECATED - ); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - * - * @returns {object} - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - const keys = Object.keys(options); - let i = keys.length; - while (i-- > 0) { - const opt = keys[i]; - const validator = schema[opt]; - if (validator) { - const value = options[opt]; - const result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION); - } - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - assertOptions, - validators -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/common/utils.js": -/*!**********************************************************!*\ - !*** ../node_modules/axios/lib/platform/common/utils.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hasBrowserEnv: () => (/* binding */ hasBrowserEnv), -/* harmony export */ hasStandardBrowserEnv: () => (/* binding */ hasStandardBrowserEnv), -/* harmony export */ hasStandardBrowserWebWorkerEnv: () => (/* binding */ hasStandardBrowserWebWorkerEnv) -/* harmony export */ }); -const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - * - * @returns {boolean} - */ -const hasStandardBrowserEnv = ( - (product) => { - return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 - })(typeof navigator !== 'undefined' && navigator.product); - -/** - * Determine if we're running in a standard browser webWorker environment - * - * Although the `isStandardBrowserEnv` method indicates that - * `allows axios to run in a web worker`, the WebWorker will still be - * filtered out due to its judgment standard - * `typeof window !== 'undefined' && typeof document !== 'undefined'`. - * This leads to a problem when axios post `FormData` in webWorker - */ -const hasStandardBrowserWebWorkerEnv = (() => { - return ( - typeof WorkerGlobalScope !== 'undefined' && - // eslint-disable-next-line no-undef - self instanceof WorkerGlobalScope && - typeof self.importScripts === 'function' - ); -})(); - - - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/index.js": -/*!***************************************************!*\ - !*** ../node_modules/axios/lib/platform/index.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ "../node_modules/axios/lib/platform/node/index.js"); -/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ "../node_modules/axios/lib/platform/common/utils.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__, - ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__["default"] -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/node/classes/FormData.js": -/*!*******************************************************************!*\ - !*** ../node_modules/axios/lib/platform/node/classes/FormData.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var form_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! form-data */ "../node_modules/form-data/lib/form_data.js"); - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (form_data__WEBPACK_IMPORTED_MODULE_0__); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/node/classes/URLSearchParams.js": -/*!**************************************************************************!*\ - !*** ../node_modules/axios/lib/platform/node/classes/URLSearchParams.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! url */ "url"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (url__WEBPACK_IMPORTED_MODULE_0__.URLSearchParams); - - -/***/ }), - -/***/ "../node_modules/axios/lib/platform/node/index.js": -/*!********************************************************!*\ - !*** ../node_modules/axios/lib/platform/node/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "../node_modules/axios/lib/platform/node/classes/URLSearchParams.js"); -/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "../node_modules/axios/lib/platform/node/classes/FormData.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - isNode: true, - classes: { - URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"], - FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"], - Blob: typeof Blob !== 'undefined' && Blob || null - }, - protocols: [ 'http', 'https', 'file', 'data' ] -}); - - -/***/ }), - -/***/ "../node_modules/axios/lib/utils.js": -/*!******************************************!*\ - !*** ../node_modules/axios/lib/utils.js ***! - \******************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); - - - - -// utils is a library of generic helper functions non-specific to axios - -const {toString} = Object.prototype; -const {getPrototypeOf} = Object; - -const kindOf = (cache => thing => { - const str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); -})(Object.create(null)); - -const kindOfTest = (type) => { - type = type.toLowerCase(); - return (thing) => kindOf(thing) === type -} - -const typeOfTest = type => thing => typeof thing === type; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * - * @returns {boolean} True if value is an Array, otherwise false - */ -const {isArray} = Array; - -/** - * Determine if a value is undefined - * - * @param {*} val The value to test - * - * @returns {boolean} True if the value is undefined, otherwise false - */ -const isUndefined = typeOfTest('undefined'); - -/** - * Determine if a value is a Buffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -const isArrayBuffer = kindOfTest('ArrayBuffer'); - - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - let result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a String, otherwise false - */ -const isString = typeOfTest('string'); - -/** - * Determine if a value is a Function - * - * @param {*} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -const isFunction = typeOfTest('function'); - -/** - * Determine if a value is a Number - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Number, otherwise false - */ -const isNumber = typeOfTest('number'); - -/** - * Determine if a value is an Object - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an Object, otherwise false - */ -const isObject = (thing) => thing !== null && typeof thing === 'object'; - -/** - * Determine if a value is a Boolean - * - * @param {*} thing The value to test - * @returns {boolean} True if value is a Boolean, otherwise false - */ -const isBoolean = thing => thing === true || thing === false; - -/** - * Determine if a value is a plain Object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a plain Object, otherwise false - */ -const isPlainObject = (val) => { - if (kindOf(val) !== 'object') { - return false; - } - - const prototype = getPrototypeOf(val); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); -} - -/** - * Determine if a value is a Date - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Date, otherwise false - */ -const isDate = kindOfTest('Date'); - -/** - * Determine if a value is a File - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFile = kindOfTest('File'); - -/** - * Determine if a value is a Blob - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Blob, otherwise false - */ -const isBlob = kindOfTest('Blob'); - -/** - * Determine if a value is a FileList - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFileList = kindOfTest('FileList'); - -/** - * Determine if a value is a Stream - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Stream, otherwise false - */ -const isStream = (val) => isObject(val) && isFunction(val.pipe); - -/** - * Determine if a value is a FormData - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an FormData, otherwise false - */ -const isFormData = (thing) => { - let kind; - return thing && ( - (typeof FormData === 'function' && thing instanceof FormData) || ( - isFunction(thing.append) && ( - (kind = kindOf(thing)) === 'formdata' || - // detect form-data instance - (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') - ) - ) - ) -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -const isURLSearchParams = kindOfTest('URLSearchParams'); - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * - * @returns {String} The String freed of excess whitespace - */ -const trim = (str) => str.trim ? - str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - * - * @param {Boolean} [allOwnKeys = false] - * @returns {any} - */ -function forEach(obj, fn, {allOwnKeys = false} = {}) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - let i; - let l; - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); - const len = keys.length; - let key; - - for (i = 0; i < len; i++) { - key = keys[i]; - fn.call(null, obj[key], key, obj); - } - } -} - -function findKey(obj, key) { - key = key.toLowerCase(); - const keys = Object.keys(obj); - let i = keys.length; - let _key; - while (i-- > 0) { - _key = keys[i]; - if (key === _key.toLowerCase()) { - return _key; - } - } - return null; -} - -const _global = (() => { - /*eslint no-undef:0*/ - if (typeof globalThis !== "undefined") return globalThis; - return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) -})(); - -const isContextDefined = (context) => !isUndefined(context) && context !== _global; - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - const {caseless} = isContextDefined(this) && this || {}; - const result = {}; - const assignValue = (val, key) => { - const targetKey = caseless && findKey(result, key) || key; - if (isPlainObject(result[targetKey]) && isPlainObject(val)) { - result[targetKey] = merge(result[targetKey], val); - } else if (isPlainObject(val)) { - result[targetKey] = merge({}, val); - } else if (isArray(val)) { - result[targetKey] = val.slice(); - } else { - result[targetKey] = val; - } - } - - for (let i = 0, l = arguments.length; i < l; i++) { - arguments[i] && forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * - * @param {Boolean} [allOwnKeys] - * @returns {Object} The resulting value of object a - */ -const extend = (a, b, thisArg, {allOwnKeys}= {}) => { - forEach(b, (val, key) => { - if (thisArg && isFunction(val)) { - a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg); - } else { - a[key] = val; - } - }, {allOwnKeys}); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * - * @returns {string} content value without BOM - */ -const stripBOM = (content) => { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -/** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - * - * @returns {void} - */ -const inherits = (constructor, superConstructor, props, descriptors) => { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - Object.defineProperty(constructor, 'super', { - value: superConstructor.prototype - }); - props && Object.assign(constructor.prototype, props); -} - -/** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function|Boolean} [filter] - * @param {Function} [propFilter] - * - * @returns {Object} - */ -const toFlatObject = (sourceObj, destObj, filter, propFilter) => { - let props; - let i; - let prop; - const merged = {}; - - destObj = destObj || {}; - // eslint-disable-next-line no-eq-null,eqeqeq - if (sourceObj == null) return destObj; - - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = filter !== false && getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - - return destObj; -} - -/** - * Determines whether a string ends with the characters of a specified string - * - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * - * @returns {boolean} - */ -const endsWith = (str, searchString, position) => { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - const lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -} - - -/** - * Returns new array from array like object or null if failed - * - * @param {*} [thing] - * - * @returns {?Array} - */ -const toArray = (thing) => { - if (!thing) return null; - if (isArray(thing)) return thing; - let i = thing.length; - if (!isNumber(i)) return null; - const arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; -} - -/** - * Checking if the Uint8Array exists and if it does, it returns a function that checks if the - * thing passed in is an instance of Uint8Array - * - * @param {TypedArray} - * - * @returns {Array} - */ -// eslint-disable-next-line func-names -const isTypedArray = (TypedArray => { - // eslint-disable-next-line func-names - return thing => { - return TypedArray && thing instanceof TypedArray; - }; -})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); - -/** - * For each entry in the object, call the function with the key and value. - * - * @param {Object} obj - The object to iterate over. - * @param {Function} fn - The function to call for each entry. - * - * @returns {void} - */ -const forEachEntry = (obj, fn) => { - const generator = obj && obj[Symbol.iterator]; - - const iterator = generator.call(obj); - - let result; - - while ((result = iterator.next()) && !result.done) { - const pair = result.value; - fn.call(obj, pair[0], pair[1]); - } -} - -/** - * It takes a regular expression and a string, and returns an array of all the matches - * - * @param {string} regExp - The regular expression to match against. - * @param {string} str - The string to search. - * - * @returns {Array} - */ -const matchAll = (regExp, str) => { - let matches; - const arr = []; - - while ((matches = regExp.exec(str)) !== null) { - arr.push(matches); - } - - return arr; -} - -/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ -const isHTMLForm = kindOfTest('HTMLFormElement'); - -const toCamelCase = str => { - return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, - function replacer(m, p1, p2) { - return p1.toUpperCase() + p2; - } - ); -}; - -/* Creating a function that will check if an object has a property. */ -const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); - -/** - * Determine if a value is a RegExp object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a RegExp object, otherwise false - */ -const isRegExp = kindOfTest('RegExp'); - -const reduceDescriptors = (obj, reducer) => { - const descriptors = Object.getOwnPropertyDescriptors(obj); - const reducedDescriptors = {}; - - forEach(descriptors, (descriptor, name) => { - let ret; - if ((ret = reducer(descriptor, name, obj)) !== false) { - reducedDescriptors[name] = ret || descriptor; - } - }); - - Object.defineProperties(obj, reducedDescriptors); -} - -/** - * Makes all methods read-only - * @param {Object} obj - */ - -const freezeMethods = (obj) => { - reduceDescriptors(obj, (descriptor, name) => { - // skip restricted props in strict mode - if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { - return false; - } - - const value = obj[name]; - - if (!isFunction(value)) return; - - descriptor.enumerable = false; - - if ('writable' in descriptor) { - descriptor.writable = false; - return; - } - - if (!descriptor.set) { - descriptor.set = () => { - throw Error('Can not rewrite read-only method \'' + name + '\''); - }; - } - }); -} - -const toObjectSet = (arrayOrString, delimiter) => { - const obj = {}; - - const define = (arr) => { - arr.forEach(value => { - obj[value] = true; - }); - } - - isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); - - return obj; -} - -const noop = () => {} - -const toFiniteNumber = (value, defaultValue) => { - value = +value; - return Number.isFinite(value) ? value : defaultValue; -} - -const ALPHA = 'abcdefghijklmnopqrstuvwxyz' - -const DIGIT = '0123456789'; - -const ALPHABET = { - DIGIT, - ALPHA, - ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT -} - -const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { - let str = ''; - const {length} = alphabet; - while (size--) { - str += alphabet[Math.random() * length|0] - } - - return str; -} - -/** - * If the thing is a FormData object, return true, otherwise return false. - * - * @param {unknown} thing - The thing to check. - * - * @returns {boolean} - */ -function isSpecCompliantForm(thing) { - return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); -} - -const toJSONObject = (obj) => { - const stack = new Array(10); - - const visit = (source, i) => { - - if (isObject(source)) { - if (stack.indexOf(source) >= 0) { - return; - } - - if(!('toJSON' in source)) { - stack[i] = source; - const target = isArray(source) ? [] : {}; - - forEach(source, (value, key) => { - const reducedValue = visit(value, i + 1); - !isUndefined(reducedValue) && (target[key] = reducedValue); - }); - - stack[i] = undefined; - - return target; - } - } - - return source; - } - - return visit(obj, 0); -} - -const isAsyncFn = kindOfTest('AsyncFunction'); - -const isThenable = (thing) => - thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - isArray, - isArrayBuffer, - isBuffer, - isFormData, - isArrayBufferView, - isString, - isNumber, - isBoolean, - isObject, - isPlainObject, - isUndefined, - isDate, - isFile, - isBlob, - isRegExp, - isFunction, - isStream, - isURLSearchParams, - isTypedArray, - isFileList, - forEach, - merge, - extend, - trim, - stripBOM, - inherits, - toFlatObject, - kindOf, - kindOfTest, - endsWith, - toArray, - forEachEntry, - matchAll, - isHTMLForm, - hasOwnProperty, - hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors, - freezeMethods, - toObjectSet, - toCamelCase, - noop, - toFiniteNumber, - findKey, - global: _global, - isContextDefined, - ALPHABET, - generateString, - isSpecCompliantForm, - toJSONObject, - isAsyncFn, - isThenable -}); - - -/***/ }), - -/***/ "../node_modules/fast-copy/dist/esm/index.mjs": -/*!****************************************************!*\ - !*** ../node_modules/fast-copy/dist/esm/index.mjs ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ copyStrict: () => (/* binding */ copyStrict), -/* harmony export */ createCopier: () => (/* binding */ createCopier), -/* harmony export */ createStrictCopier: () => (/* binding */ createStrictCopier), -/* harmony export */ "default": () => (/* binding */ index) -/* harmony export */ }); -var toStringFunction = Function.prototype.toString; -var create = Object.create; -var toStringObject = Object.prototype.toString; -/** - * @classdesc Fallback cache for when WeakMap is not natively supported - */ -var LegacyCache = /** @class */ (function () { - function LegacyCache() { - this._keys = []; - this._values = []; - } - LegacyCache.prototype.has = function (key) { - return !!~this._keys.indexOf(key); - }; - LegacyCache.prototype.get = function (key) { - return this._values[this._keys.indexOf(key)]; - }; - LegacyCache.prototype.set = function (key, value) { - this._keys.push(key); - this._values.push(value); - }; - return LegacyCache; -}()); -function createCacheLegacy() { - return new LegacyCache(); -} -function createCacheModern() { - return new WeakMap(); -} -/** - * Get a new cache object to prevent circular references. - */ -var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy; -/** - * Get an empty version of the object with the same prototype it has. - */ -function getCleanClone(prototype) { - if (!prototype) { - return create(null); - } - var Constructor = prototype.constructor; - if (Constructor === Object) { - return prototype === Object.prototype ? {} : create(prototype); - } - if (Constructor && - ~toStringFunction.call(Constructor).indexOf('[native code]')) { - try { - return new Constructor(); - } - catch (_a) { } - } - return create(prototype); -} -function getRegExpFlagsLegacy(regExp) { - var flags = ''; - if (regExp.global) { - flags += 'g'; - } - if (regExp.ignoreCase) { - flags += 'i'; - } - if (regExp.multiline) { - flags += 'm'; - } - if (regExp.unicode) { - flags += 'u'; - } - if (regExp.sticky) { - flags += 'y'; - } - return flags; -} -function getRegExpFlagsModern(regExp) { - return regExp.flags; -} -/** - * Get the flags to apply to the copied regexp. - */ -var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy; -function getTagLegacy(value) { - var type = toStringObject.call(value); - return type.substring(8, type.length - 1); -} -function getTagModern(value) { - return value[Symbol.toStringTag] || getTagLegacy(value); -} -/** - * Get the tag of the value passed, so that the correct copier can be used. - */ -var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy; - -var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols; -var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable; -var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function'; -function getStrictPropertiesModern(object) { - return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)); -} -/** - * Get the properites used when copying objects strictly. This includes both keys and symbols. - */ -var getStrictProperties = SUPPORTS_SYMBOL - ? getStrictPropertiesModern - : getOwnPropertyNames; -/** - * Striclty copy all properties contained on the object. - */ -function copyOwnPropertiesStrict(value, clone, state) { - var properties = getStrictProperties(value); - for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) { - property = properties[index]; - if (property === 'callee' || property === 'caller') { - continue; - } - descriptor = getOwnPropertyDescriptor(value, property); - if (!descriptor) { - // In extra edge cases where the property descriptor cannot be retrived, fall back to - // the loose assignment. - clone[property] = state.copier(value[property], state); - continue; - } - // Only clone the value if actually a value, not a getter / setter. - if (!descriptor.get && !descriptor.set) { - descriptor.value = state.copier(descriptor.value, state); - } - try { - defineProperty(clone, property, descriptor); - } - catch (error) { - // Tee above can fail on node in edge cases, so fall back to the loose assignment. - clone[property] = descriptor.value; - } - } - return clone; -} -/** - * Deeply copy the indexed values in the array. - */ -function copyArrayLoose(array, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(array, clone); - for (var index = 0, length_2 = array.length; index < length_2; ++index) { - clone[index] = state.copier(array[index], state); - } - return clone; -} -/** - * Deeply copy the indexed values in the array, as well as any custom properties. - */ -function copyArrayStrict(array, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(array, clone); - return copyOwnPropertiesStrict(array, clone, state); -} -/** - * Copy the contents of the ArrayBuffer. - */ -function copyArrayBuffer(arrayBuffer, _state) { - return arrayBuffer.slice(0); -} -/** - * Create a new Blob with the contents of the original. - */ -function copyBlob(blob, _state) { - return blob.slice(0, blob.size, blob.type); -} -/** - * Create a new DataView with the contents of the original. - */ -function copyDataView(dataView, state) { - return new state.Constructor(copyArrayBuffer(dataView.buffer)); -} -/** - * Create a new Date based on the time of the original. - */ -function copyDate(date, state) { - return new state.Constructor(date.getTime()); -} -/** - * Deeply copy the keys and values of the original. - */ -function copyMapLoose(map, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(map, clone); - map.forEach(function (value, key) { - clone.set(key, state.copier(value, state)); - }); - return clone; -} -/** - * Deeply copy the keys and values of the original, as well as any custom properties. - */ -function copyMapStrict(map, state) { - return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state); -} -function copyObjectLooseLegacy(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = state.copier(object[key], state); - } - } - return clone; -} -function copyObjectLooseModern(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - clone[key] = state.copier(object[key], state); - } - } - var symbols = getOwnPropertySymbols(object); - for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) { - symbol = symbols[index]; - if (propertyIsEnumerable.call(object, symbol)) { - clone[symbol] = state.copier(object[symbol], state); - } - } - return clone; -} -/** - * Deeply copy the properties (keys and symbols) and values of the original. - */ -var copyObjectLoose = SUPPORTS_SYMBOL - ? copyObjectLooseModern - : copyObjectLooseLegacy; -/** - * Deeply copy the properties (keys and symbols) and values of the original, as well - * as any hidden or non-enumerable properties. - */ -function copyObjectStrict(object, state) { - var clone = getCleanClone(state.prototype); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(object, clone); - return copyOwnPropertiesStrict(object, clone, state); -} -/** - * Create a new primitive wrapper from the value of the original. - */ -function copyPrimitiveWrapper(primitiveObject, state) { - return new state.Constructor(primitiveObject.valueOf()); -} -/** - * Create a new RegExp based on the value and flags of the original. - */ -function copyRegExp(regExp, state) { - var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp)); - clone.lastIndex = regExp.lastIndex; - return clone; -} -/** - * Return the original value (an identity function). - * - * @note - * THis is used for objects that cannot be copied, such as WeakMap. - */ -function copySelf(value, _state) { - return value; -} -/** - * Deeply copy the values of the original. - */ -function copySetLoose(set, state) { - var clone = new state.Constructor(); - // set in the cache immediately to be able to reuse the object recursively - state.cache.set(set, clone); - set.forEach(function (value) { - clone.add(state.copier(value, state)); - }); - return clone; -} -/** - * Deeply copy the values of the original, as well as any custom properties. - */ -function copySetStrict(set, state) { - return copyOwnPropertiesStrict(set, copySetLoose(set, state), state); -} - -var isArray = Array.isArray; -var assign = Object.assign; -var getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; }); -var DEFAULT_LOOSE_OPTIONS = { - array: copyArrayLoose, - arrayBuffer: copyArrayBuffer, - blob: copyBlob, - dataView: copyDataView, - date: copyDate, - error: copySelf, - map: copyMapLoose, - object: copyObjectLoose, - regExp: copyRegExp, - set: copySetLoose, -}; -var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, { - array: copyArrayStrict, - map: copyMapStrict, - object: copyObjectStrict, - set: copySetStrict, -}); -/** - * Get the copiers used for each specific object tag. - */ -function getTagSpecificCopiers(options) { - return { - Arguments: options.object, - Array: options.array, - ArrayBuffer: options.arrayBuffer, - Blob: options.blob, - Boolean: copyPrimitiveWrapper, - DataView: options.dataView, - Date: options.date, - Error: options.error, - Float32Array: options.arrayBuffer, - Float64Array: options.arrayBuffer, - Int8Array: options.arrayBuffer, - Int16Array: options.arrayBuffer, - Int32Array: options.arrayBuffer, - Map: options.map, - Number: copyPrimitiveWrapper, - Object: options.object, - Promise: copySelf, - RegExp: options.regExp, - Set: options.set, - String: copyPrimitiveWrapper, - WeakMap: copySelf, - WeakSet: copySelf, - Uint8Array: options.arrayBuffer, - Uint8ClampedArray: options.arrayBuffer, - Uint16Array: options.arrayBuffer, - Uint32Array: options.arrayBuffer, - Uint64Array: options.arrayBuffer, - }; -} -/** - * Create a custom copier based on the object-specific copy methods passed. - */ -function createCopier(options) { - var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options); - var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions); - var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object; - function copier(value, state) { - state.prototype = state.Constructor = undefined; - if (!value || typeof value !== 'object') { - return value; - } - if (state.cache.has(value)) { - return state.cache.get(value); - } - state.prototype = getPrototypeOf(value); - state.Constructor = state.prototype && state.prototype.constructor; - // plain objects - if (!state.Constructor || state.Constructor === Object) { - return object(value, state); - } - // arrays - if (isArray(value)) { - return array(value, state); - } - var tagSpecificCopier = tagSpecificCopiers[getTag(value)]; - if (tagSpecificCopier) { - return tagSpecificCopier(value, state); - } - return typeof value.then === 'function' ? value : object(value, state); - } - return function copy(value) { - return copier(value, { - Constructor: undefined, - cache: createCache(), - copier: copier, - prototype: undefined, - }); - }; -} -/** - * Create a custom copier based on the object-specific copy methods passed, defaulting to the - * same internals as `copyStrict`. - */ -function createStrictCopier(options) { - return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options)); -} -/** - * Copy an value deeply as much as possible, where strict recreation of object properties - * are maintained. All properties (including non-enumerable ones) are copied with their - * original property descriptors on both objects and arrays. - */ -var copyStrict = createStrictCopier({}); -/** - * Copy an value deeply as much as possible. - */ -var index = createCopier({}); - - -//# sourceMappingURL=index.mjs.map - - -/***/ }), - -/***/ "../node_modules/mime-db/db.json": -/*!***************************************!*\ - !*** ../node_modules/mime-db/db.json ***! - \***************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}'); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -(() => { -"use strict"; -/*!**********************************!*\ - !*** ./contentful-management.ts ***! - \**********************************/ -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ RestAdapter: () => (/* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_7__.RestAdapter), -/* harmony export */ ScheduledActionReferenceFilters: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.ScheduledActionReferenceFilters), -/* harmony export */ WorkflowStepPermissionAction: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionAction), -/* harmony export */ WorkflowStepPermissionEffect: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionEffect), -/* harmony export */ WorkflowStepPermissionType: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_8__.WorkflowStepPermissionType), -/* harmony export */ asIterator: () => (/* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__.asIterator), -/* harmony export */ createClient: () => (/* binding */ createClient), -/* harmony export */ editorInterfaceDefaults: () => (/* reexport module object */ _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__), -/* harmony export */ isDraft: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isDraft), -/* harmony export */ isPublished: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isPublished), -/* harmony export */ isUpdated: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_6__.isUpdated) -/* harmony export */ }); -/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js"); -/* harmony import */ var _create_adapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-adapter */ "./create-adapter.ts"); -/* harmony import */ var _create_contentful_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-contentful-api */ "./create-contentful-api.ts"); -/* harmony import */ var _plain_plain_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plain/plain-client */ "./plain/plain-client.ts"); -/* harmony import */ var _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants/editor-interface-defaults */ "./constants/editor-interface-defaults/index.ts"); -/* harmony import */ var _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plain/as-iterator */ "./plain/as-iterator.ts"); -/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts"); -/* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts"); -/* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./export-types */ "./export-types.ts"); -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Contentful Management API SDK. Allows you to create instances of a client - * with access to the Contentful Content Management API. - * @packageDocumentation - */ - - - - - - - - - - - - - -/** - * @deprecated - */ - -/** - * Create a client instance - * @param params - Client initialization parameters - * - * ```javascript - * const client = contentfulManagement.createClient({ - * accessToken: 'myAccessToken' - * }) - * ``` - */ - -// Usually, overloads with more specific signatures should come first but some IDEs are often not able to handle overloads with separate TSDocs correctly -/** - * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option. - */ - -function createClient(params, opts = {}) { - const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js'; - const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( - // @ts-expect-error - `${sdkMain}/${"11.25.3"}`, params.application, params.integration, params.feature); - const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, { - userAgent - })); - - // Parameters and ReturnType only return the types of the last overload - // https://github.com/microsoft/TypeScript/issues/26591 - // @ts-expect-error - const makeRequest = options => adapter.makeRequest(_objectSpread(_objectSpread({}, options), {}, { - userAgent - })); - if (opts.type === 'plain') { - return (0,_plain_plain_client__WEBPACK_IMPORTED_MODULE_3__.createPlainClient)(makeRequest, opts.defaults); - } else { - return (0,_create_contentful_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest); - } -} -})(); - -module.exports = __webpack_exports__; -/******/ })() -; -//# sourceMappingURL=contentful-management.node.js.map \ No newline at end of file diff --git a/node_modules/contentful-management/dist/contentful-management.node.js.map b/node_modules/contentful-management/dist/contentful-management.node.js.map deleted file mode 100644 index 87284eff..00000000 --- a/node_modules/contentful-management/dist/contentful-management.node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contentful-management.node.js","mappings":";;;;;;;;;AAAA;AACA;AACA,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,kBAAkB,mBAAO,CAAC,uDAAa;AACvC,kBAAkB,mBAAO,CAAC,qEAAoB;AAC9C;;;;;;;;;;;ACLA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC5BA,YAAY,mBAAO,CAAC,yDAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB,aAAa,UAAU;AACvB;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,iBAAiB;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;;;;;;;;;;ACjCA;;AAEA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACzBA,YAAY,mBAAO,CAAC,yDAAY;AAChC,YAAY,mBAAO,CAAC,yDAAY;AAChC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,aAAa,eAAe;AAC5B,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;AC1EA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,eAAe;AAC5B;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA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ACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACrE4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,GAAuC,GAAGA,CACrDC,IAAmB,EACnBC,MAA2B,KACxB;EACH,OAAOH,qCAAO,CAAkBE,IAAI,EAAG,2BAA0BC,MAAM,CAACC,OAAQ,EAAC,CAAC;AACpF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,OAA+C,GAAGA,CAC7DH,IAAmB,EACnBC,MAAmB,KAChB;EACH,OAAOH,qCAAO,CAAkCE,IAAI,EAAE,yBAAyB,EAAE;IAC/EC,MAAM,EAAEA,MAAM,CAACG;EACjB,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,yBAAmF,GAAGA,CACjGL,IAAmB,EACnBM,OAAW,EACXC,OAAuC,EACvCC,OAAgC,KAC7B;EACH,OAAOV,sCAAQ,CAAkBE,IAAI,EAAE,yBAAyB,EAAEO,OAAO,EAAE;IACzEC;EACF,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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kC,EAAE;UACzBwF;QACF;MACF,CAAC,CAAC,CAACxB,IAAI,CAAEzG,IAAI,IAAK+hB,cAAc,CAAIlN,WAAW,EAAE7U,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACI0iB,uBAAuBA,CAACzf,OAAiC,EAAE;MACzD,MAAMrE,GAAqB,GAAG,IAAI,CAACwW,aAAa,CAAC,CAAC;MAElD,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,YAAY;QACxBC,MAAM,EAAE,SAAS;QACjBhW,MAAM,EAAE;UACNc,OAAO,EAAEjB,GAAG,CAAC2B,GAAG,CAACwb,KAAK,CAACxb,GAAG,CAACkC,EAAE;UAC7B9B,aAAa,EAAE/B,GAAG,CAAC2B,GAAG,CAACkC;QACzB,CAAC;QACDQ;MACF,CAAC,CAAC,CAACwD,IAAI,CAAEzG,IAAI,IAAK+hB,cAAc,CAA2BlN,WAAW,EAAE7U,IAAI,CAAC,CAAC;IAChF,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACI2iB,wBAAwBA,CAAC1f,OAAkC,EAAE;MAC3D,MAAMrE,GAAqB,GAAG,IAAI,CAACwW,aAAa,CAAC,CAAC;MAElD,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,YAAY;QACxBC,MAAM,EAAE,UAAU;QAClBhW,MAAM,EAAE;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIqlB,WAAWA,CAACnmB,KAA2B,EAAE;MACvC,MAAMN,GAAqB,GAAG,IAAI,CAACwW,aAAa,CAAC,CAAC;MAElD,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,SAAS;QACrBC,MAAM,EAAE,OAAO;QACfhW,MAAM,EAAE;UACNc,OAAO,EAAEjB,GAAG,CAAC2B,GAAG,CAACwb,KAAK,CAACxb,GAAG,CAACkC,EAAE;UAC7B9B,aAAa,EAAE/B,GAAG,CAAC2B,GAAG,CAACkC,EAAE;UACzBvD;QACF;MACF,CAAC,CAAC,CAACuH,IAAI,CAAEzG,IAAI,IAAKigB,wEAAqB,CAACpL,WAAW,EAAE7U,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIslB,aAAaA,CAACriB,OAAuB,EAAE;MACrC,MAAMrE,GAAqB,GAAG,IAAI,CAACwW,aAAa,CAAC,CAAC;MAElD,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,SAAS;QACrBC,MAAM,EAAE,QAAQ;QAChBhW,MAAM,EAAE;UACNc,OAAO,EAAEjB,GAAG,CAAC2B,GAAG,CAACwb,KAAK,CAACxb,GAAG,CAACkC,EAAE;UAC7B9B,aAAa,EAAE/B,GAAG,CAAC2B,GAAG,CAACkC;QACzB,CAAC;QACDQ;MACF,CAAC,CAAC,CAACwD,IAAI,CAAEzG,IAAI,IAAKggB,8DAAW,CAACnL,WAAW,EAAE7U,IAAI,CAAC,CAAC;IACnD,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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e;MAEhD,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,iBAAiB;QAC7BC,MAAM,EAAE,KAAK;QACbhW,MAAM,EAAE;UACNc,OAAO,EAAEkc,KAAK,CAACxb,GAAG,CAACkC,EAAE;UACrB9B,aAAa;UACbuP;QACF;MACF,CAAC,CAAC,CAACzJ,IAAI,CAAEymB,eAAe,IAAKF,mBAAmB,CAACnY,WAAW,EAAEqY,eAAe,CAAC,CAAC;IACjF,CAAC;IAED;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIyC,qBAAqBA,CAAC3vB,IAAuC,EAAE;MAC7D,MAAMpB,GAAG,GAAG,IAAI,CAACwW,aAAa,CAAC,CAAe;MAC9C,OAAOP,WAAW,CAAC;QACjBC,UAAU,EAAE,iBAAiB;QAC7BC,MAAM,EAAE,QAAQ;QAChBhW,MAAM,EAAE;UAAEc,OAAO,EAAEjB,GAAG,CAAC2B,GAAG,CAACkC;QAAG,CAAC;QAC/BQ,OAAO,EAAEjD;MACX,CAAC,CAAC,CAACyG,IAAI,CAAEtE,QAAQ,IAAK6qB,mBAAmB,CAACnY,WAAW,EAAE1S,QAAQ,CAAC,CAAC;IACnE,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACIytB,qBAAqBA,CAAC;MACpB1f,iBAAiB;MACjBjN,OAAO;MACPxC;IAKF,CAAC,EAAE;MACD,MAAMovB,UAAU,GAAG,IAA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AgB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/M6B;AACT;AACmB;AACJ;AACc;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY,kEAAkE;AACtF,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C,wBAAwB,uCAAuC;AAC/D;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,iDAAS;AAClB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,cAAc,sDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA,GAAG;AACH;AACA,yBAAyB,sDAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,wBAAwB;AACnC,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mDAAY;AAC3B;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,cAAc,eAAe;AAC7B;AACA;AACA,mEAAmE,EAAE,qDAAI;AACzE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA,kBAAkB,qDAAI;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,UAAU,MAAM;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qDAAI;AACjB;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,2DAAa,eAAe,2DAAa;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2DAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAE6H;;;;;;;;;;;;;;;;AClvB7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB;AACzB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,kBAAkB;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F,kBAAkB;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,kBAAkB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAE2B;AAC3B;;;;;;;;;;;;AC1Va;;AAEb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;ACtBa;;AAEb,gBAAgB,mBAAO,CAAC,yFAAa;AACrC,YAAY,mBAAO,CAAC,iFAAS;AAC7B,cAAc,mBAAO,CAAC,qFAAW;;AAEjC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,iFAAS;;AAE7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,+BAA+B;;AAExE;AACA,wCAAwC;;AAExC;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,mCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB;AACxB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACvQa;;AAEb,qBAAqB,mBAAO,CAAC,2DAAc;AAC3C,YAAY,mBAAO,CAAC,iFAAS;AAC7B,cAAc,mBAAO,CAAC,qFAAW;AACjC;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gEAAgE;AACrF,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,oBAAoB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;AC/Ta;;AAEb,cAAc,mBAAO,CAAC,qFAAW;;AAEjC;AACA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,gBAAgB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAiD,EAAE;AACnD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,kDAAkD,EAAE;AACpD;AACA,SAAS;AACT;;AAEA;AACA,oBAAoB,mBAAmB;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,OAAO,UAAU,aAAa;AACjD;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;;AAEA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA,6BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC3PA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;;ACjKa;;AAEb,wBAAwB,2EAA2E,kCAAkC,wBAAwB,OAAO,kCAAkC,mIAAmI;;AAEzU;;AAEA;AACA;AACA;AACA,WAAW;AACX,kBAAkB;AAClB,YAAY;AACZ,YAAY;AACZ,iBAAiB;AACjB,eAAe;AACf;AACA;AACA;;AAEA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0CAA0C;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;;;AAGA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI,eAAe;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,IAAI,iBAAiB;AACrB;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe;AACnB;AACA;AACA;;AAEA,iBAAiB,mBAAO,CAAC,qDAAU;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;;;;;;;;;;;AClLa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,mBAAO,CAAC,0DAAI;AACrC;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,aAAa,eAAe;AAC5B;AACA;;AAEA;AACA;;AAEA,oBAAoB,sBAAsB;AAC1C;AACA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0EAA0E,aAAa;AACvF;AACA;;AAEA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA;;AAEA;AACA,OAAO,GAAG;;AAEV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA,gBAAgB,kCAAkC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,aAAa;AACb;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gDAAgD,SAAS;AACzD;AACA;AACA;AACA;;AAEA,gDAAgD,SAAS;AACzD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,aAAa;AACb;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACvPa;;AAEb;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAwC;AAC1C,EAAE;AACF,EAAE,0FAAqC;AACvC;;;;;;;;;;;;;ACVa;;AAEb;AACA;AACA;AACA,UAAU,mBAAO,CAAC,gBAAK;;AAEvB,WAAW,mBAAO,CAAC,kBAAM;AACzB;AACA;AACA;;;AAGA,YAAY;AACZ,WAAW;AACX,kBAAkB;AAClB,YAAY;AACZ,YAAY;AACZ,iBAAiB;AACjB;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;AACA;AACA,sBAAsB,mBAAO,CAAC,+DAAgB;;AAE9C;AACA,IAAI,cAAc;AAClB;AACA,EAAE,iBAAiB,4DAA4D;;AAE/E;AACA;AACA;AACA;AACA;;;AAGA,mBAAmB;AACnB;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG,GAAG;;AAEN;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,CAAC,IAAI;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C,EAAE;AACjD,0CAA0C;AAC1C;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;;;AAGA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;;AAEA,iBAAiB,mBAAO,CAAC,qDAAU;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,oBAAoB;AAC9C;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;;;;;;;;;;AC/KA,aAAa,oDAAwB;AACrC,WAAW,mBAAO,CAAC,kBAAM;;AAEzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC1GA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,iDAAO;AAC7B;AACA,oBAAoB;AACpB;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;;;;;;;;;;;ACdA,UAAU,mBAAO,CAAC,gBAAK;AACvB;AACA,WAAW,mBAAO,CAAC,kBAAM;AACzB,YAAY,mBAAO,CAAC,oBAAO;AAC3B,eAAe,sDAA0B;AACzC,aAAa,mBAAO,CAAC,sBAAQ;AAC7B,YAAY,mBAAO,CAAC,0DAAS;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,cAAc;AACrD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,gCAAgC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,uBAAuB,wCAAwC;AAC/D,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD,mBAAmB;;AAEnE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,sEAAsE;AACvF,aAAa,kEAAkE;AAC/E,KAAK;AACL,GAAG;AACH;AACA;;AAEA,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,OAAO;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,4BAA4B;AAC5D;AACA;AACA,gCAAgC,4BAA4B;AAC5D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,0BAA0B;AAClD,mBAAmB;;;;;;;;;;;AC/pBnB,qBAAqB,mBAAO,CAAC,+EAAiB;AAC9C,WAAW,mBAAO,CAAC,kBAAM;AACzB,WAAW,mBAAO,CAAC,kBAAM;AACzB,WAAW,mBAAO,CAAC,kBAAM;AACzB,YAAY,mBAAO,CAAC,oBAAO;AAC3B,eAAe,6CAAoB;AACnC,SAAS,mBAAO,CAAC,cAAI;AACrB,aAAa,oDAAwB;AACrC,WAAW,mBAAO,CAAC,uDAAY;AAC/B,eAAe,mBAAO,CAAC,mDAAU;AACjC,eAAe,mBAAO,CAAC,gEAAe;;AAEtC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,eAAe;AACf;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,IAAI;AACJ;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;AAC1C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8CAA8C,SAAS;AACvD;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;ACpfA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;ACTa;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,cAAc;AAClC;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qCAAqC,oBAAoB;AACzD;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA,iFAAiF,sCAAsC;;AAEvH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACnFa;;AAEb,qBAAqB,mBAAO,CAAC,yEAAkB;;AAE/C;;;;;;;;;;;;ACJa;;AAEb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,8CAA8C;AAChF,GAAG;AACH;;AAEA;AACA;AACA;AACA,UAAU;AACV,GAAG;AACH,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,IAAI;AACJ;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,EAAE;AACF;;AAEA,iBAAiB,mBAAO,CAAC,yDAAa;AACtC,eAAe,mBAAO,CAAC,qDAAW;;AAElC;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,GAAG;AACH,gDAAgD;AAChD,GAAG;AACH,sDAAsD;AACtD,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW,mBAAO,CAAC,6DAAe;AAClC,aAAa,mBAAO,CAAC,6CAAK;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC9Va;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACPa;;AAEb;AACA;AACA;;AAEA;;AAEA;AACA,UAAU,iBAAiB,yBAAyB,kBAAkB;AACtE;;;;;;;;;;;;ACVa;;AAEb;AACA,oBAAoB,mBAAO,CAAC,qDAAS;;AAErC;AACA,yCAAyC;AACzC,qCAAqC;AACrC,8CAA8C;AAC9C,0CAA0C;;AAE1C;AACA;;;;;;;;;;;;ACZa;;AAEb;AACA;AACA,2FAA2F;AAC3F,4CAA4C;;AAE5C;AACA;AACA;AACA,gCAAgC;;AAEhC,kEAAkE;AAClE,qEAAqE;;AAErE;AACA,iCAAiC;AACjC;AACA,uCAAuC;;AAEvC,2DAA2D;AAC3D,+DAA+D;;AAE/D;AACA;AACA,oBAAoB,gBAAgB;AACpC,2EAA2E;;AAE3E,yGAAyG;;AAEzG;AACA,6CAA6C;;AAE7C,8DAA8D;;AAE9D;AACA;AACA,uEAAuE;AACvE;;AAEA;AACA;;;;;;;;;;;;ACzCa;;AAEb,WAAW,mBAAO,CAAC,6DAAe;;AAElC;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gBAAgB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wFAAqC;;;;;;;;;;;;ACXrC;AACA;AACA;AACA;AACA;AACA;;AAEY;;AAEZ;AACA;AACA;AACA;;AAEA,SAAS,mBAAO,CAAC,iDAAS;AAC1B,cAAc,iDAAuB;;AAErC;AACA;AACA;AACA;;AAEA,mCAAmC,SAAS;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA,eAAe;AACf,gBAAgB,KAAK;AACrB,mBAAmB;AACnB,iBAAiB;AACjB,kBAAkB;AAClB,cAAc;AACd,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;AC3LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,EAAE;AACvC;AACA,yDAAyD;AACzD;AACA;AACA;AACA,2GAA2G,EAAE;AAC7G;AACA;AACA;AACA;;AAEA,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAuD;AACvD;AACA;AACA,kGAAkG,gCAAgC;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uGAAuG;AAC7H;AACA,kCAAkC;AAClC,kBAAkB,uDAAuD;AACzE;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA,2BAA2B,iCAAiC;AAC5D;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iDAAiD;AACjD;;AAEA,wBAAwB;AACxB,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,iEAAiE;AACjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA,aAAa;AACb;AACA;;AAEA;AACA,sBAAsB;AACtB,mCAAmC,OAAO;AAC1C,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAsB,GAAG;AACzB;;AAEA;AACA;AACA,oCAAoC,sBAAsB;AAC1D;;AAEA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA,2BAA2B;AAC3B,8BAA8B,YAAY;AAC1C,wEAAwE,YAAY;AACpF;AACA;AACA,sBAAsB;AACtB,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACngBA,gEAAwC;;;;;;;;;;;;ACA3B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,yBAAyB;;;;;;;;;;;;ACrGZ;;AAEb,eAAe,6CAAoB;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,WAAW,eAAe;AAC1B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;;;;;;;;;;;;AC3GT;;AAEb,mBAAmB,mBAAO,CAAC,6DAAe;AAC1C,gBAAgB,mBAAO,CAAC,mEAAqB;AAC7C,cAAc,mBAAO,CAAC,+DAAgB;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,6BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB;AACxB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3Ha;AACb,WAAW,mBAAO,CAAC,cAAI;AACvB,gBAAgB,mBAAO,CAAC,mDAAU;;AAElC;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC,GAAG;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClIA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;ACAgC;AACI;AACF;AACa;;AAE/C;AACA,QAAQ,gDAAW;AACnB,OAAO,+CAAU;AACjB;;AAEA,iDAAK;AACL;AACA;AACA,yCAAyC,MAAM;AAC/C,MAAM;AACN;AACA;AACA,8CAA8C,MAAM;AACpD;AACA,CAAC;;AAED,sCAAsC,OAAO;;AAE7C,sCAAsC,iDAAK;;AAE3C,iEAAe;AACf;AACA,eAAe,iDAAK;;AAEpB,WAAW,QAAQ;AACnB;AACA;;AAEA;;AAEA,oBAAoB,YAAY;AAChC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,oBAAoB,2DAAU,qBAAqB,GAAG;AACtD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,yCAAyC,IAAI;AAC7C;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,2DAAU;AAC1B;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EY;;AAEqB;AACO;AACY;AACL;AACF;AACtB;AACE;AACF;AACuB;AACvB;AACe;AACwB;AAChB;AACQ;AACX;AACQ;AACxB;AACuB;AACmB;AAClC;AAC0B;AAChB;AACkC;AAC5B;;AAEpD;AACA,SAAS,2CAAc;AACvB,eAAe,2CAAc;AAC7B;;AAEA;AACA,SAAS,2CAAc;AACvB,eAAe,2CAAc;AAC7B;;AAEA,0BAA0B,iDAAK,YAAY,wDAA2B;;AAEtE,OAAO,sCAAsC,EAAE,6CAAe;;AAE9D;;AAEA,2BAA2B,0DAAQ;AACnC;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,kBAAkB;AAC7B,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,qBAAqB,8DAAc;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iEAAiE,iDAAK;;AAEtE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA,wBAAwB,gBAAgB;AACxC,OAAO,iDAAK;AACZ;AAC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CAAoC,2CAAc;AAClD;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM,SAAS,iDAAK;AACpB;AACA;AACA,aAAa,4CAAe,MAAM,iEAAQ;AAC1C,MAAM,kBAAkB,iDAAK;AAC7B;AACA;AACA,QAAQ,SAAS,iDAAK;AACtB;AACA,QAAQ,SAAS,iDAAK;AACtB;AACA,QAAQ;AACR,0BAA0B,4DAAU;AACpC;AACA,UAAU,4DAAU;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0BAA0B,4DAAU;AACpC;AACA,UAAU,4DAAU;AACpB;AACA;AACA;AACA;;AAEA,0BAA0B,iDAAK;;AAE/B,QAAQ,iDAAK;AACb;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,WAAW,iDAAK;AAChB,eAAe,4CAAe,aAAa,kBAAkB;AAC7D;;AAEA,aAAa,4CAAe,YAAY,yEAAoB;AAC5D;AACA,iBAAiB,iDAAK;AACtB,OAAO,IAAI,iDAAK;;AAEhB;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,aAAa,iEAAQ;AACrB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,kDAAkD;AAClE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK,iDAAK;;AAEV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,mCAAmC,kCAAK,GAAG,iCAAI;AAC/C,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,oCAAoC,yEAAoB;AACxD,kBAAkB,iDAAK;AACvB,mBAAmB,iDAAK;AACxB,SAAS;;AAET;AACA;AACA;AACA,WAAW;AACX,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,6CAAgB;;AAEvC;AACA;AACA;AACA;AACA,2BAA2B,8EAAyB;;AAEpD;AACA,uBAAuB,6CAAgB;;AAEvC;AACA;AACA;AACA;AACA;AACA,yBAAyB,wDAA2B;AACpD;AACA;AACA;AACA;;AAEA,4CAA4C,4CAAe,UAAU,iDAAK;;AAE1E,2BAA2B,4CAAe;AAC1C;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,qBAAqB,8DAAY;AACjC;AACA;AACA;;AAEA;AACA;AACA,QAAQ,4DAAM;AACd,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4DAAU;AACjC,cAAc,4DAAU;AACxB;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,0BAA0B,4DAAU;AACpC;AACA,YAAY,4DAAU;AACtB;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,iBAAiB,4DAAU;AAC3B,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iDAAK;AACpC;AACA;AACA;AACA,YAAY;AACZ,0BAA0B,4DAAU;AACpC;AACA,UAAU,4DAAM;AAChB,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,aAAa,4DAAU;AACvB,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,4DAAU;AAC7B;AACA,UAAU,4DAAU;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,kEAAoB;AACxE;AACA;AACA;AACA,mBAAmB,4DAAU;AAC7B;AACA,6CAA6C,4DAAU,aAAa,4DAAU;AAC9E;AACA;AACA;AACA;AACA,OAAO;AACP;;;AAGA;AACA,QAAQ,iDAAK;AACb;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,oBAAoB,iEAAa;AACjC;AACA,OAAO;;AAEP;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH,CAAC;;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5qBM;;AAEqB;AACO;AACK;AACE;AACK;AACS;AACC;AAChB;AACQ;AACC;AACZ;AACO;AACC;;AAEpD;AACA;AACA,uBAAuB,mEAAW;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,iEAAe;AACf;AACA;AACA,2BAA2B,6DAAY;AACvC,SAAS,6BAA6B;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,QAAQ,iDAAK;AACb,UAAU,0DAAQ,0BAA0B,0DAAQ;AACpD,8CAA8C;AAC9C,QAAQ;AACR;AACA,oEAAoE;AACpE,yFAAyF;AACzF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,kEAAa;;AAElC,8CAA8C,gEAAQ;;AAEtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,6DAAY;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,2DAAM;AACZ;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA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,aAAa,eAAe;AAC5B;AACA;AACA;AACA,EAAE,2DAAU,oDAAoD,2DAAU;AAC1E;AACA;;AAEA,iDAAK,yBAAyB,2DAAU;AACxC;AACA,CAAC;;AAED,iEAAe,aAAa,EAAC;;;;;;;;;;;;;;;;ACxBhB;;AAEE;AACf;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACJa;;AAEqB;AACY;AACW;AACN;AACR;AACI;AACC;AACH;;AAE7C,mBAAmB,6DAAS;;AAE5B;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,mBAAmB,8DAAkB;AACrC,oBAAoB,8DAAkB;AACtC;AACA;;AAEA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,SAAS;AACtB;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,aAAa,2DAAW;;AAExB,WAAW,yCAAyC;;AAEpD;AACA,MAAM,6DAAS;AACf;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,UAAU,iDAAK;AACf;AACA;AACA;AACA,QAAQ;AACR,QAAQ,6DAAS;AACjB;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC,iDAAK;AACzC;AACA;AACA;;AAEA,eAAe,iDAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,wDAAY;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,qBAAqB,2DAAe;AACpC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,2DAAe;AAC/B,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,2DAAW;AACxB,qBAAqB,6DAAa;AAClC,WAAW,gEAAQ;AACnB;AACA;;AAEA;AACA,iDAAK;AACL;AACA;AACA,wBAAwB,2DAAW,aAAa;AAChD;AACA;AACA,yBAAyB;AACzB,KAAK;AACL;AACA,CAAC;;AAED,iDAAK;AACL;;AAEA;AACA;AACA,0BAA0B,2DAAW,aAAa;AAClD;AACA;AACA;AACA,UAAU,IAAI;AACd;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA,CAAC;;AAED,iEAAe,KAAK,EAAC;;;;;;;;;;;;;;;;;AChOR;;AAEmB;;AAEhC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iDAAK;AACnB;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,CAAC;;AAED;AACA,kDAAkD,YAAY;;AAE9D;AACA;AACA;;AAEA,EAAE,iDAAK;AACP;AACA,GAAG;AACH;AACA,GAAG;;AAEH;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iEAAe,UAAU,EAAC;;;;;;;;;;;;;;;;;;ACnGb;;AAEmB;AACsB;;AAEtD;;AAEA;AACA;AACA;;AAEA;AACA;A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ACA;AACA;;AAEA;AACA;;AAEA,IAAI,iDAAK;AACT,sEAAsE,iDAAK;AAC3E,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,IAAI,iDAAK;;AAET;AACA;AACA;;AAEA;;AAEA;AACA,iDAAK,6CAA6C,MAAM;AACxD,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,iDAAK;;AAEL,iEAAe,YAAY,EAAC;;;;;;;;;;;;;;;;;ACzSf;;AAEqB;;AAElC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,aAAa,UAAU;AACvB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB;AACA,eAAe;AACf;AACA;AACA,IAAI,iDAAK;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,iEAAe,kBAAkB,EAAC;;;;;;;;;;;;;;;;;;ACtErB;;AAE2C;AACJ;;AAEpD;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf,kBAAkB,qEAAa;AAC/B,WAAW,mEAAW;AACtB;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACpBa;;AAEkC;AACF;AACD;AACW;AACJ;AACJ;;AAE/C;AACA;AACA;AACA,WAAW,QAAQ;AACnB;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E;AAChE;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,wEAAgB;AAC/B;;AAEA,wBAAwB,iDAAK;AAC7B;;AAEA,eAAe,kEAAU;AACzB,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA,gBAAgB,iDAAK;AACrB;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,kBAAkB,2DAAU,SAAS,2DAAU;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,cAAc,0DAAQ;AACtB,UAAU,0DAAQ;AAClB,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAK;AACL;AACA,CAAC;;AAED,iEAAe,QAAQ,EAAC;;;;;;;;;;;;;;;;AC3JX;;AAEb,iEAAe;AACf;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACNK;;;;;;;;;;;;;;;;;;;ACAM;;AAEe;AACI;AACK;AACM;;AAE3C;;AAEA,mCAAmC,6CAAgB;AACnD;AACA,cAAc,iDAAK;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,iDAAK;AACnB,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,2DAAW;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA,+BAA+B,wDAAQ;AACvC;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iEAAe,oBAAoB,EAAC;;;;;;;;;;;;;;;;;AC9LvB;;AAE4B;;AAEzC;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,qBAAqB;AAChC;AACA,aAAa;AACb;AACA;AACA;;AAEA,YAAY,0DAAU;AACtB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA,GAAG;AACH;;AAEA,iEAAe,oBAAoB,EAAC;;;;;;;;;;;;;;;;ACzDpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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AACA,cAAc,QAAQ;AACtB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA,sBAAsB,iDAAK;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG,GAAG,EAAC;;;;;;;;;;;;;;;;;AClEM;;AAEqB;;AAElC;AACA;AACA,0BAA0B,iDAAK;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA,iEAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACtDW;;AAEE;AACf,0BAA0B,KAAK;AAC/B;AACA;;;;;;;;;;;;;;;;ACLA,OAAO,eAAe;;AAEtB;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA,iEAAe,QAAQ,EAAC;;;;;;;;;;;;;;;;ACdX;;AAEb;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,iEAAe,WAAW,EAAC;;;;;;;;;;;;;;;;ACtDd;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACe;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC3Ba;;AAEb;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA,iEAAe,QAAQ,EAAC;;;;;;;;;;;;;;;;;;;AChCX;;AAEmB;AACe;AAC/C;AACoE;;AAEpE;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA,SAAS,iDAAK,yBAAyB,iDAAK;AAC5C;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,SAAS,iDAAK;AACd;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA,aAAa;AACb;AACA;AACA,SAAS,iDAAK;AACd;;AAEA,mBAAmB,iDAAK,cAAc,iDAAK,IAAI;AAC/C;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,QAAQ;AACnB,WAAW,qBAAqB;AAChC;AACA;AACA;AACA;AACA,OAAO,iDAAK;AACZ;AACA;;AAEA;AACA,8BAA8B,0EAA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A;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA,wBAAwB,iDAAO;AAC/B;;AAEA;AACA;AACA;AACA,gBAAgB,2DAAU;AAC1B;AACA,QAAQ,2DAAU;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA,aAAa;AACb;;AAEA;AACA;AACA,cAAc,2DAAU,8BAA8B,2DAAU;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,2DAAU,yCAAyC,2DAAU;AAC/E;AACA;AACA;AACA;AACA,gBAAgB,2DAAU,0BAA0B,2DAAU;AAC9D;AACA;AACA;;AAEA,iEAAe;AACf;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;;AC1FF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAMA;;;;;;;;;;;;;;;;;;AC9CsC;AACI;;AAE3C,iEAAe;AACf,KAAK,6CAAK;AACV,KAAK,sDAAQ;AACb,CAAC;;;;;;;;;;;;;;;;;ACNgC;;AAEjC,iEAAe,sCAAQ,EAAC;;;;;;;;;;;;;;;;;ACFX;;AAES;AACtB,iEAAe,gDAAmB,EAAC;;;;;;;;;;;;;;;;;;ACHuB;AACd;;AAE5C,iEAAe;AACf;AACA;AACA,mBAAmB;AACnB,YAAY;AACZ;AACA,GAAG;AACH;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;ACXW;;AAEwB;;AAErC;;AAEA,OAAO,UAAU;AACjB,OAAO,gBAAgB;;AAEvB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA,OAAO,SAAS;;AAEhB;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,UAAU;AACrB;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA,2BAA2B,oBAAoB,IAAI;AACnD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA4B;AAC5B;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,SAAS,UAAU;AACnB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,kCAAkC;AAClC,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA,gCAAgC,WAAW,IAAI;AAC/C;AACA;AACA,eAAe,4DAAI;AACnB,MAAM;AACN;AACA;AACA,GAAG,GAAG,WAAW;AACjB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,eAAe;;AAEzC;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,QAAQ;AACjB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,iEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;;;ACltBF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F,kBAAkB;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,kBAAkB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,kBAAkB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gEAAgE,uBAAuB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA,2BAA2B;;AAE+C;AAC1E;;;;;;;;;;;;;;;;;;UC9YA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;AAEwD;AAGO;AACS;AAGhB;AACwB;AAGhC;AACgB;AAE3C;AACqC;AAC1B;AAEF;;AAe9B;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;;AASA,SAASM,YAAYA,CACnBn9B,MAAqB,EACrBirB,IAGC,GAAG,CAAC,CAAC,EACsB;EAC5B,MAAMmS,OAAO,GACXnS,IAAI,CAACzmB,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;EACvF,MAAMqR,SAAS,GAAGmnB,uEAAkB;EAClC;EACC,GAAEI,OAAQ,IAAC,SAAc,EAAC,EAC3Bp9B,MAAM,CAACq9B,WAAW,EAClBr9B,MAAM,CAACs9B,WAAW,EAClBt9B,MAAM,CAACu9B,OACT,CAAC;EAED,MAAMC,OAAO,GAAGzhB,8DAAa,CAAAta,aAAA,CAAAA,aAAA,KAAMzB,MAAM;IAAE6V;EAAS,EAAE,CAAC;;EAEvD;EACA;EACA;EACA,MAAMC,WAAwB,GAAIhQ,OAAmC,IACnE03B,OAAO,CAAC1nB,WAAW,CAAArU,aAAA,CAAAA,aAAA,KAAMqE,OAAO;IAAE+P;EAAS,EAAE,CAAC;EAEhD,IAAIoV,IAAI,CAACzmB,IAAI,KAAK,OAAO,EAAE;IACzB,OAAO23B,sEAAiB,CAACrmB,WAAW,EAAEmV,IAAI,CAACta,QAAQ,CAAC;EACtD,CAAC,MAAM;IACL,OAAOssB,kEAAmB,CAACnnB,WAAW,CAAC;EACzC;AACF,C","sources":["webpack:///../node_modules/asynckit/index.js","webpack:///../node_modules/asynckit/lib/abort.js","webpack:///../node_modules/asynckit/lib/async.js","webpack:///../node_modules/asynckit/lib/defer.js","webpack:///../node_modules/asynckit/lib/iterate.js","webpack:///../node_modules/asynckit/lib/state.js","webpack:///../node_modules/asynckit/lib/terminator.js","webpack:///../node_modules/asynckit/parallel.js","webpack:///../node_modules/asynckit/serial.js","webpack:///../node_modules/asynckit/serialOrdered.js","webpack:///./adapters/REST/endpoints/access-token.ts","webpack:///./adapters/REST/endpoints/api-key.ts","webpack:///./adapters/REST/endpoints/app-access-token.ts","webpack:///./adapters/REST/endpoints/app-action-call.ts","webpack:///./adapters/REST/endpoints/app-action.ts","webpack:///./adapters/REST/endpoints/app-bundle.ts","webpack:///./adapters/REST/endpoints/app-definition.ts","webpack:///./adapters/REST/endpoints/app-details.ts","webpack:///./adapters/REST/endpoints/app-event-subscription.ts","webpack:///./adapters/REST/endpoints/app-installation.ts","webpack:///./adapters/REST/endpoints/app-key.ts","webpack:///./adapters/REST/endpoints/app-signed-request.ts","webpack:///./adapters/REST/endpoints/app-signing-secret.ts","webpack:///./adapters/REST/endpoints/app-upload.ts","webpack:///./adapters/REST/endpoints/asset-key.ts","webpack:///./adapters/REST/endpoints/asset.ts","webpack:///./adapters/REST/endpoints/bulk-action.ts","webpack:///./adapters/REST/endpoints/comment.ts","webpack:///./adapters/REST/endpoints/content-type.ts","webpack:///./adapters/REST/endpoints/editor-interface.ts","webpack:///./adapters/REST/endpoints/entry.ts","webpack:///./adapters/REST/endpoints/environment-alias.ts","webpack:///./adapters/REST/endpoints/environment-template-installation.ts","webpack:///./adapters/REST/endpoints/environment-template.ts","webpack:///./adapters/REST/endpoints/environment.ts","webpack:///./adapters/REST/endpoints/extension.ts","webpack:///./adapters/REST/endpoints/http.ts","webpack:///./adapters/REST/endpoints/index.ts","webpack:///./adapters/REST/endpoints/locale.ts","webpack:///./adapters/REST/endpoints/organization-invitation.ts","webpack:///./adapters/REST/endpoints/organization-membership.ts","webpack:///./adapters/REST/endpoints/organization.ts","webpack:///./adapters/REST/endpoints/personal-access-token.ts","webpack:///./adapters/REST/endpoints/preview-api-key.ts","webpack:///./adapters/REST/endpoints/raw.ts","webpack:///./adapters/REST/endpoints/release-action.ts","webpack:///./adapters/REST/endpoints/release.ts","webpack:///./adapters/REST/endpoints/role.ts","webpack:///./adapters/REST/endpoints/scheduled-action.ts","webpack:///./adapters/REST/endpoints/snapshot.ts","webpack:///./adapters/REST/endpoints/space-member.ts","webpack:///./adapters/REST/endpoints/space-membership.ts","webpack:///./adapters/REST/endpoints/space.ts","webpack:///./adapters/REST/endpoints/tag.ts","webpack:///./adapters/REST/endpoints/task.ts","webpack:///./adapters/REST/endpoints/team-membership.ts","webpack:///./adapters/REST/endpoints/team-space-membership.ts","webpack:///./adapters/REST/endpoints/team.ts","webpack:///./adapters/REST/endpoints/ui-config.ts","webpack:///./adapters/REST/endpoints/upload.ts","webpack:///./adapters/REST/endpoints/usage.ts","webpack:///./adapters/REST/endpoints/user-ui-config.ts","webpack:///./adapters/REST/endpoints/user.ts","webpack:///./adapters/REST/endpoints/utils.ts","webpack:///./adapters/REST/endpoints/webhook.ts","webpack:///./adapters/REST/endpoints/workflow-definition.ts","webpack:///./adapters/REST/endpoints/workflow.ts","webpack:///./adapters/REST/endpoints/workflows-changelog.ts","webpack:///./adapters/REST/rest-adapter.ts","webpack:///./common-types.ts","webpack:///./common-utils.ts","webpack:///./constants/editor-interface-defaults/controls-defaults.ts","webpack:///./constants/editor-interface-defaults/editors-defaults.ts","webpack:///./constants/editor-interface-defaults/index.ts","webpack:///./constants/editor-interface-defaults/sidebar-defaults.ts","webpack:///./constants/editor-interface-defaults/types.ts","webpack:///./create-adapter.ts","webpack:///./create-app-definition-api.ts","webpack:///./create-contentful-api.ts","webpack:///./create-entry-api.ts","webpack:///./create-environment-api.ts","webpack:///./create-environment-template-api.ts","webpack:///./create-organization-api.ts","webpack:///./create-space-api.ts","webpack:///./create-ui-config-api.ts","webpack:///./create-user-ui-config-api.ts","webpack:///./enhance-with-methods.ts","webpack:///./entities/access-token.ts","webpack:///./entities/api-key.ts","webpack:///./entities/app-access-token.ts","webpack:///./entities/app-action-call.ts","webpack:///./entities/app-action.ts","webpack:///./entities/app-bundle.ts","webpack:///./entities/app-definition.ts","webpack:///./entities/app-details.ts","webpack:///./entities/app-event-subscription.ts","webpack:///./entities/app-installation.ts","webpack:///./entities/app-key.ts","webpack:///./entities/app-signed-request.ts","webpack:///./entities/app-signing-secret.ts","webpack:///./entities/app-upload.ts","webpack:///./entities/asset-key.ts","webpack:///./entities/asset.ts","webpack:///./entities/bulk-action.ts","webpack:///./entities/comment.ts","webpack:///./entities/content-type.ts","webpack:///./entities/editor-interface.ts","webpack:///./entities/entry.ts","webpack:///./entities/environment-alias.ts","webpack:///./entities/environment-template-installation.ts","webpack:///./entities/environment-template.ts","webpack:///./entities/environment.ts","webpack:///./entities/extension.ts","webpack:///./entities/index.ts","webpack:///./entities/locale.ts","webpack:///./entities/organization-invitation.ts","webpack:///./entities/organization-membership.ts","webpack:///./entities/organization.ts","webpack:///./entities/personal-access-token.ts","webpack:///./entities/preview-api-key.ts","webpack:///./entities/release-action.ts","webpack:///./entities/release.ts","webpack:///./entities/role.ts","webpack:///./entities/scheduled-action.ts","webpack:///./entities/snapshot.ts","webpack:///./entities/space-member.ts","webpack:///./entities/space-membership.ts","webpack:///./entities/space.ts","webpack:///./entities/tag.ts","webpack:///./entities/task.ts","webpack:///./entities/team-membership.ts","webpack:///./entities/team-space-membership.ts","webpack:///./entities/team.ts","webpack:///./entities/ui-config.ts","webpack:///./entities/upload.ts","webpack:///./entities/usage.ts","webpack:///./entities/user-ui-config.ts","webpack:///./entities/user.ts","webpack:///./entities/webhook.ts","webpack:///./entities/workflow-definition.ts","webpack:///./export-types.ts","webpack:///./methods/action.ts","webpack:///./methods/content-type.ts","webpack:///./methods/utils.ts","webpack:///./plain/as-iterator.ts","webpack:///./plain/checks.ts","webpack:///./plain/common-types.ts","webpack:///./plain/plain-client.ts","webpack:///./plain/wrappers/wrap.ts","webpack:///./upload-http-client.ts","webpack:///../node_modules/call-bind/callBound.js","webpack:///../node_modules/call-bind/index.js","webpack:///../node_modules/combined-stream/lib/combined_stream.js","webpack:///../node_modules/contentful-sdk-core/dist/index.es-modules.js","webpack:///../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.esm.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js","webpack:///../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js","webpack:///../node_modules/debug/node_modules/ms/index.js","webpack:///../node_modules/debug/src/browser.js","webpack:///../node_modules/debug/src/common.js","webpack:///../node_modules/debug/src/index.js","webpack:///../node_modules/debug/src/node.js","webpack:///../node_modules/delayed-stream/lib/delayed_stream.js","webpack:///../node_modules/follow-redirects/debug.js","webpack:///../node_modules/follow-redirects/index.js","webpack:///../node_modules/form-data/lib/form_data.js","webpack:///../node_modules/form-data/lib/populate.js","webpack:///../node_modules/function-bind/implementation.js","webpack:///../node_modules/function-bind/index.js","webpack:///../node_modules/get-intrinsic/index.js","webpack:///../node_modules/has-flag/index.js","webpack:///../node_modules/has-proto/index.js","webpack:///../node_modules/has-symbols/index.js","webpack:///../node_modules/has-symbols/shams.js","webpack:///../node_modules/has/src/index.js","webpack:///../node_modules/lodash.isplainobject/index.js","webpack:///../node_modules/lodash.isstring/index.js","webpack:///../node_modules/mime-db/index.js","webpack:///../node_modules/mime-types/index.js","webpack:///../node_modules/object-inspect/index.js","webpack:///../node_modules/object-inspect/util.inspect.js","webpack:///../node_modules/p-throttle/index.js","webpack:///../node_modules/proxy-from-env/index.js","webpack:///../node_modules/side-channel/index.js","webpack:///../node_modules/supports-color/index.js","webpack:///external node-commonjs \"assert\"","webpack:///external node-commonjs \"events\"","webpack:///external node-commonjs \"fs\"","webpack:///external node-commonjs \"http\"","webpack:///external node-commonjs \"https\"","webpack:///external node-commonjs \"os\"","webpack:///external node-commonjs \"path\"","webpack:///external node-commonjs \"stream\"","webpack:///external node-commonjs \"tty\"","webpack:///external node-commonjs \"url\"","webpack:///external node-commonjs \"util\"","webpack:///external node-commonjs \"zlib\"","webpack:///../node_modules/axios/lib/adapters/adapters.js","webpack:///../node_modules/axios/lib/adapters/http.js","webpack:///../node_modules/axios/lib/adapters/xhr.js","webpack:///../node_modules/axios/lib/axios.js","webpack:///../node_modules/axios/lib/cancel/CancelToken.js","webpack:///../node_modules/axios/lib/cancel/CanceledError.js","webpack:///../node_modules/axios/lib/cancel/isCancel.js","webpack:///../node_modules/axios/lib/core/Axios.js","webpack:///../node_modules/axios/lib/core/AxiosError.js","webpack:///../node_modules/axios/lib/core/AxiosHeaders.js","webpack:///../node_modules/axios/lib/core/InterceptorManager.js","webpack:///../node_modules/axios/lib/core/buildFullPath.js","webpack:///../node_modules/axios/lib/core/dispatchRequest.js","webpack:///../node_modules/axios/lib/core/mergeConfig.js","webpack:///../node_modules/axios/lib/core/settle.js","webpack:///../node_modules/axios/lib/core/transformData.js","webpack:///../node_modules/axios/lib/defaults/index.js","webpack:///../node_modules/axios/lib/defaults/transitional.js","webpack:///../node_modules/axios/lib/env/data.js","webpack:///../node_modules/axios/lib/helpers/AxiosTransformStream.js","webpack:///../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack:///../node_modules/axios/lib/helpers/HttpStatusCode.js","webpack:///../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js","webpack:///../node_modules/axios/lib/helpers/bind.js","webpack:///../node_modules/axios/lib/helpers/buildURL.js","webpack:///../node_modules/axios/lib/helpers/callbackify.js","webpack:///../node_modules/axios/lib/helpers/combineURLs.js","webpack:///../node_modules/axios/lib/helpers/cookies.js","webpack:///../node_modules/axios/lib/helpers/formDataToJSON.js","webpack:///../node_modules/axios/lib/helpers/formDataToStream.js","webpack:///../node_modules/axios/lib/helpers/fromDataURI.js","webpack:///../node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///../node_modules/axios/lib/helpers/isAxiosError.js","webpack:///../node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///../node_modules/axios/lib/helpers/parseHeaders.js","webpack:///../node_modules/axios/lib/helpers/parseProtocol.js","webpack:///../node_modules/axios/lib/helpers/readBlob.js","webpack:///../node_modules/axios/lib/helpers/speedometer.js","webpack:///../node_modules/axios/lib/helpers/spread.js","webpack:///../node_modules/axios/lib/helpers/throttle.js","webpack:///../node_modules/axios/lib/helpers/toFormData.js","webpack:///../node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack:///../node_modules/axios/lib/helpers/validator.js","webpack:///../node_modules/axios/lib/platform/common/utils.js","webpack:///../node_modules/axios/lib/platform/index.js","webpack:///../node_modules/axios/lib/platform/node/classes/FormData.js","webpack:///../node_modules/axios/lib/platform/node/classes/URLSearchParams.js","webpack:///../node_modules/axios/lib/platform/node/index.js","webpack:///../node_modules/axios/lib/utils.js","webpack:///../node_modules/fast-copy/dist/esm/index.mjs","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./contentful-management.ts"],"sourcesContent":["module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n","// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n","var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n","module.exports = defer;\n\n/**\n * Runs provided function on next iteration of the event loop\n *\n * @param {function} fn - function to run\n */\nfunction defer(fn)\n{\n var nextTick = typeof setImmediate == 'function'\n ? setImmediate\n : (\n typeof process == 'object' && typeof process.nextTick == 'function'\n ? process.nextTick\n : null\n );\n\n if (nextTick)\n {\n nextTick(fn);\n }\n else\n {\n setTimeout(fn, 0);\n }\n}\n","var async = require('./async.js')\n , abort = require('./abort.js')\n ;\n\n// API\nmodule.exports = iterate;\n\n/**\n * Iterates over each job object\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {object} state - current job status\n * @param {function} callback - invoked when all elements processed\n */\nfunction iterate(list, iterator, state, callback)\n{\n // store current index\n var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;\n\n state.jobs[key] = runJob(iterator, key, list[key], function(error, output)\n {\n // don't repeat yourself\n // skip secondary callbacks\n if (!(key in state.jobs))\n {\n return;\n }\n\n // clean up jobs\n delete state.jobs[key];\n\n if (error)\n {\n // don't process rest of the results\n // stop still active jobs\n // and reset the list\n abort(state);\n }\n else\n {\n state.results[key] = output;\n }\n\n // return salvaged results\n callback(error, state.results);\n });\n}\n\n/**\n * Runs iterator over provided job element\n *\n * @param {function} iterator - iterator to invoke\n * @param {string|number} key - key/index of the element in the list of jobs\n * @param {mixed} item - job description\n * @param {function} callback - invoked after iterator is done with the job\n * @returns {function|mixed} - job abort function or something else\n */\nfunction runJob(iterator, key, item, callback)\n{\n var aborter;\n\n // allow shortcut if iterator expects only two arguments\n if (iterator.length == 2)\n {\n aborter = iterator(item, async(callback));\n }\n // otherwise go with full three arguments\n else\n {\n aborter = iterator(item, key, async(callback));\n }\n\n return aborter;\n}\n","// API\nmodule.exports = state;\n\n/**\n * Creates initial state object\n * for iteration over list\n *\n * @param {array|object} list - list to iterate over\n * @param {function|null} sortMethod - function to use for keys sort,\n * or `null` to keep them as is\n * @returns {object} - initial state object\n */\nfunction state(list, sortMethod)\n{\n var isNamedList = !Array.isArray(list)\n , initState =\n {\n index : 0,\n keyedList: isNamedList || sortMethod ? Object.keys(list) : null,\n jobs : {},\n results : isNamedList ? {} : [],\n size : isNamedList ? Object.keys(list).length : list.length\n }\n ;\n\n if (sortMethod)\n {\n // sort array keys based on it's values\n // sort object's keys just on own merit\n initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)\n {\n return sortMethod(list[a], list[b]);\n });\n }\n\n return initState;\n}\n","var abort = require('./abort.js')\n , async = require('./async.js')\n ;\n\n// API\nmodule.exports = terminator;\n\n/**\n * Terminates jobs in the attached state context\n *\n * @this AsyncKitState#\n * @param {function} callback - final callback to invoke after termination\n */\nfunction terminator(callback)\n{\n if (!Object.keys(this.jobs).length)\n {\n return;\n }\n\n // fast forward iteration index\n this.index = this.size;\n\n // abort jobs\n abort(this);\n\n // send back results we have so far\n async(callback)(null, this.results);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = parallel;\n\n/**\n * Runs iterator over provided array elements in parallel\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction parallel(list, iterator, callback)\n{\n var state = initState(list);\n\n while (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, function(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n // looks like it's the last one\n if (Object.keys(state.jobs).length === 0)\n {\n callback(null, state.results);\n return;\n }\n });\n\n state.index++;\n }\n\n return terminator.bind(state, callback);\n}\n","var serialOrdered = require('./serialOrdered.js');\n\n// Public API\nmodule.exports = serial;\n\n/**\n * Runs iterator over provided array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serial(list, iterator, callback)\n{\n return serialOrdered(list, iterator, null, callback);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = serialOrdered;\n// sorting helpers\nmodule.exports.ascending = ascending;\nmodule.exports.descending = descending;\n\n/**\n * Runs iterator over provided sorted array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} sortMethod - custom sort function\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serialOrdered(list, iterator, sortMethod, callback)\n{\n var state = initState(list, sortMethod);\n\n iterate(list, iterator, state, function iteratorHandler(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n state.index++;\n\n // are we there yet?\n if (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, iteratorHandler);\n return;\n }\n\n // done here\n callback(null, state.results);\n });\n\n return terminator.bind(state, callback);\n}\n\n/*\n * -- Sort methods\n */\n\n/**\n * sort helper to sort array elements in ascending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction ascending(a, b)\n{\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\n/**\n * sort helper to sort array elements in descending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction descending(a, b)\n{\n return -1 * ascending(a, b);\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetOrganizationParams, QueryParams } from '../../../common-types'\nimport { CreatePersonalAccessTokenProps, AccessTokenProp } from '../../../entities/access-token'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * Retrieves an access token by its unique token ID for the currently authenticated user.\n *\n * @param {AxiosInstance} http - An Axios HTTP client instance.\n * @param {Object} params - Parameters for the request.\n * @param {string} params.tokenId - The unique token ID of the access token to retrieve.\n * @returns {Promise} A Promise that resolves with the retrieved access token information.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.get({tokenId: 'TestTokenTd'})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const get: RestEndpoint<'AccessToken', 'get'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.get(http, `/users/me/access_tokens/${params.tokenId}`)\n}\n\n/**\n * Retrieves multiple access tokens associated with the currently authenticated user.\n *\n * @param {AxiosInstance} http - An Axios HTTP client instance.\n * @param {QueryParams} params - Query parameters to filter and customize the request.\n * @returns {Promise>} A Promise that resolves with a collection of access token properties.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.getMany()\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\nexport const getMany: RestEndpoint<'AccessToken', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) => {\n return raw.get>(http, '/users/me/access_tokens', {\n params: params.query,\n })\n}\n\n/**\n * Creates a personal access token for the currently authenticated user.\n *\n * @param {AxiosInstance} http - Axios instance for making the HTTP request.\n * @param {Object} _params - Unused parameters (can be an empty object).\n * @param {CreatePersonalAccessTokenProps} rawData - Data for creating the personal access token.\n * @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request.\n * @returns {Promise} A Promise that resolves with the created personal access token.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: '',\n * },\n * { type: 'plain' }\n * )\n * plainClient.createPersonalAccessToken({name: 'Test-Name', scope: ['content_management_manage'], expiresIn: 777596.92})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const createPersonalAccessToken: RestEndpoint<'AccessToken', 'createPersonalAccessToken'> = (\n http: AxiosInstance,\n _params: {},\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, '/users/me/access_tokens', rawData, {\n headers,\n })\n}\n\n/**\n * Revokes an access token associated with the currently authenticated user.\n *\n * @param {AxiosInstance} http - The Axios HTTP client instance.\n * @param {Object} params - The parameters for revoking the access token.\n * @param {string} params.tokenId - The unique identifier of the access token to revoke.\n * @returns {Promise} A Promise that resolves with the updated access token information after revocation.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.revoke({tokenId: 'TestTokenTd'})\n * .then(token => console.log(token))\n * .catch(console.error)\n * ```\n */\nexport const revoke: RestEndpoint<'AccessToken', 'revoke'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null)\n}\n\n/**\n * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization.\n *\n * @param {AxiosInstance} http - The Axios HTTP client instance.\n * @param {GetOrganizationParams & QueryParams} params - Parameters for the request, including organization ID and query parameters.\n * @param {string} params.organizationId - The unique identifier of the organization.\n * @returns {Promise>} A promise that resolves to a collection of access tokens.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const plainClient = contentful.createClient(\n * {\n * accessToken: ''\n * },\n * { type: 'plain' }\n * )\n * plainClient.getManyForOrganization({organizationId: 'OrgId'})\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\nexport const getManyForOrganization: RestEndpoint<'AccessToken', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/access_tokens`,\n {\n params: params.query,\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { ApiKeyProps, CreateApiKeyProps } from '../../../entities/api-key'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'ApiKey', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`)\n}\n\nexport const getMany: RestEndpoint<'ApiKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/api_keys`, {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'ApiKey', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/api_keys`, data, { headers })\n}\n\nexport const createWithId: RestEndpoint<'ApiKey', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string },\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'ApiKey', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string },\n rawData: ApiKeyProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional =\n copy(rawData)\n if ('accessToken' in data) {\n delete data.accessToken\n }\n if ('preview_api_key' in data) {\n delete data.preview_api_key\n }\n if ('policies' in data) {\n delete data.policies\n }\n delete data.sys\n return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'ApiKey', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { apiKeyId: string }\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { AppAccessTokenProps, CreateAppAccessTokenProps } from '../../../entities/app-access-token'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppInstallationParams } from '../../../common-types'\n\nexport const create: RestEndpoint<'AppAccessToken', 'create'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams,\n data: CreateAppAccessTokenProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`,\n undefined,\n { headers: { Authorization: `Bearer ${data.jwt}` } }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n AppActionCallProps,\n AppActionCallResponse,\n CreateAppActionCallProps,\n} from '../../../entities/app-action-call'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport {\n CreateWithResponseParams,\n GetAppActionCallDetailsParams,\n GetAppActionCallParams,\n} from '../../../common-types'\nimport { isSuccessful, shouldRePoll, waitFor } from '../../../common-utils'\n\nexport const create: RestEndpoint<'AppActionCall', 'create'> = (\n http: AxiosInstance,\n params: GetAppActionCallParams,\n data: CreateAppActionCallProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`,\n data\n )\n}\n\nexport const getCallDetails: RestEndpoint<'AppActionCall', 'getCallDetails'> = (\n http: AxiosInstance,\n params: GetAppActionCallDetailsParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`\n )\n}\n\nconst APP_ACTION_CALL_RETRY_INTERVAL = 2000\nconst APP_ACTION_CALL_RETRIES = 15\n\nasync function callAppActionResult(\n http: AxiosInstance,\n params: CreateWithResponseParams,\n {\n callId,\n }: {\n callId: string\n }\n): Promise {\n let checkCount = 1\n const retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL\n const retries = params.retries || APP_ACTION_CALL_RETRIES\n\n return new Promise((resolve, reject) => {\n const poll = async () => {\n try {\n const result = await getCallDetails(http, { ...params, callId: callId })\n // The lambda failed or returned a 404, so we shouldn't re-poll anymore\n if (result?.response?.statusCode && !isSuccessful(result?.response?.statusCode)) {\n const error = new Error('App action not found or lambda fails')\n reject(error)\n } else if (isSuccessful(result.statusCode)) {\n resolve(result)\n }\n\n // The logs are not ready yet. Continue waiting for them\n else if (shouldRePoll(result.statusCode) && checkCount < retries) {\n checkCount++\n await waitFor(retryInterval)\n poll()\n }\n\n // If the response status code is not successful and is not a status code that should be repolled, reject with an error immediately\n else {\n const error = new Error(\n 'The app action response is taking longer than expected to process.'\n )\n reject(error)\n }\n } catch (error) {\n checkCount++\n\n if (checkCount > retries) {\n reject(new Error('The app action response is taking longer than expected to process.'))\n return\n }\n // If `appActionCalls.getCallDetails` throws, we re-poll as it might mean that the lambda result is not available in the webhook logs yet\n await waitFor(retryInterval)\n poll()\n }\n }\n\n poll()\n })\n}\n\nexport const createWithResponse: RestEndpoint<'AppActionCall', 'createWithResponse'> = async (\n http: AxiosInstance,\n params: CreateWithResponseParams,\n data: CreateAppActionCallProps\n) => {\n const createResponse = await raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`,\n data\n )\n\n const callId = createResponse.sys.id\n\n return callAppActionResult(http, params, { callId })\n}\n","import { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\nimport {\n CollectionProp,\n GetAppActionParams,\n GetAppActionsForEnvParams,\n GetAppDefinitionParams,\n QueryParams,\n} from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppActionProps, CreateAppActionProps } from '../../../entities/app-action'\n\nconst getBaseUrl = (params: GetAppDefinitionParams) =>\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`\n\nconst getAppActionUrl = (params: GetAppActionParams) =>\n `${getBaseUrl(params)}/${params.appActionId}`\n\nconst getAppActionsEnvUrl = (params: GetAppActionsForEnvParams) => {\n if (params.environmentId) {\n return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`\n }\n return `/spaces/${params.spaceId}/actions`\n}\n\nexport const get: RestEndpoint<'AppAction', 'get'> = (\n http: AxiosInstance,\n params: GetAppActionParams\n) => {\n return raw.get(http, getAppActionUrl(params))\n}\n\nexport const getMany: RestEndpoint<'AppAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getManyForEnvironment: RestEndpoint<'AppAction', 'getManyForEnvironment'> = (\n http: AxiosInstance,\n params: GetAppActionsForEnvParams & QueryParams\n) => {\n return raw.get>(http, getAppActionsEnvUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const del: RestEndpoint<'AppAction', 'delete'> = (\n http: AxiosInstance,\n params: GetAppActionParams\n) => {\n return raw.del(http, getAppActionUrl(params))\n}\n\nexport const create: RestEndpoint<'AppAction', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppActionProps\n) => {\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'AppAction', 'update'> = (\n http: AxiosInstance,\n params: GetAppActionParams,\n data: CreateAppActionProps\n) => {\n return raw.put(http, getAppActionUrl(params), data)\n}\n","import { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\nimport {\n CollectionProp,\n GetAppBundleParams,\n GetAppDefinitionParams,\n QueryParams,\n} from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppBundleProps, CreateAppBundleProps } from '../../../entities/app-bundle'\n\nconst getBaseUrl = (params: GetAppDefinitionParams) =>\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`\n\nconst getAppBundleUrl = (params: GetAppBundleParams) =>\n `${getBaseUrl(params)}/${params.appBundleId}`\n\nexport const get: RestEndpoint<'AppBundle', 'get'> = (\n http: AxiosInstance,\n params: GetAppBundleParams\n) => {\n return raw.get(http, getAppBundleUrl(params))\n}\n\nexport const getMany: RestEndpoint<'AppBundle', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const del: RestEndpoint<'AppBundle', 'delete'> = (\n http: AxiosInstance,\n params: GetAppBundleParams\n) => {\n return raw.del(http, getAppBundleUrl(params))\n}\n\nexport const create: RestEndpoint<'AppBundle', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n payload: CreateAppBundleProps\n) => {\n const { appUploadId, comment, actions, functions } = payload\n\n const data = {\n upload: {\n sys: {\n type: 'Link',\n linkType: 'AppUpload',\n id: appUploadId,\n },\n },\n comment,\n actions,\n functions,\n }\n\n return raw.post(http, getBaseUrl(params), data)\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport copy from 'fast-copy'\nimport { normalizeSelect, normalizeSpaceId } from './utils'\nimport {\n GetAppDefinitionParams,\n GetOrganizationParams,\n QueryParams,\n GetAppInstallationsForOrgParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport {\n AppDefinitionProps,\n CreateAppDefinitionProps,\n AppInstallationsForOrganizationProps,\n} from '../../../entities/app-definition'\nimport { RestEndpoint } from '../types'\nimport { SetOptional } from 'type-fest'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/app_definitions`\n\nexport const getAppDefinitionUrl = (params: GetAppDefinitionParams) =>\n getBaseUrl(params) + `/${params.appDefinitionId}`\n\nconst getBaseUrlForOrgInstallations = (params: GetAppInstallationsForOrgParams) =>\n `/app_definitions/${params.appDefinitionId}/app_installations`\n\nexport const get: RestEndpoint<'AppDefinition', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams & QueryParams\n) => {\n return raw.get(http, getAppDefinitionUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'AppDefinition', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'AppDefinition', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n rawData: CreateAppDefinitionProps\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'AppDefinition', 'update'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n rawData: AppDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getAppDefinitionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'AppDefinition', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(http, getAppDefinitionUrl(params))\n}\n\nexport const getInstallationsForOrg: RestEndpoint<'AppDefinition', 'getInstallationsForOrg'> = (\n http: AxiosInstance,\n params: GetAppInstallationsForOrgParams & PaginationQueryParams\n) => {\n return raw.get(\n http,\n getBaseUrlForOrgInstallations(params),\n {\n params: {\n ...normalizeSpaceId(normalizeSelect(params.query)),\n 'sys.organization.sys.id[in]': params.organizationId,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { AppDetailsProps, CreateAppDetailsProps } from '../../../entities/app-details'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppDetails', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`\n )\n}\n\nexport const upsert: RestEndpoint<'AppDetails', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppDetailsProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppDetails', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppEventSubscriptionProps,\n AppEventSubscriptionProps,\n} from '../../../entities/app-event-subscription'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppEventSubscription', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`\n )\n}\n\nexport const upsert: RestEndpoint<'AppEventSubscription', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppEventSubscriptionProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppEventSubscription', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport * as raw from './raw'\nimport { normalizeSelect, normalizeSpaceId } from './utils'\nimport copy from 'fast-copy'\nimport {\n GetAppInstallationParams,\n GetSpaceEnvironmentParams,\n PaginationQueryParams,\n GetAppInstallationsForOrgParams,\n SpaceQueryParams,\n} from '../../../common-types'\nimport {\n AppInstallationProps,\n CreateAppInstallationProps,\n} from '../../../entities/app-installation'\nimport { AppInstallationsForOrganizationProps } from '../../../entities/app-definition'\nimport { CollectionProp } from '../../../common-types'\nimport { RestEndpoint } from '../types'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`\n\nconst getBaseUrlForOrgInstallations = (params: GetAppInstallationsForOrgParams) =>\n `/app_definitions/${params.appDefinitionId}/app_installations`\n\nexport const getAppInstallationUrl = (params: GetAppInstallationParams) =>\n getBaseUrl(params) + `/${params.appDefinitionId}`\n\nexport const get: RestEndpoint<'AppInstallation', 'get'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams & PaginationQueryParams\n) => {\n return raw.get(http, getAppInstallationUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'AppInstallation', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & PaginationQueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const upsert: RestEndpoint<'AppInstallation', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams & { acceptAllTerms?: boolean },\n rawData: CreateAppInstallationProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getAppInstallationUrl(params), data, {\n headers: {\n ...headers,\n ...(params.acceptAllTerms && {\n 'X-Contentful-Marketplace':\n 'i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy',\n }),\n },\n })\n}\n\nexport const del: RestEndpoint<'AppInstallation', 'delete'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams\n) => {\n return raw.del(http, getAppInstallationUrl(params))\n}\n\nexport const getForOrganization: RestEndpoint<'AppInstallation', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetAppInstallationsForOrgParams & SpaceQueryParams\n) => {\n return raw.get(\n http,\n getBaseUrlForOrgInstallations(params),\n {\n params: {\n ...normalizeSpaceId(normalizeSelect(params.query)),\n 'sys.organization.sys.id[in]': params.organizationId,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CreateAppKeyProps, AppKeyProps } from '../../../entities/app-key'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { CollectionProp, GetAppDefinitionParams, GetAppKeyParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppKey', 'get'> = (\n http: AxiosInstance,\n params: GetAppKeyParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`\n )\n}\n\nexport const getMany: RestEndpoint<'AppKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`\n )\n}\n\nexport const create: RestEndpoint<'AppKey', 'create'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppKeyProps\n) => {\n return raw.post(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppKey', 'delete'> = (\n http: AxiosInstance,\n params: GetAppKeyParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppSignedRequestProps,\n AppSignedRequestProps,\n} from '../../../entities/app-signed-request'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppInstallationParams } from '../../../common-types'\n\nexport const create: RestEndpoint<'AppSignedRequest', 'create'> = (\n http: AxiosInstance,\n params: GetAppInstallationParams,\n data: CreateAppSignedRequestProps\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`,\n data\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateAppSigningSecretProps,\n AppSigningSecretProps,\n} from '../../../entities/app-signing-secret'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetAppDefinitionParams } from '../../../common-types'\n\nexport const get: RestEndpoint<'AppSigningSecret', 'get'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`\n )\n}\n\nexport const upsert: RestEndpoint<'AppSigningSecret', 'upsert'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams,\n data: CreateAppSigningSecretProps\n) => {\n return raw.put(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`,\n data\n )\n}\n\nexport const del: RestEndpoint<'AppSigningSecret', 'delete'> = (\n http: AxiosInstance,\n params: GetAppDefinitionParams\n) => {\n return raw.del(\n http,\n `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport * as raw from './raw'\nimport { GetAppUploadParams, GetOrganizationParams } from '../../../common-types'\nimport { RestEndpoint } from '../types'\nimport { AppUploadProps } from '../../../entities/app-upload'\nimport { getUploadHttpClient } from '../../../upload-http-client'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/app_uploads`\n\nconst getAppUploadUrl = (params: GetAppUploadParams) =>\n `${getBaseUrl(params)}/${params.appUploadId}`\n\nexport const get: RestEndpoint<'AppUpload', 'get'> = (\n http: AxiosInstance,\n params: GetAppUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n return raw.get(httpUpload, getAppUploadUrl(params))\n}\n\nexport const del: RestEndpoint<'AppUpload', 'delete'> = (\n http: AxiosInstance,\n params: GetAppUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n return raw.del(httpUpload, getAppUploadUrl(params))\n}\n\nexport const create: RestEndpoint<'AppUpload', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n payload: { file: string | ArrayBuffer | Stream }\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n const { file } = payload\n\n return raw.post(httpUpload, getBaseUrl(params), file, {\n headers: {\n 'Content-Type': 'application/octet-stream',\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CreateAssetKeyProps, AssetKeyProps } from '../../../entities/asset-key'\nimport * as raw from './raw'\nimport { RestEndpoint } from '../types'\nimport { GetSpaceEnvironmentParams } from '../../../common-types'\n\nconst ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60\n\nexport class ValidationError extends Error {\n constructor(name: string, message: string) {\n super(`Invalid \"${name}\" provided, ` + message)\n this.name = 'ValidationError'\n }\n}\n\ninterface ValidateTimestampOptions {\n maximum?: number\n now?: number\n}\n\nconst validateTimestamp = (name: string, timestamp: number, options: ValidateTimestampOptions) => {\n options = options || {}\n\n if (typeof timestamp !== 'number') {\n throw new ValidationError(\n name,\n `only numeric values are allowed for timestamps, provided type was \"${typeof timestamp}\"`\n )\n }\n if (options.maximum && timestamp > options.maximum) {\n throw new ValidationError(\n name,\n `value (${timestamp}) cannot be further in the future than expected maximum (${options.maximum})`\n )\n }\n if (options.now && timestamp < options.now) {\n throw new ValidationError(\n name,\n `value (${timestamp}) cannot be in the past, current time was ${options.now}`\n )\n }\n}\n\nexport const create: RestEndpoint<'AssetKey', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: CreateAssetKeyProps\n) => {\n const expiresAt = data.expiresAt\n const now = Math.floor(Date.now() / 1000)\n const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME\n validateTimestamp('expiresAt', expiresAt, { maximum: currentMaxLifetime, now })\n\n const postParams = { expiresAt }\n\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/asset_keys`,\n postParams\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { errorHandler } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from '../../../common-types'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from '../../../entities/asset'\nimport { getUploadHttpClient } from '../../../upload-http-client'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { create as createUpload } from './upload'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Asset', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string } & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const getPublished: RestEndpoint<'Asset', 'getPublished'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const getMany: RestEndpoint<'Asset', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`,\n {\n params: normalizeSelect(params.query),\n headers: headers ? { ...headers } : undefined,\n }\n )\n}\n\nexport const update: RestEndpoint<'Asset', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: AssetProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Asset', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`\n )\n}\n\nexport const publish: RestEndpoint<'Asset', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: AssetProps\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Asset', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`\n )\n}\n\nexport const archive: RestEndpoint<'Asset', 'archive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`\n )\n}\n\nexport const unarchive: RestEndpoint<'Asset', 'unarchive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`\n )\n}\n\nexport const create: RestEndpoint<'Asset', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateAssetProps\n) => {\n const data = copy(rawData)\n\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`,\n data\n )\n}\n\nexport const createWithId: RestEndpoint<'Asset', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n rawData: CreateAssetProps\n) => {\n const data = copy(rawData)\n\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`,\n data\n )\n}\n\nexport const createFromFiles: RestEndpoint<'Asset', 'createFromFiles'> = async (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { uploadTimeout?: number },\n data: Omit\n) => {\n const httpUpload = getUploadHttpClient(http, { uploadTimeout: params.uploadTimeout })\n\n const { file } = data.fields\n return Promise.all(\n Object.keys(file).map(async (locale) => {\n const { contentType, fileName } = file[locale]\n\n return createUpload(httpUpload, params, file[locale]).then((upload) => {\n return {\n [locale]: {\n contentType,\n fileName,\n uploadFrom: {\n sys: {\n type: 'Link',\n linkType: 'Upload',\n id: upload.sys.id,\n },\n },\n },\n }\n })\n })\n )\n .then((uploads) => {\n const file = uploads.reduce((fieldsData, upload) => ({ ...fieldsData, ...upload }), {})\n const asset = {\n ...data,\n fields: {\n ...data.fields,\n file,\n },\n }\n return create(http, params, asset)\n })\n .catch(errorHandler)\n}\n\n/**\n * Asset processing\n */\n\nconst ASSET_PROCESSING_CHECK_WAIT = 3000\nconst ASSET_PROCESSING_CHECK_RETRIES = 10\n\nasync function checkIfAssetHasUrl(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { assetId: string },\n {\n resolve,\n reject,\n locale,\n processingCheckWait = ASSET_PROCESSING_CHECK_WAIT,\n processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES,\n checkCount = 0,\n }: {\n resolve: (asset: AssetProps) => unknown\n reject: (err: Error) => unknown\n locale: string\n checkCount?: number\n } & AssetProcessingForLocale\n) {\n return get(http, params).then((asset) => {\n if (asset.fields.file[locale].url) {\n resolve(asset)\n } else if (checkCount === processingCheckRetries) {\n const error = new Error()\n error.name = 'AssetProcessingTimeout'\n error.message = 'Asset is taking longer then expected to process.'\n reject(error)\n } else {\n checkCount++\n setTimeout(\n () =>\n checkIfAssetHasUrl(http, params, {\n resolve: resolve,\n reject: reject,\n locale: locale,\n checkCount: checkCount,\n processingCheckWait,\n processingCheckRetries,\n }),\n processingCheckWait\n )\n }\n })\n}\n\nexport const processForLocale: RestEndpoint<'Asset', 'processForLocale'> = async (\n http: AxiosInstance,\n {\n asset,\n locale,\n options: { processingCheckRetries, processingCheckWait } = {},\n ...params\n }: GetSpaceEnvironmentParams & {\n asset: AssetProps\n locale: string\n options?: AssetProcessingForLocale\n }\n) => {\n return raw\n .put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${asset.sys.id}/files/${locale}/process`,\n null,\n {\n headers: {\n 'X-Contentful-Version': asset.sys.version,\n },\n }\n )\n .then(() => {\n return new Promise((resolve, reject) =>\n checkIfAssetHasUrl(\n http,\n {\n spaceId: params.spaceId,\n environmentId: params.environmentId,\n assetId: asset.sys.id,\n },\n {\n resolve,\n reject,\n locale,\n processingCheckWait,\n processingCheckRetries,\n }\n )\n )\n })\n}\n\nexport const processForAllLocales: RestEndpoint<'Asset', 'processForAllLocales'> = async (\n http: AxiosInstance,\n {\n asset,\n options = {},\n ...params\n }: GetSpaceEnvironmentParams & { asset: AssetProps; options?: AssetProcessingForLocale }\n) => {\n const locales = Object.keys(asset.fields.file || {})\n\n let mostUpToDateAssetVersion: AssetProps = asset\n\n // Let all the locales process\n // Since they all resolve at different times,\n // we need to pick the last resolved value\n // to reflect the most recent state\n const allProcessingLocales = locales.map((locale) =>\n processForLocale(http, { ...params, asset, locale, options }).then((result) => {\n // Side effect of always setting the most up to date asset version\n // The last one to call this will be the last one that finished\n // and thus the most up to date\n mostUpToDateAssetVersion = result\n })\n )\n\n return Promise.all(allProcessingLocales).then(() => mostUpToDateAssetVersion)\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetBulkActionParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from '../../../entities/bulk-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'BulkAction', 'get'> = (\n http: AxiosInstance,\n params: GetBulkActionParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`\n )\n}\n\nexport const publish: RestEndpoint<'BulkAction', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionPublishPayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`,\n payload\n )\n}\n\nexport const unpublish: RestEndpoint<'BulkAction', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionUnpublishPayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`,\n payload\n )\n}\n\nexport const validate: RestEndpoint<'BulkAction', 'validate'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: BulkActionValidatePayload\n): Promise> => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`,\n payload\n )\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEntryParams,\n GetCommentParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateCommentParams,\n CreateCommentProps,\n DeleteCommentParams,\n CommentProps,\n UpdateCommentProps,\n GetManyCommentsParams,\n PlainTextBodyFormat,\n RichTextBodyFormat,\n RichTextCommentBodyPayload,\n} from '../../../entities/comment'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst VERSION_HEADER = 'X-Contentful-Version'\nconst BODY_FORMAT_HEADER = 'x-contentful-comment-body-format'\nconst PARENT_ENTITY_REFERENCE_HEADER = 'x-contentful-parent-entity-reference'\nconst PARENT_COMMENT_ID_HEADER = 'x-contentful-parent-id'\n\nconst getSpaceEnvBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}`\nconst getEntityCommentUrl = (params: GetCommentParams) =>\n `${getEntityBaseUrl(params)}/${params.commentId}`\n\nfunction getParentPlural(parentEntityType: 'ContentType' | 'Entry' | 'Workflow') {\n switch (parentEntityType) {\n case 'ContentType':\n return 'content_types'\n case 'Entry':\n return 'entries'\n case 'Workflow':\n return 'workflows'\n }\n}\n\n/**\n * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version\n * to be set as part of the URL path. Workflow comments only support `create` (with\n * versionized URL) and `getMany` (without version). The API might support more methods\n * in the future with new use cases being discovered.\n */\nconst getEntityBaseUrl = (paramsOrg: GetEntryParams | GetManyCommentsParams) => {\n const params: GetManyCommentsParams =\n 'entryId' in paramsOrg\n ? {\n spaceId: paramsOrg.spaceId,\n environmentId: paramsOrg.environmentId,\n parentEntityType: 'Entry' as const,\n parentEntityId: paramsOrg.entryId,\n }\n : paramsOrg\n\n const { parentEntityId, parentEntityType } = params\n const parentPlural = getParentPlural(parentEntityType)\n const versionPath =\n 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : ''\n return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`\n}\n\nexport const get: RestEndpoint<'Comment', 'get'> = (\n http: AxiosInstance,\n params: GetCommentParams & (PlainTextBodyFormat | RichTextBodyFormat)\n) =>\n raw.get(http, getEntityCommentUrl(params), {\n headers:\n params.bodyFormat === 'rich-text'\n ? {\n [BODY_FORMAT_HEADER]: params.bodyFormat,\n }\n : {},\n })\n\nexport const getMany: RestEndpoint<'Comment', 'getMany'> = (\n http: AxiosInstance,\n params: GetManyCommentsParams & QueryParams & (PlainTextBodyFormat | RichTextBodyFormat)\n) =>\n raw.get>(http, getEntityBaseUrl(params), {\n params: normalizeSelect(params.query),\n headers:\n params.bodyFormat === 'rich-text'\n ? {\n [BODY_FORMAT_HEADER]: params.bodyFormat,\n }\n : {},\n })\n\nexport const create: RestEndpoint<'Comment', 'create'> = (\n http: AxiosInstance,\n params: CreateCommentParams,\n rawData: CreateCommentProps | RichTextCommentBodyPayload\n) => {\n const data = copy(rawData)\n return raw.post(http, getEntityBaseUrl(params), data, {\n headers: {\n ...(typeof rawData.body !== 'string' ? { [BODY_FORMAT_HEADER]: 'rich-text' } : {}),\n ...('parentEntityReference' in params && params.parentEntityReference\n ? { [PARENT_ENTITY_REFERENCE_HEADER]: params.parentEntityReference }\n : {}),\n ...(params.parentCommentId ? { [PARENT_COMMENT_ID_HEADER]: params.parentCommentId } : {}),\n },\n })\n}\n\nexport const update: RestEndpoint<'Comment', 'update'> = (\n http: AxiosInstance,\n params: GetCommentParams,\n rawData: UpdateCommentProps | (Omit & RichTextCommentBodyPayload),\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityCommentUrl(params), data, {\n headers: {\n [VERSION_HEADER]: rawData.sys.version ?? 0,\n ...(typeof rawData.body !== 'string' ? { [BODY_FORMAT_HEADER]: 'rich-text' } : {}),\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Comment', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteCommentParams\n) => {\n return raw.del(http, getEntityCommentUrl(params), {\n headers: { [VERSION_HEADER]: version },\n })\n}\n\n// Add a deprecation notice. But `getAll` may never be removed for app compatibility reasons.\n/**\n * @deprecated use `getMany` instead.\n */\nexport const getAll: RestEndpoint<'Comment', 'getAll'> = getMany\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetContentTypeParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport { ContentTypeProps, CreateContentTypeProps } from '../../../entities/content-type'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`\n\nconst getContentTypeUrl = (params: GetContentTypeParams) =>\n getBaseUrl(params) + `/${params.contentTypeId}`\n\nexport const get: RestEndpoint<'ContentType', 'get'> = (\n http: AxiosInstance,\n params: GetContentTypeParams & QueryParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(http, getContentTypeUrl(params), {\n params: normalizeSelect(params.query),\n headers,\n })\n}\n\nexport const getMany: RestEndpoint<'ContentType', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n headers,\n })\n}\n\nexport const create: RestEndpoint<'ContentType', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data, { headers })\n}\n\nexport const createWithId: RestEndpoint<'ContentType', 'createWithId'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: CreateContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getContentTypeUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'ContentType', 'update'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getContentTypeUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'ContentType', 'delete'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getContentTypeUrl(params), { headers })\n}\n\nexport const publish: RestEndpoint<'ContentType', 'publish'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, getContentTypeUrl(params) + '/published', null, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version,\n ...headers,\n },\n })\n}\n\nexport const unpublish: RestEndpoint<'ContentType', 'unpublish'> = (\n http: AxiosInstance,\n params: GetContentTypeParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getContentTypeUrl(params) + '/published', { headers })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEditorInterfaceParams,\n GetSpaceEnvironmentParams,\n QueryParams,\n} from '../../../common-types'\nimport { EditorInterfaceProps } from '../../../entities/editor-interface'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetEditorInterfaceParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`\n\nexport const get: RestEndpoint<'EditorInterface', 'get'> = (\n http: AxiosInstance,\n params: GetEditorInterfaceParams\n) => {\n return raw.get(http, getBaseUrl(params))\n}\n\nexport const getMany: RestEndpoint<'EditorInterface', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`\n )\n}\n\nexport const update: RestEndpoint<'EditorInterface', 'update'> = (\n http: AxiosInstance,\n params: GetEditorInterfaceParams,\n rawData: EditorInterfaceProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getBaseUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { OpPatch } from 'json-patch'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n KeyValueMap,\n QueryParams,\n} from '../../../common-types'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from '../../../entities/entry'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Entry', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string } & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const getPublished: RestEndpoint<'Entry', 'getPublished'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const getMany: RestEndpoint<'Entry', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get>>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`,\n {\n params: normalizeSelect(params.query),\n headers: { ...headers },\n }\n )\n}\n\nexport const patch: RestEndpoint<'Entry', 'patch'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string; version: number },\n data: OpPatch[],\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.patch>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n 'Content-Type': 'application/json-patch+json',\n ...headers,\n },\n }\n )\n}\n\nexport const update: RestEndpoint<'Entry', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string },\n rawData: EntryProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Entry', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`\n )\n}\n\nexport const publish: RestEndpoint<'Entry', 'publish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string },\n rawData: EntryProps\n) => {\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': rawData.sys.version,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Entry', 'unpublish'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`\n )\n}\n\nexport const archive: RestEndpoint<'Entry', 'archive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`\n )\n}\n\nexport const unarchive: RestEndpoint<'Entry', 'unarchive'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string }\n) => {\n return raw.del>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`\n )\n}\n\nexport const create: RestEndpoint<'Entry', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { contentTypeId: string },\n rawData: CreateEntryProps\n) => {\n const data = copy(rawData)\n\n return raw.post>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`,\n data,\n {\n headers: {\n 'X-Contentful-Content-Type': params.contentTypeId,\n },\n }\n )\n}\n\nexport const createWithId: RestEndpoint<'Entry', 'createWithId'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string },\n rawData: CreateEntryProps\n) => {\n const data = copy(rawData)\n\n return raw.put>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`,\n data,\n {\n headers: {\n 'X-Contentful-Content-Type': params.contentTypeId,\n },\n }\n )\n}\n\nexport const references: RestEndpoint<'Entry', 'references'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n): Promise => {\n const { spaceId, environmentId, entryId, include } = params\n\n const level = include || 2\n\n return raw.get(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvAliasParams,\n GetSpaceParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport {\n CreateEnvironmentAliasProps,\n EnvironmentAliasProps,\n} from '../../../entities/environment-alias'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * Urls\n */\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/environment_aliases`\n\nconst getEnvironmentAliasUrl = (params: GetSpaceEnvAliasParams) =>\n getBaseUrl(params) + `/${params.environmentAliasId}`\n\n/**\n * Endpoints\n */\n\nexport const get: RestEndpoint<'EnvironmentAlias', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams\n) => {\n return raw.get(http, getEnvironmentAliasUrl(params))\n}\n\nexport const getMany: RestEndpoint<'EnvironmentAlias', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & PaginationQueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const createWithId: RestEndpoint<'EnvironmentAlias', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams,\n rawData: CreateEnvironmentAliasProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.put(http, getEnvironmentAliasUrl(params), data, {\n headers: headers,\n })\n}\n\nexport const update: RestEndpoint<'EnvironmentAlias', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams,\n rawData: EnvironmentAliasProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getEnvironmentAliasUrl(params), data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del: RestEndpoint<'EnvironmentAlias', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvAliasParams\n) => {\n return raw.del(http, getEnvironmentAliasUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst apiPath = (organizationId: string, ...pathSegments: (number | string)[]) =>\n `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/')\n\nexport const getMany: RestEndpoint<'EnvironmentTemplateInstallation', 'getMany'> = (\n http,\n { organizationId, environmentTemplateId, spaceId, environmentId, ...paginationProps },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {\n params: {\n ...paginationProps,\n ...(environmentId && { 'environment.sys.id': environmentId }),\n ...(spaceId && { 'space.sys.id': spaceId }),\n },\n headers,\n })\n\nexport const getForEnvironment: RestEndpoint<\n 'EnvironmentTemplateInstallation',\n 'getForEnvironment'\n> = (\n http,\n { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`,\n {\n params: {\n ...(installationId && { 'sys.id': installationId }),\n ...paginationProps,\n },\n headers,\n }\n )\n","import copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { EnvironmentTemplateProps } from '../../../entities/environment-template'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { RawAxiosRequestHeaders } from 'axios'\n\nconst apiPath = (organizationId: string, ...pathSegments: (number | string)[]) =>\n `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/')\n\nexport const get: RestEndpoint<'EnvironmentTemplate', 'get'> = (\n http,\n { organizationId, environmentTemplateId, version, query = {} },\n headers?: RawAxiosRequestHeaders\n) =>\n version\n ? raw.get(http, apiPath(organizationId, environmentTemplateId, 'versions', version), {\n params: query,\n headers,\n })\n : raw.get(http, apiPath(organizationId, environmentTemplateId), {\n params: query,\n headers,\n })\n\nexport const getMany: RestEndpoint<'EnvironmentTemplate', 'getMany'> = (\n http,\n { organizationId, query = {} },\n headers?: RawAxiosRequestHeaders\n) => raw.get(http, apiPath(organizationId), { params: query, headers })\n\nexport const create: RestEndpoint<'EnvironmentTemplate', 'create'> = (\n http,\n { organizationId },\n payload,\n headers?: RawAxiosRequestHeaders\n) => raw.post(http, apiPath(organizationId), payload, { headers })\n\nexport const update: RestEndpoint<'EnvironmentTemplate', 'update'> = (\n http,\n { organizationId, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(payload)\n delete data.sys\n\n return raw.put(http, apiPath(organizationId, environmentTemplateId), data, {\n headers: {\n 'X-Contentful-Version': payload.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const versionUpdate: RestEndpoint<'EnvironmentTemplate', 'versionUpdate'> = (\n http,\n { organizationId, version, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.patch(http, apiPath(organizationId, environmentTemplateId, 'versions', version), payload, {\n headers,\n })\n\nexport const del: RestEndpoint<'EnvironmentTemplate', 'delete'> = (\n http,\n { organizationId, environmentTemplateId },\n headers?: RawAxiosRequestHeaders\n) => raw.del(http, apiPath(organizationId, environmentTemplateId), { headers })\n\nexport const versions: RestEndpoint<'EnvironmentTemplate', 'versions'> = (\n http,\n { organizationId, environmentTemplateId, query = {} },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, apiPath(organizationId, environmentTemplateId, 'versions'), {\n params: query,\n headers,\n })\n\nexport const validate: RestEndpoint<'EnvironmentTemplate', 'validate'> = (\n http,\n { spaceId, environmentId, environmentTemplateId, version },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.put(\n http,\n version\n ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`\n : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`,\n payload,\n { headers }\n )\n\nexport const install: RestEndpoint<'EnvironmentTemplate', 'install'> = (\n http,\n { spaceId, environmentId, environmentTemplateId },\n payload,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.post(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`,\n payload,\n { headers }\n )\n\nexport const disconnect: RestEndpoint<'EnvironmentTemplate', 'disconnect'> = (\n http,\n { spaceId, environmentId, environmentTemplateId },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.del(\n http,\n `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`,\n { headers }\n )\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n PaginationQueryParams,\n} from '../../../common-types'\nimport { CreateEnvironmentProps, EnvironmentProps } from '../../../entities/environment'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Environment', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`\n )\n}\n\nexport const getMany: RestEndpoint<'Environment', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & PaginationQueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/environments`, {\n params: params.query,\n })\n}\n\nexport const update: RestEndpoint<'Environment', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: EnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`,\n data,\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Environment', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`)\n}\n\nexport const create: RestEndpoint<'Environment', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: CreateEnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, `/spaces/${params.spaceId}/environments`, data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'Environment', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { sourceEnvironmentId?: string },\n rawData: CreateEnvironmentProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}`,\n data,\n {\n headers: {\n ...headers,\n ...(params.sourceEnvironmentId\n ? {\n 'X-Contentful-Source-Environment': params.sourceEnvironmentId,\n }\n : {}),\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetExtensionParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateExtensionProps, ExtensionProps } from '../../../entities/extension'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`\n\nexport const getExtensionUrl = (params: GetExtensionParams) =>\n getBaseUrl(params) + `/${params.extensionId}`\n\nexport const get: RestEndpoint<'Extension', 'get'> = (\n http: AxiosInstance,\n params: GetExtensionParams & QueryParams\n) => {\n return raw.get(http, getExtensionUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getMany: RestEndpoint<'Extension', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Extension', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n rawData: CreateExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const createWithId: RestEndpoint<'Extension', 'createWithId'> = (\n http: AxiosInstance,\n params: GetExtensionParams,\n rawData: CreateExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getExtensionUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'Extension', 'update'> = async (\n http: AxiosInstance,\n params: GetExtensionParams,\n rawData: ExtensionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getExtensionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Extension', 'delete'> = (\n http: AxiosInstance,\n params: GetExtensionParams\n) => {\n return raw.del(http, getExtensionUrl(params))\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance, RawAxiosRequestConfig } from 'axios'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Http', 'get'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.get(http, url, config)\n}\n\nexport const post: RestEndpoint<'Http', 'post'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.post(http, url, payload, config)\n}\n\nexport const put: RestEndpoint<'Http', 'put'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.put(http, url, payload, config)\n}\n\nexport const patch: RestEndpoint<'Http', 'patch'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig },\n payload?: any\n) => {\n return raw.patch(http, url, payload, config)\n}\n\nexport const del: RestEndpoint<'Http', 'delete'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.del(http, url, config)\n}\n\nexport const request: RestEndpoint<'Http', 'request'> = (\n http: AxiosInstance,\n { url, config }: { url: string; config?: RawAxiosRequestConfig }\n) => {\n return raw.http(http, url, config)\n}\n","import * as ApiKey from './api-key'\nimport * as AppAction from './app-action'\nimport * as AppActionCall from './app-action-call'\nimport * as AppBundle from './app-bundle'\nimport * as AppDefinition from './app-definition'\nimport * as AppDetails from './app-details'\nimport * as AppInstallation from './app-installation'\nimport * as AppSignedRequest from './app-signed-request'\nimport * as AppSigningSecret from './app-signing-secret'\nimport * as AppEventSubscription from './app-event-subscription'\nimport * as AppKey from './app-key'\nimport * as AppAccessToken from './app-access-token'\nimport * as AppUpload from './app-upload'\nimport * as Asset from './asset'\nimport * as AssetKey from './asset-key'\nimport * as BulkAction from './bulk-action'\nimport * as Comment from './comment'\nimport * as ContentType from './content-type'\nimport * as EditorInterface from './editor-interface'\nimport * as Entry from './entry'\nimport * as Environment from './environment'\nimport * as EnvironmentAlias from './environment-alias'\nimport * as EnvironmentTemplate from './environment-template'\nimport * as EnvironmentTemplateInstallation from './environment-template-installation'\nimport * as Extension from './extension'\nimport * as Http from './http'\nimport * as Locale from './locale'\nimport * as Organization from './organization'\nimport * as OrganizationInvitation from './organization-invitation'\nimport * as OrganizationMembership from './organization-membership'\nimport * as PersonalAccessToken from './personal-access-token'\nimport * as AccessToken from './access-token'\nimport * as PreviewApiKey from './preview-api-key'\nimport * as Release from './release'\nimport * as ReleaseAction from './release-action'\nimport * as Role from './role'\nimport * as ScheduledAction from './scheduled-action'\nimport * as Snapshot from './snapshot'\nimport * as Space from './space'\nimport * as SpaceMember from './space-member'\nimport * as SpaceMembership from './space-membership'\nimport * as Tag from './tag'\nimport * as Task from './task'\nimport * as Team from './team'\nimport * as TeamMembership from './team-membership'\nimport * as TeamSpaceMembership from './team-space-membership'\nimport * as UIConfig from './ui-config'\nimport * as Upload from './upload'\nimport * as Usage from './usage'\nimport * as User from './user'\nimport * as UserUIConfig from './user-ui-config'\nimport * as Webhook from './webhook'\nimport * as Workflow from './workflow'\nimport * as WorkflowDefinition from './workflow-definition'\nimport * as WorkflowsChangelog from './workflows-changelog'\n\nexport default {\n ApiKey,\n AppAction,\n AppActionCall,\n AppBundle,\n AppDefinition,\n AppInstallation,\n AppUpload,\n AppSignedRequest,\n AppSigningSecret,\n AppEventSubscription,\n AppKey,\n AppAccessToken,\n AppDetails,\n Asset,\n AssetKey,\n BulkAction,\n Comment,\n ContentType,\n EditorInterface,\n Entry,\n Environment,\n EnvironmentAlias,\n EnvironmentTemplate,\n EnvironmentTemplateInstallation,\n Extension,\n Http,\n Locale,\n Organization,\n OrganizationInvitation,\n OrganizationMembership,\n PersonalAccessToken,\n AccessToken,\n PreviewApiKey,\n Release,\n ReleaseAction,\n Role,\n ScheduledAction,\n Snapshot,\n Space,\n SpaceMember,\n SpaceMembership,\n Tag,\n Task,\n Team,\n TeamMembership,\n TeamSpaceMembership,\n UIConfig,\n Upload,\n Usage,\n User,\n UserUIConfig,\n Webhook,\n WorkflowDefinition,\n Workflow,\n WorkflowsChangelog,\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from '../../../common-types'\nimport { CreateLocaleProps, LocaleProps } from '../../../entities/locale'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Locale', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`\n )\n}\n\nexport const getMany: RestEndpoint<'Locale', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`,\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const create: RestEndpoint<'Locale', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: CreateLocaleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`,\n data,\n {\n headers,\n }\n )\n}\n\nexport const update: RestEndpoint<'Locale', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string },\n rawData: LocaleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n delete data.default // we should not send this back\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`,\n data,\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Locale', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { localeId: string }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from '../../../entities/organization-invitation'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst OrganizationUserManagementAlphaHeaders = {\n 'x-contentful-enable-alpha-feature': 'organization-user-management-api',\n}\n\nconst InvitationAlphaHeaders = {\n 'x-contentful-enable-alpha-feature': 'pending-org-membership',\n}\n\nexport const create: RestEndpoint<'OrganizationInvitation', 'create'> = (\n http: AxiosInstance,\n params: { organizationId: string },\n data: CreateOrganizationInvitationProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(\n http,\n `/organizations/${params.organizationId}/invitations`,\n data,\n {\n headers: {\n ...InvitationAlphaHeaders,\n ...headers,\n },\n }\n )\n}\n\nexport const get: RestEndpoint<'OrganizationInvitation', 'get'> = (\n http: AxiosInstance,\n params: { organizationId: string; invitationId: string },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/invitations/${params.invitationId}`,\n {\n headers: {\n ...OrganizationUserManagementAlphaHeaders,\n ...headers,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationMembershipParams,\n GetOrganizationParams,\n QueryParams,\n} from '../../../common-types'\nimport { OrganizationMembershipProps } from '../../../entities/organization-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/organization_memberships`\n\nconst getEntityUrl = (params: GetOrganizationMembershipParams) =>\n `${getBaseUrl(params)}/${params.organizationMembershipId}`\n\nexport const get: RestEndpoint<'OrganizationMembership', 'get'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams\n) => {\n return raw.get(http, getEntityUrl(params))\n}\n\nexport const getMany: RestEndpoint<'OrganizationMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const update: RestEndpoint<'OrganizationMembership', 'update'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams,\n rawData: OrganizationMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n const { role } = data\n return raw.put(\n http,\n getEntityUrl(params),\n { role },\n {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'OrganizationMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetOrganizationMembershipParams\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetOrganizationParams, PaginationQueryParams } from '../../../common-types'\nimport { OrganizationProp } from '../../../entities/organization'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getMany: RestEndpoint<'Organization', 'getMany'> = (\n http: AxiosInstance,\n params?: PaginationQueryParams\n) => {\n return raw.get>(http, `/organizations`, {\n params: params?.query,\n })\n}\n\nexport const get: RestEndpoint<'Organization', 'get'> = (\n http: AxiosInstance,\n params: GetOrganizationParams\n) => {\n return getMany(http, { query: { limit: 100 } }).then((data) => {\n const org = data.items.find((org) => org.sys.id === params.organizationId)\n if (!org) {\n const error = new Error(\n `No organization was found with the ID ${\n params.organizationId\n } instead got ${JSON.stringify(data)}`\n )\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error.status = 404\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error.statusText = 'Not Found'\n return Promise.reject(error)\n }\n return org\n })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, QueryParams } from '../../../common-types'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from '../../../entities/personal-access-token'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\n/**\n * @deprecated use `access-token.get` instead `personal-access-token.get`\n */\nexport const get: RestEndpoint<'PersonalAccessToken', 'get'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.get(http, `/users/me/access_tokens/${params.tokenId}`)\n}\n\n/**\n * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`\n */\nexport const getMany: RestEndpoint<'PersonalAccessToken', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) => {\n return raw.get>(http, '/users/me/access_tokens', {\n params: params.query,\n })\n}\n\n/**\n * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`\n */\nexport const create: RestEndpoint<'PersonalAccessToken', 'create'> = (\n http: AxiosInstance,\n _params: {},\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, '/users/me/access_tokens', rawData, {\n headers,\n })\n}\n\n/**\n * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke`\n */\nexport const revoke: RestEndpoint<'PersonalAccessToken', 'revoke'> = (\n http: AxiosInstance,\n params: { tokenId: string }\n) => {\n return raw.put(\n http,\n `/users/me/access_tokens/${params.tokenId}/revoked`,\n null\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { PreviewApiKeyProps } from '../../../entities/preview-api-key'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'PreviewApiKey', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { previewApiKeyId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`\n )\n}\n\nexport const getMany: RestEndpoint<'PreviewApiKey', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/preview_api_keys`,\n {\n params: params.query,\n }\n )\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { AxiosInstance, RawAxiosRequestConfig } from 'axios'\nimport { errorHandler } from 'contentful-sdk-core'\n\nfunction getBaseUrl(http: AxiosInstance) {\n return http.defaults.baseURL?.split('/spaces')[0]\n}\n\nexport function get(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig) {\n return http\n .get(url, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function patch(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .patch(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function post(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .post(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function put(\n http: AxiosInstance,\n url: string,\n payload?: any,\n config?: RawAxiosRequestConfig\n) {\n return http\n .put(url, payload, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function del(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig) {\n return http\n .delete(url, {\n baseURL: getBaseUrl(http),\n ...config,\n })\n .then((response) => response.data, errorHandler)\n}\n\nexport function http(\n http: AxiosInstance,\n url: string,\n config?: Omit\n) {\n return http(url, {\n baseURL: getBaseUrl(http),\n ...config,\n }).then((response) => response.data as T, errorHandler)\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetReleaseParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport { ReleaseActionQueryOptions } from '../../../entities/release-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'ReleaseAction', 'get'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { actionId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`\n )\n}\n\nexport const getMany: RestEndpoint<'ReleaseAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: ReleaseActionQueryOptions }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`,\n {\n params: params.query,\n }\n )\n}\n\nexport const queryForRelease: RestEndpoint<'ReleaseAction', 'queryForRelease'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { query?: ReleaseActionQueryOptions }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`,\n {\n params: {\n 'sys.release.sys.id[in]': params.releaseId,\n ...params.query,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport { GetReleaseParams, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n ReleasePayload,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from '../../../entities/release'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Release', 'get'> = (\n http: AxiosInstance,\n params: GetReleaseParams\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`\n )\n}\n\nexport const query: RestEndpoint<'Release', 'query'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: ReleaseQueryOptions }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {\n params: params.query,\n })\n}\n\nexport const create: RestEndpoint<'Release', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n payload: ReleasePayload\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`,\n payload\n )\n}\n\nexport const update: RestEndpoint<'Release', 'update'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n payload: ReleasePayload,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`,\n payload,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const del: RestEndpoint<'Release', 'delete'> = (\n http: AxiosInstance,\n params: GetReleaseParams\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`\n )\n}\n\nexport const publish: RestEndpoint<'Release', 'publish'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`,\n null,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const unpublish: RestEndpoint<'Release', 'unpublish'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: number },\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n ...headers,\n },\n }\n )\n}\n\nexport const validate: RestEndpoint<'Release', 'validate'> = (\n http: AxiosInstance,\n params: GetReleaseParams,\n payload?: ReleaseValidatePayload\n) => {\n return raw.post(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/validate`,\n payload\n )\n}\n\nexport const archive: RestEndpoint<'Release', 'archive'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: string | number }\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`,\n null,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n\nexport const unarchive: RestEndpoint<'Release', 'unarchive'> = (\n http: AxiosInstance,\n params: GetReleaseParams & { version: string | number }\n) => {\n return raw.del(\n http,\n `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`,\n {\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateRoleProps, RoleProps } from '../../../entities/role'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'Role', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/roles/${params.roleId}`)\n}\n\nexport const getMany: RestEndpoint<'Role', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/roles`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getManyForOrganization: RestEndpoint<'Role', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, `/organizations/${params.organizationId}/roles`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Role', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateRoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/roles`, data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'Role', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string },\n data: CreateRoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'Role', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { roleId: string },\n rawData: RoleProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del = (http: AxiosInstance, params: GetSpaceParams & { roleId: string }) => {\n return raw.del(http, `/spaces/${params.spaceId}/roles/${params.roleId}`)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { ScheduledActionProps } from '../../../entities/scheduled-action'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nexport const get: RestEndpoint<'ScheduledAction', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { environmentId: string; scheduledActionId: string }\n) => {\n return raw.get(\n http,\n `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`,\n {\n params: {\n 'environment.sys.id': params.environmentId,\n },\n }\n )\n}\n\nexport const getMany: RestEndpoint<'ScheduledAction', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/spaces/${params.spaceId}/scheduled_actions`,\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const create: RestEndpoint<'ScheduledAction', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: Omit\n) => {\n return raw.post(http, `/spaces/${params.spaceId}/scheduled_actions`, data)\n}\n\nexport const del: RestEndpoint<'ScheduledAction', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { scheduledActionId: string }\n) => {\n return raw.del(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {\n params: {\n 'environment.sys.id': params.environmentId,\n },\n })\n}\n\nexport const update: RestEndpoint<'ScheduledAction', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { scheduledActionId: string; version: number },\n data: Omit\n) => {\n return raw.put(\n http,\n `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`,\n data,\n {\n params: {\n 'environment.sys.id': data.environment?.sys.id,\n },\n headers: {\n 'X-Contentful-Version': params.version,\n },\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetSnapshotForContentTypeParams,\n GetSnapshotForEntryParams,\n KeyValueMap,\n QueryParams,\n} from '../../../common-types'\nimport { ContentTypeProps } from '../../../entities/content-type'\nimport { EntryProps } from '../../../entities/entry'\nimport { SnapshotProps } from '../../../entities/snapshot'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseEntryUrl = (params: GetSnapshotForEntryParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`\n\nconst getEntryUrl = (params: GetSnapshotForEntryParams & { snapshotId: string }) =>\n getBaseEntryUrl(params) + `/${params.snapshotId}`\n\nexport const getManyForEntry: RestEndpoint<'Snapshot', 'getManyForEntry'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSnapshotForEntryParams & QueryParams\n) => {\n return raw.get, 'metadata'>>>>(\n http,\n getBaseEntryUrl(params),\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const getForEntry: RestEndpoint<'Snapshot', 'getForEntry'> = <\n T extends KeyValueMap = KeyValueMap\n>(\n http: AxiosInstance,\n params: GetSnapshotForEntryParams & { snapshotId: string }\n) => {\n return raw.get, 'metadata'>>>(http, getEntryUrl(params))\n}\n\nconst getBaseContentTypeUrl = (params: GetSnapshotForContentTypeParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`\n\nconst getContentTypeUrl = (params: GetSnapshotForContentTypeParams & { snapshotId: string }) =>\n getBaseContentTypeUrl(params) + `/${params.snapshotId}`\n\nexport const getManyForContentType: RestEndpoint<'Snapshot', 'getManyForContentType'> = (\n http: AxiosInstance,\n params: GetSnapshotForContentTypeParams & QueryParams\n) => {\n return raw.get>>(\n http,\n getBaseContentTypeUrl(params),\n {\n params: normalizeSelect(params.query),\n }\n )\n}\n\nexport const getForContentType: RestEndpoint<'Snapshot', 'getForContentType'> = (\n http: AxiosInstance,\n params: GetSnapshotForContentTypeParams & { snapshotId: string }\n) => {\n return raw.get>(http, getContentTypeUrl(params))\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, GetSpaceParams, QueryParams } from '../../../common-types'\nimport { SpaceMemberProps } from '../../../entities/space-member'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'SpaceMember', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { spaceMemberId: string }\n) =>\n raw.get(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`)\n\nexport const getMany: RestEndpoint<'SpaceMember', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) =>\n raw.get>(http, `/spaces/${params.spaceId}/space_members`, {\n params: params.query,\n })\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceMembershipProps,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateSpaceMembershipProps,\n SpaceMembershipProps,\n} from '../../../entities/space-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nfunction spaceMembershipDeprecationWarning() {\n console.warn(\n 'The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)'\n )\n}\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/space_memberships`\nconst getEntityUrl = (params: GetSpaceMembershipProps) =>\n `${getBaseUrl(params)}/${params.spaceMembershipId}`\n\nexport const get: RestEndpoint<'SpaceMembership', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps\n) => {\n spaceMembershipDeprecationWarning()\n return raw.get(http, getEntityUrl(params))\n}\n\nexport const getMany: RestEndpoint<'SpaceMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n spaceMembershipDeprecationWarning()\n return raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n}\n\nexport const getForOrganization: RestEndpoint<'SpaceMembership', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { spaceMembershipId: string }\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<'SpaceMembership', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/space_memberships`,\n {\n params: params.query,\n }\n )\n}\n\nexport const create: RestEndpoint<'SpaceMembership', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n data: CreateSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n spaceMembershipDeprecationWarning()\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const createWithId: RestEndpoint<'SpaceMembership', 'createWithId'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps,\n data: CreateSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n spaceMembershipDeprecationWarning()\n return raw.put(http, getEntityUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'SpaceMembership', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps,\n rawData: SpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n ...headers,\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n\nexport const del: RestEndpoint<'SpaceMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceMembershipProps\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { SpaceProps } from '../../../entities/space'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const get: RestEndpoint<'Space', 'get'> = (http: AxiosInstance, params: GetSpaceParams) =>\n raw.get(http, `/spaces/${params.spaceId}`)\n\nexport const getMany: RestEndpoint<'Space', 'getMany'> = (\n http: AxiosInstance,\n params: QueryParams\n) =>\n raw.get>(http, `/spaces`, {\n params: params.query,\n })\n\nexport const getManyForOrganization: RestEndpoint<'Space', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(http, `/organizations/${params.organizationId}/spaces`, {\n params: params.query,\n })\n\nexport const create: RestEndpoint<'Space', 'create'> = (\n http: AxiosInstance,\n params: { organizationId?: string },\n payload: Omit,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, `/spaces`, payload, {\n headers: params.organizationId\n ? { ...headers, 'X-Contentful-Organization': params.organizationId }\n : headers,\n })\n}\n\nexport const update: RestEndpoint<'Space', 'update'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: SpaceProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, `/spaces/${params.spaceId}`, data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Space', 'delete'> = (http: AxiosInstance, params: GetSpaceParams) =>\n raw.del(http, `/spaces/${params.spaceId}`)\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetTagParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTagProps, DeleteTagParams, TagProps, UpdateTagProps } from '../../../entities/tag'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`\n\nconst getTagUrl = (params: GetTagParams) => getBaseUrl(params) + `/${params.tagId}`\n\nexport const get: RestEndpoint<'Tag', 'get'> = (http: AxiosInstance, params: GetTagParams) =>\n raw.get(http, getTagUrl(params))\n\nexport const getMany: RestEndpoint<'Tag', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n\nexport const createWithId: RestEndpoint<'Tag', 'createWithId'> = (\n http: AxiosInstance,\n params: GetTagParams,\n rawData: CreateTagProps\n) => {\n const data = copy(rawData)\n return raw.put(http, getTagUrl(params), data, {\n headers: { 'X-Contentful-Tag-Visibility': rawData.sys.visibility ?? 'private' },\n })\n}\n\nexport const update: RestEndpoint<'Tag', 'update'> = (\n http: AxiosInstance,\n params: GetTagParams,\n rawData: UpdateTagProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getTagUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Tag', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteTagParams\n) => {\n return raw.del(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetEntryParams,\n GetTaskParams,\n PaginationQueryOptions,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateTaskParams,\n CreateTaskProps,\n DeleteTaskParams,\n TaskProps,\n UpdateTaskProps,\n} from '../../../entities/task'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetEntryParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`\nconst getTaskUrl = (params: GetTaskParams) => `${getBaseUrl(params)}/${params.taskId}`\n\nexport const get: RestEndpoint<'Task', 'get'> = (http: AxiosInstance, params: GetTaskParams) =>\n raw.get(http, getTaskUrl(params))\n\nexport const getMany: RestEndpoint<'Task', 'getMany'> = (\n http: AxiosInstance,\n params: GetEntryParams & QueryParams & PaginationQueryOptions\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n\n/**\n * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.\n */\nexport const getAll: RestEndpoint<'Task', 'getAll'> = getMany\n\nexport const create: RestEndpoint<'Task', 'create'> = (\n http: AxiosInstance,\n params: CreateTaskParams,\n rawData: CreateTaskProps\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data)\n}\n\nexport const update: RestEndpoint<'Task', 'update'> = (\n http: AxiosInstance,\n params: GetTaskParams,\n rawData: UpdateTaskProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getTaskUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Task', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteTaskParams\n) => {\n return raw.del(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } })\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetTeamMembershipParams,\n GetTeamParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from '../../../entities/team-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetTeamParams) =>\n `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`\n\nconst getEntityUrl = (params: GetTeamMembershipParams) =>\n `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`\n\nexport const get: RestEndpoint<'TeamMembership', 'get'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams\n) => raw.get(http, getEntityUrl(params))\n\nexport const getManyForOrganization = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(\n http,\n `/organizations/${params.organizationId}/team_memberships`,\n {\n params: normalizeSelect(params.query),\n }\n )\n\nexport const getManyForTeam: RestEndpoint<'TeamMembership', 'getManyForTeam'> = (\n http: AxiosInstance,\n params: GetTeamParams & QueryParams\n) => {\n return raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'TeamMembership', 'create'> = (\n http: AxiosInstance,\n params: GetTeamParams,\n rawData: CreateTeamMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const update: RestEndpoint<'TeamMembership', 'update'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams,\n rawData: TeamMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version || 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'TeamMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetTeamMembershipParams\n) => raw.del(http, getEntityUrl(params))\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n GetTeamSpaceMembershipParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from '../../../entities/team-space-membership'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/team_space_memberships`\n\nconst getEntityUrl = (params: GetTeamSpaceMembershipParams) =>\n `${getBaseUrl(params)}/${params.teamSpaceMembershipId}`\n\nexport const get: RestEndpoint<'TeamSpaceMembership', 'get'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams\n) => raw.get(http, getEntityUrl(params))\n\nexport const getMany: RestEndpoint<'TeamSpaceMembership', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: params.query,\n })\n\nexport const getForOrganization: RestEndpoint<'TeamSpaceMembership', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { teamSpaceMembershipId: string }\n) => {\n return raw.get(\n http,\n `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<\n 'TeamSpaceMembership',\n 'getManyForOrganization'\n> = (http: AxiosInstance, params: GetOrganizationParams & QueryParams & { teamId?: string }) => {\n const query = params.query || {}\n if (params.teamId) {\n query['sys.team.sys.id'] = params.teamId\n }\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/team_space_memberships`,\n {\n params: params.query,\n }\n )\n}\n\nexport const create: RestEndpoint<'TeamSpaceMembership', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { teamId: string },\n rawData: CreateTeamSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, {\n headers: {\n 'x-contentful-team': params.teamId,\n ...headers,\n },\n })\n}\n\nexport const update: RestEndpoint<'TeamSpaceMembership', 'update'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams,\n rawData: TeamSpaceMembershipProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version || 0,\n 'x-contentful-team': rawData.sys.team.sys.id,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'TeamSpaceMembership', 'delete'> = (\n http: AxiosInstance,\n params: GetTeamSpaceMembershipParams\n) => {\n return raw.del(http, getEntityUrl(params))\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n GetTeamParams,\n QueryParams,\n} from '../../../common-types'\nimport { CreateTeamProps, TeamProps } from '../../../entities/team'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetOrganizationParams) =>\n `/organizations/${params.organizationId}/teams`\n\nconst getEntityUrl = (params: GetTeamParams) => `${getBaseUrl(params)}/${params.teamId}`\n\nexport const get: RestEndpoint<'Team', 'get'> = (http: AxiosInstance, params: GetTeamParams) =>\n raw.get(http, getEntityUrl(params))\n\nexport const getMany: RestEndpoint<'Team', 'getMany'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) =>\n raw.get>(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n\nexport const getManyForSpace: RestEndpoint<'Team', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/teams`, {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const create: RestEndpoint<'Team', 'create'> = (\n http: AxiosInstance,\n params: GetOrganizationParams,\n rawData: CreateTeamProps,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.post(http, getBaseUrl(params), rawData, { headers })\n}\n\nexport const update: RestEndpoint<'Team', 'update'> = (\n http: AxiosInstance,\n params: GetTeamParams,\n rawData: TeamProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getEntityUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Team', 'delete'> = (http: AxiosInstance, params: GetTeamParams) =>\n raw.del(http, getEntityUrl(params))\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { SetOptional } from 'type-fest'\nimport { GetUIConfigParams } from '../../../common-types'\nimport { UIConfigProps } from '../../../entities/ui-config'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport copy from 'fast-copy'\n\nconst getUrl = (params: GetUIConfigParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`\n\nexport const get: RestEndpoint<'UIConfig', 'get'> = (\n http: AxiosInstance,\n params: GetUIConfigParams\n) => {\n return raw.get(http, getUrl(params))\n}\n\nexport const update: RestEndpoint<'UIConfig', 'update'> = (\n http: AxiosInstance,\n params: GetUIConfigParams,\n rawData: UIConfigProps\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport { GetSpaceEnvironmentParams, GetSpaceEnvironmentUploadParams } from '../../../common-types'\nimport { getUploadHttpClient } from '../../../upload-http-client'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUploadUrl = (params: GetSpaceEnvironmentParams) => {\n const spacePath = `/spaces/${params.spaceId}/uploads`\n const environmentPath = `/spaces/${params.spaceId}/environments/${params.environmentId}/uploads`\n const path = params.environmentId ? environmentPath : spacePath\n return path\n}\n\nconst getEntityUploadUrl = (params: GetSpaceEnvironmentUploadParams) => {\n const path = getBaseUploadUrl(params)\n return path + `/${params.uploadId}`\n}\n\nexport const create: RestEndpoint<'Upload', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams,\n data: { file: string | ArrayBuffer | Stream }\n) => {\n const httpUpload = getUploadHttpClient(http)\n\n const { file } = data\n if (!file) {\n return Promise.reject(new Error('Unable to locate a file to upload.'))\n }\n const path = getBaseUploadUrl(params)\n return raw.post(httpUpload, path, file, {\n headers: {\n 'Content-Type': 'application/octet-stream',\n },\n })\n}\n\nexport const del: RestEndpoint<'Upload', 'delete'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n const path = getEntityUploadUrl(params)\n return raw.del(httpUpload, path)\n}\n\nexport const get: RestEndpoint<'Upload', 'get'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentUploadParams\n) => {\n const httpUpload = getUploadHttpClient(http)\n const path = getEntityUploadUrl(params)\n return raw.get(httpUpload, path)\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport { CollectionProp, QueryParams } from '../../../common-types'\nimport { UsageProps } from '../../../entities/usage'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getManyForSpace: RestEndpoint<'Usage', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: { organizationId: string } & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/space_periodic_usages`,\n {\n params: params.query,\n }\n )\n}\n\nexport const getManyForOrganization: RestEndpoint<'Usage', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: { organizationId: string } & QueryParams\n) => {\n return raw.get>(\n http,\n `/organizations/${params.organizationId}/organization_periodic_usages`,\n {\n params: params.query,\n }\n )\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { GetUserUIConfigParams } from '../../../common-types'\nimport { UserUIConfigProps } from '../../../entities/user-ui-config'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getUrl = (params: GetUserUIConfigParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`\n\nexport const get: RestEndpoint<'UserUIConfig', 'get'> = (\n http: AxiosInstance,\n params: GetUserUIConfigParams\n) => {\n return raw.get(http, getUrl(params))\n}\n\nexport const update: RestEndpoint<'UserUIConfig', 'update'> = (\n http: AxiosInstance,\n params: GetUserUIConfigParams,\n rawData: UserUIConfigProps\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n return raw.put(http, getUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n },\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\nimport {\n CollectionProp,\n GetOrganizationParams,\n GetSpaceParams,\n QueryParams,\n} from '../../../common-types'\nimport { UserProps } from '../../../entities/user'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nexport const getForSpace: RestEndpoint<'User', 'getForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & { userId: string }\n) => {\n return raw.get(http, `/spaces/${params.spaceId}/users/${params.userId}`)\n}\n\nexport const getCurrent: RestEndpoint<'User', 'getCurrent'> = (\n http: AxiosInstance,\n params?: QueryParams\n) => raw.get(http, `/users/me`, { params: params?.query })\n\nexport const getManyForSpace: RestEndpoint<'User', 'getManyForSpace'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get>(http, `/spaces/${params.spaceId}/users`, {\n params: params.query,\n })\n}\n\nexport const getForOrganization: RestEndpoint<'User', 'getForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & { userId: string }\n) => {\n return raw.get(http, `/organizations/${params.organizationId}/users/${params.userId}`)\n}\n\nexport const getManyForOrganization: RestEndpoint<'User', 'getManyForOrganization'> = (\n http: AxiosInstance,\n params: GetOrganizationParams & QueryParams\n) => {\n return raw.get>(http, `/organizations/${params.organizationId}/users`, {\n params: params.query,\n })\n}\n","import { QueryOptions } from '../../../common-types'\n\nexport function normalizeSelect(query?: QueryOptions): QueryOptions | undefined {\n if (query && query.select && !/sys/i.test(query.select)) {\n return {\n ...query,\n select: query.select + ',sys',\n }\n }\n return query\n}\n\nexport function normalizeSpaceId(query?: QueryOptions): QueryOptions | undefined {\n if (query && query.spaceId) {\n const { spaceId, ...rest } = query\n return {\n ...rest,\n 'sys.space.sys.id[in]': spaceId,\n }\n }\n return query\n}\n","import { RawAxiosRequestHeaders } from 'axios'\nimport type { AxiosInstance } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n GetSpaceParams,\n GetWebhookCallDetailsUrl,\n GetWebhookParams,\n QueryParams,\n} from '../../../common-types'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookProps,\n WebhookRetryPolicyPayload,\n WebhookRetryPolicyProps,\n WebhookSigningSecretProps,\n} from '../../../entities/webhook'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\nimport { normalizeSelect } from './utils'\n\nconst getBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/webhook_definitions`\n\nconst getWebhookCallBaseUrl = (params: GetSpaceParams) => `/spaces/${params.spaceId}/webhooks`\n\nconst getWebhookUrl = (params: GetWebhookParams) =>\n `${getBaseUrl(params)}/${params.webhookDefinitionId}`\n\nconst getWebhookCallUrl = (params: GetWebhookParams) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls`\n\nconst getWebhookCallDetailsUrl = (params: GetWebhookCallDetailsUrl) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls/${params.callId}`\n\nconst getWebhookHealthUrl = (params: GetWebhookParams) =>\n `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/health`\n\nconst getWebhookSettingsUrl = (params: GetSpaceParams) =>\n `/spaces/${params.spaceId}/webhook_settings`\n\nconst getWebhookSigningSecretUrl = (params: GetSpaceParams) =>\n `${getWebhookSettingsUrl(params)}/signing_secret`\n\nconst getWebhookRetryPolicyUrl = (params: GetSpaceParams) =>\n `${getWebhookSettingsUrl(params)}/retry_policy`\n\nexport const get: RestEndpoint<'Webhook', 'get'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.get(http, getWebhookUrl(params))\n}\n\nexport const getManyCallDetails: RestEndpoint<'Webhook', 'getManyCallDetails'> = (\n http: AxiosInstance,\n params: GetWebhookParams & QueryParams\n) => {\n return raw.get(http, getWebhookCallUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getCallDetails: RestEndpoint<'Webhook', 'getCallDetails'> = (\n http: AxiosInstance,\n params: GetWebhookCallDetailsUrl\n) => {\n return raw.get(http, getWebhookCallDetailsUrl(params))\n}\n\nexport const getHealthStatus: RestEndpoint<'Webhook', 'getHealthStatus'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.get(http, getWebhookHealthUrl(params))\n}\n\nexport const getMany: RestEndpoint<'Webhook', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceParams & QueryParams\n) => {\n return raw.get(http, getBaseUrl(params), {\n params: normalizeSelect(params.query),\n })\n}\n\nexport const getSigningSecret: RestEndpoint<'Webhook', 'getSigningSecret'> = (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.get(http, getWebhookSigningSecretUrl(params))\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const getRetryPolicy: RestEndpoint<'Webhook', 'getRetryPolicy'> = (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.get(http, getWebhookRetryPolicyUrl(params))\n}\n\nexport const create: RestEndpoint<'Webhook', 'create'> = (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: CreateWebhooksProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.post(http, getBaseUrl(params), data, { headers })\n}\n\nexport const createWithId = (\n http: AxiosInstance,\n params: GetWebhookParams,\n rawData: CreateWebhooksProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookUrl(params), data, { headers })\n}\n\nexport const update: RestEndpoint<'Webhook', 'update'> = async (\n http: AxiosInstance,\n params: GetWebhookParams,\n rawData: WebhookProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n\n delete data.sys\n\n return raw.put(http, getWebhookUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const upsertSigningSecret: RestEndpoint<'Webhook', 'upsertSigningSecret'> = async (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: UpsertWebhookSigningSecretPayload\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookSigningSecretUrl(params), data)\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const upsertRetryPolicy: RestEndpoint<'Webhook', 'upsertRetryPolicy'> = async (\n http: AxiosInstance,\n params: GetSpaceParams,\n rawData: WebhookRetryPolicyPayload\n) => {\n const data = copy(rawData)\n\n return raw.put(http, getWebhookRetryPolicyUrl(params), data)\n}\n\nexport const del: RestEndpoint<'Webhook', 'delete'> = (\n http: AxiosInstance,\n params: GetWebhookParams\n) => {\n return raw.del(http, getWebhookUrl(params))\n}\n\nexport const deleteSigningSecret: RestEndpoint<'Webhook', 'deleteSigningSecret'> = async (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.del(http, getWebhookSigningSecretUrl(params))\n}\n\n/**\n * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.\n */\nexport const deleteRetryPolicy: RestEndpoint<'Webhook', 'deleteRetryPolicy'> = async (\n http: AxiosInstance,\n params: GetSpaceParams\n) => {\n return raw.del(http, getWebhookRetryPolicyUrl(params))\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport {\n CollectionProp,\n GetSpaceEnvironmentParams,\n GetWorkflowDefinitionParams,\n} from '../../../common-types'\nimport {\n CreateWorkflowDefinitionParams,\n CreateWorkflowDefinitionProps,\n DeleteWorkflowDefinitionParams,\n UpdateWorkflowDefinitionProps,\n WorkflowDefinitionProps,\n WorkflowDefinitionQueryOptions,\n} from '../../../entities/workflow-definition'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`\nconst getWorkflowDefinitionUrl = (params: GetWorkflowDefinitionParams) =>\n `${getBaseUrl(params)}/${params.workflowDefinitionId}`\n\nexport const get: RestEndpoint<'WorkflowDefinition', 'get'> = (\n http: AxiosInstance,\n params: GetWorkflowDefinitionParams,\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get(http, getWorkflowDefinitionUrl(params), {\n headers,\n })\n\nexport const getMany: RestEndpoint<'WorkflowDefinition', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: WorkflowDefinitionQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n\nexport const create: RestEndpoint<'WorkflowDefinition', 'create'> = (\n http: AxiosInstance,\n params: CreateWorkflowDefinitionParams,\n rawData: CreateWorkflowDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'WorkflowDefinition', 'update'> = (\n http: AxiosInstance,\n params: GetWorkflowDefinitionParams,\n rawData: UpdateWorkflowDefinitionProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getWorkflowDefinitionUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'WorkflowDefinition', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteWorkflowDefinitionParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getWorkflowDefinitionUrl(params), {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport copy from 'fast-copy'\nimport { SetOptional } from 'type-fest'\nimport { CollectionProp, GetSpaceEnvironmentParams, GetWorkflowParams } from '../../../common-types'\nimport {\n CompleteWorkflowParams,\n CreateWorkflowParams,\n CreateWorkflowProps,\n DeleteWorkflowParams,\n UpdateWorkflowParams,\n UpdateWorkflowProps,\n WorkflowProps,\n WorkflowQueryOptions,\n} from '../../../entities/workflow'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`\n\nconst getWorkflowUrl = (params: GetWorkflowParams) => `${getBaseUrl(params)}/${params.workflowId}`\n\nconst completeWorkflowUrl = (params: GetWorkflowParams) => `${getWorkflowUrl(params)}/complete`\n\nexport const getMany: RestEndpoint<'Workflow', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query?: WorkflowQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n\nexport const create: RestEndpoint<'Workflow', 'create'> = (\n http: AxiosInstance,\n params: CreateWorkflowParams,\n rawData: CreateWorkflowProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data = copy(rawData)\n return raw.post(http, getBaseUrl(params), data, {\n headers,\n })\n}\n\nexport const update: RestEndpoint<'Workflow', 'update'> = (\n http: AxiosInstance,\n params: UpdateWorkflowParams,\n rawData: UpdateWorkflowProps,\n headers?: RawAxiosRequestHeaders\n) => {\n const data: SetOptional = copy(rawData)\n delete data.sys\n\n return raw.put(http, getWorkflowUrl(params), data, {\n headers: {\n 'X-Contentful-Version': rawData.sys.version ?? 0,\n ...headers,\n },\n })\n}\n\nexport const del: RestEndpoint<'Workflow', 'delete'> = (\n http: AxiosInstance,\n { version, ...params }: DeleteWorkflowParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.del(http, getWorkflowUrl(params), {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n\nexport const complete: RestEndpoint<'Workflow', 'complete'> = (\n http: AxiosInstance,\n { version, ...params }: CompleteWorkflowParams,\n headers?: RawAxiosRequestHeaders\n) => {\n return raw.put(http, completeWorkflowUrl(params), null, {\n headers: { 'X-Contentful-Version': version, ...headers },\n })\n}\n","import { AxiosInstance, RawAxiosRequestHeaders } from 'axios'\nimport { CollectionProp, GetSpaceEnvironmentParams } from '../../../common-types'\nimport {\n WorkflowsChangelogQueryOptions,\n WorkflowsChangelogEntryProps,\n} from '../../../entities/workflows-changelog-entry'\nimport { RestEndpoint } from '../types'\nimport * as raw from './raw'\n\nconst getBaseUrl = (params: GetSpaceEnvironmentParams) =>\n `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`\n\nexport const getMany: RestEndpoint<'WorkflowsChangelog', 'getMany'> = (\n http: AxiosInstance,\n params: GetSpaceEnvironmentParams & { query: WorkflowsChangelogQueryOptions },\n headers?: RawAxiosRequestHeaders\n) =>\n raw.get>(http, getBaseUrl(params), {\n headers,\n params: params.query,\n })\n","import axios, { RawAxiosRequestHeaders } from 'axios'\nimport { AxiosInstance, createHttpClient, CreateHttpClientParams } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { OpPatch } from 'json-patch'\nimport { Adapter, MakeRequestOptions, MakeRequestPayload } from '../../common-types'\nimport endpoints from './endpoints'\n\nexport type RestAdapterParams = CreateHttpClientParams & {\n /**\n * Contentful CMA Access Token\n */\n accessToken: CreateHttpClientParams['accessToken']\n /**\n * API host\n * @default api.contentful.com\n */\n host?: string\n\n /**\n * direct file upload host\n * @default upload.contentful.com\n */\n hostUpload?: string\n\n userAgent?: string | undefined\n}\n\n/**\n * @private\n */\nconst defaultHostParameters = {\n defaultHostname: 'api.contentful.com',\n defaultHostnameUpload: 'upload.contentful.com',\n}\n\nexport class RestAdapter implements Adapter {\n private readonly params: RestAdapterParams\n private readonly axiosInstance: AxiosInstance\n\n public constructor(params: RestAdapterParams) {\n if (!params.accessToken) {\n throw new TypeError('Expected parameter accessToken')\n }\n\n this.params = {\n ...defaultHostParameters,\n ...copy(params),\n }\n\n this.axiosInstance = createHttpClient(axios, {\n ...this.params,\n headers: {\n 'Content-Type': 'application/vnd.contentful.management.v1+json',\n // possibly define a default user agent?\n ...(params.userAgent ? { 'X-Contentful-User-Agent': params.userAgent } : {}),\n ...this.params.headers,\n },\n })\n }\n\n public async makeRequest({\n entityType,\n action: actionInput,\n params,\n payload,\n headers,\n userAgent,\n }: MakeRequestOptions): Promise {\n // `delete` is a reserved keyword. Therefore, the methods are called `del`.\n const action = actionInput === 'delete' ? 'del' : actionInput\n\n const endpoint: (\n http: AxiosInstance,\n params?: Record,\n payload?: Record | OpPatch[] | MakeRequestPayload,\n headers?: RawAxiosRequestHeaders\n ) => Promise =\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n endpoints[entityType]?.[action]\n\n if (endpoint === undefined) {\n throw new Error('Unknown endpoint')\n }\n\n return await endpoint(this.axiosInstance, params, payload, {\n ...headers,\n // overwrite the userAgent with the one passed in the request\n ...(userAgent ? { 'X-Contentful-User-Agent': userAgent } : {}),\n })\n }\n}\n","import { RawAxiosRequestConfig, RawAxiosRequestHeaders } from 'axios'\nimport { OpPatch } from 'json-patch'\nimport { Stream } from 'stream'\nimport { AppActionProps, CreateAppActionProps } from './entities/app-action'\nimport {\n AppActionCallProps,\n AppActionCallResponse,\n CreateAppActionCallProps,\n} from './entities/app-action-call'\nimport { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle'\nimport { ApiKeyProps, CreateApiKeyProps } from './entities/api-key'\nimport { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition'\nimport { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from './entities/asset'\nimport { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'\nimport {\n CreateCommentParams,\n CreateCommentProps,\n DeleteCommentParams,\n CommentProps,\n UpdateCommentParams,\n UpdateCommentProps,\n GetManyCommentsParams,\n RichTextBodyFormat,\n RichTextCommentProps,\n PlainTextBodyFormat,\n RichTextCommentBodyPayload,\n GetCommentParentEntityParams,\n} from './entities/comment'\nimport { EditorInterfaceProps } from './entities/editor-interface'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from './entities/entry'\nimport { CreateEnvironmentProps, EnvironmentProps } from './entities/environment'\nimport { CreateEnvironmentAliasProps, EnvironmentAliasProps } from './entities/environment-alias'\nimport { CreateLocaleProps, LocaleProps } from './entities/locale'\nimport { AppInstallationsForOrganizationProps } from './entities/app-definition'\nimport { OrganizationProp } from './entities/organization'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from './entities/organization-invitation'\nimport { OrganizationMembershipProps } from './entities/organization-membership'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from './entities/personal-access-token'\nimport {\n AccessTokenProp,\n CreatePersonalAccessTokenProps as CreatePATProps,\n} from './entities/access-token'\nimport { PreviewApiKeyProps } from './entities/preview-api-key'\nimport { CreateRoleProps, RoleProps } from './entities/role'\nimport { ScheduledActionProps } from './entities/scheduled-action'\nimport { SnapshotProps } from './entities/snapshot'\nimport { SpaceProps } from './entities/space'\nimport { SpaceMemberProps } from './entities/space-member'\nimport { CreateSpaceMembershipProps, SpaceMembershipProps } from './entities/space-membership'\nimport { CreateTagProps, DeleteTagParams, TagProps, UpdateTagProps } from './entities/tag'\nimport { CreateTeamProps, TeamProps } from './entities/team'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from './entities/team-membership'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from './entities/team-space-membership'\nimport { CreateExtensionProps, ExtensionProps } from './entities/extension'\nimport { UsageProps } from './entities/usage'\nimport { UserProps } from './entities/user'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookCallDetailsProps,\n WebhookCallOverviewProps,\n WebhookHealthProps,\n WebhookProps,\n WebhookRetryPolicyPayload,\n WebhookRetryPolicyProps,\n WebhookSigningSecretProps,\n} from './entities/webhook'\nimport { AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'\nimport { AppUploadProps } from './entities/app-upload'\nimport { AppDetailsProps, CreateAppDetailsProps } from './entities/app-details'\nimport { AppSignedRequestProps, CreateAppSignedRequestProps } from './entities/app-signed-request'\nimport { AppSigningSecretProps, CreateAppSigningSecretProps } from './entities/app-signing-secret'\nimport {\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\nimport {\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from './entities/release'\nimport {\n ReleaseAction,\n ReleaseActionProps,\n ReleaseActionQueryOptions,\n} from './entities/release-action'\n\nimport {\n CreateTaskParams,\n CreateTaskProps,\n DeleteTaskParams,\n TaskProps,\n UpdateTaskParams,\n UpdateTaskProps,\n} from './entities/task'\n\nimport {\n CreateWorkflowDefinitionParams,\n CreateWorkflowDefinitionProps,\n DeleteWorkflowDefinitionParams,\n WorkflowDefinitionProps,\n WorkflowDefinitionQueryOptions,\n} from './entities/workflow-definition'\nimport {\n CompleteWorkflowParams,\n CreateWorkflowParams,\n CreateWorkflowProps,\n DeleteWorkflowParams,\n WorkflowProps,\n WorkflowQueryOptions,\n} from './entities/workflow'\nimport {\n WorkflowsChangelogEntryProps,\n WorkflowsChangelogQueryOptions,\n} from './entities/workflows-changelog-entry'\nimport { UIConfigProps } from './entities/ui-config'\nimport { UserUIConfigProps } from './entities/user-ui-config'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplateProps,\n} from './entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationProps,\n ValidateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateValidationProps,\n} from './entities/environment-template-installation'\nimport { FunctionProps } from './entities/function'\nimport {\n AppEventSubscriptionProps,\n CreateAppEventSubscriptionProps,\n} from './entities/app-event-subscription'\nimport { AppKeyProps, CreateAppKeyProps } from './entities/app-key'\nimport { AppAccessTokenProps, CreateAppAccessTokenProps } from './entities/app-access-token'\n\nexport interface DefaultElements {\n toPlainObject(): TPlainObject\n}\n\n/**\n * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve\n */\nexport interface Link {\n sys: {\n type: 'Link'\n linkType: T\n id: string\n }\n}\n\n/**\n * ResourceLink is a reference object to another entity outside of the current space/environment\n */\nexport interface ResourceLink {\n sys: {\n type: 'ResourceLink'\n linkType: T\n urn: string\n }\n}\n\nexport interface VersionedLink {\n sys: {\n type: 'Link'\n linkType: T\n id: string\n version: number\n }\n}\n\nexport interface BaseCollection {\n sys: { type: 'Array' }\n items: T[]\n}\n\n/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */\nexport type ISO8601Timestamp = string\n\nexport interface PaginationQueryOptions {\n skip?: number\n limit?: number\n order?: string\n}\n\nexport interface QueryOptions extends PaginationQueryOptions {\n content_type?: string\n include?: number\n select?: string\n links_to_entry?: string\n\n [key: string]: any\n}\n\nexport interface SpaceQueryOptions extends PaginationQueryOptions {\n spaceId?: string\n}\n\nexport interface BasicMetaSysProps {\n type: string\n id: string\n version: number\n createdBy?: SysLink\n createdAt: string\n updatedBy?: SysLink\n updatedAt: string\n}\n\nexport interface MetaSysProps extends BasicMetaSysProps {\n space?: SysLink\n status?: SysLink\n publishedVersion?: number\n archivedVersion?: number\n archivedBy?: SysLink\n archivedAt?: string\n deletedVersion?: number\n deletedBy?: SysLink\n deletedAt?: string\n}\n\nexport interface EntityMetaSysProps extends MetaSysProps {\n space: SysLink\n contentType: SysLink\n environment: SysLink\n publishedBy?: Link<'User'> | Link<'AppDefinition'>\n publishedAt?: string\n firstPublishedAt?: string\n publishedCounter?: number\n locale?: string\n}\n\nexport interface EntryMetaSysProps extends EntityMetaSysProps {\n automationTags: Link<'Tag'>[]\n}\n\nexport interface MetaLinkProps {\n type: string\n linkType: string\n id: string\n}\n\nexport interface MetadataProps {\n tags: Link<'Tag'>[]\n}\n\nexport interface SysLink {\n sys: MetaLinkProps\n}\n\nexport interface CollectionProp {\n sys: {\n type: 'Array'\n }\n total: number\n skip: number\n limit: number\n items: TObj[]\n}\n\nexport interface CursorPaginatedCollectionProp\n extends Omit, 'total' | 'skip'> {\n pages?: {\n next?: string\n prev?: string\n }\n}\n\nexport interface Collection\n extends CollectionProp,\n DefaultElements> {}\n\nexport interface CursorPaginatedCollection\n extends CursorPaginatedCollectionProp,\n DefaultElements> {}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport interface QueryOptions extends BasicQueryOptions {\n content_type?: string\n include?: number\n select?: string\n}\n\nexport interface BasicQueryOptions {\n skip?: number\n limit?: number\n\n [key: string]: any\n}\n\nexport interface BasicCursorPaginationOptions extends Omit {\n pageNext?: string\n pagePrev?: string\n}\n\nexport type KeyValueMap = Record\n\n/**\n * @private\n */\ntype MRInternal = {\n (opts: MROpts<'Http', 'get', UA>): MRReturn<'Http', 'get'>\n (opts: MROpts<'Http', 'patch', UA>): MRReturn<'Http', 'patch'>\n (opts: MROpts<'Http', 'post', UA>): MRReturn<'Http', 'post'>\n (opts: MROpts<'Http', 'put', UA>): MRReturn<'Http', 'put'>\n (opts: MROpts<'Http', 'delete', UA>): MRReturn<'Http', 'delete'>\n (opts: MROpts<'Http', 'request', UA>): MRReturn<'Http', 'request'>\n\n (opts: MROpts<'AppAction', 'get', UA>): MRReturn<'AppAction', 'get'>\n (opts: MROpts<'AppAction', 'getMany', UA>): MRReturn<'AppAction', 'getMany'>\n (opts: MROpts<'AppAction', 'delete', UA>): MRReturn<'AppAction', 'delete'>\n (opts: MROpts<'AppAction', 'create', UA>): MRReturn<'AppAction', 'create'>\n (opts: MROpts<'AppAction', 'update', UA>): MRReturn<'AppAction', 'update'>\n\n (opts: MROpts<'AppActionCall', 'create', UA>): MRReturn<'AppActionCall', 'create'>\n (opts: MROpts<'AppActionCall', 'createWithResponse', UA>): MRReturn<\n 'AppActionCall',\n 'createWithResponse'\n >\n (opts: MROpts<'AppActionCall', 'getCallDetails', UA>): MRReturn<'AppActionCall', 'getCallDetails'>\n\n (opts: MROpts<'AppBundle', 'get', UA>): MRReturn<'AppBundle', 'get'>\n (opts: MROpts<'AppBundle', 'getMany', UA>): MRReturn<'AppBundle', 'getMany'>\n (opts: MROpts<'AppBundle', 'delete', UA>): MRReturn<'AppBundle', 'delete'>\n (opts: MROpts<'AppBundle', 'create', UA>): MRReturn<'AppBundle', 'create'>\n\n (opts: MROpts<'ApiKey', 'get', UA>): MRReturn<'ApiKey', 'get'>\n (opts: MROpts<'ApiKey', 'getMany', UA>): MRReturn<'ApiKey', 'getMany'>\n (opts: MROpts<'ApiKey', 'create', UA>): MRReturn<'ApiKey', 'create'>\n (opts: MROpts<'ApiKey', 'createWithId', UA>): MRReturn<'ApiKey', 'createWithId'>\n (opts: MROpts<'ApiKey', 'update', UA>): MRReturn<'ApiKey', 'update'>\n (opts: MROpts<'ApiKey', 'delete', UA>): MRReturn<'ApiKey', 'delete'>\n\n (opts: MROpts<'AppDefinition', 'get', UA>): MRReturn<'AppDefinition', 'get'>\n (opts: MROpts<'AppDefinition', 'getMany', UA>): MRReturn<'AppDefinition', 'getMany'>\n (opts: MROpts<'AppDefinition', 'create', UA>): MRReturn<'AppDefinition', 'create'>\n (opts: MROpts<'AppDefinition', 'update', UA>): MRReturn<'AppDefinition', 'update'>\n (opts: MROpts<'AppDefinition', 'delete', UA>): MRReturn<'AppDefinition', 'delete'>\n (opts: MROpts<'AppDefinition', 'getInstallationsForOrg', UA>): MRReturn<\n 'AppDefinition',\n 'getInstallationsForOrg'\n >\n\n (opts: MROpts<'AppInstallation', 'get', UA>): MRReturn<'AppInstallation', 'get'>\n (opts: MROpts<'AppInstallation', 'getMany', UA>): MRReturn<'AppInstallation', 'getMany'>\n (opts: MROpts<'AppInstallation', 'upsert', UA>): MRReturn<'AppInstallation', 'upsert'>\n (opts: MROpts<'AppInstallation', 'delete', UA>): MRReturn<'AppInstallation', 'delete'>\n (opts: MROpts<'AppInstallation', 'getForOrganization', UA>): MRReturn<\n 'AppInstallation',\n 'getForOrganization'\n >\n\n (opts: MROpts<'Asset', 'getMany', UA>): MRReturn<'Asset', 'getMany'>\n (opts: MROpts<'Asset', 'getPublished', UA>): MRReturn<'Asset', 'getPublished'>\n (opts: MROpts<'Asset', 'get', UA>): MRReturn<'Asset', 'get'>\n (opts: MROpts<'Asset', 'update', UA>): MRReturn<'Asset', 'update'>\n (opts: MROpts<'Asset', 'delete', UA>): MRReturn<'Asset', 'delete'>\n (opts: MROpts<'Asset', 'publish', UA>): MRReturn<'Asset', 'publish'>\n (opts: MROpts<'Asset', 'unpublish', UA>): MRReturn<'Asset', 'unpublish'>\n (opts: MROpts<'Asset', 'archive', UA>): MRReturn<'Asset', 'archive'>\n (opts: MROpts<'Asset', 'unarchive', UA>): MRReturn<'Asset', 'unarchive'>\n (opts: MROpts<'Asset', 'create', UA>): MRReturn<'Asset', 'create'>\n (opts: MROpts<'Asset', 'createWithId', UA>): MRReturn<'Asset', 'createWithId'>\n (opts: MROpts<'Asset', 'createFromFiles', UA>): MRReturn<'Asset', 'createFromFiles'>\n (opts: MROpts<'Asset', 'processForAllLocales', UA>): MRReturn<'Asset', 'processForAllLocales'>\n (opts: MROpts<'Asset', 'processForLocale', UA>): MRReturn<'Asset', 'processForLocale'>\n\n (opts: MROpts<'AppUpload', 'get', UA>): MRReturn<'AppUpload', 'get'>\n (opts: MROpts<'AppUpload', 'delete', UA>): MRReturn<'AppUpload', 'delete'>\n (opts: MROpts<'AppUpload', 'create', UA>): MRReturn<'AppUpload', 'create'>\n\n (opts: MROpts<'AppDetails', 'upsert', UA>): MRReturn<'AppDetails', 'upsert'>\n (opts: MROpts<'AppDetails', 'get', UA>): MRReturn<'AppDetails', 'get'>\n (opts: MROpts<'AppDetails', 'delete', UA>): MRReturn<'AppDetails', 'delete'>\n\n (opts: MROpts<'AppSignedRequest', 'create', UA>): MRReturn<'AppSignedRequest', 'create'>\n\n (opts: MROpts<'AppSigningSecret', 'upsert', UA>): MRReturn<'AppSigningSecret', 'upsert'>\n (opts: MROpts<'AppSigningSecret', 'get', UA>): MRReturn<'AppSigningSecret', 'get'>\n (opts: MROpts<'AppSigningSecret', 'delete', UA>): MRReturn<'AppSigningSecret', 'delete'>\n\n (opts: MROpts<'AppEventSubscription', 'upsert', UA>): MRReturn<'AppEventSubscription', 'upsert'>\n (opts: MROpts<'AppEventSubscription', 'get', UA>): MRReturn<'AppEventSubscription', 'get'>\n (opts: MROpts<'AppEventSubscription', 'delete', UA>): MRReturn<'AppEventSubscription', 'delete'>\n\n (opts: MROpts<'AppKey', 'get', UA>): MRReturn<'AppKey', 'get'>\n (opts: MROpts<'AppKey', 'getMany', UA>): MRReturn<'AppKey', 'getMany'>\n (opts: MROpts<'AppKey', 'create', UA>): MRReturn<'AppKey', 'create'>\n (opts: MROpts<'AppKey', 'delete', UA>): MRReturn<'AppKey', 'delete'>\n\n (opts: MROpts<'AppAccessToken', 'create', UA>): MRReturn<'AppAccessToken', 'create'>\n\n (opts: MROpts<'AssetKey', 'create', UA>): MRReturn<'AssetKey', 'create'>\n\n (opts: MROpts<'BulkAction', 'get', UA>): MRReturn<'BulkAction', 'get'>\n (opts: MROpts<'BulkAction', 'publish', UA>): MRReturn<'BulkAction', 'publish'>\n (opts: MROpts<'BulkAction', 'unpublish', UA>): MRReturn<'BulkAction', 'unpublish'>\n (opts: MROpts<'BulkAction', 'validate', UA>): MRReturn<'BulkAction', 'validate'>\n\n (opts: MROpts<'Comment', 'get', UA>): MRReturn<'Comment', 'get'>\n (opts: MROpts<'Comment', 'getMany', UA>): MRReturn<'Comment', 'getMany'>\n (opts: MROpts<'Comment', 'getAll', UA>): MRReturn<'Comment', 'getAll'>\n (opts: MROpts<'Comment', 'create', UA>): MRReturn<'Comment', 'create'>\n (opts: MROpts<'Comment', 'update', UA>): MRReturn<'Comment', 'update'>\n (opts: MROpts<'Comment', 'delete', UA>): MRReturn<'Comment', 'delete'>\n\n (opts: MROpts<'ContentType', 'get', UA>): MRReturn<'ContentType', 'get'>\n (opts: MROpts<'ContentType', 'getMany', UA>): MRReturn<'ContentType', 'getMany'>\n (opts: MROpts<'ContentType', 'update', UA>): MRReturn<'ContentType', 'update'>\n (opts: MROpts<'ContentType', 'create', UA>): MRReturn<'ContentType', 'create'>\n (opts: MROpts<'ContentType', 'createWithId', UA>): MRReturn<'ContentType', 'createWithId'>\n (opts: MROpts<'ContentType', 'delete', UA>): MRReturn<'ContentType', 'delete'>\n (opts: MROpts<'ContentType', 'publish', UA>): MRReturn<'ContentType', 'publish'>\n (opts: MROpts<'ContentType', 'unpublish', UA>): MRReturn<'ContentType', 'unpublish'>\n\n (opts: MROpts<'EditorInterface', 'get', UA>): MRReturn<'EditorInterface', 'get'>\n (opts: MROpts<'EditorInterface', 'getMany', UA>): MRReturn<'EditorInterface', 'getMany'>\n (opts: MROpts<'EditorInterface', 'update', UA>): MRReturn<'EditorInterface', 'update'>\n\n (opts: MROpts<'Environment', 'get', UA>): MRReturn<'Environment', 'get'>\n (opts: MROpts<'Environment', 'getMany', UA>): MRReturn<'Environment', 'getMany'>\n (opts: MROpts<'Environment', 'create', UA>): MRReturn<'Environment', 'create'>\n (opts: MROpts<'Environment', 'createWithId', UA>): MRReturn<'Environment', 'createWithId'>\n (opts: MROpts<'Environment', 'update', UA>): MRReturn<'Environment', 'update'>\n (opts: MROpts<'Environment', 'delete', UA>): MRReturn<'Environment', 'delete'>\n\n (opts: MROpts<'EnvironmentAlias', 'get', UA>): MRReturn<'EnvironmentAlias', 'get'>\n (opts: MROpts<'EnvironmentAlias', 'getMany', UA>): MRReturn<'EnvironmentAlias', 'getMany'>\n (opts: MROpts<'EnvironmentAlias', 'createWithId', UA>): MRReturn<\n 'EnvironmentAlias',\n 'createWithId'\n >\n (opts: MROpts<'EnvironmentAlias', 'update', UA>): MRReturn<'EnvironmentAlias', 'update'>\n (opts: MROpts<'EnvironmentAlias', 'delete', UA>): MRReturn<'EnvironmentAlias', 'delete'>\n\n (opts: MROpts<'EnvironmentTemplate', 'get', UA>): MRReturn<'EnvironmentTemplate', 'get'>\n (opts: MROpts<'EnvironmentTemplate', 'getMany', UA>): MRReturn<'EnvironmentTemplate', 'getMany'>\n (opts: MROpts<'EnvironmentTemplate', 'create', UA>): MRReturn<'EnvironmentTemplate', 'create'>\n (opts: MROpts<'EnvironmentTemplate', 'update', UA>): MRReturn<'EnvironmentTemplate', 'update'>\n (opts: MROpts<'EnvironmentTemplate', 'delete', UA>): MRReturn<'EnvironmentTemplate', 'delete'>\n (opts: MROpts<'EnvironmentTemplate', 'versions', UA>): MRReturn<'EnvironmentTemplate', 'versions'>\n (opts: MROpts<'EnvironmentTemplate', 'versionUpdate', UA>): MRReturn<\n 'EnvironmentTemplate',\n 'versionUpdate'\n >\n (opts: MROpts<'EnvironmentTemplate', 'validate', UA>): MRReturn<'EnvironmentTemplate', 'validate'>\n (opts: MROpts<'EnvironmentTemplate', 'install', UA>): MRReturn<'EnvironmentTemplate', 'install'>\n (opts: MROpts<'EnvironmentTemplate', 'disconnect', UA>): MRReturn<\n 'EnvironmentTemplate',\n 'disconnect'\n >\n\n (opts: MROpts<'EnvironmentTemplateInstallation', 'getMany', UA>): MRReturn<\n 'EnvironmentTemplateInstallation',\n 'getMany'\n >\n (opts: MROpts<'EnvironmentTemplateInstallation', 'getForEnvironment', UA>): MRReturn<\n 'EnvironmentTemplateInstallation',\n 'getForEnvironment'\n >\n\n (opts: MROpts<'Entry', 'getMany', UA>): MRReturn<'Entry', 'getMany'>\n (opts: MROpts<'Entry', 'getPublished', UA>): MRReturn<'Entry', 'getPublished'>\n (opts: MROpts<'Entry', 'get', UA>): MRReturn<'Entry', 'get'>\n (opts: MROpts<'Entry', 'patch', UA>): MRReturn<'Entry', 'patch'>\n (opts: MROpts<'Entry', 'update', UA>): MRReturn<'Entry', 'update'>\n (opts: MROpts<'Entry', 'delete', UA>): MRReturn<'Entry', 'delete'>\n (opts: MROpts<'Entry', 'publish', UA>): MRReturn<'Entry', 'publish'>\n (opts: MROpts<'Entry', 'unpublish', UA>): MRReturn<'Entry', 'unpublish'>\n (opts: MROpts<'Entry', 'archive', UA>): MRReturn<'Entry', 'archive'>\n (opts: MROpts<'Entry', 'unarchive', UA>): MRReturn<'Entry', 'unarchive'>\n (opts: MROpts<'Entry', 'create', UA>): MRReturn<'Entry', 'create'>\n (opts: MROpts<'Entry', 'createWithId', UA>): MRReturn<'Entry', 'createWithId'>\n (opts: MROpts<'Entry', 'references', UA>): MRReturn<'Entry', 'references'>\n\n (opts: MROpts<'Extension', 'get', UA>): MRReturn<'Extension', 'get'>\n (opts: MROpts<'Extension', 'getMany', UA>): MRReturn<'Extension', 'getMany'>\n (opts: MROpts<'Extension', 'create', UA>): MRReturn<'Extension', 'create'>\n (opts: MROpts<'Extension', 'createWithId', UA>): MRReturn<'Extension', 'createWithId'>\n (opts: MROpts<'Extension', 'update', UA>): MRReturn<'Extension', 'update'>\n (opts: MROpts<'Extension', 'delete', UA>): MRReturn<'Extension', 'delete'>\n\n (opts: MROpts<'Locale', 'get', UA>): MRReturn<'Locale', 'get'>\n (opts: MROpts<'Locale', 'getMany', UA>): MRReturn<'Locale', 'getMany'>\n (opts: MROpts<'Locale', 'delete', UA>): MRReturn<'Locale', 'delete'>\n (opts: MROpts<'Locale', 'update', UA>): MRReturn<'Locale', 'update'>\n (opts: MROpts<'Locale', 'create', UA>): MRReturn<'Locale', 'create'>\n\n (opts: MROpts<'Organization', 'getMany', UA>): MRReturn<'Organization', 'getMany'>\n (opts: MROpts<'Organization', 'get', UA>): MRReturn<'Organization', 'get'>\n\n (opts: MROpts<'OrganizationInvitation', 'get', UA>): MRReturn<'OrganizationInvitation', 'get'>\n (opts: MROpts<'OrganizationInvitation', 'create', UA>): MRReturn<\n 'OrganizationInvitation',\n 'create'\n >\n\n (opts: MROpts<'OrganizationMembership', 'get', UA>): MRReturn<'OrganizationMembership', 'get'>\n (opts: MROpts<'OrganizationMembership', 'getMany', UA>): MRReturn<\n 'OrganizationMembership',\n 'getMany'\n >\n (opts: MROpts<'OrganizationMembership', 'update', UA>): MRReturn<\n 'OrganizationMembership',\n 'update'\n >\n (opts: MROpts<'OrganizationMembership', 'delete', UA>): MRReturn<\n 'OrganizationMembership',\n 'delete'\n >\n\n (opts: MROpts<'PersonalAccessToken', 'get', UA>): MRReturn<'PersonalAccessToken', 'get'>\n (opts: MROpts<'PersonalAccessToken', 'getMany', UA>): MRReturn<'PersonalAccessToken', 'getMany'>\n (opts: MROpts<'PersonalAccessToken', 'create', UA>): MRReturn<'PersonalAccessToken', 'create'>\n (opts: MROpts<'PersonalAccessToken', 'revoke', UA>): MRReturn<'PersonalAccessToken', 'revoke'>\n\n (opts: MROpts<'AccessToken', 'get', UA>): MRReturn<'AccessToken', 'get'>\n (opts: MROpts<'AccessToken', 'getMany', UA>): MRReturn<'AccessToken', 'getMany'>\n (opts: MROpts<'AccessToken', 'createPersonalAccessToken', UA>): MRReturn<\n 'AccessToken',\n 'createPersonalAccessToken'\n >\n (opts: MROpts<'AccessToken', 'revoke', UA>): MRReturn<'AccessToken', 'revoke'>\n (opts: MROpts<'AccessToken', 'getManyForOrganization', UA>): MRReturn<\n 'AccessToken',\n 'getManyForOrganization'\n >\n\n (opts: MROpts<'PreviewApiKey', 'get', UA>): MRReturn<'PreviewApiKey', 'get'>\n (opts: MROpts<'PreviewApiKey', 'getMany', UA>): MRReturn<'PreviewApiKey', 'getMany'>\n\n (opts: MROpts<'Release', 'archive', UA>): MRReturn<'Release', 'archive'>\n (opts: MROpts<'Release', 'get', UA>): MRReturn<'Release', 'get'>\n (opts: MROpts<'Release', 'query', UA>): MRReturn<'Release', 'query'>\n (opts: MROpts<'Release', 'create', UA>): MRReturn<'Release', 'create'>\n (opts: MROpts<'Release', 'update', UA>): MRReturn<'Release', 'update'>\n (opts: MROpts<'Release', 'delete', UA>): MRReturn<'Release', 'delete'>\n (opts: MROpts<'Release', 'publish', UA>): MRReturn<'Release', 'publish'>\n (opts: MROpts<'Release', 'unpublish', UA>): MRReturn<'Release', 'unpublish'>\n (opts: MROpts<'Release', 'unarchive', UA>): MRReturn<'Release', 'unarchive'>\n (opts: MROpts<'Release', 'validate', UA>): MRReturn<'Release', 'validate'>\n\n (opts: MROpts<'ReleaseAction', 'get', UA>): MRReturn<'ReleaseAction', 'get'>\n (opts: MROpts<'ReleaseAction', 'getMany', UA>): MRReturn<'ReleaseAction', 'getMany'>\n (opts: MROpts<'ReleaseAction', 'queryForRelease', UA>): MRReturn<\n 'ReleaseAction',\n 'queryForRelease'\n >\n\n (opts: MROpts<'Role', 'get', UA>): MRReturn<'Role', 'get'>\n (opts: MROpts<'Role', 'getMany', UA>): MRReturn<'Role', 'getMany'>\n (opts: MROpts<'Role', 'getManyForOrganization', UA>): MRReturn<'Role', 'getManyForOrganization'>\n (opts: MROpts<'Role', 'create', UA>): MRReturn<'Role', 'create'>\n (opts: MROpts<'Role', 'createWithId', UA>): MRReturn<'Role', 'createWithId'>\n (opts: MROpts<'Role', 'update', UA>): MRReturn<'Role', 'update'>\n (opts: MROpts<'Role', 'delete', UA>): MRReturn<'Role', 'delete'>\n\n (opts: MROpts<'ScheduledAction', 'get', UA>): MRReturn<'ScheduledAction', 'get'>\n (opts: MROpts<'ScheduledAction', 'getMany', UA>): MRReturn<'ScheduledAction', 'getMany'>\n (opts: MROpts<'ScheduledAction', 'create', UA>): MRReturn<'ScheduledAction', 'create'>\n (opts: MROpts<'ScheduledAction', 'update', UA>): MRReturn<'ScheduledAction', 'update'>\n (opts: MROpts<'ScheduledAction', 'delete', UA>): MRReturn<'ScheduledAction', 'delete'>\n\n (opts: MROpts<'Snapshot', 'getManyForEntry', UA>): MRReturn<'Snapshot', 'getManyForEntry'>\n (opts: MROpts<'Snapshot', 'getForEntry', UA>): MRReturn<'Snapshot', 'getForEntry'>\n (opts: MROpts<'Snapshot', 'getManyForContentType', UA>): MRReturn<\n 'Snapshot',\n 'getManyForContentType'\n >\n (opts: MROpts<'Snapshot', 'getForContentType', UA>): MRReturn<'Snapshot', 'getForContentType'>\n\n (opts: MROpts<'Space', 'get', UA>): MRReturn<'Space', 'get'>\n (opts: MROpts<'Space', 'getMany', UA>): MRReturn<'Space', 'getMany'>\n (opts: MROpts<'Space', 'getManyForOrganization', UA>): MRReturn<'Space', 'getManyForOrganization'>\n (opts: MROpts<'Space', 'create', UA>): MRReturn<'Space', 'create'>\n (opts: MROpts<'Space', 'update', UA>): MRReturn<'Space', 'update'>\n (opts: MROpts<'Space', 'delete', UA>): MRReturn<'Space', 'delete'>\n\n (opts: MROpts<'SpaceMember', 'get', UA>): MRReturn<'SpaceMember', 'get'>\n (opts: MROpts<'SpaceMember', 'getMany', UA>): MRReturn<'SpaceMember', 'getMany'>\n\n (opts: MROpts<'SpaceMembership', 'get', UA>): MRReturn<'SpaceMembership', 'get'>\n (opts: MROpts<'SpaceMembership', 'getMany', UA>): MRReturn<'SpaceMembership', 'getMany'>\n (opts: MROpts<'SpaceMembership', 'getForOrganization', UA>): MRReturn<\n 'SpaceMembership',\n 'getForOrganization'\n >\n (opts: MROpts<'SpaceMembership', 'getManyForOrganization', UA>): MRReturn<\n 'SpaceMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'SpaceMembership', 'create', UA>): MRReturn<'SpaceMembership', 'create'>\n (opts: MROpts<'SpaceMembership', 'createWithId', UA>): MRReturn<'SpaceMembership', 'createWithId'>\n (opts: MROpts<'SpaceMembership', 'update', UA>): MRReturn<'SpaceMembership', 'update'>\n (opts: MROpts<'SpaceMembership', 'delete', UA>): MRReturn<'SpaceMembership', 'delete'>\n\n (opts: MROpts<'Tag', 'get', UA>): MRReturn<'Tag', 'get'>\n (opts: MROpts<'Tag', 'getMany', UA>): MRReturn<'Tag', 'getMany'>\n (opts: MROpts<'Tag', 'createWithId', UA>): MRReturn<'Tag', 'createWithId'>\n (opts: MROpts<'Tag', 'update', UA>): MRReturn<'Tag', 'update'>\n (opts: MROpts<'Tag', 'delete', UA>): MRReturn<'Tag', 'delete'>\n\n (opts: MROpts<'Task', 'get', UA>): MRReturn<'Task', 'get'>\n (opts: MROpts<'Task', 'getMany', UA>): MRReturn<'Task', 'getMany'>\n (opts: MROpts<'Task', 'getAll', UA>): MRReturn<'Task', 'getAll'>\n (opts: MROpts<'Task', 'create', UA>): MRReturn<'Task', 'create'>\n (opts: MROpts<'Task', 'update', UA>): MRReturn<'Task', 'update'>\n (opts: MROpts<'Task', 'delete', UA>): MRReturn<'Task', 'delete'>\n\n (opts: MROpts<'Team', 'get', UA>): MRReturn<'Team', 'get'>\n (opts: MROpts<'Team', 'getMany', UA>): MRReturn<'Team', 'getMany'>\n (opts: MROpts<'Team', 'getManyForSpace', UA>): MRReturn<'Team', 'getManyForSpace'>\n (opts: MROpts<'Team', 'create', UA>): MRReturn<'Team', 'create'>\n (opts: MROpts<'Team', 'update', UA>): MRReturn<'Team', 'update'>\n (opts: MROpts<'Team', 'delete', UA>): MRReturn<'Team', 'delete'>\n\n (opts: MROpts<'TeamMembership', 'get', UA>): MRReturn<'TeamMembership', 'get'>\n (opts: MROpts<'TeamMembership', 'getManyForOrganization', UA>): MRReturn<\n 'TeamMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'TeamMembership', 'getManyForTeam', UA>): MRReturn<\n 'TeamMembership',\n 'getManyForTeam'\n >\n (opts: MROpts<'TeamMembership', 'create', UA>): MRReturn<'TeamMembership', 'create'>\n (opts: MROpts<'TeamMembership', 'update', UA>): MRReturn<'TeamMembership', 'update'>\n (opts: MROpts<'TeamMembership', 'delete', UA>): MRReturn<'TeamMembership', 'delete'>\n\n (opts: MROpts<'TeamSpaceMembership', 'get', UA>): MRReturn<'TeamSpaceMembership', 'get'>\n (opts: MROpts<'TeamSpaceMembership', 'getMany', UA>): MRReturn<'TeamSpaceMembership', 'getMany'>\n (opts: MROpts<'TeamSpaceMembership', 'getForOrganization', UA>): MRReturn<\n 'TeamSpaceMembership',\n 'getForOrganization'\n >\n (opts: MROpts<'TeamSpaceMembership', 'getManyForOrganization', UA>): MRReturn<\n 'TeamSpaceMembership',\n 'getManyForOrganization'\n >\n (opts: MROpts<'TeamSpaceMembership', 'create', UA>): MRReturn<'TeamSpaceMembership', 'create'>\n (opts: MROpts<'TeamSpaceMembership', 'update', UA>): MRReturn<'TeamSpaceMembership', 'update'>\n (opts: MROpts<'TeamSpaceMembership', 'delete', UA>): MRReturn<'TeamSpaceMembership', 'delete'>\n\n (opts: MROpts<'UIConfig', 'get', UA>): MRReturn<'UIConfig', 'get'>\n (opts: MROpts<'UIConfig', 'update', UA>): MRReturn<'UIConfig', 'update'>\n\n (opts: MROpts<'Upload', 'get', UA>): MRReturn<'Entry', 'get'>\n (opts: MROpts<'Upload', 'create', UA>): MRReturn<'Entry', 'create'>\n (opts: MROpts<'Upload', 'delete', UA>): MRReturn<'Entry', 'delete'>\n\n (opts: MROpts<'Usage', 'getManyForSpace', UA>): MRReturn<'Usage', 'getManyForSpace'>\n (opts: MROpts<'Usage', 'getManyForOrganization', UA>): MRReturn<'Usage', 'getManyForOrganization'>\n\n (opts: MROpts<'User', 'getManyForSpace', UA>): MRReturn<'User', 'getManyForSpace'>\n (opts: MROpts<'User', 'getForSpace', UA>): MRReturn<'User', 'getForSpace'>\n (opts: MROpts<'User', 'getCurrent', UA>): MRReturn<'User', 'getCurrent'>\n (opts: MROpts<'User', 'getForOrganization', UA>): MRReturn<'User', 'getForOrganization'>\n (opts: MROpts<'User', 'getManyForOrganization', UA>): MRReturn<'User', 'getManyForOrganization'>\n\n (opts: MROpts<'UserUIConfig', 'get', UA>): MRReturn<'UserUIConfig', 'update'>\n (opts: MROpts<'UserUIConfig', 'update', UA>): MRReturn<'UserUIConfig', 'update'>\n\n (opts: MROpts<'Webhook', 'get', UA>): MRReturn<'Webhook', 'get'>\n (opts: MROpts<'Webhook', 'getMany', UA>): MRReturn<'Webhook', 'getMany'>\n (opts: MROpts<'Webhook', 'getCallDetails', UA>): MRReturn<'Webhook', 'getCallDetails'>\n (opts: MROpts<'Webhook', 'getHealthStatus', UA>): MRReturn<'Webhook', 'getHealthStatus'>\n (opts: MROpts<'Webhook', 'getManyCallDetails', UA>): MRReturn<'Webhook', 'getManyCallDetails'>\n (opts: MROpts<'Webhook', 'getSigningSecret', UA>): MRReturn<'Webhook', 'getSigningSecret'>\n (opts: MROpts<'Webhook', 'getRetryPolicy', UA>): MRReturn<'Webhook', 'getRetryPolicy'>\n (opts: MROpts<'Webhook', 'create', UA>): MRReturn<'Webhook', 'create'>\n (opts: MROpts<'Webhook', 'createWithId', UA>): MRReturn<'Webhook', 'createWithId'>\n (opts: MROpts<'Webhook', 'update', UA>): MRReturn<'Webhook', 'update'>\n (opts: MROpts<'Webhook', 'upsertSigningSecret', UA>): MRReturn<'Webhook', 'upsertSigningSecret'>\n (opts: MROpts<'Webhook', 'upsertRetryPolicy', UA>): MRReturn<'Webhook', 'upsertRetryPolicy'>\n (opts: MROpts<'Webhook', 'delete', UA>): MRReturn<'Webhook', 'delete'>\n (opts: MROpts<'Webhook', 'deleteSigningSecret', UA>): MRReturn<'Webhook', 'deleteSigningSecret'>\n (opts: MROpts<'Webhook', 'deleteRetryPolicy', UA>): MRReturn<'Webhook', 'deleteRetryPolicy'>\n\n (opts: MROpts<'WorkflowDefinition', 'get', UA>): MRReturn<'WorkflowDefinition', 'get'>\n (opts: MROpts<'WorkflowDefinition', 'getMany', UA>): MRReturn<'WorkflowDefinition', 'getMany'>\n (opts: MROpts<'WorkflowDefinition', 'create', UA>): MRReturn<'WorkflowDefinition', 'create'>\n (opts: MROpts<'WorkflowDefinition', 'update', UA>): MRReturn<'WorkflowDefinition', 'update'>\n (opts: MROpts<'WorkflowDefinition', 'delete', UA>): MRReturn<'WorkflowDefinition', 'delete'>\n\n (opts: MROpts<'Workflow', 'getMany', UA>): MRReturn<'Workflow', 'getMany'>\n (opts: MROpts<'Workflow', 'create', UA>): MRReturn<'Workflow', 'create'>\n (opts: MROpts<'Workflow', 'update', UA>): MRReturn<'Workflow', 'update'>\n (opts: MROpts<'Workflow', 'delete', UA>): MRReturn<'Workflow', 'delete'>\n (opts: MROpts<'Workflow', 'complete', UA>): MRReturn<'Workflow', 'complete'>\n\n (opts: MROpts<'WorkflowsChangelog', 'getMany', UA>): MRReturn<'WorkflowsChangelog', 'getMany'>\n}\n\n/**\n * @private\n */\nexport type MakeRequestWithUserAgent = MRInternal\n\n/**\n * @private\n */\nexport type MakeRequest = MRInternal\n\n/**\n * @private\n */\ntype Without = { [P in Exclude]?: never }\n\n/**\n * @private\n */\nexport type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U\n\nexport interface Adapter {\n makeRequest: MakeRequestWithUserAgent\n}\n\n/**\n * @private\n */\nexport type MRActions = {\n Http: {\n get: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n patch: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n post: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n put: { params: { url: string; config?: RawAxiosRequestConfig }; payload: any; return: any }\n delete: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n request: { params: { url: string; config?: RawAxiosRequestConfig }; return: any }\n }\n AppAction: {\n get: { params: GetAppActionParams; return: AppActionProps }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n getManyForEnvironment: {\n params: GetAppActionsForEnvParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetAppActionParams; return: void }\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppActionProps\n return: AppActionProps\n }\n update: {\n params: GetAppActionParams\n payload: CreateAppActionProps\n return: AppActionProps\n }\n }\n AppActionCall: {\n create: {\n params: GetAppActionCallParams\n payload: CreateAppActionCallProps\n return: AppActionCallProps\n }\n getCallDetails: {\n params: GetAppActionCallDetailsParams\n return: AppActionCallResponse\n }\n createWithResponse: {\n params: GetAppActionCallParams\n payload: CreateAppActionCallProps\n return: AppActionCallResponse\n }\n }\n AppBundle: {\n get: { params: GetAppBundleParams; return: AppBundleProps }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetAppBundleParams; return: void }\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppBundleProps\n return: AppBundleProps\n }\n }\n ApiKey: {\n get: { params: GetSpaceParams & { apiKeyId: string }; return: ApiKeyProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetSpaceParams\n payload: CreateApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n createWithId: {\n params: GetSpaceParams & { apiKeyId: string }\n payload: CreateApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n update: {\n params: GetSpaceParams & { apiKeyId: string }\n payload: ApiKeyProps\n headers?: RawAxiosRequestHeaders\n return: ApiKeyProps\n }\n delete: { params: GetSpaceParams & { apiKeyId: string }; return: any }\n }\n AppDefinition: {\n get: {\n params: GetOrganizationParams & { appDefinitionId: string }\n return: AppDefinitionProps\n }\n getMany: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetOrganizationParams\n payload: CreateAppDefinitionProps\n return: AppDefinitionProps\n }\n update: {\n params: GetAppDefinitionParams\n payload: AppDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: AppDefinitionProps\n }\n delete: { params: GetAppDefinitionParams; return: any }\n getInstallationsForOrg: {\n params: GetOrganizationParams & { appDefinitionId: string } & SpaceQueryParams\n return: AppInstallationsForOrganizationProps\n }\n }\n AppInstallation: {\n get: { params: GetAppInstallationParams; return: AppInstallationProps }\n getMany: {\n params: GetSpaceEnvironmentParams & PaginationQueryParams\n return: CollectionProp\n }\n upsert: {\n params: GetAppInstallationParams & { acceptAllTerms?: boolean }\n payload: CreateAppInstallationProps\n headers?: RawAxiosRequestHeaders\n return: AppInstallationProps\n }\n delete: { params: GetAppInstallationParams; return: any }\n getForOrganization: {\n params: GetOrganizationParams & { appDefinitionId: string; spaceId?: string }\n return: AppInstallationsForOrganizationProps\n }\n }\n AppUpload: {\n get: {\n params: GetAppUploadParams\n return: AppUploadProps\n }\n delete: {\n params: GetAppUploadParams\n return: void\n }\n create: {\n params: GetOrganizationParams\n payload: { file: string | ArrayBuffer | Stream }\n return: AppUploadProps\n }\n }\n AppDetails: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppDetailsProps\n return: AppDetailsProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppDetailsProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppSignedRequest: {\n create: {\n params: GetAppInstallationParams\n payload: CreateAppSignedRequestProps\n return: AppSignedRequestProps\n }\n }\n AppSigningSecret: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppSigningSecretProps\n return: AppSigningSecretProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppSigningSecretProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppEventSubscription: {\n upsert: {\n params: GetAppDefinitionParams\n payload: CreateAppEventSubscriptionProps\n return: AppEventSubscriptionProps\n }\n get: {\n params: GetAppDefinitionParams\n return: AppEventSubscriptionProps\n }\n delete: {\n params: GetAppDefinitionParams\n return: void\n }\n }\n AppKey: {\n create: {\n params: GetAppDefinitionParams\n payload: CreateAppKeyProps\n return: AppKeyProps\n }\n get: {\n params: GetAppDefinitionParams & { fingerprint: string }\n return: AppKeyProps\n }\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n delete: {\n params: GetAppDefinitionParams & { fingerprint: string }\n return: void\n }\n }\n AppAccessToken: {\n create: {\n params: GetAppInstallationParams\n payload: CreateAppAccessTokenProps\n return: AppAccessTokenProps\n }\n }\n Asset: {\n getPublished: {\n params: GetSpaceEnvironmentParams & QueryParams\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n get: {\n params: GetSpaceEnvironmentParams & { assetId: string } & QueryParams\n headers?: RawAxiosRequestHeaders\n return: AssetProps\n }\n update: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: AssetProps\n headers?: RawAxiosRequestHeaders\n return: AssetProps\n }\n delete: { params: GetSpaceEnvironmentParams & { assetId: string }; return: any }\n publish: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: AssetProps\n return: AssetProps\n }\n unpublish: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n archive: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n unarchive: { params: GetSpaceEnvironmentParams & { assetId: string }; return: AssetProps }\n create: { params: GetSpaceEnvironmentParams; payload: CreateAssetProps; return: AssetProps }\n createWithId: {\n params: GetSpaceEnvironmentParams & { assetId: string }\n payload: CreateAssetProps\n return: AssetProps\n }\n createFromFiles: {\n params: GetSpaceEnvironmentParams & { uploadTimeout?: number }\n payload: Omit\n return: AssetProps\n }\n processForAllLocales: {\n params: GetSpaceEnvironmentParams & {\n asset: AssetProps\n options?: AssetProcessingForLocale\n }\n return: AssetProps\n }\n processForLocale: {\n params: GetSpaceEnvironmentParams & {\n asset: AssetProps\n locale: string\n options?: AssetProcessingForLocale\n }\n return: AssetProps\n }\n }\n AssetKey: {\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateAssetKeyProps\n return: AssetKeyProps\n }\n }\n BulkAction: {\n get: {\n params: GetBulkActionParams\n return: BulkActionProps\n }\n publish: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionPublishPayload\n return: BulkActionProps\n }\n unpublish: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionUnpublishPayload\n return: BulkActionProps\n }\n validate: {\n params: GetSpaceEnvironmentParams\n payload: BulkActionValidatePayload\n return: BulkActionProps\n }\n }\n Comment: {\n get:\n | { params: GetCommentParams & PlainTextBodyFormat; return: CommentProps }\n | { params: GetCommentParams & RichTextBodyFormat; return: RichTextCommentProps }\n getMany:\n | {\n params: GetManyCommentsParams & PlainTextBodyFormat & QueryParams\n return: CollectionProp\n }\n | {\n params: GetManyCommentsParams & QueryParams & RichTextBodyFormat\n return: CollectionProp\n }\n getAll:\n | {\n params: GetManyCommentsParams & QueryParams & PlainTextBodyFormat\n return: CollectionProp\n }\n | {\n params: GetManyCommentsParams & QueryParams & RichTextBodyFormat\n return: CollectionProp\n }\n create:\n | {\n params: CreateCommentParams & PlainTextBodyFormat\n payload: CreateCommentProps\n return: CommentProps\n }\n | {\n params: CreateCommentParams & RichTextBodyFormat\n payload: RichTextCommentBodyPayload\n return: RichTextCommentProps\n }\n update:\n | {\n params: UpdateCommentParams\n payload: UpdateCommentProps\n headers?: RawAxiosRequestHeaders\n return: CommentProps\n }\n | {\n params: UpdateCommentParams\n payload: Omit & RichTextCommentBodyPayload\n headers?: RawAxiosRequestHeaders\n return: RichTextCommentProps\n }\n delete: { params: DeleteCommentParams; return: void }\n }\n ContentType: {\n get: { params: GetContentTypeParams & QueryParams; return: ContentTypeProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateContentTypeProps\n return: ContentTypeProps\n }\n createWithId: {\n params: GetContentTypeParams\n payload: CreateContentTypeProps\n return: ContentTypeProps\n }\n update: {\n params: GetContentTypeParams\n payload: ContentTypeProps\n headers?: RawAxiosRequestHeaders\n return: ContentTypeProps\n }\n delete: { params: GetContentTypeParams; return: any }\n publish: { params: GetContentTypeParams; payload: ContentTypeProps; return: ContentTypeProps }\n unpublish: { params: GetContentTypeParams; return: ContentTypeProps }\n }\n EditorInterface: {\n get: { params: GetEditorInterfaceParams; return: EditorInterfaceProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n update: {\n params: GetEditorInterfaceParams\n payload: EditorInterfaceProps\n headers?: RawAxiosRequestHeaders\n return: EditorInterfaceProps\n }\n }\n Function: {\n getMany: {\n params: GetAppDefinitionParams & QueryParams\n return: CollectionProp\n }\n }\n Environment: {\n get: { params: GetSpaceEnvironmentParams; return: EnvironmentProps }\n getMany: {\n params: GetSpaceParams & PaginationQueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: Partial>\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n createWithId: {\n params: GetSpaceEnvironmentParams & { sourceEnvironmentId?: string }\n payload: CreateEnvironmentProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n update: {\n params: GetSpaceEnvironmentParams\n payload: EnvironmentProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentProps\n }\n delete: { params: GetSpaceEnvironmentParams; return: any }\n }\n EnvironmentAlias: {\n get: { params: GetSpaceEnvAliasParams; return: EnvironmentAliasProps }\n getMany: {\n params: GetSpaceParams & PaginationQueryParams\n return: CollectionProp\n }\n createWithId: {\n params: GetSpaceEnvAliasParams\n payload: CreateEnvironmentAliasProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentAliasProps\n }\n update: {\n params: GetSpaceEnvAliasParams\n payload: EnvironmentAliasProps\n headers?: RawAxiosRequestHeaders\n return: EnvironmentAliasProps\n }\n delete: { params: GetSpaceEnvAliasParams; return: any }\n }\n EnvironmentTemplate: {\n get: {\n params: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n }\n return: EnvironmentTemplateProps\n }\n getMany: {\n params: GetOrganizationParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n }\n return: CursorPaginatedCollectionProp\n }\n create: {\n payload: CreateEnvironmentTemplateProps\n params: GetOrganizationParams\n return: EnvironmentTemplateProps\n }\n versionUpdate: {\n params: GetEnvironmentTemplateParams & {\n version: number\n }\n payload: {\n versionName: string\n versionDescription: string\n }\n return: EnvironmentTemplateProps\n }\n update: {\n params: GetEnvironmentTemplateParams\n payload: EnvironmentTemplateProps\n return: EnvironmentTemplateProps\n }\n delete: {\n params: GetEnvironmentTemplateParams\n return: void\n }\n versions: {\n params: GetEnvironmentTemplateParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n }\n return: CursorPaginatedCollectionProp\n }\n validate: {\n params: EnvironmentTemplateParams & {\n version?: number\n }\n payload: ValidateEnvironmentTemplateInstallationProps\n return: EnvironmentTemplateValidationProps\n }\n install: {\n params: EnvironmentTemplateParams\n payload: CreateEnvironmentTemplateInstallationProps\n return: EnvironmentTemplateInstallationProps\n }\n disconnect: {\n params: EnvironmentTemplateParams\n return: void\n }\n }\n EnvironmentTemplateInstallation: {\n getMany: {\n params: BasicCursorPaginationOptions & {\n environmentId?: string\n environmentTemplateId: string\n organizationId: string\n spaceId?: string\n }\n return: CursorPaginatedCollectionProp\n }\n getForEnvironment: {\n params: BasicCursorPaginationOptions &\n EnvironmentTemplateParams & {\n installationId?: string\n }\n return: CursorPaginatedCollectionProp\n }\n }\n Entry: {\n getPublished: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp>\n }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp>\n }\n get: {\n params: GetSpaceEnvironmentParams & { entryId: string } & QueryParams\n return: EntryProps\n }\n patch: {\n params: GetSpaceEnvironmentParams & { entryId: string; version: number }\n payload: OpPatch[]\n headers?: RawAxiosRequestHeaders\n return: EntryProps\n }\n update: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n payload: EntryProps\n headers?: RawAxiosRequestHeaders\n return: EntryProps\n }\n delete: { params: GetSpaceEnvironmentParams & { entryId: string }; return: any }\n publish: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n payload: EntryProps\n return: EntryProps\n }\n unpublish: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n archive: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n unarchive: {\n params: GetSpaceEnvironmentParams & { entryId: string }\n return: EntryProps\n }\n create: {\n params: GetSpaceEnvironmentParams & { contentTypeId: string }\n payload: CreateEntryProps\n return: EntryProps\n }\n createWithId: {\n params: GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string }\n payload: CreateEntryProps\n return: EntryProps\n }\n references: {\n params: GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n return: EntryReferenceProps\n }\n }\n Extension: {\n get: { params: GetExtensionParams & QueryParams; return: ExtensionProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n createWithId: {\n params: GetExtensionParams\n payload: CreateExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n update: {\n params: GetExtensionParams\n payload: ExtensionProps\n headers?: RawAxiosRequestHeaders\n return: ExtensionProps\n }\n delete: { params: GetExtensionParams; return: any }\n }\n Locale: {\n get: { params: GetSpaceEnvironmentParams & { localeId: string }; return: LocaleProps }\n getMany: {\n params: GetSpaceEnvironmentParams & QueryParams\n return: CollectionProp\n }\n delete: { params: GetSpaceEnvironmentParams & { localeId: string }; return: any }\n update: {\n params: GetSpaceEnvironmentParams & { localeId: string }\n payload: LocaleProps\n headers?: RawAxiosRequestHeaders\n return: LocaleProps\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: CreateLocaleProps\n headers?: RawAxiosRequestHeaders\n return: LocaleProps\n }\n }\n Organization: {\n getMany: { params: PaginationQueryParams; return: CollectionProp }\n get: { params: GetOrganizationParams; return: OrganizationProp }\n }\n OrganizationInvitation: {\n get: {\n params: { organizationId: string; invitationId: string }\n headers?: RawAxiosRequestHeaders\n return: OrganizationInvitationProps\n }\n create: {\n params: { organizationId: string }\n payload: CreateOrganizationInvitationProps\n headers?: RawAxiosRequestHeaders\n return: OrganizationInvitationProps\n }\n }\n OrganizationMembership: {\n get: { params: GetOrganizationMembershipParams; return: OrganizationMembershipProps }\n getMany: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n update: {\n params: GetOrganizationMembershipParams\n payload: OrganizationMembershipProps\n headers?: RawAxiosRequestHeaders\n return: OrganizationMembershipProps\n }\n delete: { params: GetOrganizationMembershipParams; return: any }\n }\n PersonalAccessToken: {\n get: { params: { tokenId: string }; return: PersonalAccessTokenProp }\n getMany: { params: QueryParams; return: CollectionProp }\n create: {\n params: {}\n payload: CreatePersonalAccessTokenProps\n headers?: RawAxiosRequestHeaders\n return: PersonalAccessTokenProp\n }\n revoke: { params: { tokenId: string }; return: PersonalAccessTokenProp }\n }\n AccessToken: {\n get: { params: { tokenId: string }; return: AccessTokenProp }\n getMany: { params: QueryParams; return: CollectionProp }\n createPersonalAccessToken: {\n params: {}\n payload: CreatePATProps\n headers?: RawAxiosRequestHeaders\n return: AccessTokenProp\n }\n revoke: { params: { tokenId: string }; return: AccessTokenProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n }\n PreviewApiKey: {\n get: { params: GetSpaceParams & { previewApiKeyId: string }; return: PreviewApiKeyProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n }\n Release: {\n archive: {\n params: GetReleaseParams & { version: number }\n return: ReleaseProps\n }\n get: {\n params: GetReleaseParams\n return: ReleaseProps\n }\n query: {\n params: GetSpaceEnvironmentParams & { query?: ReleaseQueryOptions }\n return: CollectionProp\n }\n create: {\n params: GetSpaceEnvironmentParams\n payload: ReleasePayload\n return: ReleaseProps\n }\n update: {\n params: GetReleaseParams & { version: number }\n payload: ReleasePayload\n return: ReleaseProps\n }\n delete: {\n params: GetReleaseParams\n return: void\n }\n publish: {\n params: GetReleaseParams & { version: number }\n return: ReleaseActionProps<'publish'>\n }\n unarchive: {\n params: GetReleaseParams & { version: number }\n return: ReleaseProps\n }\n unpublish: {\n params: GetReleaseParams & { version: number }\n return: ReleaseActionProps<'unpublish'>\n }\n validate: {\n params: GetReleaseParams\n payload?: ReleaseValidatePayload\n return: ReleaseActionProps<'validate'>\n }\n }\n ReleaseAction: {\n get: {\n params: GetReleaseParams & { actionId: string }\n return: ReleaseAction\n }\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: ReleaseActionQueryOptions }\n return: Collection\n }\n queryForRelease: {\n params: GetReleaseParams & { query?: ReleaseActionQueryOptions }\n return: Collection\n }\n }\n Role: {\n get: { params: GetSpaceParams & { roleId: string }; return: RoleProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: CreateRoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n createWithId: {\n params: GetSpaceParams & { roleId: string }\n payload: CreateRoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n update: {\n params: GetSpaceParams & { roleId: string }\n payload: RoleProps\n headers?: RawAxiosRequestHeaders\n return: RoleProps\n }\n delete: { params: GetSpaceParams & { roleId: string }; return: any }\n }\n ScheduledAction: {\n get: {\n params: GetSpaceParams & { scheduledActionId: string; environmentId: string }\n return: ScheduledActionProps\n }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetSpaceParams\n payload: Omit\n return: ScheduledActionProps\n }\n update: {\n params: GetSpaceParams & { scheduledActionId: string; version: number }\n payload: Omit\n return: ScheduledActionProps\n }\n delete: { params: GetSpaceEnvironmentParams & { scheduledActionId: string }; return: any }\n }\n Snapshot: {\n getManyForEntry: {\n params: GetSnapshotForEntryParams & QueryParams\n return: CollectionProp, 'metadata'>>>\n }\n getForEntry: {\n params: GetSnapshotForEntryParams & { snapshotId: string }\n return: SnapshotProps, 'metadata'>>\n }\n getManyForContentType: {\n params: GetSnapshotForContentTypeParams & QueryParams\n return: CollectionProp>\n }\n getForContentType: {\n params: GetSnapshotForContentTypeParams & { snapshotId: string }\n return: SnapshotProps\n }\n }\n Space: {\n get: { params: GetSpaceParams; return: SpaceProps }\n getMany: { params: QueryParams; return: CollectionProp }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: { organizationId?: string }\n payload: Omit\n headers?: RawAxiosRequestHeaders\n return: any\n }\n update: {\n params: GetSpaceParams\n payload: SpaceProps\n headers?: RawAxiosRequestHeaders\n return: SpaceProps\n }\n delete: { params: GetSpaceParams; return: void }\n }\n SpaceMember: {\n get: { params: GetSpaceParams & { spaceMemberId: string }; return: SpaceMemberProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n }\n SpaceMembership: {\n get: { params: GetSpaceMembershipProps; return: SpaceMembershipProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getForOrganization: {\n params: GetOrganizationParams & { spaceMembershipId: string }\n return: SpaceMembershipProps\n }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams\n payload: CreateSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n createWithId: {\n params: GetSpaceMembershipProps\n payload: CreateSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n update: {\n params: GetSpaceMembershipProps\n payload: SpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: SpaceMembershipProps\n }\n delete: { params: GetSpaceMembershipProps; return: any }\n }\n Tag: {\n get: { params: GetTagParams; return: TagProps }\n getMany: { params: GetSpaceEnvironmentParams & QueryParams; return: CollectionProp }\n createWithId: { params: GetTagParams; payload: CreateTagProps; return: TagProps }\n update: {\n params: GetTagParams\n payload: UpdateTagProps\n headers?: RawAxiosRequestHeaders\n return: TagProps\n }\n delete: { params: DeleteTagParams; return: any }\n }\n Task: {\n get: { params: GetTaskParams; return: TaskProps }\n getMany: {\n params: GetEntryParams & QueryParams\n return: CollectionProp\n }\n getAll: {\n params: GetEntryParams & QueryParams\n return: CollectionProp\n }\n create: { params: CreateTaskParams; payload: CreateTaskProps; return: TaskProps }\n update: {\n params: UpdateTaskParams\n payload: UpdateTaskProps\n headers?: RawAxiosRequestHeaders\n return: TaskProps\n }\n delete: { params: DeleteTaskParams; return: void }\n }\n Team: {\n get: { params: GetTeamParams; return: TeamProps }\n getMany: { params: GetOrganizationParams & QueryParams; return: CollectionProp }\n getManyForSpace: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n create: {\n params: GetOrganizationParams\n payload: CreateTeamProps\n headers?: RawAxiosRequestHeaders\n return: any\n }\n update: {\n params: GetTeamParams\n payload: TeamProps\n headers?: RawAxiosRequestHeaders\n return: TeamProps\n }\n delete: { params: GetTeamParams; return: any }\n }\n TeamMembership: {\n get: { params: GetTeamMembershipParams; return: TeamMembershipProps }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n getManyForTeam: {\n params: GetTeamParams & QueryParams\n return: CollectionProp\n }\n create: {\n params: GetTeamParams\n payload: CreateTeamMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamMembershipProps\n }\n update: {\n params: GetTeamMembershipParams\n payload: TeamMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamMembershipProps\n }\n delete: { params: GetTeamMembershipParams; return: any }\n }\n TeamSpaceMembership: {\n get: { params: GetTeamSpaceMembershipParams; return: TeamSpaceMembershipProps }\n getMany: {\n params: GetSpaceParams & QueryParams\n return: CollectionProp\n }\n getForOrganization: {\n params: GetOrganizationParams & { teamSpaceMembershipId: string }\n return: TeamSpaceMembershipProps\n }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams & { teamId?: string }\n return: CollectionProp\n }\n create: {\n params: GetSpaceParams & { teamId: string }\n payload: CreateTeamSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamSpaceMembershipProps\n }\n update: {\n params: GetTeamSpaceMembershipParams\n payload: TeamSpaceMembershipProps\n headers?: RawAxiosRequestHeaders\n return: TeamSpaceMembershipProps\n }\n delete: { params: GetTeamSpaceMembershipParams; return: any }\n }\n UIConfig: {\n get: { params: GetUIConfigParams; return: UIConfigProps }\n update: { params: GetUIConfigParams; payload: UIConfigProps; return: UIConfigProps }\n }\n Upload: {\n get: { params: GetSpaceEnvironmentUploadParams; return: any }\n create: {\n params: GetSpaceEnvironmentParams\n payload: { file: string | ArrayBuffer | Stream }\n return: any\n }\n delete: { params: GetSpaceEnvironmentUploadParams; return: any }\n }\n Usage: {\n getManyForSpace: {\n params: { organizationId: string } & QueryParams\n return: CollectionProp\n }\n getManyForOrganization: {\n params: { organizationId: string } & QueryParams\n return: CollectionProp\n }\n }\n User: {\n getManyForSpace: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getForSpace: { params: GetSpaceParams & { userId: string }; return: UserProps }\n getCurrent: { params?: QueryParams; return: any }\n getForOrganization: { params: GetOrganizationParams & { userId: string }; return: UserProps }\n getManyForOrganization: {\n params: GetOrganizationParams & QueryParams\n return: CollectionProp\n }\n }\n UserUIConfig: {\n get: { params: GetUserUIConfigParams; return: UserUIConfigProps }\n update: { params: GetUserUIConfigParams; payload: UserUIConfigProps; return: UserUIConfigProps }\n }\n Webhook: {\n get: { params: GetWebhookParams; return: WebhookProps }\n getMany: { params: GetSpaceParams & QueryParams; return: CollectionProp }\n getCallDetails: { params: GetWebhookCallDetailsUrl; return: WebhookCallDetailsProps }\n getHealthStatus: { params: GetWebhookParams; return: WebhookHealthProps }\n getManyCallDetails: {\n params: GetWebhookParams & QueryParams\n return: CollectionProp\n }\n getSigningSecret: { params: GetSpaceParams; return: WebhookSigningSecretProps }\n getRetryPolicy: { params: GetSpaceParams; return: WebhookRetryPolicyProps }\n create: {\n params: GetSpaceParams\n payload: CreateWebhooksProps\n headers?: RawAxiosRequestHeaders\n return: WebhookProps\n }\n createWithId: {\n params: GetWebhookParams\n payload: CreateWebhooksProps\n headers?: RawAxiosRequestHeaders\n return: WebhookProps\n }\n update: { params: GetWebhookParams; payload: WebhookProps; return: WebhookProps }\n upsertSigningSecret: {\n params: GetSpaceParams\n payload: UpsertWebhookSigningSecretPayload\n return: WebhookSigningSecretProps\n }\n upsertRetryPolicy: {\n params: GetSpaceParams\n payload: WebhookRetryPolicyPayload\n return: WebhookRetryPolicyProps\n }\n delete: { params: GetWebhookParams; return: void }\n deleteSigningSecret: { params: GetSpaceParams; return: void }\n deleteRetryPolicy: { params: GetSpaceParams; return: void }\n }\n WorkflowDefinition: {\n get: {\n params: GetWorkflowDefinitionParams\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: WorkflowDefinitionQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n create: {\n params: CreateWorkflowDefinitionParams\n payload: CreateWorkflowDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n update: {\n params: GetWorkflowDefinitionParams\n payload: WorkflowDefinitionProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowDefinitionProps\n }\n delete: {\n params: DeleteWorkflowDefinitionParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n }\n Workflow: {\n getMany: {\n params: GetSpaceEnvironmentParams & { query?: WorkflowQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n create: {\n params: CreateWorkflowParams\n payload: CreateWorkflowProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowProps\n }\n update: {\n params: GetWorkflowParams\n payload: WorkflowProps\n headers?: RawAxiosRequestHeaders\n return: WorkflowProps\n }\n delete: {\n params: DeleteWorkflowParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n complete: {\n params: CompleteWorkflowParams\n headers?: RawAxiosRequestHeaders\n return: void\n }\n }\n WorkflowsChangelog: {\n getMany: {\n params: GetSpaceEnvironmentParams & { query: WorkflowsChangelogQueryOptions }\n headers?: RawAxiosRequestHeaders\n return: CollectionProp\n }\n }\n}\n\n/**\n * @private\n */\nexport type MROpts<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET],\n UA extends boolean = false\n> = {\n entityType: ET\n action: Action\n} & (UA extends true ? { userAgent: string } : {}) &\n ('params' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['params']\n ? { params?: MRActions[ET][Action]['params'] }\n : { params: MRActions[ET][Action]['params'] }\n : {}) &\n ('payload' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['payload']\n ? { payload?: MRActions[ET][Action]['payload'] }\n : { payload: MRActions[ET][Action]['payload'] }\n : {}) &\n ('headers' extends keyof MRActions[ET][Action]\n ? undefined extends MRActions[ET][Action]['headers']\n ? { headers?: MRActions[ET][Action]['headers'] }\n : { headers: MRActions[ET][Action]['headers'] }\n : {})\n\n/**\n * @private\n */\nexport type MRReturn<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET]\n> = 'return' extends keyof MRActions[ET][Action] ? Promise : never\n\n/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface MakeRequestPayload {}\n\nexport interface MakeRequestOptions {\n entityType: keyof MRActions\n action: string\n params?: Record\n payload?: Record | OpPatch[] | MakeRequestPayload\n headers?: RawAxiosRequestHeaders\n userAgent: string\n}\n\nexport type EnvironmentTemplateParams = {\n spaceId: string\n environmentId: string\n environmentTemplateId: string\n}\n\nexport type GetAppActionParams = GetAppDefinitionParams & { appActionId: string }\nexport type GetAppActionsForEnvParams = GetSpaceParams & { environmentId?: string }\nexport type GetAppActionCallParams = GetAppInstallationParams & { appActionId: string }\nexport type CreateWithResponseParams = GetAppActionCallParams & {\n retries?: number\n retryInterval?: number\n}\nexport type GetAppActionCallDetailsParams = GetSpaceEnvironmentParams & {\n appActionId: string\n callId: string\n}\nexport type GetAppBundleParams = GetAppDefinitionParams & { appBundleId: string }\nexport type GetAppDefinitionParams = GetOrganizationParams & { appDefinitionId: string }\nexport type GetAppInstallationsForOrgParams = GetOrganizationParams & {\n appDefinitionId: string\n}\nexport type GetAppInstallationParams = GetSpaceEnvironmentParams & { appDefinitionId: string }\nexport type GetBulkActionParams = GetSpaceEnvironmentParams & { bulkActionId: string }\nexport type GetCommentParams = (GetEntryParams | GetCommentParentEntityParams) & {\n commentId: string\n}\nexport type GetContentTypeParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetEditorInterfaceParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetEntryParams = GetSpaceEnvironmentParams & { entryId: string }\nexport type GetExtensionParams = GetSpaceEnvironmentParams & { extensionId: string }\nexport type GetEnvironmentTemplateParams = GetOrganizationParams & { environmentTemplateId: string }\nexport type GetOrganizationParams = { organizationId: string }\nexport type GetReleaseParams = GetSpaceEnvironmentParams & { releaseId: string }\nexport type GetSnapshotForContentTypeParams = GetSpaceEnvironmentParams & { contentTypeId: string }\nexport type GetSnapshotForEntryParams = GetSpaceEnvironmentParams & { entryId: string }\nexport type GetSpaceEnvAliasParams = GetSpaceParams & { environmentAliasId: string }\nexport type GetSpaceEnvironmentParams = { spaceId: string; environmentId: string }\nexport type GetSpaceEnvironmentUploadParams = GetSpaceEnvironmentParams & { uploadId: string }\nexport type GetSpaceMembershipProps = GetSpaceParams & { spaceMembershipId: string }\nexport type GetSpaceParams = { spaceId: string }\nexport type GetTagParams = GetSpaceEnvironmentParams & { tagId: string }\nexport type GetTaskParams = GetEntryParams & { taskId: string }\nexport type GetTeamMembershipParams = GetTeamParams & { teamMembershipId: string }\nexport type GetTeamParams = { organizationId: string; teamId: string }\nexport type GetTeamSpaceMembershipParams = GetSpaceParams & { teamSpaceMembershipId: string }\nexport type GetWebhookCallDetailsUrl = GetWebhookParams & { callId: string }\nexport type GetWebhookParams = GetSpaceParams & { webhookDefinitionId: string }\nexport type GetOrganizationMembershipParams = GetOrganizationParams & {\n organizationMembershipId: string\n}\n\nexport type GetAppKeyParams = GetAppDefinitionParams & { fingerprint: string }\nexport type GetAppUploadParams = GetOrganizationParams & { appUploadId: string }\nexport type GetWorkflowDefinitionParams = GetSpaceEnvironmentParams & {\n workflowDefinitionId: string\n}\nexport type GetWorkflowParams = GetSpaceEnvironmentParams & {\n workflowId: string\n}\nexport type GetUIConfigParams = GetSpaceEnvironmentParams\nexport type GetUserUIConfigParams = GetUIConfigParams\n\nexport type QueryParams = { query?: QueryOptions }\nexport type SpaceQueryParams = { query?: SpaceQueryOptions }\nexport type PaginationQueryParams = { query?: PaginationQueryOptions }\nexport enum ScheduledActionReferenceFilters {\n contentTypeAnnotationNotIn = 'sys.contentType.metadata.annotations.ContentType[nin]',\n}\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\n\nimport { toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n Collection,\n CollectionProp,\n CursorPaginatedCollection,\n CursorPaginatedCollectionProp,\n MakeRequest,\n} from './common-types'\n\n/**\n * @private\n */\nexport const wrapCollection =\n (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) =>\n (makeRequest: MakeRequest, data: CollectionProp, ...rest: Rest): Collection => {\n const collectionData = toPlainObject(copy(data))\n // @ts-expect-error\n collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest))\n // @ts-expect-error\n return collectionData\n }\n\nexport const wrapCursorPaginatedCollection =\n (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) =>\n (\n makeRequest: MakeRequest,\n data: CursorPaginatedCollectionProp,\n ...rest: Rest\n ): CursorPaginatedCollection => {\n const collectionData = toPlainObject(copy(data))\n // @ts-expect-error\n collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest))\n // @ts-expect-error\n return collectionData\n }\nexport function isSuccessful(statusCode: number) {\n return statusCode < 300\n}\n\nexport function shouldRePoll(statusCode: number) {\n return [404, 422, 429, 400].includes(statusCode)\n}\n\nexport async function waitFor(ms = 1000) {\n return new Promise((resolve) => setTimeout(resolve, ms))\n}\n","import { ContentFields, ContentTypeFieldValidation } from '../../entities/content-type-fields'\nimport { in_ } from './types'\n\nconst DROPDOWN_TYPES = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']\n\nconst INTERNAL_TO_API = {\n Symbol: { type: 'Symbol' },\n Text: { type: 'Text' },\n RichText: { type: 'RichText' },\n Integer: { type: 'Integer' },\n Number: { type: 'Number' },\n Boolean: { type: 'Boolean' },\n Date: { type: 'Date' },\n Location: { type: 'Location' },\n Object: { type: 'Object' },\n File: { type: 'File' },\n\n Entry: { type: 'Link', linkType: 'Entry' },\n Asset: { type: 'Link', linkType: 'Asset' },\n Resource: { type: 'ResourceLink' },\n\n Symbols: { type: 'Array', items: { type: 'Symbol' } },\n Entries: { type: 'Array', items: { type: 'Link', linkType: 'Entry' } },\n Assets: { type: 'Array', items: { type: 'Link', linkType: 'Asset' } },\n Resources: { type: 'Array', items: { type: 'ResourceLink' } },\n} as const\n\nexport const FIELD_TYPES = Object.keys(INTERNAL_TO_API) as Array\n\n/**\n * Returns an internal string identifier for an API field object.\n *\n * We use this string as a simplified reference to field types.\n * Possible values are:\n *\n * - Symbol\n * - Symbols\n * - Text\n * - RichText\n * - Integer\n * - Number\n * - Boolean\n * - Date\n * - Location\n * - Object\n * - Entry\n * - Entries\n * - Asset\n * - Assets\n * - File\n */\nexport function toInternalFieldType(api: Partial) {\n return FIELD_TYPES.find((key) => {\n const internalApi = INTERNAL_TO_API[key]\n const stripped = {\n type: api.type,\n linkType: api.linkType,\n items: api.items,\n }\n if (stripped.items) {\n stripped.items = { type: stripped.items.type, linkType: stripped.items.linkType }\n }\n\n if (internalApi.type === 'Link') {\n return internalApi.linkType === stripped.linkType\n }\n\n if (internalApi.type === 'Array' && internalApi.items && stripped.items) {\n if (internalApi.items.type === 'Link') {\n return internalApi.items.linkType === stripped.items.linkType\n }\n return internalApi.items.type === stripped.items.type\n }\n\n return internalApi.type === stripped.type\n })\n}\n\nexport const DEFAULTS_WIDGET = {\n Text: { widgetId: 'markdown' },\n Symbol: { widgetId: 'singleLine' },\n Integer: { widgetId: 'numberEditor' },\n Number: { widgetId: 'numberEditor' },\n Boolean: { widgetId: 'boolean' },\n Date: { widgetId: 'datePicker' },\n Location: { widgetId: 'locationEditor' },\n Object: { widgetId: 'objectEditor' },\n RichText: { widgetId: 'richTextEditor' },\n Entry: { widgetId: 'entryLinkEditor' },\n Asset: { widgetId: 'assetLinkEditor' },\n Symbols: { widgetId: 'tagEditor' },\n Entries: { widgetId: 'entryLinksEditor' },\n Assets: { widgetId: 'assetLinksEditor' },\n File: { widgetId: 'fileEditor' },\n Resource: { widgetId: 'resourceLinkEditor' },\n Resources: { widgetId: 'resourceLinksEditor' },\n}\n\nexport const DEFAULTS_SETTINGS = {\n Boolean: {\n falseLabel: 'No',\n helpText: null,\n trueLabel: 'Yes',\n },\n Date: {\n helpText: null,\n ampm: '24',\n format: 'timeZ',\n },\n Entry: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n Asset: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n\n Entries: {\n helpText: null,\n bulkEditing: false,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n Assets: {\n helpText: null,\n showCreateEntityAction: true,\n showLinkEntityAction: true,\n },\n} as const\n\ninterface DefaultWidget {\n widgetId: string\n settings?: {\n helpText: null | string\n }\n fieldId: string\n widgetNamespace: 'builtin'\n}\n\nfunction getDefaultWidget(field: keyof typeof DEFAULTS_WIDGET, fieldId: string) {\n const defaultWidget: DefaultWidget = {\n ...(DEFAULTS_WIDGET[field] as Pick),\n settings: {\n helpText: null,\n },\n widgetNamespace: 'builtin',\n fieldId,\n }\n if (in_(field, DEFAULTS_SETTINGS)) {\n defaultWidget.settings = {\n ...defaultWidget.settings,\n ...DEFAULTS_SETTINGS[field],\n }\n }\n return defaultWidget\n}\n\n/**\n * Given our internal identifier returns a minimal API field object.\n */\nexport function toApiFieldType(internal: keyof typeof INTERNAL_TO_API) {\n return INTERNAL_TO_API[internal]\n}\n\n/*\n * Gets the default widget ID for a field:\n * - If a field allows predefined values then `dropdown` widget is used\n * in the presence of the `in` validation.\n * - If a Text field is a title then the `singleLine` widget is used.\n * - Otherwise a simple type-to-editor mapping is used.\n */\nexport default function getDefaultControlOfField(field: ContentFields) {\n const fieldType = toInternalFieldType(field)\n\n if (!fieldType) {\n throw new Error('Invalid field type')\n }\n\n const hasInValidation = (field.validations || []).find(\n (v: ContentTypeFieldValidation) => 'in' in v\n )\n\n if (hasInValidation && DROPDOWN_TYPES.includes(fieldType)) {\n return {\n widgetId: 'dropdown',\n fieldId: field.id,\n widgetNameSpace: 'builtin',\n }\n }\n\n return getDefaultWidget(fieldType, field.id)\n}\n","import { DEFAULT_EDITOR_ID, WidgetNamespace } from './types'\n\nexport const EntryEditorWidgetTypes = {\n DEFAULT_EDITOR: {\n name: 'Editor',\n id: DEFAULT_EDITOR_ID,\n icon: 'Entry',\n },\n REFERENCE_TREE: {\n name: 'References',\n id: 'reference-tree',\n icon: 'References',\n },\n TAGS_EDITOR: {\n name: 'Tags',\n id: 'tags-editor',\n icon: 'Tags',\n },\n}\n\nconst DefaultEntryEditor = {\n widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name,\n}\n\nconst ReferencesEntryEditor = {\n widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.REFERENCE_TREE.name,\n}\n\nconst TagsEditor = {\n widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id,\n widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,\n name: EntryEditorWidgetTypes.TAGS_EDITOR.name,\n}\n\nexport const EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]\n","import { SidebarAssetConfiguration, SidebarEntryConfiguration } from './sidebar-defaults'\nimport { EntryConfiguration } from './editors-defaults'\nimport getDefaultControlOfField from './controls-defaults'\n\nexport default {\n SidebarEntryConfiguration,\n SidebarAssetConfiguration,\n EntryConfiguration,\n getDefaultControlOfField,\n}\n","import { WidgetNamespace } from './types'\n\nconst SidebarWidgetTypes = {\n USERS: 'users-widget',\n CONTENT_PREVIEW: 'content-preview-widget',\n TRANSLATION: 'translation-widget',\n INCOMING_LINKS: 'incoming-links-widget',\n PUBLICATION: 'publication-widget',\n RELEASES: 'releases-widget',\n VERSIONS: 'versions-widget',\n INFO_PANEL: 'info-panel',\n JOBS: 'jobs-widget',\n COMMENTS_PANEL: 'comments-panel',\n}\n\nconst Publication = {\n widgetId: SidebarWidgetTypes.PUBLICATION,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Publish & Status',\n description: 'Built-in - View entry status, publish, etc.',\n}\n\nconst Releases = {\n widgetId: SidebarWidgetTypes.RELEASES,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Release',\n description: 'Built-in - View release, add to it, etc.',\n}\n\nconst ContentPreview = {\n widgetId: SidebarWidgetTypes.CONTENT_PREVIEW,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Preview',\n description: 'Built-in - Displays preview functionality.',\n}\n\nconst Links = {\n widgetId: SidebarWidgetTypes.INCOMING_LINKS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Links',\n description: 'Built-in - Shows where an entry is linked.',\n}\n\nconst Translation = {\n widgetId: SidebarWidgetTypes.TRANSLATION,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Translation',\n description: 'Built-in - Manage which translations are visible.',\n}\n\nconst Versions = {\n widgetId: SidebarWidgetTypes.VERSIONS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Versions',\n description:\n 'Built-in - View previously published versions. Available only for master environment.',\n}\n\nconst Users = {\n widgetId: SidebarWidgetTypes.USERS,\n widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,\n name: 'Users',\n description: 'Built-in - Displays users on the same entry.',\n}\n\nexport const SidebarEntryConfiguration = [\n Publication,\n Releases,\n ContentPreview,\n Links,\n Translation,\n Versions,\n Users,\n]\n\nexport const SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users]\n","export enum WidgetNamespace {\n BUILTIN = 'builtin',\n EXTENSION = 'extension',\n SIDEBAR_BUILTIN = 'sidebar-builtin',\n APP = 'app',\n EDITOR_BUILTIN = 'editor-builtin',\n}\n\nexport const DEFAULT_EDITOR_ID = 'default-editor'\n\n/**\n * @private\n */\nexport const in_ = (key: K, object: O): key is K & keyof O =>\n key in object\n","/**\n * @packageDocumentation\n * @hidden\n */\n\nimport { Adapter } from './common-types'\nimport { RestAdapter, RestAdapterParams } from './adapters/REST/rest-adapter'\n\nexport type AdapterParams = {\n apiAdapter: Adapter\n}\n\n/**\n * @private\n */\nexport function createAdapter(params: RestAdapterParams | AdapterParams): Adapter {\n if ('apiAdapter' in params) {\n return params.apiAdapter\n } else {\n return new RestAdapter(params)\n }\n}\n","import { MakeRequest, QueryOptions, SpaceQueryOptions } from './common-types'\nimport entities from './entities'\nimport { CreateAppBundleProps } from './entities/app-bundle'\nimport { AppDefinitionProps, wrapAppDefinition } from './entities/app-definition'\n\n/**\n * @private\n */\nexport type ContentfulAppDefinitionAPI = ReturnType\n\n/**\n * @private\n */\nexport default function createAppDefinitionApi(makeRequest: MakeRequest) {\n const { wrapAppBundle, wrapAppBundleCollection } = entities.appBundle\n\n const getParams = (data: AppDefinitionProps) => ({\n appDefinitionId: data.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => {\n * appDefinition.name = 'New App Definition name'\n * return appDefinition.update()\n * })\n * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update: function update() {\n const data = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'update',\n params: getParams(data),\n headers: {},\n payload: data,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.delete())\n * .then(() => console.log(`App Definition deleted.`))\n * .catch(console.error)\n * ```\n */\n delete: function del() {\n const data = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'delete',\n params: getParams(data),\n })\n },\n\n /**\n * Gets an app bundle\n * @param id - AppBundle ID\n * @return Promise for an AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundle(''))\n * .then((appBundle) => console.log(appBundle))\n * .catch(console.error)\n * ```\n */\n getAppBundle(id: string) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'get',\n params: {\n appBundleId: id,\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n },\n }).then((data) => wrapAppBundle(makeRequest, data))\n },\n\n /**\n * Gets a collection of AppBundles\n * @return Promise for a collection of AppBundles\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppBundles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'getMany',\n params: { organizationId: raw.sys.organization.sys.id, appDefinitionId: raw.sys.id, query },\n }).then((data) => wrapAppBundleCollection(makeRequest, data))\n },\n\n /**\n * Creates an app bundle\n * @param Object representation of the App Bundle to be created\n * @return Promise for the newly created AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.createAppBundle(''))\n * .then((appBundle) => console.log(appBundle))\n * .catch(console.error)\n * ```\n */\n createAppBundle(data: CreateAppBundleProps) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'create',\n params: {\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n },\n payload: data,\n }).then((data) => wrapAppBundle(makeRequest, data))\n },\n\n /**\n * Gets a list of App Installations across an org for given organization and App Definition\n * If a spaceId is provided in the query object, it will return the App Installations for that specific space.\n * @return Promise for the newly created AppBundle\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getAppDefinition('', '')\n * .then((appDefinition) => appDefinition.getInstallationsForOrg(\n * { spaceId: '' } // optional\n * ))\n * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items))\n * .catch(console.error)\n * ```\n */\n getInstallationsForOrg(query: SpaceQueryOptions = {}) {\n const raw = this.toPlainObject() as AppDefinitionProps\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'getInstallationsForOrg',\n params: {\n appDefinitionId: raw.sys.id,\n organizationId: raw.sys.organization.sys.id,\n query,\n },\n })\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport {\n Collection,\n MakeRequest,\n PaginationQueryParams,\n QueryOptions,\n QueryParams,\n GetAppDefinitionParams,\n CursorPaginatedCollection,\n GetEnvironmentTemplateParams,\n BasicCursorPaginationOptions,\n} from './common-types'\nimport entities from './entities'\nimport { Organization, OrganizationProp } from './entities/organization'\nimport { CreatePersonalAccessTokenProps } from './entities/personal-access-token'\nimport { Space, SpaceProps } from './entities/space'\nimport { AppDefinition } from './entities/app-definition'\nimport { UsageQuery } from './entities/usage'\nimport { UserProps } from './entities/user'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplate,\n EnvironmentTemplateProps,\n} from './entities/environment-template'\nimport { RawAxiosRequestConfig } from 'axios'\n\nexport type ClientAPI = ReturnType\ntype CreateSpaceProps = Omit & { defaultLocale?: string }\n\n/**\n * @private\n */\nexport default function createClientApi(makeRequest: MakeRequest) {\n const { wrapSpace, wrapSpaceCollection } = entities.space\n const { wrapUser } = entities.user\n const { wrapPersonalAccessToken, wrapPersonalAccessTokenCollection } =\n entities.personalAccessToken\n const { wrapAccessToken, wrapAccessTokenCollection } = entities.accessToken\n const { wrapOrganization, wrapOrganizationCollection } = entities.organization\n const { wrapUsageCollection } = entities.usage\n const { wrapAppDefinition } = entities.appDefinition\n const { wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection } =\n entities.environmentTemplate\n\n return {\n /**\n * Gets all environment templates for a given organization with the lasted version\n * @param organizationId - Organization ID\n * @return Promise for a collection of EnvironmentTemplates\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplates('')\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironmentTemplates: function getEnvironmentTemplates(\n organizationId: string,\n query: BasicCursorPaginationOptions & { select?: string } = {}\n ): Promise> {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'getMany',\n params: { organizationId, query: createRequestConfig({ query }).params },\n }).then((data) => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId))\n },\n /**\n * Gets the lasted version environment template if params.version is not specified\n * @param params.organizationId - Organization ID\n * @param params.environmentTemplateId - Environment template ID\n * @param [params.version] - Template version number to return a specific version of the environment template\n * @return Promise for a EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate({\n * organizationId: '',\n * environmentTemplateId: '',\n * version: version>\n * })\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n getEnvironmentTemplate: function getEnvironmentTemplate({\n organizationId,\n environmentTemplateId,\n version,\n query = {},\n }: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n }): Promise {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'get',\n params: {\n organizationId,\n environmentTemplateId,\n version,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Creates an environment template\n * @param organizationId - Organization ID\n * @param environmentTemplateData - Object representation of the environment template to be created\n * @return Promise for the newly created EnvironmentTemplate\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createEnvironmentTemplate('', {})\n * .then((environmentTemplate) => console.log(environmentTemplate))\n * .catch(console.error)\n * ```\n */\n createEnvironmentTemplate: function createEnvironmentTemplate(\n organizationId: string,\n environmentTemplateData: CreateEnvironmentTemplateProps\n ): Promise {\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'create',\n params: { organizationId },\n payload: environmentTemplateData,\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Gets all spaces\n * @return Promise for a collection of Spaces\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpaces()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getSpaces: function getSpaces(\n query: QueryOptions = {}\n ): Promise> {\n return makeRequest({\n entityType: 'Space',\n action: 'getMany',\n params: { query: createRequestConfig({ query: query }).params },\n }).then((data) => wrapSpaceCollection(makeRequest, data))\n },\n\n /**\n * Gets a space\n * @param spaceId - Space ID\n * @return Promise for a Space\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n getSpace: function getSpace(spaceId: string): Promise {\n return makeRequest({\n entityType: 'Space',\n action: 'get',\n params: { spaceId },\n }).then((data) => wrapSpace(makeRequest, data))\n },\n\n /**\n * Creates a space\n * @param spaceData - Object representation of the Space to be created\n * @param organizationId - Organization ID, if the associated token can manage more than one organization.\n * @return Promise for the newly created Space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createSpace({\n * name: 'Name of new space'\n * })\n * .then((space) => console.log(space))\n * .catch(console.error)\n * ```\n */\n createSpace: function createSpace(\n spaceData: CreateSpaceProps,\n organizationId: string\n ): Promise {\n return makeRequest({\n entityType: 'Space',\n action: 'create',\n params: { organizationId },\n payload: spaceData,\n }).then((data) => wrapSpace(makeRequest, data))\n },\n\n /**\n * Gets an organization\n * @param id - Organization ID\n * @return Promise for a Organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => console.log(org))\n * .catch(console.error)\n * ```\n */\n getOrganization: function getOrganization(id: string): Promise {\n return makeRequest({\n entityType: 'Organization',\n action: 'get',\n params: { organizationId: id },\n }).then((data) => wrapOrganization(makeRequest, data))\n },\n\n /**\n * Gets a collection of Organizations\n * @return Promise for a collection of Organizations\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizations()\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getOrganizations: function getOrganizations(\n query: PaginationQueryParams['query'] = {}\n ): Promise> {\n return makeRequest({\n entityType: 'Organization',\n action: 'getMany',\n params: { query: createRequestConfig({ query }).params },\n }).then((data) => wrapOrganizationCollection(makeRequest, data))\n },\n\n /**\n * Gets the authenticated user\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getCurrentUser()\n * .then(user => console.log(user.firstName))\n * .catch(console.error)\n * ```\n */\n getCurrentUser: function getCurrentUser(params?: QueryParams): Promise {\n return makeRequest({\n entityType: 'User',\n action: 'getCurrent',\n params,\n }).then((data) => wrapUser(makeRequest, data))\n },\n\n /**\n * Gets App Definition\n * @return Promise for App Definition\n * @param organizationId - Id of the organization where the app is installed\n * @param appDefinitionId - Id of the app that will be returned\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAppDefinition(<'org_id'>, <'app_id'>)\n * .then(appDefinition => console.log(appDefinition.name))\n * .catch(console.error)\n * ```\n */\n\n getAppDefinition: function getAppDefinition(\n params: GetAppDefinitionParams\n ): Promise {\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'get',\n params,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Creates a personal access token\n * @param data - personal access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.createPersonalAccessToken(\n * {\n * \"name\": \"My Token\",\n * \"scope\": [\n * \"content_management_manage\"\n * ]\n * }\n * )\n * .then(personalAccessToken => console.log(personalAccessToken.token))\n * .catch(console.error)\n * ```\n */\n createPersonalAccessToken: function createPersonalAccessToken(\n data: CreatePersonalAccessTokenProps\n ) {\n return makeRequest({\n /**\n * When the `PersonalAccessToken` entity is removed, replace the `entityType` with `AccessToken`\n * and update the action to `createPersonalToken` to ultilize the new entity called AccessToken.\n */\n entityType: 'PersonalAccessToken',\n action: 'create',\n params: {},\n payload: data,\n }).then((response) => wrapPersonalAccessToken(makeRequest, response))\n },\n\n /**\n * @deprecated - use getAccessToken instead\n *\n * Gets a personal access token\n * @param data - personal access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getPersonalAccessToken(tokenId)\n * .then(token => console.log(token.token))\n * .catch(console.error)\n * ```\n */\n getPersonalAccessToken: function getPersonalAccessToken(tokenId: string) {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'get',\n params: { tokenId },\n }).then((data) => wrapPersonalAccessToken(makeRequest, data))\n },\n\n /**\n * @deprecated - use getAccessTokens instead\n *\n * Gets all personal access tokens\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getPersonalAccessTokens()\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getPersonalAccessTokens: function getPersonalAccessTokens() {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'getMany',\n params: {},\n }).then((data) => wrapPersonalAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Gets a users access token\n * @param data - users access token config\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAccessToken(tokenId)\n * .then(token => console.log(token.token))\n * .catch(console.error)\n * ```\n */\n getAccessToken: function getAccessToken(tokenId: string) {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'get',\n params: { tokenId },\n }).then((data) => wrapAccessToken(makeRequest, data))\n },\n\n /**\n * Gets all user access tokens\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getAccessTokens()\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getAccessTokens: function getAccessTokens() {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'getMany',\n params: {},\n }).then((data) => wrapAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization.\n *\n * @return Promise for a Token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizationAccessTokens(organizationId)\n * .then(response => console.log(reponse.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationAccessTokens: function getOrganizationAccessTokens(\n organizationId: string,\n query: QueryOptions = {}\n ) {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'getManyForOrganization',\n params: { organizationId, query },\n }).then((data) => wrapAccessTokenCollection(makeRequest, data))\n },\n\n /**\n * Get organization usage grouped by {@link UsageMetricEnum metric}\n *\n * @param organizationId - Id of an organization\n * @param query - Query parameters\n * @return Promise of a collection of usages\n * @example ```javascript\n *\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganizationUsage('', {\n * 'metric[in]': 'cma,gql',\n * 'dateRange.startAt': '2019-10-22',\n * 'dateRange.endAt': '2019-11-10'\n * }\n * })\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationUsage: function getOrganizationUsage(\n organizationId: string,\n query: QueryOptions = {}\n ) {\n return makeRequest({\n entityType: 'Usage',\n action: 'getManyForOrganization',\n params: { organizationId, query },\n }).then((data) => wrapUsageCollection(makeRequest, data))\n },\n\n /**\n * Get organization usage grouped by space and metric\n *\n * @param organizationId - Id of an organization\n * @param query - Query parameters\n * @return Promise of a collection of usages\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpaceUsage('', {\n * skip: 0,\n * limit: 10,\n * 'metric[in]': 'cda,cpa,gql',\n * 'dateRange.startAt': '2019-10-22',\n * 'dateRange.endAt': '2020-11-30'\n * }\n * })\n * .then(result => console.log(result.items))\n * .catch(console.error)\n * ```\n */\n getSpaceUsage: function getSpaceUsage(organizationId: string, query: UsageQuery = {}) {\n return makeRequest({\n entityType: 'Usage',\n action: 'getManyForSpace',\n params: {\n organizationId,\n query,\n },\n }).then((data) => wrapUsageCollection(makeRequest, data))\n },\n\n /**\n * Make a custom request to the Contentful management API's /spaces endpoint\n * @param opts - axios request options (https://github.com/mzabriskie/axios)\n * @return Promise for the response data\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.rawRequest({\n * method: 'GET',\n * url: '/custom/path'\n * })\n * .then((responseData) => console.log(responseData))\n * .catch(console.error)\n * ```\n */\n rawRequest: function rawRequest({ url, ...config }: RawAxiosRequestConfig & { url: string }) {\n return makeRequest({\n entityType: 'Http',\n action: 'request',\n params: { url, config },\n })\n },\n }\n}\n","import type { OpPatch } from 'json-patch'\nimport { MakeRequest } from './common-types'\nimport { CreateCommentParams, CreateCommentProps } from './entities/comment'\nimport { Entry, EntryProps, EntryReferenceOptionsProps } from './entities/entry'\nimport { CreateTaskProps } from './entities/task'\nimport * as checks from './plain/checks'\nimport entities from './entities'\n\n/**\n * @private\n */\nexport type ContentfulEntryApi = ReturnType\n\n/**\n * @private\n */\nexport default function createEntryApi(makeRequest: MakeRequest) {\n const { wrapEntry, wrapEntryCollection } = entities.entry\n const { wrapSnapshot, wrapSnapshotCollection } = entities.snapshot\n const { wrapTask, wrapTaskCollection } = entities.task\n const { wrapComment, wrapCommentCollection } = entities.comment\n\n const getParams = (self: Entry) => {\n const entry = self.toPlainObject() as EntryProps\n\n return {\n params: {\n spaceId: entry.sys.space.sys.id,\n environmentId: entry.sys.environment.sys.id,\n entryId: entry.sys.id,\n },\n raw: entry,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => {\n * entry.fields.title['en-US'] = 'New entry title'\n * return entry.update()\n * })\n * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update: function update() {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'update',\n params,\n payload: raw,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Sends an JSON patch to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.patch([\n * {\n * op: 'replace',\n * path: '/fields/title/en-US',\n * value: 'New entry title'\n * }\n * ]))\n * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n patch: function patch(ops: OpPatch[]) {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'patch',\n params: {\n ...params,\n version: raw.sys.version,\n },\n payload: ops,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.delete())\n * .then(() => console.log(`Entry deleted.`))\n * .catch(console.error)\n * ```\n */\n delete: function del() {\n const { params } = getParams(this)\n\n return makeRequest({ entityType: 'Entry', action: 'delete', params })\n },\n\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.publish())\n * .then((entry) => console.log(`Entry ${entry.sys.id} published.`))\n * .catch(console.error)\n * ```\n */\n publish: function publish() {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'publish',\n params,\n payload: raw,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.unpublish())\n * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`))\n * .catch(console.error)\n * ```\n */\n\n unpublish: function unpublish() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'unpublish',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Archives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.archive())\n * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`))\n * .catch(console.error)\n * ```\n */\n archive: function archive() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'archive',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Unarchives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.unarchive())\n * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`))\n * .catch(console.error)\n * ```\n */\n unarchive: function unarchive() {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Entry',\n action: 'unarchive',\n params,\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Gets all snapshots of an entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getSnapshots())\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getSnapshots: function (query = {}) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForEntry',\n params: { ...params, query },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n /**\n * Gets a snapshot of an entry\n * @param snapshotId - Id of the snapshot\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getSnapshot(''))\n * .then((snapshot) => console.log(snapshot))\n * .catch(console.error)\n * ```\n */\n getSnapshot: function (snapshotId: string) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getForEntry',\n params: { ...params, snapshotId },\n }).then((data) => wrapSnapshot(makeRequest, data))\n },\n\n /**\n * Creates a new comment for an entry\n * @param data Object representation of the Comment to be created\n * @returns Promise for the newly created Comment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.createComment({\n * body: 'Something left to do'\n * }))\n * .then((comment) => console.log(comment))\n * .catch(console.error)\n * ```\n */\n createComment: function (data: CreateCommentProps) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'create',\n params: {\n spaceId: params.spaceId,\n environmentId: params.environmentId,\n parentEntityId: params.entryId,\n parentEntityType: 'Entry',\n } as CreateCommentParams,\n payload: data,\n }).then((data) => wrapComment(makeRequest, data))\n },\n\n /**\n * Gets all comments of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getComments())\n * .then((comments) => console.log(comments))\n * .catch(console.error)\n * ```\n */\n getComments: function () {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'getMany',\n params,\n }).then((data) => wrapCommentCollection(makeRequest, data))\n },\n\n /**\n * Gets a comment of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getComment(``))\n * .then((comment) => console.log(comment))\n * .catch(console.error)\n * ```\n */\n getComment: function (id: string) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Comment',\n action: 'get',\n params: {\n ...params,\n commentId: id,\n },\n }).then((data) => wrapComment(makeRequest, data))\n },\n\n /**\n * Creates a new task for an entry\n * @param data Object representation of the Task to be created\n * @returns Promise for the newly created Task\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.createTask({\n * body: 'Something left to do',\n * assignedTo: '',\n * status: 'active'\n * }))\n * .then((task) => console.log(task))\n * .catch(console.error)\n * ```\n */\n createTask: function (data: CreateTaskProps) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'create',\n params,\n payload: data,\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n /**\n * Gets all tasks of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getTasks())\n * .then((tasks) => console.log(tasks))\n * .catch(console.error)\n * ```\n */\n getTasks: function (query = {}) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'getMany',\n params: { ...params, query },\n }).then((data) => wrapTaskCollection(makeRequest, data))\n },\n\n /**\n * Gets a task of an entry\n * @returns\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => entry.getTask(``))\n * .then((task) => console.log(task))\n * .catch(console.error)\n * ```\n */\n getTask: function (id: string) {\n const { params } = getParams(this)\n return makeRequest({\n entityType: 'Task',\n action: 'get',\n params: {\n ...params,\n taskId: id,\n },\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n /**\n * Checks if the entry is published. A published entry might have unpublished changes\n */\n isPublished: function isPublished() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isPublished(raw)\n },\n\n /**\n * Checks if the entry is updated. This means the entry was previously published but has unpublished changes.\n */\n isUpdated: function isUpdated() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isUpdated(raw)\n },\n\n /**\n * Checks if the entry is in draft mode. This means it is not published.\n */\n isDraft: function isDraft() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isDraft(raw)\n },\n\n /**\n * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs.\n */\n isArchived: function isArchived() {\n const raw = this.toPlainObject() as EntryProps\n return checks.isArchived(raw)\n },\n\n /**\n * Recursively collects references of an entry and their descendants\n */\n references: function references(options?: EntryReferenceOptionsProps) {\n const raw = this.toPlainObject() as EntryProps\n return makeRequest({\n entityType: 'Entry',\n action: 'references',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.environment.sys.id,\n entryId: raw.sys.id,\n include: options?.include,\n },\n }).then((response) => wrapEntryCollection(makeRequest, response))\n },\n }\n}\n","import { Stream } from 'stream'\nimport { createRequestConfig } from 'contentful-sdk-core'\nimport type { BasicCursorPaginationOptions, QueryOptions } from './common-types'\nimport { BasicQueryOptions, MakeRequest } from './common-types'\nimport entities from './entities'\nimport type { CreateAppInstallationProps } from './entities/app-installation'\nimport type { CreateAppSignedRequestProps } from './entities/app-signed-request'\nimport type { CreateAppActionCallProps } from './entities/app-action-call'\nimport type {\n AssetFileProp,\n AssetProps,\n CreateAssetFromFilesOptions,\n CreateAssetProps,\n} from './entities/asset'\nimport type { CreateAssetKeyProps } from './entities/asset-key'\nimport type {\n BulkAction,\n BulkActionPayload,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\n\nimport {\n ReleaseActionQueryOptions,\n wrapReleaseAction,\n wrapReleaseActionCollection,\n} from './entities/release-action'\n\nimport {\n wrapRelease,\n ReleasePayload,\n wrapReleaseCollection,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from './entities/release'\n\nimport type { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'\nimport type {\n CreateEntryProps,\n EntryProps,\n EntryReferenceOptionsProps,\n EntryReferenceProps,\n} from './entities/entry'\nimport { EnvironmentProps } from './entities/environment'\nimport type { CreateExtensionProps } from './entities/extension'\nimport type { CreateLocaleProps } from './entities/locale'\nimport { TagVisibility, wrapTag, wrapTagCollection } from './entities/tag'\nimport { wrapUIConfig } from './entities/ui-config'\nimport { wrapUserUIConfig } from './entities/user-ui-config'\nimport { wrapEnvironmentTemplateInstallationCollection } from './entities/environment-template-installation'\nimport { CreateAppAccessTokenProps } from './entities/app-access-token'\n\n/**\n * @private\n */\nexport type ContentfulEnvironmentAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Environment API\n * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter\n * @return {ContentfulSpaceAPI}\n * @private\n */\nexport default function createEnvironmentApi(makeRequest: MakeRequest) {\n const { wrapEnvironment } = entities.environment\n const { wrapContentType, wrapContentTypeCollection } = entities.contentType\n const { wrapEntry, wrapEntryCollection } = entities.entry\n const { wrapAsset, wrapAssetCollection } = entities.asset\n const { wrapAssetKey } = entities.assetKey\n const { wrapLocale, wrapLocaleCollection } = entities.locale\n const { wrapSnapshotCollection } = entities.snapshot\n const { wrapEditorInterface, wrapEditorInterfaceCollection } = entities.editorInterface\n const { wrapUpload } = entities.upload\n const { wrapExtension, wrapExtensionCollection } = entities.extension\n const { wrapAppInstallation, wrapAppInstallationCollection } = entities.appInstallation\n const { wrapAppSignedRequest } = entities.appSignedRequest\n const { wrapAppActionCall } = entities.appActionCall\n const { wrapBulkAction } = entities.bulkAction\n const { wrapAppAccessToken } = entities.appAccessToken\n\n return {\n /**\n * Deletes the environment\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.delete())\n * .then(() => console.log('Environment deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteEnvironment() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Environment',\n action: 'delete',\n params: { spaceId: raw.sys.space.sys.id, environmentId: raw.sys.id },\n }).then(() => {\n // noop\n })\n },\n /**\n * Updates the environment\n * @return Promise for the updated environment.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => {\n * environment.name = 'New name'\n * return environment.update()\n * })\n * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`)\n * .catch(console.error)\n * ```\n */\n update: function updateEnvironment() {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Environment',\n action: 'update',\n params: { spaceId: raw.sys.space.sys.id, environmentId: raw.sys.id },\n payload: raw,\n }).then((data) => wrapEnvironment(makeRequest, data))\n },\n\n /**\n * Creates SDK Entry object (locally) from entry data\n * @param entryData - Entry Data\n * @return Entry\n * @example ```javascript\n * environment.getEntry('entryId').then(entry => {\n *\n * // Build a plainObject in order to make it usable for React (saving in state or redux)\n * const plainObject = entry.toPlainObject();\n *\n * // The entry is being updated in some way as plainObject:\n * const updatedPlainObject = {\n * ...plainObject,\n * fields: {\n * ...plainObject.fields,\n * title: {\n * 'en-US': 'updatedTitle'\n * }\n * }\n * };\n *\n * // Rebuild an sdk object out of the updated plainObject:\n * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject);\n *\n * // Update with help of the sdk method:\n * entryWithMethodsAgain.update();\n *\n * });\n * ```\n **/\n getEntryFromData(entryData: EntryProps) {\n return wrapEntry(makeRequest, entryData)\n },\n /**\n * Creates SDK Asset object (locally) from entry data\n * @param assetData - Asset ID\n * @return Asset\n * @example ```javascript\n * environment.getAsset('asset_id').then(asset => {\n *\n * // Build a plainObject in order to make it usable for React (saving in state or redux)\n * const plainObject = asset.toPlainObject();\n *\n * // The asset is being updated in some way as plainObject:\n * const updatedPlainObject = {\n * ...plainObject,\n * fields: {\n * ...plainObject.fields,\n * title: {\n * 'en-US': 'updatedTitle'\n * }\n * }\n * };\n *\n * // Rebuild an sdk object out of the updated plainObject:\n * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject);\n *\n * // Update with help of the sdk method:\n * assetWithMethodsAgain.update();\n *\n * });\n * ```\n */\n getAssetFromData(assetData: AssetProps) {\n return wrapAsset(makeRequest, assetData)\n },\n\n /**\n *\n * @description Get a BulkAction by ID.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action\n * @param bulkActionId - ID of the BulkAction to fetch\n * @returns - Promise with the BulkAction\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getBulkAction(''))\n * .then((bulkAction) => console.log(bulkAction))\n * ```\n */\n getBulkAction(bulkActionId: string): Promise> {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n bulkActionId,\n },\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to publish all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createPublishBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await client.getSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createPublishBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createPublishBulkAction(payload: BulkActionPublishPayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'publish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to validate all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * action: 'publish',\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: '', linkType: 'Entry' } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createValidateBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await client.getSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createValidateBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createValidateBulkAction(payload: BulkActionValidatePayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'validate',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload.\n * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action\n * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction\n * @returns - Promise with the BulkAction\n *\n * @example\n *\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * entities: {\n * sys: { type: 'Array' }\n * items: [\n * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } }\n * ]\n * }\n * }\n *\n * // Using Thenables\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUnpublishBulkAction(payload))\n * .then((bulkAction) => console.log(bulkAction.waitProcessing()))\n * .catch(console.error)\n *\n * // Using async/await\n * try {\n * const space = await clientgetSpace('')\n * const environment = await space.getEnvironment('')\n * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload)\n *\n * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()`\n * const bulkActionCompleted = await bulkActionInProgress.waitProcessing()\n * console.log(bulkActionCompleted)\n * } catch (error) {\n * console.log(error)\n * }\n * ```\n */\n createUnpublishBulkAction(payload: BulkActionUnpublishPayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'BulkAction',\n action: 'unpublish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapBulkAction(makeRequest, data))\n },\n\n /**\n * Gets a Content Type\n * @param contentTypeId - Content Type ID\n * @return Promise for a Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n getContentType(contentTypeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n /**\n * Gets a collection of Content Types\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Content Types\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentTypes())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getContentTypes(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'ContentType',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapContentTypeCollection(makeRequest, data))\n },\n /**\n * Creates a Content Type\n * @param data - Object representation of the Content Type to be created\n * @return Promise for the newly created Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createContentType({\n * name: 'Blog Post',\n * fields: [\n * {\n * id: 'title',\n * name: 'Title',\n * required: true,\n * localized: false,\n * type: 'Text'\n * }\n * ]\n * }))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n createContentType(data: CreateContentTypeProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapContentType(makeRequest, response))\n },\n /**\n * Creates a Content Type with a custom ID\n * @param contentTypeId - Content Type ID\n * @param data - Object representation of the Content Type to be created\n * @return Promise for the newly created Content Type\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createContentTypeWithId('', {\n * name: 'Blog Post',\n * fields: [\n * {\n * id: 'title',\n * name: 'Title',\n * required: true,\n * localized: false,\n * type: 'Text'\n * }\n * ]\n * }))\n * .then((contentType) => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n createContentTypeWithId(contentTypeId: string, data: CreateContentTypeProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n payload: data,\n }).then((response) => wrapContentType(makeRequest, response))\n },\n\n /**\n * Gets an EditorInterface for a ContentType\n * @param contentTypeId - Content Type ID\n * @return Promise for an EditorInterface\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEditorInterfaceForContentType(''))\n * .then((EditorInterface) => console.log(EditorInterface))\n * .catch(console.error)\n * ```\n */\n getEditorInterfaceForContentType(contentTypeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n },\n }).then((response) => wrapEditorInterface(makeRequest, response))\n },\n\n /**\n * Gets all EditorInterfaces\n * @return Promise for a collection of EditorInterface\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEditorInterfaces())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEditorInterfaces() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((response) => wrapEditorInterfaceCollection(makeRequest, response))\n },\n\n /**\n * Gets an Entry\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param id - Entry ID\n * @param query - Object with search parameters. In this method it's only useful for `locale`.\n * @return Promise for an Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntry(''))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n getEntry(id: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntry(makeRequest, data))\n },\n\n /**\n * Deletes an Entry of this environment\n * @param id - Entry ID\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.deleteEntry(\"4bmLXiuviAZH3jkj5DLRWE\"))\n * .then(() => console.log('Entry deleted.'))\n * .catch(console.error)\n * ```\n */\n deleteEntry(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n },\n }).then(() => {\n // noop\n })\n },\n\n /**\n * Gets a collection of Entries\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Entries\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEntries(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntryCollection(makeRequest, data))\n },\n\n /**\n * Gets a collection of published Entries\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of published Entries\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPublishedEntries(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'getPublished',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapEntryCollection(makeRequest, data))\n },\n\n /**\n * Creates a Entry\n * @param contentTypeId - The Content Type ID of the newly created Entry\n * @param data - Object representation of the Entry to be created\n * @return Promise for the newly created Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createEntry('', {\n * fields: {\n * title: {\n * 'en-US': 'Entry title'\n * }\n * }\n * }))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n createEntry(contentTypeId: string, data: Omit) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId: contentTypeId,\n },\n payload: data,\n }).then((response) => wrapEntry(makeRequest, response))\n },\n\n /**\n * Creates a Entry with a custom ID\n * @param contentTypeId - The Content Type of the newly created Entry\n * @param id - Entry ID\n * @param data - Object representation of the Entry to be created\n * @return Promise for the newly created Entry\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create entry\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createEntryWithId('', '', {\n * fields: {\n * title: {\n * 'en-US': 'Entry title'\n * }\n * }\n * }))\n * .then((entry) => console.log(entry))\n * .catch(console.error)\n * ```\n */\n createEntryWithId(contentTypeId: string, id: string, data: CreateEntryProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: id,\n contentTypeId: contentTypeId,\n },\n payload: data,\n }).then((response) => wrapEntry(makeRequest, response))\n },\n\n /**\n * Get entry references\n * @param entryId - Entry ID\n * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum\n * @returns Promise of Entry references\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: '\n * })\n *\n * // Get entry references\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntryReferences('', {include: number}))\n * .then((entry) => console.log(entry.includes))\n * // or\n * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number}))\n * .catch(console.error)\n * ```\n */\n getEntryReferences(entryId: string, options?: EntryReferenceOptionsProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Entry',\n action: 'references',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId: entryId,\n include: options?.include,\n },\n }).then((response) => wrapEntryCollection(makeRequest, response) as EntryReferenceProps)\n },\n\n /**\n * Gets an Asset\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param id - Asset ID\n * @param query - Object with search parameters. In this method it's only useful for `locale`.\n * @return Promise for an Asset\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n getAsset(id: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n assetId: id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n /**\n * Gets a collection of Assets\n * Warning: if you are using the select operator, when saving, any field that was not selected will be removed\n * from your entry in the backend\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Assets\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAssets())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAssets(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAssetCollection(makeRequest, data))\n },\n /**\n * Gets a collection of published Assets\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of published Assets\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getPublishedAssets())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPublishedAssets(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'getPublished',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapAssetCollection(makeRequest, data))\n },\n /**\n * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create asset\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAsset({\n * fields: {\n * title: {\n * 'en-US': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }\n * }))\n * .then((asset) => asset.processForLocale(\"en-US\")) // OR asset.processForAllLocales()\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAsset(data: CreateAssetProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param id - Asset ID\n * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create asset\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.process())\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAssetWithId(id: string, data: CreateAssetProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n assetId: id,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.\n * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished.\n * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream.\n * @return Promise for the newly created Asset\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetFromFiles({\n * fields: {\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'filename_english.jpg',\n * file: createReadStream('path/to/filename_english.jpg')\n * },\n * 'de-DE': {\n * contentType: 'image/svg+xml',\n * fileName: 'filename_german.svg',\n * file: ''\n * }\n * }\n * }\n * }))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n createAssetFromFiles(data: Omit, options?: CreateAssetFromFilesOptions) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Asset',\n action: 'createFromFiles',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadTimeout: options?.uploadTimeout,\n },\n payload: data,\n }).then((response) => wrapAsset(makeRequest, response))\n },\n /**\n * Creates an asset key for signing asset URLs (Embargoed Assets)\n * @param data Object with request payload\n * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling)\n * @return Promise for the newly created AssetKey\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create assetKey\n * now = () => Math.floor(Date.now() / 1000)\n * const withExpiryIn1Hour = () => now() + 1 * 60 * 60\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() }))\n * .then((policy, secret) => console.log({ policy, secret }))\n * .catch(console.error)\n * ```\n */\n createAssetKey(payload: CreateAssetKeyProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AssetKey',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapAssetKey(makeRequest, data))\n },\n\n /**\n * Gets an Upload\n * @param id - Upload ID\n * @return Promise for an Upload\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * const uploadStream = createReadStream('path/to/filename_english.jpg')\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUpload('')\n * .then((upload) => console.log(upload))\n * .catch(console.error)\n */\n getUpload(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Upload',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadId: id,\n },\n }).then((data) => wrapUpload(makeRequest, data))\n },\n\n /**\n * Creates a Upload.\n * @param data - Object with file information.\n * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream.\n * @return Upload object containing information about the uploaded file.\n * @example ```javascript\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * const uploadStream = createReadStream('path/to/filename_english.jpg')\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUpload({file: uploadStream})\n * .then((upload) => console.log(upload))\n * .catch(console.error)\n * ```\n */\n createUpload: function createUpload(data: { file: string | ArrayBuffer | Stream }) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Upload',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((data) => wrapUpload(makeRequest, data))\n },\n /**\n * Gets a Locale\n * @param localeId - Locale ID\n * @return Promise for an Locale\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => console.log(locale))\n * .catch(console.error)\n * ```\n */\n getLocale(localeId: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n localeId,\n },\n }).then((data) => wrapLocale(makeRequest, data))\n },\n\n /**\n * Gets a collection of Locales\n * @return Promise for a collection of Locales\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocales())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getLocales() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapLocaleCollection(makeRequest, data))\n },\n /**\n * Creates a Locale\n * @param data - Object representation of the Locale to be created\n * @return Promise for the newly created Locale\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Create locale\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createLocale({\n * name: 'German (Austria)',\n * code: 'de-AT',\n * fallbackCode: 'de-DE',\n * optional: true\n * }))\n * .then((locale) => console.log(locale))\n * .catch(console.error)\n * ```\n */\n createLocale(data: CreateLocaleProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Locale',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapLocale(makeRequest, response))\n },\n /**\n * Gets an UI Extension\n * @param id - Extension ID\n * @return Promise for an UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n getUiExtension(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n extensionId: id,\n },\n }).then((data) => wrapExtension(makeRequest, data))\n },\n /**\n * Gets a collection of UI Extension\n * @return Promise for a collection of UI Extensions\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtensions()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getUiExtensions() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((response) => wrapExtensionCollection(makeRequest, response))\n },\n /**\n * Creates a UI Extension\n * @param data - Object representation of the UI Extension to be created\n * @return Promise for the newly created UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUiExtension({\n * extension: {\n * name: 'My awesome extension',\n * src: 'https://example.com/my',\n * fieldTypes: [\n * {\n * type: 'Symbol'\n * },\n * {\n * type: 'Text'\n * }\n * ],\n * sidebar: false\n * }\n * }))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n createUiExtension(data: CreateExtensionProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n /**\n * Creates a UI Extension with a custom ID\n * @param id - Extension ID\n * @param data - Object representation of the UI Extension to be created\n * @return Promise for the newly created UI Extension\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createUiExtensionWithId('', {\n * extension: {\n * name: 'My awesome extension',\n * src: 'https://example.com/my',\n * fieldTypes: [\n * {\n * type: 'Symbol'\n * },\n * {\n * type: 'Text'\n * }\n * ],\n * sidebar: false\n * }\n * }))\n * .then((extension) => console.log(extension))\n * .catch(console.error)\n * ```\n */\n createUiExtensionWithId(id: string, data: CreateExtensionProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Extension',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n extensionId: id,\n },\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n\n /**\n * Creates an App Installation\n * @param appDefinitionId - AppDefinition ID\n * @param data - AppInstallation data\n * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app)\n * @return Promise for an App Installation\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppInstallation('', {\n * parameters: {\n * someParameter: someValue\n * }\n * })\n * .then((appInstallation) => console.log(appInstallation))\n * .catch(console.error)\n * ```\n */\n createAppInstallation(\n appDefinitionId: string,\n data: CreateAppInstallationProps,\n { acceptAllTerms }: { acceptAllTerms?: boolean } = {}\n ) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'upsert',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n acceptAllTerms,\n },\n payload: data,\n }).then((payload) => wrapAppInstallation(makeRequest, payload))\n },\n /**\n * Gets an App Installation\n * @param id - AppDefintion ID\n * @return Promise for an App Installation\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => console.log(appInstallation))\n * .catch(console.error)\n * ```\n */\n getAppInstallation(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId: id,\n },\n }).then((data) => wrapAppInstallation(makeRequest, data))\n },\n /**\n * Gets a collection of App Installation\n * @return Promise for a collection of App Installations\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallations()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppInstallations() {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapAppInstallationCollection(makeRequest, data))\n },\n /**\n * Creates an app action call\n * @param appDefinitionId - AppDefinition ID\n * @param appActionId - action ID\n * @param data - App Action Call data\n * @return Promise for an App Action Call\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * headers: {\n * 'x-my-header': 'some-value'\n * },\n * body: {\n * 'some-body-value': true\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppActionCall('', '', data)\n * .then((appActionCall) => console.log(appActionCall))\n * .catch(console.error)\n * ```\n */\n createAppActionCall(\n appDefinitionId: string,\n appActionId: string,\n data: CreateAppActionCallProps\n ) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n appActionId,\n },\n payload: data,\n }).then((payload) => wrapAppActionCall(makeRequest, payload))\n },\n /**\n * Creates an app signed request\n * @param appDefinitionId - AppDefinition ID\n * @param data - SignedRequest data\n * @return Promise for a Signed Request\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * method: 'POST',\n * path: '/request_path',\n * body: '{ \"key\": \"data\" }',\n * headers: {\n * 'x-my-header': 'some-value'\n * },\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppSignedRequest('', data)\n * .then((signedRequest) => console.log(signedRequest))\n * .catch(console.error)\n * ```\n */\n createAppSignedRequest(appDefinitionId: string, data: CreateAppSignedRequestProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppSignedRequest',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n },\n payload: data,\n }).then((payload) => wrapAppSignedRequest(makeRequest, payload))\n },\n /**\n * Creates an app access token\n * @param appDefinitionId - AppDefinition ID\n * @param data - Json Web Token\n * @return Promise for an app access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const { sign } = require('jsonwebtoken')\n *\n * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' }\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const data = {\n * jwt: sign({}, '', signOptions)\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAppAccessToken('', data)\n * .then((appAccessToken) => console.log(appAccessToken))\n * .catch(console.error)\n * ```\n */\n createAppAccessToken(appDefinitionId: string, data: CreateAppAccessTokenProps) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'AppAccessToken',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n appDefinitionId,\n },\n payload: data,\n }).then((payload) => wrapAppAccessToken(makeRequest, payload))\n },\n /**\n * Gets all snapshots of an entry\n * @func getEntrySnapshots\n * @param entryId - Entry ID\n * @param query - query additional query paramaters\n * @return Promise for a collection of Entry Snapshots\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEntrySnapshots(''))\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getEntrySnapshots(entryId: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForEntry',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n entryId,\n query,\n },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n /**\n * Gets all snapshots of a contentType\n * @func getContentTypeSnapshots\n * @param contentTypeId - Content Type ID\n * @param query - query additional query paramaters\n * @return Promise for a collection of Content Type Snapshots\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentTypeSnapshots(''))\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getContentTypeSnapshots(contentTypeId: string, query: QueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForContentType',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n contentTypeId,\n query,\n },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n createTag(id: string, name: string, visibility?: TagVisibility) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n tagId: id,\n },\n payload: {\n name,\n sys: { visibility: visibility ?? 'private' },\n },\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n getTags(query: BasicQueryOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentProps\n return makeRequest({\n entityType: 'Tag',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTagCollection(makeRequest, data))\n },\n\n getTag(id: string) {\n const raw = this.toPlainObject() as EnvironmentProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n tagId: id,\n },\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n /**\n * Retrieves a Release by ID\n * @param releaseId\n * @returns Promise containing a wrapped Release\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getRelease(''))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n getRelease(releaseId: string) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Gets a Collection of Releases,\n * @param {ReleaseQueryOptions} query filtering options for the collection result\n * @returns Promise containing a wrapped Release Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' }))\n * .then((releases) => console.log(releases))\n * .catch(console.error)\n * ```\n */\n getReleases(query?: ReleaseQueryOptions) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'query',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query,\n },\n }).then((data) => wrapReleaseCollection(makeRequest, data))\n },\n\n /**\n * Creates a new Release with the entities and title in the payload\n * @param payload Object containing the payload in order to create a Release\n * @returns Promise containing a wrapped Release, that has other helper methods within.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const payload = {\n * title: 'My Release',\n * entities: {\n * sys: { type: 'Array' },\n * items: [\n * { sys: { linkType: 'Entry', type: 'Link', id: '' } }\n * ]\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createRelease(payload))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n createRelease(payload: ReleasePayload) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'create',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n payload,\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Updates a Release and replaces all the properties.\n * @param {object} options,\n * @param options.releaseId the ID of the release\n * @param options.payload the payload to be updated in the Release\n * @param options.version Release sys.version that to be updated\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n *\n * const payload = {\n * title: \"Updated Release title\",\n * entities: {\n * sys: { type: 'Array' },\n * items: [\n * { sys: { linkType: 'Entry', type: 'Link', id: '' } }\n * ]\n * }\n * }\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } ))\n * .then((release) => console.log(release))\n * .catch(console.error)\n * ```\n */\n updateRelease({\n releaseId,\n payload,\n version,\n }: {\n releaseId: string\n payload: ReleasePayload\n version: number\n }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'update',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n payload,\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Deletes a Release by ID - does not delete any entities.\n * @param releaseId the ID of the release\n *\n * @returns Promise containing a wrapped Release, that has helper methods within.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.deleteRelease('')\n * .catch(console.error)\n * ```\n */\n deleteRelease(releaseId: string) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n })\n },\n\n /**\n * Publishes all Entities contained in a Release.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be published\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n publishRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'publish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Unpublishes all Entities contained in a Release.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be published\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n unpublishRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'unpublish',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Validates all Entities contained in a Release against an action (publish or unpublish)\n * @param options.releaseId the ID of the release\n * @param options.payload (optional) the type of action to be validated against\n *\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } }))\n * .catch(console.error)\n * ```\n */\n validateRelease({\n releaseId,\n payload,\n }: {\n releaseId: string\n payload?: ReleaseValidatePayload\n }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'validate',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n payload,\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc).\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be archived\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n archiveRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'archive',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Unarchives a previously archived Release - this enables the release to be published, unpublished etc.\n * @param options.releaseId the ID of the release\n * @param options.version the version of the release that is to be unarchived\n * @returns Promise containing a wrapped Release, that has helper methods within.\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 }))\n * .catch(console.error)\n * ```\n */\n unarchiveRelease({ releaseId, version }: { releaseId: string; version: number }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'Release',\n action: 'unarchive',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n version,\n },\n }).then((data) => wrapRelease(makeRequest, data))\n },\n\n /**\n * Retrieves a ReleaseAction by ID\n * @param params.releaseId The ID of a Release\n * @param params.actionId The ID of a Release Action\n * @returns Promise containing a wrapped ReleaseAction\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' }))\n * .then((releaseAction) => console.log(releaseAction))\n * .catch(console.error)\n * ```\n */\n getReleaseAction({ actionId, releaseId }: { actionId: string; releaseId: string }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'get',\n params: {\n actionId,\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n releaseId,\n },\n }).then((data) => wrapReleaseAction(makeRequest, data))\n },\n\n /**\n * Gets a Collection of ReleaseActions\n * @param {string} params.releaseId ID of the Release to fetch the actions from\n * @param {ReleaseQueryOptions} params.query filtering options for the collection result\n * @returns Promise containing a wrapped ReleaseAction Collection\n *\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } }))\n * .then((releaseActions) => console.log(releaseActions))\n * .catch(console.error)\n * ```\n */\n getReleaseActions({ query }: { query?: ReleaseActionQueryOptions }) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'getMany',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n query,\n },\n }).then((data) => wrapReleaseActionCollection(makeRequest, data))\n },\n\n async getUIConfig() {\n const raw: EnvironmentProps = this.toPlainObject()\n\n const data = await makeRequest({\n entityType: 'UIConfig',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n })\n return wrapUIConfig(makeRequest, data)\n },\n\n async getUserUIConfig() {\n const raw: EnvironmentProps = this.toPlainObject()\n\n const data = await makeRequest({\n entityType: 'UserUIConfig',\n action: 'get',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n })\n return wrapUserUIConfig(makeRequest, data)\n },\n\n /**\n * Gets a collection of all environment template installations in the environment for a given template\n * @param environmentTemplateId - Environment template ID to return installations for\n * @param [options.installationId] - Installation ID to filter for a specific installation\n * @return Promise for a collection of EnvironmentTemplateInstallations\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getEnvironmentTemplateInstallations(''))\n * .then((installations) => console.log(installations.items))\n * .catch(console.error)\n * ```\n */\n async getEnvironmentTemplateInstallations(\n environmentTemplateId: string,\n { installationId, ...query }: BasicCursorPaginationOptions & { installationId?: string } = {}\n ) {\n const raw: EnvironmentProps = this.toPlainObject()\n\n return makeRequest({\n entityType: 'EnvironmentTemplateInstallation',\n action: 'getForEnvironment',\n params: {\n environmentTemplateId,\n ...(installationId && { installationId }),\n query: { ...createRequestConfig({ query }).params },\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentTemplateInstallationCollection(makeRequest, data))\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport { BasicCursorPaginationOptions, MakeRequest } from './common-types'\nimport entities from './entities'\nimport { EnvironmentTemplateProps } from './entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n ValidateEnvironmentTemplateInstallationProps,\n} from './entities/environment-template-installation'\n\nexport type ContentfulEnvironmentTemplateApi = ReturnType\n\nexport function createEnvironmentTemplateApi(makeRequest: MakeRequest, organizationId: string) {\n const { wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection } =\n entities.environmentTemplate\n\n const { wrapEnvironmentTemplateInstallationCollection } = entities.environmentTemplateInstallation\n\n return {\n /**\n * Updates a environment template\n * @return Promise for new version of the template\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => {\n * environmentTemplate.name = 'New name'\n * return environmentTemplate.update()\n * })\n * .then((environmentTemplate) =>\n * console.log(`Environment template ${environmentTemplate.sys.id} renamed.`)\n * ).catch(console.error)\n * ```\n */\n update: function updateEnvironmentTemplate() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'update',\n params: { organizationId, environmentTemplateId: raw.sys.id },\n payload: raw,\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Updates environment template version data\n * @param version.versionName - Name of the environment template version\n * @param version.versionDescription - Description of the environment template version\n * @return Promise for an updated EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => {\n * return environmentTemplate.updateVersion({\n * versionName: 'New Name',\n * versionDescription: 'New Description',\n * })\n * })\n * .then((environmentTemplate) =>\n * console.log(`Environment template version ${environmentTemplate.sys.id} renamed.`)\n * ).catch(console.error)\n * ```\n */\n updateVersion: function updateEnvironmentTemplateVersion({\n versionName,\n versionDescription,\n }: {\n versionName: string\n versionDescription: string\n }) {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'versionUpdate',\n params: { organizationId, environmentTemplateId: raw.sys.id, version: raw.sys.version },\n payload: { versionName, versionDescription },\n }).then((data) => wrapEnvironmentTemplate(makeRequest, data, organizationId))\n },\n /**\n * Deletes the environment template\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.delete())\n * .then(() => console.log('Environment template deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteEnvironmentTemplate() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'delete',\n params: { organizationId, environmentTemplateId: raw.sys.id },\n })\n },\n /**\n * Gets a collection of all versions for the environment template\n * @return Promise for a EnvironmentTemplate\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.getVersions())\n * .then((environmentTemplateVersions) => console.log(environmentTemplateVersions.items))\n * .catch(console.error)\n * ```\n */\n getVersions: function getEnvironmentTemplateVersions() {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'versions',\n params: {\n organizationId,\n environmentTemplateId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId))\n },\n /**\n * Gets a collection of all installations for the environment template\n * @param [installationParams.spaceId] - Space ID to filter installations by space and environment\n * @param [installationParams.environmentId] - Environment ID to filter installations by space and environment\n * @return Promise for a collection of EnvironmentTemplateInstallations\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.getInstallations())\n * .then((environmentTemplateInstallations) =>\n * console.log(environmentTemplateInstallations.items)\n * )\n * .catch(console.error)\n * ```\n */\n getInstallations: function getEnvironmentTemplateInstallations({\n spaceId,\n environmentId,\n ...query\n }: {\n spaceId?: string\n environmentId?: string\n } & BasicCursorPaginationOptions = {}) {\n const raw = this.toPlainObject() as EnvironmentTemplateProps\n return makeRequest({\n entityType: 'EnvironmentTemplateInstallation',\n action: 'getMany',\n params: {\n organizationId,\n environmentTemplateId: raw.sys.id,\n query: { ...createRequestConfig({ query }).params },\n spaceId,\n environmentId,\n },\n }).then((data) => wrapEnvironmentTemplateInstallationCollection(makeRequest, data))\n },\n /**\n * Validates an environment template against a given space and environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @param [params.version] - Version of the template\n * @param [params.installation.takeover] - Already existing Content types to takeover in the target environment\n * @param [params.changeSet] - Change set which should be applied\n * @return Promise for a EnvironmentTemplateValidation\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.validate({\n * spaceId: '',\n * environmentId: '',\n * version: ,\n * }))\n * .then((validationResult) => console.log(validationResult))\n * .catch(console.error)\n * ```\n */\n validate: function validateEnvironmentTemplate({\n spaceId,\n environmentId,\n version,\n takeover,\n changeSet,\n }: {\n spaceId: string\n environmentId: string\n version?: number\n } & ValidateEnvironmentTemplateInstallationProps) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'validate',\n params: {\n spaceId,\n version,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n payload: {\n ...(takeover && { takeover }),\n ...(changeSet && { changeSet }),\n },\n })\n },\n /**\n * Installs a template against a given space and environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @param params.installation.version- Template version which should be installed\n * @param [params.installation.takeover] - Already existing Content types tp takeover in the target environment\n * @param [params.changeSet] - Change set which should be applied\n * @return Promise for a EnvironmentTemplateInstallation\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then((environmentTemplate) => environmentTemplate.validate({\n * spaceId: '',\n * environmentId: '',\n * installation: {\n * version: ,\n * }\n * }))\n * .then((installation) => console.log(installation))\n * .catch(console.error)\n * ```\n */\n install: function installEnvironmentTemplate({\n spaceId,\n environmentId,\n installation,\n }: {\n spaceId: string\n environmentId: string\n installation: CreateEnvironmentTemplateInstallationProps\n }) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'install',\n params: {\n spaceId,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n payload: installation,\n })\n },\n /**\n * Disconnects the template from a given environment\n * @param params.spaceId - Space ID where the template should be installed into\n * @param params.environmentId - Environment ID where the template should be installed into\n * @return Promise for the disconnection with no data\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getEnvironmentTemplate('', '')\n * .then(environmentTemplate) => environmentTemplate.disconnected())\n * .then(() => console.log('Template disconnected'))\n * .catch(console.error)\n * ```\n */\n disconnect: function disconnectEnvironmentTemplate({\n spaceId,\n environmentId,\n }: {\n spaceId: string\n environmentId: string\n }) {\n const raw: EnvironmentTemplateProps = this.toPlainObject()\n return makeRequest({\n entityType: 'EnvironmentTemplate',\n action: 'disconnect',\n params: {\n spaceId,\n environmentId,\n environmentTemplateId: raw.sys.id,\n },\n })\n },\n }\n}\n","import { createRequestConfig } from 'contentful-sdk-core'\nimport entities from './entities'\nimport { Stream } from 'stream'\nimport { CreateTeamMembershipProps } from './entities/team-membership'\nimport { CreateTeamProps } from './entities/team'\nimport { CreateOrganizationInvitationProps } from './entities/organization-invitation'\nimport { BasicQueryOptions, MakeRequest, QueryOptions, QueryParams } from './common-types'\nimport { CreateAppDefinitionProps } from './entities/app-definition'\nimport { CreateAppActionProps } from './entities/app-action'\nimport { CreateAppSigningSecretProps } from './entities/app-signing-secret'\nimport { CreateAppEventSubscriptionProps } from './entities/app-event-subscription'\nimport { CreateAppKeyProps } from './entities/app-key'\nimport { CreateAppDetailsProps } from './entities/app-details'\nimport { OrganizationProp } from './entities/organization'\n\n/**\n * @private\n */\nexport type ContentfulOrganizationAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Organization API\n * @param {MakeRequest} makeRequest - function to make requests via an adapter\n * @return {ContentfulOrganizationAPI}\n * @private\n */\nexport default function createOrganizationApi(makeRequest: MakeRequest) {\n const { wrapAppDefinition, wrapAppDefinitionCollection } = entities.appDefinition\n const { wrapUser, wrapUserCollection } = entities.user\n const { wrapOrganizationMembership, wrapOrganizationMembershipCollection } =\n entities.organizationMembership\n const { wrapTeamMembership, wrapTeamMembershipCollection } = entities.teamMembership\n const { wrapTeamSpaceMembership, wrapTeamSpaceMembershipCollection } =\n entities.teamSpaceMembership\n const { wrapTeam, wrapTeamCollection } = entities.team\n const { wrapSpaceMembership, wrapSpaceMembershipCollection } = entities.spaceMembership\n const { wrapOrganizationInvitation } = entities.organizationInvitation\n const { wrapAppUpload } = entities.appUpload\n const { wrapAppSigningSecret } = entities.appSigningSecret\n const { wrapAppEventSubscription } = entities.appEventSubscription\n const { wrapAppKey, wrapAppKeyCollection } = entities.appKey\n const { wrapAppDetails } = entities.appDetails\n const { wrapAppAction, wrapAppActionCollection } = entities.appAction\n const { wrapRoleCollection } = entities.role\n const { wrapSpaceCollection } = entities.space\n\n return {\n /**\n * Gets a collection of spaces in the organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Spaces in the organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getSpaces())\n * .then((spaces) => console.log(spaces))\n * .catch(console.error)\n * ```\n */\n getSpaces(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'Space',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceCollection(makeRequest, data))\n },\n\n /**\n * Gets a User\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getUser('id'))\n * .then((user) => console.log(user))\n * .catch(console.error)\n * ```\n */\n getUser(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'User',\n action: 'getForOrganization',\n params: { organizationId: raw.sys.id, userId: id },\n }).then((data) => wrapUser(makeRequest, data))\n },\n /**\n * Gets a collection of Users in organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Users in organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getUsers())\n * .then((users) => console.log(users))\n * .catch(console.error)\n * ```\n */\n getUsers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'User',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapUserCollection(makeRequest, data))\n },\n /**\n * Gets an Organization Membership\n * @param id - Organization Membership ID\n * @return Promise for an Organization Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => console.log(organizationMembership))\n * .catch(console.error)\n * ```\n */\n getOrganizationMembership(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n const organizationId = raw.sys.id\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'get',\n params: {\n organizationId,\n organizationMembershipId: id,\n },\n }).then((data) => wrapOrganizationMembership(makeRequest, data, organizationId))\n },\n /**\n * Gets a collection of Organization Memberships\n * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Organization Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n\n getOrganizationMemberships(params: QueryParams = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n ...params,\n },\n }).then((data) => wrapOrganizationMembershipCollection(makeRequest, data, raw.sys.id))\n },\n /**\n * Creates a Team\n * @param data representation of the Team to be created\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createTeam({\n * name: 'new team',\n * description: 'new team description'\n * }))\n * .then((team) => console.log(team))\n * .catch(console.error)\n * ```\n */\n createTeam(data: CreateTeamProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: data,\n }).then((data) => wrapTeam(makeRequest, data))\n },\n /**\n * Gets an Team\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('orgId')\n * .then((organization) => organization.getTeam('teamId'))\n * .then((team) => console.log(team))\n * .catch(console.error)\n * ```\n */\n getTeam(teamId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'get',\n params: { organizationId: raw.sys.id, teamId },\n }).then((data) => wrapTeam(makeRequest, data))\n },\n /**\n * Gets all Teams in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('orgId')\n * .then((organization) => organization.getTeams())\n * .then((teams) => console.log(teams))\n * .catch(console.error)\n * ```\n */\n getTeams(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'Team',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamCollection(makeRequest, data))\n },\n /**\n * Creates a Team membership\n * @param teamId - Id of the team the membership will be created in\n * @param data - Object representation of the Team Membership to be created\n * @return Promise for the newly created TeamMembership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((org) => org.createTeamMembership('teamId', {\n * admin: true,\n * organizationMembershipId: 'organizationMembershipId'\n * }))\n * .then((teamMembership) => console.log(teamMembership))\n * .catch(console.error)\n * ```\n */\n createTeamMembership(teamId: string, data: CreateTeamMembershipProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'create',\n params: { organizationId: raw.sys.id, teamId },\n payload: data,\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n /**\n * Gets an Team Membership from the team with given teamId\n * @return Promise for an Team Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id'))\n * .then((teamMembership) => console.log(teamMembership))\n * .catch(console.error)\n * ```\n */\n getTeamMembership(teamId: string, teamMembershipId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'get',\n params: { organizationId: raw.sys.id, teamId, teamMembershipId },\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n /**\n * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization.\n * @return Promise for a Team Membership Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamMemberships('teamId'))\n * .then((teamMemberships) => console.log(teamMemberships))\n * .catch(console.error)\n * ```\n */\n getTeamMemberships(opts: { teamId?: string; query?: QueryOptions } = {}) {\n const { teamId, query = {} } = opts\n const raw = this.toPlainObject() as OrganizationProp\n\n if (teamId) {\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'getManyForTeam',\n params: {\n organizationId: raw.sys.id,\n teamId,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamMembershipCollection(makeRequest, data))\n }\n\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamMembershipCollection(makeRequest, data))\n },\n\n /**\n * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization.\n * @return Promise for a Team Space Membership Collection\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamSpaceMemberships('teamId'))\n * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMemberships(opts: { teamId?: string; query?: QueryOptions } = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query: opts.query || {} }).params,\n teamId: opts.teamId,\n },\n }).then((data) => wrapTeamSpaceMembershipCollection(makeRequest, data))\n },\n\n /**\n * Get a Team Space Membership with given teamSpaceMembershipId\n * @return Promise for a Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId'))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)]\n * ```\n */\n getTeamSpaceMembership(teamSpaceMembershipId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getForOrganization',\n params: {\n organizationId: raw.sys.id,\n teamSpaceMembershipId,\n },\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n /**\n * Gets an Space Membership in Organization\n * @param id - Organiztion Space Membership ID\n * @return Promise for a Space Membership in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id'))\n * .then((organizationMembership) => console.log(organizationMembership))\n * .catch(console.error)\n * ```\n */\n getOrganizationSpaceMembership(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getForOrganization',\n params: {\n organizationId: raw.sys.id,\n spaceMembershipId: id,\n },\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n /**\n * Gets a collection Space Memberships in organization\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a Space Membership collection across all spaces in the organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getOrganizationSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getManyForOrganization',\n params: {\n organizationId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMembershipCollection(makeRequest, data))\n },\n /**\n * Gets an Invitation in Organization\n * @return Promise for a OrganizationInvitation in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.getOrganizationInvitation('invitation_id'))\n * .then((invitation) => console.log(invitation))\n * .catch(console.error)\n * ```\n */\n getOrganizationInvitation(invitationId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationInvitation',\n action: 'get',\n params: {\n organizationId: raw.sys.id,\n invitationId,\n },\n }).then((data) => wrapOrganizationInvitation(makeRequest, data))\n },\n /**\n * Create an Invitation in Organization\n * @return Promise for a OrganizationInvitation in an organization\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((organization) => organization.createOrganizationInvitation({\n * email: 'user.email@example.com'\n * firstName: 'User First Name'\n * lastName: 'User Last Name'\n * role: 'developer'\n * })\n * .catch(console.error)\n * ```\n */\n createOrganizationInvitation(data: CreateOrganizationInvitationProps) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'OrganizationInvitation',\n action: 'create',\n params: {\n organizationId: raw.sys.id,\n },\n payload: data,\n }).then((data) => wrapOrganizationInvitation(makeRequest, data))\n },\n /**\n * Gets a collection of Roles\n * @return Promise for a collection of Roles\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getRoles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getRoles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'Role',\n action: 'getManyForOrganization',\n params: { organizationId: raw.sys.id, query: createRequestConfig({ query }).params },\n }).then((data) => wrapRoleCollection(makeRequest, data))\n },\n /**\n * Creates an app definition\n * @param Object representation of the App Definition to be created\n * @return Promise for the newly created AppDefinition\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppDefinition({\n * name: 'Example app',\n * locations: [{ location: 'app-config' }],\n * src: \"http://my-app-host.com/my-app\"\n * }))\n * .then((appDefinition) => console.log(appDefinition))\n * .catch(console.error)\n * ```\n */\n createAppDefinition(data: CreateAppDefinitionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: data,\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n /**\n * Gets all app definitions\n * @return Promise for a collection of App Definitions\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinitions())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getAppDefinitions(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'getMany',\n params: { organizationId: raw.sys.id, query: query },\n }).then((data) => wrapAppDefinitionCollection(makeRequest, data))\n },\n\n /**\n * Gets an app definition\n * @return Promise for an App Definition\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => console.log(appDefinition))\n * .catch(console.error)\n * ```\n */\n getAppDefinition(id: string) {\n const raw = this.toPlainObject() as OrganizationProp\n return makeRequest({\n entityType: 'AppDefinition',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId: id },\n }).then((data) => wrapAppDefinition(makeRequest, data))\n },\n\n /**\n * Gets an app upload\n * @return Promise for an App Upload\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppUpload(''))\n * .then((appUpload) => console.log(appUpload))\n * .catch(console.error)\n * ```\n */\n getAppUpload(appUploadId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppUpload',\n action: 'get',\n params: { organizationId: raw.sys.id, appUploadId },\n }).then((data) => wrapAppUpload(makeRequest, data))\n },\n\n /**\n * Creates an app upload\n * @return Promise for an App Upload\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppUpload('some_zip_file'))\n * .then((appUpload) => console.log(appUpload))\n * .catch(console.error)\n * ```\n */\n createAppUpload(file: string | ArrayBuffer | Stream) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppUpload',\n action: 'create',\n params: { organizationId: raw.sys.id },\n payload: { file },\n }).then((data) => wrapAppUpload(makeRequest, data))\n },\n /**\n * Creates or updates an app signing secret\n * @return Promise for an App SigningSecret\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' }))\n * .then((appSigningSecret) => console.log(appSigningSecret))\n * .catch(console.error)\n * ```\n */\n upsertAppSigningSecret(appDefinitionId: string, data: CreateAppSigningSecretProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppSigningSecret(makeRequest, payload))\n },\n /**\n * Gets an app signing secret\n * @return Promise for an App SigningSecret\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppSigningSecret('app_definition_id'))\n * .then((appSigningSecret) => console.log(appSigningSecret))\n * .catch(console.error)\n * ```\n */\n getAppSigningSecret(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppSigningSecret(makeRequest, payload))\n },\n /**\n * Deletes an app signing secret\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppSigningSecret('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppSigningSecret(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n upsertAppEventSubscription(appDefinitionId: string, data: CreateAppEventSubscriptionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppEventSubscription(makeRequest, payload))\n },\n /**\n * Gets an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppEventSubscription('app_definition_id'))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n getAppEventSubscription(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppEventSubscription(makeRequest, payload))\n },\n /**\n * Deletes the current App Event Subscription for the given App\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppEventSubscription('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppEventSubscription(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app event subscription\n * @return Promise for an App Event Subscription\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // generate a new private key\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n *\n * // or use an existing JSON Web Key\n * client.getOrganization('')\n * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' }))\n * .then((appEventSubscription) => console.log(appEventSubscription))\n * .catch(console.error)\n * ```\n */\n createAppKey(appDefinitionId: string, data: CreateAppKeyProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'create',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppKey(makeRequest, payload))\n },\n /**\n * Gets an app key by fingerprint\n * @return Promise for an App Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppKey('app_definition_id', 'fingerprint'))\n * .then((appKey) => console.log(appKey))\n * .catch(console.error)\n * ```\n */\n getAppKey(appDefinitionId: string, fingerprint: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId, fingerprint },\n }).then((payload) => wrapAppKey(makeRequest, payload))\n },\n /**\n * Gets all keys for the given app\n * @return Promise for an array of App Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // with default pagination\n * client.getOrganization('')\n * .then((org) => org.getAppKeys('app_definition_id'))\n * .then((appKeys) => console.log(appKeys))\n * .catch(console.error)\n *\n * // with explicit pagination\n * client.getOrganization('')\n * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' }))\n * .then((appKeys) => console.log(appKeys))\n * .catch(console.error)\n * ```\n */\n getAppKeys(appDefinitionId: string, query: BasicQueryOptions = {}) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'getMany',\n params: {\n organizationId: raw.sys.id,\n appDefinitionId,\n query: createRequestConfig({ query }).params,\n },\n }).then((payload) => wrapAppKeyCollection(makeRequest, payload))\n },\n /**\n * Deletes an app key by fingerprint.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppKey(appDefinitionId: string, fingerprint: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppKey',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId, fingerprint },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates or updates an app details entity\n * @return Promise for an App Details\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.upsertAppDetails('app_definition_id',\n * { icon: { value: 'base_64_image', type: 'base64' }}\n * ))\n * .then((appDetails) => console.log(appDetails))\n * .catch(console.error)\n * ```\n */\n upsertAppDetails(appDefinitionId: string, data: CreateAppDetailsProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'upsert',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppDetails(makeRequest, payload))\n },\n /**\n * Gets an app details entity\n * @return Promise for an App Details\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDetails('app_definition_id'))\n * .then((appDetails) => console.log(appDetails))\n * .catch(console.error)\n * ```\n */\n getAppDetails(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppDetails(makeRequest, payload))\n },\n /**\n * Deletes an app details entity.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppDetails('app_definition_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppDetails(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppDetails',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then(() => {\n /* noop*/\n })\n },\n /**\n * Creates an app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.createAppAction('app_definition_id', {\n * type: 'endpoint',\n * name: 'my nice new app action',\n * url: 'https://www.somewhere.com/action'\n * }))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n createAppAction(appDefinitionId: string, data: CreateAppActionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'create',\n params: { organizationId: raw.sys.id, appDefinitionId },\n payload: data,\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Updates an existing app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', {\n * type: 'endpoint',\n * name: 'my nice updated app action',\n * url: 'https://www.somewhere-else.com/action'\n * }))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n updateAppAction(appDefinitionId: string, appActionId: string, data: CreateAppActionProps) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'update',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n payload: data,\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Deletes an app action entity.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id'))\n * .then((result) => console.log(result))\n * .catch(console.error)\n * ```\n */\n deleteAppAction(appDefinitionId: string, appActionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'delete',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n }).then((payload) => {\n /* noop*/\n })\n },\n /**\n * Gets an existing app action entity.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppAction('app_definition_id', 'app_action_id'))\n * .then((appAction) => console.log(appAction))\n * .catch(console.error)\n * ```\n */\n getAppAction(appDefinitionId: string, appActionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'get',\n params: { organizationId: raw.sys.id, appDefinitionId, appActionId },\n }).then((payload) => wrapAppAction(makeRequest, payload))\n },\n /**\n * Gets existing app actions for an App Definition.\n * @return Promise that resolves an App Action entity\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppActions('app_definition_id'))\n * .then((appActions) => console.log(appActions))\n * .catch(console.error)\n * ```\n */\n getAppActions(appDefinitionId: string) {\n const raw = this.toPlainObject() as OrganizationProp\n\n return makeRequest({\n entityType: 'AppAction',\n action: 'getMany',\n params: { organizationId: raw.sys.id, appDefinitionId },\n }).then((payload) => wrapAppActionCollection(makeRequest, payload))\n },\n }\n}\n","/**\n * Contentful Space API. Contains methods to access any operations at a space\n * level, such as creating and reading entities contained in a space.\n */\n\nimport { createRequestConfig } from 'contentful-sdk-core'\nimport { MakeRequest, PaginationQueryOptions, QueryOptions } from './common-types'\nimport entities from './entities'\nimport { CreateApiKeyProps } from './entities/api-key'\nimport { CreateEnvironmentProps } from './entities/environment'\nimport { CreateEnvironmentAliasProps } from './entities/environment-alias'\nimport { CreateRoleProps, RoleProps } from './entities/role'\nimport { ScheduledActionProps, ScheduledActionQueryOptions } from './entities/scheduled-action'\nimport { SpaceProps } from './entities/space'\nimport { CreateSpaceMembershipProps } from './entities/space-membership'\nimport { CreateTeamSpaceMembershipProps } from './entities/team-space-membership'\nimport {\n CreateWebhooksProps,\n UpsertWebhookSigningSecretPayload,\n WebhookRetryPolicyPayload,\n} from './entities/webhook'\n\n/**\n * @private\n */\nexport type ContentfulSpaceAPI = ReturnType\n\n/**\n * Creates API object with methods to access the Space API\n * @param {MakeRequest} makeRequest - function to make requests via an adapter\n * @return {ContentfulSpaceAPI}\n * @private\n */\nexport default function createSpaceApi(makeRequest: MakeRequest) {\n const { wrapSpace } = entities.space\n const { wrapEnvironment, wrapEnvironmentCollection } = entities.environment\n const { wrapWebhook, wrapWebhookCollection } = entities.webhook\n const { wrapRole, wrapRoleCollection } = entities.role\n const { wrapUser, wrapUserCollection } = entities.user\n const { wrapSpaceMember, wrapSpaceMemberCollection } = entities.spaceMember\n const { wrapSpaceMembership, wrapSpaceMembershipCollection } = entities.spaceMembership\n const { wrapTeamSpaceMembership, wrapTeamSpaceMembershipCollection } =\n entities.teamSpaceMembership\n const { wrapTeamCollection } = entities.team\n const { wrapApiKey, wrapApiKeyCollection } = entities.apiKey\n const { wrapEnvironmentAlias, wrapEnvironmentAliasCollection } = entities.environmentAlias\n const { wrapPreviewApiKey, wrapPreviewApiKeyCollection } = entities.previewApiKey\n const { wrapScheduledAction, wrapScheduledActionCollection } = entities.scheduledAction\n\n return {\n /**\n * Deletes the space\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.delete())\n * .then(() => console.log('Space deleted.'))\n * .catch(console.error)\n * ```\n */\n delete: function deleteSpace() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Space',\n action: 'delete',\n params: { spaceId: raw.sys.id },\n })\n },\n /**\n * Updates the space\n * @return Promise for the updated space.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * space.name = 'New name'\n * return space.update()\n * })\n * .then((space) => console.log(`Space ${space.sys.id} renamed.`)\n * .catch(console.error)\n * ```\n */\n update: function updateSpace() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Space',\n action: 'update',\n params: { spaceId: raw.sys.id },\n payload: raw,\n headers: {},\n }).then((data) => wrapSpace(makeRequest, data))\n },\n /**\n * Gets an environment\n * @param id - Environment ID\n * @return Promise for an Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n getEnvironment(environmentId: string) {\n const raw = this.toPlainObject() as SpaceProps\n\n return makeRequest({\n entityType: 'Environment',\n action: 'get',\n params: { spaceId: raw.sys.id, environmentId },\n }).then((data) => wrapEnvironment(makeRequest, data))\n },\n\n /**\n * Gets a collection of Environments\n * @return Promise for a collection of Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironments())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironments(query: PaginationQueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query },\n }).then((data) => wrapEnvironmentCollection(makeRequest, data))\n },\n\n /**\n * Creates an environment\n * @param data - Object representation of the Environment to be created\n * @return Promise for the newly created Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironment({ name: 'Staging' }))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n createEnvironment(data: CreateEnvironmentProps = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapEnvironment(makeRequest, response))\n },\n\n /**\n * Creates an Environment with a custom ID\n * @param id - Environment ID\n * @param data - Object representation of the Environment to be created\n * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is \"master\"\n * @return Promise for the newly created Environment\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master'))\n * .then((environment) => console.log(environment))\n * .catch(console.error)\n * ```\n */\n createEnvironmentWithId(\n id: string,\n data: CreateEnvironmentProps,\n sourceEnvironmentId?: string\n ) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Environment',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.id,\n environmentId: id,\n sourceEnvironmentId,\n },\n payload: data,\n }).then((response) => wrapEnvironment(makeRequest, response))\n },\n\n /**\n * Gets a Webhook\n * @param id - Webhook ID\n * @return Promise for a Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n getWebhook(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'get',\n params: { spaceId: raw.sys.id, webhookDefinitionId: id },\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Gets a collection of Webhooks\n * @return Promise for a collection of Webhooks\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhooks())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getWebhooks() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getMany',\n params: { spaceId: raw.sys.id },\n }).then((data) => wrapWebhookCollection(makeRequest, data))\n },\n\n /**\n * Fetch a webhook signing secret\n * @returns Promise for the redacted webhook signing secret in this space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhookSigningSecret())\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n getWebhookSigningSecret: function getSigningSecret() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getSigningSecret',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Fetch a webhook retry policy\n * @returns Promise for the redacted webhook retry policy in this space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRetryPolicy())\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n getWebhookRetryPolicy: function getWebhookRetryPolicy() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getRetryPolicy',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Creates a Webhook\n * @param data - Object representation of the Webhook to be created\n * @return Promise for the newly created Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.createWebhook({\n * 'name': 'My webhook',\n * 'url': 'https://www.example.com/test',\n * 'topics': [\n * 'Entry.create',\n * 'ContentType.create',\n * '*.publish',\n * 'Asset.*'\n * ]\n * }))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n createWebhook(data: CreateWebhooksProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Creates a Webhook with a custom ID\n * @param id - Webhook ID\n * @param data - Object representation of the Webhook to be created\n * @return Promise for the newly created Webhook\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.createWebhookWithId('', {\n * 'name': 'My webhook',\n * 'url': 'https://www.example.com/test',\n * 'topics': [\n * 'Entry.create',\n * 'ContentType.create',\n * '*.publish',\n * 'Asset.*'\n * ]\n * }))\n * .then((webhook) => console.log(webhook))\n * .catch(console.error)\n * ```\n */\n createWebhookWithId(id: string, data: CreateWebhooksProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, webhookDefinitionId: id },\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n\n /**\n * Create or update the webhook signing secret for this space\n * @param data 64 character string that will be used to sign the webhook calls\n * @returns Promise for the redacted webhook signing secret that was created or updated\n * @example ```javascript\n * const contentful = require('contentful-management')\n * const crypto = require('crypto')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const signingSecret = client.getSpace('')\n * .then((space) => space.upsertWebhookSigningSecret({\n * value: crypto.randomBytes(32).toString('hex')\n * }))\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n upsertWebhookSigningSecret: function getSigningSecret(data: UpsertWebhookSigningSecretPayload) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'upsertSigningSecret',\n params: { spaceId: raw.sys.id },\n payload: data,\n })\n },\n /**\n * Create or update the webhook retry policy for this space\n * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy\n * @returns Promise for the redacted webhook retry policy that was created or updated\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * const retryPolicy = client.getSpace('')\n * .then((space) => space.upsertWebhookRetryPolicy({\n * maxRetries: 15\n * }))\n * .then((response) => console.log(response.redactedValue))\n * .catch(console.error)\n * ```\n */\n upsertWebhookRetryPolicy: function upsertWebhookRetryPolicy(data: WebhookRetryPolicyPayload) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'upsertRetryPolicy',\n params: { spaceId: raw.sys.id },\n payload: data,\n })\n },\n\n /**\n * Delete the webhook signing secret for this space\n * @returns Promise\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.deleteWebhookSigningSecret())\n * .then(() => console.log(\"success\"))\n * .catch(console.error)\n * ```\n */\n deleteWebhookSigningSecret: function getSigningSecret() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'deleteSigningSecret',\n params: { spaceId: raw.sys.id },\n })\n },\n /**\n * Delete the webhook retry policy for this space\n * @returns Promise\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.deleteWebhookRetryPolicy())\n * .then(() => console.log(\"success\"))\n * .catch(console.error)\n * ```\n */\n deleteWebhookRetryPolicy: function deleteRetryPolicy() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'deleteRetryPolicy',\n params: { spaceId: raw.sys.id },\n })\n },\n\n /**\n * Gets a Role\n * @param id - Role ID\n * @return Promise for a Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createRole({\n * fields: {\n * title: {\n * 'en-US': 'Role title'\n * }\n * }\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n getRole(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'get',\n params: { spaceId: raw.sys.id, roleId: id },\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Gets a collection of Roles\n * @return Promise for a collection of Roles\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRoles())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getRoles(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query: createRequestConfig({ query }).params },\n }).then((data) => wrapRoleCollection(makeRequest, data))\n },\n\n /**\n * Creates a Role\n * @param data - Object representation of the Role to be created\n * @return Promise for the newly created Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.createRole({\n * name: 'My Role',\n * description: 'foobar role',\n * permissions: {\n * ContentDelivery: 'all',\n * ContentModel: ['read'],\n * Settings: []\n * },\n * policies: [\n * {\n * effect: 'allow',\n * actions: 'all',\n * constraint: {\n * and: [\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Entry'\n * ]\n * },\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Asset'\n * ]\n * }\n * ]\n * }\n * }\n * ]\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n createRole(data: CreateRoleProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Creates a Role with a custom ID\n * @param id - Role ID\n * @param data - Object representation of the Role to be created\n * @return Promise for the newly created Role\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.createRoleWithId('', {\n * name: 'My Role',\n * description: 'foobar role',\n * permissions: {\n * ContentDelivery: 'all',\n * ContentModel: ['read'],\n * Settings: []\n * },\n * policies: [\n * {\n * effect: 'allow',\n * actions: 'all',\n * constraint: {\n * and: [\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Entry'\n * ]\n * },\n * {\n * equals: [\n * { doc: 'sys.type' },\n * 'Asset'\n * ]\n * }\n * ]\n * }\n * }\n * ]\n * }))\n * .then((role) => console.log(role))\n * .catch(console.error)\n * ```\n */\n createRoleWithId(id: string, roleData: Omit) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Role',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, roleId: id },\n payload: roleData,\n }).then((data) => wrapRole(makeRequest, data))\n },\n /**\n * Gets a User\n * @param userId - User ID\n * @return Promise for a User\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceUser('id'))\n * .then((user) => console.log(user))\n * .catch(console.error)\n * ```\n */\n getSpaceUser(userId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'User',\n action: 'getForSpace',\n params: {\n spaceId: raw.sys.id,\n userId,\n },\n }).then((data) => wrapUser(makeRequest, data))\n },\n /**\n * Gets a collection of Users in a space\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise a collection of Users in a space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceUsers(query))\n * .then((data) => console.log(data))\n * .catch(console.error)\n * ```\n */\n getSpaceUsers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'User',\n action: 'getManyForSpace',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapUserCollection(makeRequest, data))\n },\n\n /**\n * Gets a collection of teams for a space\n * @param query\n * @return Promise for a collection of teams for a space\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeams())\n * .then((teamsCollection) => console.log(teamsCollection))\n * .catch(console.error)\n * ```\n */\n getTeams(query: QueryOptions = { limit: 100 }) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'Team',\n action: 'getManyForSpace',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapTeamCollection(makeRequest, data))\n },\n /**\n * Gets a Space Member\n * @param id Get Space Member by user_id\n * @return Promise for a Space Member\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMember(id))\n * .then((spaceMember) => console.log(spaceMember))\n * .catch(console.error)\n * ```\n */\n getSpaceMember(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMember',\n action: 'get',\n params: { spaceId: raw.sys.id, spaceMemberId: id },\n }).then((data) => wrapSpaceMember(makeRequest, data))\n },\n /**\n * Gets a collection of Space Members\n * @param query\n * @return Promise for a collection of Space Members\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembers({'limit': 100}))\n * .then((spaceMemberCollection) => console.log(spaceMemberCollection))\n * .catch(console.error)\n * ```\n */\n getSpaceMembers(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMember',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMemberCollection(makeRequest, data))\n },\n /**\n * Gets a Space Membership\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param id - Space Membership ID\n * @return Promise for a Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership('id'))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n getSpaceMembership(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'get',\n params: { spaceId: raw.sys.id, spaceMembershipId: id },\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n /**\n * Gets a collection of Space Memberships\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Space Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value'\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query }).params,\n },\n }).then((data) => wrapSpaceMembershipCollection(makeRequest, data))\n },\n\n /**\n * Creates a Space Membership\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param data - Object representation of the Space Membership to be created\n * @return Promise for the newly created Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createSpaceMembership({\n * admin: false,\n * roles: [\n * {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * ],\n * email: 'foo@example.com'\n * }))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n createSpaceMembership(data: CreateSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n },\n payload: data,\n }).then((response) => wrapSpaceMembership(makeRequest, response))\n },\n /**\n * Creates a Space Membership with a custom ID\n * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).\n * @param id - Space Membership ID\n * @param data - Object representation of the Space Membership to be created\n * @return Promise for the newly created Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createSpaceMembershipWithId('', {\n * admin: false,\n * roles: [\n * {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * ],\n * email: 'foo@example.com'\n * }))\n * .then((spaceMembership) => console.log(spaceMembership))\n * .catch(console.error)\n * ```\n */\n createSpaceMembershipWithId(id: string, data: CreateSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'createWithId',\n params: {\n spaceId: raw.sys.id,\n spaceMembershipId: id,\n },\n payload: data,\n }).then((response) => wrapSpaceMembership(makeRequest, response))\n },\n\n /**\n * Gets a Team Space Membership\n * @param id - Team Space Membership ID\n * @return Promise for a Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership('team_space_membership_id'))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMembership(teamSpaceMembershipId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n teamSpaceMembershipId,\n },\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n\n /**\n * Gets a collection of Team Space Memberships\n * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.\n * @return Promise for a collection of Team Space Memberships\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMemberships())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getTeamSpaceMemberships(query: QueryOptions = {}) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n query: createRequestConfig({ query: query }).params,\n },\n }).then((data) => wrapTeamSpaceMembershipCollection(makeRequest, data))\n },\n /**\n * Creates a Team Space Membership\n * @param id - Team ID\n * @param data - Object representation of the Team Space Membership to be created\n * @return Promise for the newly created Team Space Membership\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createTeamSpaceMembership('team_id', {\n * admin: false,\n * roles: [\n * {\n sys: {\n * type: 'Link',\n * linkType: 'Role',\n * id: ''\n * }\n * }\n * ],\n * }))\n * .then((teamSpaceMembership) => console.log(teamSpaceMembership))\n * .catch(console.error)\n * ```\n */\n createTeamSpaceMembership(teamId: string, data: CreateTeamSpaceMembershipProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'create',\n params: {\n spaceId: raw.sys.id,\n teamId,\n },\n payload: data,\n }).then((response) => wrapTeamSpaceMembership(makeRequest, response))\n },\n /**\n * Gets a Api Key\n * @param id - API Key ID\n * @return Promise for a Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getApiKey(''))\n * .then((apikey) => console.log(apikey))\n * .catch(console.error)\n * ```\n */\n getApiKey(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n apiKeyId: id,\n },\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n /**\n * Gets a collection of Api Keys\n * @return Promise for a collection of Api Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getApiKeys())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getApiKeys() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapApiKeyCollection(makeRequest, data))\n },\n /**\n * Gets a collection of preview Api Keys\n * @return Promise for a collection of Preview Api Keys\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getPreviewApiKeys())\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getPreviewApiKeys() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'PreviewApiKey',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapPreviewApiKeyCollection(makeRequest, data))\n },\n /**\n * Gets a preview Api Key\n * @param id - Preview API Key ID\n * @return Promise for a Preview Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getPreviewApiKey(''))\n * .then((previewApikey) => console.log(previewApikey))\n * .catch(console.error)\n * ```\n */\n getPreviewApiKey(id: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'PreviewApiKey',\n action: 'get',\n params: {\n spaceId: raw.sys.id,\n previewApiKeyId: id,\n },\n }).then((data) => wrapPreviewApiKey(makeRequest, data))\n },\n /**\n * Creates a Api Key\n * @param payload - Object representation of the Api Key to be created\n * @return Promise for the newly created Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createApiKey({\n * name: 'API Key name',\n * environments:[\n * {\n * sys: {\n * type: 'Link'\n * linkType: 'Environment',\n * id:''\n * }\n * }\n * ]\n * }\n * }))\n * .then((apiKey) => console.log(apiKey))\n * .catch(console.error)\n * ```\n */\n createApiKey: function createApiKey(payload: CreateApiKeyProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload,\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n /**\n * Creates a Api Key with a custom ID\n * @param id - Api Key ID\n * @param payload - Object representation of the Api Key to be created\n * @return Promise for the newly created Api Key\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createApiKeyWithId('', {\n * name: 'API Key name'\n * environments:[\n * {\n * sys: {\n * type: 'Link'\n * linkType: 'Environment',\n * id:''\n * }\n * }\n * ]\n * }\n * }))\n * .then((apiKey) => console.log(apiKey))\n * .catch(console.error)\n * ```\n */\n createApiKeyWithId(id: string, payload: CreateApiKeyProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, apiKeyId: id },\n payload,\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n\n /**\n * Creates an EnvironmentAlias with a custom ID\n * @param environmentAliasId - EnvironmentAlias ID\n * @param data - Object representation of the EnvironmentAlias to be created\n * @return Promise for the newly created EnvironmentAlias\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createEnvironmentAliasWithId('', {\n * environment: {\n * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' }\n * }\n * }))\n * .then((environmentAlias) => console.log(environmentAlias))\n * .catch(console.error)\n * ```\n */\n createEnvironmentAliasWithId(environmentAliasId: string, data: CreateEnvironmentAliasProps) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'createWithId',\n params: { spaceId: raw.sys.id, environmentAliasId },\n payload: data,\n }).then((response) => wrapEnvironmentAlias(makeRequest, response))\n },\n\n /**\n * Gets an Environment Alias\n * @param Environment Alias ID\n * @return Promise for an Environment Alias\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => console.log(alias))\n * .catch(console.error)\n * ```\n */\n getEnvironmentAlias(environmentAliasId: string) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'get',\n params: { spaceId: raw.sys.id, environmentAliasId },\n }).then((data) => wrapEnvironmentAlias(makeRequest, data))\n },\n /**\n * Gets a collection of Environment Aliases\n * @return Promise for a collection of Environment Aliases\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAliases()\n * .then((response) => console.log(response.items))\n * .catch(console.error)\n * ```\n */\n getEnvironmentAliases() {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'getMany',\n params: {\n spaceId: raw.sys.id,\n },\n }).then((data) => wrapEnvironmentAliasCollection(makeRequest, data))\n },\n /**\n * Query for scheduled actions in space.\n * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details.\n * @return Promise for the scheduled actions query\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getScheduledActions({\n * 'environment.sys.id': '',\n * 'sys.status': 'scheduled'\n * }))\n * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items))\n * .catch(console.error)\n * ```\n */\n getScheduledActions(query: ScheduledActionQueryOptions) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'getMany',\n params: { spaceId: raw.sys.id, query },\n }).then((response) => wrapScheduledActionCollection(makeRequest, response))\n },\n /**\n * Get a Scheduled Action in the current space by environment and ID.\n *\n * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself.\n * @returns Promise with the Scheduled Action\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getScheduledAction({\n * scheduledActionId: '',\n * environmentId: ''\n * }))\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error)\n * ```\n */\n getScheduledAction({\n scheduledActionId,\n environmentId,\n }: {\n scheduledActionId: string\n environmentId: string\n }) {\n const space = this.toPlainObject() as SpaceProps\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'get',\n params: {\n spaceId: space.sys.id,\n environmentId,\n scheduledActionId,\n },\n }).then((scheduledAction) => wrapScheduledAction(makeRequest, scheduledAction))\n },\n\n /**\n * Creates a scheduled action\n * @param data - Object representation of the scheduled action to be created\n * @return Promise for the newly created scheduled actions\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * }))\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error)\n * ```\n */\n createScheduledAction(data: Omit) {\n const raw = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'create',\n params: { spaceId: raw.sys.id },\n payload: data,\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n /**\n * Update a scheduled action\n * @param {object} options\n * @param options.scheduledActionId the id of the scheduled action to update\n * @param options.version the sys.version of the scheduled action to be updated\n * @param payload the scheduled actions object with updates, omitting sys object\n * @returns Promise containing a wrapped scheduled action with helper methods\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => {\n * const { _sys, ...payload } = scheduledAction;\n * return space.updateScheduledAction({\n * ...payload,\n * scheduledFor: {\n * ...payload.scheduledFor,\n * timezone: 'Europe/Paris'\n * }\n * })\n * })\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n updateScheduledAction({\n scheduledActionId,\n payload,\n version,\n }: {\n scheduledActionId: string\n payload: Omit\n version: number\n }) {\n const spaceProps = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'update',\n params: {\n spaceId: spaceProps.sys.id,\n version,\n scheduledActionId,\n },\n payload,\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n /**\n * Cancels a Scheduled Action.\n * Only cancels actions that have not yet executed.\n *\n * @param {object} options\n * @param options.scheduledActionId the id of the scheduled action to be canceled\n * @param options.environmentId the environment ID of the scheduled action to be canceled\n * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action.\n * @returns Promise containing a wrapped Scheduled Action with helper methods\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * // Given that an Scheduled Action is scheduled\n * client.getSpace('')\n * .then((space) => space.deleteScheduledAction({\n * environmentId: '',\n * scheduledActionId: ''\n * }))\n * // The scheduled Action sys.status is now 'canceled'\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n deleteScheduledAction({\n scheduledActionId,\n environmentId,\n }: {\n scheduledActionId: string\n environmentId: string\n }) {\n const spaceProps = this.toPlainObject() as SpaceProps\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'delete',\n params: {\n spaceId: spaceProps.sys.id,\n environmentId,\n scheduledActionId,\n },\n }).then((response) => wrapScheduledAction(makeRequest, response))\n },\n }\n}\n","import { MakeRequest } from './common-types'\nimport entities from './entities'\nimport { UIConfig } from './entities/ui-config'\n\n/**\n * @private\n */\nexport type ContentfulUIConfigApi = ReturnType\n\n/**\n * @private\n */\nexport default function createUIConfigApi(makeRequest: MakeRequest) {\n const { wrapUIConfig } = entities.uiConfig\n\n const getParams = (self: UIConfig) => {\n const uiConfig = self.toPlainObject()\n\n return {\n params: {\n spaceId: uiConfig.sys.space.sys.id,\n environmentId: uiConfig.sys.environment.sys.id,\n },\n raw: uiConfig,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUIConfig())\n * .then((uiConfig) => {\n * uiConfig.entryListViews = [...]\n * return uiConfig.update()\n * })\n * .then((uiConfig) => console.log(`UIConfig updated.`))\n * .catch(console.error)\n * ```\n */\n update: async function update() {\n const { raw, params } = getParams(this)\n\n const data = await makeRequest({\n entityType: 'UIConfig',\n action: 'update',\n params,\n payload: raw,\n })\n return wrapUIConfig(makeRequest, data)\n },\n }\n}\n","import { MakeRequest } from './common-types'\nimport entities from './entities'\nimport { UserUIConfig } from './entities/user-ui-config'\n\n/**\n * @private\n */\nexport type ContentfulUIConfigApi = ReturnType\n\n/**\n * @private\n */\nexport default function createUserUIConfigApi(makeRequest: MakeRequest) {\n const { wrapUserUIConfig } = entities.userUIConfig\n\n const getParams = (self: UserUIConfig) => {\n const userUIConfig = self.toPlainObject()\n\n return {\n params: {\n spaceId: userUIConfig.sys.space.sys.id,\n environmentId: userUIConfig.sys.environment.sys.id,\n },\n raw: userUIConfig,\n }\n }\n\n return {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUserUIConfig())\n * .then((uiConfig) => {\n * uiConfig.entryListViews = [...]\n * return uiConfig.update()\n * })\n * .then((uiConfig) => console.log(`UserUIConfig updated.`))\n * .catch(console.error)\n * ```\n */\n update: async function update() {\n const { raw, params } = getParams(this)\n\n const data = await makeRequest({\n entityType: 'UserUIConfig',\n action: 'update',\n params,\n payload: raw,\n })\n return wrapUserUIConfig(makeRequest, data)\n },\n }\n}\n","/**\n * This method enhances a base object which would normally contain data, with\n * methods from another object that might work on manipulating that data.\n * All the added methods are set as non enumerable, non configurable, and non\n * writable properties. This ensures that if we try to clone or stringify the\n * base object, we don't have to worry about these additional methods.\n * @private\n * @param {object} baseObject - Base object with data\n * @param {object} methodsObject - Object with methods as properties. The key\n * values used here will be the same that will be defined on the baseObject.\n */\nexport default function enhanceWithMethods<\n B extends Record,\n M extends Record\n>(baseObject: B, methodsObject: M): M & B {\n // @ts-expect-error\n return Object.keys(methodsObject).reduce((enhancedObject, methodName) => {\n Object.defineProperty(enhancedObject, methodName, {\n enumerable: false,\n configurable: true,\n writable: false,\n value: methodsObject[methodName],\n })\n return enhancedObject\n }, baseObject)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MakeRequest, BasicMetaSysProps, SysLink } from '../common-types'\n\ntype Application = {\n id?: string\n name?: string\n sys: SysLink\n}\n\ntype AccessTokenSysProps = BasicMetaSysProps & {\n application: Application | null\n expiresAt: string | null\n lastUsedAt: string | null\n redactedValue: string\n}\n\nexport type AccessTokenProp = {\n sys: AccessTokenSysProps\n name: string\n scopes: 'content_management_manage'[]\n revokedAt: null | string\n token?: string\n}\n\nexport type CreatePersonalAccessTokenProps = Pick & {\n expiresIn: number\n}\n\nexport interface AccessToken extends AccessTokenProp, DefaultElements {\n /**\n * Revokes access token\n * @return Object the revoked access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: \n * })\n *\n * client.getAccessToken('')\n * .then((AccessToken) => {\n * return accessToken.revoke()\n * })\n * .catch(console.error)\n * ```\n */\n revoke(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw access token data\n * @return Wrapped access token\n */\nexport function wrapAccessToken(makeRequest: MakeRequest, data: AccessTokenProp): AccessToken {\n const AccessToken = toPlainObject(copy(data))\n const accessTokenWithMethods = enhanceWithMethods(AccessToken, {\n revoke: function () {\n return makeRequest({\n entityType: 'AccessToken',\n action: 'revoke',\n params: { tokenId: data.sys.id },\n }).then((data) => wrapAccessToken(makeRequest, data))\n },\n })\n return freezeSys(accessTokenWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw access collection data\n * @return Wrapped access token collection data\n */\nexport const wrapAccessTokenCollection = wrapCollection(wrapAccessToken)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type ApiKeyProps = {\n sys: MetaSysProps\n name: string\n accessToken: string\n environments: {\n sys: MetaLinkProps\n }[]\n preview_api_key: { sys: MetaLinkProps }\n description?: string\n policies?: { effect: string; action: string }[]\n}\n\nexport type CreateApiKeyProps = Pick\n\nexport interface ApiKey extends ApiKeyProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getApiKey())\n * .then((apiKey) => apiKey.delete())\n * .then(() => console.log('apikey deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getApiKey())\n * .then((apiKey) => {\n * apiKey.name = 'New name'\n * return apiKey.update()\n * })\n * .then(apiKey => console.log(apiKey.name))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createApiKeyApi(makeRequest: MakeRequest) {\n const getParams = (data: ApiKeyProps) => ({\n spaceId: data.sys.space?.sys.id ?? '',\n apiKeyId: data.sys.id,\n })\n\n return {\n update: function update() {\n const self = this as ApiKeyProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'update',\n params: getParams(self),\n payload: self,\n headers: {},\n }).then((data) => wrapApiKey(makeRequest, data))\n },\n\n delete: function del() {\n const self = this as ApiKeyProps\n return makeRequest({\n entityType: 'ApiKey',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key data\n */\nexport function wrapApiKey(makeRequest: MakeRequest, data: ApiKeyProps): ApiKey {\n const apiKey = toPlainObject(copy(data))\n const apiKeyWithMethods = enhanceWithMethods(apiKey, createApiKeyApi(makeRequest))\n return freezeSys(apiKeyWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key collection data\n * @return Wrapped api key collection data\n */\nexport const wrapApiKeyCollection = wrapCollection(wrapApiKey)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\n\ntype AppAccessTokenSys = Except & {\n space: SysLink\n environment: SysLink\n appDefinition: SysLink\n expiresAt: string\n}\n\nexport type AppAccessTokenProps = {\n /**\n * System metadata\n */\n sys: AppAccessTokenSys\n /**\n * Token for an app installation in a space environment\n */\n token: string\n}\n\nexport type CreateAppAccessTokenProps = {\n /**\n * JSON Web Token\n */\n jwt: string\n}\n\nexport interface AppAccessToken extends AppAccessTokenProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw app access token data\n * @return {AppAccessToken} Wrapped AppAccessToken data\n */\nexport function wrapAppAccessToken(\n _makeRequest: MakeRequest,\n data: AppAccessTokenProps\n): AppAccessToken {\n const appAccessToken = toPlainObject(copy(data))\n return freezeSys(appAccessToken)\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport {\n BasicMetaSysProps,\n CreateWithResponseParams,\n DefaultElements,\n GetAppActionCallDetailsParams,\n MakeRequest,\n SysLink,\n} from '../common-types'\nimport { WebhookCallDetailsProps } from './webhook'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppActionCallSys = Except & {\n appDefinition: SysLink\n space: SysLink\n environment: SysLink\n action: SysLink\n}\n\ntype RetryOptions = Pick\n\nexport type AppActionCallProps = {\n /**\n * System metadata\n */\n sys: AppActionCallSys\n}\n\nexport type CreateAppActionCallProps = {\n /** The body for the call */\n parameters: { [key: string]: any }\n}\n\ntype AppActionCallApi = {\n createWithResponse(): Promise\n getCallDetails(): Promise\n}\n\nexport type AppActionCallResponse = WebhookCallDetailsProps\n\nexport interface AppActionCallResponseData\n extends AppActionCallResponse,\n DefaultElements,\n AppActionCallApi {}\n\nexport interface AppActionCall extends AppActionCallProps, DefaultElements {}\n\n/**\n * @private\n */\nexport default function createAppActionCallApi(\n makeRequest: MakeRequest,\n retryOptions?: RetryOptions\n): AppActionCallApi {\n return {\n createWithResponse: function () {\n const payload: CreateAppActionCallProps = {\n parameters: {\n recipient: 'Alice ',\n message_body: 'Hello from Bob!',\n },\n }\n\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'createWithResponse',\n params: {\n spaceId: 'space-id',\n environmentId: 'environment-id',\n appDefinitionId: 'app-definiton-id',\n appActionId: 'app-action-id',\n ...retryOptions,\n },\n payload: payload,\n }).then((data) => wrapAppActionCallResponse(makeRequest, data))\n },\n\n getCallDetails: function getCallDetails() {\n return makeRequest({\n entityType: 'AppActionCall',\n action: 'getCallDetails',\n params: {\n spaceId: 'space-id',\n environmentId: 'environment-id',\n callId: 'call-id',\n appActionId: 'app-action-id',\n },\n }).then((data) => wrapAppActionCallResponse(makeRequest, data))\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppActionCall data\n * @return Wrapped AppActionCall data\n */\nexport function wrapAppActionCall(\n makeRequest: MakeRequest,\n data: AppActionCallProps\n): AppActionCall {\n const signedRequest = toPlainObject(copy(data))\n const signedRequestWithMethods = enhanceWithMethods(\n signedRequest,\n createAppActionCallApi(makeRequest)\n )\n return signedRequestWithMethods\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppActionCall data\n * @return Wrapped AppActionCall data\n */\nexport function wrapAppActionCallResponse(\n makeRequest: MakeRequest,\n data: AppActionCallResponse,\n retryOptions?: RetryOptions\n): AppActionCallResponseData {\n const appActionCallResponse = toPlainObject(copy(data))\n const appActionCallResponseWithMethods = enhanceWithMethods(\n appActionCallResponse,\n createAppActionCallApi(makeRequest, retryOptions)\n )\n return appActionCallResponseWithMethods\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport { ParameterDefinition } from './widget-parameters'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppActionSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppActionParameterDefinition = Omit\n\nexport type AppActionCategoryProps = {\n sys: {\n id: AppActionCategoryType\n type: 'AppActionCategory'\n version: string\n }\n name: string\n description: string\n parameters?: AppActionParameterDefinition[]\n}\n\ntype BuiltInCategoriesProps = {\n /**\n * Category identifying the shape of the action.\n */\n category: 'Entries.v1.0' | 'Notification.v1.0'\n}\n\ntype CustomAppActionProps = {\n /**\n * \"Custom\" category requires \"parameters\"\n */\n category: 'Custom'\n parameters: AppActionParameterDefinition[]\n}\n\ntype AppActionCategory = BuiltInCategoriesProps | CustomAppActionProps\nexport type AppActionCategoryType = AppActionCategory['category']\n\nexport type CreateAppActionProps = AppActionCategory & {\n url: string\n name: string\n description?: string\n}\n\nexport type AppActionProps = AppActionCategory & {\n /**\n * System metadata\n */\n sys: AppActionSys\n /**\n * Url that will be called when the action is invoked\n */\n url: string\n /**\n * Human readable name for the action\n */\n name: string\n /**\n * Human readable description of the action\n */\n description?: string\n type?: 'endpoint' | 'function'\n}\n\nexport type AppAction = AppActionProps &\n DefaultElements & {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppAction(''))\n * .then((appAction) => appAction.delete())\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n }\n\n/**\n * @private\n */\nfunction createAppActionApi(makeRequest: MakeRequest) {\n const getParams = (data: AppActionProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n appActionId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppActionProps\n return makeRequest({\n entityType: 'AppAction',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle data\n * @return Wrapped App Bundle data\n */\nexport function wrapAppAction(makeRequest: MakeRequest, data: AppActionProps): AppAction {\n const appAction = toPlainObject(copy(data))\n\n const appActionWithMethods = enhanceWithMethods(appAction, createAppActionApi(makeRequest))\n\n return freezeSys(appActionWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle collection data\n * @return Wrapped App Bundle collection data\n */\nexport const wrapAppActionCollection = wrapCollection(wrapAppAction)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppBundleSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\ninterface ActionManifestProps {\n id?: string\n name: string\n description: string\n category: string\n path: string\n allowNetworks?: string[]\n}\n\ninterface FunctionManifestProps {\n id: string\n name: string\n description: string\n path: string\n accepts?: string[]\n allowNetworks?: string[]\n}\n\nexport type AppBundleFile = {\n name: string\n size: number\n md5: string\n}\n\nexport type CreateAppBundleProps = {\n appUploadId: string\n comment?: string\n actions?: ActionManifestProps[]\n functions?: FunctionManifestProps[]\n}\n\nexport type AppBundleProps = {\n /**\n * System metadata\n */\n sys: AppBundleSys\n /**\n * List of all the files that are in this bundle\n */\n files: AppBundleFile[]\n /**\n * A comment that describes this bundle\n */\n comment?: string\n}\n\nexport interface AppBundle extends AppBundleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppDefinition(''))\n * .then((appDefinition) => appDefinition.getAppBundle(''))\n * .then((appBundle) => appBundle.delete())\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppBundleApi(makeRequest: MakeRequest) {\n const getParams = (data: AppBundleProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n appBundleId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppBundleProps\n return makeRequest({\n entityType: 'AppBundle',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle data\n * @return Wrapped App Bundle data\n */\nexport function wrapAppBundle(makeRequest: MakeRequest, data: AppBundleProps): AppBundle {\n const appBundle = toPlainObject(copy(data))\n\n const appBundleWithMethods = enhanceWithMethods(appBundle, createAppBundleApi(makeRequest))\n\n return freezeSys(appBundleWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Bundle collection data\n * @return Wrapped App Bundle collection data\n */\nexport const wrapAppBundleCollection = wrapCollection(wrapAppBundle)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest, Link } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport createAppDefinitionApi, { ContentfulAppDefinitionAPI } from '../create-app-definition-api'\nimport { SetOptional, Except } from 'type-fest'\nimport { FieldType } from './field-type'\nimport { ParameterDefinition } from './widget-parameters'\nimport { AppInstallationProps } from './app-installation'\nimport { EnvironmentProps } from './environment'\n\nexport interface NavigationItem {\n name: string\n path: string\n}\n\ntype LocationType = 'app-config' | 'entry-sidebar' | 'entry-editor' | 'dialog' | 'page' | 'home'\n\nexport interface SimpleLocation {\n location: LocationType\n}\n\nexport interface EntryFieldLocation {\n location: 'entry-field'\n fieldTypes: FieldType[]\n}\n\nexport interface PageLocation {\n location: 'page'\n navigationItem?: NavigationItem\n}\n\nexport type AppLocation = SimpleLocation | EntryFieldLocation | PageLocation\n\nexport type AppDefinitionProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps & {\n organization: SysLink\n shared: boolean\n }\n /**\n * App name\n */\n name: string\n /**\n * URL where the root HTML document of the app can be found\n */\n src?: string\n /**\n * Link to an AppBundle\n */\n bundle?: Link<'AppBundle'>\n /**\n * Locations where the app can be installed\n */\n locations?: AppLocation[]\n /**\n * Instance parameter definitions\n */\n parameters?: {\n instance?: ParameterDefinition[]\n installation?: ParameterDefinition[]\n }\n}\n\nexport type CreateAppDefinitionProps = SetOptional<\n Except,\n 'src' | 'locations'\n>\n\nexport type AppDefinition = ContentfulAppDefinitionAPI &\n AppDefinitionProps &\n DefaultElements\n\nexport type AppInstallationsForOrganizationProps = {\n sys: {\n type: 'Array'\n }\n items: AppInstallationProps[]\n includes: {\n Environment: EnvironmentProps[]\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Definition data\n * @return Wrapped App Definition data\n */\nexport function wrapAppDefinition(\n makeRequest: MakeRequest,\n data: AppDefinitionProps\n): AppDefinition {\n const appDefinition = toPlainObject(copy(data))\n const appDefinitionWithMethods = enhanceWithMethods(\n appDefinition,\n createAppDefinitionApi(makeRequest)\n )\n return freezeSys(appDefinitionWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Definition collection data\n * @return Wrapped App Definition collection data\n */\nexport const wrapAppDefinitionCollection = wrapCollection(wrapAppDefinition)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppDetailsSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type IconType = 'base64'\nexport interface AppIcon {\n value: string\n type: IconType\n}\n\nexport type AppDetailsProps = {\n /**\n * System metadata\n */\n sys: AppDetailsSys\n /**\n * An Icon that represents the App\n */\n icon?: AppIcon\n}\n\nexport type CreateAppDetailsProps = {\n /**\n * An Icon that represents the App\n */\n icon?: AppIcon\n}\n\nexport interface AppDetails extends AppDetailsProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppDetails())\n * .then((appDetails) => appDetails.delete())\n * .then(() => console.log('appDetails deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @return Wrapped App Details data\n */\nfunction createAppDetailsApi(makeRequest: MakeRequest) {\n const getParams = (data: AppDetailsProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppDetailsProps\n return makeRequest({\n entityType: 'AppDetails',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppDetails data\n * @return Wrapped AppDetails data\n */\nexport function wrapAppDetails(makeRequest: MakeRequest, data: AppDetailsProps): AppDetails {\n const appDetails = toPlainObject(copy(data))\n return enhanceWithMethods(appDetails, createAppDetailsApi(makeRequest))\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppEventSubscriptionSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppEventSubscriptionProps = {\n /**\n * System metadata\n */\n sys: AppEventSubscriptionSys\n /** Subscription url that will receive events */\n targetUrl: string\n /** List of topics to subscribe to */\n topics: string[]\n}\n\nexport type CreateAppEventSubscriptionProps = Except\n\nexport interface AppEventSubscription\n extends AppEventSubscriptionProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppEventSubscription())\n * .then((eventSubscription) => eventSubscription.delete())\n * .then(() => console.log('eventSubscription deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createEventSubscriptionApi(makeRequest: MakeRequest) {\n const getParams = (data: AppEventSubscriptionProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppEventSubscriptionProps\n return makeRequest({\n entityType: 'AppEventSubscription',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppEventSubscription data\n * @return Wrapped AppEventSubscription data\n */\nexport function wrapAppEventSubscription(\n makeRequest: MakeRequest,\n data: AppEventSubscriptionProps\n): AppEventSubscription {\n const eventSubscription = toPlainObject(copy(data))\n return enhanceWithMethods(eventSubscription, createEventSubscriptionApi(makeRequest))\n}\n","import { toPlainObject, freezeSys } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\nimport { Except } from 'type-fest'\nimport { FreeFormParameters } from './widget-parameters'\n\nexport type AppInstallationProps = {\n sys: Omit & {\n appDefinition: SysLink\n environment: SysLink\n space: SysLink\n }\n /**\n * Free-form installation parameters (API limits stringified length to 32KB)\n */\n parameters?: FreeFormParameters\n}\n\nexport type CreateAppInstallationProps = Except\n\nexport interface AppInstallation\n extends AppInstallationProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => {\n * appInstallation.parameters.someParameter = 'New Value'\n * return appInstallation.update()\n * })\n * .then((appInstallation) => console.log(`App installation ${appInstallation.sys.id} was updated`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAppInstallation(''))\n * .then((appInstallation) => appInstallation.delete())\n * .then(() => console.log(`App installation deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppInstallationApi(makeRequest: MakeRequest) {\n const getParams = (data: AppInstallationProps) => ({\n spaceId: data.sys.space.sys.id,\n environmentId: data.sys.environment.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as AppInstallationProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'upsert',\n params: getParams(data),\n headers: {},\n payload: data,\n }).then((data) => wrapAppInstallation(makeRequest, data))\n },\n\n delete: function del() {\n const data = this.toPlainObject() as AppInstallationProps\n return makeRequest({\n entityType: 'AppInstallation',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Installation data\n * @return Wrapped App installation data\n */\nexport function wrapAppInstallation(\n makeRequest: MakeRequest,\n data: AppInstallationProps\n): AppInstallation {\n const appInstallation = toPlainObject(copy(data))\n const appInstallationWithMethods = enhanceWithMethods(\n appInstallation,\n createAppInstallationApi(makeRequest)\n )\n return freezeSys(appInstallationWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapAppInstallationCollection = wrapCollection(wrapAppInstallation)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\n\ntype AppKeySys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport interface JWK {\n alg: 'RS256'\n kty: 'RSA'\n use: 'sig'\n x5c: [string]\n kid: string\n x5t: string\n}\n\nexport type AppKeyProps = {\n /**\n * System metadata\n */\n sys: AppKeySys\n /**\n * JSON Web Key\n */\n jwk: JWK\n /**\n * If generated, private key is returned\n */\n generated?: {\n /**\n * Base64 PEM\n */\n privateKey: string\n }\n}\n\nexport type CreateAppKeyProps = {\n /**\n * Toggle for automatic private key generation\n */\n generate?: boolean\n /**\n * JSON Web Key, required if generate is falsy\n */\n jwk?: JWK\n}\n\nexport interface AppKey extends AppKeyProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppKey())\n * .then((signingSecret) => signingSecret.delete())\n * .then(() => console.log('signingSecret deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createKeyApi(makeRequest: MakeRequest) {\n const getParams = (data: AppKeyProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n fingerprint: data.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppKeyProps\n return makeRequest({\n entityType: 'AppKey',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppKey data\n * @return Wrapped AppKey data\n */\nexport function wrapAppKey(makeRequest: MakeRequest, data: AppKeyProps): AppKey {\n const key = toPlainObject(copy(data))\n return enhanceWithMethods(key, createKeyApi(makeRequest))\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Key collection data\n * @return Wrapped App Key collection data\n */\nexport const wrapAppKeyCollection = wrapCollection(wrapAppKey)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\n\ntype AppSignedRequestSys = Except & {\n appDefinition: SysLink\n space: SysLink\n environment: SysLink\n}\n\nexport type AppSignedRequestProps = {\n /**\n * System metadata\n */\n sys: AppSignedRequestSys\n /** new headers to be included in the request */\n additionalHeaders: {\n 'x-contentful-signature': string\n 'x-contentful-signed-headers': string\n 'x-contentful-timestamp': string\n 'x-contentful-space-id': string\n 'x-contentful-environment-id': string\n 'x-contentful-user-id': string\n }\n}\n\nexport type CreateAppSignedRequestProps = {\n /** the request method */\n method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD'\n /** the path of the request method */\n path: string\n /** optional stringified body of the request */\n body?: string\n /** optional headers of the request */\n headers?: Record\n}\n\nexport interface AppSignedRequest\n extends AppSignedRequestProps,\n DefaultElements {}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppSignedRequest data\n * @return Wrapped AppSignedRequest data\n */\nexport function wrapAppSignedRequest(\n _makeRequest: MakeRequest,\n data: AppSignedRequestProps\n): AppSignedRequest {\n const signedRequest = toPlainObject(copy(data))\n return signedRequest\n}\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppSigningSecretSys = Except & {\n appDefinition: SysLink\n organization: SysLink\n}\n\nexport type AppSigningSecretProps = {\n /**\n * System metadata\n */\n sys: AppSigningSecretSys\n /** The last four characters of the signing secret */\n redactedValue: string\n}\n\nexport type CreateAppSigningSecretProps = {\n /** A 64 character matching the regular expression /^[0-9a-zA-Z+/=_-]+$/ */\n value: string\n}\n\nexport interface AppSigningSecret\n extends AppSigningSecretProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getOrganization('')\n * .then((organization) => organization.getAppSigningSecret())\n * .then((signingSecret) => signingSecret.delete())\n * .then(() => console.log('signingSecret deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\nfunction createSigningSecretApi(makeRequest: MakeRequest) {\n const getParams = (data: AppSigningSecretProps) => ({\n organizationId: data.sys.organization.sys.id,\n appDefinitionId: data.sys.appDefinition.sys.id,\n })\n\n return {\n delete: function del() {\n const self = this as AppSigningSecretProps\n return makeRequest({\n entityType: 'AppSigningSecret',\n action: 'delete',\n params: getParams(self),\n })\n },\n }\n}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw AppSigningSecret data\n * @return Wrapped AppSigningSecret data\n */\nexport function wrapAppSigningSecret(\n makeRequest: MakeRequest,\n data: AppSigningSecretProps\n): AppSigningSecret {\n const signingSecret = toPlainObject(copy(data))\n return enhanceWithMethods(signingSecret, createSigningSecretApi(makeRequest))\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except } from 'type-fest'\nimport { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype AppUploadSys = Except\n\nexport type AppUploadProps = {\n sys: AppUploadSys & {\n expiresAt: string\n organization: SysLink\n }\n}\n\nexport interface AppUpload extends AppUploadProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('')\n * .then((org) => org.getAppUpload(''))\n * .then((appUpload) => appUpload.delete())\n * .then(() => console.log(`App Upload deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createAppUploadApi(makeRequest: MakeRequest) {\n const getParams = (data: AppUploadProps) => ({\n organizationId: data.sys.organization.sys.id,\n appUploadId: data.sys.id,\n })\n\n return {\n delete: function del() {\n const data = this.toPlainObject() as AppUploadProps\n return makeRequest({\n entityType: 'AppUpload',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Upload data\n * @return Wrapped App Upload data\n */\nexport function wrapAppUpload(makeRequest: MakeRequest, data: AppUploadProps): AppUpload {\n const appUpload = toPlainObject(copy(data))\n const appUploadWithMethods = enhanceWithMethods(appUpload, createAppUploadApi(makeRequest))\n\n return freezeSys(appUploadWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw App Upload collection data\n * @return Wrapped App Upload collection data\n */\nexport const wrapAppUploadCollection = wrapCollection(wrapAppUpload)\n","import copy from 'fast-copy'\nimport { toPlainObject } from 'contentful-sdk-core'\nimport { DefaultElements, MakeRequest } from '../common-types'\n\nexport type AssetKeyProps = {\n /** A JWT describing a policy; needs to be attached to signed URLs */\n policy: string\n /** A secret key to be used for signing URLs */\n secret: string\n}\n\nexport type CreateAssetKeyProps = {\n /** (required) UNIX timestamp in the future (but not more than 48 hours from now) */\n expiresAt: number\n}\n\nexport interface AssetKey extends AssetKeyProps, DefaultElements {}\n\n/**\n * @private\n * @param http - HTTP client instance\n * @param data - Raw asset key data\n * @return Wrapped asset key data\n */\nexport function wrapAssetKey(_makeRequest: MakeRequest, data: AssetKeyProps): AssetKey {\n const assetKey = toPlainObject(copy(data))\n return assetKey\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Stream } from 'stream'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport {\n MetaSysProps,\n DefaultElements,\n EntityMetaSysProps,\n MetadataProps,\n MakeRequest,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport * as checks from '../plain/checks'\n\nexport type AssetProps = {\n sys: EntityMetaSysProps\n fields: {\n /** Title for this asset */\n title: { [key: string]: string }\n /** Description for this asset */\n description?: { [key: string]: string }\n /** File object for this asset */\n file: {\n [key: string]: {\n fileName: string\n contentType: string\n /** Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone. */\n upload?: string\n /** Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed. */\n url?: string\n /** Details for the file, depending on file type (example: image size in bytes, etc) */\n details?: Record\n uploadFrom?: Record\n }\n }\n }\n metadata?: MetadataProps\n}\n\nexport type CreateAssetProps = Omit\n\nexport type CreateAssetFromFilesOptions = { uploadTimeout?: number }\n\nexport interface AssetFileProp {\n sys: MetaSysProps\n fields: {\n title: { [key: string]: string }\n description: { [key: string]: string }\n file: {\n [key: string]: {\n file: string | ArrayBuffer | Stream\n contentType: string\n fileName: string\n }\n }\n }\n}\n\nexport interface AssetProcessingForLocale {\n processingCheckWait?: number\n processingCheckRetries?: number\n}\n\ntype AssetApi = {\n /**\n * Triggers asset processing after an upload, for the files uploaded to all locales of an asset.\n * @param options - Additional options for processing\n * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)\n * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)\n * @return Object returned from the server with updated metadata.\n * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner',\n * 'de-DE': 'Playsam Streamliner'\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * },\n * 'de-DE': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example-de.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.processForAllLocales())\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n processForAllLocales(options?: AssetProcessingForLocale): Promise\n /**\n * Triggers asset processing after an upload, for the file uploaded to a specific locale.\n * @param locale - Locale which processing should be triggered for\n * @param options - Additional options for processing\n * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)\n * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)\n * @return Object returned from the server with updated metadata.\n * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.createAssetWithId('', {\n * title: {\n * 'en-US': 'Playsam Streamliner',\n * },\n * file: {\n * 'en-US': {\n * contentType: 'image/jpeg',\n * fileName: 'example.jpeg',\n * upload: 'https://example.com/example.jpg'\n * }\n * }\n * }))\n * .then((asset) => asset.processForLocale('en-US'))\n * .then((asset) => console.log(asset))\n * .catch(console.error)\n * ```\n */\n processForLocale(locale: string, Options?: AssetProcessingForLocale): Promise\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.publish())\n * .then((asset) => console.log(`Asset ${asset.sys.id} published.`)\n * .catch(console.error)\n * ```\n */\n publish(): Promise\n /**\n * Archives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.archive())\n * .then((asset) => console.log(`Asset ${asset.sys.id} archived.`)\n * .catch(console.error)\n * ```\n */\n archive(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.delete())\n * .then((asset) => console.log(`Asset deleted.`)\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Unarchives the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.unarchive())\n * .then((asset) => console.log(`Asset ${asset.sys.id} unarchived.`)\n * .catch(console.error)\n * ```\n */\n unarchive(): Promise\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => asset.unpublish())\n * .then((asset) => console.log(`Asset ${asset.sys.id} unpublished.`)\n * .catch(console.error)\n * ```\n */\n unpublish(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getAsset(''))\n * .then((asset) => {\n * asset.fields.title['en-US'] = 'New asset title'\n * return asset.update()\n * })\n * .then((asset) => console.log(`Asset ${asset.sys.id} updated.`)\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Checks if the asset is published. A published asset might have unpublished changes\n */\n isPublished(): boolean\n /**\n * Checks if the asset is updated. This means the asset was previously published but has unpublished changes.\n */\n isUpdated(): boolean\n /**\n * Checks if the asset is in draft mode. This means it is not published.\n */\n isDraft(): boolean\n /**\n * Checks if asset is archived. This means it's not exposed to the Delivery/Preview APIs.\n */\n isArchived(): boolean\n}\n\nexport interface Asset extends AssetProps, DefaultElements, AssetApi {}\n\n/**\n * @private\n */\nfunction createAssetApi(makeRequest: MakeRequest): AssetApi {\n const getParams = (raw: AssetProps) => {\n return {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.environment.sys.id,\n assetId: raw.sys.id,\n }\n }\n\n return {\n processForLocale: function processForLocale(\n locale: string,\n options?: AssetProcessingForLocale\n ) {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'processForLocale',\n params: {\n ...getParams(raw),\n locale,\n options,\n asset: raw,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n processForAllLocales: function processForAllLocales(options?: AssetProcessingForLocale) {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'processForAllLocales',\n params: {\n ...getParams(raw),\n asset: raw,\n options,\n },\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n update: function update() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n headers: {},\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'delete',\n params: getParams(raw),\n })\n },\n\n publish: function publish() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'publish',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n unpublish: function unpublish() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'unpublish',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n archive: function archive() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'archive',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n unarchive: function unarchive() {\n const raw = this.toPlainObject() as AssetProps\n return makeRequest({\n entityType: 'Asset',\n action: 'unarchive',\n params: getParams(raw),\n }).then((data) => wrapAsset(makeRequest, data))\n },\n\n isPublished: function isPublished() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isPublished(raw)\n },\n\n isUpdated: function isUpdated() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isUpdated(raw)\n },\n\n isDraft: function isDraft() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isDraft(raw)\n },\n\n isArchived: function isArchived() {\n const raw = this.toPlainObject() as AssetProps\n return checks.isArchived(raw)\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw asset data\n * @return Wrapped asset data\n */\nexport function wrapAsset(makeRequest: MakeRequest, data: AssetProps): Asset {\n const asset = toPlainObject(copy(data))\n const assetWithMethods = enhanceWithMethods(asset, createAssetApi(makeRequest))\n return freezeSys(assetWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapAssetCollection = wrapCollection(wrapAsset)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n MakeRequestPayload,\n VersionedLink,\n} from '../common-types'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AsyncActionProcessingOptions, pollAsyncActionStatus } from '../methods/action'\n\n/** Entity types supported by the BulkAction API */\ntype Entity = 'Entry' | 'Asset'\ntype Collection = Array\ntype EntityError = { entity: VersionedLink | Link; error: any }\n\nexport type BulkActionType = 'publish' | 'unpublish' | 'validate'\n\n/** Represents the state of the BulkAction */\nexport enum BulkActionStatus {\n /** BulkAction is pending execution */\n created = 'created',\n /** BulkAction has been started and pending completion */\n inProgress = 'inProgress',\n /** BulkAction was completed successfully (terminal state) */\n succeeded = 'succeeded',\n /** BulkAction failed to complete (terminal state) */\n failed = 'failed',\n}\n\nconst STATUSES = Object.values(BulkActionStatus)\ntype BulkActionStatuses = typeof STATUSES[number]\n\ninterface BulkActionFailedError {\n sys: { type: 'Error'; id: 'BulkActionFailed' }\n message?: string\n details?: {\n errors: Collection\n }\n}\n\nexport type BulkActionPayload =\n | BulkActionPublishPayload\n | BulkActionUnpublishPayload\n | BulkActionValidatePayload\n\nexport interface BulkActionValidatePayload extends MakeRequestPayload {\n action?: 'publish'\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\nexport interface BulkActionUnpublishPayload extends MakeRequestPayload {\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\n\nexport interface BulkActionPublishPayload extends MakeRequestPayload {\n entities: {\n sys?: { type: 'Array' }\n items: Collection>\n }\n}\n\nexport type BulkActionSysProps = {\n id: string\n type: 'BulkAction'\n status: BulkActionStatuses\n space: Link<'Space'>\n environment: Link<'Environment'>\n createdBy: Link<'User'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n}\n\n/** The object returned by the BulkActions API */\nexport interface BulkActionProps {\n sys: BulkActionSysProps\n action: BulkActionType\n /** original payload when BulkAction was created */\n payload: TPayload\n /** error information, if present */\n error?: BulkActionFailedError\n}\n\nexport interface BulkActionApiMethods {\n /** Performs a new GET request and returns the wrapper BulkAction */\n get(): BulkAction\n /** Waits until the BulkAction is in one of the final states (`succeeded` or `failed`) and returns it. */\n waitProcessing(options?: AsyncActionProcessingOptions): Promise\n}\n\n/**\n * @private\n */\nfunction createBulkActionApi(makeRequest: MakeRequest) {\n const getParams = (self: BulkAction) => {\n const bulkAction = self.toPlainObject()\n\n return {\n spaceId: bulkAction.sys.space.sys.id,\n environmentId: bulkAction.sys.environment.sys.id,\n bulkActionId: bulkAction.sys.id,\n }\n }\n\n return {\n async get() {\n const params = getParams(this)\n return makeRequest({\n entityType: 'BulkAction',\n action: 'get',\n params,\n }).then((bulkAction) => wrapBulkAction(makeRequest, bulkAction))\n },\n async waitProcessing(\n options?: AsyncActionProcessingOptions\n ): Promise> {\n return pollAsyncActionStatus>(async () => this.get(), options)\n },\n }\n}\n\nexport interface BulkAction\n extends BulkActionProps,\n BulkActionApiMethods,\n DefaultElements> {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw BulkAction data\n * @return Wrapped BulkAction data\n */\nexport function wrapBulkAction(\n makeRequest: MakeRequest,\n data: BulkActionProps\n): BulkAction {\n const bulkAction = toPlainObject(copy(data))\n const bulkActionWithApiMethods = enhanceWithMethods(\n bulkAction as any,\n createBulkActionApi(makeRequest)\n )\n return freezeSys(bulkActionWithApiMethods) as BulkAction\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Node, Text } from '@contentful/rich-text-types'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetCommentParams,\n GetEntryParams,\n GetSpaceEnvironmentParams,\n Link,\n MakeRequest,\n SysLink,\n VersionedLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n// PROPS //\n\ninterface LinkWithReference extends Link {\n sys: Link['sys'] & {\n ref: string\n }\n}\n\nexport type CommentSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Comment'\n space: SysLink\n environment: SysLink\n parentEntity:\n | Link<'ContentType'>\n | LinkWithReference<'ContentType'>\n | Link<'Entry'>\n | LinkWithReference<'Entry'>\n | VersionedLink<'Workflow'>\n parent: Link<'Comment'> | null\n}\n\nexport type PlainTextBodyProperty = 'plain-text'\nexport type RichTextBodyProperty = 'rich-text'\n\nexport type RichTextBodyFormat = { bodyFormat: RichTextBodyProperty }\nexport type PlainTextBodyFormat = { bodyFormat?: PlainTextBodyProperty }\n\nexport type CommentStatus = 'active' | 'resolved'\n\nexport type CommentProps = {\n sys: CommentSysProps\n body: string\n status: CommentStatus\n}\n\nexport type CreateCommentProps = Omit & { status?: CommentStatus }\nexport type UpdateCommentProps = Omit & {\n sys: Pick\n}\n\n// Remove and replace with BLOCKS as soon as rich-text-types supports mentions\nexport enum CommentNode {\n Document = 'document',\n Paragraph = 'paragraph',\n Mention = 'mention',\n}\n\n// Add \"extends Block\" as soon as rich-text-types supports mentions\nexport interface Mention {\n nodeType: CommentNode.Mention\n data: { target: Link<'User'> | Link<'Team'> }\n content: Text[]\n}\n\nexport interface RootParagraph extends Node {\n nodeType: CommentNode.Paragraph\n content: (Text | Mention)[]\n}\n\n// Add \"extends Document\" as soon as rich-text-types supports mentions.\nexport interface RichTextCommentDocument extends Node {\n nodeType: CommentNode.Document\n content: RootParagraph[]\n}\n\nexport type RichTextCommentBodyPayload = { body: RichTextCommentDocument }\n\nexport type RichTextCommentProps = Omit & RichTextCommentBodyPayload\n\n// PARAMS //\n\n// We keep this type as explicit as possible until we open up the comments entity further\nexport type GetCommentParentEntityParams = GetSpaceEnvironmentParams &\n (\n | {\n parentEntityType: 'ContentType'\n parentEntityId: string\n parentEntityReference?: string\n }\n | {\n parentEntityType: 'Entry'\n parentEntityId: string\n parentEntityReference?: string\n }\n | {\n parentEntityType: 'Workflow'\n parentEntityId: string\n parentEntityVersion?: number\n }\n )\n\nexport type GetManyCommentsParams = (GetEntryParams | GetCommentParentEntityParams) & {\n status?: CommentStatus\n}\nexport type CreateCommentParams = (GetEntryParams | GetCommentParentEntityParams) & {\n parentCommentId?: string\n}\nexport type UpdateCommentParams = GetCommentParams\nexport type DeleteCommentParams = GetCommentParams & {\n version: number\n}\n\n// NESTED CLIENT //\n\ntype CommentApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Comment extends CommentProps, DefaultElements, CommentApi {}\n\nexport interface RichTextComment\n extends Omit,\n RichTextCommentProps,\n DefaultElements,\n CommentApi {}\n\n/**\n * @private\n */\nexport default function createCommentApi(makeRequest: MakeRequest): CommentApi {\n const getParams = (comment: CommentProps): GetCommentParams => ({\n spaceId: comment.sys.space.sys.id,\n environmentId: comment.sys.environment.sys.id,\n entryId: comment.sys.parentEntity.sys.id,\n commentId: comment.sys.id,\n })\n\n return {\n update: async function () {\n const raw = this.toPlainObject() as CommentProps\n\n const data = await makeRequest({\n entityType: 'Comment',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n })\n return wrapComment(makeRequest, data)\n },\n\n delete: async function () {\n const raw = this.toPlainObject() as CommentProps\n\n await makeRequest({\n entityType: 'Comment',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapComment(\n makeRequest: MakeRequest,\n data: CommentProps | RichTextCommentProps\n): Comment | RichTextComment {\n const comment = toPlainObject(copy(data))\n const commentWithMethods = enhanceWithMethods(comment, createCommentApi(makeRequest))\n return freezeSys(commentWithMethods) as Comment | RichTextComment\n}\n\n/**\n * @private\n */\nexport const wrapCommentCollection = wrapCollection(wrapComment)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except, SetOptional, RequireAtLeastOne } from 'type-fest'\nimport {\n BasicMetaSysProps,\n Collection,\n DefaultElements,\n Link,\n MakeRequest,\n QueryOptions,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { isDraft, isPublished, isUpdated } from '../plain/checks'\nimport { ContentFields } from './content-type-fields'\nimport { EditorInterface, wrapEditorInterface } from './editor-interface'\nimport { Snapshot, SnapshotProps, wrapSnapshot, wrapSnapshotCollection } from './snapshot'\nimport { omitAndDeleteField } from '../methods/content-type'\n\nexport type ContentTypeMetadata = {\n annotations?: RequireAtLeastOne<\n {\n ContentType?: AnnotationAssignment[]\n ContentTypeField?: Record\n },\n 'ContentType' | 'ContentTypeField'\n >\n}\n\nexport type AnnotationAssignment = Link<'Annotation'> & {\n parameters?: Record\n}\n\nexport type ContentTypeProps = {\n sys: BasicMetaSysProps & {\n space: SysLink\n environment: SysLink\n firstPublishedAt?: string\n publishedCounter?: number\n publishedVersion?: number\n }\n name: string\n description: string\n /** Field used as the main display field for Entries */\n displayField: string\n /** All the fields contained in this Content Type */\n fields: ContentFields[]\n metadata?: ContentTypeMetadata\n}\n\nexport type CreateContentTypeProps = SetOptional<\n Except,\n 'description' | 'displayField'\n>\n\ntype ContentTypeApi = {\n /**\n * Sends an update to the server with any changes made to the object's properties.
\n * Important note about deleting fields: The standard way to delete a field is with two updates: first omit the property from your responses (set the field attribute \"omitted\" to true), and then\n * delete it by setting the attribute \"deleted\" to true. See the \"Deleting fields\" section in the\n * API reference for more reasoning. Alternatively,\n * you may use the convenience method omitAndDeleteField to do both steps at once.\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => {\n * contentType.name = 'New name'\n * return contentType.update()\n * })\n * .then(contentType => console.log(contentType))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.delete())\n * .then(() => console.log('contentType deleted'))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Publishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.publish())\n * .then((contentType) => console.log(`${contentType.sys.id} is published`))\n * .catch(console.error)\n * ```\n */\n publish(): Promise\n /**\n * Unpublishes the object\n * @return Object returned from the server with updated metadata.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.unpublish())\n * .then((contentType) => console.log(`${contentType.sys.id} is unpublished`))\n * .catch(console.error)\n * ```\n */\n unpublish(): Promise\n /**\n * Gets the editor interface for the object
\n * Important note: The editor interface only represent a published contentType.
\n * To get the most recent representation of the contentType make sure to publish it first\n * @return Object returned from the server with the current editor interface.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => console.log(editorInterface.contorls))\n * .catch(console.error)\n * ```\n */\n getEditorInterface(): Promise\n /**\n * Checks if the contentType is in draft mode. This means it is not published.\n */\n isDraft(): boolean\n /**\n * Checks if the contentType is published. A published contentType might have unpublished changes (@see {ContentType.isUpdated})\n */\n isPublished(): boolean\n /**\n * Checks if the contentType is updated. This means the contentType was previously published but has unpublished changes.\n */\n isUpdated(): boolean\n\n /**\n * Omits and deletes a field if it exists on the contentType. This is a convenience method which does both operations at once and potentially less\n * safe than the standard way. See note about deleting fields on the Update method.\n * @return Object returned from the server with updated metadata.\n */\n omitAndDeleteField(id: string): Promise\n\n /**\n * Gets a snapshot of a contentType\n * @param snapshotId - Id of the snapshot\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((entry) => entry.getSnapshot(''))\n * .then((snapshot) => console.log(snapshot))\n * .catch(console.error)\n * ```\n */\n getSnapshot(snapshotId: string): Promise>\n /**\n * Gets all snapshots of a contentType\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((entry) => entry.getSnapshots())\n * .then((snapshots) => console.log(snapshots.items))\n * .catch(console.error)\n * ```\n */\n getSnapshots(): Promise, SnapshotProps>>\n}\n\nexport interface ContentType\n extends ContentTypeProps,\n DefaultElements,\n ContentTypeApi {}\n\n/**\n * @private\n */\nfunction createContentTypeApi(makeRequest: MakeRequest): ContentTypeApi {\n const getParams = (self: ContentType) => {\n const contentType = self.toPlainObject() as ContentTypeProps\n\n return {\n raw: contentType,\n params: {\n spaceId: contentType.sys.space.sys.id,\n environmentId: contentType.sys.environment.sys.id,\n contentTypeId: contentType.sys.id,\n },\n }\n }\n\n return {\n update: function () {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: raw,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n delete: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'delete',\n params,\n }).then(() => {\n // noop\n })\n },\n\n publish: function () {\n const { raw, params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'publish',\n params,\n payload: raw,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n unpublish: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'ContentType',\n action: 'unpublish',\n params,\n }).then((data) => wrapContentType(makeRequest, data))\n },\n\n getEditorInterface: function () {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'get',\n params,\n }).then((data) => wrapEditorInterface(makeRequest, data))\n },\n\n getSnapshots: function (query: QueryOptions = {}) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getManyForContentType',\n params: { ...params, query },\n }).then((data) => wrapSnapshotCollection(makeRequest, data))\n },\n\n getSnapshot: function (snapshotId: string) {\n const { params } = getParams(this)\n\n return makeRequest({\n entityType: 'Snapshot',\n action: 'getForContentType',\n params: { ...params, snapshotId },\n }).then((data) => wrapSnapshot(makeRequest, data))\n },\n\n isPublished: function () {\n return isPublished(this)\n },\n\n isUpdated: function () {\n return isUpdated(this)\n },\n\n isDraft: function () {\n return isDraft(this)\n },\n\n omitAndDeleteField: function (fieldId: string) {\n const { raw, params } = getParams(this)\n return omitAndDeleteField(makeRequest, { ...params, fieldId }, raw).then((data) =>\n wrapContentType(makeRequest, data)\n )\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw content type data\n * @return Wrapped content type data\n */\nexport function wrapContentType(makeRequest: MakeRequest, data: ContentTypeProps): ContentType {\n const contentType = toPlainObject(copy(data))\n const contentTypeWithMethods = enhanceWithMethods(contentType, createContentTypeApi(makeRequest))\n return freezeSys(contentTypeWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapContentTypeCollection = wrapCollection(wrapContentType)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { MetaSysProps, MetaLinkProps, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport { DefinedParameters } from './widget-parameters'\n\ninterface WidgetConfig {\n /**\n * Type of the widget used\n */\n widgetNamespace?: string\n /**\n * ID of the widget used\n */\n widgetId?: string\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport interface Control extends WidgetConfig {\n /**\n * ID of the customized field\n */\n fieldId: string\n}\n\nexport interface GroupControl extends WidgetConfig {\n /**\n * ID of the customized field group\n */\n groupId: string\n}\n\nexport interface FieldGroupItem {\n groupId: string\n name: string\n items: EditorLayoutItem[]\n}\n\nexport interface FieldItem {\n fieldId: string\n}\n\nexport type EditorLayoutItem = FieldItem | FieldGroupItem\n\nexport interface Editor {\n /**\n * Type of the widget used\n */\n widgetNamespace: string\n /**\n * ID of the widget used\n */\n widgetId: string\n /**\n * Widget will be enabled if disabled property is missing\n */\n disabled?: boolean\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport interface SidebarItem {\n /**\n * Type of the widget used\n */\n widgetNamespace: string\n /**\n * ID of the widget used\n */\n widgetId: string\n /**\n * Widget will be enabled if disabled property is missing\n */\n disabled?: boolean\n /**\n * Instance parameter values\n */\n settings?: DefinedParameters\n}\n\nexport type EditorInterfaceProps = {\n sys: MetaSysProps & {\n space: { sys: MetaLinkProps }\n environment: { sys: MetaLinkProps }\n contentType: { sys: MetaLinkProps }\n }\n /**\n * Array of fields and their associated widgetId\n */\n controls?: Control[]\n /**\n * Array of field groups and their associated widgetId\n */\n groupControls?: GroupControl[]\n /**\n * Array of editors. Defaults will be used if property is missing.\n */\n editors?: Editor[]\n /**\n * Legacy singular editor override\n */\n editor?: Editor\n /**\n * Array of editor layout field groups\n */\n editorLayout?: FieldGroupItem[]\n /**\n * Array of sidebar widgets. Defaults will be used if property is missing.\n */\n sidebar?: SidebarItem[]\n}\n\nexport interface EditorInterface\n extends EditorInterfaceProps,\n DefaultElements {\n /**\n * Gets a control for a specific field\n * @return control object for specific field\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => {\n * control = editorInterface.getControlForField('')\n * console.log(control)\n * })\n * .catch(console.error)\n * ```\n */\n getControlForField(id: string): null | Control\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getContentType(''))\n * .then((contentType) => contentType.getEditorInterface())\n * .then((editorInterface) => {\n * editorInterface.controls[0] = { \"fieldId\": \"title\", \"widgetId\": \"singleLine\"}\n * editorInterface.editors = [\n * { \"widgetId\": \"custom-widget\", \"widgetNamespace\": \"app\" }\n * ]\n * return editorInterface.update()\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createEditorInterfaceApi(makeRequest: MakeRequest) {\n return {\n update: function () {\n const self = this as EditorInterface\n const raw = self.toPlainObject()\n return makeRequest({\n entityType: 'EditorInterface',\n action: 'update',\n params: {\n spaceId: self.sys.space.sys.id,\n environmentId: self.sys.environment.sys.id,\n contentTypeId: self.sys.contentType.sys.id,\n },\n payload: raw,\n }).then((response) => wrapEditorInterface(makeRequest, response))\n },\n\n getControlForField: function (fieldId: string) {\n const self = this as EditorInterface\n const result = (self.controls || []).filter((control) => {\n return control.fieldId === fieldId\n })\n return result && result.length > 0 ? result[0] : null\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapEditorInterface(\n makeRequest: MakeRequest,\n data: EditorInterfaceProps\n): EditorInterface {\n const editorInterface = toPlainObject(copy(data))\n const editorInterfaceWithMethods = enhanceWithMethods(\n editorInterface,\n createEditorInterfaceApi(makeRequest)\n )\n return freezeSys(editorInterfaceWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapEditorInterfaceCollection = wrapCollection(wrapEditorInterface)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n CollectionProp,\n DefaultElements,\n EntityMetaSysProps,\n EntryMetaSysProps,\n KeyValueMap,\n MakeRequest,\n MetadataProps,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport createEntryApi, { ContentfulEntryApi } from '../create-entry-api'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AssetProps } from './asset'\n\nexport type EntryProps = {\n sys: EntryMetaSysProps\n metadata?: MetadataProps\n\n fields: T\n}\n\nexport type CreateEntryProps = Omit, 'sys'>\n\nexport type EntryReferenceError = {\n sys: {\n type: 'error'\n id: 'notResolvable'\n }\n details: {\n type: 'Link'\n linkType: 'Entry' | 'Asset'\n id: string\n }\n}\n\nexport interface EntryReferenceProps extends CollectionProp {\n includes?: {\n Entry?: EntryProps[]\n Asset?: AssetProps[]\n }\n errors?: EntryReferenceError[]\n}\n\nexport type EntryReferenceOptionsProps = {\n include?: number\n}\n\nexport interface Entry extends EntryProps, DefaultElements, ContentfulEntryApi {}\n\nexport type WithResourceName = T extends { sys: infer Sys }\n ? Omit & {\n sys: Sys & { urn: string }\n }\n : never\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw entry data\n * @return Wrapped entry data\n */\nexport function wrapEntry(makeRequest: MakeRequest, data: EntryProps): Entry {\n const entry = toPlainObject(copy(data))\n const entryWithMethods = enhanceWithMethods(entry, createEntryApi(makeRequest))\n return freezeSys(entryWithMethods)\n}\n\n/**\n * Data is also mixed in with link getters if links exist and includes were requested\n * @private\n */\nexport const wrapEntryCollection = wrapCollection(wrapEntry)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport {\n DefaultElements,\n MetaLinkProps,\n BasicMetaSysProps,\n SysLink,\n MakeRequest,\n} from '../common-types'\n\nexport type EnvironmentAliasProps = {\n /**\n * System meta data\n */\n sys: BasicMetaSysProps & { space: SysLink }\n environment: { sys: MetaLinkProps }\n}\n\nexport type CreateEnvironmentAliasProps = Omit\n\nexport interface EnvironmentAlias\n extends EnvironmentAliasProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties. Currently, you can only change the id of the alias's underlying environment. See the example below.\n * @memberof EnvironmentAlias\n * @func update\n * @return {Promise} Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => {\n * alias.environment.sys.id = ''\n * return alias.update()\n * })\n * .then((alias) => console.log(`alias ${alias.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @memberof EnvironmentAlias\n * @func delete\n * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironmentAlias(''))\n * .then((alias) => {\n * return alias.delete()\n * })\n * .then(() => console.log(`Alias deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createEnvironmentAliasApi(makeRequest: MakeRequest) {\n const getParams = (alias: EnvironmentAliasProps) => ({\n spaceId: alias.sys.space.sys.id,\n environmentAliasId: alias.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as EnvironmentAliasProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapEnvironmentAlias(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as EnvironmentAliasProps\n return makeRequest({\n entityType: 'EnvironmentAlias',\n action: 'delete',\n params: getParams(raw),\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw environment alias data\n * @return Wrapped environment alias data\n */\nexport function wrapEnvironmentAlias(\n makeRequest: MakeRequest,\n data: EnvironmentAliasProps\n): EnvironmentAlias {\n const alias = toPlainObject(copy(data))\n const enhancedAlias = enhanceWithMethods(alias, createEnvironmentAliasApi(makeRequest))\n return freezeSys(enhancedAlias)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw environment alias collection data\n * @return Wrapped environment alias collection data\n */\nexport const wrapEnvironmentAliasCollection = wrapCollection(wrapEnvironmentAlias)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n VersionedLink,\n} from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\n\ntype JsonObject = { [Key in string]?: JsonValue }\ntype JsonArray = Array\ntype JsonValue = string | number | boolean | JsonObject | JsonArray | null\n\nenum EnvironmentTemplateInstallationStatuses {\n created = 'created',\n inProgress = 'inProgress',\n failed = 'failed',\n succeeded = 'succeeded',\n disconnected = 'disconnected',\n inRetry = 'inRetry',\n}\n\nexport type EnvironmentTemplateInstallationStatus =\n keyof typeof EnvironmentTemplateInstallationStatuses\n\nexport type EnvironmentTemplateInstallationProps = {\n sys: BasicMetaSysProps & {\n type: 'EnvironmentTemplateInstallation'\n space: Link<'Space'>\n template: VersionedLink<'Template'>\n status: EnvironmentTemplateInstallationStatus\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n createdBy: Link<'User' | 'AppDefinition'>\n updatedBy: Link<'User' | 'AppDefinition'>\n completedAt?: ISO8601Timestamp\n errors?: JsonArray\n environment: Link<'Environment'>\n version: number\n }\n}\n\nexport type CreateEnvironmentTemplateInstallationProps = {\n version: number\n takeover?: {\n items: Link<'ContentType'>[]\n }\n changeSet?: Link<'ChangeSet'>\n}\n\nexport type ValidateEnvironmentTemplateInstallationProps = Omit<\n CreateEnvironmentTemplateInstallationProps,\n 'version'\n>\n\nexport type ValidationFinding = {\n message: string\n details: Record\n}\n\nexport type EnvironmentTemplateValidationProps = {\n sys: {\n type: 'Array'\n environment: Link<'Environment'>\n space: Link<'Space'>\n changeSet: Link<'ChangeSet'>\n }\n items: T[]\n}\n\nexport type EnvironmentTemplateInstallation = EnvironmentTemplateInstallationProps &\n DefaultElements\n\nexport function wrapEnvironmentTemplateInstallation(\n makeRequest: MakeRequest,\n data: EnvironmentTemplateInstallationProps\n): EnvironmentTemplateInstallation {\n const environmentTemplate = toPlainObject(copy(data))\n return freezeSys(environmentTemplate)\n}\n\nexport const wrapEnvironmentTemplateInstallationCollection = wrapCursorPaginatedCollection(\n wrapEnvironmentTemplateInstallation\n)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, Link, MakeRequest, DefaultElements } from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\nimport {\n ContentfulEnvironmentTemplateApi,\n createEnvironmentTemplateApi,\n} from '../create-environment-template-api'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { ContentTypeProps } from './content-type'\nimport { EditorInterfaceProps } from './editor-interface'\n\nexport type Hint = {\n operation: 'renameFieldId'\n fieldId: string\n previousFieldId: string\n}\n\nexport interface EditorInterfaceTemplateProps extends Omit {\n contentTypeTemplate: Link<'ContentTypeTemplate'>\n}\n\nexport interface ContentTypeTemplateProps extends Omit {\n id: string\n basedOn?: {\n space: Link<'Space'>\n environment: Link<'Environment'>\n contentType: Link<'ContentType'>\n }\n hints?: Array\n}\n\nexport type EnvironmentTemplateProps = {\n sys: BasicMetaSysProps & { version: number; organization: Link<'Organization'> }\n name: string\n description?: string\n versionName: string\n versionDescription?: string\n entities: {\n contentTypeTemplates: Array\n editorInterfaceTemplates: Array\n }\n}\n\nexport type CreateEnvironmentTemplateProps = Omit\n\nexport type EnvironmentTemplate = EnvironmentTemplateProps &\n DefaultElements &\n ContentfulEnvironmentTemplateApi\n\nexport function wrapEnvironmentTemplate(\n makeRequest: MakeRequest,\n data: EnvironmentTemplateProps,\n organizationId: string\n): EnvironmentTemplate {\n const environmentTemplate = toPlainObject(copy(data))\n const environmentTemplateApi = createEnvironmentTemplateApi(makeRequest, organizationId)\n const enhancedEnvironmentTemplate = enhanceWithMethods(\n environmentTemplate,\n environmentTemplateApi\n )\n return freezeSys(enhancedEnvironmentTemplate)\n}\n\nexport const wrapEnvironmentTemplateCollection =\n wrapCursorPaginatedCollection(wrapEnvironmentTemplate)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport createEnvironmentApi, { ContentfulEnvironmentAPI } from '../create-environment-api'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, SysLink, BasicMetaSysProps, MakeRequest } from '../common-types'\n\ntype EnvironmentMetaSys = BasicMetaSysProps & {\n status: SysLink\n space: SysLink\n aliases?: Array\n aliasedEnvironment?: SysLink\n}\n\nexport type EnvironmentProps = {\n /**\n * System metadata\n */\n sys: EnvironmentMetaSys\n /**\n * Name of the environment\n */\n name: string\n}\n\nexport type CreateEnvironmentProps = Partial>\n\nexport type Environment = ContentfulEnvironmentAPI &\n EnvironmentProps &\n DefaultElements\n\n/**\n * This method creates the API for the given environment with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with a environment id, so the base path for requests now has the\n * environment id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for a Environment\n * @return\n */\nexport function wrapEnvironment(makeRequest: MakeRequest, data: EnvironmentProps): Environment {\n // do not pollute generated typings\n const environment = toPlainObject(copy(data))\n const environmentApi = createEnvironmentApi(makeRequest)\n const enhancedEnvironment = enhanceWithMethods(environment, environmentApi)\n return freezeSys(enhancedEnvironment)\n}\n\n/**\n * This method wraps each environment in a collection with the environment API. See wrapEnvironment\n * above for more details.\n * @private\n */\nexport const wrapEnvironmentCollection = wrapCollection(wrapEnvironment)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { FieldType } from './field-type'\nimport { DefinedParameters, ParameterDefinition } from './widget-parameters'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\nimport { SetRequired, RequireExactlyOne } from 'type-fest'\n\ntype ExtensionSysProps = BasicMetaSysProps & {\n space: SysLink\n environment: SysLink\n srcdocSha256?: string\n}\n\nexport type ExtensionProps = {\n sys: ExtensionSysProps\n extension: {\n /**\n * Extension name\n */\n name: string\n /**\n * Field types where an extension can be used\n */\n fieldTypes: FieldType[]\n /**\n * URL where the root HTML document of the extension can be found\n */\n src?: string\n /**\n * String representation of the extension (e.g. inline HTML code)\n */\n srcdoc?: string\n /**\n * Parameter definitions\n */\n parameters?: {\n instance?: ParameterDefinition[]\n installation?: ParameterDefinition[]\n }\n /**\n * Controls the location of the extension. If true it will be rendered on the sidebar instead of replacing the field's editing control\n */\n sidebar?: boolean\n }\n /**\n * Values for installation parameters\n */\n parameters?: DefinedParameters\n}\n\nexport type CreateExtensionProps = {\n extension: RequireExactlyOne<\n SetRequired,\n 'src' | 'srcdoc'\n >\n}\n\nexport interface Extension extends ExtensionProps, DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => {\n * extension.extension.name = 'New UI Extension name'\n * return extension.update()\n * })\n * .then((extension) => console.log(`UI Extension ${extension.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUiExtension(''))\n * .then((extension) => extension.delete())\n * .then(() => console.log(`UI Extension deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createExtensionApi(makeRequest: MakeRequest) {\n const getParams = (data: ExtensionProps) => ({\n spaceId: data.sys.space.sys.id,\n environmentId: data.sys.environment.sys.id,\n extensionId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as ExtensionProps\n return makeRequest({\n entityType: 'Extension',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((response) => wrapExtension(makeRequest, response))\n },\n delete: function del() {\n const data = this.toPlainObject() as ExtensionProps\n return makeRequest({\n entityType: 'Extension',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw UI Extension data\n * @return Wrapped UI Extension data\n */\nexport function wrapExtension(makeRequest: MakeRequest, data: ExtensionProps): Extension {\n const extension = toPlainObject(copy(data))\n const extensionWithMethods = enhanceWithMethods(extension, createExtensionApi(makeRequest))\n return freezeSys(extensionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapExtensionCollection = wrapCollection(wrapExtension)\n","import * as apiKey from './api-key'\nimport * as appAction from './app-action'\nimport * as appActionCall from './app-action-call'\nimport * as appBundle from './app-bundle'\nimport * as appDefinition from './app-definition'\nimport * as appDetails from './app-details'\nimport * as appInstallation from './app-installation'\nimport * as appSignedRequest from './app-signed-request'\nimport * as appSigningSecret from './app-signing-secret'\nimport * as appEventSubscription from './app-event-subscription'\nimport * as appKey from './app-key'\nimport * as appAccessToken from './app-access-token'\nimport * as appUpload from './app-upload'\nimport * as asset from './asset'\nimport * as assetKey from './asset-key'\nimport * as bulkAction from './bulk-action'\nimport * as comment from './comment'\nimport * as contentType from './content-type'\nimport * as editorInterface from './editor-interface'\nimport * as entry from './entry'\nimport * as environment from './environment'\nimport * as environmentAlias from './environment-alias'\nimport * as environmentTemplate from './environment-template'\nimport * as environmentTemplateInstallation from './environment-template-installation'\nimport * as extension from './extension'\nimport * as locale from './locale'\nimport * as organization from './organization'\nimport * as organizationInvitation from './organization-invitation'\nimport * as organizationMembership from './organization-membership'\nimport * as personalAccessToken from './personal-access-token'\nimport * as accessToken from './access-token'\nimport * as previewApiKey from './preview-api-key'\nimport * as release from './release'\nimport * as releaseAction from './release-action'\nimport * as role from './role'\nimport * as scheduledAction from './scheduled-action'\nimport * as snapshot from './snapshot'\nimport * as space from './space'\nimport * as spaceMember from './space-member'\nimport * as spaceMembership from './space-membership'\nimport * as tag from './tag'\nimport * as task from './task'\nimport * as team from './team'\nimport * as teamMembership from './team-membership'\nimport * as teamSpaceMembership from './team-space-membership'\nimport * as uiConfig from './ui-config'\nimport * as upload from './upload'\nimport * as usage from './usage'\nimport * as user from './user'\nimport * as userUIConfig from './user-ui-config'\nimport * as webhook from './webhook'\nimport * as workflowDefinition from './workflow-definition'\n\nexport default {\n accessToken,\n appAction,\n appActionCall,\n appBundle,\n apiKey,\n appDefinition,\n appInstallation,\n appUpload,\n appDetails,\n appSignedRequest,\n appSigningSecret,\n appEventSubscription,\n appKey,\n appAccessToken,\n asset,\n assetKey,\n bulkAction,\n comment,\n contentType,\n editorInterface,\n entry,\n environment,\n environmentAlias,\n environmentTemplate,\n environmentTemplateInstallation,\n extension,\n locale,\n organization,\n organizationInvitation,\n organizationMembership,\n personalAccessToken,\n previewApiKey,\n release,\n releaseAction,\n role,\n scheduledAction,\n snapshot,\n space,\n spaceMember,\n spaceMembership,\n tag,\n task,\n team,\n teamMembership,\n teamSpaceMembership,\n uiConfig,\n upload,\n usage,\n user,\n userUIConfig,\n webhook,\n workflowDefinition,\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport { Except, SetOptional } from 'type-fest'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'\n\nexport type LocaleProps = {\n sys: BasicMetaSysProps & { space: SysLink; environment: SysLink }\n /**\n * Locale name\n */\n name: string\n /**\n * Locale code (example: en-us)\n */\n code: string\n /**\n * Internal locale code\n */\n internal_code: string\n /**\n * Locale code to fallback to when there is not content for the current locale\n */\n fallbackCode: string | null\n /**\n * If the content under this locale should be available on the CDA (for public reading)\n */\n contentDeliveryApi: boolean\n /**\n * If the content under this locale should be available on the CMA (for editing)\n */\n contentManagementApi: boolean\n /**\n * If this is the default locale\n */\n default: boolean\n /**\n * If the locale needs to be filled in on entries or not\n */\n optional: boolean\n}\n\nexport type CreateLocaleProps = Omit<\n SetOptional<\n Except,\n 'optional' | 'contentManagementApi' | 'default' | 'contentDeliveryApi'\n >,\n 'internal_code'\n>\n\nexport interface Locale extends LocaleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => locale.delete())\n * .then(() => console.log(`locale deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getLocale(''))\n * .then((locale) => {\n * locale.name = 'New locale name'\n * return locale.update()\n * })\n * .then((locale) => console.log(`locale ${locale.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createLocaleApi(makeRequest: MakeRequest) {\n const getParams = (locale: LocaleProps) => ({\n spaceId: locale.sys.space.sys.id,\n environmentId: locale.sys.environment.sys.id,\n localeId: locale.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as LocaleProps\n return makeRequest({\n entityType: 'Locale',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapLocale(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as LocaleProps\n return makeRequest({\n entityType: 'Locale',\n action: 'delete',\n params: getParams(raw),\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw locale data\n * @return Wrapped locale data\n */\nexport function wrapLocale(makeRequest: MakeRequest, data: LocaleProps): Locale {\n delete (data as SetOptional).internal_code\n const locale = toPlainObject(copy(data))\n const localeWithMethods = enhanceWithMethods(locale, createLocaleApi(makeRequest))\n return freezeSys(localeWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapLocaleCollection = wrapCollection(wrapLocale)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\n\nexport type OrganizationInvitationProps = {\n sys: MetaSysProps & {\n organizationMembership: { sys: MetaLinkProps }\n user: Record | null\n invitationUrl: string\n status: string\n }\n firstName: string\n lastName: string\n email: string\n role: string\n}\n\nexport type CreateOrganizationInvitationProps = Omit\n\nexport interface OrganizationInvitation\n extends OrganizationInvitationProps,\n DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw invitation data\n * @return {OrganizationInvitation} Wrapped Inviation data\n */\nexport function wrapOrganizationInvitation(\n _makeRequest: MakeRequest,\n data: OrganizationInvitationProps\n): OrganizationInvitation {\n const invitation = toPlainObject(copy(data))\n return freezeSys(invitation)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type OrganizationMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { user: { sys: MetaLinkProps } }\n\n /**\n * Role\n */\n role: string\n\n /**\n * status\n */\n status: boolean\n}\n\nexport interface OrganizationMembership\n extends OrganizationMembershipProps,\n DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => {\n * organizationMembership.role = 'member';\n * organizationMembership.update();\n * })\n * .catch(console.error)\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @example```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((organizationMembership) => {\n * organizationMembership.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createOrganizationMembershipApi(makeRequest: MakeRequest, organizationId: string) {\n const getParams = (data: OrganizationMembershipProps) => ({\n organizationMembershipId: data.sys.id,\n organizationId,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as OrganizationMembershipProps\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapOrganizationMembership(makeRequest, data, organizationId))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as OrganizationMembershipProps\n return makeRequest({\n entityType: 'OrganizationMembership',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param {function} makeRequest - function to make requests via an adapter\n * @param {Object} data - Raw organization membership data\n * @return {OrganizationMembership} Wrapped organization membership data\n */\nexport function wrapOrganizationMembership(\n makeRequest: MakeRequest,\n data: OrganizationMembershipProps,\n organizationId: string\n): OrganizationMembership {\n const organizationMembership = toPlainObject(copy(data))\n const organizationMembershipWithMethods = enhanceWithMethods(\n organizationMembership,\n createOrganizationMembershipApi(makeRequest, organizationId)\n )\n return freezeSys(organizationMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapOrganizationMembershipCollection = wrapCollection(wrapOrganizationMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport createOrganizationApi, { ContentfulOrganizationAPI } from '../create-organization-api'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type Organization = DefaultElements &\n OrganizationProp &\n ContentfulOrganizationAPI\n\nexport type OrganizationProp = {\n /**\n * System metadata\n */\n sys: MetaSysProps\n /**\n * Name\n */\n name: string\n}\n\n/**\n * This method creates the API for the given organization with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with an organization id, so the base path for requests now has the\n * organization id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for an Organization\n * @return {Organization}\n */\nexport function wrapOrganization(makeRequest: MakeRequest, data: OrganizationProp): Organization {\n const org = toPlainObject(copy(data))\n const orgApi = createOrganizationApi(makeRequest)\n const enhancedOrganization = enhanceWithMethods(org, orgApi)\n return freezeSys(enhancedOrganization)\n}\n\n/**\n * This method normalizes each organization in a collection.\n * @private\n */\nexport const wrapOrganizationCollection = wrapCollection(wrapOrganization)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type PersonalAccessTokenProp = {\n sys: MetaSysProps & { expiresAt?: string }\n name: string\n scopes: 'content_management_manage'[]\n revokedAt: null | string\n token?: string\n}\n\nexport type CreatePersonalAccessTokenProps = Pick & {\n expiresIn?: number\n}\n\nexport interface PersonalAccessToken\n extends PersonalAccessTokenProp,\n DefaultElements {\n /**\n * Revokes a personal access token\n * @return Object the revoked personal access token\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: \n * })\n *\n * client.getPersonalAccessToken('')\n * .then((personalAccessToken) => {\n * return personalAccessToken.revoke()\n * })\n * .catch(console.error)\n * ```\n */\n revoke(): Promise\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw personal access token data\n * @return Wrapped personal access token\n */\nexport function wrapPersonalAccessToken(\n makeRequest: MakeRequest,\n data: PersonalAccessTokenProp\n): PersonalAccessToken {\n const personalAccessToken = toPlainObject(copy(data))\n const personalAccessTokenWithMethods = enhanceWithMethods(personalAccessToken, {\n revoke: function () {\n return makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'revoke',\n params: { tokenId: data.sys.id },\n }).then((data) => wrapPersonalAccessToken(makeRequest, data))\n },\n })\n return freezeSys(personalAccessTokenWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw personal access collection data\n * @return Wrapped personal access token collection data\n */\nexport const wrapPersonalAccessTokenCollection = wrapCollection(wrapPersonalAccessToken)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type PreviewApiKeyProps = {\n sys: MetaSysProps\n name: string\n description: string\n accessToken: string\n}\n\nexport interface PreviewApiKey extends PreviewApiKeyProps, DefaultElements {}\n\n/**\n * @private\n */\nfunction createPreviewApiKeyApi() {\n return {}\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw api key data\n * @return Wrapped preview api key data\n */\nexport function wrapPreviewApiKey(\n _makeRequest: MakeRequest,\n data: PreviewApiKeyProps\n): PreviewApiKey {\n const previewApiKey = toPlainObject(copy(data))\n const previewApiKeyWithMethods = enhanceWithMethods(previewApiKey, createPreviewApiKeyApi())\n return freezeSys(previewApiKeyWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapPreviewApiKeyCollection = wrapCollection(wrapPreviewApiKey)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, ISO8601Timestamp, Link, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport { AsyncActionProcessingOptions, pollAsyncActionStatus } from '../methods/action'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ntype ReleaseActionStatuses = 'created' | 'inProgress' | 'failed' | 'succeeded'\nexport type ReleaseActionTypes = 'publish' | 'unpublish' | 'validate'\n\nexport type ReleaseActionSysProps = {\n id: string\n type: 'ReleaseAction'\n space: Link<'Space'>\n environment: Link<'Environment'>\n release: Link<'Release'>\n status: ReleaseActionStatuses\n createdBy: Link<'User'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n}\n\n/** The object returned by the Releases API */\nexport interface ReleaseActionProps {\n action: T\n sys: ReleaseActionSysProps\n}\n\nexport interface ReleaseActionQueryOptions {\n /** Find Release Actions by using a comma-separated list of Ids */\n 'sys.id[in]'?: string\n 'sys.release.sys.id[in]'?: string\n 'sys.status[in]'?: string\n 'sys.status[nin]'?: string\n action?: ReleaseActionTypes\n /** Get unique results by this field. Currently supports `sys.release.sys.id` */\n uniqueBy?: string\n\n /** @default -sys.updatedAt */\n order?: string\n /**\n * Limit of how many records are returned in the query result\n * @default 100\n * */\n limit?: number\n}\n\nexport interface ReleaseActionApiMethods {\n /** Performs a new GET request and returns the wrapper Release */\n get(): ReleaseAction\n /** Waits until the Release Action has either succeeded or failed */\n waitProcessing(options?: AsyncActionProcessingOptions): ReleaseAction\n}\n\n/**\n * @private\n */\nfunction createReleaseActionApi(makeRequest: MakeRequest) {\n const getParams = (self: ReleaseAction) => {\n const action = self.toPlainObject()\n\n return {\n spaceId: action.sys.space.sys.id,\n environmentId: action.sys.environment.sys.id,\n releaseId: action.sys.release.sys.id,\n actionId: action.sys.id,\n }\n }\n\n return {\n async get() {\n const params = getParams(this)\n return makeRequest({\n entityType: 'ReleaseAction',\n action: 'get',\n params,\n }).then((releaseAction) => wrapReleaseAction(makeRequest, releaseAction))\n },\n\n /** Waits for a Release Action to complete */\n async waitProcessing(options?: AsyncActionProcessingOptions): Promise {\n return pollAsyncActionStatus(async () => this.get(), options)\n },\n }\n}\n\nexport interface ReleaseAction\n extends ReleaseActionProps,\n ReleaseActionApiMethods,\n DefaultElements> {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw Release data\n * @return Wrapped Release data\n */\nexport function wrapReleaseAction(\n makeRequest: MakeRequest,\n data: ReleaseActionProps\n): ReleaseAction {\n const releaseAction = toPlainObject(copy(data))\n const releaseActionWithApiMethods = enhanceWithMethods(\n releaseAction as any,\n createReleaseActionApi(makeRequest)\n )\n return freezeSys(releaseActionWithApiMethods)\n}\n\n/**\n * @private\n */\nexport const wrapReleaseActionCollection = wrapCollection(wrapReleaseAction)\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BaseCollection,\n CursorPaginatedCollection,\n CursorPaginatedCollectionProp,\n DefaultElements,\n ISO8601Timestamp,\n Link,\n MakeRequest,\n MakeRequestPayload,\n ScheduledActionReferenceFilters,\n} from '../common-types'\nimport { wrapCursorPaginatedCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { AsyncActionProcessingOptions } from '../methods/action'\nimport { ReleaseAction, wrapReleaseAction } from './release-action'\n\n/** Entity types supported by the Release API */\ntype Entity = 'Entry' | 'Asset'\ntype ReleaseStatus = 'active' | 'archived'\n\nexport interface ReleaseQueryOptions {\n /** Find releases filtered by the Entity type (Asset, Entry) */\n 'entities.sys.linkType'?: string\n /** Find releases containing the specified, comma-separated entities. Requires `entities.sys.linkType` */\n 'entities.sys.id[in]'?: string\n\n /** Comma-separated list of ids to exclude from the query */\n 'sys.id[nin]'?: string\n\n /** Comma-separated list of Ids to find (inclusion) */\n 'sys.id[in]'?: string\n\n /** Comma-separated list of user Ids to find releases by creator */\n 'sys.createdBy.sys.id[in]'?: string\n\n /** Comma-separated filter (inclusion) by Release status (active, archived) */\n 'sys.status[in]'?: ReleaseStatus\n\n /** Comma-separated filter (exclusion) by Release status (active, archived) */\n 'sys.status[nin]'?: ReleaseStatus\n\n /** Find releases using full text phrase and term matching */\n 'title[match]'?: string\n\n /** Filter by empty Releases (exists=false) or Releases with items (exists=true) */\n 'entities[exists]'?: boolean\n\n /** If present, will return results based on a pagination cursor */\n pageNext?: string\n /**\n * Limit how many records are returned in the result\n * @default 100\n * */\n limit?: number\n /**\n * Order releases\n * Supported values include\n * - `title`, `-title`\n * - `sys.updatedAt`, `-sys.updatedAt`\n * - `sys.createdAt`, `-sys.createdAt`\n * @default -sys.updatedAt\n * */\n order?: string\n}\n\nexport type ReleaseSysProps = {\n id: string\n type: 'Release'\n version: number\n status: ReleaseStatus\n space: Link<'Space'>\n environment: Link<'Environment'>\n archivedBy?: Link<'User'>\n archivedAt?: ISO8601Timestamp\n createdBy: Link<'User'> | Link<'AppDefinition'>\n updatedBy: Link<'User'> | Link<'AppDefinition'>\n createdAt: ISO8601Timestamp\n updatedAt: ISO8601Timestamp\n lastAction?: Link<'ReleaseAction'>\n}\nexport type ReleaseReferenceFilters = ScheduledActionReferenceFilters\nexport const ReleaseReferenceFilters = ScheduledActionReferenceFilters\n\nexport type ReleaseMetadata = {\n withReferences: {\n entity: Link<'Entry'>\n filter: Record\n }[]\n}\n\n/** The object returned by the Releases API */\nexport interface ReleaseProps {\n title: string\n sys: ReleaseSysProps\n entities: BaseCollection>\n metadata?: ReleaseMetadata\n}\n\nexport interface ReleasePayload extends MakeRequestPayload {\n title: string\n entities: BaseCollection>\n}\n\nexport interface ReleaseValidatePayload {\n action?: 'publish'\n}\n\nexport interface ReleaseValidateOptions {\n payload?: ReleaseValidatePayload\n processingOptions?: AsyncActionProcessingOptions\n}\n\nexport interface ReleaseApiMethods {\n /**\n * Archives a release and locks any actions such as adding new entities or publishing/unpublishing.\n * This operation increases the sys.version property\n * @throws {BadRequest} if the release is already archived\n * */\n\n archive(): Promise\n /**\n * Unarchives an `archived` release and unlocks operations on the Release. This operation increases the sys.version property\n * @throws {BadRequest} if the release is not archived\n * */\n unarchive(): Promise\n /** Updates a Release and returns the updated Release object */\n update(payload: ReleasePayload): Promise\n /** Deletes a Release and all ReleaseActions linked to it (non-reversible) */\n delete(): Promise\n /** Publishes a Release and waits until the asynchronous action is completed */\n publish(options?: AsyncActionProcessingOptions): Promise>\n /** Unpublishes a Release and waits until the asynchronous action is completed */\n unpublish(options?: AsyncActionProcessingOptions): Promise>\n /** Validates a Release and waits until the asynchronous action is completed */\n validate({\n payload,\n options,\n }?: {\n payload?: ReleaseValidatePayload\n options?: AsyncActionProcessingOptions\n }): Promise>\n}\n\n/**\n * @private\n */\nfunction createReleaseApi(makeRequest: MakeRequest): ReleaseApiMethods {\n const getParams = (self: Release) => {\n const release = self.toPlainObject()\n\n return {\n spaceId: release.sys.space.sys.id,\n environmentId: release.sys.environment.sys.id,\n releaseId: release.sys.id,\n version: release.sys.version,\n }\n }\n\n return {\n async archive() {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'archive',\n params,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async unarchive() {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'unarchive',\n params,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async update(payload: ReleasePayload) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'update',\n params,\n payload,\n }).then((release) => wrapRelease(makeRequest, release))\n },\n async delete() {\n const params = getParams(this)\n\n await makeRequest({\n entityType: 'Release',\n action: 'delete',\n params,\n })\n },\n\n async publish(options?: AsyncActionProcessingOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'publish',\n params,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options))\n },\n\n async unpublish(options?: AsyncActionProcessingOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'unpublish',\n params,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options))\n },\n\n async validate(options?: ReleaseValidateOptions) {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'Release',\n action: 'validate',\n params,\n payload: options?.payload,\n })\n .then((data) => wrapReleaseAction(makeRequest, data))\n .then((action) => action.waitProcessing(options?.processingOptions))\n },\n }\n}\n\nexport interface Release extends ReleaseProps, ReleaseApiMethods, DefaultElements {}\n\n/**\n * Return a Release object enhanced with its own API helper functions.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw Release data\n * @return Wrapped Release data\n */\nexport function wrapRelease(makeRequest: MakeRequest, data: ReleaseProps): Release {\n const release = toPlainObject(copy(data))\n const releaseWithApiMethods = enhanceWithMethods(\n release as any,\n createReleaseApi(makeRequest) as any\n )\n return freezeSys(releaseWithApiMethods)\n}\n\n/**\n * @private\n */\nexport const wrapReleaseCollection: (\n makeRequest: MakeRequest,\n data: CursorPaginatedCollectionProp\n) => CursorPaginatedCollection = wrapCursorPaginatedCollection(wrapRelease)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'\n\nexport type ActionType =\n | 'read'\n | 'create'\n | 'update'\n | 'delete'\n | 'publish'\n | 'unpublish'\n | 'archive'\n | 'unarchive'\n\ntype ConditionType = 'and' | 'or' | 'not' | 'equals'\nexport type ConstraintType = {\n [key in ConditionType]?: ConstraintType[] | any\n}\n\nexport type RoleProps = {\n sys: BasicMetaSysProps & { space: SysLink }\n name: string\n description?: string\n /**\n * Permissions for application sections\n */\n permissions: {\n ContentDelivery: string[] | string\n ContentModel: string[]\n EnvironmentAliases: string[] | string\n Environments: string[] | string\n Settings: string[] | string\n Tags: string[] | string\n }\n policies: {\n effect: string\n actions: ActionType[] | 'all'\n constraint: ConstraintType\n }[]\n}\n\nexport type CreateRoleProps = Omit\n\nexport interface Role extends RoleProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @memberof Role\n * @func delete\n * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRole(''))\n * .then((role) => role.delete())\n * .then((role) => console.log(`role deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getRole(''))\n * .then((roles) => {\n * roles.name = 'New role name'\n * return roles.update()\n * })\n * .then((roles) => console.log(`roles ${roles.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createRoleApi(makeRequest: MakeRequest) {\n const getParams = (data: RoleProps) => ({\n spaceId: data.sys.space.sys.id,\n roleId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as RoleProps\n return makeRequest({\n entityType: 'Role',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapRole(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as RoleProps\n return makeRequest({\n entityType: 'Role',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw role data\n * @return Wrapped role data\n */\nexport function wrapRole(makeRequest: MakeRequest, data: RoleProps): Role {\n const role = toPlainObject(copy(data))\n const roleWithMethods = enhanceWithMethods(role, createRoleApi(makeRequest))\n return freezeSys(roleWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapRoleCollection = wrapCollection(wrapRole)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n ISO8601Timestamp,\n MetaLinkProps,\n Link,\n MakeRequest,\n SysLink,\n ScheduledActionReferenceFilters,\n BasicCursorPaginationOptions,\n CollectionProp,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n/**\n * Represents that state of the scheduled action\n */\nenum ScheduledActionStatus {\n /** action is pending execution */\n scheduled = 'scheduled',\n /** action has been started and pending completion */\n inProgress = 'inProgress',\n /** action was completed successfully (terminal state) */\n succeeded = 'succeeded',\n /** action failed to complete (terminal state) */\n failed = 'failed',\n /** action was canceled by a user (terminal state) */\n canceled = 'canceled',\n}\n\ntype SchedulableEntityType = 'Entry' | 'Asset' | 'Release'\ntype SchedulableActionType = 'publish' | 'unpublish'\n\ntype ErrorDetail = { error: any }\ninterface ScheduledActionFailedError {\n sys: {\n type: 'Error'\n id: string\n }\n message?: string\n details?: { errors: ErrorDetail[] }\n}\n\nexport interface CursorPaginatedCollectionProp\n extends Omit, 'total' | 'skip'> {\n pages?: BasicCursorPaginationOptions\n}\n\nexport type ScheduledActionSysProps = {\n id: string\n type: 'ScheduledAction'\n version: number\n space: SysLink\n status: ScheduledActionStatus\n createdAt: ISO8601Timestamp\n createdBy: Link<'User'> | Link<'AppDefinition'>\n /** an ISO8601 date string representing when an action was moved to canceled */\n canceledAt?: ISO8601Timestamp\n canceledBy?: Link<'User'> | Link<'AppDefinition'>\n /** an ISO8601 date string representing when an action was updated */\n updatedAt: ISO8601Timestamp\n updatedBy: Link<'User'> | Link<'AppDefinition'>\n}\n\nexport type ScheduledActionPayloadProps = {\n withReferences?: Record\n}\n\nexport type ScheduledActionProps = {\n sys: ScheduledActionSysProps\n action: SchedulableActionType\n entity: Link\n environment?: { sys: MetaLinkProps }\n scheduledFor: {\n datetime: ISO8601Timestamp\n /**\n * A valid IANA timezone Olson identifier\n *\n * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\n * @example 'Asia/Kolkata'\n */\n timezone?: string\n }\n /**\n * The Contentful-style error that occurred during execution if sys.status is failed\n *\n * @example\n * {\n * sys: {\n * type: 'Error',\n * id: 'InvalidEntry'\n * },\n * message: 'Entry is invalid',\n * details: {\n * errors: [...]\n * }\n * }\n */\n error?: ScheduledActionFailedError\n payload?: ScheduledActionPayloadProps\n}\n\nexport type CreateUpdateScheduledActionProps = Pick<\n ScheduledActionProps,\n 'action' | 'entity' | 'environment' | 'scheduledFor' | 'payload'\n>\n\nexport type ScheduledActionCollection = CursorPaginatedCollectionProp\n\nexport interface ScheduledActionQueryOptions {\n 'environment.sys.id': string\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any\n limit?: number\n next?: string\n prev?: string\n}\n\nexport type ScheduledActionApi = {\n delete(): Promise\n update(): Promise\n}\n\nexport interface ScheduledAction\n extends ScheduledActionProps,\n DefaultElements,\n ScheduledActionApi {}\n\nexport default function getInstanceMethods(makeRequest: MakeRequest): ScheduledActionApi {\n const getParams = (self: ScheduledAction) => {\n const scheduledAction = self.toPlainObject()\n return {\n spaceId: scheduledAction.sys.space.sys.id,\n environmentId: scheduledAction.environment?.sys.id as string,\n scheduledActionId: scheduledAction.sys.id,\n version: scheduledAction.sys.version,\n }\n }\n\n return {\n /**\n * Cancels the current Scheduled Action schedule.\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => scheduledAction.delete())\n * .then((deletedScheduledAction) => console.log(deletedScheduledAction))\n * .catch(console.error);\n * ```\n */\n async delete(): Promise {\n const params = getParams(this)\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'delete',\n params,\n }).then((data) => wrapScheduledAction(makeRequest, data))\n },\n /**\n * Update the current scheduled action. Currently, only changes made to the `scheduledFor` property will be saved.\n *\n * @example ```javascript\n * const contentful = require('contentful-management');\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => {\n * return space.createScheduledAction({\n * entity: {\n * sys: {\n * type: 'Link',\n * linkType: 'Entry',\n * id: ''\n * }\n * },\n * environment: {\n * sys: {\n * type: 'Link',\n * linkType: 'Environment',\n * id: ''\n * }\n * },\n * action: 'publish',\n * scheduledFor: {\n * datetime: ,\n * timezone: 'Europe/Berlin'\n * }\n * })\n * .then((scheduledAction) => {\n * scheduledAction.scheduledFor.timezone = 'Europe/Paris';\n * return scheduledAction.update();\n * })\n * .then((scheduledAction) => console.log(scheduledAction))\n * .catch(console.error);\n * ```\n */\n async update(): Promise {\n const params = getParams(this)\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { sys, ...payload } = this.toPlainObject()\n\n return makeRequest({\n entityType: 'ScheduledAction',\n action: 'update',\n params,\n payload,\n }).then((data) => wrapScheduledAction(makeRequest, data))\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapScheduledAction(\n makeRequest: MakeRequest,\n data: ScheduledActionProps\n): ScheduledAction {\n const scheduledAction = toPlainObject(copy(data))\n const scheduledActionWithMethods = enhanceWithMethods(\n scheduledAction,\n getInstanceMethods(makeRequest)\n )\n return freezeSys(scheduledActionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapScheduledActionCollection = wrapCollection(wrapScheduledAction)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type SnapshotProps = {\n sys: MetaSysProps & {\n snapshotType: string\n snapshotEntityType: string\n }\n snapshot: T\n}\n\nexport interface Snapshot extends SnapshotProps, DefaultElements> {}\n\n/**\n * @private\n */\nfunction createSnapshotApi() {\n return {\n /* In case the snapshot object evolve later */\n }\n}\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw snapshot data\n * @return Wrapped snapshot data\n */\nexport function wrapSnapshot(_makeRequest: MakeRequest, data: SnapshotProps): Snapshot {\n const snapshot = toPlainObject(copy(data))\n const snapshotWithMethods = enhanceWithMethods(snapshot, createSnapshotApi())\n return freezeSys(snapshotWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw snapshot collection data\n * @return Wrapped snapshot collection data\n */\nexport const wrapSnapshotCollection = wrapCollection(wrapSnapshot)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'\nimport { wrapCollection } from '../common-utils'\n\nexport type SpaceMemberProps = {\n sys: MetaSysProps\n /**\n * User is an admin\n */\n admin: boolean\n /**\n * Array of Role Links\n */\n roles: { sys: MetaLinkProps }[]\n}\n\nexport interface SpaceMember extends SpaceMemberProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space member data\n * @return Wrapped space member data\n */\nexport function wrapSpaceMember(_makeRequest: MakeRequest, data: SpaceMemberProps) {\n const spaceMember = toPlainObject(copy(data))\n return freezeSys(spaceMember)\n}\n\n/**\n * @private\n */\nexport const wrapSpaceMemberCollection = wrapCollection(wrapSpaceMember)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { SysLink, MetaSysProps, DefaultElements, MakeRequest } from '../common-types'\n\nexport type SpaceMembershipProps = {\n sys: MetaSysProps & { space: SysLink; user: SysLink }\n user: SysLink\n admin: boolean\n roles: SysLink[]\n}\n\nexport type CreateSpaceMembershipProps = Omit & {\n email: string\n}\n\nexport interface SpaceMembership\n extends SpaceMembershipProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership(''))\n * .then((spaceMembership) => spaceMembership.delete())\n * .then(() => console.log(`spaceMembership deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getSpaceMembership(''))\n * .then((spaceMembership) => {\n * spaceMembership.name = 'new space membership name'\n * })\n * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createSpaceMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: SpaceMembershipProps) => ({\n spaceId: data.sys.space.sys.id,\n spaceMembershipId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as SpaceMembershipProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapSpaceMembership(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as SpaceMembershipProps\n return makeRequest({\n entityType: 'SpaceMembership',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space membership data\n * @return Wrapped space membership data\n */\nexport function wrapSpaceMembership(\n makeRequest: MakeRequest,\n data: SpaceMembershipProps\n): SpaceMembership {\n const spaceMembership = toPlainObject(copy(data))\n const spaceMembershipWithMethods = enhanceWithMethods(\n spaceMembership,\n createSpaceMembershipApi(makeRequest)\n )\n return freezeSys(spaceMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapSpaceMembershipCollection = wrapCollection(wrapSpaceMembership)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport createSpaceApi, { ContentfulSpaceAPI } from '../create-space-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type SpaceProps = {\n sys: BasicMetaSysProps & { organization: { sys: { id: string } } }\n name: string\n}\n\nexport type Space = SpaceProps & DefaultElements & ContentfulSpaceAPI\n\n/**\n * This method creates the API for the given space with all the methods for\n * reading and creating other entities. It also passes down a clone of the\n * http client with a space id, so the base path for requests now has the\n * space id already set.\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - API response for a Space\n * @return {Space}\n */\nexport function wrapSpace(makeRequest: MakeRequest, data: SpaceProps): Space {\n const space = toPlainObject(copy(data))\n const spaceApi = createSpaceApi(makeRequest)\n const enhancedSpace = enhanceWithMethods(space, spaceApi)\n return freezeSys(enhancedSpace)\n}\n\n/**\n * This method wraps each space in a collection with the space API. See wrapSpace\n * above for more details.\n * @private\n */\nexport const wrapSpaceCollection = wrapCollection(wrapSpace)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type TagVisibility = 'private' | 'public'\n\nexport type TagSysProps = Pick<\n MetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Tag'\n visibility: TagVisibility\n space: SysLink\n environment: SysLink\n}\n\nexport type TagProps = {\n sys: TagSysProps\n name: string\n}\n\nexport type CreateTagProps = Omit & { sys: Pick }\nexport type UpdateTagProps = Omit & { sys: Pick }\n\nexport type DeleteTagParams = GetTagParams & { version: number }\n\nexport type TagCollectionProps = {\n sys: {\n type: 'Array'\n }\n items: TagProps[]\n total: number\n}\n\nexport interface TagCollection {\n items: Tag[]\n total: number\n}\n\ntype TagApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Tag extends TagProps, DefaultElements, TagApi {}\n\n/**\n * @private\n */\nexport default function createTagApi(makeRequest: MakeRequest): TagApi {\n const getParams = (tag: TagProps) => ({\n spaceId: tag.sys.space.sys.id,\n environmentId: tag.sys.environment.sys.id,\n tagId: tag.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TagProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTag(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as TagProps\n\n return makeRequest({\n entityType: 'Tag',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapTag(makeRequest: MakeRequest, data: TagProps): Tag {\n const tag = toPlainObject(copy(data))\n const tagWithMethods = enhanceWithMethods(tag, createTagApi(makeRequest))\n return freezeSys(tagWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTagCollection = wrapCollection(wrapTag)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetEntryParams,\n GetTaskParams,\n Link,\n MakeRequest,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type TaskStatus = 'active' | 'resolved'\n\nexport type TaskSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'Task'\n space: SysLink\n environment: SysLink\n parentEntity: Link<'Entry'>\n}\n\nexport type TaskProps = {\n sys: TaskSysProps\n body: string\n assignedTo: Link<'User' | 'Team'>\n status: TaskStatus\n dueDate?: string\n}\n\nexport type CreateTaskProps = Omit\nexport type UpdateTaskProps = Omit & { sys: Pick }\n\nexport type CreateTaskParams = GetEntryParams\nexport type UpdateTaskParams = GetTaskParams\nexport type DeleteTaskParams = GetTaskParams & { version: number }\n\ntype TaskApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface Task extends TaskProps, DefaultElements, TaskApi {}\n\n/**\n * @private\n */\nexport default function createTaskApi(makeRequest: MakeRequest): TaskApi {\n const getParams = (task: TaskProps): GetTaskParams => ({\n spaceId: task.sys.space.sys.id,\n environmentId: task.sys.environment.sys.id,\n entryId: task.sys.parentEntity.sys.id,\n taskId: task.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TaskProps\n\n return makeRequest({\n entityType: 'Task',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTask(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as TaskProps\n\n return makeRequest({\n entityType: 'Task',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapTask(makeRequest: MakeRequest, data: TaskProps): Task {\n const task = toPlainObject(copy(data))\n const taskWithMethods = enhanceWithMethods(task, createTaskApi(makeRequest))\n return freezeSys(taskWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTaskCollection = wrapCollection(wrapTask)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type TeamMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & {\n team: { sys: MetaLinkProps }\n organization: { sys: MetaLinkProps }\n organizationMembership: { sys: MetaLinkProps }\n }\n\n /**\n * Is admin\n */\n admin: boolean\n\n /**\n * Organization membership id\n */\n organizationMembershipId: string\n}\n\nexport type CreateTeamMembershipProps = Omit\n\nexport interface TeamMembership extends TeamMembershipProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then(org => org.getTeamMembership('teamId', 'teamMembershipId'))\n * .then((teamMembership) => {\n * teamMembership.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organizationId')\n * .then(org => org.getTeamMembership('teamId', 'teamMembershipId'))\n * .then((teamMembership) => {\n * teamMembership.admin = true;\n * teamMembership.update();\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamMembershipProps) => ({\n teamMembershipId: data.sys.id,\n teamId: data.sys.team.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TeamMembershipProps\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeamMembership(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as TeamMembershipProps\n return makeRequest({\n entityType: 'TeamMembership',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw team membership data\n * @return Wrapped team membership data\n */\nexport function wrapTeamMembership(\n makeRequest: MakeRequest,\n data: TeamMembershipProps\n): TeamMembership {\n const teamMembership = toPlainObject(copy(data))\n const teamMembershipWithMethods = enhanceWithMethods(\n teamMembership,\n createTeamMembershipApi(makeRequest)\n )\n return freezeSys(teamMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamMembershipCollection = wrapCollection(wrapTeamMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport {\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n MetaSysProps,\n QueryOptions,\n} from '../common-types'\n\nexport interface Options {\n teamId?: string\n query?: QueryOptions\n}\n\nexport type TeamSpaceMembershipProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { team: { sys: MetaLinkProps }; space: { sys: MetaLinkProps } }\n\n /**\n * Is admin\n */\n admin: boolean\n\n /**\n * Roles\n */\n roles: { sys: MetaLinkProps }[]\n}\n\nexport type CreateTeamSpaceMembershipProps = Omit\n\nexport interface TeamSpaceMembership\n extends TeamSpaceMembershipProps,\n DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership(''))\n * .then((teamSpaceMembership) => teamSpaceMembership.delete())\n * .then(() => console.log(`spaceMembership deleted.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getTeamSpaceMembership('team_space_membership_id'))\n * .then((teamSpaceMembership) => {\n * item.roles = [\n * {\n * sys: {\n * type: 'Link',\n * linkType: 'Role',\n * id: 'role_id'\n * }\n * }\n * ]\n * })\n * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamSpaceMembershipApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamSpaceMembershipProps) => ({\n teamSpaceMembershipId: data.sys.id,\n spaceId: data.sys.space.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as TeamSpaceMembershipProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeamSpaceMembership(makeRequest, data))\n },\n\n delete: function del() {\n const data = this.toPlainObject() as TeamSpaceMembershipProps\n return makeRequest({\n entityType: 'TeamSpaceMembership',\n action: 'delete',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw space membership data\n * @return Wrapped team space membership data\n */\nexport function wrapTeamSpaceMembership(\n makeRequest: MakeRequest,\n data: TeamSpaceMembershipProps\n): TeamSpaceMembership {\n const teamSpaceMembership = toPlainObject(copy(data))\n const teamSpaceMembershipWithMethods = enhanceWithMethods(\n teamSpaceMembership,\n createTeamSpaceMembershipApi(makeRequest)\n )\n return freezeSys(teamSpaceMembershipWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamSpaceMembershipCollection = wrapCollection(wrapTeamSpaceMembership)\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'\n\nexport type TeamProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { memberCount: number; organization: { sys: MetaLinkProps } }\n\n /**\n * Name of the team\n */\n name: string\n\n /**\n * Description of the team\n */\n description: string\n}\n\nexport type CreateTeamProps = Omit\n\nexport interface Team extends TeamProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getOrganizationMembership('organizationMembership_id'))\n * .then((team) => {\n * team.delete();\n * })\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * @example ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getOrganization('organization_id')\n * .then(org => org.getTeam('team_id'))\n * .then((team) => {\n * team.description = 'new description';\n * team.update();\n * })\n * .catch(console.error)\n * ```\n */\n update(): Promise\n}\n\n/**\n * @private\n */\nfunction createTeamApi(makeRequest: MakeRequest) {\n const getParams = (data: TeamProps) => ({\n teamId: data.sys.id,\n organizationId: data.sys.organization.sys.id,\n })\n\n return {\n update: function update() {\n const raw = this.toPlainObject() as TeamProps\n return makeRequest({\n entityType: 'Team',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapTeam(makeRequest, data))\n },\n\n delete: function del() {\n const raw = this.toPlainObject() as TeamProps\n return makeRequest({\n entityType: 'Team',\n action: 'delete',\n params: getParams(raw),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw team data\n * @return Wrapped team data\n */\nexport function wrapTeam(makeRequest: MakeRequest, data: TeamProps): Team {\n const team = toPlainObject(copy(data))\n const teamWithMethods = enhanceWithMethods(team, createTeamApi(makeRequest))\n return freezeSys(teamWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapTeamCollection = wrapCollection(wrapTeam)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport createUIConfigApi from '../create-ui-config-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UIConfigProps = {\n /**\n * System metadata\n */\n sys: UIConfigSysProps\n\n assetListViews: ViewFolder[]\n entryListViews: ViewFolder[]\n homeViews: HomeView[]\n}\n\nexport interface UIConfigSysProps extends BasicMetaSysProps {\n space: SysLink\n environment: SysLink\n}\n\ninterface HomeView {\n widgetId: string\n widgetNamespace: string\n}\n\ninterface ViewFolder {\n id: string\n title: string\n views: View[]\n}\n\ninterface View {\n id: string\n title: string\n order?: {\n fieldId: string\n direction: 'ascending' | 'descending'\n }\n displayedFieldIds?: string[]\n contentTypeId?: string | null\n contentTypeIds?: string[]\n searchText?: string\n searchFilters?: [string, string, string][]\n roles?: string[]\n}\n\nexport interface UIConfig extends UIConfigProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Wrapped UIConfig\n */\nexport function wrapUIConfig(makeRequest: MakeRequest, data: UIConfigProps) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, createUIConfigApi(makeRequest))\n return freezeSys(userWithMethods)\n}\n","import copy from 'fast-copy'\nimport { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { DefaultElements, MakeRequest, MetaSysProps, SysLink } from '../common-types'\n\nexport type UploadProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & { space: SysLink; environment?: SysLink }\n}\n\nexport interface Upload extends UploadProps, DefaultElements {\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * @example\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getEnvironment(''))\n * .then((environment) => environment.getUpload(''))\n * .then((upload) => upload.delete())\n * .then((upload) => console.log(`upload ${upload.sys.id} updated.`))\n * .catch(console.error)\n */\n delete(): Promise\n}\n\n/**\n * @private\n */\nfunction createUploadApi(makeRequest: MakeRequest) {\n return {\n delete: async function del() {\n const raw = this.toPlainObject() as UploadProps\n await makeRequest({\n entityType: 'Upload',\n action: 'delete',\n params: {\n spaceId: raw.sys.space.sys.id,\n environmentId: raw.sys.id,\n uploadId: raw.sys.id,\n },\n })\n },\n }\n}\n\n/**\n * @private\n * @param {function} makeRequest - function to make requests via an adapter\n * @param {object} data - Raw upload data\n * @return {Upload} Wrapped upload data\n */\nexport function wrapUpload(makeRequest: MakeRequest, data: UploadProps) {\n const upload = toPlainObject(copy(data))\n const uploadWithMethods = enhanceWithMethods(upload, createUploadApi(makeRequest))\n return freezeSys(uploadWithMethods)\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n MetaSysProps,\n QueryOptions,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UsageMetricEnum = 'cda' | 'cma' | 'cpa' | 'gql'\n\nexport interface UsageQuery extends QueryOptions {\n 'metric[in]'?: string\n 'dateRange.startAt'?: string\n 'dateRange.endAt'?: string\n}\n\nexport type UsageProps = {\n /**\n * System metadata\n */\n sys: MetaSysProps & {\n organization?: { sys: MetaLinkProps }\n }\n\n /**\n * Type of usage\n */\n metric: UsageMetricEnum\n\n /**\n * Unit of usage metric\n */\n unitOfMeasure: string\n\n /**\n * Range of usage\n */\n dateRange: {\n startAt: string\n endAt: string\n }\n\n /**\n * Value of the usage\n */\n usage: number\n\n /**\n * Usage per day\n */\n usagePerDay: {\n [key: string]: number\n }\n}\n\nexport interface Usage extends UsageProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Normalized usage\n */\nexport function wrapUsage(_makeRequest: MakeRequest, data: UsageProps): Usage {\n const usage = toPlainObject(copy(data))\n const usageWithMethods = enhanceWithMethods(usage, {})\n return freezeSys(usageWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapUsageCollection = wrapCollection(wrapUsage)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'\nimport createUserUIConfigApi from '../create-user-ui-config-api'\nimport enhanceWithMethods from '../enhance-with-methods'\n\nexport type UserUIConfigProps = {\n /**\n * System metadata\n */\n sys: UserUIConfigSysProps\n\n assetListViews: ViewFolder[]\n entryListViews: ViewFolder[]\n}\n\nexport interface UserUIConfigSysProps extends BasicMetaSysProps {\n space: SysLink\n environment: SysLink\n}\n\ninterface ViewFolder {\n id: string\n title: string\n views: View[]\n}\n\ninterface View {\n id: string\n title: string\n order?: {\n fieldId: string\n direction: 'ascending' | 'descending'\n }\n displayedFieldIds?: string[]\n contentTypeId: string | null\n searchText?: string\n searchFilters?: [string, string, string][]\n}\n\nexport interface UserUIConfig extends UserUIConfigProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Wrapped UserUIConfig\n */\nexport function wrapUserUIConfig(makeRequest: MakeRequest, data: UserUIConfigProps) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, createUserUIConfigApi(makeRequest))\n return freezeSys(userWithMethods)\n}\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport enhanceWithMethods from '../enhance-with-methods'\nimport { wrapCollection } from '../common-utils'\nimport { DefaultElements, BasicMetaSysProps, MakeRequest } from '../common-types'\n\nexport type UserProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps\n\n /**\n * First name of the user\n */\n firstName: string\n\n /**\n * Last name of the user\n */\n lastName: string\n\n /**\n * Url to the users avatar\n */\n avatarUrl: string\n\n /**\n * Email address of the user\n */\n email: string\n\n /**\n * Activation flag\n */\n activated: boolean\n\n /**\n * Number of sign ins\n */\n signInCount: number\n\n /**\n * User confirmation flag\n */\n confirmed: boolean\n\n '2faEnabled': boolean\n cookieConsentData: string\n}\n\nexport interface User extends UserProps, DefaultElements {}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data\n * @return Normalized user\n */\nexport function wrapUser(_makeRequest: MakeRequest, data: T) {\n const user = toPlainObject(copy(data))\n const userWithMethods = enhanceWithMethods(user, {})\n return freezeSys(userWithMethods)\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw data collection\n * @return Normalized user collection\n */\nexport const wrapUserCollection = wrapCollection(wrapUser)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport { Except, JsonValue, SetOptional } from 'type-fest'\nimport {\n BasicMetaSysProps,\n CollectionProp,\n DefaultElements,\n MakeRequest,\n MetaLinkProps,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\ninterface EqualityConstraint {\n equals: [Doc, string]\n}\ninterface Doc {\n doc: 'sys.id' | 'sys.contentType.sys.id' | 'sys.environment.sys.id'\n}\n\ninterface InConstraint {\n in: [Doc, [string, ...string[]]]\n}\n\ninterface RegexpConstraint {\n regexp: [Doc, Pattern]\n}\n\ninterface Pattern {\n pattern: string\n}\n\ninterface NotConstraint {\n not: EqualityConstraint | InConstraint | RegexpConstraint\n}\n\nexport type WebhookCalls = { total: number; healthy: number }\n\nexport type WebhookCallRequest = {\n url: string\n method: string\n headers: {\n [key: string]: string\n }\n body: string\n}\n\nexport type WebhookCallResponse = WebhookCallRequest & { statusCode: number }\n\nexport type WebhookHealthSys = Except<\n BasicMetaSysProps,\n 'version' | 'updatedAt' | 'updatedBy' | 'createdAt'\n>\n\nexport type WebhookCallDetailsSys = Except\n\nexport type WebhookHeader = { key: string; value: string; secret?: boolean }\n\nexport type WebhookFilter = EqualityConstraint | InConstraint | RegexpConstraint | NotConstraint\n\nexport type WebhookTransformation = {\n method?: null | 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE'\n contentType?:\n | null\n | 'application/vnd.contentful.management.v1+json'\n | 'application/vnd.contentful.management.v1+json; charset=utf-8'\n | 'application/json'\n | 'application/json; charset=utf-8'\n | 'application/x-www-form-urlencoded'\n | 'application/x-www-form-urlencoded; charset=utf-8'\n includeContentLength?: boolean | null\n body?: JsonValue\n}\n\nexport type CreateWebhooksProps = SetOptional, 'headers' | 'active'>\n\nexport type UpdateWebhookProps = SetOptional<\n Except,\n 'headers' | 'name' | 'topics' | 'url' | 'active'\n>\n\nexport type UpsertWebhookSigningSecretPayload = {\n value: string\n}\n\nexport type WebhookCallDetailsProps = {\n /**\n * System metadata\n */\n sys: WebhookCallDetailsSys\n\n /**\n * Request object\n */\n request: WebhookCallRequest\n\n /**\n * Request object\n */\n response: WebhookCallResponse\n\n /**\n * Status code of the request\n */\n statusCode: number\n /**\n * Errors\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n errors: any[]\n /**\n * Type of the webhook\n */\n eventType: string\n /**\n * Url of the request\n */\n url: string\n /**\n * Timestamp of the request\n */\n requestAt: string\n /**\n * Timestamp of the response\n */\n responseAt: string\n}\n\nexport type WebhookCallOverviewProps = Except\n\nexport type WebhookHealthProps = {\n /**\n * System metadata\n */\n sys: WebhookHealthSys & { space: { sys: MetaLinkProps } }\n\n /**\n * Webhook call statistics\n */\n calls: WebhookCalls\n}\n\nexport type WebhookSigningSecretSys = Except\n\nexport type WebhookSigningSecretProps = {\n sys: WebhookSigningSecretSys & { space: { sys: MetaLinkProps } }\n redactedValue: string\n}\n\nexport type WebhookRetryPolicyPayload = {\n maxRetries: number\n}\n\nexport type WebhookRetryPolicySys = Except\n\nexport type WebhookRetryPolicyProps = {\n sys: WebhookRetryPolicySys & { space: { sys: MetaLinkProps } }\n maxRetries: number\n}\n\nexport type WebhookProps = {\n /**\n * System metadata\n */\n sys: BasicMetaSysProps & { space: SysLink }\n\n /**\n * Webhook name\n */\n name: string\n\n /**\n * Webhook url\n */\n url: string\n\n /**\n * Topics the webhook wants to subscribe to\n */\n topics: string[]\n\n /**\n * Username for basic http auth\n */\n httpBasicUsername?: string\n\n /**\n * Password for basic http auth\n */\n httpBasicPassword?: string\n\n /**\n * Headers that should be appended to the webhook request\n */\n headers: Array\n\n /**\n * Webhook filters\n */\n filters?: WebhookFilter[]\n\n /**\n * Transformation to apply\n */\n transformation?: WebhookTransformation\n\n /**\n * Whether the Webhook is active. If set to false, no calls will be made\n */\n active: boolean\n}\n\nexport interface WebHooks extends WebhookProps, DefaultElements {\n /**\n * Sends an update to the server with any changes made to the object's properties\n * @return Object returned from the server with updated changes.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => {\n * webhook.name = 'new webhook name'\n * return webhook.update()\n * })\n * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n update(): Promise\n\n /**\n * Deletes this object on the server.\n * @return Promise for the deletion. It contains no data, but the Promise error case should be handled.\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.delete())\n * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`))\n * .catch(console.error)\n * ```\n */\n delete(): Promise\n\n /**\n * List of the most recent webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details.\n * @return Promise for list of calls\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getCalls())\n * .then((response) => console.log(response.items)) // webhook calls\n * .catch(console.error)\n * ```\n */\n getCalls(): Promise>\n\n /**\n * Webhook call with specific id. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details\n * @return Promise for call details\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getCall(''))\n * .then((webhookCall) => console.log(webhookCall))\n * .catch(console.error)\n * ```\n */\n getCall(id: string): Promise\n\n /**\n * Overview of the health of webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details.\n * @return Promise for health info\n * ```javascript\n * const contentful = require('contentful-management')\n *\n * const client = contentful.createClient({\n * accessToken: ''\n * })\n *\n * client.getSpace('')\n * .then((space) => space.getWebhook(''))\n * .then((webhook) => webhook.getHealth())\n * .then((webhookHealth) => console.log(webhookHealth))\n * .catch(console.error)\n * ```\n */\n getHealth(): Promise\n}\n\n/**\n * @private\n */\nfunction createWebhookApi(makeRequest: MakeRequest) {\n const getParams = (data: WebhookProps) => ({\n spaceId: data.sys.space.sys.id,\n webhookDefinitionId: data.sys.id,\n })\n\n return {\n update: function update() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'update',\n params: getParams(data),\n payload: data,\n }).then((data) => wrapWebhook(makeRequest, data))\n },\n delete: function del() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'delete',\n params: getParams(data),\n })\n },\n getCalls: function getCalls() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getManyCallDetails',\n params: getParams(data),\n })\n },\n getCall: function getCall(id: string) {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getCallDetails',\n params: { ...getParams(data), callId: id },\n })\n },\n getHealth: function getHealth() {\n const data = this.toPlainObject() as WebhookProps\n return makeRequest({\n entityType: 'Webhook',\n action: 'getHealthStatus',\n params: getParams(data),\n })\n },\n }\n}\n\n/**\n * @private\n * @param makeRequest - function to make requests via an adapter\n * @param data - Raw webhook data\n * @return Wrapped webhook data\n */\nexport function wrapWebhook(makeRequest: MakeRequest, data: WebhookProps): WebHooks {\n const webhook = toPlainObject(copy(data))\n const webhookWithMethods = enhanceWithMethods(webhook, createWebhookApi(makeRequest))\n return freezeSys(webhookWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapWebhookCollection = wrapCollection(wrapWebhook)\n","import { freezeSys, toPlainObject } from 'contentful-sdk-core'\nimport copy from 'fast-copy'\nimport {\n BasicMetaSysProps,\n DefaultElements,\n GetSpaceEnvironmentParams,\n GetWorkflowDefinitionParams,\n Link,\n MakeRequest,\n PaginationQueryOptions,\n SysLink,\n} from '../common-types'\nimport { wrapCollection } from '../common-utils'\nimport enhanceWithMethods from '../enhance-with-methods'\n\n/* Workflow Step Permission */\ntype NonEmptyArray = [T, ...T[]]\nexport type WorkflowStepPermissionActors = 'all' | NonEmptyArray | Link<'Team'>>\n\nexport enum WorkflowStepPermissionType {\n EntityPermission = 'entity_permission',\n WorkflowPermission = 'workflow_permission',\n}\n\nexport enum WorkflowStepPermissionAction {\n Edit = 'edit',\n Publish = 'publish',\n Delete = 'delete',\n}\n\nexport enum WorkflowStepPermissionEffect {\n Allow = 'allow',\n Deny = 'deny',\n}\n\nexport interface WorkflowStepPermission {\n type: WorkflowStepPermissionType\n configuration: {\n actors: WorkflowStepPermissionActors\n action: WorkflowStepPermissionAction\n effect: WorkflowStepPermissionEffect\n }\n}\n\n/* Workflow Step Action */\nexport enum WorkflowStepActionType {\n App = 'app',\n Email = 'email',\n Task = 'task',\n}\nexport type WorkflowStepAction =\n | WorkflowStepEmailAction\n | WorkflowStepTaskAction\n | WorkflowStepAppAction\n\nexport type WorkflowStepEmailActionRecipient = string | Link<'User'> | Link<'Team'>\n\nexport type WorkflowStepEmailAction = {\n type: 'email'\n configuration: {\n recipients: WorkflowStepEmailActionRecipient[]\n }\n}\n\nexport type WorkflowStepTaskAction = {\n type: 'task'\n configuration: {\n assignee: Link<'User'> | Link<'Team'>\n body: string\n dueDate?: number\n }\n}\n\nexport type WorkflowStepAppAction = {\n type: 'app'\n appId: string\n appActionId: string\n configuration?: {\n body?: Record\n headers?: Record\n }\n}\n\n/* Workflow Step */\nexport type WorkflowStepProps = {\n id: string\n name: string\n description?: string\n actions?: WorkflowStepAction[]\n annotations?: string[]\n permissions?: WorkflowStepPermission[]\n}\n\nexport type UpdateWorkflowStepProps = WorkflowStepProps\nexport type CreateWorkflowStepProps = Omit\n\n/* Workflow Definition */\n\nexport type WorkflowDefinitionSysProps = Pick<\n BasicMetaSysProps,\n 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'\n> & {\n type: 'WorkflowDefinition'\n space: SysLink\n environment: SysLink\n isLocked: boolean\n}\n\nexport type WorkflowDefinitionValidationLink = {\n type: 'Link'\n validations: Array<{\n linkContentType: string[]\n }>\n linkType: 'Entry'\n}\n\nexport type WorkflowDefinitionProps = {\n sys: WorkflowDefinitionSysProps\n name: string\n description?: string\n appliesTo?: WorkflowDefinitionValidationLink[]\n steps: WorkflowStepProps[]\n startOnEntityCreation?: boolean\n flowType?: 'no_restriction' | 'strict_neighbor'\n}\n\nexport type CreateWorkflowDefinitionProps = Omit & {\n steps: CreateWorkflowStepProps[]\n}\nexport type UpdateWorkflowDefinitionProps = Omit & {\n sys: Pick\n steps: Array\n}\n\nexport type CreateWorkflowDefinitionParams = GetSpaceEnvironmentParams\nexport type UpdateWorkflowDefinitionParams = GetWorkflowDefinitionParams\nexport type DeleteWorkflowDefinitionParams = GetWorkflowDefinitionParams & { version: number }\n\ntype WorkflowDefinitionApi = {\n update(): Promise\n delete(): Promise\n}\n\nexport interface WorkflowDefinition\n extends WorkflowDefinitionProps,\n DefaultElements,\n WorkflowDefinitionApi {}\n\nexport type WorkflowDefinitionQueryOptions = Omit\n\n/**\n * @private\n */\nexport default function createWorkflowDefinitionApi(\n makeRequest: MakeRequest\n): WorkflowDefinitionApi {\n const getParams = (workflowDefinition: WorkflowDefinitionProps): GetWorkflowDefinitionParams => ({\n spaceId: workflowDefinition.sys.space.sys.id,\n environmentId: workflowDefinition.sys.environment.sys.id,\n workflowDefinitionId: workflowDefinition.sys.id,\n })\n\n return {\n update: function () {\n const raw = this.toPlainObject() as WorkflowDefinitionProps\n\n return makeRequest({\n entityType: 'WorkflowDefinition',\n action: 'update',\n params: getParams(raw),\n payload: raw,\n }).then((data) => wrapWorkflowDefinition(makeRequest, data))\n },\n\n delete: function () {\n const raw = this.toPlainObject() as WorkflowDefinitionProps\n\n return makeRequest({\n entityType: 'WorkflowDefinition',\n action: 'delete',\n params: {\n ...getParams(raw),\n version: raw.sys.version,\n },\n }).then(() => {\n // noop\n })\n },\n }\n}\n\n/**\n * @private\n */\nexport function wrapWorkflowDefinition(\n makeRequest: MakeRequest,\n data: WorkflowDefinitionProps\n): WorkflowDefinition {\n const workflowDefinition = toPlainObject(copy(data))\n const workflowDefinitionWithMethods = enhanceWithMethods(\n workflowDefinition,\n createWorkflowDefinitionApi(makeRequest)\n )\n return freezeSys(workflowDefinitionWithMethods)\n}\n\n/**\n * @private\n */\nexport const wrapWorkflowDefinitionCollection = wrapCollection(wrapWorkflowDefinition)\n","export * from './common-types'\nexport * from './plain/common-types'\nexport type { ApiKey, ApiKeyProps, CreateApiKeyProps } from './entities/api-key'\nexport type {\n AppAction,\n AppActionCategoryProps,\n AppActionCategoryType,\n AppActionParameterDefinition,\n AppActionProps,\n CreateAppActionProps,\n} from './entities/app-action'\nexport type {\n AppActionCall,\n AppActionCallProps,\n CreateAppActionCallProps,\n} from './entities/app-action-call'\nexport type {\n AppBundle,\n AppBundleFile,\n AppBundleProps,\n CreateAppBundleProps,\n} from './entities/app-bundle'\nexport type {\n AppDefinition,\n AppDefinitionProps,\n AppLocation,\n CreateAppDefinitionProps,\n EntryFieldLocation,\n NavigationItem,\n PageLocation,\n SimpleLocation,\n} from './entities/app-definition'\nexport type {\n AppDetails,\n AppDetailsProps,\n AppIcon,\n CreateAppDetailsProps,\n IconType,\n} from './entities/app-details'\nexport type {\n AppInstallation,\n AppInstallationProps,\n CreateAppInstallationProps,\n} from './entities/app-installation'\nexport type {\n AppSignedRequest,\n AppSignedRequestProps,\n CreateAppSignedRequestProps,\n} from './entities/app-signed-request'\nexport type {\n AppSigningSecret,\n AppSigningSecretProps,\n CreateAppSigningSecretProps,\n} from './entities/app-signing-secret'\nexport type {\n AppEventSubscription,\n AppEventSubscriptionProps,\n CreateAppEventSubscriptionProps,\n} from './entities/app-event-subscription'\nexport type { AppKey, AppKeyProps, CreateAppKeyProps } from './entities/app-key'\nexport type {\n AppAccessToken,\n AppAccessTokenProps,\n CreateAppAccessTokenProps,\n} from './entities/app-access-token'\nexport type { AppUpload, AppUploadProps } from './entities/app-upload'\nexport type { Asset, AssetFileProp, AssetProps, CreateAssetProps } from './entities/asset'\nexport type { AssetKey, AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'\nexport type {\n BulkAction,\n BulkActionPayload,\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionStatus,\n BulkActionType,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from './entities/bulk-action'\nexport type {\n RichTextCommentDocument,\n RichTextCommentProps,\n Comment,\n CommentProps,\n CreateCommentProps,\n UpdateCommentProps,\n DeleteCommentParams,\n GetCommentParentEntityParams,\n GetManyCommentsParams,\n} from './entities/comment'\nexport type {\n AnnotationAssignment,\n ContentType,\n ContentTypeMetadata,\n ContentTypeProps,\n CreateContentTypeProps,\n} from './entities/content-type'\nexport type {\n ContentFields,\n ContentTypeFieldValidation,\n ContentfulEntryResource,\n ExternalResource,\n} from './entities/content-type-fields'\nexport type {\n Control,\n Editor,\n EditorInterface,\n EditorInterfaceProps,\n EditorLayoutItem,\n FieldGroupItem,\n FieldItem,\n GroupControl,\n SidebarItem,\n} from './entities/editor-interface'\nexport type { FunctionProps } from './entities/function'\nexport type { CreateEntryProps, Entry, EntryProps, WithResourceName } from './entities/entry'\nexport type { CreateEnvironmentProps, Environment, EnvironmentProps } from './entities/environment'\nexport type {\n CreateEnvironmentAliasProps,\n EnvironmentAlias,\n EnvironmentAliasProps,\n} from './entities/environment-alias'\nexport type {\n ContentTypeTemplateProps,\n CreateEnvironmentTemplateProps,\n EditorInterfaceTemplateProps,\n EnvironmentTemplate,\n EnvironmentTemplateProps,\n Hint,\n} from './entities/environment-template'\nexport type {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallation,\n EnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationStatus,\n EnvironmentTemplateValidationProps,\n ValidateEnvironmentTemplateInstallationProps,\n ValidationFinding,\n} from './entities/environment-template-installation'\nexport type {\n CreateExtensionProps as CreateUIExtensionProps,\n Extension as UIExtension,\n ExtensionProps as UIExtensionProps,\n} from './entities/extension'\nexport type { FieldType } from './entities/field-type'\nexport type { CreateLocaleProps, Locale, LocaleProps } from './entities/locale'\nexport type { Organization, OrganizationProp } from './entities/organization'\nexport type {\n CreateOrganizationInvitationProps,\n OrganizationInvitation,\n OrganizationInvitationProps,\n} from './entities/organization-invitation'\nexport type {\n OrganizationMembership,\n OrganizationMembershipProps,\n} from './entities/organization-membership'\nexport type {\n CreatePersonalAccessTokenProps,\n PersonalAccessToken,\n PersonalAccessTokenProp,\n} from './entities/personal-access-token'\nexport type {\n CreatePersonalAccessTokenProps as CreatePATProps,\n AccessToken,\n AccessTokenProp,\n} from './entities/access-token'\nexport type { PreviewApiKey, PreviewApiKeyProps } from './entities/preview-api-key'\nexport type {\n Release,\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseSysProps,\n ReleaseValidateOptions,\n ReleaseMetadata,\n ReleaseReferenceFilters,\n} from './entities/release'\nexport type {\n ReleaseAction,\n ReleaseActionProps,\n ReleaseActionQueryOptions,\n ReleaseActionSysProps,\n ReleaseActionTypes,\n} from './entities/release-action'\nexport type { CreateRoleProps, Role, RoleProps } from './entities/role'\nexport type {\n ScheduledAction,\n ScheduledActionProps,\n ScheduledActionSysProps,\n} from './entities/scheduled-action'\nexport type { Snapshot, SnapshotProps } from './entities/snapshot'\nexport type { Space, SpaceProps } from './entities/space'\nexport type { SpaceMember, SpaceMemberProps } from './entities/space-member'\nexport type {\n CreateSpaceMembershipProps,\n SpaceMembership,\n SpaceMembershipProps,\n} from './entities/space-membership'\nexport type { CreateTagProps, Tag, TagProps, TagVisibility } from './entities/tag'\nexport type { CreateTaskProps, Task, TaskProps, UpdateTaskProps } from './entities/task'\nexport type { CreateTeamProps, Team, TeamProps } from './entities/team'\nexport type {\n CreateTeamMembershipProps,\n TeamMembership,\n TeamMembershipProps,\n} from './entities/team-membership'\nexport type {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembership,\n TeamSpaceMembershipProps,\n} from './entities/team-space-membership'\nexport type { UIConfig, UIConfigProps } from './entities/ui-config'\nexport type { Upload, UploadProps } from './entities/upload'\nexport type { Usage, UsageProps } from './entities/usage'\nexport type { User, UserProps } from './entities/user'\nexport type { UserUIConfig, UserUIConfigProps } from './entities/user-ui-config'\nexport type {\n CreateWebhooksProps,\n UpdateWebhookProps,\n WebhookCallRequest,\n WebhookFilter,\n WebhookProps,\n WebHooks,\n WebhookTransformation,\n UpsertWebhookSigningSecretPayload,\n WebhookSigningSecretProps,\n} from './entities/webhook'\nexport type {\n // General typings (props, params, options)\n WorkflowDefinition,\n WorkflowDefinitionSysProps,\n WorkflowDefinitionProps,\n CreateWorkflowDefinitionProps,\n UpdateWorkflowDefinitionProps,\n CreateWorkflowDefinitionParams,\n UpdateWorkflowDefinitionParams,\n DeleteWorkflowDefinitionParams,\n WorkflowStepProps,\n UpdateWorkflowStepProps,\n CreateWorkflowStepProps,\n WorkflowDefinitionQueryOptions,\n // Property: appliesTo\n WorkflowDefinitionValidationLink,\n // Property: step.actions\n WorkflowStepAction,\n WorkflowStepActionType,\n // Property: step.permissions\n WorkflowStepPermission,\n WorkflowStepPermissionActors,\n WorkflowStepEmailActionRecipient,\n WorkflowStepEmailAction,\n WorkflowStepTaskAction,\n WorkflowStepAppAction,\n} from './entities/workflow-definition'\n\nexport {\n WorkflowStepPermissionType,\n WorkflowStepPermissionAction,\n WorkflowStepPermissionEffect,\n} from './entities/workflow-definition'\n\nexport type {\n DefinedParameters,\n FreeFormParameters,\n ParameterDefinition,\n} from './entities/widget-parameters'\nexport type {\n CreateWorkflowProps,\n UpdateWorkflowProps,\n DeleteWorkflowParams,\n Workflow,\n WorkflowProps,\n WorkflowQueryOptions,\n} from './entities/workflow'\nexport type {\n WorkflowsChangelogEntry,\n WorkflowsChangelogEntryProps,\n WorkflowsChangelogQueryOptions,\n} from './entities/workflows-changelog-entry'\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { sleep } from './utils'\n\nconst DEFAULT_MAX_RETRIES = 30\nconst DEFAULT_INITIAL_DELAY_MS = 1000\nconst DEFAULT_RETRY_INTERVAL_MS = 2000\n\n/** Action is an interface that has a sys.status to be checked against */\ninterface Action extends Record {\n sys: {\n status: string\n type: string\n }\n}\n\nexport class AsyncActionProcessingError extends Error {\n public action?: Action\n\n constructor(message: string, action?: Action) {\n super(message)\n this.action = action\n this.name = this.constructor.name\n }\n}\n\nexport class AsyncActionFailedError extends AsyncActionProcessingError {}\n\nexport type AsyncActionProcessingOptions = {\n /** The amount of times to retry.\n * @default 30\n * */\n retryCount?: number\n /** The interval between retries, in milliseconds (ms).\n * @default 2000 (2s)\n * */\n retryIntervalMs?: number\n /**\n * Initial delay in milliseconds when performing the first check.\n * This is used to prevent short running bulkActions of waiting too long for a result.\n * @default 1000 (1s)\n * */\n initialDelayMs?: number\n /**\n * Throws an error if the Action does not complete with a successful (succeeded) status.\n * @default true\n */\n throwOnFailedExecution?: boolean\n}\n\n/**\n * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded)\n * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status\n * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed.\n * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long.\n */\nexport async function pollAsyncActionStatus(\n actionFunction: () => Promise,\n options?: AsyncActionProcessingOptions\n): Promise {\n let retryCount = 0\n let done = false\n let action: T | undefined\n\n const maxRetries = options?.retryCount ?? DEFAULT_MAX_RETRIES\n const retryIntervalMs = options?.retryIntervalMs ?? DEFAULT_RETRY_INTERVAL_MS\n const initialDelayMs = options?.initialDelayMs ?? DEFAULT_INITIAL_DELAY_MS\n const throwOnFailedExecution = options?.throwOnFailedExecution ?? true\n\n // Initial delay for short-running Actions\n await sleep(initialDelayMs)\n\n while (retryCount < maxRetries && !done) {\n action = await actionFunction()\n\n // Terminal states\n if (action && ['succeeded', 'failed'].includes(action.sys.status)) {\n done = true\n\n if (action.sys.status === 'failed' && throwOnFailedExecution) {\n throw new AsyncActionFailedError(`${action.sys.type} failed to execute.`, action)\n }\n\n return action\n }\n\n await sleep(retryIntervalMs)\n retryCount += 1\n }\n\n throw new AsyncActionProcessingError(\n `${action?.sys.type} didn't finish processing within the expected timeframe.`,\n action\n )\n}\n","import { GetContentTypeParams, MakeRequest } from '../common-types'\nimport { ContentTypeProps } from '../entities/content-type'\n\ntype OmitOrDelete = 'omitted' | 'deleted'\n\n/**\n * @private\n * @param id - unique ID of the field\n * @param key - the attribute on the field to change\n * @param value - the value to set the attribute to\n */\nconst findAndUpdateField = function (\n contentType: ContentTypeProps,\n fieldId: string,\n omitOrDelete: OmitOrDelete\n) {\n const field = contentType.fields.find((field) => field.id === fieldId)\n if (!field) {\n return Promise.reject(\n new Error(\n `Tried to omitAndDeleteField on a nonexistent field, ${fieldId}, on the content type ${contentType.name}.`\n )\n )\n }\n\n field[omitOrDelete] = true\n\n return Promise.resolve(contentType)\n}\n\nexport const omitAndDeleteField = (\n makeRequest: MakeRequest,\n {\n fieldId,\n ...params\n }: {\n fieldId: string\n } & GetContentTypeParams,\n contentType: ContentTypeProps\n) => {\n return findAndUpdateField(contentType, fieldId, 'omitted')\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: newContentType,\n })\n })\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'publish',\n params,\n payload: newContentType,\n })\n })\n .then((newContentType) => {\n return findAndUpdateField(newContentType, fieldId, 'deleted')\n })\n .then((newContentType) => {\n return makeRequest({\n entityType: 'ContentType',\n action: 'update',\n params,\n payload: newContentType,\n })\n })\n}\n","/**\n * Helper function that resolves a Promise after the specified duration (in milliseconds)\n * @private\n */\nexport function sleep(durationMs: number): Promise {\n return new Promise((resolve) => setTimeout(resolve, durationMs))\n}\n","import copy from 'fast-copy'\nimport { CollectionProp, QueryParams } from '../common-types'\n\ntype IterableFn

= (params: P) => Promise>\ntype ParamsType = T extends (params: infer P) => any ? P : never\n\nexport const asIterator =

>(\n fn: F,\n params: ParamsType\n): AsyncIterable => {\n return {\n [Symbol.asyncIterator]() {\n let options = copy(params)\n const get = () => fn(copy(options))\n let currentResult = get()\n\n return {\n current: 0,\n async next() {\n const { total = 0, items = [], skip = 0, limit = 100 } = await currentResult\n\n if (total === this.current) {\n return { done: true, value: null }\n }\n\n const value = items[this.current++ - skip]\n const endOfPage = this.current % limit === 0\n const endOfList = this.current === total\n\n if (endOfPage && !endOfList) {\n options = {\n ...options,\n query: {\n ...options.query,\n skip: skip + limit,\n },\n }\n currentResult = get()\n }\n\n return { done: false, value }\n },\n }\n },\n }\n}\n","import { MetaSysProps } from '../common-types'\n\nexport const isPublished = (data: { sys: MetaSysProps }) => !!data.sys.publishedVersion\n\nexport const isUpdated = (data: { sys: MetaSysProps }) => {\n // The act of publishing an entity increases its version by 1, so any entry which has\n // 2 versions higher or more than the publishedVersion has unpublished changes.\n return !!(data.sys.publishedVersion && data.sys.version > data.sys.publishedVersion + 1)\n}\n\nexport const isDraft = (data: { sys: MetaSysProps }) => !data.sys.publishedVersion\n\nexport const isArchived = (data: { sys: MetaSysProps }) => !!data.sys.archivedVersion\n","import { RawAxiosRequestHeaders, RawAxiosRequestConfig } from 'axios'\nimport { OpPatch } from 'json-patch'\nimport {\n CollectionProp,\n GetAppDefinitionParams,\n GetContentTypeParams,\n GetOrganizationMembershipParams,\n GetOrganizationParams,\n GetSnapshotForContentTypeParams,\n GetSnapshotForEntryParams,\n GetSpaceEnvironmentParams,\n GetSpaceParams,\n GetTeamMembershipParams,\n GetTeamParams,\n GetTeamSpaceMembershipParams,\n KeyValueMap,\n QueryParams,\n GetBulkActionParams,\n GetReleaseParams,\n CursorPaginatedCollectionProp,\n GetEnvironmentTemplateParams,\n BasicCursorPaginationOptions,\n EnvironmentTemplateParams,\n} from '../common-types'\nimport { ApiKeyProps, CreateApiKeyProps } from '../entities/api-key'\nimport {\n AssetFileProp,\n AssetProcessingForLocale,\n AssetProps,\n CreateAssetProps,\n} from '../entities/asset'\nimport { ContentTypeProps, CreateContentTypeProps } from '../entities/content-type'\nimport { CreateEntryProps, EntryProps, EntryReferenceProps } from '../entities/entry'\nimport {\n CreateOrganizationInvitationProps,\n OrganizationInvitationProps,\n} from '../entities/organization-invitation'\nimport { OrganizationMembershipProps } from '../entities/organization-membership'\nimport {\n CreatePersonalAccessTokenProps,\n PersonalAccessTokenProp,\n} from '../entities/personal-access-token'\nimport {\n AccessTokenProp,\n CreatePersonalAccessTokenProps as CreatePATProps,\n} from '../entities/access-token'\nimport { PreviewApiKeyProps } from '../entities/preview-api-key'\nimport {\n ScheduledActionProps,\n CreateUpdateScheduledActionProps,\n} from '../entities/scheduled-action'\nimport { SnapshotProps } from '../entities/snapshot'\nimport { CreateTeamProps, TeamProps } from '../entities/team'\nimport { CreateTeamMembershipProps, TeamMembershipProps } from '../entities/team-membership'\nimport {\n CreateTeamSpaceMembershipProps,\n TeamSpaceMembershipProps,\n} from '../entities/team-space-membership'\nimport { DefaultParams, OptionalDefaults } from './wrappers/wrap'\nimport { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key'\nimport { FunctionProps } from '../entities/function'\nimport {\n BulkActionPayload,\n BulkActionProps,\n BulkActionPublishPayload,\n BulkActionUnpublishPayload,\n BulkActionValidatePayload,\n} from '../entities/bulk-action'\nimport {\n ReleasePayload,\n ReleaseProps,\n ReleaseQueryOptions,\n ReleaseValidatePayload,\n} from '../entities/release'\nimport { ReleaseActionProps, ReleaseActionQueryOptions } from '../entities/release-action'\nimport {\n CreateEnvironmentTemplateProps,\n EnvironmentTemplateProps,\n} from '../entities/environment-template'\nimport {\n CreateEnvironmentTemplateInstallationProps,\n EnvironmentTemplateInstallationProps,\n EnvironmentTemplateValidationProps,\n ValidateEnvironmentTemplateInstallationProps,\n} from '../entities/environment-template-installation'\nimport { AppActionPlainClientAPI } from './entities/app-action'\nimport { AppActionCallPlainClientAPI } from './entities/app-action-call'\nimport { EditorInterfacePlainClientAPI } from './entities/editor-interface'\nimport { UIConfigPlainClientAPI } from './entities/ui-config'\nimport { UserUIConfigPlainClientAPI } from './entities/user-ui-config'\nimport { AppDefinitionPlainClientAPI } from './entities/app-definition'\nimport { AppUploadPlainClientAPI } from './entities/app-upload'\nimport { AppBundlePlainClientAPI } from './entities/app-bundle'\nimport { AppDetailsPlainClientAPI } from './entities/app-details'\nimport { AppInstallationPlainClientAPI } from './entities/app-installation'\nimport { WebhookPlainClientAPI } from './entities/webhook'\nimport { AppSignedRequestPlainClientAPI } from './entities/app-signed-request'\nimport { AppSigningSecretPlainClientAPI } from './entities/app-signing-secret'\nimport { ExtensionPlainClientAPI } from './entities/extension'\nimport { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription'\nimport { AppKeyPlainClientAPI } from './entities/app-key'\nimport { UserPlainClientAPI } from './entities/user'\nimport { UploadPlainClientAPI } from './entities/upload'\nimport { OrganizationPlainClientAPI } from './entities/organization'\nimport { LocalePlainClientAPI } from './entities/locale'\nimport { SpacePlainClientAPI } from './entities/space'\nimport { SpaceMembershipPlainClientAPI } from './entities/space-membership'\nimport { SpaceMemberPlainClientAPI } from './entities/space-member'\nimport { EnvironmentPlainClientAPI } from './entities/environment'\nimport { EnvironmentAliasPlainClientAPI } from './entities/environment-alias'\nimport { CommentPlainClientAPI } from './entities/comment'\nimport { TaskPlainClientAPI } from './entities/task'\nimport { WorkflowPlainClientAPI } from './entities/workflow'\nimport { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog'\nimport { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition'\nimport { RolePlainClientAPI } from './entities/role'\nimport { TagPlainClientAPI } from './entities/tag'\nimport { UsagePlainClientAPI } from './entities/usage'\nimport { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership'\nimport { TeamPlainClientAPI } from './entities/team'\nimport { TeamMembershipPlainClientAPI } from './entities/team-membership'\nimport { AppAccessTokenPlainClientAPI } from './entities/app-access-token'\n\nexport type PlainClientAPI = {\n raw: {\n getDefaultParams(): DefaultParams | undefined\n get(url: string, config?: RawAxiosRequestConfig): Promise\n post(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n patch(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n put(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise\n delete(url: string, config?: RawAxiosRequestConfig): Promise\n http(url: string, config?: RawAxiosRequestConfig): Promise\n }\n appAction: AppActionPlainClientAPI\n appActionCall: AppActionCallPlainClientAPI\n appBundle: AppBundlePlainClientAPI\n appDetails: AppDetailsPlainClientAPI\n appEventSubscription: AppEventSubscriptionPlainClientAPI\n appKey: AppKeyPlainClientAPI\n appSignedRequest: AppSignedRequestPlainClientAPI\n appSigningSecret: AppSigningSecretPlainClientAPI\n appAccessToken: AppAccessTokenPlainClientAPI\n function: {\n getMany(\n params: OptionalDefaults\n ): Promise>\n }\n editorInterface: EditorInterfacePlainClientAPI\n space: SpacePlainClientAPI\n environment: EnvironmentPlainClientAPI\n environmentAlias: EnvironmentAliasPlainClientAPI\n environmentTemplate: {\n get(\n params: GetEnvironmentTemplateParams & {\n version?: number\n query?: { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise\n getMany(\n params: GetOrganizationParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n create(\n params: GetOrganizationParams,\n rawData: CreateEnvironmentTemplateProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n versionUpdate(\n params: GetEnvironmentTemplateParams & { version: number },\n rawData: { versionName?: string; versionDescription?: string },\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: GetEnvironmentTemplateParams,\n rawData: EnvironmentTemplateProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: GetEnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise\n versions(\n params: GetEnvironmentTemplateParams & {\n query?: BasicCursorPaginationOptions & { select?: string }\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n validate(\n params: EnvironmentTemplateParams & {\n version?: number\n },\n rawData: ValidateEnvironmentTemplateInstallationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n install(\n params: EnvironmentTemplateParams,\n rawData: CreateEnvironmentTemplateInstallationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n disconnect(params: EnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise\n }\n environmentTemplateInstallation: {\n getMany(\n params: BasicCursorPaginationOptions & {\n environmentId?: string\n environmentTemplateId: string\n organizationId: string\n spaceId?: string\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n getForEnvironment(\n params: BasicCursorPaginationOptions &\n EnvironmentTemplateParams & {\n installationId?: string\n },\n headers?: RawAxiosRequestHeaders\n ): Promise>\n }\n bulkAction: {\n get(params: GetBulkActionParams): Promise>\n publish(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionPublishPayload\n ): Promise>\n unpublish(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionUnpublishPayload\n ): Promise>\n validate(\n params: GetSpaceEnvironmentParams,\n payload: BulkActionValidatePayload\n ): Promise>\n }\n comment: CommentPlainClientAPI\n contentType: {\n get(params: OptionalDefaults): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: ContentTypeProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: ContentTypeProps\n ): Promise\n unpublish(params: OptionalDefaults): Promise\n create(\n params: OptionalDefaults,\n rawData: CreateContentTypeProps\n ): Promise\n createWithId(\n params: OptionalDefaults,\n rawData: CreateContentTypeProps\n ): Promise\n omitAndDeleteField(\n params: OptionalDefaults,\n contentType: ContentTypeProps,\n fieldId: string\n ): Promise\n }\n user: UserPlainClientAPI\n entry: {\n getPublished(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>>\n getMany(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>>\n get(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: EntryProps,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n patch(\n params: OptionalDefaults,\n rawData: OpPatch[],\n headers?: RawAxiosRequestHeaders\n ): Promise>\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: EntryProps\n ): Promise>\n unpublish(\n params: OptionalDefaults\n ): Promise>\n archive(\n params: OptionalDefaults\n ): Promise>\n unarchive(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n rawData: CreateEntryProps\n ): Promise>\n createWithId(\n params: OptionalDefaults<\n GetSpaceEnvironmentParams & { entryId: string; contentTypeId: string }\n >,\n rawData: CreateEntryProps\n ): Promise>\n references(\n params: OptionalDefaults<\n GetSpaceEnvironmentParams & {\n entryId: string\n include?: number\n }\n >\n ): Promise\n }\n asset: {\n getPublished(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n getMany(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise>\n get(\n params: OptionalDefaults,\n rawData?: unknown,\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: OptionalDefaults,\n rawData: AssetProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults,\n rawData: AssetProps\n ): Promise\n unpublish(\n params: OptionalDefaults\n ): Promise\n archive(\n params: OptionalDefaults\n ): Promise\n unarchive(\n params: OptionalDefaults\n ): Promise\n create(\n params: OptionalDefaults,\n rawData: CreateAssetProps\n ): Promise\n createWithId(\n params: OptionalDefaults,\n rawData: CreateAssetProps\n ): Promise\n createFromFiles(\n params: OptionalDefaults,\n data: Omit\n ): Promise\n processForAllLocales(\n params: OptionalDefaults,\n asset: AssetProps,\n processingOptions?: AssetProcessingForLocale\n ): Promise\n processForLocale(\n params: OptionalDefaults,\n asset: AssetProps,\n locale: string,\n processingOptions?: AssetProcessingForLocale\n ): Promise\n }\n appUpload: AppUploadPlainClientAPI\n assetKey: {\n create(\n params: OptionalDefaults,\n data: CreateAssetKeyProps\n ): Promise\n }\n upload: UploadPlainClientAPI\n locale: LocalePlainClientAPI\n personalAccessToken: {\n get(params: OptionalDefaults<{ tokenId: string }>): Promise\n getMany(params: OptionalDefaults): Promise>\n create(\n rawData: CreatePersonalAccessTokenProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n revoke(params: OptionalDefaults<{ tokenId: string }>): Promise\n }\n accessToken: {\n get(params: OptionalDefaults<{ tokenId: string }>): Promise\n getMany(params: OptionalDefaults): Promise>\n createPersonalAccessToken(\n rawData: CreatePATProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n revoke(params: OptionalDefaults<{ tokenId: string }>): Promise\n getManyForOrganization(\n params: OptionalDefaults\n ): Promise>\n }\n usage: UsagePlainClientAPI\n release: {\n archive(params: OptionalDefaults): Promise\n get(params: OptionalDefaults): Promise\n query(\n params: OptionalDefaults & { query?: ReleaseQueryOptions }\n ): Promise>\n create(\n params: OptionalDefaults,\n data: ReleasePayload\n ): Promise\n update(\n params: OptionalDefaults,\n data: ReleasePayload\n ): Promise\n delete(params: OptionalDefaults): Promise\n publish(\n params: OptionalDefaults\n ): Promise>\n unarchive(\n params: OptionalDefaults\n ): Promise\n unpublish(\n params: OptionalDefaults\n ): Promise>\n validate(\n params: OptionalDefaults,\n data?: ReleaseValidatePayload\n ): Promise>\n }\n releaseAction: {\n get(\n params: OptionalDefaults & { actionId: string }\n ): Promise\n getMany(\n params: OptionalDefaults & { query?: ReleaseActionQueryOptions }\n ): Promise>\n queryForRelease(\n params: OptionalDefaults & { query?: ReleaseActionQueryOptions }\n ): Promise>\n }\n role: RolePlainClientAPI\n scheduledActions: {\n get(\n params: OptionalDefaults & {\n scheduledActionId: string\n environmentId: string\n }\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n data: CreateUpdateScheduledActionProps\n ): Promise\n delete(\n params: OptionalDefaults\n ): Promise\n update(\n params: OptionalDefaults,\n data: CreateUpdateScheduledActionProps\n ): Promise\n }\n previewApiKey: {\n get(\n params: OptionalDefaults\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n }\n apiKey: {\n get(params: OptionalDefaults): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n create(\n params: OptionalDefaults,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n createWithId(\n params: OptionalDefaults,\n data: CreateApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n update(\n params: OptionalDefaults,\n rawData: ApiKeyProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n }\n appDefinition: AppDefinitionPlainClientAPI\n appInstallation: AppInstallationPlainClientAPI\n extension: ExtensionPlainClientAPI\n webhook: WebhookPlainClientAPI\n snapshot: {\n getManyForEntry(\n params: OptionalDefaults\n ): Promise, 'metadata'>>>>\n getForEntry(\n params: OptionalDefaults\n ): Promise, 'metadata'>>>\n getManyForContentType(\n params: OptionalDefaults\n ): Promise>>\n getForContentType(\n params: OptionalDefaults\n ): Promise>\n }\n tag: TagPlainClientAPI\n organization: OrganizationPlainClientAPI\n organizationInvitation: {\n get(\n params: OptionalDefaults<{ organizationId: string; invitationId: string }>,\n headers?: RawAxiosRequestHeaders\n ): Promise\n create(\n params: OptionalDefaults<{ organizationId: string }>,\n data: CreateOrganizationInvitationProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n }\n organizationMembership: {\n get(\n params: OptionalDefaults\n ): Promise\n getMany(\n params: OptionalDefaults\n ): Promise>\n update(\n params: OptionalDefaults,\n rawData: OrganizationMembershipProps,\n headers?: RawAxiosRequestHeaders\n ): Promise\n delete(params: OptionalDefaults): Promise\n }\n spaceMember: SpaceMemberPlainClientAPI\n spaceMembership: SpaceMembershipPlainClientAPI\n task: TaskPlainClientAPI\n team: TeamPlainClientAPI\n teamMembership: TeamMembershipPlainClientAPI\n teamSpaceMembership: TeamSpaceMembershipPlainClientAPI\n uiConfig: UIConfigPlainClientAPI\n userUIConfig: UserUIConfigPlainClientAPI\n workflowDefinition: WorkflowDefinitionPlainClientAPI\n workflow: WorkflowPlainClientAPI\n workflowsChangelog: WorkflowsChangelogPlainClientAPI\n}\n","import { GetContentTypeParams, GetSpaceEnvironmentParams, MakeRequest } from '../common-types'\nimport { omitAndDeleteField } from '../methods/content-type'\nimport { PlainClientAPI } from './common-types'\nimport { DefaultParams, wrap } from './wrappers/wrap'\n\nexport type { DefaultParams } from './wrappers/wrap'\n\n/**\n * @private\n */\nexport const createPlainClient = (\n makeRequest: MakeRequest,\n defaults: DefaultParams | undefined\n): PlainClientAPI => {\n const wrapParams = { makeRequest, defaults }\n\n return {\n raw: {\n getDefaultParams: () => defaults,\n get: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'get',\n params: { url, config },\n }),\n patch: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'patch',\n params: { url, config },\n payload,\n }),\n post: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'post',\n params: { url, config },\n payload,\n }),\n put: (url, payload, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'put',\n params: { url, config },\n payload,\n }),\n delete: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'delete',\n params: { url, config },\n }),\n http: (url, config) =>\n makeRequest({\n entityType: 'Http',\n action: 'request',\n params: { url, config },\n }),\n },\n appAction: {\n get: wrap(wrapParams, 'AppAction', 'get'),\n getMany: wrap(wrapParams, 'AppAction', 'getMany'),\n getManyForEnvironment: wrap(wrapParams, 'AppAction', 'getManyForEnvironment'),\n delete: wrap(wrapParams, 'AppAction', 'delete'),\n create: wrap(wrapParams, 'AppAction', 'create'),\n update: wrap(wrapParams, 'AppAction', 'update'),\n },\n appActionCall: {\n create: wrap(wrapParams, 'AppActionCall', 'create'),\n getCallDetails: wrap(wrapParams, 'AppActionCall', 'getCallDetails'),\n createWithResponse: wrap(wrapParams, 'AppActionCall', 'createWithResponse'),\n },\n appBundle: {\n get: wrap(wrapParams, 'AppBundle', 'get'),\n getMany: wrap(wrapParams, 'AppBundle', 'getMany'),\n delete: wrap(wrapParams, 'AppBundle', 'delete'),\n create: wrap(wrapParams, 'AppBundle', 'create'),\n },\n appDetails: {\n upsert: wrap(wrapParams, 'AppDetails', 'upsert'),\n get: wrap(wrapParams, 'AppDetails', 'get'),\n delete: wrap(wrapParams, 'AppDetails', 'delete'),\n },\n appEventSubscription: {\n upsert: wrap(wrapParams, 'AppEventSubscription', 'upsert'),\n get: wrap(wrapParams, 'AppEventSubscription', 'get'),\n delete: wrap(wrapParams, 'AppEventSubscription', 'delete'),\n },\n appKey: {\n create: wrap(wrapParams, 'AppKey', 'create'),\n get: wrap(wrapParams, 'AppKey', 'get'),\n getMany: wrap(wrapParams, 'AppKey', 'getMany'),\n delete: wrap(wrapParams, 'AppKey', 'delete'),\n },\n appSignedRequest: {\n create: wrap(wrapParams, 'AppSignedRequest', 'create'),\n },\n appSigningSecret: {\n upsert: wrap(wrapParams, 'AppSigningSecret', 'upsert'),\n get: wrap(wrapParams, 'AppSigningSecret', 'get'),\n delete: wrap(wrapParams, 'AppSigningSecret', 'delete'),\n },\n appAccessToken: {\n create: wrap(wrapParams, 'AppAccessToken', 'create'),\n },\n function: {\n getMany: wrap(wrapParams, 'Function', 'getMany'),\n },\n editorInterface: {\n get: wrap(wrapParams, 'EditorInterface', 'get'),\n getMany: wrap(wrapParams, 'EditorInterface', 'getMany'),\n update: wrap(wrapParams, 'EditorInterface', 'update'),\n },\n space: {\n get: wrap(wrapParams, 'Space', 'get'),\n getMany: wrap(wrapParams, 'Space', 'getMany'),\n getManyForOrganization: wrap(wrapParams, 'Space', 'getManyForOrganization'),\n update: wrap(wrapParams, 'Space', 'update'),\n delete: wrap(wrapParams, 'Space', 'delete'),\n create: wrap(wrapParams, 'Space', 'create'),\n },\n environment: {\n get: wrap(wrapParams, 'Environment', 'get'),\n getMany: wrap(wrapParams, 'Environment', 'getMany'),\n create: wrap(wrapParams, 'Environment', 'create'),\n createWithId: wrap(wrapParams, 'Environment', 'createWithId'),\n update: wrap(wrapParams, 'Environment', 'update'),\n delete: wrap(wrapParams, 'Environment', 'delete'),\n },\n environmentAlias: {\n get: wrap(wrapParams, 'EnvironmentAlias', 'get'),\n getMany: wrap(wrapParams, 'EnvironmentAlias', 'getMany'),\n createWithId: wrap(wrapParams, 'EnvironmentAlias', 'createWithId'),\n update: wrap(wrapParams, 'EnvironmentAlias', 'update'),\n delete: wrap(wrapParams, 'EnvironmentAlias', 'delete'),\n },\n environmentTemplate: {\n get: wrap(wrapParams, 'EnvironmentTemplate', 'get'),\n getMany: wrap(wrapParams, 'EnvironmentTemplate', 'getMany'),\n create: wrap(wrapParams, 'EnvironmentTemplate', 'create'),\n versionUpdate: wrap(wrapParams, 'EnvironmentTemplate', 'versionUpdate'),\n update: wrap(wrapParams, 'EnvironmentTemplate', 'update'),\n install: wrap(wrapParams, 'EnvironmentTemplate', 'install'),\n versions: wrap(wrapParams, 'EnvironmentTemplate', 'versions'),\n validate: wrap(wrapParams, 'EnvironmentTemplate', 'validate'),\n disconnect: wrap(wrapParams, 'EnvironmentTemplate', 'disconnect'),\n delete: wrap(wrapParams, 'EnvironmentTemplate', 'delete'),\n },\n environmentTemplateInstallation: {\n getMany: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getMany'),\n getForEnvironment: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getForEnvironment'),\n },\n bulkAction: {\n get: wrap(wrapParams, 'BulkAction', 'get'),\n publish: wrap(wrapParams, 'BulkAction', 'publish'),\n unpublish: wrap(wrapParams, 'BulkAction', 'unpublish'),\n validate: wrap(wrapParams, 'BulkAction', 'validate'),\n },\n comment: {\n get: wrap(wrapParams, 'Comment', 'get') as PlainClientAPI['comment']['get'],\n getMany: wrap(wrapParams, 'Comment', 'getMany') as PlainClientAPI['comment']['getMany'],\n create: wrap(wrapParams, 'Comment', 'create') as PlainClientAPI['comment']['create'],\n update: wrap(wrapParams, 'Comment', 'update') as PlainClientAPI['comment']['update'],\n delete: wrap(wrapParams, 'Comment', 'delete'),\n },\n contentType: {\n get: wrap(wrapParams, 'ContentType', 'get'),\n getMany: wrap(wrapParams, 'ContentType', 'getMany'),\n update: wrap(wrapParams, 'ContentType', 'update'),\n delete: wrap(wrapParams, 'ContentType', 'delete'),\n publish: wrap(wrapParams, 'ContentType', 'publish'),\n unpublish: wrap(wrapParams, 'ContentType', 'unpublish'),\n create: wrap(wrapParams, 'ContentType', 'create'),\n createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),\n omitAndDeleteField: (params, contentType, fieldId) =>\n omitAndDeleteField(\n makeRequest,\n { ...({ ...defaults, ...params } as GetContentTypeParams), fieldId },\n contentType\n ),\n },\n user: {\n getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),\n getForSpace: wrap(wrapParams, 'User', 'getForSpace'),\n getCurrent: wrap(wrapParams, 'User', 'getCurrent'),\n getForOrganization: wrap(wrapParams, 'User', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'User', 'getManyForOrganization'),\n },\n task: {\n get: wrap(wrapParams, 'Task', 'get'),\n getMany: wrap(wrapParams, 'Task', 'getMany'),\n create: wrap(wrapParams, 'Task', 'create'),\n update: wrap(wrapParams, 'Task', 'update'),\n delete: wrap(wrapParams, 'Task', 'delete'),\n },\n entry: {\n getPublished: wrap(wrapParams, 'Entry', 'getPublished'),\n getMany: wrap(wrapParams, 'Entry', 'getMany'),\n get: wrap(wrapParams, 'Entry', 'get'),\n update: wrap(wrapParams, 'Entry', 'update'),\n patch: wrap(wrapParams, 'Entry', 'patch'),\n delete: wrap(wrapParams, 'Entry', 'delete'),\n publish: wrap(wrapParams, 'Entry', 'publish'),\n unpublish: wrap(wrapParams, 'Entry', 'unpublish'),\n archive: wrap(wrapParams, 'Entry', 'archive'),\n unarchive: wrap(wrapParams, 'Entry', 'unarchive'),\n create: wrap(wrapParams, 'Entry', 'create'),\n createWithId: wrap(wrapParams, 'Entry', 'createWithId'),\n references: wrap(wrapParams, 'Entry', 'references'),\n },\n asset: {\n getPublished: wrap(wrapParams, 'Asset', 'getPublished'),\n getMany: wrap(wrapParams, 'Asset', 'getMany'),\n get: wrap(wrapParams, 'Asset', 'get'),\n update: wrap(wrapParams, 'Asset', 'update'),\n delete: wrap(wrapParams, 'Asset', 'delete'),\n publish: wrap(wrapParams, 'Asset', 'publish'),\n unpublish: wrap(wrapParams, 'Asset', 'unpublish'),\n archive: wrap(wrapParams, 'Asset', 'archive'),\n unarchive: wrap(wrapParams, 'Asset', 'unarchive'),\n create: wrap(wrapParams, 'Asset', 'create'),\n createWithId: wrap(wrapParams, 'Asset', 'createWithId'),\n createFromFiles: wrap(wrapParams, 'Asset', 'createFromFiles'),\n processForAllLocales: (params, asset, options) =>\n makeRequest({\n entityType: 'Asset',\n action: 'processForAllLocales',\n params: {\n ...({ ...defaults, ...params } as GetSpaceEnvironmentParams),\n options,\n asset,\n },\n }),\n processForLocale: (params, asset, locale, options) =>\n makeRequest({\n entityType: 'Asset',\n action: 'processForLocale',\n params: {\n ...({ ...defaults, ...params } as GetSpaceEnvironmentParams),\n locale,\n asset,\n options,\n },\n }),\n },\n appUpload: {\n get: wrap(wrapParams, 'AppUpload', 'get'),\n delete: wrap(wrapParams, 'AppUpload', 'delete'),\n create: wrap(wrapParams, 'AppUpload', 'create'),\n },\n assetKey: {\n create: wrap(wrapParams, 'AssetKey', 'create'),\n },\n upload: {\n get: wrap(wrapParams, 'Upload', 'get'),\n create: wrap(wrapParams, 'Upload', 'create'),\n delete: wrap(wrapParams, 'Upload', 'delete'),\n },\n locale: {\n get: wrap(wrapParams, 'Locale', 'get'),\n getMany: wrap(wrapParams, 'Locale', 'getMany'),\n delete: wrap(wrapParams, 'Locale', 'delete'),\n update: wrap(wrapParams, 'Locale', 'update'),\n create: wrap(wrapParams, 'Locale', 'create'),\n },\n personalAccessToken: {\n get: wrap(wrapParams, 'PersonalAccessToken', 'get'),\n getMany: wrap(wrapParams, 'PersonalAccessToken', 'getMany'),\n create: (data, headers) =>\n makeRequest({\n entityType: 'PersonalAccessToken',\n action: 'create',\n params: {},\n headers,\n payload: data,\n }),\n revoke: wrap(wrapParams, 'PersonalAccessToken', 'revoke'),\n },\n accessToken: {\n get: wrap(wrapParams, 'AccessToken', 'get'),\n getMany: wrap(wrapParams, 'AccessToken', 'getMany'),\n createPersonalAccessToken: (data, headers) =>\n makeRequest({\n entityType: 'AccessToken',\n action: 'createPersonalAccessToken',\n params: {},\n headers,\n payload: data,\n }),\n revoke: wrap(wrapParams, 'AccessToken', 'revoke'),\n getManyForOrganization: wrap(wrapParams, 'AccessToken', 'getManyForOrganization'),\n },\n usage: {\n getManyForSpace: wrap(wrapParams, 'Usage', 'getManyForSpace'),\n getManyForOrganization: wrap(wrapParams, 'Usage', 'getManyForOrganization'),\n },\n release: {\n archive: wrap(wrapParams, 'Release', 'archive'),\n get: wrap(wrapParams, 'Release', 'get'),\n query: wrap(wrapParams, 'Release', 'query'),\n create: wrap(wrapParams, 'Release', 'create'),\n update: wrap(wrapParams, 'Release', 'update'),\n delete: wrap(wrapParams, 'Release', 'delete'),\n publish: wrap(wrapParams, 'Release', 'publish'),\n unarchive: wrap(wrapParams, 'Release', 'unarchive'),\n unpublish: wrap(wrapParams, 'Release', 'unpublish'),\n validate: wrap(wrapParams, 'Release', 'validate'),\n },\n releaseAction: {\n get: wrap(wrapParams, 'ReleaseAction', 'get'),\n getMany: wrap(wrapParams, 'ReleaseAction', 'getMany'),\n queryForRelease: wrap(wrapParams, 'ReleaseAction', 'queryForRelease'),\n },\n role: {\n get: wrap(wrapParams, 'Role', 'get'),\n getMany: wrap(wrapParams, 'Role', 'getMany'),\n getManyForOrganization: wrap(wrapParams, 'Role', 'getManyForOrganization'),\n create: wrap(wrapParams, 'Role', 'create'),\n createWithId: wrap(wrapParams, 'Role', 'createWithId'),\n update: wrap(wrapParams, 'Role', 'update'),\n delete: wrap(wrapParams, 'Role', 'delete'),\n },\n scheduledActions: {\n get: wrap(wrapParams, 'ScheduledAction', 'get'),\n getMany: wrap(wrapParams, 'ScheduledAction', 'getMany'),\n create: wrap(wrapParams, 'ScheduledAction', 'create'),\n delete: wrap(wrapParams, 'ScheduledAction', 'delete'),\n update: wrap(wrapParams, 'ScheduledAction', 'update'),\n },\n previewApiKey: {\n get: wrap(wrapParams, 'PreviewApiKey', 'get'),\n getMany: wrap(wrapParams, 'PreviewApiKey', 'getMany'),\n },\n apiKey: {\n get: wrap(wrapParams, 'ApiKey', 'get'),\n getMany: wrap(wrapParams, 'ApiKey', 'getMany'),\n create: wrap(wrapParams, 'ApiKey', 'create'),\n createWithId: wrap(wrapParams, 'ApiKey', 'createWithId'),\n update: wrap(wrapParams, 'ApiKey', 'update'),\n delete: wrap(wrapParams, 'ApiKey', 'delete'),\n },\n appDefinition: {\n get: wrap(wrapParams, 'AppDefinition', 'get'),\n getMany: wrap(wrapParams, 'AppDefinition', 'getMany'),\n create: wrap(wrapParams, 'AppDefinition', 'create'),\n update: wrap(wrapParams, 'AppDefinition', 'update'),\n delete: wrap(wrapParams, 'AppDefinition', 'delete'),\n getInstallationsForOrg: wrap(wrapParams, 'AppDefinition', 'getInstallationsForOrg'),\n },\n appInstallation: {\n get: wrap(wrapParams, 'AppInstallation', 'get'),\n getMany: wrap(wrapParams, 'AppInstallation', 'getMany'),\n getForOrganization: wrap(wrapParams, 'AppInstallation', 'getForOrganization'),\n upsert: wrap(wrapParams, 'AppInstallation', 'upsert'),\n delete: wrap(wrapParams, 'AppInstallation', 'delete'),\n },\n extension: {\n get: wrap(wrapParams, 'Extension', 'get'),\n getMany: wrap(wrapParams, 'Extension', 'getMany'),\n create: wrap(wrapParams, 'Extension', 'create'),\n createWithId: wrap(wrapParams, 'Extension', 'createWithId'),\n update: wrap(wrapParams, 'Extension', 'update'),\n delete: wrap(wrapParams, 'Extension', 'delete'),\n },\n webhook: {\n get: wrap(wrapParams, 'Webhook', 'get'),\n getMany: wrap(wrapParams, 'Webhook', 'getMany'),\n getHealthStatus: wrap(wrapParams, 'Webhook', 'getHealthStatus'),\n getCallDetails: wrap(wrapParams, 'Webhook', 'getCallDetails'),\n getSigningSecret: wrap(wrapParams, 'Webhook', 'getSigningSecret'),\n getRetryPolicy: wrap(wrapParams, 'Webhook', 'getRetryPolicy'),\n getManyCallDetails: wrap(wrapParams, 'Webhook', 'getManyCallDetails'),\n create: wrap(wrapParams, 'Webhook', 'create'),\n update: wrap(wrapParams, 'Webhook', 'update'),\n upsertSigningSecret: wrap(wrapParams, 'Webhook', 'upsertSigningSecret'),\n upsertRetryPolicy: wrap(wrapParams, 'Webhook', 'upsertRetryPolicy'),\n delete: wrap(wrapParams, 'Webhook', 'delete'),\n deleteSigningSecret: wrap(wrapParams, 'Webhook', 'deleteSigningSecret'),\n deleteRetryPolicy: wrap(wrapParams, 'Webhook', 'deleteRetryPolicy'),\n },\n snapshot: {\n getManyForEntry: wrap(wrapParams, 'Snapshot', 'getManyForEntry'),\n getForEntry: wrap(wrapParams, 'Snapshot', 'getForEntry'),\n getManyForContentType: wrap(wrapParams, 'Snapshot', 'getManyForContentType'),\n getForContentType: wrap(wrapParams, 'Snapshot', 'getForContentType'),\n },\n tag: {\n get: wrap(wrapParams, 'Tag', 'get'),\n getMany: wrap(wrapParams, 'Tag', 'getMany'),\n createWithId: wrap(wrapParams, 'Tag', 'createWithId'),\n update: wrap(wrapParams, 'Tag', 'update'),\n delete: wrap(wrapParams, 'Tag', 'delete'),\n },\n organization: {\n getAll: wrap(wrapParams, 'Organization', 'getMany'),\n get: wrap(wrapParams, 'Organization', 'get'),\n },\n organizationInvitation: {\n get: wrap(wrapParams, 'OrganizationInvitation', 'get'),\n create: wrap(wrapParams, 'OrganizationInvitation', 'create'),\n },\n organizationMembership: {\n get: wrap(wrapParams, 'OrganizationMembership', 'get'),\n getMany: wrap(wrapParams, 'OrganizationMembership', 'getMany'),\n update: wrap(wrapParams, 'OrganizationMembership', 'update'),\n delete: wrap(wrapParams, 'OrganizationMembership', 'delete'),\n },\n spaceMember: {\n get: wrap(wrapParams, 'SpaceMember', 'get'),\n getMany: wrap(wrapParams, 'SpaceMember', 'getMany'),\n },\n spaceMembership: {\n get: wrap(wrapParams, 'SpaceMembership', 'get'),\n getMany: wrap(wrapParams, 'SpaceMembership', 'getMany'),\n getForOrganization: wrap(wrapParams, 'SpaceMembership', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'SpaceMembership', 'getManyForOrganization'),\n create: wrap(wrapParams, 'SpaceMembership', 'create'),\n createWithId: wrap(wrapParams, 'SpaceMembership', 'createWithId'),\n update: wrap(wrapParams, 'SpaceMembership', 'update'),\n delete: wrap(wrapParams, 'SpaceMembership', 'delete'),\n },\n team: {\n get: wrap(wrapParams, 'Team', 'get'),\n getMany: wrap(wrapParams, 'Team', 'getMany'),\n getManyForSpace: wrap(wrapParams, 'Team', 'getManyForSpace'),\n create: wrap(wrapParams, 'Team', 'create'),\n update: wrap(wrapParams, 'Team', 'update'),\n delete: wrap(wrapParams, 'Team', 'delete'),\n },\n teamMembership: {\n get: wrap(wrapParams, 'TeamMembership', 'get'),\n getManyForOrganization: wrap(wrapParams, 'TeamMembership', 'getManyForOrganization'),\n getManyForTeam: wrap(wrapParams, 'TeamMembership', 'getManyForTeam'),\n create: wrap(wrapParams, 'TeamMembership', 'create'),\n update: wrap(wrapParams, 'TeamMembership', 'update'),\n delete: wrap(wrapParams, 'TeamMembership', 'delete'),\n },\n teamSpaceMembership: {\n get: wrap(wrapParams, 'TeamSpaceMembership', 'get'),\n getMany: wrap(wrapParams, 'TeamSpaceMembership', 'getMany'),\n getForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getForOrganization'),\n getManyForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getManyForOrganization'),\n create: wrap(wrapParams, 'TeamSpaceMembership', 'create'),\n update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),\n delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),\n },\n uiConfig: {\n get: wrap(wrapParams, 'UIConfig', 'get'),\n update: wrap(wrapParams, 'UIConfig', 'update'),\n },\n userUIConfig: {\n get: wrap(wrapParams, 'UserUIConfig', 'get'),\n update: wrap(wrapParams, 'UserUIConfig', 'update'),\n },\n workflowDefinition: {\n get: wrap(wrapParams, 'WorkflowDefinition', 'get'),\n getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),\n create: wrap(wrapParams, 'WorkflowDefinition', 'create'),\n update: wrap(wrapParams, 'WorkflowDefinition', 'update'),\n delete: wrap(wrapParams, 'WorkflowDefinition', 'delete'),\n },\n workflow: {\n getMany: wrap(wrapParams, 'Workflow', 'getMany'),\n create: wrap(wrapParams, 'Workflow', 'create'),\n update: wrap(wrapParams, 'Workflow', 'update'),\n delete: wrap(wrapParams, 'Workflow', 'delete'),\n complete: wrap(wrapParams, 'Workflow', 'complete'),\n },\n workflowsChangelog: {\n getMany: wrap(wrapParams, 'WorkflowsChangelog', 'getMany'),\n },\n }\n}\n","import { MakeRequest, MRActions, MRReturn } from '../../common-types'\n\nexport type DefaultParams = {\n spaceId?: string\n environmentId?: string\n organizationId?: string\n}\n\n/**\n * @private\n */\nexport type OptionalDefaults = Omit &\n ('organizationId' extends keyof T ? { organizationId?: string } : Record) &\n ('spaceId' extends keyof T ? { spaceId?: string } : Record) &\n ('environmentId' extends keyof T ? { environmentId?: string } : Record)\n\n/**\n * @private\n */\nexport type WrapParams = {\n makeRequest: MakeRequest\n defaults?: DefaultParams\n}\n\n/**\n * @private\n */\nexport type WrapFn<\n ET extends keyof MRActions,\n Action extends keyof MRActions[ET],\n Params = 'params' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['params']\n : undefined,\n Payload = 'payload' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['payload']\n : undefined,\n Headers = 'headers' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['headers']\n : undefined,\n Return = MRReturn\n> = Params extends undefined\n ? () => Return\n : Payload extends undefined\n ? (params: Params) => Return\n : Headers extends undefined\n ? (params: Params, payload: Payload) => Return\n : (params: Params, payload: Payload, headers: Headers) => Return\n\n/**\n * @private\n */\nexport const wrap = (\n { makeRequest, defaults }: WrapParams,\n entityType: ET,\n action: Action\n): WrapFn => {\n type Params = 'params' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['params']\n : never\n type Payload = 'payload' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['payload']\n : never\n type Headers = 'headers' extends keyof MRActions[ET][Action]\n ? MRActions[ET][Action]['headers']\n : never\n\n // It's not really possible to make this type safe as we are overloading `makeRequest`.\n // This missing typesafety is only within `wrap`. `wrap` has proper public types.\n // @ts-expect-error\n return (params?: Params, payload?: Payload, headers?: Headers): MRReturn =>\n // @ts-expect-error\n makeRequest({\n // @ts-expect-error\n entityType,\n // @ts-expect-error\n action,\n // @ts-expect-error\n params: { ...defaults, ...params },\n payload,\n // Required after adding optional headers to a delete method for the first time\n // @ts-expect-error\n headers,\n })\n}\n","import type { AxiosInstance } from 'contentful-sdk-core'\n\ntype UploadHttpClientOpts = {\n uploadTimeout?: number\n}\n\n/**\n * @private\n */\nexport function getUploadHttpClient(\n http: AxiosInstance,\n options?: UploadHttpClientOpts\n): AxiosInstance {\n const { hostUpload, defaultHostnameUpload, timeout } = http.httpClientParams as Record<\n string,\n any\n >\n const uploadHttp = http.cloneWithNewParams({\n host: hostUpload || defaultHostnameUpload,\n // Using client presets, options or 5 minute default timeout\n timeout: timeout ?? options?.uploadTimeout ?? 300000,\n })\n return uploadHttp\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","var util = require('util');\nvar Stream = require('stream').Stream;\nvar DelayedStream = require('delayed-stream');\n\nmodule.exports = CombinedStream;\nfunction CombinedStream() {\n this.writable = false;\n this.readable = true;\n this.dataSize = 0;\n this.maxDataSize = 2 * 1024 * 1024;\n this.pauseStreams = true;\n\n this._released = false;\n this._streams = [];\n this._currentStream = null;\n this._insideLoop = false;\n this._pendingNext = false;\n}\nutil.inherits(CombinedStream, Stream);\n\nCombinedStream.create = function(options) {\n var combinedStream = new this();\n\n options = options || {};\n for (var option in options) {\n combinedStream[option] = options[option];\n }\n\n return combinedStream;\n};\n\nCombinedStream.isStreamLike = function(stream) {\n return (typeof stream !== 'function')\n && (typeof stream !== 'string')\n && (typeof stream !== 'boolean')\n && (typeof stream !== 'number')\n && (!Buffer.isBuffer(stream));\n};\n\nCombinedStream.prototype.append = function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n\n if (isStreamLike) {\n if (!(stream instanceof DelayedStream)) {\n var newStream = DelayedStream.create(stream, {\n maxDataSize: Infinity,\n pauseStream: this.pauseStreams,\n });\n stream.on('data', this._checkDataSize.bind(this));\n stream = newStream;\n }\n\n this._handleErrors(stream);\n\n if (this.pauseStreams) {\n stream.pause();\n }\n }\n\n this._streams.push(stream);\n return this;\n};\n\nCombinedStream.prototype.pipe = function(dest, options) {\n Stream.prototype.pipe.call(this, dest, options);\n this.resume();\n return dest;\n};\n\nCombinedStream.prototype._getNext = function() {\n this._currentStream = null;\n\n if (this._insideLoop) {\n this._pendingNext = true;\n return; // defer call\n }\n\n this._insideLoop = true;\n try {\n do {\n this._pendingNext = false;\n this._realGetNext();\n } while (this._pendingNext);\n } finally {\n this._insideLoop = false;\n }\n};\n\nCombinedStream.prototype._realGetNext = function() {\n var stream = this._streams.shift();\n\n\n if (typeof stream == 'undefined') {\n this.end();\n return;\n }\n\n if (typeof stream !== 'function') {\n this._pipeNext(stream);\n return;\n }\n\n var getStream = stream;\n getStream(function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('data', this._checkDataSize.bind(this));\n this._handleErrors(stream);\n }\n\n this._pipeNext(stream);\n }.bind(this));\n};\n\nCombinedStream.prototype._pipeNext = function(stream) {\n this._currentStream = stream;\n\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('end', this._getNext.bind(this));\n stream.pipe(this, {end: false});\n return;\n }\n\n var value = stream;\n this.write(value);\n this._getNext();\n};\n\nCombinedStream.prototype._handleErrors = function(stream) {\n var self = this;\n stream.on('error', function(err) {\n self._emitError(err);\n });\n};\n\nCombinedStream.prototype.write = function(data) {\n this.emit('data', data);\n};\n\nCombinedStream.prototype.pause = function() {\n if (!this.pauseStreams) {\n return;\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();\n this.emit('pause');\n};\n\nCombinedStream.prototype.resume = function() {\n if (!this._released) {\n this._released = true;\n this.writable = true;\n this._getNext();\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();\n this.emit('resume');\n};\n\nCombinedStream.prototype.end = function() {\n this._reset();\n this.emit('end');\n};\n\nCombinedStream.prototype.destroy = function() {\n this._reset();\n this.emit('close');\n};\n\nCombinedStream.prototype._reset = function() {\n this.writable = false;\n this._streams = [];\n this._currentStream = null;\n};\n\nCombinedStream.prototype._checkDataSize = function() {\n this._updateDataSize();\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';\n this._emitError(new Error(message));\n};\n\nCombinedStream.prototype._updateDataSize = function() {\n this.dataSize = 0;\n\n var self = this;\n this._streams.forEach(function(stream) {\n if (!stream.dataSize) {\n return;\n }\n\n self.dataSize += stream.dataSize;\n });\n\n if (this._currentStream && this._currentStream.dataSize) {\n this.dataSize += this._currentStream.dataSize;\n }\n};\n\nCombinedStream.prototype._emitError = function(err) {\n this._reset();\n this.emit('error', err);\n};\n","import copy from 'fast-copy';\nimport qs from 'qs';\nimport isString from 'lodash.isstring';\nimport pThrottle from 'p-throttle';\nimport isPlainObject from 'lodash.isplainobject';\n\nfunction _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nfunction _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nfunction _wrapRegExp() {\n _wrapRegExp = function (e, r) {\n return new BabelRegExp(e, void 0, r);\n };\n var e = RegExp.prototype,\n r = new WeakMap();\n function BabelRegExp(e, t, p) {\n var o = new RegExp(e, t);\n return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);\n }\n function buildGroups(e, t) {\n var p = r.get(t);\n return Object.keys(p).reduce(function (r, t) {\n var o = p[t];\n if (\"number\" == typeof o) r[t] = e[o];else {\n for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;\n r[t] = e[o[i]];\n }\n return r;\n }, Object.create(null));\n }\n return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {\n var t = e.exec.call(this, r);\n if (t) {\n t.groups = buildGroups(t, this);\n var p = t.indices;\n p && (p.groups = buildGroups(p, this));\n }\n return t;\n }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {\n if (\"string\" == typeof p) {\n var o = r.get(this);\n return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)>/g, function (e, r) {\n var t = o[r];\n return \"$\" + (Array.isArray(t) ? t.join(\"$\") : t);\n }));\n }\n if (\"function\" == typeof p) {\n var i = this;\n return e[Symbol.replace].call(this, t, function () {\n var e = arguments;\n return \"object\" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);\n });\n }\n return e[Symbol.replace].call(this, t, p);\n }, _wrapRegExp.apply(this, arguments);\n}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function () {};\n return {\n s: F,\n n: function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function (e) {\n throw e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function () {\n it = it.call(o);\n },\n n: function () {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function (e) {\n didErr = true;\n err = e;\n },\n f: function () {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\n\nfunction asyncToken(instance, getToken) {\n instance.interceptors.request.use(function (config) {\n return getToken().then(function (accessToken) {\n config.headers.set('Authorization', \"Bearer \".concat(accessToken));\n return config;\n });\n });\n}\n\nfunction isNode() {\n /**\n * Polyfills of 'process' might set process.browser === true\n *\n * See:\n * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8\n * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156\n **/\n return typeof process !== 'undefined' && !process.browser;\n}\nfunction isReactNative() {\n return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative';\n}\nfunction getNodeVersion() {\n return process.versions && process.versions.node ? \"v\".concat(process.versions.node) : process.version;\n}\nfunction getWindow() {\n return window;\n}\nfunction noop() {\n return undefined;\n}\n\nvar delay = function delay(ms) {\n return new Promise(function (resolve) {\n setTimeout(resolve, ms);\n });\n};\nvar defaultWait = function defaultWait(attempts) {\n return Math.pow(Math.SQRT2, attempts);\n};\nfunction rateLimit(instance) {\n var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;\n var _instance$defaults = instance.defaults,\n _instance$defaults$re = _instance$defaults.responseLogger,\n responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re,\n _instance$defaults$re2 = _instance$defaults.requestLogger,\n requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2;\n instance.interceptors.request.use(function (config) {\n requestLogger(config);\n return config;\n }, function (error) {\n requestLogger(error);\n return Promise.reject(error);\n });\n instance.interceptors.response.use(function (response) {\n // we don't need to do anything here\n responseLogger(response);\n return response;\n }, function (error) {\n var response = error.response;\n var config = error.config;\n responseLogger(error);\n // Do not retry if it is disabled or no request config exists (not an axios error)\n if (!config || !instance.defaults.retryOnError) {\n return Promise.reject(error);\n }\n\n // Retried already for max attempts\n var doneAttempts = config.attempts || 1;\n if (doneAttempts > maxRetry) {\n error.attempts = config.attempts;\n return Promise.reject(error);\n }\n var retryErrorType = null;\n var wait = defaultWait(doneAttempts);\n\n // Errors without response did not receive anything from the server\n if (!response) {\n retryErrorType = 'Connection';\n } else if (response.status >= 500 && response.status < 600) {\n // 5** errors are server related\n retryErrorType = \"Server \".concat(response.status);\n } else if (response.status === 429) {\n // 429 errors are exceeded rate limit exceptions\n retryErrorType = 'Rate limit';\n // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413\n if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) {\n wait = response.headers['x-contentful-ratelimit-reset'];\n }\n }\n if (retryErrorType) {\n // convert to ms and add jitter\n wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);\n instance.defaults.logHandler('warning', \"\".concat(retryErrorType, \" error occurred. Waiting for \").concat(wait, \" ms before retrying...\"));\n\n // increase attempts counter\n config.attempts = doneAttempts + 1;\n\n /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object\n to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry\n requests still use the original http/httpsAgent property */\n delete config.httpAgent;\n delete config.httpsAgent;\n return delay(wait).then(function () {\n return instance(config);\n });\n }\n return Promise.reject(error);\n });\n}\n\nvar PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\\d+)(%)/, {\n value: 1\n});\nfunction calculateLimit(type) {\n var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7;\n var limit = max;\n if (PERCENTAGE_REGEX.test(type)) {\n var _type$match;\n var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups;\n if (groups && groups.value) {\n var percentage = parseInt(groups.value) / 100;\n limit = Math.round(max * percentage);\n }\n }\n return Math.min(30, Math.max(1, limit));\n}\nfunction createThrottle(limit, logger) {\n logger('info', \"Throttle request to \".concat(limit, \"/s\"));\n return pThrottle({\n limit: limit,\n interval: 1000,\n strict: false\n });\n}\nvar rateLimitThrottle = (function (axiosInstance) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';\n var _axiosInstance$defaul = axiosInstance.defaults.logHandler,\n logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;\n var limit = isString(type) ? calculateLimit(type) : calculateLimit('auto', type);\n var throttle = createThrottle(limit, logHandler);\n var isCalculated = false;\n var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {\n return throttle(function () {\n return config;\n })();\n }, function (error) {\n return Promise.reject(error);\n });\n var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {\n if (!isCalculated && isString(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {\n var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);\n var nextLimit = calculateLimit(type, rawLimit);\n if (nextLimit !== limit) {\n if (requestInterceptorId) {\n axiosInstance.interceptors.request.eject(requestInterceptorId);\n }\n limit = nextLimit;\n throttle = createThrottle(nextLimit, logHandler);\n requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {\n return throttle(function () {\n return config;\n })();\n }, function (error) {\n return Promise.reject(error);\n });\n }\n isCalculated = true;\n }\n return response;\n }, function (error) {\n return Promise.reject(error);\n });\n return function () {\n axiosInstance.interceptors.request.eject(requestInterceptorId);\n axiosInstance.interceptors.response.eject(responseInterceptorId);\n };\n});\n\n// Matches 'sub.host:port' or 'host:port' and extracts hostname and port\n// Also enforces toplevel domain specified, no spaces and no protocol\nvar HOST_REGEX = /^(?!\\w+:\\/\\/)([^\\s:]+\\.?[^\\s:]+)(?::(\\d+))?(?!:)$/;\n\n/**\n * Create pre-configured axios instance\n * @private\n * @param {AxiosStatic} axios - Axios library\n * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client\n * @return {AxiosInstance} Initialized axios instance\n */\nfunction createHttpClient(axios, options) {\n var defaultConfig = {\n insecure: false,\n retryOnError: true,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n logHandler: function logHandler(level, data) {\n if (level === 'error' && data) {\n var title = [data.name, data.message].filter(function (a) {\n return a;\n }).join(' - ');\n console.error(\"[error] \".concat(title));\n console.error(data);\n return;\n }\n console.log(\"[\".concat(level, \"] \").concat(data));\n },\n // Passed to axios\n headers: {},\n httpAgent: false,\n httpsAgent: false,\n timeout: 30000,\n throttle: 0,\n basePath: '',\n adapter: undefined,\n maxContentLength: 1073741824,\n // 1GB\n maxBodyLength: 1073741824 // 1GB\n };\n var config = _objectSpread2(_objectSpread2({}, defaultConfig), options);\n if (!config.accessToken) {\n var missingAccessTokenError = new TypeError('Expected parameter accessToken');\n config.logHandler('error', missingAccessTokenError);\n throw missingAccessTokenError;\n }\n\n // Construct axios baseURL option\n var protocol = config.insecure ? 'http' : 'https';\n var space = config.space ? \"\".concat(config.space, \"/\") : '';\n var hostname = config.defaultHostname;\n var port = config.insecure ? 80 : 443;\n if (config.host && HOST_REGEX.test(config.host)) {\n var parsed = config.host.split(':');\n if (parsed.length === 2) {\n var _parsed = _slicedToArray(parsed, 2);\n hostname = _parsed[0];\n port = _parsed[1];\n } else {\n hostname = parsed[0];\n }\n }\n\n // Ensure that basePath does start but not end with a slash\n if (config.basePath) {\n config.basePath = \"/\".concat(config.basePath.split('/').filter(Boolean).join('/'));\n }\n var baseURL = options.baseURL || \"\".concat(protocol, \"://\").concat(hostname, \":\").concat(port).concat(config.basePath, \"/spaces/\").concat(space);\n if (!config.headers.Authorization && typeof config.accessToken !== 'function') {\n config.headers.Authorization = 'Bearer ' + config.accessToken;\n }\n var axiosOptions = {\n // Axios\n baseURL: baseURL,\n headers: config.headers,\n httpAgent: config.httpAgent,\n httpsAgent: config.httpsAgent,\n proxy: config.proxy,\n timeout: config.timeout,\n adapter: config.adapter,\n maxContentLength: config.maxContentLength,\n maxBodyLength: config.maxBodyLength,\n paramsSerializer: {\n serialize: function serialize(params) {\n return qs.stringify(params);\n }\n },\n // Contentful\n logHandler: config.logHandler,\n responseLogger: config.responseLogger,\n requestLogger: config.requestLogger,\n retryOnError: config.retryOnError\n };\n var instance = axios.create(axiosOptions);\n instance.httpClientParams = options;\n\n /**\n * Creates a new axios instance with the same default base parameters as the\n * current one, and with any overrides passed to the newParams object\n * This is useful as the SDKs use dependency injection to get the axios library\n * and the version of the library comes from different places depending\n * on whether it's a browser build or a node.js build.\n * @private\n * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client\n * @return {AxiosInstance} Initialized axios instance\n */\n instance.cloneWithNewParams = function (newParams) {\n return createHttpClient(axios, _objectSpread2(_objectSpread2({}, copy(options)), newParams));\n };\n\n /**\n * Apply interceptors.\n * Please note that the order of interceptors is important\n */\n\n if (config.onBeforeRequest) {\n instance.interceptors.request.use(config.onBeforeRequest);\n }\n if (typeof config.accessToken === 'function') {\n asyncToken(instance, config.accessToken);\n }\n if (config.throttle) {\n rateLimitThrottle(instance, config.throttle);\n }\n rateLimit(instance, config.retryLimit);\n if (config.onError) {\n instance.interceptors.response.use(function (response) {\n return response;\n }, config.onError);\n }\n return instance;\n}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * Creates request parameters configuration by parsing an existing query object\n * @private\n * @param {Object} query\n * @return {Object} Config object with `params` property, ready to be used in axios\n */\nfunction createRequestConfig(_ref) {\n var query = _ref.query;\n var config = {};\n delete query.resolveLinks;\n config.params = copy(query);\n return config;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction enforceObjPath(obj, path) {\n if (!(path in obj)) {\n var err = new Error();\n err.name = 'PropertyMissing';\n err.message = \"Required property \".concat(path, \" missing from:\\n\\n\").concat(JSON.stringify(obj), \"\\n\\n\");\n throw err;\n }\n return true;\n}\n\n// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n\nfunction deepFreeze(object) {\n var propNames = Object.getOwnPropertyNames(object);\n var _iterator = _createForOfIteratorHelper(propNames),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var name = _step.value;\n var value = object[name];\n if (value && _typeof(value) === 'object') {\n deepFreeze(value);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return Object.freeze(object);\n}\nfunction freezeSys(obj) {\n deepFreeze(obj.sys || {});\n return obj;\n}\n\nfunction getBrowserOS() {\n var win = getWindow();\n if (!win) {\n return null;\n }\n var userAgent = win.navigator.userAgent;\n // TODO: platform is deprecated.\n var platform = win.navigator.platform;\n var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'];\n var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'];\n var iosPlatforms = ['iPhone', 'iPad', 'iPod'];\n if (macosPlatforms.indexOf(platform) !== -1) {\n return 'macOS';\n } else if (iosPlatforms.indexOf(platform) !== -1) {\n return 'iOS';\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\n return 'Windows';\n } else if (/Android/.test(userAgent)) {\n return 'Android';\n } else if (/Linux/.test(platform)) {\n return 'Linux';\n }\n return null;\n}\nfunction getNodeOS() {\n var platform = process.platform || 'linux';\n var version = process.version || '0.0.0';\n var platformMap = {\n android: 'Android',\n aix: 'Linux',\n darwin: 'macOS',\n freebsd: 'Linux',\n linux: 'Linux',\n openbsd: 'Linux',\n sunos: 'Linux',\n win32: 'Windows'\n };\n if (platform in platformMap) {\n return \"\".concat(platformMap[platform] || 'Linux', \"/\").concat(version);\n }\n return null;\n}\nfunction getUserAgentHeader(sdk, application, integration, feature) {\n var headerParts = [];\n if (application) {\n headerParts.push(\"app \".concat(application));\n }\n if (integration) {\n headerParts.push(\"integration \".concat(integration));\n }\n if (feature) {\n headerParts.push('feature ' + feature);\n }\n headerParts.push(\"sdk \".concat(sdk));\n var platform = null;\n try {\n if (isReactNative()) {\n platform = getBrowserOS();\n headerParts.push('platform ReactNative');\n } else if (isNode()) {\n platform = getNodeOS();\n headerParts.push(\"platform node.js/\".concat(getNodeVersion()));\n } else {\n platform = getBrowserOS();\n headerParts.push('platform browser');\n }\n } catch (e) {\n platform = null;\n }\n if (platform) {\n headerParts.push(\"os \".concat(platform));\n }\n return \"\".concat(headerParts.filter(function (item) {\n return item !== '';\n }).join('; '), \";\");\n}\n\n/**\n * Mixes in a method to return just a plain object with no additional methods\n * @private\n * @param data - Any plain JSON response returned from the API\n * @return Enhanced object with toPlainObject method\n */\nfunction toPlainObject(data) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n return Object.defineProperty(data, 'toPlainObject', {\n enumerable: false,\n configurable: false,\n writable: false,\n value: function value() {\n return copy(this);\n }\n });\n}\n\n/**\n * Handles errors received from the server. Parses the error into a more useful\n * format, places it in an exception and throws it.\n * See https://www.contentful.com/developers/docs/references/errors/\n * for more details on the data received on the errorResponse.data property\n * and the expected error codes.\n * @private\n */\nfunction errorHandler(errorResponse) {\n var config = errorResponse.config,\n response = errorResponse.response;\n var errorName;\n\n // Obscure the Management token\n if (config && config.headers && config.headers['Authorization']) {\n var token = \"...\".concat(config.headers['Authorization'].toString().substr(-5));\n config.headers['Authorization'] = \"Bearer \".concat(token);\n }\n if (!isPlainObject(response) || !isPlainObject(config)) {\n throw errorResponse;\n }\n var data = response === null || response === void 0 ? void 0 : response.data;\n var errorData = {\n status: response === null || response === void 0 ? void 0 : response.status,\n statusText: response === null || response === void 0 ? void 0 : response.statusText,\n message: '',\n details: {}\n };\n if (config && isPlainObject(config)) {\n errorData.request = {\n url: config.url,\n headers: config.headers,\n method: config.method,\n payloadData: config.data\n };\n }\n if (data && _typeof(data) === 'object') {\n var _data$sys;\n if ('requestId' in data) {\n errorData.requestId = data.requestId || 'UNKNOWN';\n }\n if ('message' in data) {\n errorData.message = data.message || '';\n }\n if ('details' in data) {\n errorData.details = data.details || {};\n }\n errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id;\n }\n var error = new Error();\n error.name = errorName && errorName !== 'Unknown' ? errorName : \"\".concat(response === null || response === void 0 ? void 0 : response.status, \" \").concat(response === null || response === void 0 ? void 0 : response.statusText);\n try {\n error.message = JSON.stringify(errorData, null, ' ');\n } catch (_unused) {\n var _errorData$message;\n error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : '';\n }\n throw error;\n}\n\nexport { createHttpClient, createRequestConfig, enforceObjPath, errorHandler, freezeSys, getUserAgentHeader, toPlainObject };\n","var toStringFunction = Function.prototype.toString;\nvar create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf;\nvar _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;\nvar SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function';\nvar WEAK_MAP = typeof WeakMap === 'function';\n/**\n * @function createCache\n *\n * @description\n * get a new cache object to prevent circular references\n *\n * @returns the new cache object\n */\nvar createCache = (function () {\n if (WEAK_MAP) {\n return function () { return new WeakMap(); };\n }\n var Cache = /** @class */ (function () {\n function Cache() {\n this._keys = [];\n this._values = [];\n }\n Cache.prototype.has = function (key) {\n return !!~this._keys.indexOf(key);\n };\n Cache.prototype.get = function (key) {\n return this._values[this._keys.indexOf(key)];\n };\n Cache.prototype.set = function (key, value) {\n this._keys.push(key);\n this._values.push(value);\n };\n return Cache;\n }());\n return function () { return new Cache(); };\n})();\n/**\n * @function getCleanClone\n *\n * @description\n * get an empty version of the object with the same prototype it has\n *\n * @param object the object to build a clean clone from\n * @param realm the realm the object resides in\n * @returns the empty cloned object\n */\nvar getCleanClone = function (object, realm) {\n var prototype = object.__proto__ || getPrototypeOf$1(object);\n if (!prototype) {\n return create(null);\n }\n var Constructor = prototype.constructor;\n if (Constructor === realm.Object) {\n return prototype === realm.Object.prototype ? {} : create(prototype);\n }\n if (~toStringFunction.call(Constructor).indexOf('[native code]')) {\n try {\n return new Constructor();\n }\n catch (_a) { }\n }\n return create(prototype);\n};\n/**\n * @function getObjectCloneLoose\n *\n * @description\n * get a copy of the object based on loose rules, meaning all enumerable keys\n * and symbols are copied, but property descriptors are not considered\n *\n * @param object the object to clone\n * @param realm the realm the object resides in\n * @param handleCopy the function that handles copying the object\n * @returns the copied object\n */\nvar getObjectCloneLoose = function (object, realm, handleCopy, cache) {\n var clone = getCleanClone(object, realm);\n // set in the cache immediately to be able to reuse the object recursively\n cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = handleCopy(object[key], cache);\n }\n }\n if (SYMBOL_PROPERTIES) {\n var symbols = getOwnPropertySymbols(object);\n for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {\n symbol = symbols[index];\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = handleCopy(object[symbol], cache);\n }\n }\n }\n return clone;\n};\n/**\n * @function getObjectCloneStrict\n *\n * @description\n * get a copy of the object based on strict rules, meaning all keys and symbols\n * are copied based on the original property descriptors\n *\n * @param object the object to clone\n * @param realm the realm the object resides in\n * @param handleCopy the function that handles copying the object\n * @returns the copied object\n */\nvar getObjectCloneStrict = function (object, realm, handleCopy, cache) {\n var clone = getCleanClone(object, realm);\n // set in the cache immediately to be able to reuse the object recursively\n cache.set(object, clone);\n var properties = SYMBOL_PROPERTIES\n ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object))\n : getOwnPropertyNames(object);\n for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {\n property = properties[index];\n if (property !== 'callee' && property !== 'caller') {\n descriptor = getOwnPropertyDescriptor(object, property);\n if (descriptor) {\n // Only clone the value if actually a value, not a getter / setter.\n if (!descriptor.get && !descriptor.set) {\n descriptor.value = handleCopy(object[property], cache);\n }\n try {\n defineProperty(clone, property, descriptor);\n }\n catch (error) {\n // Tee above can fail on node in edge cases, so fall back to the loose assignment.\n clone[property] = descriptor.value;\n }\n }\n else {\n // In extra edge cases where the property descriptor cannot be retrived, fall back to\n // the loose assignment.\n clone[property] = handleCopy(object[property], cache);\n }\n }\n }\n return clone;\n};\n/**\n * @function getRegExpFlags\n *\n * @description\n * get the flags to apply to the copied regexp\n *\n * @param regExp the regexp to get the flags of\n * @returns the flags for the regexp\n */\nvar getRegExpFlags = function (regExp) {\n var flags = '';\n if (regExp.global) {\n flags += 'g';\n }\n if (regExp.ignoreCase) {\n flags += 'i';\n }\n if (regExp.multiline) {\n flags += 'm';\n }\n if (regExp.unicode) {\n flags += 'u';\n }\n if (regExp.sticky) {\n flags += 'y';\n }\n return flags;\n};\n\n// utils\nvar isArray = Array.isArray;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar GLOBAL_THIS = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n }\n if (typeof self !== 'undefined') {\n return self;\n }\n if (typeof window !== 'undefined') {\n return window;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n if (console && console.error) {\n console.error('Unable to locate global object, returning \"this\".');\n }\n return this;\n})();\n/**\n * @function copy\n *\n * @description\n * copy an value deeply as much as possible\n *\n * If `strict` is applied, then all properties (including non-enumerable ones)\n * are copied with their original property descriptors on both objects and arrays.\n *\n * The value is compared to the global constructors in the `realm` provided,\n * and the native constructor is always used to ensure that extensions of native\n * objects (allows in ES2015+) are maintained.\n *\n * @param value the value to copy\n * @param [options] the options for copying with\n * @param [options.isStrict] should the copy be strict\n * @param [options.realm] the realm (this) value the value is copied from\n * @returns the copied value\n */\nfunction copy(value, options) {\n // manually coalesced instead of default parameters for performance\n var isStrict = !!(options && options.isStrict);\n var realm = (options && options.realm) || GLOBAL_THIS;\n var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose;\n /**\n * @function handleCopy\n *\n * @description\n * copy the value recursively based on its type\n *\n * @param value the value to copy\n * @returns the copied value\n */\n var handleCopy = function (value, cache) {\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (cache.has(value)) {\n return cache.get(value);\n }\n var prototype = value.__proto__ || getPrototypeOf(value);\n var Constructor = prototype && prototype.constructor;\n // plain objects\n if (!Constructor || Constructor === realm.Object) {\n return getObjectClone(value, realm, handleCopy, cache);\n }\n var clone;\n // arrays\n if (isArray(value)) {\n // if strict, include non-standard properties\n if (isStrict) {\n return getObjectCloneStrict(value, realm, handleCopy, cache);\n }\n clone = new Constructor();\n cache.set(value, clone);\n for (var index = 0, length_1 = value.length; index < length_1; ++index) {\n clone[index] = handleCopy(value[index], cache);\n }\n return clone;\n }\n // dates\n if (value instanceof realm.Date) {\n return new Constructor(value.getTime());\n }\n // regexps\n if (value instanceof realm.RegExp) {\n clone = new Constructor(value.source, value.flags || getRegExpFlags(value));\n clone.lastIndex = value.lastIndex;\n return clone;\n }\n // maps\n if (realm.Map && value instanceof realm.Map) {\n clone = new Constructor();\n cache.set(value, clone);\n value.forEach(function (value, key) {\n clone.set(key, handleCopy(value, cache));\n });\n return clone;\n }\n // sets\n if (realm.Set && value instanceof realm.Set) {\n clone = new Constructor();\n cache.set(value, clone);\n value.forEach(function (value) {\n clone.add(handleCopy(value, cache));\n });\n return clone;\n }\n // blobs\n if (realm.Blob && value instanceof realm.Blob) {\n return value.slice(0, value.size, value.type);\n }\n // buffers (node-only)\n if (realm.Buffer && realm.Buffer.isBuffer(value)) {\n clone = realm.Buffer.allocUnsafe\n ? realm.Buffer.allocUnsafe(value.length)\n : new Constructor(value.length);\n cache.set(value, clone);\n value.copy(clone);\n return clone;\n }\n // arraybuffers / dataviews\n if (realm.ArrayBuffer) {\n // dataviews\n if (realm.ArrayBuffer.isView(value)) {\n clone = new Constructor(value.buffer.slice(0));\n cache.set(value, clone);\n return clone;\n }\n // arraybuffers\n if (value instanceof realm.ArrayBuffer) {\n clone = value.slice(0);\n cache.set(value, clone);\n return clone;\n }\n }\n // if the value cannot / should not be cloned, don't\n if (\n // promise-like\n typeof value.then === 'function' ||\n // errors\n value instanceof Error ||\n // weakmaps\n (realm.WeakMap && value instanceof realm.WeakMap) ||\n // weaksets\n (realm.WeakSet && value instanceof realm.WeakSet)) {\n return value;\n }\n // assume anything left is a custom constructor\n return getObjectClone(value, realm, handleCopy, cache);\n };\n return handleCopy(value, createCache());\n}\n// Adding reference to allow usage in CommonJS libraries compiled using TSC, which\n// expects there to be a default property on the exported value. See\n// [#37](https://github.com/planttheidea/fast-copy/issues/37) for details.\ncopy.default = copy;\n/**\n * @function strictCopy\n *\n * @description\n * copy the value with `strict` option pre-applied\n *\n * @param value the value to copy\n * @param [options] the options for copying with\n * @param [options.realm] the realm (this) value the value is copied from\n * @returns the copied value\n */\ncopy.strict = function strictCopy(value, options) {\n return copy(value, {\n isStrict: true,\n realm: options ? options.realm : void 0,\n });\n};\n\nexport { copy as default };\n//# sourceMappingURL=fast-copy.esm.js.map\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\"use strict\";\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\n/**\n * Colors.\n */\n\nexports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n// eslint-disable-next-line complexity\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n return true;\n } // Internet Explorer and Edge do not support colors.\n\n\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n } // Is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\n\n return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773\n typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n}\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);\n\n if (!this.useColors) {\n return;\n }\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit'); // The final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function (match) {\n if (match === '%%') {\n return;\n }\n\n index++;\n\n if (match === '%c') {\n // We only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n}\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\n\nfunction log() {\n var _console;\n\n // This hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return (typeof console === \"undefined\" ? \"undefined\" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n try {\n if (namespaces) {\n exports.storage.setItem('debug', namespaces);\n } else {\n exports.storage.removeItem('debug');\n }\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n var r;\n\n try {\n r = exports.storage.getItem('debug');\n } catch (error) {} // Swallow\n // XXX (@Qix-) should we be logging these?\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\n\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\n\nfunction localstorage() {\n try {\n // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n // The Browser also has localStorage in the global context.\n return localStorage;\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n\nmodule.exports = require('./common')(exports);\nvar formatters = module.exports.formatters;\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n try {\n return JSON.stringify(v);\n } catch (error) {\n return '[UnexpectedJSONParseError]: ' + error.message;\n }\n};\n\n","\"use strict\";\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\nfunction setup(env) {\n createDebug.debug = createDebug;\n createDebug.default = createDebug;\n createDebug.coerce = coerce;\n createDebug.disable = disable;\n createDebug.enable = enable;\n createDebug.enabled = enabled;\n createDebug.humanize = require('ms');\n Object.keys(env).forEach(function (key) {\n createDebug[key] = env[key];\n });\n /**\n * Active `debug` instances.\n */\n\n createDebug.instances = [];\n /**\n * The currently active debug mode names, and names to skip.\n */\n\n createDebug.names = [];\n createDebug.skips = [];\n /**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\n createDebug.formatters = {};\n /**\n * Selects a color for a debug namespace\n * @param {String} namespace The namespace string for the for the debug instance to be colored\n * @return {Number|String} An ANSI color code for the given namespace\n * @api private\n */\n\n function selectColor(namespace) {\n var hash = 0;\n\n for (var i = 0; i < namespace.length; i++) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n }\n\n createDebug.selectColor = selectColor;\n /**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\n function createDebug(namespace) {\n var prevTime;\n\n function debug() {\n // Disabled?\n if (!debug.enabled) {\n return;\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var self = debug; // Set `diff` timestamp\n\n var curr = Number(new Date());\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n args[0] = createDebug.coerce(args[0]);\n\n if (typeof args[0] !== 'string') {\n // Anything else let's inspect with %O\n args.unshift('%O');\n } // Apply any `formatters` transformations\n\n\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {\n // If we encounter an escaped % then don't increase the array index\n if (match === '%%') {\n return match;\n }\n\n index++;\n var formatter = createDebug.formatters[format];\n\n if (typeof formatter === 'function') {\n var val = args[index];\n match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`\n\n args.splice(index, 1);\n index--;\n }\n\n return match;\n }); // Apply env-specific formatting (colors, etc.)\n\n createDebug.formatArgs.call(self, args);\n var logFn = self.log || createDebug.log;\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = createDebug.enabled(namespace);\n debug.useColors = createDebug.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n debug.extend = extend; // Debug.formatArgs = formatArgs;\n // debug.rawLog = rawLog;\n // env-specific initialization logic for debug instances\n\n if (typeof createDebug.init === 'function') {\n createDebug.init(debug);\n }\n\n createDebug.instances.push(debug);\n return debug;\n }\n\n function destroy() {\n var index = createDebug.instances.indexOf(this);\n\n if (index !== -1) {\n createDebug.instances.splice(index, 1);\n return true;\n }\n\n return false;\n }\n\n function extend(namespace, delimiter) {\n return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n }\n /**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\n\n function enable(namespaces) {\n createDebug.save(namespaces);\n createDebug.names = [];\n createDebug.skips = [];\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i < len; i++) {\n if (!split[i]) {\n // ignore empty strings\n continue;\n }\n\n namespaces = split[i].replace(/\\*/g, '.*?');\n\n if (namespaces[0] === '-') {\n createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n createDebug.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i < createDebug.instances.length; i++) {\n var instance = createDebug.instances[i];\n instance.enabled = createDebug.enabled(instance.namespace);\n }\n }\n /**\n * Disable debug output.\n *\n * @api public\n */\n\n\n function disable() {\n createDebug.enable('');\n }\n /**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\n\n function enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n\n var i;\n var len;\n\n for (i = 0, len = createDebug.skips.length; i < len; i++) {\n if (createDebug.skips[i].test(name)) {\n return false;\n }\n }\n\n for (i = 0, len = createDebug.names.length; i < len; i++) {\n if (createDebug.names[i].test(name)) {\n return true;\n }\n }\n\n return false;\n }\n /**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\n\n function coerce(val) {\n if (val instanceof Error) {\n return val.stack || val.message;\n }\n\n return val;\n }\n\n createDebug.enable(createDebug.load());\n return createDebug;\n}\n\nmodule.exports = setup;\n\n","\"use strict\";\n\n/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n module.exports = require('./browser.js');\n} else {\n module.exports = require('./node.js');\n}\n\n","\"use strict\";\n\n/**\n * Module dependencies.\n */\nvar tty = require('tty');\n\nvar util = require('util');\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n // eslint-disable-next-line import/no-extraneous-dependencies\n var supportsColor = require('supports-color');\n\n if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];\n }\n} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\n\nexports.inspectOpts = Object.keys(process.env).filter(function (key) {\n return /^debug_/i.test(key);\n}).reduce(function (obj, key) {\n // Camel-case\n var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {\n return k.toUpperCase();\n }); // Coerce string value into JS value\n\n var val = process.env[key];\n\n if (/^(yes|on|true|enabled)$/i.test(val)) {\n val = true;\n } else if (/^(no|off|false|disabled)$/i.test(val)) {\n val = false;\n } else if (val === 'null') {\n val = null;\n } else {\n val = Number(val);\n }\n\n obj[prop] = val;\n return obj;\n}, {});\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);\n}\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n var name = this.namespace,\n useColors = this.useColors;\n\n if (useColors) {\n var c = this.color;\n var colorCode = \"\\x1B[3\" + (c < 8 ? c : '8;5;' + c);\n var prefix = \" \".concat(colorCode, \";1m\").concat(name, \" \\x1B[0m\");\n args[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + \"\\x1B[0m\");\n } else {\n args[0] = getDate() + name + ' ' + args[0];\n }\n}\n\nfunction getDate() {\n if (exports.inspectOpts.hideDate) {\n return '';\n }\n\n return new Date().toISOString() + ' ';\n}\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\n\nfunction log() {\n return process.stderr.write(util.format.apply(util, arguments) + '\\n');\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n if (namespaces) {\n process.env.DEBUG = namespaces;\n } else {\n // If you set a process.env field to null or undefined, it gets cast to the\n // string 'null' or 'undefined'. Just delete instead.\n delete process.env.DEBUG;\n }\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n return process.env.DEBUG;\n}\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\n\nfunction init(debug) {\n debug.inspectOpts = {};\n var keys = Object.keys(exports.inspectOpts);\n\n for (var i = 0; i < keys.length; i++) {\n debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n }\n}\n\nmodule.exports = require('./common')(exports);\nvar formatters = module.exports.formatters;\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts)\n .split('\\n')\n .map(function (str) { return str.trim(); })\n .join(' ');\n};\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\n\nformatters.O = function (v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts);\n};\n\n","var Stream = require('stream').Stream;\nvar util = require('util');\n\nmodule.exports = DelayedStream;\nfunction DelayedStream() {\n this.source = null;\n this.dataSize = 0;\n this.maxDataSize = 1024 * 1024;\n this.pauseStream = true;\n\n this._maxDataSizeExceeded = false;\n this._released = false;\n this._bufferedEvents = [];\n}\nutil.inherits(DelayedStream, Stream);\n\nDelayedStream.create = function(source, options) {\n var delayedStream = new this();\n\n options = options || {};\n for (var option in options) {\n delayedStream[option] = options[option];\n }\n\n delayedStream.source = source;\n\n var realEmit = source.emit;\n source.emit = function() {\n delayedStream._handleEmit(arguments);\n return realEmit.apply(source, arguments);\n };\n\n source.on('error', function() {});\n if (delayedStream.pauseStream) {\n source.pause();\n }\n\n return delayedStream;\n};\n\nObject.defineProperty(DelayedStream.prototype, 'readable', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.source.readable;\n }\n});\n\nDelayedStream.prototype.setEncoding = function() {\n return this.source.setEncoding.apply(this.source, arguments);\n};\n\nDelayedStream.prototype.resume = function() {\n if (!this._released) {\n this.release();\n }\n\n this.source.resume();\n};\n\nDelayedStream.prototype.pause = function() {\n this.source.pause();\n};\n\nDelayedStream.prototype.release = function() {\n this._released = true;\n\n this._bufferedEvents.forEach(function(args) {\n this.emit.apply(this, args);\n }.bind(this));\n this._bufferedEvents = [];\n};\n\nDelayedStream.prototype.pipe = function() {\n var r = Stream.prototype.pipe.apply(this, arguments);\n this.resume();\n return r;\n};\n\nDelayedStream.prototype._handleEmit = function(args) {\n if (this._released) {\n this.emit.apply(this, args);\n return;\n }\n\n if (args[0] === 'data') {\n this.dataSize += args[1].length;\n this._checkIfMaxDataSizeExceeded();\n }\n\n this._bufferedEvents.push(args);\n};\n\nDelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {\n if (this._maxDataSizeExceeded) {\n return;\n }\n\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n this._maxDataSizeExceeded = true;\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'\n this.emit('error', new Error(message));\n};\n","var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n","var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Whether to use the native URL object or the legacy url module\nvar useNativeURL = false;\ntry {\n assert(new URL());\n}\ncatch (error) {\n useNativeURL = error.code === \"ERR_INVALID_URL\";\n}\n\n// URL fields to preserve in copy operations\nvar preservedUrlFields = [\n \"auth\",\n \"host\",\n \"hostname\",\n \"href\",\n \"path\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"query\",\n \"search\",\n \"hash\",\n];\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\",\n RedirectionError\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// istanbul ignore next\nvar destroy = Writable.prototype.destroy || noop;\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n try {\n self._processResponse(response);\n }\n catch (cause) {\n self.emit(\"error\", cause instanceof RedirectionError ?\n cause : new RedirectionError({ cause: cause }));\n }\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n destroyRequest(this._currentRequest);\n this._currentRequest.abort();\n this.emit(\"abort\");\n};\n\nRedirectableRequest.prototype.destroy = function (error) {\n destroyRequest(this._currentRequest, error);\n destroy.call(this, error);\n return this;\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n self.removeListener(\"close\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n this.on(\"close\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n throw new TypeError(\"Unsupported protocol \" + protocol);\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230§5.3.1: When making a request directly to an origin server, […]\n // a client MUST send only the absolute path […] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, […]\n // a client MUST send the target URI in absolute-form […].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n /* istanbul ignore else */\n if (request === self._currentRequest) {\n // Report any write errors\n /* istanbul ignore if */\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n /* istanbul ignore else */\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n destroyRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n throw new TooManyRedirectsError();\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe, […]\n // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231§6.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource […]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) […]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = parseUrl(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Create the redirected request\n var redirectUrl = resolveUrl(location, currentUrl);\n debug(\"redirecting to\", redirectUrl.href);\n this._isRedirect = true;\n spreadUrlObject(redirectUrl, this._options);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrl.protocol !== currentUrlParts.protocol &&\n redirectUrl.protocol !== \"https:\" ||\n redirectUrl.host !== currentHost &&\n !isSubdomain(redirectUrl.host, currentHost)) {\n removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n beforeRedirect(this._options, responseDetails, requestDetails);\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n this._performRequest();\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters, ensuring that input is an object\n if (isURL(input)) {\n input = spreadUrlObject(input);\n }\n else if (isString(input)) {\n input = spreadUrlObject(parseUrl(input));\n }\n else {\n callback = options;\n options = validateUrl(input);\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\nfunction noop() { /* empty */ }\n\nfunction parseUrl(input) {\n var parsed;\n /* istanbul ignore else */\n if (useNativeURL) {\n parsed = new URL(input);\n }\n else {\n // Ensure the URL is valid and absolute\n parsed = validateUrl(url.parse(input));\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n }\n return parsed;\n}\n\nfunction resolveUrl(relative, base) {\n /* istanbul ignore next */\n return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));\n}\n\nfunction validateUrl(input) {\n if (/^\\[/.test(input.hostname) && !/^\\[[:0-9a-f]+\\]$/i.test(input.hostname)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n if (/^\\[/.test(input.host) && !/^\\[[:0-9a-f]+\\](:\\d+)?$/i.test(input.host)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n return input;\n}\n\nfunction spreadUrlObject(urlObject, target) {\n var spread = target || {};\n for (var key of preservedUrlFields) {\n spread[key] = urlObject[key];\n }\n\n // Fix IPv6 hostname\n if (spread.hostname.startsWith(\"[\")) {\n spread.hostname = spread.hostname.slice(1, -1);\n }\n // Ensure port is a number\n if (spread.port !== \"\") {\n spread.port = Number(spread.port);\n }\n // Concatenate path\n spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;\n\n return spread;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n Error.captureStackTrace(this, this.constructor);\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n Object.defineProperties(CustomError.prototype, {\n constructor: {\n value: CustomError,\n enumerable: false,\n },\n name: {\n value: \"Error [\" + code + \"]\",\n enumerable: false,\n },\n });\n return CustomError;\n}\n\nfunction destroyRequest(request, error) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.destroy(error);\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\nfunction isURL(value) {\n return URL && value instanceof URL;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","var CombinedStream = require('combined-stream');\nvar util = require('util');\nvar path = require('path');\nvar http = require('http');\nvar https = require('https');\nvar parseUrl = require('url').parse;\nvar fs = require('fs');\nvar Stream = require('stream').Stream;\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar populate = require('./populate.js');\n\n// Public API\nmodule.exports = FormData;\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\n\n/**\n * Create readable \"multipart/form-data\" streams.\n * Can be used to submit forms\n * and file uploads to other web applications.\n *\n * @constructor\n * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream\n */\nfunction FormData(options) {\n if (!(this instanceof FormData)) {\n return new FormData(options);\n }\n\n this._overheadLength = 0;\n this._valueLength = 0;\n this._valuesToMeasure = [];\n\n CombinedStream.call(this);\n\n options = options || {};\n for (var option in options) {\n this[option] = options[option];\n }\n}\n\nFormData.LINE_BREAK = '\\r\\n';\nFormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';\n\nFormData.prototype.append = function(field, value, options) {\n\n options = options || {};\n\n // allow filename as single option\n if (typeof options == 'string') {\n options = {filename: options};\n }\n\n var append = CombinedStream.prototype.append.bind(this);\n\n // all that streamy business can't handle numbers\n if (typeof value == 'number') {\n value = '' + value;\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (util.isArray(value)) {\n // Please convert your array into string\n // the way web server expects it\n this._error(new Error('Arrays are not supported.'));\n return;\n }\n\n var header = this._multiPartHeader(field, value, options);\n var footer = this._multiPartFooter();\n\n append(header);\n append(value);\n append(footer);\n\n // pass along options.knownLength\n this._trackLength(header, value, options);\n};\n\nFormData.prototype._trackLength = function(header, value, options) {\n var valueLength = 0;\n\n // used w/ getLengthSync(), when length is known.\n // e.g. for streaming directly from a remote server,\n // w/ a known file a size, and not wanting to wait for\n // incoming file to finish to get its size.\n if (options.knownLength != null) {\n valueLength += +options.knownLength;\n } else if (Buffer.isBuffer(value)) {\n valueLength = value.length;\n } else if (typeof value === 'string') {\n valueLength = Buffer.byteLength(value);\n }\n\n this._valueLength += valueLength;\n\n // @check why add CRLF? does this account for custom/multiple CRLFs?\n this._overheadLength +=\n Buffer.byteLength(header) +\n FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response or not a stream\n if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {\n return;\n }\n\n // no need to bother with the length\n if (!options.knownLength) {\n this._valuesToMeasure.push(value);\n }\n};\n\nFormData.prototype._lengthRetriever = function(value, callback) {\n\n if (value.hasOwnProperty('fd')) {\n\n // take read range into a account\n // `end` = Infinity –> read file till the end\n //\n // TODO: Looks like there is bug in Node fs.createReadStream\n // it doesn't respect `end` options without `start` options\n // Fix it when node fixes it.\n // https://github.com/joyent/node/issues/7819\n if (value.end != undefined && value.end != Infinity && value.start != undefined) {\n\n // when end specified\n // no need to calculate range\n // inclusive, starts with 0\n callback(null, value.end + 1 - (value.start ? value.start : 0));\n\n // not that fast snoopy\n } else {\n // still need to fetch file size from fs\n fs.stat(value.path, function(err, stat) {\n\n var fileSize;\n\n if (err) {\n callback(err);\n return;\n }\n\n // update final size based on the range options\n fileSize = stat.size - (value.start ? value.start : 0);\n callback(null, fileSize);\n });\n }\n\n // or http response\n } else if (value.hasOwnProperty('httpVersion')) {\n callback(null, +value.headers['content-length']);\n\n // or request stream http://github.com/mikeal/request\n } else if (value.hasOwnProperty('httpModule')) {\n // wait till response come back\n value.on('response', function(response) {\n value.pause();\n callback(null, +response.headers['content-length']);\n });\n value.resume();\n\n // something else\n } else {\n callback('Unknown stream');\n }\n};\n\nFormData.prototype._multiPartHeader = function(field, value, options) {\n // custom header specified (as string)?\n // it becomes responsible for boundary\n // (e.g. to handle extra CRLFs on .NET servers)\n if (typeof options.header == 'string') {\n return options.header;\n }\n\n var contentDisposition = this._getContentDisposition(value, options);\n var contentType = this._getContentType(value, options);\n\n var contents = '';\n var headers = {\n // add custom disposition as third element or keep it two elements if not\n 'Content-Disposition': ['form-data', 'name=\"' + field + '\"'].concat(contentDisposition || []),\n // if no content type. allow it to be empty array\n 'Content-Type': [].concat(contentType || [])\n };\n\n // allow custom headers.\n if (typeof options.header == 'object') {\n populate(headers, options.header);\n }\n\n var header;\n for (var prop in headers) {\n if (!headers.hasOwnProperty(prop)) continue;\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue;\n }\n\n // convert all headers to arrays.\n if (!Array.isArray(header)) {\n header = [header];\n }\n\n // add non-empty headers.\n if (header.length) {\n contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;\n }\n }\n\n return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;\n};\n\nFormData.prototype._getContentDisposition = function(value, options) {\n\n var filename\n , contentDisposition\n ;\n\n if (typeof options.filepath === 'string') {\n // custom filepath for relative paths\n filename = path.normalize(options.filepath).replace(/\\\\/g, '/');\n } else if (options.filename || value.name || value.path) {\n // custom filename take precedence\n // formidable and the browser add a name property\n // fs- and request- streams have path property\n filename = path.basename(options.filename || value.name || value.path);\n } else if (value.readable && value.hasOwnProperty('httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + filename + '\"';\n }\n\n return contentDisposition;\n};\n\nFormData.prototype._getContentType = function(value, options) {\n\n // use custom content-type above all\n var contentType = options.contentType;\n\n // or try `name` from formidable, browser\n if (!contentType && value.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {\n contentType = value.headers['content-type'];\n }\n\n // or guess it from the filepath or filename\n if (!contentType && (options.filepath || options.filename)) {\n contentType = mime.lookup(options.filepath || options.filename);\n }\n\n // fallback to the default content type if `value` is not simple value\n if (!contentType && typeof value == 'object') {\n contentType = FormData.DEFAULT_CONTENT_TYPE;\n }\n\n return contentType;\n};\n\nFormData.prototype._multiPartFooter = function() {\n return function(next) {\n var footer = FormData.LINE_BREAK;\n\n var lastPart = (this._streams.length === 0);\n if (lastPart) {\n footer += this._lastBoundary();\n }\n\n next(footer);\n }.bind(this);\n};\n\nFormData.prototype._lastBoundary = function() {\n return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;\n};\n\nFormData.prototype.getHeaders = function(userHeaders) {\n var header;\n var formHeaders = {\n 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()\n };\n\n for (header in userHeaders) {\n if (userHeaders.hasOwnProperty(header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function(boundary) {\n this._boundary = boundary;\n};\n\nFormData.prototype.getBoundary = function() {\n if (!this._boundary) {\n this._generateBoundary();\n }\n\n return this._boundary;\n};\n\nFormData.prototype.getBuffer = function() {\n var dataBuffer = new Buffer.alloc( 0 );\n var boundary = this.getBoundary();\n\n // Create the form content. Add Line breaks to the end of data.\n for (var i = 0, len = this._streams.length; i < len; i++) {\n if (typeof this._streams[i] !== 'function') {\n\n // Add content to the buffer.\n if(Buffer.isBuffer(this._streams[i])) {\n dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);\n }else {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);\n }\n\n // Add break after content.\n if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );\n }\n }\n }\n\n // Add the footer and return the Buffer object.\n return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );\n};\n\nFormData.prototype._generateBoundary = function() {\n // This generates a 50 character boundary similar to those used by Firefox.\n // They are optimized for boyer-moore parsing.\n var boundary = '--------------------------';\n for (var i = 0; i < 24; i++) {\n boundary += Math.floor(Math.random() * 10).toString(16);\n }\n\n this._boundary = boundary;\n};\n\n// Note: getLengthSync DOESN'T calculate streams length\n// As workaround one can calculate file size manually\n// and add it as knownLength option\nFormData.prototype.getLengthSync = function() {\n var knownLength = this._overheadLength + this._valueLength;\n\n // Don't get confused, there are 3 \"internal\" streams for each keyval pair\n // so it basically checks if there is any value added to the form\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n // https://github.com/form-data/form-data/issues/40\n if (!this.hasKnownLength()) {\n // Some async length retrievers are present\n // therefore synchronous length calculation is false.\n // Please use getLength(callback) to get proper length\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\n};\n\n// Public API to check if length of added values is known\n// https://github.com/form-data/form-data/issues/196\n// https://github.com/form-data/form-data/issues/262\nFormData.prototype.hasKnownLength = function() {\n var hasKnownLength = true;\n\n if (this._valuesToMeasure.length) {\n hasKnownLength = false;\n }\n\n return hasKnownLength;\n};\n\nFormData.prototype.getLength = function(cb) {\n var knownLength = this._overheadLength + this._valueLength;\n\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n if (!this._valuesToMeasure.length) {\n process.nextTick(cb.bind(this, null, knownLength));\n return;\n }\n\n asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {\n if (err) {\n cb(err);\n return;\n }\n\n values.forEach(function(length) {\n knownLength += length;\n });\n\n cb(null, knownLength);\n });\n};\n\nFormData.prototype.submit = function(params, cb) {\n var request\n , options\n , defaults = {method: 'post'}\n ;\n\n // parse provided url if it's string\n // or treat it as options object\n if (typeof params == 'string') {\n\n params = parseUrl(params);\n options = populate({\n port: params.port,\n path: params.pathname,\n host: params.hostname,\n protocol: params.protocol\n }, defaults);\n\n // use custom params\n } else {\n\n options = populate(params, defaults);\n // if no port provided use default one\n if (!options.port) {\n options.port = options.protocol == 'https:' ? 443 : 80;\n }\n }\n\n // put that good code in getHeaders to some use\n options.headers = this.getHeaders(params.headers);\n\n // https if specified, fallback to http in any other case\n if (options.protocol == 'https:') {\n request = https.request(options);\n } else {\n request = http.request(options);\n }\n\n // get content length and fire away\n this.getLength(function(err, length) {\n if (err && err !== 'Unknown stream') {\n this._error(err);\n return;\n }\n\n // add content length\n if (length) {\n request.setHeader('Content-Length', length);\n }\n\n this.pipe(request);\n if (cb) {\n var onResponse;\n\n var callback = function (error, responce) {\n request.removeListener('error', callback);\n request.removeListener('response', onResponse);\n\n return cb.call(this, error, responce);\n };\n\n onResponse = callback.bind(this, null);\n\n request.on('error', callback);\n request.on('response', onResponse);\n }\n }.bind(this));\n\n return request;\n};\n\nFormData.prototype._error = function(err) {\n if (!this.error) {\n this.error = err;\n this.pause();\n this.emit('error', err);\n }\n};\n\nFormData.prototype.toString = function () {\n return '[object FormData]';\n};\n","// populates missing values\nmodule.exports = function(dst, src) {\n\n Object.keys(src).forEach(function(prop)\n {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('has');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","'use strict';\n\nvar test = {\n\tfoo: {}\n};\n\nvar $Object = Object;\n\nmodule.exports = function hasProto() {\n\treturn { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) ||\n objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return (typeof Ctor == 'function' &&\n Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);\n}\n\nmodule.exports = isPlainObject;\n","/**\n * lodash 4.0.1 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);\n}\n\nmodule.exports = isString;\n","/*!\n * mime-db\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015-2022 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n */\n\nmodule.exports = require('./db.json')\n","/*!\n * mime-types\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar db = require('mime-db')\nvar extname = require('path').extname\n\n/**\n * Module variables.\n * @private\n */\n\nvar EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/\nvar TEXT_TYPE_REGEXP = /^text\\//i\n\n/**\n * Module exports.\n * @public\n */\n\nexports.charset = charset\nexports.charsets = { lookup: charset }\nexports.contentType = contentType\nexports.extension = extension\nexports.extensions = Object.create(null)\nexports.lookup = lookup\nexports.types = Object.create(null)\n\n// Populate the extensions/types maps\npopulateMaps(exports.extensions, exports.types)\n\n/**\n * Get the default charset for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction charset (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n var mime = match && db[match[1].toLowerCase()]\n\n if (mime && mime.charset) {\n return mime.charset\n }\n\n // default text/* to utf-8\n if (match && TEXT_TYPE_REGEXP.test(match[1])) {\n return 'UTF-8'\n }\n\n return false\n}\n\n/**\n * Create a full Content-Type header given a MIME type or extension.\n *\n * @param {string} str\n * @return {boolean|string}\n */\n\nfunction contentType (str) {\n // TODO: should this even be in this module?\n if (!str || typeof str !== 'string') {\n return false\n }\n\n var mime = str.indexOf('/') === -1\n ? exports.lookup(str)\n : str\n\n if (!mime) {\n return false\n }\n\n // TODO: use content-type or other module\n if (mime.indexOf('charset') === -1) {\n var charset = exports.charset(mime)\n if (charset) mime += '; charset=' + charset.toLowerCase()\n }\n\n return mime\n}\n\n/**\n * Get the default extension for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction extension (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n\n // get extensions\n var exts = match && exports.extensions[match[1].toLowerCase()]\n\n if (!exts || !exts.length) {\n return false\n }\n\n return exts[0]\n}\n\n/**\n * Lookup the MIME type for a file path/extension.\n *\n * @param {string} path\n * @return {boolean|string}\n */\n\nfunction lookup (path) {\n if (!path || typeof path !== 'string') {\n return false\n }\n\n // get the extension (\"ext\" or \".ext\" or full path)\n var extension = extname('x.' + path)\n .toLowerCase()\n .substr(1)\n\n if (!extension) {\n return false\n }\n\n return exports.types[extension] || false\n}\n\n/**\n * Populate the extensions and types maps.\n * @private\n */\n\nfunction populateMaps (extensions, types) {\n // source preference (least -> most)\n var preference = ['nginx', 'apache', undefined, 'iana']\n\n Object.keys(db).forEach(function forEachMimeType (type) {\n var mime = db[type]\n var exts = mime.extensions\n\n if (!exts || !exts.length) {\n return\n }\n\n // mime -> extensions\n extensions[type] = exts\n\n // extension -> mime\n for (var i = 0; i < exts.length; i++) {\n var extension = exts[i]\n\n if (types[extension]) {\n var from = preference.indexOf(db[types[extension]].source)\n var to = preference.indexOf(mime.source)\n\n if (types[extension] !== 'application/octet-stream' &&\n (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {\n // skip the remapping\n continue\n }\n }\n\n // set the extension -> mime\n types[extension] = type\n }\n })\n}\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","module.exports = require('util').inspect;\n","'use strict';\n\nclass AbortError extends Error {\n\tconstructor() {\n\t\tsuper('Throttled function aborted');\n\t\tthis.name = 'AbortError';\n\t}\n}\n\nconst pThrottle = ({limit, interval, strict}) => {\n\tif (!Number.isFinite(limit)) {\n\t\tthrow new TypeError('Expected `limit` to be a finite number');\n\t}\n\n\tif (!Number.isFinite(interval)) {\n\t\tthrow new TypeError('Expected `interval` to be a finite number');\n\t}\n\n\tconst queue = new Map();\n\n\tlet currentTick = 0;\n\tlet activeCount = 0;\n\n\tfunction windowedDelay() {\n\t\tconst now = Date.now();\n\n\t\tif ((now - currentTick) > interval) {\n\t\t\tactiveCount = 1;\n\t\t\tcurrentTick = now;\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (activeCount < limit) {\n\t\t\tactiveCount++;\n\t\t} else {\n\t\t\tcurrentTick += interval;\n\t\t\tactiveCount = 1;\n\t\t}\n\n\t\treturn currentTick - now;\n\t}\n\n\tconst strictTicks = [];\n\n\tfunction strictDelay() {\n\t\tconst now = Date.now();\n\n\t\tif (strictTicks.length < limit) {\n\t\t\tstrictTicks.push(now);\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst earliestTime = strictTicks.shift() + interval;\n\n\t\tif (now >= earliestTime) {\n\t\t\tstrictTicks.push(now);\n\t\t\treturn 0;\n\t\t}\n\n\t\tstrictTicks.push(earliestTime);\n\t\treturn earliestTime - now;\n\t}\n\n\tconst getDelay = strict ? strictDelay : windowedDelay;\n\n\treturn function_ => {\n\t\tconst throttled = function (...args) {\n\t\t\tif (!throttled.isEnabled) {\n\t\t\t\treturn (async () => function_.apply(this, args))();\n\t\t\t}\n\n\t\t\tlet timeout;\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tconst execute = () => {\n\t\t\t\t\tresolve(function_.apply(this, args));\n\t\t\t\t\tqueue.delete(timeout);\n\t\t\t\t};\n\n\t\t\t\ttimeout = setTimeout(execute, getDelay());\n\n\t\t\t\tqueue.set(timeout, reject);\n\t\t\t});\n\t\t};\n\n\t\tthrottled.abort = () => {\n\t\t\tfor (const timeout of queue.keys()) {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tqueue.get(timeout)(new AbortError());\n\t\t\t}\n\n\t\t\tqueue.clear();\n\t\t\tstrictTicks.splice(0, strictTicks.length);\n\t\t};\n\n\t\tthrottled.isEnabled = true;\n\n\t\treturn throttled;\n\t};\n};\n\nmodule.exports = pThrottle;\nmodule.exports.AbortError = AbortError;\n","'use strict';\n\nvar parseUrl = require('url').parse;\n\nvar DEFAULT_PORTS = {\n ftp: 21,\n gopher: 70,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443,\n};\n\nvar stringEndsWith = String.prototype.endsWith || function(s) {\n return s.length <= this.length &&\n this.indexOf(s, this.length - s.length) !== -1;\n};\n\n/**\n * @param {string|object} url - The URL, or the result from url.parse.\n * @return {string} The URL of the proxy that should handle the request to the\n * given URL. If no proxy is set, this will be an empty string.\n */\nfunction getProxyForUrl(url) {\n var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};\n var proto = parsedUrl.protocol;\n var hostname = parsedUrl.host;\n var port = parsedUrl.port;\n if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {\n return ''; // Don't proxy URLs without a valid scheme or host.\n }\n\n proto = proto.split(':', 1)[0];\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '');\n port = parseInt(port) || DEFAULT_PORTS[proto] || 0;\n if (!shouldProxy(hostname, port)) {\n return ''; // Don't proxy URLs that match NO_PROXY.\n }\n\n var proxy =\n getEnv('npm_config_' + proto + '_proxy') ||\n getEnv(proto + '_proxy') ||\n getEnv('npm_config_proxy') ||\n getEnv('all_proxy');\n if (proxy && proxy.indexOf('://') === -1) {\n // Missing scheme in proxy, default to the requested URL's scheme.\n proxy = proto + '://' + proxy;\n }\n return proxy;\n}\n\n/**\n * Determines whether a given URL should be proxied.\n *\n * @param {string} hostname - The host name of the URL.\n * @param {number} port - The effective port of the URL.\n * @returns {boolean} Whether the given URL should be proxied.\n * @private\n */\nfunction shouldProxy(hostname, port) {\n var NO_PROXY =\n (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();\n if (!NO_PROXY) {\n return true; // Always proxy if NO_PROXY is not set.\n }\n if (NO_PROXY === '*') {\n return false; // Never proxy if wildcard is set.\n }\n\n return NO_PROXY.split(/[,\\s]/).every(function(proxy) {\n if (!proxy) {\n return true; // Skip zero-length hosts.\n }\n var parsedProxy = proxy.match(/^(.+):(\\d+)$/);\n var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;\n var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;\n if (parsedProxyPort && parsedProxyPort !== port) {\n return true; // Skip if ports don't match.\n }\n\n if (!/^[.*]/.test(parsedProxyHostname)) {\n // No wildcards, so stop proxying if there is an exact match.\n return hostname !== parsedProxyHostname;\n }\n\n if (parsedProxyHostname.charAt(0) === '*') {\n // Remove leading wildcard.\n parsedProxyHostname = parsedProxyHostname.slice(1);\n }\n // Stop proxying if the hostname ends with the no_proxy host.\n return !stringEndsWith.call(hostname, parsedProxyHostname);\n });\n}\n\n/**\n * Get the value for an environment variable.\n *\n * @param {string} key - The name of the environment variable.\n * @return {string} The value of the environment variable.\n * @private\n */\nfunction getEnv(key) {\n return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';\n}\n\nexports.getProxyForUrl = getProxyForUrl;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n","module.exports = require(\"assert\");","module.exports = require(\"events\");","module.exports = require(\"fs\");","module.exports = require(\"http\");","module.exports = require(\"https\");","module.exports = require(\"os\");","module.exports = require(\"path\");","module.exports = require(\"stream\");","module.exports = require(\"tty\");","module.exports = require(\"url\");","module.exports = require(\"util\");","module.exports = require(\"zlib\");","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport buildURL from './../helpers/buildURL.js';\nimport {getProxyForUrl} from 'proxy-from-env';\nimport http from 'http';\nimport https from 'https';\nimport util from 'util';\nimport followRedirects from 'follow-redirects';\nimport zlib from 'zlib';\nimport {VERSION} from '../env/data.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport platform from '../platform/index.js';\nimport fromDataURI from '../helpers/fromDataURI.js';\nimport stream from 'stream';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport AxiosTransformStream from '../helpers/AxiosTransformStream.js';\nimport {EventEmitter} from 'events';\nimport formDataToStream from \"../helpers/formDataToStream.js\";\nimport readBlob from \"../helpers/readBlob.js\";\nimport ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';\nimport callbackify from \"../helpers/callbackify.js\";\n\nconst zlibOptions = {\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n};\n\nconst brotliOptions = {\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n}\n\nconst isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);\n\nconst {http: httpFollow, https: httpsFollow} = followRedirects;\n\nconst isHttps = /https:?/;\n\nconst supportedProtocols = platform.protocols.map(protocol => {\n return protocol + ':';\n});\n\n/**\n * If the proxy or config beforeRedirects functions are defined, call them with the options\n * object.\n *\n * @param {Object} options - The options object that was passed to the request.\n *\n * @returns {Object}\n */\nfunction dispatchBeforeRedirect(options, responseDetails) {\n if (options.beforeRedirects.proxy) {\n options.beforeRedirects.proxy(options);\n }\n if (options.beforeRedirects.config) {\n options.beforeRedirects.config(options, responseDetails);\n }\n}\n\n/**\n * If the proxy or config afterRedirects functions are defined, call them with the options\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} configProxy configuration from Axios options object\n * @param {string} location\n *\n * @returns {http.ClientRequestArgs}\n */\nfunction setProxy(options, configProxy, location) {\n let proxy = configProxy;\n if (!proxy && proxy !== false) {\n const proxyUrl = getProxyForUrl(location);\n if (proxyUrl) {\n proxy = new URL(proxyUrl);\n }\n }\n if (proxy) {\n // Basic proxy authorization\n if (proxy.username) {\n proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');\n }\n\n if (proxy.auth) {\n // Support proxy auth object form\n if (proxy.auth.username || proxy.auth.password) {\n proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');\n }\n const base64 = Buffer\n .from(proxy.auth, 'utf8')\n .toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n options.headers.host = options.hostname + (options.port ? ':' + options.port : '');\n const proxyHost = proxy.hostname || proxy.host;\n options.hostname = proxyHost;\n // Replace 'host' since options is not a URL object\n options.host = proxyHost;\n options.port = proxy.port;\n options.path = location;\n if (proxy.protocol) {\n options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;\n }\n }\n\n options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {\n // Configure proxy for redirected request, passing the original config proxy to apply\n // the exact same logic as if the redirected request was performed by axios directly.\n setProxy(redirectOptions, configProxy, redirectOptions.href);\n };\n}\n\nconst isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';\n\n// temporary hotfix\n\nconst wrapAsync = (asyncExecutor) => {\n return new Promise((resolve, reject) => {\n let onDone;\n let isDone;\n\n const done = (value, isRejected) => {\n if (isDone) return;\n isDone = true;\n onDone && onDone(value, isRejected);\n }\n\n const _resolve = (value) => {\n done(value);\n resolve(value);\n };\n\n const _reject = (reason) => {\n done(reason, true);\n reject(reason);\n }\n\n asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);\n })\n};\n\nconst resolveFamily = ({address, family}) => {\n if (!utils.isString(address)) {\n throw TypeError('address must be a string');\n }\n return ({\n address,\n family: family || (address.indexOf('.') < 0 ? 6 : 4)\n });\n}\n\nconst buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family});\n\n/*eslint consistent-return:0*/\nexport default isHttpAdapterSupported && function httpAdapter(config) {\n return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {\n let {data, lookup, family} = config;\n const {responseType, responseEncoding} = config;\n const method = config.method.toUpperCase();\n let isDone;\n let rejected = false;\n let req;\n\n if (lookup) {\n const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]);\n // hotfix to support opt.all option which is required for node 20.x\n lookup = (hostname, opt, cb) => {\n _lookup(hostname, opt, (err, arg0, arg1) => {\n if (err) {\n return cb(err);\n }\n\n const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];\n\n opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);\n });\n }\n }\n\n // temporary internal emitter until the AxiosRequest class will be implemented\n const emitter = new EventEmitter();\n\n const onFinished = () => {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(abort);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', abort);\n }\n\n emitter.removeAllListeners();\n }\n\n onDone((value, isRejected) => {\n isDone = true;\n if (isRejected) {\n rejected = true;\n onFinished();\n }\n });\n\n function abort(reason) {\n emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);\n }\n\n emitter.once('abort', reject);\n\n if (config.cancelToken || config.signal) {\n config.cancelToken && config.cancelToken.subscribe(abort);\n if (config.signal) {\n config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);\n }\n }\n\n // Parse url\n const fullPath = buildFullPath(config.baseURL, config.url);\n const parsed = new URL(fullPath, 'http://localhost');\n const protocol = parsed.protocol || supportedProtocols[0];\n\n if (protocol === 'data:') {\n let convertedData;\n\n if (method !== 'GET') {\n return settle(resolve, reject, {\n status: 405,\n statusText: 'method not allowed',\n headers: {},\n config\n });\n }\n\n try {\n convertedData = fromDataURI(config.url, responseType === 'blob', {\n Blob: config.env && config.env.Blob\n });\n } catch (err) {\n throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);\n }\n\n if (responseType === 'text') {\n convertedData = convertedData.toString(responseEncoding);\n\n if (!responseEncoding || responseEncoding === 'utf8') {\n convertedData = utils.stripBOM(convertedData);\n }\n } else if (responseType === 'stream') {\n convertedData = stream.Readable.from(convertedData);\n }\n\n return settle(resolve, reject, {\n data: convertedData,\n status: 200,\n statusText: 'OK',\n headers: new AxiosHeaders(),\n config\n });\n }\n\n if (supportedProtocols.indexOf(protocol) === -1) {\n return reject(new AxiosError(\n 'Unsupported protocol ' + protocol,\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n const headers = AxiosHeaders.from(config.headers).normalize();\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n // User-Agent is specified; handle case where no UA header is desired\n // Only set header if it hasn't been set in config\n headers.set('User-Agent', 'axios/' + VERSION, false);\n\n const onDownloadProgress = config.onDownloadProgress;\n const onUploadProgress = config.onUploadProgress;\n const maxRate = config.maxRate;\n let maxUploadRate = undefined;\n let maxDownloadRate = undefined;\n\n // support for spec compliant FormData objects\n if (utils.isSpecCompliantForm(data)) {\n const userBoundary = headers.getContentType(/boundary=([-_\\w\\d]{10,70})/i);\n\n data = formDataToStream(data, (formHeaders) => {\n headers.set(formHeaders);\n }, {\n tag: `axios-${VERSION}-boundary`,\n boundary: userBoundary && userBoundary[1] || undefined\n });\n // support for https://www.npmjs.com/package/form-data api\n } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {\n headers.set(data.getHeaders());\n\n if (!headers.hasContentLength()) {\n try {\n const knownLength = await util.promisify(data.getLength).call(data);\n Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);\n /*eslint no-empty:0*/\n } catch (e) {\n }\n }\n } else if (utils.isBlob(data)) {\n data.size && headers.setContentType(data.type || 'application/octet-stream');\n headers.setContentLength(data.size || 0);\n data = stream.Readable.from(readBlob(data));\n } else if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(new AxiosError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers.setContentLength(data.length, false);\n\n if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {\n return reject(new AxiosError(\n 'Request body larger than maxBodyLength limit',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n }\n\n const contentLength = utils.toFiniteNumber(headers.getContentLength());\n\n if (utils.isArray(maxRate)) {\n maxUploadRate = maxRate[0];\n maxDownloadRate = maxRate[1];\n } else {\n maxUploadRate = maxDownloadRate = maxRate;\n }\n\n if (data && (onUploadProgress || maxUploadRate)) {\n if (!utils.isStream(data)) {\n data = stream.Readable.from(data, {objectMode: false});\n }\n\n data = stream.pipeline([data, new AxiosTransformStream({\n length: contentLength,\n maxRate: utils.toFiniteNumber(maxUploadRate)\n })], utils.noop);\n\n onUploadProgress && data.on('progress', progress => {\n onUploadProgress(Object.assign(progress, {\n upload: true\n }));\n });\n }\n\n // HTTP basic authentication\n let auth = undefined;\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n if (!auth && parsed.username) {\n const urlUsername = parsed.username;\n const urlPassword = parsed.password;\n auth = urlUsername + ':' + urlPassword;\n }\n\n auth && headers.delete('authorization');\n\n let path;\n\n try {\n path = buildURL(\n parsed.pathname + parsed.search,\n config.params,\n config.paramsSerializer\n ).replace(/^\\?/, '');\n } catch (err) {\n const customErr = new Error(err.message);\n customErr.config = config;\n customErr.url = config.url;\n customErr.exists = true;\n return reject(customErr);\n }\n\n headers.set(\n 'Accept-Encoding',\n 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false\n );\n\n const options = {\n path,\n method: method,\n headers: headers.toJSON(),\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth,\n protocol,\n family,\n beforeRedirect: dispatchBeforeRedirect,\n beforeRedirects: {}\n };\n\n // cacheable-lookup integration hotfix\n !utils.isUndefined(lookup) && (options.lookup = lookup);\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n let transport;\n const isHttpsRequest = isHttps.test(options.protocol);\n options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsRequest ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n if (config.beforeRedirect) {\n options.beforeRedirects.config = config.beforeRedirect;\n }\n transport = isHttpsRequest ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n } else {\n // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited\n options.maxBodyLength = Infinity;\n }\n\n if (config.insecureHTTPParser) {\n options.insecureHTTPParser = config.insecureHTTPParser;\n }\n\n // Create the request\n req = transport.request(options, function handleResponse(res) {\n if (req.destroyed) return;\n\n const streams = [res];\n\n const responseLength = +res.headers['content-length'];\n\n if (onDownloadProgress) {\n const transformStream = new AxiosTransformStream({\n length: utils.toFiniteNumber(responseLength),\n maxRate: utils.toFiniteNumber(maxDownloadRate)\n });\n\n onDownloadProgress && transformStream.on('progress', progress => {\n onDownloadProgress(Object.assign(progress, {\n download: true\n }));\n });\n\n streams.push(transformStream);\n }\n\n // decompress the response body transparently if required\n let responseStream = res;\n\n // return the last request in case of redirects\n const lastRequest = res.req || req;\n\n // if decompress disabled we should not decompress\n if (config.decompress !== false && res.headers['content-encoding']) {\n // if no content, but headers still say that it is encoded,\n // remove the header not confuse downstream operations\n if (method === 'HEAD' || res.statusCode === 204) {\n delete res.headers['content-encoding'];\n }\n\n switch ((res.headers['content-encoding'] || '').toLowerCase()) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'x-gzip':\n case 'compress':\n case 'x-compress':\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'deflate':\n streams.push(new ZlibHeaderTransformStream());\n\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'br':\n if (isBrotliSupported) {\n streams.push(zlib.createBrotliDecompress(brotliOptions));\n delete res.headers['content-encoding'];\n }\n }\n }\n\n responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];\n\n const offListeners = stream.finished(responseStream, () => {\n offListeners();\n onFinished();\n });\n\n const response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: new AxiosHeaders(res.headers),\n config,\n request: lastRequest\n };\n\n if (responseType === 'stream') {\n response.data = responseStream;\n settle(resolve, reject, response);\n } else {\n const responseBuffer = [];\n let totalResponseBytes = 0;\n\n responseStream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n // stream.destroy() emit aborted event before calling reject() on Node.js v16\n rejected = true;\n responseStream.destroy();\n reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE, config, lastRequest));\n }\n });\n\n responseStream.on('aborted', function handlerStreamAborted() {\n if (rejected) {\n return;\n }\n\n const err = new AxiosError(\n 'maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE,\n config,\n lastRequest\n );\n responseStream.destroy(err);\n reject(err);\n });\n\n responseStream.on('error', function handleStreamError(err) {\n if (req.destroyed) return;\n reject(AxiosError.from(err, null, config, lastRequest));\n });\n\n responseStream.on('end', function handleStreamEnd() {\n try {\n let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);\n if (responseType !== 'arraybuffer') {\n responseData = responseData.toString(responseEncoding);\n if (!responseEncoding || responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n response.data = responseData;\n } catch (err) {\n return reject(AxiosError.from(err, null, config, response.request, response));\n }\n settle(resolve, reject, response);\n });\n }\n\n emitter.once('abort', err => {\n if (!responseStream.destroyed) {\n responseStream.emit('error', err);\n responseStream.destroy();\n }\n });\n });\n\n emitter.once('abort', err => {\n reject(err);\n req.destroy(err);\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n // @todo remove\n // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;\n reject(AxiosError.from(err, null, config, req));\n });\n\n // set tcp keep alive to prevent drop connection by peer\n req.on('socket', function handleRequestSocket(socket) {\n // default interval of sending ack packet is 1 minute\n socket.setKeepAlive(true, 1000 * 60);\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n const timeout = parseInt(config.timeout, 10);\n\n if (Number.isNaN(timeout)) {\n reject(new AxiosError(\n 'error trying to parse `config.timeout` to int',\n AxiosError.ERR_BAD_OPTION_VALUE,\n config,\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devouring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n if (isDone) return;\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n req\n ));\n abort();\n });\n }\n\n\n // Send the request\n if (utils.isStream(data)) {\n let ended = false;\n let errored = false;\n\n data.on('end', () => {\n ended = true;\n });\n\n data.once('error', err => {\n errored = true;\n req.destroy(err);\n });\n\n data.on('close', () => {\n if (!ended && !errored) {\n abort(new CanceledError('Request stream has been aborted', config, req));\n }\n });\n\n data.pipe(req);\n } else {\n req.end(data);\n }\n });\n}\n\nexport const __setProxy = setProxy;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","export const VERSION = \"1.6.8\";","'use strict';\n\nimport stream from 'stream';\nimport utils from '../utils.js';\nimport throttle from './throttle.js';\nimport speedometer from './speedometer.js';\n\nconst kInternals = Symbol('internals');\n\nclass AxiosTransformStream extends stream.Transform{\n constructor(options) {\n options = utils.toFlatObject(options, {\n maxRate: 0,\n chunkSize: 64 * 1024,\n minChunkSize: 100,\n timeWindow: 500,\n ticksRate: 2,\n samplesCount: 15\n }, null, (prop, source) => {\n return !utils.isUndefined(source[prop]);\n });\n\n super({\n readableHighWaterMark: options.chunkSize\n });\n\n const self = this;\n\n const internals = this[kInternals] = {\n length: options.length,\n timeWindow: options.timeWindow,\n ticksRate: options.ticksRate,\n chunkSize: options.chunkSize,\n maxRate: options.maxRate,\n minChunkSize: options.minChunkSize,\n bytesSeen: 0,\n isCaptured: false,\n notifiedBytesLoaded: 0,\n ts: Date.now(),\n bytes: 0,\n onReadCallback: null\n };\n\n const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);\n\n this.on('newListener', event => {\n if (event === 'progress') {\n if (!internals.isCaptured) {\n internals.isCaptured = true;\n }\n }\n });\n\n let bytesNotified = 0;\n\n internals.updateProgress = throttle(function throttledHandler() {\n const totalBytes = internals.length;\n const bytesTransferred = internals.bytesSeen;\n const progressBytes = bytesTransferred - bytesNotified;\n if (!progressBytes || self.destroyed) return;\n\n const rate = _speedometer(progressBytes);\n\n bytesNotified = bytesTransferred;\n\n process.nextTick(() => {\n self.emit('progress', {\n 'loaded': bytesTransferred,\n 'total': totalBytes,\n 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,\n 'bytes': progressBytes,\n 'rate': rate ? rate : undefined,\n 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?\n (totalBytes - bytesTransferred) / rate : undefined\n });\n });\n }, internals.ticksRate);\n\n const onFinish = () => {\n internals.updateProgress(true);\n };\n\n this.once('end', onFinish);\n this.once('error', onFinish);\n }\n\n _read(size) {\n const internals = this[kInternals];\n\n if (internals.onReadCallback) {\n internals.onReadCallback();\n }\n\n return super._read(size);\n }\n\n _transform(chunk, encoding, callback) {\n const self = this;\n const internals = this[kInternals];\n const maxRate = internals.maxRate;\n\n const readableHighWaterMark = this.readableHighWaterMark;\n\n const timeWindow = internals.timeWindow;\n\n const divider = 1000 / timeWindow;\n const bytesThreshold = (maxRate / divider);\n const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;\n\n function pushChunk(_chunk, _callback) {\n const bytes = Buffer.byteLength(_chunk);\n internals.bytesSeen += bytes;\n internals.bytes += bytes;\n\n if (internals.isCaptured) {\n internals.updateProgress();\n }\n\n if (self.push(_chunk)) {\n process.nextTick(_callback);\n } else {\n internals.onReadCallback = () => {\n internals.onReadCallback = null;\n process.nextTick(_callback);\n };\n }\n }\n\n const transformChunk = (_chunk, _callback) => {\n const chunkSize = Buffer.byteLength(_chunk);\n let chunkRemainder = null;\n let maxChunkSize = readableHighWaterMark;\n let bytesLeft;\n let passed = 0;\n\n if (maxRate) {\n const now = Date.now();\n\n if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {\n internals.ts = now;\n bytesLeft = bytesThreshold - internals.bytes;\n internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;\n passed = 0;\n }\n\n bytesLeft = bytesThreshold - internals.bytes;\n }\n\n if (maxRate) {\n if (bytesLeft <= 0) {\n // next time window\n return setTimeout(() => {\n _callback(null, _chunk);\n }, timeWindow - passed);\n }\n\n if (bytesLeft < maxChunkSize) {\n maxChunkSize = bytesLeft;\n }\n }\n\n if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {\n chunkRemainder = _chunk.subarray(maxChunkSize);\n _chunk = _chunk.subarray(0, maxChunkSize);\n }\n\n pushChunk(_chunk, chunkRemainder ? () => {\n process.nextTick(_callback, null, chunkRemainder);\n } : _callback);\n };\n\n transformChunk(chunk, function transformNextChunk(err, _chunk) {\n if (err) {\n return callback(err);\n }\n\n if (_chunk) {\n transformChunk(_chunk, transformNextChunk);\n } else {\n callback(null);\n }\n });\n }\n\n setLength(length) {\n this[kInternals].length = +length;\n return this;\n }\n}\n\nexport default AxiosTransformStream;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","\"use strict\";\n\nimport stream from \"stream\";\n\nclass ZlibHeaderTransformStream extends stream.Transform {\n __transform(chunk, encoding, callback) {\n this.push(chunk);\n callback();\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk.length !== 0) {\n this._transform = this.__transform;\n\n // Add Default Compression headers if no zlib headers are present\n if (chunk[0] !== 120) { // Hex: 78\n const header = Buffer.alloc(2);\n header[0] = 120; // Hex: 78\n header[1] = 156; // Hex: 9C \n this.push(header, encoding);\n }\n }\n\n this.__transform(chunk, encoding, callback);\n }\n}\n\nexport default ZlibHeaderTransformStream;\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","import utils from \"../utils.js\";\n\nconst callbackify = (fn, reducer) => {\n return utils.isAsyncFn(fn) ? function (...args) {\n const cb = args.pop();\n fn.apply(this, args).then((value) => {\n try {\n reducer ? cb(null, ...reducer(value)) : cb(null, value);\n } catch (err) {\n cb(err);\n }\n }, cb);\n } : fn;\n}\n\nexport default callbackify;\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","import {TextEncoder} from 'util';\nimport {Readable} from 'stream';\nimport utils from \"../utils.js\";\nimport readBlob from \"./readBlob.js\";\n\nconst BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';\n\nconst textEncoder = new TextEncoder();\n\nconst CRLF = '\\r\\n';\nconst CRLF_BYTES = textEncoder.encode(CRLF);\nconst CRLF_BYTES_COUNT = 2;\n\nclass FormDataPart {\n constructor(name, value) {\n const {escapeName} = this.constructor;\n const isStringValue = utils.isString(value);\n\n let headers = `Content-Disposition: form-data; name=\"${escapeName(name)}\"${\n !isStringValue && value.name ? `; filename=\"${escapeName(value.name)}\"` : ''\n }${CRLF}`;\n\n if (isStringValue) {\n value = textEncoder.encode(String(value).replace(/\\r?\\n|\\r\\n?/g, CRLF));\n } else {\n headers += `Content-Type: ${value.type || \"application/octet-stream\"}${CRLF}`\n }\n\n this.headers = textEncoder.encode(headers + CRLF);\n\n this.contentLength = isStringValue ? value.byteLength : value.size;\n\n this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;\n\n this.name = name;\n this.value = value;\n }\n\n async *encode(){\n yield this.headers;\n\n const {value} = this;\n\n if(utils.isTypedArray(value)) {\n yield value;\n } else {\n yield* readBlob(value);\n }\n\n yield CRLF_BYTES;\n }\n\n static escapeName(name) {\n return String(name).replace(/[\\r\\n\"]/g, (match) => ({\n '\\r' : '%0D',\n '\\n' : '%0A',\n '\"' : '%22',\n }[match]));\n }\n}\n\nconst formDataToStream = (form, headersHandler, options) => {\n const {\n tag = 'form-data-boundary',\n size = 25,\n boundary = tag + '-' + utils.generateString(size, BOUNDARY_ALPHABET)\n } = options || {};\n\n if(!utils.isFormData(form)) {\n throw TypeError('FormData instance required');\n }\n\n if (boundary.length < 1 || boundary.length > 70) {\n throw Error('boundary must be 10-70 characters long')\n }\n\n const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);\n const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF);\n let contentLength = footerBytes.byteLength;\n\n const parts = Array.from(form.entries()).map(([name, value]) => {\n const part = new FormDataPart(name, value);\n contentLength += part.size;\n return part;\n });\n\n contentLength += boundaryBytes.byteLength * parts.length;\n\n contentLength = utils.toFiniteNumber(contentLength);\n\n const computedHeaders = {\n 'Content-Type': `multipart/form-data; boundary=${boundary}`\n }\n\n if (Number.isFinite(contentLength)) {\n computedHeaders['Content-Length'] = contentLength;\n }\n\n headersHandler && headersHandler(computedHeaders);\n\n return Readable.from((async function *() {\n for(const part of parts) {\n yield boundaryBytes;\n yield* part.encode();\n }\n\n yield footerBytes;\n })());\n};\n\nexport default formDataToStream;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport parseProtocol from './parseProtocol.js';\nimport platform from '../platform/index.js';\n\nconst DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\\s\\S]*)$/;\n\n/**\n * Parse data uri to a Buffer or Blob\n *\n * @param {String} uri\n * @param {?Boolean} asBlob\n * @param {?Object} options\n * @param {?Function} options.Blob\n *\n * @returns {Buffer|Blob}\n */\nexport default function fromDataURI(uri, asBlob, options) {\n const _Blob = options && options.Blob || platform.classes.Blob;\n const protocol = parseProtocol(uri);\n\n if (asBlob === undefined && _Blob) {\n asBlob = true;\n }\n\n if (protocol === 'data') {\n uri = protocol.length ? uri.slice(protocol.length + 1) : uri;\n\n const match = DATA_URL_PATTERN.exec(uri);\n\n if (!match) {\n throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);\n }\n\n const mime = match[1];\n const isBase64 = match[2];\n const body = match[3];\n const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');\n\n if (asBlob) {\n if (!_Blob) {\n throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return new _Blob([buffer], {type: mime});\n }\n\n return buffer;\n }\n\n throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","const {asyncIterator} = Symbol;\n\nconst readBlob = async function* (blob) {\n if (blob.stream) {\n yield* blob.stream()\n } else if (blob.arrayBuffer) {\n yield await blob.arrayBuffer()\n } else if (blob[asyncIterator]) {\n yield* blob[asyncIterator]();\n } else {\n yield blob;\n }\n}\n\nexport default readBlob;\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled(force, args) {\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, args);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, args);\n }, threshold - (now - timestamp));\n }\n };\n}\n\nexport default throttle;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","import FormData from 'form-data';\n\nexport default FormData;\n","'use strict';\n\nimport url from 'url';\nexport default url.URLSearchParams;\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\n\nexport default {\n isNode: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob: typeof Blob !== 'undefined' && Blob || null\n },\n protocols: [ 'http', 'https', 'file', 'data' ]\n};\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","var toStringFunction = Function.prototype.toString;\nvar create = Object.create;\nvar toStringObject = Object.prototype.toString;\n/**\n * @classdesc Fallback cache for when WeakMap is not natively supported\n */\nvar LegacyCache = /** @class */ (function () {\n function LegacyCache() {\n this._keys = [];\n this._values = [];\n }\n LegacyCache.prototype.has = function (key) {\n return !!~this._keys.indexOf(key);\n };\n LegacyCache.prototype.get = function (key) {\n return this._values[this._keys.indexOf(key)];\n };\n LegacyCache.prototype.set = function (key, value) {\n this._keys.push(key);\n this._values.push(value);\n };\n return LegacyCache;\n}());\nfunction createCacheLegacy() {\n return new LegacyCache();\n}\nfunction createCacheModern() {\n return new WeakMap();\n}\n/**\n * Get a new cache object to prevent circular references.\n */\nvar createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;\n/**\n * Get an empty version of the object with the same prototype it has.\n */\nfunction getCleanClone(prototype) {\n if (!prototype) {\n return create(null);\n }\n var Constructor = prototype.constructor;\n if (Constructor === Object) {\n return prototype === Object.prototype ? {} : create(prototype);\n }\n if (Constructor &&\n ~toStringFunction.call(Constructor).indexOf('[native code]')) {\n try {\n return new Constructor();\n }\n catch (_a) { }\n }\n return create(prototype);\n}\nfunction getRegExpFlagsLegacy(regExp) {\n var flags = '';\n if (regExp.global) {\n flags += 'g';\n }\n if (regExp.ignoreCase) {\n flags += 'i';\n }\n if (regExp.multiline) {\n flags += 'm';\n }\n if (regExp.unicode) {\n flags += 'u';\n }\n if (regExp.sticky) {\n flags += 'y';\n }\n return flags;\n}\nfunction getRegExpFlagsModern(regExp) {\n return regExp.flags;\n}\n/**\n * Get the flags to apply to the copied regexp.\n */\nvar getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;\nfunction getTagLegacy(value) {\n var type = toStringObject.call(value);\n return type.substring(8, type.length - 1);\n}\nfunction getTagModern(value) {\n return value[Symbol.toStringTag] || getTagLegacy(value);\n}\n/**\n * Get the tag of the value passed, so that the correct copier can be used.\n */\nvar getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;\n\nvar defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;\nvar SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';\nfunction getStrictPropertiesModern(object) {\n return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));\n}\n/**\n * Get the properites used when copying objects strictly. This includes both keys and symbols.\n */\nvar getStrictProperties = SUPPORTS_SYMBOL\n ? getStrictPropertiesModern\n : getOwnPropertyNames;\n/**\n * Striclty copy all properties contained on the object.\n */\nfunction copyOwnPropertiesStrict(value, clone, state) {\n var properties = getStrictProperties(value);\n for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {\n property = properties[index];\n if (property === 'callee' || property === 'caller') {\n continue;\n }\n descriptor = getOwnPropertyDescriptor(value, property);\n if (!descriptor) {\n // In extra edge cases where the property descriptor cannot be retrived, fall back to\n // the loose assignment.\n clone[property] = state.copier(value[property], state);\n continue;\n }\n // Only clone the value if actually a value, not a getter / setter.\n if (!descriptor.get && !descriptor.set) {\n descriptor.value = state.copier(descriptor.value, state);\n }\n try {\n defineProperty(clone, property, descriptor);\n }\n catch (error) {\n // Tee above can fail on node in edge cases, so fall back to the loose assignment.\n clone[property] = descriptor.value;\n }\n }\n return clone;\n}\n/**\n * Deeply copy the indexed values in the array.\n */\nfunction copyArrayLoose(array, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n for (var index = 0, length_2 = array.length; index < length_2; ++index) {\n clone[index] = state.copier(array[index], state);\n }\n return clone;\n}\n/**\n * Deeply copy the indexed values in the array, as well as any custom properties.\n */\nfunction copyArrayStrict(array, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n return copyOwnPropertiesStrict(array, clone, state);\n}\n/**\n * Copy the contents of the ArrayBuffer.\n */\nfunction copyArrayBuffer(arrayBuffer, _state) {\n return arrayBuffer.slice(0);\n}\n/**\n * Create a new Blob with the contents of the original.\n */\nfunction copyBlob(blob, _state) {\n return blob.slice(0, blob.size, blob.type);\n}\n/**\n * Create a new DataView with the contents of the original.\n */\nfunction copyDataView(dataView, state) {\n return new state.Constructor(copyArrayBuffer(dataView.buffer));\n}\n/**\n * Create a new Date based on the time of the original.\n */\nfunction copyDate(date, state) {\n return new state.Constructor(date.getTime());\n}\n/**\n * Deeply copy the keys and values of the original.\n */\nfunction copyMapLoose(map, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(map, clone);\n map.forEach(function (value, key) {\n clone.set(key, state.copier(value, state));\n });\n return clone;\n}\n/**\n * Deeply copy the keys and values of the original, as well as any custom properties.\n */\nfunction copyMapStrict(map, state) {\n return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);\n}\nfunction copyObjectLooseLegacy(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n return clone;\n}\nfunction copyObjectLooseModern(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n for (var key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n var symbols = getOwnPropertySymbols(object);\n for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {\n symbol = symbols[index];\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = state.copier(object[symbol], state);\n }\n }\n return clone;\n}\n/**\n * Deeply copy the properties (keys and symbols) and values of the original.\n */\nvar copyObjectLoose = SUPPORTS_SYMBOL\n ? copyObjectLooseModern\n : copyObjectLooseLegacy;\n/**\n * Deeply copy the properties (keys and symbols) and values of the original, as well\n * as any hidden or non-enumerable properties.\n */\nfunction copyObjectStrict(object, state) {\n var clone = getCleanClone(state.prototype);\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n return copyOwnPropertiesStrict(object, clone, state);\n}\n/**\n * Create a new primitive wrapper from the value of the original.\n */\nfunction copyPrimitiveWrapper(primitiveObject, state) {\n return new state.Constructor(primitiveObject.valueOf());\n}\n/**\n * Create a new RegExp based on the value and flags of the original.\n */\nfunction copyRegExp(regExp, state) {\n var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));\n clone.lastIndex = regExp.lastIndex;\n return clone;\n}\n/**\n * Return the original value (an identity function).\n *\n * @note\n * THis is used for objects that cannot be copied, such as WeakMap.\n */\nfunction copySelf(value, _state) {\n return value;\n}\n/**\n * Deeply copy the values of the original.\n */\nfunction copySetLoose(set, state) {\n var clone = new state.Constructor();\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(set, clone);\n set.forEach(function (value) {\n clone.add(state.copier(value, state));\n });\n return clone;\n}\n/**\n * Deeply copy the values of the original, as well as any custom properties.\n */\nfunction copySetStrict(set, state) {\n return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);\n}\n\nvar isArray = Array.isArray;\nvar assign = Object.assign;\nvar getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; });\nvar DEFAULT_LOOSE_OPTIONS = {\n array: copyArrayLoose,\n arrayBuffer: copyArrayBuffer,\n blob: copyBlob,\n dataView: copyDataView,\n date: copyDate,\n error: copySelf,\n map: copyMapLoose,\n object: copyObjectLoose,\n regExp: copyRegExp,\n set: copySetLoose,\n};\nvar DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {\n array: copyArrayStrict,\n map: copyMapStrict,\n object: copyObjectStrict,\n set: copySetStrict,\n});\n/**\n * Get the copiers used for each specific object tag.\n */\nfunction getTagSpecificCopiers(options) {\n return {\n Arguments: options.object,\n Array: options.array,\n ArrayBuffer: options.arrayBuffer,\n Blob: options.blob,\n Boolean: copyPrimitiveWrapper,\n DataView: options.dataView,\n Date: options.date,\n Error: options.error,\n Float32Array: options.arrayBuffer,\n Float64Array: options.arrayBuffer,\n Int8Array: options.arrayBuffer,\n Int16Array: options.arrayBuffer,\n Int32Array: options.arrayBuffer,\n Map: options.map,\n Number: copyPrimitiveWrapper,\n Object: options.object,\n Promise: copySelf,\n RegExp: options.regExp,\n Set: options.set,\n String: copyPrimitiveWrapper,\n WeakMap: copySelf,\n WeakSet: copySelf,\n Uint8Array: options.arrayBuffer,\n Uint8ClampedArray: options.arrayBuffer,\n Uint16Array: options.arrayBuffer,\n Uint32Array: options.arrayBuffer,\n Uint64Array: options.arrayBuffer,\n };\n}\n/**\n * Create a custom copier based on the object-specific copy methods passed.\n */\nfunction createCopier(options) {\n var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);\n var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);\n var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;\n function copier(value, state) {\n state.prototype = state.Constructor = undefined;\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (state.cache.has(value)) {\n return state.cache.get(value);\n }\n state.prototype = getPrototypeOf(value);\n state.Constructor = state.prototype && state.prototype.constructor;\n // plain objects\n if (!state.Constructor || state.Constructor === Object) {\n return object(value, state);\n }\n // arrays\n if (isArray(value)) {\n return array(value, state);\n }\n var tagSpecificCopier = tagSpecificCopiers[getTag(value)];\n if (tagSpecificCopier) {\n return tagSpecificCopier(value, state);\n }\n return typeof value.then === 'function' ? value : object(value, state);\n }\n return function copy(value) {\n return copier(value, {\n Constructor: undefined,\n cache: createCache(),\n copier: copier,\n prototype: undefined,\n });\n };\n}\n/**\n * Create a custom copier based on the object-specific copy methods passed, defaulting to the\n * same internals as `copyStrict`.\n */\nfunction createStrictCopier(options) {\n return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));\n}\n/**\n * Copy an value deeply as much as possible, where strict recreation of object properties\n * are maintained. All properties (including non-enumerable ones) are copied with their\n * original property descriptors on both objects and arrays.\n */\nvar copyStrict = createStrictCopier({});\n/**\n * Copy an value deeply as much as possible.\n */\nvar index = createCopier({});\n\nexport { copyStrict, createCopier, createStrictCopier, index as default };\n//# sourceMappingURL=index.mjs.map\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Contentful Management API SDK. Allows you to create instances of a client\n * with access to the Contentful Content Management API.\n * @packageDocumentation\n */\n\nimport { getUserAgentHeader } from 'contentful-sdk-core'\nimport type { RestAdapterParams } from './adapters/REST/rest-adapter'\nimport type { MakeRequest, XOR } from './common-types'\nimport { AdapterParams, createAdapter } from './create-adapter'\nimport createContentfulApi, { ClientAPI } from './create-contentful-api'\nimport type { PlainClientAPI } from './plain/common-types'\nimport type { DefaultParams } from './plain/plain-client'\nimport { createPlainClient } from './plain/plain-client'\nimport * as editorInterfaceDefaults from './constants/editor-interface-defaults'\n\nexport type { ClientAPI } from './create-contentful-api'\nexport { asIterator } from './plain/as-iterator'\nexport { isDraft, isPublished, isUpdated } from './plain/checks'\nexport type { PlainClientAPI } from './plain/common-types'\nexport { createClient }\nexport { RestAdapter } from './adapters/REST/rest-adapter'\nexport { editorInterfaceDefaults }\nexport type PlainClientDefaultParams = DefaultParams\nexport * from './export-types'\n\ninterface UserAgentParams {\n /**\n * Application name and version e.g myApp/version\n */\n application?: string\n /**\n * Integration name and version e.g react/version\n */\n integration?: string\n\n feature?: string\n}\n\n/**\n * @deprecated\n */\nexport type ClientParams = RestAdapterParams & UserAgentParams\ntype ClientOptions = UserAgentParams & XOR\n\n/**\n * Create a client instance\n * @param params - Client initialization parameters\n *\n * ```javascript\n * const client = contentfulManagement.createClient({\n * accessToken: 'myAccessToken'\n * })\n * ```\n */\nfunction createClient(params: ClientOptions): ClientAPI\nfunction createClient(\n params: ClientOptions,\n opts: {\n type: 'plain'\n defaults?: DefaultParams\n }\n): PlainClientAPI\n// Usually, overloads with more specific signatures should come first but some IDEs are often not able to handle overloads with separate TSDocs correctly\n/**\n * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option.\n */\nfunction createClient(\n params: ClientOptions,\n opts: {\n type?: 'plain'\n alphaFeatures: string[]\n defaults?: DefaultParams\n }\n): ClientAPI | PlainClientAPI\nfunction createClient(\n params: ClientOptions,\n opts: {\n type?: 'plain'\n defaults?: DefaultParams\n } = {}\n): ClientAPI | PlainClientAPI {\n const sdkMain =\n opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js'\n const userAgent = getUserAgentHeader(\n // @ts-expect-error\n `${sdkMain}/${__VERSION__}`,\n params.application,\n params.integration,\n params.feature\n )\n\n const adapter = createAdapter({ ...params, userAgent })\n\n // Parameters and ReturnType only return the types of the last overload\n // https://github.com/microsoft/TypeScript/issues/26591\n // @ts-expect-error\n const makeRequest: MakeRequest = (options: Parameters[0]): ReturnType =>\n adapter.makeRequest({ ...options, userAgent })\n\n if (opts.type === 'plain') {\n return createPlainClient(makeRequest, opts.defaults)\n } else {\n return createContentfulApi(makeRequest) as ClientAPI\n }\n}\n"],"names":["raw","get","http","params","tokenId","getMany","query","createPersonalAccessToken","_params","rawData","headers","post","revoke","put","getManyForOrganization","organizationId","copy","spaceId","apiKeyId","create","data","createWithId","update","_rawData$sys$version","accessToken","preview_api_key","policies","sys","_objectSpread","version","del","environmentId","appDefinitionId","undefined","Authorization","jwt","isSuccessful","shouldRePoll","waitFor","appActionId","getCallDetails","callId","APP_ACTION_CALL_RETRY_INTERVAL","APP_ACTION_CALL_RETRIES","callAppActionResult","checkCount","retryInterval","retries","Promise","resolve","reject","poll","_result$response","_result$response2","result","response","statusCode","error","Error","createWithResponse","createResponse","id","normalizeSelect","getBaseUrl","getAppActionUrl","getAppActionsEnvUrl","getManyForEnvironment","getAppBundleUrl","appBundleId","payload","appUploadId","comment","actions","functions","upload","type","linkType","normalizeSpaceId","getAppDefinitionUrl","getBaseUrlForOrgInstallations","getInstallationsForOrg","upsert","getAppInstallationUrl","acceptAllTerms","getForOrganization","fingerprint","getUploadHttpClient","getAppUploadUrl","httpUpload","file","ASSET_KEY_MAX_LIFETIME","ValidationError","constructor","name","message","validateTimestamp","timestamp","options","maximum","now","expiresAt","Math","floor","Date","currentMaxLifetime","postParams","errorHandler","createUpload","assetId","getPublished","publish","_rawData$sys$version2","unpublish","archive","unarchive","createFromFiles","uploadTimeout","fields","all","Object","keys","map","locale","contentType","fileName","then","uploadFrom","uploads","reduce","fieldsData","asset","catch","ASSET_PROCESSING_CHECK_WAIT","ASSET_PROCESSING_CHECK_RETRIES","checkIfAssetHasUrl","processingCheckWait","processingCheckRetries","url","setTimeout","processForLocale","_ref","_objectWithoutProperties","_excluded","processForAllLocales","_ref2","_excluded2","locales","mostUpToDateAssetVersion","allProcessingLocales","bulkActionId","validate","VERSION_HEADER","BODY_FORMAT_HEADER","PARENT_ENTITY_REFERENCE_HEADER","PARENT_COMMENT_ID_HEADER","getSpaceEnvBaseUrl","getEntityCommentUrl","getEntityBaseUrl","commentId","getParentPlural","parentEntityType","paramsOrg","parentEntityId","entryId","parentPlural","versionPath","parentEntityVersion","bodyFormat","body","parentEntityReference","parentCommentId","getAll","getContentTypeUrl","contentTypeId","patch","references","include","level","getEnvironmentAliasUrl","environmentAliasId","apiPath","pathSegments","join","environmentTemplateId","paginationProps","getForEnvironment","installationId","_payload$sys$version","versionUpdate","versions","install","disconnect","sourceEnvironmentId","getExtensionUrl","extensionId","config","request","ApiKey","AppAction","AppActionCall","AppBundle","AppDefinition","AppDetails","AppInstallation","AppSignedRequest","AppSigningSecret","AppEventSubscription","AppKey","AppAccessToken","AppUpload","Asset","AssetKey","BulkAction","Comment","ContentType","EditorInterface","Entry","Environment","EnvironmentAlias","EnvironmentTemplate","EnvironmentTemplateInstallation","Extension","Http","Locale","Organization","OrganizationInvitation","OrganizationMembership","PersonalAccessToken","AccessToken","PreviewApiKey","Release","ReleaseAction","Role","ScheduledAction","Snapshot","Space","SpaceMember","SpaceMembership","Tag","Task","Team","TeamMembership","TeamSpaceMembership","UIConfig","Upload","Usage","User","UserUIConfig","Webhook","Workflow","WorkflowDefinition","WorkflowsChangelog","localeId","default","OrganizationUserManagementAlphaHeaders","InvitationAlphaHeaders","invitationId","getEntityUrl","organizationMembershipId","role","limit","org","items","find","JSON","stringify","status","statusText","previewApiKeyId","_http$defaults$baseUR","defaults","baseURL","split","delete","releaseId","actionId","queryForRelease","roleId","scheduledActionId","_data$environment","environment","getBaseEntryUrl","getEntryUrl","snapshotId","getManyForEntry","getForEntry","getBaseContentTypeUrl","getManyForContentType","getForContentType","spaceMemberId","spaceMembershipDeprecationWarning","console","warn","spaceMembershipId","getTagUrl","tagId","_rawData$sys$visibili","visibility","getTaskUrl","taskId","teamId","teamMembershipId","getManyForTeam","teamSpaceMembershipId","team","getManyForSpace","getUrl","getBaseUploadUrl","spacePath","environmentPath","path","getEntityUploadUrl","uploadId","getForSpace","userId","getCurrent","select","test","rest","getWebhookCallBaseUrl","getWebhookUrl","webhookDefinitionId","getWebhookCallUrl","getWebhookCallDetailsUrl","getWebhookHealthUrl","getWebhookSettingsUrl","getWebhookSigningSecretUrl","getWebhookRetryPolicyUrl","getManyCallDetails","getHealthStatus","getSigningSecret","getRetryPolicy","upsertSigningSecret","upsertRetryPolicy","deleteSigningSecret","deleteRetryPolicy","getWorkflowDefinitionUrl","workflowDefinitionId","getWorkflowUrl","workflowId","completeWorkflowUrl","complete","axios","createHttpClient","endpoints","defaultHostParameters","defaultHostname","defaultHostnameUpload","RestAdapter","_defineProperty","TypeError","axiosInstance","userAgent","makeRequest","entityType","action","actionInput","_endpoints$entityType","endpoint","ScheduledActionReferenceFilters","toPlainObject","wrapCollection","fn","collectionData","entity","wrapCursorPaginatedCollection","includes","ms","in_","DROPDOWN_TYPES","INTERNAL_TO_API","Symbol","Text","RichText","Integer","Number","Boolean","Location","File","Resource","Symbols","Entries","Assets","Resources","FIELD_TYPES","toInternalFieldType","api","key","internalApi","stripped","DEFAULTS_WIDGET","widgetId","DEFAULTS_SETTINGS","falseLabel","helpText","trueLabel","ampm","format","showCreateEntityAction","showLinkEntityAction","bulkEditing","getDefaultWidget","field","fieldId","defaultWidget","settings","widgetNamespace","toApiFieldType","internal","getDefaultControlOfField","fieldType","hasInValidation","validations","v","widgetNameSpace","DEFAULT_EDITOR_ID","WidgetNamespace","EntryEditorWidgetTypes","DEFAULT_EDITOR","icon","REFERENCE_TREE","TAGS_EDITOR","DefaultEntryEditor","EDITOR_BUILTIN","ReferencesEntryEditor","TagsEditor","EntryConfiguration","SidebarAssetConfiguration","SidebarEntryConfiguration","SidebarWidgetTypes","USERS","CONTENT_PREVIEW","TRANSLATION","INCOMING_LINKS","PUBLICATION","RELEASES","VERSIONS","INFO_PANEL","JOBS","COMMENTS_PANEL","Publication","SIDEBAR_BUILTIN","description","Releases","ContentPreview","Links","Translation","Versions","Users","object","createAdapter","apiAdapter","entities","wrapAppDefinition","createAppDefinitionApi","wrapAppBundle","wrapAppBundleCollection","appBundle","getParams","organization","getAppBundle","getAppBundles","createAppBundle","createRequestConfig","createClientApi","wrapSpace","wrapSpaceCollection","space","wrapUser","user","wrapPersonalAccessToken","wrapPersonalAccessTokenCollection","personalAccessToken","wrapAccessToken","wrapAccessTokenCollection","wrapOrganization","wrapOrganizationCollection","wrapUsageCollection","usage","appDefinition","wrapEnvironmentTemplate","wrapEnvironmentTemplateCollection","environmentTemplate","getEnvironmentTemplates","getEnvironmentTemplate","createEnvironmentTemplate","environmentTemplateData","getSpaces","getSpace","createSpace","spaceData","getOrganization","getOrganizations","getCurrentUser","getAppDefinition","getPersonalAccessToken","getPersonalAccessTokens","getAccessToken","getAccessTokens","getOrganizationAccessTokens","getOrganizationUsage","getSpaceUsage","rawRequest","checks","createEntryApi","wrapEntry","wrapEntryCollection","entry","wrapSnapshot","wrapSnapshotCollection","snapshot","wrapTask","wrapTaskCollection","task","wrapComment","wrapCommentCollection","self","ops","getSnapshots","getSnapshot","createComment","getComments","getComment","createTask","getTasks","getTask","isPublished","isUpdated","isDraft","isArchived","wrapReleaseAction","wrapReleaseActionCollection","wrapRelease","wrapReleaseCollection","wrapTag","wrapTagCollection","wrapUIConfig","wrapUserUIConfig","wrapEnvironmentTemplateInstallationCollection","createEnvironmentApi","wrapEnvironment","wrapContentType","wrapContentTypeCollection","wrapAsset","wrapAssetCollection","wrapAssetKey","assetKey","wrapLocale","wrapLocaleCollection","wrapEditorInterface","wrapEditorInterfaceCollection","editorInterface","wrapUpload","wrapExtension","wrapExtensionCollection","extension","wrapAppInstallation","wrapAppInstallationCollection","appInstallation","wrapAppSignedRequest","appSignedRequest","wrapAppActionCall","appActionCall","wrapBulkAction","bulkAction","wrapAppAccessToken","appAccessToken","deleteEnvironment","updateEnvironment","getEntryFromData","entryData","getAssetFromData","assetData","getBulkAction","createPublishBulkAction","createValidateBulkAction","createUnpublishBulkAction","getContentType","getContentTypes","createContentType","createContentTypeWithId","getEditorInterfaceForContentType","getEditorInterfaces","getEntry","deleteEntry","getEntries","getPublishedEntries","createEntry","createEntryWithId","getEntryReferences","getAsset","getAssets","getPublishedAssets","createAsset","createAssetWithId","createAssetFromFiles","createAssetKey","getUpload","getLocale","getLocales","createLocale","getUiExtension","getUiExtensions","createUiExtension","createUiExtensionWithId","createAppInstallation","getAppInstallation","getAppInstallations","createAppActionCall","createAppSignedRequest","createAppAccessToken","getEntrySnapshots","getContentTypeSnapshots","createTag","getTags","getTag","getRelease","getReleases","createRelease","updateRelease","deleteRelease","publishRelease","unpublishRelease","validateRelease","archiveRelease","unarchiveRelease","getReleaseAction","getReleaseActions","getUIConfig","getUserUIConfig","getEnvironmentTemplateInstallations","createEnvironmentTemplateApi","environmentTemplateInstallation","updateEnvironmentTemplate","updateVersion","updateEnvironmentTemplateVersion","versionName","versionDescription","deleteEnvironmentTemplate","getVersions","getEnvironmentTemplateVersions","getInstallations","validateEnvironmentTemplate","takeover","changeSet","installEnvironmentTemplate","installation","disconnectEnvironmentTemplate","createOrganizationApi","wrapAppDefinitionCollection","wrapUserCollection","wrapOrganizationMembership","wrapOrganizationMembershipCollection","organizationMembership","wrapTeamMembership","wrapTeamMembershipCollection","teamMembership","wrapTeamSpaceMembership","wrapTeamSpaceMembershipCollection","teamSpaceMembership","wrapTeam","wrapTeamCollection","wrapSpaceMembership","wrapSpaceMembershipCollection","spaceMembership","wrapOrganizationInvitation","organizationInvitation","wrapAppUpload","appUpload","wrapAppSigningSecret","appSigningSecret","wrapAppEventSubscription","appEventSubscription","wrapAppKey","wrapAppKeyCollection","appKey","wrapAppDetails","appDetails","wrapAppAction","wrapAppActionCollection","appAction","wrapRoleCollection","getUser","getUsers","getOrganizationMembership","getOrganizationMemberships","createTeam","getTeam","getTeams","createTeamMembership","getTeamMembership","getTeamMemberships","opts","getTeamSpaceMemberships","getTeamSpaceMembership","getOrganizationSpaceMembership","getOrganizationSpaceMemberships","getOrganizationInvitation","createOrganizationInvitation","getRoles","createAppDefinition","getAppDefinitions","getAppUpload","createAppUpload","upsertAppSigningSecret","getAppSigningSecret","deleteAppSigningSecret","upsertAppEventSubscription","getAppEventSubscription","deleteAppEventSubscription","createAppKey","getAppKey","getAppKeys","deleteAppKey","upsertAppDetails","getAppDetails","deleteAppDetails","createAppAction","updateAppAction","deleteAppAction","getAppAction","getAppActions","createSpaceApi","wrapEnvironmentCollection","wrapWebhook","wrapWebhookCollection","webhook","wrapRole","wrapSpaceMember","wrapSpaceMemberCollection","spaceMember","wrapApiKey","wrapApiKeyCollection","apiKey","wrapEnvironmentAlias","wrapEnvironmentAliasCollection","environmentAlias","wrapPreviewApiKey","wrapPreviewApiKeyCollection","previewApiKey","wrapScheduledAction","wrapScheduledActionCollection","scheduledAction","deleteSpace","updateSpace","getEnvironment","getEnvironments","createEnvironment","createEnvironmentWithId","getWebhook","getWebhooks","getWebhookSigningSecret","getWebhookRetryPolicy","createWebhook","createWebhookWithId","upsertWebhookSigningSecret","upsertWebhookRetryPolicy","deleteWebhookSigningSecret","deleteWebhookRetryPolicy","getRole","createRole","createRoleWithId","roleData","getSpaceUser","getSpaceUsers","getSpaceMember","getSpaceMembers","getSpaceMembership","getSpaceMemberships","createSpaceMembership","createSpaceMembershipWithId","createTeamSpaceMembership","getApiKey","getApiKeys","getPreviewApiKeys","getPreviewApiKey","createApiKey","createApiKeyWithId","createEnvironmentAliasWithId","getEnvironmentAlias","getEnvironmentAliases","getScheduledActions","getScheduledAction","createScheduledAction","updateScheduledAction","spaceProps","deleteScheduledAction","createUIConfigApi","uiConfig","createUserUIConfigApi","userUIConfig","enhanceWithMethods","baseObject","methodsObject","enhancedObject","methodName","defineProperty","enumerable","configurable","writable","value","freezeSys","accessTokenWithMethods","createApiKeyApi","_data$sys$space$sys$i","_data$sys$space","apiKeyWithMethods","_makeRequest","createAppActionCallApi","retryOptions","parameters","recipient","message_body","wrapAppActionCallResponse","signedRequest","signedRequestWithMethods","appActionCallResponse","appActionCallResponseWithMethods","createAppActionApi","appActionWithMethods","createAppBundleApi","appBundleWithMethods","appDefinitionWithMethods","createAppDetailsApi","createEventSubscriptionApi","eventSubscription","createAppInstallationApi","appInstallationWithMethods","createKeyApi","createSigningSecretApi","signingSecret","createAppUploadApi","appUploadWithMethods","wrapAppUploadCollection","createAssetApi","assetWithMethods","pollAsyncActionStatus","BulkActionStatus","STATUSES","values","createBulkActionApi","waitProcessing","bulkActionWithApiMethods","CommentNode","createCommentApi","parentEntity","commentWithMethods","omitAndDeleteField","createContentTypeApi","getEditorInterface","contentTypeWithMethods","createEditorInterfaceApi","getControlForField","controls","filter","control","length","editorInterfaceWithMethods","entryWithMethods","createEnvironmentAliasApi","alias","enhancedAlias","EnvironmentTemplateInstallationStatuses","wrapEnvironmentTemplateInstallation","environmentTemplateApi","enhancedEnvironmentTemplate","environmentApi","enhancedEnvironment","createExtensionApi","extensionWithMethods","release","releaseAction","tag","workflowDefinition","createLocaleApi","internal_code","localeWithMethods","invitation","createOrganizationMembershipApi","organizationMembershipWithMethods","orgApi","enhancedOrganization","personalAccessTokenWithMethods","createPreviewApiKeyApi","previewApiKeyWithMethods","createReleaseActionApi","releaseActionWithApiMethods","ReleaseReferenceFilters","createReleaseApi","processingOptions","releaseWithApiMethods","createRoleApi","roleWithMethods","ScheduledActionStatus","getInstanceMethods","_scheduledAction$envi","_this$toPlainObject","scheduledActionWithMethods","createSnapshotApi","snapshotWithMethods","createSpaceMembershipApi","spaceMembershipWithMethods","spaceApi","enhancedSpace","createTagApi","tagWithMethods","createTaskApi","taskWithMethods","createTeamMembershipApi","teamMembershipWithMethods","createTeamSpaceMembershipApi","teamSpaceMembershipWithMethods","createTeamApi","teamWithMethods","userWithMethods","createUploadApi","uploadWithMethods","wrapUsage","usageWithMethods","createWebhookApi","getCalls","getCall","getHealth","webhookWithMethods","WorkflowStepPermissionType","WorkflowStepPermissionAction","WorkflowStepPermissionEffect","WorkflowStepActionType","createWorkflowDefinitionApi","wrapWorkflowDefinition","workflowDefinitionWithMethods","wrapWorkflowDefinitionCollection","sleep","DEFAULT_MAX_RETRIES","DEFAULT_INITIAL_DELAY_MS","DEFAULT_RETRY_INTERVAL_MS","AsyncActionProcessingError","AsyncActionFailedError","actionFunction","_options$retryCount","_options$retryInterva","_options$initialDelay","_options$throwOnFaile","_action","retryCount","done","maxRetries","retryIntervalMs","initialDelayMs","throwOnFailedExecution","findAndUpdateField","omitOrDelete","newContentType","durationMs","asIterator","asyncIterator","currentResult","current","next","total","skip","endOfPage","endOfList","publishedVersion","archivedVersion","wrap","createPlainClient","wrapParams","getDefaultParams","function","scheduledActions","workflow","workflowsChangelog","hostUpload","timeout","httpClientParams","uploadHttp","cloneWithNewParams","host","getUserAgentHeader","createContentfulApi","editorInterfaceDefaults","createClient","sdkMain","application","integration","feature","adapter"],"sourceRoot":""} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/contentful-management.node.min.js b/node_modules/contentful-management/dist/contentful-management.node.min.js deleted file mode 100644 index c58b3a76..00000000 --- a/node_modules/contentful-management/dist/contentful-management.node.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see contentful-management.node.min.js.LICENSE.txt */ -(()=>{var e={4878:(e,t,n)=>{e.exports={parallel:n(9050),serial:n(2451),serialOrdered:n(6709)}},8813:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},9127:(e,t,n)=>{var a=n(4701);e.exports=function(e){var t=!1;return a((function(){t=!0})),function(n,i){t?e(n,i):a((function(){e(n,i)}))}}},4701:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},2751:(e,t,n)=>{var a=n(9127),i=n(8813);e.exports=function(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=function(e,t,n,i){return 2==e.length?e(n,a(i)):e(n,t,a(i))}(t,r,e[r],(function(e,t){r in n.jobs&&(delete n.jobs[r],e?i(n):n.results[r]=t,o(e,n.results))}))}},7178:e=>{e.exports=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])}),a}},8694:(e,t,n)=>{var a=n(8813),i=n(9127);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,a(this),i(e)(null,this.results))}},9050:(e,t,n)=>{var a=n(2751),i=n(7178),o=n(8694);e.exports=function(e,t,n){for(var r=i(e);r.index<(r.keyedList||e).length;)a(e,t,r,(function(e,t){e?n(e,t):0!==Object.keys(r.jobs).length||n(null,r.results)})),r.index++;return o.bind(r,n)}},2451:(e,t,n)=>{var a=n(6709);e.exports=function(e,t,n){return a(e,t,null,n)}},6709:(e,t,n)=>{var a=n(2751),i=n(7178),o=n(8694);function r(e,t){return et?1:0}e.exports=function(e,t,n,r){var s=i(e,n);return a(e,t,s,(function n(i,o){i?r(i,o):(s.index++,s.index<(s.keyedList||e).length?a(e,t,s,n):r(null,s.results))})),o.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,t){return-1*r(e,t)}},2737:(e,t,n)=>{"use strict";var a=n(8750),i=n(4573),o=i(a("String.prototype.indexOf"));e.exports=function(e,t){var n=a(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},4573:(e,t,n)=>{"use strict";var a=n(132),i=n(8750),o=i("%Function.prototype.apply%"),r=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||a.call(r,o),c=i("%Object.getOwnPropertyDescriptor%",!0),p=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=s(a,r,arguments);return c&&p&&c(t,"length").configurable&&p(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var u=function(){return s(a,o,arguments)};p?p(e.exports,"apply",{value:u}):e.exports.apply=u},4464:(e,t,n)=>{var a=n(3837),i=n(2781).Stream,o=n(9444);function r(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=r,a.inherits(r,i),r.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},r.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},r.prototype.append=function(e){if(r.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},r.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},r.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},r.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){r.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},r.prototype._pipeNext=function(e){if(this._currentStream=e,r.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},r.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},r.prototype.write=function(e){this.emit("data",e)},r.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},r.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},r.prototype.end=function(){this._reset(),this.emit("end")},r.prototype.destroy=function(){this._reset(),this.emit("close")},r.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},r.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},r.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},r.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},137:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:a}},1122:(e,t,n)=>{"use strict";var a=n(892),i=n(5015),o=n(137);e.exports={formats:o,parse:i,stringify:a}},5015:(e,t,n)=>{"use strict";var a=n(5634),i=Object.prototype.hasOwnProperty,o=Array.isArray,r={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},p=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),p=s?o.slice(0,s.index):o,l=[];if(p){if(!n.plainObjects&&i.call(Object.prototype,p)&&!n.allowPrototypes)return;l.push(p)}for(var u=0;n.depth>0&&null!==(s=r.exec(o))&&u=0;--o){var r,s=e[o];if("[]"===s&&n.parseArrays)r=[].concat(i);else{r=n.plainObjects?Object.create(null):{};var p="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(p,10);n.parseArrays||""!==p?!isNaN(l)&&s!==p&&String(l)===p&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=i:"__proto__"!==p&&(r[p]=i):r={0:i}}i=r}return i}(l,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return r;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?r.charset:e.charset;return{allowDots:void 0===e.allowDots?r.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:r.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||a.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,p={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,u),m=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=o(v)?[v]:v),i.call(p,y)?p[y]=a.combine(p[y],v):p[y]=v}return p}(e,n):e,u=n.plainObjects?Object.create(null):{},d=Object.keys(l),m=0;m{"use strict";var a=n(5337),i=n(5634),o=n(137),r=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,p=Array.prototype.push,l=function(e,t){p.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,m={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},f={},y=function e(t,n,o,r,s,p,u,d,y,v,b,h,g,x,O,w){for(var j,I=t,P=w,T=0,S=!1;void 0!==(P=P.get(f))&&!S;){var k=P.get(t);if(T+=1,void 0!==k){if(k===T)throw new RangeError("Cyclic object value");S=!0}void 0===P.get(f)&&(T=0)}if("function"==typeof d?I=d(n,I):I instanceof Date?I=b(I):"comma"===o&&c(I)&&(I=i.maybeMap(I,(function(e){return e instanceof Date?b(e):e}))),null===I){if(s)return u&&!x?u(n,m.encoder,O,"key",h):n;I=""}if("string"==typeof(j=I)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||i.isBuffer(I))return u?[g(x?n:u(n,m.encoder,O,"key",h))+"="+g(u(I,m.encoder,O,"value",h))]:[g(n)+"="+g(String(I))];var A,E=[];if(void 0===I)return E;if("comma"===o&&c(I))x&&u&&(I=i.maybeMap(I,u)),A=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(d))A=d;else{var C=Object.keys(I);A=y?C.sort(y):C}for(var _=r&&c(I)&&1===I.length?n+"[]":n,D=0;D0?O+x:""}},5634:(e,t,n)=>{"use strict";var a=n(137),i=Object.prototype.hasOwnProperty,o=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var a=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===a.RFC1738&&(40===l||41===l)?c+=s.charAt(p):l<128?c+=r[l]:l<2048?c+=r[192|l>>6]+r[128|63&l]:l<55296||l>=57344?c+=r[224|l>>12]+r[128|l>>6&63]+r[128|63&l]:(p+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(p)),c+=r[240|l>>18]+r[128|l>>12&63]+r[128|l>>6&63]+r[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],a=0;a{var t=1e3,n=60*t,a=60*n,i=24*a;function o(e,t,n,a){var i=t>=1.5*n;return Math.round(e/n)+" "+a+(i?"s":"")}e.exports=function(e,r){r=r||{};var s,c,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var r=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*i;case"hours":case"hour":case"hrs":case"hr":case"h":return r*a;case"minutes":case"minute":case"mins":case"min":case"m":return r*n;case"seconds":case"second":case"secs":case"sec":case"s":return r*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===p&&isFinite(e))return r.long?(s=e,(c=Math.abs(s))>=i?o(s,c,i,"day"):c>=a?o(s,c,a,"hour"):c>=n?o(s,c,n,"minute"):c>=t?o(s,c,t,"second"):s+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=a?Math.round(e/a)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6292:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":a(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var a=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),t.splice(i,0,n)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(9374)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},9374:(e,t,n)=>{"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n{"use strict";"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(6292):e.exports=n(4428)},4428:(e,t,n)=>{"use strict";var a=n(6224),i=n(3837);t.init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),a=0;a=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e}),{}),e.exports=n(9374)(t);var r=e.exports.formatters;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},9444:(e,t,n)=>{var a=n(2781).Stream,i=n(3837);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,a),o.create=function(e,t){var n=new this;for(var a in t=t||{})n[a]=t[a];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=a.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},6276:(e,t,n)=>{var a;e.exports=function(){if(!a){try{a=n(1241)("follow-redirects")}catch(e){}"function"!=typeof a&&(a=function(){})}a.apply(null,arguments)}},4095:(e,t,n)=>{var a=n(7310),i=a.URL,o=n(3685),r=n(5687),s=n(2781).Writable,c=n(9491),p=n(6276),l=!1;try{c(new i)}catch(e){l="ERR_INVALID_URL"===e.code}var u=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],m=Object.create(null);d.forEach((function(e){m[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}}));var f=S("ERR_INVALID_URL","Invalid URL",TypeError),y=S("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),v=S("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),b=S("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h=S("ERR_STREAM_WRITE_AFTER_END","write after end"),g=s.prototype.destroy||w;function x(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function O(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(a){var o=a+":",r=n[o]=e[a],s=t[a]=Object.create(r);Object.defineProperties(s,{request:{value:function(e,a,r){return i&&e instanceof i?e=P(e):A(e)?e=P(j(e)):(r=a,a=I(e),e={protocol:o}),E(a)&&(r=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,A(a.host)||A(a.hostname)||(a.hostname="::1"),c.equal(a.protocol,o,"protocol mismatch"),p("options",a),new x(a,r)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=s.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),t}function w(){}function j(e){var t;if(l)t=new i(e);else if(!A((t=I(a.parse(e))).protocol))throw new f({input:e});return t}function I(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new f({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new f({input:e.href||e});return e}function P(e,t){var n=t||{};for(var a of u)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function T(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function S(e,t,n){function a(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function k(e,t){for(var n of d)e.removeListener(n,m[n]);e.on("error",w),e.destroy(t)}function A(e){return"string"==typeof e||e instanceof String}function E(e){return"function"==typeof e}x.prototype=Object.create(s.prototype),x.prototype.abort=function(){k(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},x.prototype.destroy=function(e){return k(this._currentRequest,e),g.call(this,e),this},x.prototype.write=function(e,t,n){if(this._ending)throw new h;if(!(A(e)||"object"==typeof(a=e)&&"length"in a))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;E(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new b),this.abort()):n&&n()},x.prototype.end=function(e,t,n){if(E(e)?(n=e,e=t=null):E(t)&&(n=t,t=null),e){var a=this,i=this._currentRequest;this.write(e,t,(function(){a._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},x.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},x.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},x.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),a(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",a),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){x.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(x.prototype,e,{get:function(){return this._currentRequest[e]}})})),x.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},x.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,d))i.on(o,m[o]);if(this._currentUrl=/^\//.test(this._options.path)?a.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,c=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(r=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(k(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new v;var r=this._options.beforeRedirect;r&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var u,d,m=T(/^host$/i,this._options.headers),f=j(this._currentUrl),y=m||f.host,b=/^\w+:/.test(o)?this._currentUrl:a.format(Object.assign(f,{host:y})),h=(u=o,d=b,l?new i(u,d):j(a.resolve(d,u)));if(p("redirecting to",h.href),this._isRedirect=!0,P(h,this._options),(h.protocol!==f.protocol&&"https:"!==h.protocol||h.host!==y&&!function(e,t){c(A(e)&&A(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(h.host,y))&&T(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),E(r)){var g={headers:e.headers,statusCode:t},x={url:b,method:s,headers:n};r(this._options,g,x),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=O({http:o,https:r}),e.exports.wrap=O},4347:(e,t,n)=>{var a=n(4464),i=n(3837),o=n(1017),r=n(3685),s=n(5687),c=n(7310).parse,p=n(7147),l=n(2781).Stream,u=n(2839),d=n(4878),m=n(4071);function f(e){if(!(this instanceof f))return new f(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],a.call(this),e=e||{})this[t]=e[t]}e.exports=f,i.inherits(f,a),f.LINE_BREAK="\r\n",f.DEFAULT_CONTENT_TYPE="application/octet-stream",f.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=a.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),i.isArray(t))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(e,t,n),s=this._multiPartFooter();o(r),o(t),o(s),this._trackLength(r,t,n)}},f.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=+n.knownLength:Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+f.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof l)&&(n.knownLength||this._valuesToMeasure.push(t))},f.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):p.stat(e.path,(function(n,a){var i;n?t(n):(i=a.size-(e.start?e.start:0),t(null,i))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},f.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,i=this._getContentDisposition(t,n),o=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&m(s,n.header),s)s.hasOwnProperty(c)&&null!=(a=s[c])&&(Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+f.LINE_BREAK));return"--"+this.getBoundary()+f.LINE_BREAK+r+f.LINE_BREAK},f.prototype._getContentDisposition=function(e,t){var n,a;return"string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=o.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n&&(a='filename="'+n+'"'),a},f.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=u.lookup(e.name)),!n&&e.path&&(n=u.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=u.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=f.DEFAULT_CONTENT_TYPE),n},f.prototype._multiPartFooter=function(){return function(e){var t=f.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},f.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+f.LINE_BREAK},f.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},f.prototype.setBoundary=function(e){this._boundary=e},f.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},f.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n{e.exports=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}},8458:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,a=function(e,t){for(var n=[],a=0;a{"use strict";var a=n(8458);e.exports=Function.prototype.bind||a},8750:(e,t,n)=>{"use strict";var a,i=SyntaxError,o=Function,r=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var p=function(){throw new r},l=c?function(){try{return p}catch(e){try{return c(arguments,"callee").get}catch(e){return p}}}():p,u=n(679)(),d=n(2574)(),m=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),f={},y="undefined"!=typeof Uint8Array&&m?m(Uint8Array):a,v={"%AggregateError%":"undefined"==typeof AggregateError?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?a:ArrayBuffer,"%ArrayIteratorPrototype%":u&&m?m([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?a:Atomics,"%BigInt%":"undefined"==typeof BigInt?a:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?a:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?a:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?a:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?a:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?a:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?a:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&m?m(m([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":"undefined"==typeof Map?a:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&m?m((new Map)[Symbol.iterator]()):a,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?a:Promise,"%Proxy%":"undefined"==typeof Proxy?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?a:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?a:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&m?m((new Set)[Symbol.iterator]()):a,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&m?m(""[Symbol.iterator]()):a,"%Symbol%":u?Symbol:a,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":r,"%Uint8Array%":"undefined"==typeof Uint8Array?a:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?a:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?a:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?a:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?a:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?a:WeakSet};if(m)try{null.error}catch(e){var b=m(m(e));v["%Error.prototype%"]=b}var h=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(n=m(i.prototype))}return v[t]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n(132),O=n(7492),w=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),I=x.call(Function.call,String.prototype.replace),P=x.call(Function.call,String.prototype.slice),T=x.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,A=function(e,t){var n,a=e;if(O(g,a)&&(a="%"+(n=g[a])[0]+"%"),O(v,a)){var o=v[a];if(o===f&&(o=h(a)),void 0===o&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new r('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var a=[];return I(e,S,(function(e,t,n,i){a[a.length]=n?I(i,k,"$1"):t||e})),a}(e),a=n.length>0?n[0]:"",o=A("%"+a+"%",t),s=o.name,p=o.value,l=!1,u=o.alias;u&&(a=u[0],j(n,w([0,1],u)));for(var d=1,m=!0;d=n.length){var h=c(p,f);p=(m=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:p[f]}else m=O(p,f),p=p[f];m&&!l&&(v[s]=p)}}return p}},1875:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),i=t.indexOf("--");return-1!==a&&(-1===i||a{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},679:(e,t,n)=>{"use strict";var a="undefined"!=typeof Symbol&&Symbol,i=n(8186);e.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&i()}},8186:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7492:(e,t,n)=>{"use strict";var a=n(132);e.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},3261:e=>{var t,n,a=Function.prototype,i=Object.prototype,o=a.toString,r=i.hasOwnProperty,s=o.call(Object),c=i.toString,p=(t=Object.getPrototypeOf,n=Object,function(e){return t(n(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=c.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=p(e);if(null===t)return!0;var n=r.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&o.call(n)==s}},1451:e=>{var t=Object.prototype.toString,n=Array.isArray;e.exports=function(e){return"string"==typeof e||!n(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},5955:(e,t,n)=>{e.exports=n(7392)},2839:(e,t,n)=>{"use strict";var a,i,o,r=n(5955),s=n(1017).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,p=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!p.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),a=n&&t.extensions[n[1].toLowerCase()];return!(!a||!a.length)&&a[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),a=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(r).forEach((function(e){var t=r[e],n=t.extensions;if(n&&n.length){a[e]=n;for(var s=0;sl||p===l&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},6524:(e,t,n)=>{var a="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=a&&i&&"function"==typeof i.get?i.get:null,r=a&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,b=String.prototype.match,h=String.prototype.slice,g=String.prototype.replace,x=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,I=Array.prototype.join,P=Array.prototype.slice,T=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-T(-e):T(e);if(a!==e){var i=String(a),o=h.call(t,i.length+1);return g.call(i,n,"$&_")+"."+g.call(g.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}var R=n(5307),M=R.custom,$=B(M)?M:null;function F(e,t,n){var a="double"===(n.quoteStyle||t)?'"':"'";return a+e+a}function q(e){return g.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==K(e)||C&&"object"==typeof e&&C in e)}function L(e){return!("[object RegExp]"!==K(e)||C&&"object"==typeof e&&C in e)}function B(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,a,i){var s=n||{};if(W(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!W(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return y?z(t,x):x}if("bigint"==typeof t){var w=String(t)+"n";return y?z(t,w):w}var T=void 0===s.depth?5:s.depth;if(void 0===a&&(a=0),a>=T&&T>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var k,M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=I.call(Array(e.indent+1)," ")}return{base:n,prev:I.call(Array(t+1),n)}}(s,a);if(void 0===i)i=[];else if(V(i,t)>=0)return"[Circular]";function N(t,n,o){if(n&&(i=P.call(i)).push(n),o){var r={depth:s.depth};return W(s,"quoteStyle")&&(r.quoteStyle=s.quoteStyle),e(t,r,a+1,i)}return e(t,s,a+1,i)}if("function"==typeof t&&!L(t)){var X=function(e){if(e.name)return e.name;var t=b.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Z(t,N);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ee.length>0?" { "+I.call(ee,", ")+" }":"")}if(B(t)){var te=E?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||E?te:G(te)}if((k=t)&&"object"==typeof k&&("undefined"!=typeof HTMLElement&&k instanceof HTMLElement||"string"==typeof k.nodeName&&"function"==typeof k.getAttribute)){for(var ne="<"+O.call(String(t.nodeName)),ae=t.attributes||[],ie=0;ie"}if(U(t)){if(0===t.length)return"[]";var oe=Z(t,N);return M&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+Y(oe,M)+"]":"[ "+I.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||C&&"object"==typeof e&&C in e)}(t)){var re=Z(t,N);return"cause"in Error.prototype||!("cause"in t)||_.call(t,"cause")?0===re.length?"["+String(t)+"]":"{ ["+String(t)+"] "+I.call(re,", ")+" }":"{ ["+String(t)+"] "+I.call(j.call("[cause]: "+N(t.cause),re),", ")+" }"}if("object"==typeof t&&c){if($&&"function"==typeof t[$]&&R)return R(t,{depth:T-a});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return r&&r.call(t,(function(e,n){se.push(N(n,t,!0)+" => "+N(e,t))})),Q("Map",o.call(t),se,M)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return l&&l.call(t,(function(e){ce.push(N(e,t))})),Q("Set",p.call(t),ce,M)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==K(e)||C&&"object"==typeof e&&C in e)}(t))return G(N(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return G(N(S.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||C&&"object"==typeof e&&C in e)}(t))return G(f.call(t));if(function(e){return!("[object String]"!==K(e)||C&&"object"==typeof e&&C in e)}(t))return G(N(String(t)));if(!function(e){return!("[object Date]"!==K(e)||C&&"object"==typeof e&&C in e)}(t)&&!L(t)){var pe=Z(t,N),le=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",de=!le&&C&&Object(t)===t&&C in t?h.call(K(t),8,-1):ue?"Object":"",me=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||ue?"["+I.call(j.call([],de||[],ue||[]),": ")+"] ":"");return 0===pe.length?me+"{}":M?me+"{"+Y(pe,M)+"}":me+"{ "+I.call(pe,", ")+" }"}return String(t)};var N=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return N.call(e,t)}function K(e){return y.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return H(h.call(e,0,t.maxStringLength),t)+a}return F(g.call(g.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function G(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function Q(e,t,n,a){return e+" ("+t+") {"+(a?Y(n,a):I.call(n,", "))+"}"}function Y(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+I.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=U(e),a=[];if(n){a.length=e.length;for(var i=0;i{e.exports=n(3837).inspect},3930:e=>{"use strict";class t extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}e.exports=({limit:e,interval:n,strict:a})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw new TypeError("Expected `interval` to be a finite number");const i=new Map;let o=0,r=0;const s=[],c=a?function(){const t=Date.now();if(s.length=a?(s.push(t),0):(s.push(a),a-t)}:function(){const t=Date.now();return t-o>n?(r=1,o=t,0):(r{const n=function(...t){if(!n.isEnabled)return(async()=>e.apply(this,t))();let a;return new Promise(((n,o)=>{a=setTimeout((()=>{n(e.apply(this,t)),i.delete(a)}),c()),i.set(a,o)}))};return n.abort=()=>{for(const e of i.keys())clearTimeout(e),i.get(e)(new t);i.clear(),s.splice(0,s.length)},n.isEnabled=!0,n}},e.exports.AbortError=t},1104:(e,t,n)=>{"use strict";var a=n(7310).parse,i={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function r(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.j=function(e){var t="string"==typeof e?a(e):e||{},n=t.protocol,s=t.host,c=t.port;if("string"!=typeof s||!s||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(r("npm_config_no_proxy")||r("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every((function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),i=a?a[1]:n,r=a?parseInt(a[2]):0;return!(!r||r===t)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!o.call(e,i)):e!==i)}))}(s=s.replace(/:\d*$/,""),c=parseInt(c)||i[n]||0))return"";var p=r("npm_config_"+n+"_proxy")||r(n+"_proxy")||r("npm_config_proxy")||r("all_proxy");return p&&-1===p.indexOf("://")&&(p=n+"://"+p),p}},5337:(e,t,n)=>{"use strict";var a=n(8750),i=n(2737),o=n(6524),r=a("%TypeError%"),s=a("%WeakMap%",!0),c=a("%Map%",!0),p=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),u=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),m=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),y=function(e,t){for(var n,a=e;null!==(n=a.next);a=n)if(n.key===t)return a.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,a={assert:function(e){if(!a.has(e))throw new r("Side channel does not contain "+o(e))},get:function(a){if(s&&a&&("object"==typeof a||"function"==typeof a)){if(e)return p(e,a)}else if(c){if(t)return d(t,a)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,a)},has:function(a){if(s&&a&&("object"==typeof a||"function"==typeof a)){if(e)return u(e,a)}else if(c){if(t)return f(t,a)}else if(n)return function(e,t){return!!y(e,t)}(n,a);return!1},set:function(a,i){s&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new s),l(e,a,i)):c?(t||(t=new c),m(t,a,i)):(n||(n={key:{},next:null}),function(e,t,n){var a=y(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(n,a,i))}};return a}},6974:(e,t,n)=>{"use strict";const a=n(2037),i=n(1875),o=process.env;let r;function s(e){const t=function(e){if(!1===r)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;const t=r?1:0;if("win32"===process.platform){const e=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?r=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},9491:e=>{"use strict";e.exports=require("assert")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},7392:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";n.r(a),n.d(a,{RestAdapter:()=>Qd,ScheduledActionReferenceFilters:()=>uf,WorkflowStepPermissionAction:()=>zy,WorkflowStepPermissionEffect:()=>Ry,WorkflowStepPermissionType:()=>Dy,asIterator:()=>xv,createClient:()=>jv,editorInterfaceDefaults:()=>nt,isDraft:()=>Pm,isPublished:()=>jm,isUpdated:()=>Im});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Yn,hasStandardBrowserEnv:()=>Zn,hasStandardBrowserWebWorkerEnv:()=>ta});var t={};n.r(t),n.d(t,{create:()=>bo,createWithId:()=>ho,del:()=>xo,get:()=>yo,getMany:()=>vo,update:()=>go});var i={};n.r(i),n.d(i,{create:()=>_o,del:()=>Co,get:()=>ko,getMany:()=>Ao,getManyForEnvironment:()=>Eo,update:()=>Do});var o={};n.r(o),n.d(o,{create:()=>Uo,createWithResponse:()=>Bo,getCallDetails:()=>Lo});var r={};n.r(r),n.d(r,{create:()=>Xo,del:()=>Ho,get:()=>Ko,getMany:()=>Vo});var s={};n.r(s),n.d(s,{create:()=>tr,del:()=>ar,get:()=>Zo,getAppDefinitionUrl:()=>Yo,getInstallationsForOrg:()=>ir,getMany:()=>er,update:()=>nr});var c={};n.r(c),n.d(c,{del:()=>sr,get:()=>or,upsert:()=>rr});var p={};n.r(p),n.d(p,{del:()=>yr,get:()=>dr,getAppInstallationUrl:()=>ur,getForOrganization:()=>vr,getMany:()=>mr,upsert:()=>fr});var l={};n.r(l),n.d(l,{create:()=>br});var u={};n.r(u),n.d(u,{del:()=>xr,get:()=>hr,upsert:()=>gr});var d={};n.r(d),n.d(d,{del:()=>jr,get:()=>Or,upsert:()=>wr});var m={};n.r(m),n.d(m,{create:()=>Tr,del:()=>Sr,get:()=>Ir,getMany:()=>Pr});var f={};n.r(f),n.d(f,{create:()=>kr});var y={};n.r(y),n.d(y,{create:()=>zr,del:()=>Dr,get:()=>_r});var v={};n.r(v),n.d(v,{create:()=>$r,del:()=>Fr,get:()=>qr});var b={};n.r(b),n.d(b,{archive:()=>Yr,create:()=>es,createFromFiles:()=>ns,createWithId:()=>ts,del:()=>Gr,get:()=>Kr,getMany:()=>Hr,getPublished:()=>Vr,processForAllLocales:()=>os,processForLocale:()=>is,publish:()=>Jr,unarchive:()=>Zr,unpublish:()=>Qr,update:()=>Xr});var h={};n.r(h),n.d(h,{ValidationError:()=>rs,create:()=>ss});var g={};n.r(g),n.d(g,{get:()=>cs,publish:()=>ps,unpublish:()=>ls,validate:()=>us});var x={};n.r(x),n.d(x,{create:()=>Os,del:()=>js,get:()=>gs,getAll:()=>Is,getMany:()=>xs,update:()=>ws});var O={};n.r(O),n.d(O,{create:()=>Cs,createWithId:()=>_s,del:()=>zs,get:()=>As,getMany:()=>Es,publish:()=>Rs,unpublish:()=>Ms,update:()=>Ds});var w={};n.r(w),n.d(w,{get:()=>Us,getMany:()=>Ls,update:()=>Bs});var j={};n.r(j),n.d(j,{archive:()=>Zs,create:()=>tc,createWithId:()=>nc,del:()=>Js,get:()=>Ks,getMany:()=>Hs,getPublished:()=>Vs,patch:()=>Xs,publish:()=>Qs,references:()=>ac,unarchive:()=>ec,unpublish:()=>Ys,update:()=>Gs});var I={};n.r(I),n.d(I,{create:()=>lc,createWithId:()=>uc,del:()=>pc,get:()=>rc,getMany:()=>sc,update:()=>cc});var P={};n.r(P),n.d(P,{createWithId:()=>hc,del:()=>xc,get:()=>vc,getMany:()=>bc,update:()=>gc});var T={};n.r(T),n.d(T,{create:()=>Tc,del:()=>Ac,disconnect:()=>Dc,get:()=>Ic,getMany:()=>Pc,install:()=>_c,update:()=>Sc,validate:()=>Cc,versionUpdate:()=>kc,versions:()=>Ec});var S={};n.r(S),n.d(S,{getForEnvironment:()=>Uc,getMany:()=>qc});var k={};n.r(k),n.d(k,{create:()=>Hc,createWithId:()=>Xc,del:()=>Jc,get:()=>Kc,getExtensionUrl:()=>Wc,getMany:()=>Vc,update:()=>Gc});var A={};n.r(A),n.d(A,{del:()=>tp,get:()=>Qc,patch:()=>ep,post:()=>Yc,put:()=>Zc,request:()=>np});var E={};n.r(E),n.d(E,{create:()=>sp,del:()=>pp,get:()=>op,getMany:()=>rp,update:()=>cp});var C={};n.r(C),n.d(C,{get:()=>up,getMany:()=>lp});var _={};n.r(_),n.d(_,{create:()=>vp,get:()=>bp});var D={};n.r(D),n.d(D,{del:()=>Pp,get:()=>wp,getMany:()=>jp,update:()=>Ip});var z={};n.r(z),n.d(z,{create:()=>kp,get:()=>Tp,getMany:()=>Sp,revoke:()=>Ap});var R={};n.r(R),n.d(R,{createPersonalAccessToken:()=>_p,get:()=>Ep,getMany:()=>Cp,getManyForOrganization:()=>zp,revoke:()=>Dp});var M={};n.r(M),n.d(M,{get:()=>Rp,getMany:()=>Mp});var $={};n.r($),n.d($,{archive:()=>Hp,create:()=>Lp,del:()=>Np,get:()=>qp,publish:()=>Wp,query:()=>Up,unarchive:()=>Xp,unpublish:()=>Kp,update:()=>Bp,validate:()=>Vp});var F={};n.r(F),n.d(F,{get:()=>Qp,getMany:()=>Yp,queryForRelease:()=>Zp});var q={};n.r(q),n.d(q,{create:()=>ol,createWithId:()=>rl,del:()=>cl,get:()=>nl,getMany:()=>al,getManyForOrganization:()=>il,update:()=>sl});var U={};n.r(U),n.d(U,{create:()=>ul,del:()=>dl,get:()=>pl,getMany:()=>ll,update:()=>ml});var L={};n.r(L),n.d(L,{getForContentType:()=>gl,getForEntry:()=>vl,getManyForContentType:()=>hl,getManyForEntry:()=>yl});var B={};n.r(B),n.d(B,{create:()=>Pl,del:()=>Sl,get:()=>wl,getMany:()=>jl,getManyForOrganization:()=>Il,update:()=>Tl});var N={};n.r(N),n.d(N,{get:()=>kl,getMany:()=>Al});var W={};n.r(W),n.d(W,{create:()=>ql,createWithId:()=>Ul,del:()=>Bl,get:()=>Rl,getForOrganization:()=>$l,getMany:()=>Ml,getManyForOrganization:()=>Fl,update:()=>Ll});var K={};n.r(K),n.d(K,{createWithId:()=>Jl,del:()=>Yl,get:()=>Xl,getMany:()=>Gl,update:()=>Ql});var V={};n.r(V),n.d(V,{create:()=>su,del:()=>pu,get:()=>iu,getAll:()=>ru,getMany:()=>ou,update:()=>cu});var H={};n.r(H),n.d(H,{create:()=>bu,del:()=>gu,get:()=>fu,getMany:()=>yu,getManyForSpace:()=>vu,update:()=>hu});var X={};n.r(X),n.d(X,{create:()=>Su,del:()=>Au,get:()=>Iu,getManyForOrganization:()=>Pu,getManyForTeam:()=>Tu,update:()=>ku});var G={};n.r(G),n.d(G,{create:()=>Fu,del:()=>Uu,get:()=>zu,getForOrganization:()=>Mu,getMany:()=>Ru,getManyForOrganization:()=>$u,update:()=>qu});var J={};n.r(J),n.d(J,{get:()=>Bu,update:()=>Nu});var Q={};n.r(Q),n.d(Q,{getManyForOrganization:()=>Ku,getManyForSpace:()=>Wu});var Y={};n.r(Y),n.d(Y,{getCurrent:()=>Hu,getForOrganization:()=>Gu,getForSpace:()=>Vu,getManyForOrganization:()=>Ju,getManyForSpace:()=>Xu});var Z={};n.r(Z),n.d(Z,{get:()=>Yu,update:()=>Zu});var ee={};n.r(ee),n.d(ee,{create:()=>yd,createWithId:()=>vd,del:()=>xd,deleteRetryPolicy:()=>wd,deleteSigningSecret:()=>Od,get:()=>cd,getCallDetails:()=>ld,getHealthStatus:()=>ud,getMany:()=>dd,getManyCallDetails:()=>pd,getRetryPolicy:()=>fd,getSigningSecret:()=>md,update:()=>bd,upsertRetryPolicy:()=>gd,upsertSigningSecret:()=>hd});var te={};n.r(te),n.d(te,{complete:()=>zd,create:()=>Cd,del:()=>Dd,getMany:()=>Ed,update:()=>_d});var ne={};n.r(ne),n.d(ne,{create:()=>Bd,del:()=>Wd,get:()=>Ud,getMany:()=>Ld,update:()=>Nd});var ae={};n.r(ae),n.d(ae,{getMany:()=>Kd});var ie={};n.r(ie),n.d(ie,{wrapApiKey:()=>Zd,wrapApiKeyCollection:()=>em});var oe={};n.r(oe),n.d(oe,{wrapAppAction:()=>tm,wrapAppActionCollection:()=>nm});var re={};n.r(re),n.d(re,{default:()=>om,wrapAppActionCall:()=>rm,wrapAppActionCallResponse:()=>sm});var se={};n.r(se),n.d(se,{wrapAppBundle:()=>cm,wrapAppBundleCollection:()=>pm});var ce={};n.r(ce),n.d(ce,{wrapAppDefinition:()=>lm,wrapAppDefinitionCollection:()=>um});var pe={};n.r(pe),n.d(pe,{wrapAppDetails:()=>dm});var le={};n.r(le),n.d(le,{wrapAppInstallation:()=>mm,wrapAppInstallationCollection:()=>fm});var ue={};n.r(ue),n.d(ue,{wrapAppSignedRequest:()=>ym});var de={};n.r(de),n.d(de,{wrapAppSigningSecret:()=>vm});var me={};n.r(me),n.d(me,{wrapAppEventSubscription:()=>bm});var fe={};n.r(fe),n.d(fe,{wrapAppKey:()=>hm,wrapAppKeyCollection:()=>gm});var ye={};n.r(ye),n.d(ye,{wrapAppAccessToken:()=>xm});var ve={};n.r(ve),n.d(ve,{wrapAppUpload:()=>Om,wrapAppUploadCollection:()=>wm});var be={};n.r(be),n.d(be,{wrapAsset:()=>Am,wrapAssetCollection:()=>Em});var he={};n.r(he),n.d(he,{wrapAssetKey:()=>Cm});var ge={};n.r(ge),n.d(ge,{BulkActionStatus:()=>qm,wrapBulkAction:()=>Um});var xe={};n.r(xe),n.d(xe,{CommentNode:()=>Nm,default:()=>Wm,wrapComment:()=>Km,wrapCommentCollection:()=>Vm});var Oe={};n.r(Oe),n.d(Oe,{wrapEditorInterface:()=>Hm,wrapEditorInterfaceCollection:()=>Xm});var we={};n.r(we),n.d(we,{wrapSnapshot:()=>Gm,wrapSnapshotCollection:()=>Jm});var je={};n.r(je),n.d(je,{wrapContentType:()=>nf,wrapContentTypeCollection:()=>af});var Ie={};n.r(Ie),n.d(Ie,{wrapEntry:()=>sf,wrapEntryCollection:()=>cf});var Pe={};n.r(Pe),n.d(Pe,{wrapReleaseAction:()=>pf,wrapReleaseActionCollection:()=>lf});var Te={};n.r(Te),n.d(Te,{ReleaseReferenceFilters:()=>df,wrapRelease:()=>mf,wrapReleaseCollection:()=>ff});var Se={};n.r(Se),n.d(Se,{default:()=>bf,wrapTag:()=>hf,wrapTagCollection:()=>gf});var ke={};n.r(ke),n.d(ke,{wrapUIConfig:()=>xf});var Ae={};n.r(Ae),n.d(Ae,{wrapUserUIConfig:()=>Of});var Ee={};n.r(Ee),n.d(Ee,{wrapEnvironmentTemplateInstallation:()=>wf,wrapEnvironmentTemplateInstallationCollection:()=>jf});var Ce={};n.r(Ce),n.d(Ce,{wrapEnvironment:()=>Sf,wrapEnvironmentCollection:()=>kf});var _e={};n.r(_e),n.d(_e,{wrapEnvironmentAlias:()=>Af,wrapEnvironmentAliasCollection:()=>Ef});var De={};n.r(De),n.d(De,{wrapEnvironmentTemplate:()=>zf,wrapEnvironmentTemplateCollection:()=>Rf});var ze={};n.r(ze),n.d(ze,{wrapExtension:()=>Mf,wrapExtensionCollection:()=>$f});var Re={};n.r(Re),n.d(Re,{wrapLocale:()=>Ff,wrapLocaleCollection:()=>qf});var Me={};n.r(Me),n.d(Me,{wrapOrganization:()=>Bf,wrapOrganizationCollection:()=>Nf});var $e={};n.r($e),n.d($e,{wrapOrganizationInvitation:()=>Wf});var Fe={};n.r(Fe),n.d(Fe,{wrapOrganizationMembership:()=>Kf,wrapOrganizationMembershipCollection:()=>Vf});var qe={};n.r(qe),n.d(qe,{wrapPersonalAccessToken:()=>Hf,wrapPersonalAccessTokenCollection:()=>Xf});var Ue={};n.r(Ue),n.d(Ue,{wrapAccessToken:()=>Gf,wrapAccessTokenCollection:()=>Jf});var Le={};n.r(Le),n.d(Le,{wrapPreviewApiKey:()=>Qf,wrapPreviewApiKeyCollection:()=>Yf});var Be={};n.r(Be),n.d(Be,{wrapRole:()=>Zf,wrapRoleCollection:()=>ey});var Ne={};n.r(Ne),n.d(Ne,{default:()=>ny,wrapScheduledAction:()=>ay,wrapScheduledActionCollection:()=>iy});var We={};n.r(We),n.d(We,{wrapSpace:()=>oy,wrapSpaceCollection:()=>ry});var Ke={};n.r(Ke),n.d(Ke,{wrapSpaceMember:()=>sy,wrapSpaceMemberCollection:()=>cy});var Ve={};n.r(Ve),n.d(Ve,{wrapSpaceMembership:()=>py,wrapSpaceMembershipCollection:()=>ly});var He={};n.r(He),n.d(He,{default:()=>my,wrapTask:()=>fy,wrapTaskCollection:()=>yy});var Xe={};n.r(Xe),n.d(Xe,{wrapTeam:()=>vy,wrapTeamCollection:()=>by});var Ge={};n.r(Ge),n.d(Ge,{wrapTeamMembership:()=>hy,wrapTeamMembershipCollection:()=>gy});var Je={};n.r(Je),n.d(Je,{wrapTeamSpaceMembership:()=>xy,wrapTeamSpaceMembershipCollection:()=>Oy});var Qe={};n.r(Qe),n.d(Qe,{wrapUpload:()=>wy});var Ye={};n.r(Ye),n.d(Ye,{wrapUsage:()=>jy,wrapUsageCollection:()=>Iy});var Ze={};n.r(Ze),n.d(Ze,{wrapUser:()=>Py,wrapUserCollection:()=>Ty});var et={};n.r(et),n.d(et,{wrapWebhook:()=>Ay,wrapWebhookCollection:()=>Ey});var tt={};n.r(tt),n.d(tt,{WorkflowStepActionType:()=>My,WorkflowStepPermissionAction:()=>zy,WorkflowStepPermissionEffect:()=>Ry,WorkflowStepPermissionType:()=>Dy,default:()=>$y,wrapWorkflowDefinition:()=>Fy,wrapWorkflowDefinitionCollection:()=>qy});var nt={};n.r(nt),n.d(nt,{default:()=>bv});var at=Function.prototype.toString,it=Object.create,ot=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,st=Object.getOwnPropertyNames,ct=Object.getOwnPropertySymbols,pt=Object.getPrototypeOf,lt=Object.prototype,ut=lt.hasOwnProperty,dt=lt.propertyIsEnumerable,mt="function"==typeof ct,ft="function"==typeof WeakMap,yt=function(){if(ft)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),vt=function(e,t){var n=e.__proto__||pt(e);if(!n)return it(null);var a=n.constructor;if(a===t.Object)return n===t.Object.prototype?{}:it(n);if(~at.call(a).indexOf("[native code]"))try{return new a}catch(e){}return it(n)},bt=function(e,t,n,a){var i=vt(e,t);for(var o in a.set(e,i),e)ut.call(e,o)&&(i[o]=n(e[o],a));if(mt)for(var r=ct(e),s=0,c=r.length,p=void 0;s]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var r=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,r)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Rt.apply(this,arguments)}function Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}function $t(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:7,n=t;if(Ut.test(e)){var a,i=null===(a=e.match(Ut))||void 0===a?void 0:a.groups;if(i&&i.value){var o=parseInt(i.value)/100;n=Math.round(t*o)}}return Math.min(30,Math.max(1,n))}function Bt(e,t){return t("info","Throttle request to ".concat(e,"/s")),At()({limit:e,interval:1e3,strict:!1})}var Nt=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Wt(e,t){var n=Dt(Dt({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var n=[t.name,t.message].filter((function(e){return e})).join(" - ");return console.error("[error] ".concat(n)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),t);if(!n.accessToken){var a=new TypeError("Expected parameter accessToken");throw n.logHandler("error",a),a}var i,o,r=n.insecure?"http":"https",s=n.space?"".concat(n.space,"/"):"",c=n.defaultHostname,p=n.insecure?80:443;if(n.host&&Nt.test(n.host)){var l=n.host.split(":");if(2===l.length){var u=(o=2,function(e){if(Array.isArray(e))return e}(i=l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o,r,s=[],c=!0,p=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){p=!0,i=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(p)throw i}}return s}}(i,o)||$t(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());c=u[0],p=u[1]}else c=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(r,"://").concat(c,":").concat(p).concat(n.basePath,"/spaces/").concat(s);n.headers.Authorization||"function"==typeof n.accessToken||(n.headers.Authorization="Bearer "+n.accessToken);var m={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,paramsSerializer:{serialize:function(e){return Pt().stringify(e)}},logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},f=e.create(m);return f.httpClientParams=t,f.cloneWithNewParams=function(n){return Wt(e,Dt(Dt({},jt(t)),n))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),"function"==typeof n.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((function(t){return e.headers.set("Authorization","Bearer ".concat(t)),e}))}))}(f,n.accessToken),n.throttle&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=e.defaults.logHandler,a=void 0===n?qt:n,i=St()(t)?Lt(t):Lt("auto",t),o=Bt(i,a),r=!1,s=e.interceptors.request.use((function(e){return o((function(){return e}))()}),(function(e){return Promise.reject(e)}));e.interceptors.response.use((function(n){if(!r&&St()(t)&&("auto"===t||Ut.test(t))&&n.headers&&n.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(n.headers["x-contentful-ratelimit-second-limit"]),p=Lt(t,c);p!==i&&(s&&e.interceptors.request.eject(s),i=p,o=Bt(p,a),s=e.interceptors.request.use((function(e){return o((function(){return e}))()}),(function(e){return Promise.reject(e)}))),r=!0}return n}),(function(e){return Promise.reject(e)}))}(f,n.throttle),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,a=n.responseLogger,i=void 0===a?qt:a,o=n.requestLogger,r=void 0===o?qt:o;e.interceptors.request.use((function(e){return r(e),e}),(function(e){return r(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return i(e),e}),(function(n){var a=n.response,o=n.config;if(i(n),!o||!e.defaults.retryOnError)return Promise.reject(n);var r=o.attempts||1;if(r>t)return n.attempts=o.attempts,Promise.reject(n);var s,c,p=null,l=(s=r,Math.pow(Math.SQRT2,s));return a?a.status>=500&&a.status<600?p="Server ".concat(a.status):429===a.status&&(p="Rate limit",a.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(l=a.headers["x-contentful-ratelimit-reset"])):p="Connection",p?(l=Math.floor(1e3*l+200*Math.random()+500),e.defaults.logHandler("warning","".concat(p," error occurred. Waiting for ").concat(l," ms before retrying...")),o.attempts=r+1,delete o.httpAgent,delete o.httpsAgent,(c=l,new Promise((function(e){setTimeout(e,c)}))).then((function(){return e(o)}))):Promise.reject(n)}))}(f,n.retryLimit),n.onError&&f.interceptors.response.use((function(e){return e}),n.onError),f}function Kt(e){var t=e.query,n={};return delete t.resolveLinks,n.params=jt(t),n}function Vt(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$t(e))){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}(Object.getOwnPropertyNames(e));try{for(n.s();!(t=n.n()).done;){var a=e[t.value];a&&"object"===zt(a)&&Vt(a)}}catch(e){n.e(e)}finally{n.f()}return Object.freeze(e)}function Ht(e){return Vt(e.sys||{}),e}function Xt(){var e=window;if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(n)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(n)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(n)?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function Gt(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return jt(this)}})}function Jt(e){var t,n=e.config,a=e.response;if(n&&n.headers&&n.headers.Authorization){var i="...".concat(n.headers.Authorization.toString().substr(-5));n.headers.Authorization="Bearer ".concat(i)}if(!Ct()(a)||!Ct()(n))throw e;var o,r=null==a?void 0:a.data,s={status:null==a?void 0:a.status,statusText:null==a?void 0:a.statusText,message:"",details:{}};n&&Ct()(n)&&(s.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),r&&"object"===zt(r)&&("requestId"in r&&(s.requestId=r.requestId||"UNKNOWN"),"message"in r&&(s.message=r.message||""),"details"in r&&(s.details=r.details||{}),t=null===(o=r.sys)||void 0===o?void 0:o.id);var c=new Error;c.name=t&&"Unknown"!==t?t:"".concat(null==a?void 0:a.status," ").concat(null==a?void 0:a.statusText);try{c.message=JSON.stringify(s,null," ")}catch(e){var p;c.message=null!==(p=null==s?void 0:s.message)&&void 0!==p?p:""}throw c}function Qt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yt}=Object.prototype,{getPrototypeOf:Zt}=Object,en=(tn=Object.create(null),e=>{const t=Yt.call(e);return tn[t]||(tn[t]=t.slice(8,-1).toLowerCase())});var tn;const nn=e=>(e=e.toLowerCase(),t=>en(t)===e),an=e=>t=>typeof t===e,{isArray:on}=Array,rn=an("undefined"),sn=nn("ArrayBuffer"),cn=an("string"),pn=an("function"),ln=an("number"),un=e=>null!==e&&"object"==typeof e,dn=e=>{if("object"!==en(e))return!1;const t=Zt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},mn=nn("Date"),fn=nn("File"),yn=nn("Blob"),vn=nn("FileList"),bn=nn("URLSearchParams");function hn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let a,i;if("object"!=typeof e&&(e=[e]),on(e))for(a=0,i=e.length;a0;)if(a=n[i],t===a.toLowerCase())return a;return null}const xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,On=e=>!rn(e)&&e!==xn,wn=(jn="undefined"!=typeof Uint8Array&&Zt(Uint8Array),e=>jn&&e instanceof jn);var jn;const In=nn("HTMLFormElement"),Pn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tn=nn("RegExp"),Sn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};hn(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(a[i]=o||n)})),Object.defineProperties(e,a)},kn="abcdefghijklmnopqrstuvwxyz",An="0123456789",En={DIGIT:An,ALPHA:kn,ALPHA_DIGIT:kn+kn.toUpperCase()+An},Cn=nn("AsyncFunction"),_n={isArray:on,isArrayBuffer:sn,isBuffer:function(e){return null!==e&&!rn(e)&&null!==e.constructor&&!rn(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||pn(e.append)&&("formdata"===(t=en(e))||"object"===t&&pn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sn(e.buffer),t},isString:cn,isNumber:ln,isBoolean:e=>!0===e||!1===e,isObject:un,isPlainObject:dn,isUndefined:rn,isDate:mn,isFile:fn,isBlob:yn,isRegExp:Tn,isFunction:pn,isStream:e=>un(e)&&pn(e.pipe),isURLSearchParams:bn,isTypedArray:wn,isFileList:vn,forEach:hn,merge:function e(){const{caseless:t}=On(this)&&this||{},n={},a=(a,i)=>{const o=t&&gn(n,i)||i;dn(n[o])&&dn(a)?n[o]=e(n[o],a):dn(a)?n[o]=e({},a):on(a)?n[o]=a.slice():n[o]=a};for(let e=0,t=arguments.length;e(hn(t,((t,a)=>{n&&pn(t)?e[a]=Qt(t,n):e[a]=t}),{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let i,o,r;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)r=i[o],a&&!a(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0);e=!1!==n&&Zt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:en,kindOfTest:nn,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(on(e))return e;let t=e.length;if(!ln(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:In,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:Sn,freezeMethods:e=>{Sn(e,((t,n)=>{if(pn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];pn(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach((e=>{n[e]=!0}))};return on(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:gn,global:xn,isContextDefined:On,ALPHABET:En,generateString:(e=16,t=En.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n},isSpecCompliantForm:function(e){return!!(e&&pn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(un(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const i=on(e)?[]:{};return hn(e,((e,t)=>{const o=n(e,a+1);!rn(o)&&(i[t]=o)})),t[a]=void 0,i}}return e};return n(e,0)},isAsyncFn:Cn,isThenable:e=>e&&(un(e)||pn(e))&&pn(e.then)&&pn(e.catch)};function Dn(e,t,n,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),i&&(this.response=i)}_n.inherits(Dn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_n.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zn=Dn.prototype,Rn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Rn[e]={value:e}})),Object.defineProperties(Dn,Rn),Object.defineProperty(zn,"isAxiosError",{value:!0}),Dn.from=(e,t,n,a,i,o)=>{const r=Object.create(zn);return _n.toFlatObject(e,r,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Dn.call(r,e.message,t,n,a,i),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};const Mn=Dn,$n=n(4347);function Fn(e){return _n.isPlainObject(e)||_n.isArray(e)}function qn(e){return _n.endsWith(e,"[]")?e.slice(0,-2):e}function Un(e,t,n){return e?e.concat(t).map((function(e,t){return e=qn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Ln=_n.toFlatObject(_n,{},null,(function(e){return/^is[A-Z]/.test(e)})),Bn=function(e,t,n){if(!_n.isObject(e))throw new TypeError("target must be an object");t=t||new($n||FormData);const a=(n=_n.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_n.isUndefined(t[e])}))).metaTokens,i=n.visitor||p,o=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&_n.isSpecCompliantForm(t);if(!_n.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_n.isDate(e))return e.toISOString();if(!s&&_n.isBlob(e))throw new Mn("Blob is not supported. Use a Buffer instead.");return _n.isArrayBuffer(e)||_n.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(_n.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(_n.isArray(e)&&function(e){return _n.isArray(e)&&!e.some(Fn)}(e)||(_n.isFileList(e)||_n.endsWith(n,"[]"))&&(s=_n.toArray(e)))return n=qn(n),s.forEach((function(e,a){!_n.isUndefined(e)&&null!==e&&t.append(!0===r?Un([n],a,o):null===r?n:n+"[]",c(e))})),!1;return!!Fn(e)||(t.append(Un(i,n,o),c(e)),!1)}const l=[],u=Object.assign(Ln,{defaultVisitor:p,convertValue:c,isVisitable:Fn});if(!_n.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!_n.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),_n.forEach(n,(function(n,o){!0===(!(_n.isUndefined(n)||null===n)&&i.call(t,n,_n.isString(o)?o.trim():o,a,u))&&e(n,a?a.concat(o):[o])})),l.pop()}}(e),t};function Nn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Wn(e,t){this._pairs=[],e&&Bn(e,this,t)}const Kn=Wn.prototype;Kn.append=function(e,t){this._pairs.push([e,t])},Kn.toString=function(e){const t=e?function(t){return e.call(this,t,Nn)}:Nn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Vn=Wn;function Hn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xn(e,t,n){if(!t)return e;const a=n&&n.encode||Hn,i=n&&n.serialize;let o;if(o=i?i(t,n):_n.isURLSearchParams(t)?t.toString():new Vn(t,n).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const Gn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_n.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qn={isNode:!0,classes:{URLSearchParams:n(7310).URLSearchParams,FormData:$n,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},Yn="undefined"!=typeof window&&"undefined"!=typeof document,Zn=(ea="undefined"!=typeof navigator&&navigator.product,Yn&&["ReactNative","NativeScript","NS"].indexOf(ea)<0);var ea;const ta="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,na={...e,...Qn},aa=function(e){function t(e,n,a,i){let o=e[i++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=i>=e.length;return o=!o&&_n.isArray(a)?a.length:o,s?(_n.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!r):(a[o]&&_n.isObject(a[o])||(a[o]=[]),t(e,n,a[o],i)&&_n.isArray(a[o])&&(a[o]=function(e){const t={},n=Object.keys(e);let a;const i=n.length;let o;for(a=0;a{t(function(e){return _n.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,n,0)})),n}return null},ia={transitional:Jn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=_n.isObject(e);if(i&&_n.isHTMLForm(e)&&(e=new FormData(e)),_n.isFormData(e))return a?JSON.stringify(aa(e)):e;if(_n.isArrayBuffer(e)||_n.isBuffer(e)||_n.isStream(e)||_n.isFile(e)||_n.isBlob(e))return e;if(_n.isArrayBufferView(e))return e.buffer;if(_n.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Bn(e,new na.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return na.isNode&&_n.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=_n.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Bn(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),function(e,t,n){if(_n.isString(e))try{return(0,JSON.parse)(e),_n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ia.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(e&&_n.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Mn.from(e,Mn.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_n.forEach(["delete","get","head","post","put","patch"],(e=>{ia.headers[e]={}}));const oa=ia,ra=_n.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sa=Symbol("internals");function ca(e){return e&&String(e).trim().toLowerCase()}function pa(e){return!1===e||null==e?e:_n.isArray(e)?e.map(pa):String(e)}function la(e,t,n,a,i){return _n.isFunction(a)?a.call(this,t,n):(i&&(t=n),_n.isString(t)?_n.isString(a)?-1!==t.indexOf(a):_n.isRegExp(a)?a.test(t):void 0:void 0)}class ua{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function i(e,t,n){const i=ca(t);if(!i)throw new Error("header name must be a non-empty string");const o=_n.findKey(a,i);(!o||void 0===a[o]||!0===n||void 0===n&&!1!==a[o])&&(a[o||t]=pa(e))}const o=(e,t)=>_n.forEach(e,((e,n)=>i(e,n,t)));return _n.isPlainObject(e)||e instanceof this.constructor?o(e,t):_n.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,a,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!n||t[n]&&ra[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=ca(e)){const n=_n.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(_n.isFunction(t))return t.call(this,e,n);if(_n.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ca(e)){const n=_n.findKey(this,e);return!(!n||void 0===this[n]||t&&!la(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function i(e){if(e=ca(e)){const i=_n.findKey(n,e);!i||t&&!la(0,n[i],i,t)||(delete n[i],a=!0)}}return _n.isArray(e)?e.forEach(i):i(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const i=t[n];e&&!la(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const t=this,n={};return _n.forEach(this,((a,i)=>{const o=_n.findKey(n,i);if(o)return t[o]=pa(a),void delete t[i];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();r!==i&&delete t[i],t[r]=pa(a),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _n.forEach(this,((n,a)=>{null!=n&&!1!==n&&(t[a]=e&&_n.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[sa]=this[sa]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=ca(e);t[a]||(function(e,t){const n=_n.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+n,{value:function(e,n,i){return this[a].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[a]=!0)}return _n.isArray(e)?e.forEach(a):a(e),this}}ua.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_n.reduceDescriptors(ua.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),_n.freezeMethods(ua);const da=ua;function ma(e,t){const n=this||oa,a=t||n,i=da.from(a.headers);let o=a.data;return _n.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function fa(e){return!(!e||!e.__CANCEL__)}function ya(e,t,n){Mn.call(this,null==e?"canceled":e,Mn.ERR_CANCELED,t,n),this.name="CanceledError"}_n.inherits(ya,Mn,{__CANCEL__:!0});const va=ya;function ba(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new Mn("Request failed with status code "+n.status,[Mn.ERR_BAD_REQUEST,Mn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ha(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ga=n(1104),xa=n(3685),Oa=n(5687),wa=n(3837),ja=n(4095);const Ia=require("zlib"),Pa="1.6.8";function Ta(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Sa=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;var ka=n(2781);const Aa=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let i,o=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),p=a[r];i||(i=c),n[o]=s,a[o]=c;let l=r,u=0;for(;l!==o;)u+=n[l++],l%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-i!_n.isUndefined(t[e])))).chunkSize});const t=this,n=this[Ea]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},a=Aa(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let i=0;n.updateProgress=function(e,t){let n=0;const a=1e3/t;let i=null;return function(t,o){const r=Date.now();if(t||r-n>a)return i&&(clearTimeout(i),i=null),n=r,e.apply(null,o);i||(i=setTimeout((()=>(i=null,n=Date.now(),e.apply(null,o))),a-(r-n)))}}((function(){const e=n.length,o=n.bytesSeen,r=o-i;if(!r||t.destroyed)return;const s=a(r);i=o,process.nextTick((()=>{t.emit("progress",{loaded:o,total:e,progress:e?o/e:void 0,bytes:r,rate:s||void 0,estimated:s&&e&&o<=e?(e-o)/s:void 0})}))}),n.ticksRate);const o=()=>{n.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(e){const t=this[Ea];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this,i=this[Ea],o=i.maxRate,r=this.readableHighWaterMark,s=i.timeWindow,c=o/(1e3/s),p=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*c):0,l=(e,t)=>{const n=Buffer.byteLength(e);let l,u=null,d=r,m=0;if(o){const e=Date.now();(!i.ts||(m=e-i.ts)>=s)&&(i.ts=e,l=c-i.bytes,i.bytes=l<0?-l:0,m=0),l=c-i.bytes}if(o){if(l<=0)return setTimeout((()=>{t(null,e)}),s-m);ld&&n-d>p&&(u=e.subarray(d),e=e.subarray(0,d)),function(e,t){const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&i.updateProgress(),a.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}}(e,u?()=>{process.nextTick(t,null,u)}:t)};l(e,(function e(t,a){if(t)return n(t);a?l(a,e):n(null)}))}setLength(e){return this[Ea].length=+e,this}}const _a=Ca,Da=require("events"),{asyncIterator:za}=Symbol,Ra=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[za]?yield*e[za]():yield e},Ma=_n.ALPHABET.ALPHA_DIGIT+"-_",$a=new wa.TextEncoder,Fa="\r\n",qa=$a.encode(Fa);class Ua{constructor(e,t){const{escapeName:n}=this.constructor,a=_n.isString(t);let i=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Fa}`;a?t=$a.encode(String(t).replace(/\r?\n|\r\n?/g,Fa)):i+=`Content-Type: ${t.type||"application/octet-stream"}${Fa}`,this.headers=$a.encode(i+Fa),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;_n.isTypedArray(e)?yield e:yield*Ra(e),yield qa}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class La extends ka.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const Ba=La,Na=(e,t)=>_n.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then((e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}}),a)}:e,Wa={flush:Ia.constants.Z_SYNC_FLUSH,finishFlush:Ia.constants.Z_SYNC_FLUSH},Ka={flush:Ia.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ia.constants.BROTLI_OPERATION_FLUSH},Va=_n.isFunction(Ia.createBrotliDecompress),{http:Ha,https:Xa}=ja,Ga=/https:?/,Ja=na.protocols.map((e=>e+":"));function Qa(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Ya(e,t,n){let a=t;if(!a&&!1!==a){const e=(0,ga.j)(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Ya(e,t,e.href)}}const Za="undefined"!=typeof process&&"process"===_n.kindOf(process),ei=(e,t)=>(({address:e,family:t})=>{if(!_n.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(_n.isObject(e)?e:{address:e,family:t}),ti=Za&&function(e){return t=async function(t,n,a){let{data:i,lookup:o,family:r}=e;const{responseType:s,responseEncoding:c}=e,p=e.method.toUpperCase();let l,u,d=!1;if(o){const e=Na(o,(e=>_n.isArray(e)?e:[e]));o=(t,n,a)=>{e(t,n,((e,t,i)=>{if(e)return a(e);const o=_n.isArray(t)?t.map((e=>ei(e))):[ei(t,i)];n.all?a(e,o):a(e,o[0].address,o[0].family)}))}}const m=new Da.EventEmitter,f=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),m.removeAllListeners()};function y(t){m.emit("abort",!t||t.type?new va(null,e,u):t)}a(((e,t)=>{l=!0,t&&(d=!0,f())})),m.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));const v=ha(e.baseURL,e.url),b=new URL(v,"http://localhost"),h=b.protocol||Ja[0];if("data:"===h){let a;if("GET"!==p)return ba(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||na.classes.Blob,i=Ta(e);if(void 0===t&&a&&(t=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const n=Sa.exec(e);if(!n)throw new Mn("Invalid URL",Mn.ERR_INVALID_URL);const o=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!a)throw new Mn("Blob is not supported",Mn.ERR_NOT_SUPPORT);return new a([c],{type:o})}return c}throw new Mn("Unsupported protocol "+i,Mn.ERR_NOT_SUPPORT)}(e.url,"blob"===s,{Blob:e.env&&e.env.Blob})}catch(t){throw Mn.from(t,Mn.ERR_BAD_REQUEST,e)}return"text"===s?(a=a.toString(c),c&&"utf8"!==c||(a=_n.stripBOM(a))):"stream"===s&&(a=ka.Readable.from(a)),ba(t,n,{data:a,status:200,statusText:"OK",headers:new da,config:e})}if(-1===Ja.indexOf(h))return n(new Mn("Unsupported protocol "+h,Mn.ERR_BAD_REQUEST,e));const g=da.from(e.headers).normalize();g.set("User-Agent","axios/"+Pa,!1);const x=e.onDownloadProgress,O=e.onUploadProgress,w=e.maxRate;let j,I;if(_n.isSpecCompliantForm(i)){const e=g.getContentType(/boundary=([-_\w\d]{10,70})/i);i=((e,t,n)=>{const{tag:a="form-data-boundary",size:i=25,boundary:o=a+"-"+_n.generateString(i,Ma)}=n||{};if(!_n.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const r=$a.encode("--"+o+Fa),s=$a.encode("--"+o+"--"+Fa+Fa);let c=s.byteLength;const p=Array.from(e.entries()).map((([e,t])=>{const n=new Ua(e,t);return c+=n.size,n}));c+=r.byteLength*p.length,c=_n.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),ka.Readable.from(async function*(){for(const e of p)yield r,yield*e.encode();yield s}())})(i,(e=>{g.set(e)}),{tag:`axios-${Pa}-boundary`,boundary:e&&e[1]||void 0})}else if(_n.isFormData(i)&&_n.isFunction(i.getHeaders)){if(g.set(i.getHeaders()),!g.hasContentLength())try{const e=await wa.promisify(i.getLength).call(i);Number.isFinite(e)&&e>=0&&g.setContentLength(e)}catch(e){}}else if(_n.isBlob(i))i.size&&g.setContentType(i.type||"application/octet-stream"),g.setContentLength(i.size||0),i=ka.Readable.from(Ra(i));else if(i&&!_n.isStream(i)){if(Buffer.isBuffer(i));else if(_n.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else{if(!_n.isString(i))return n(new Mn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Mn.ERR_BAD_REQUEST,e));i=Buffer.from(i,"utf-8")}if(g.setContentLength(i.length,!1),e.maxBodyLength>-1&&i.length>e.maxBodyLength)return n(new Mn("Request body larger than maxBodyLength limit",Mn.ERR_BAD_REQUEST,e))}const P=_n.toFiniteNumber(g.getContentLength());let T,S;_n.isArray(w)?(j=w[0],I=w[1]):j=I=w,i&&(O||j)&&(_n.isStream(i)||(i=ka.Readable.from(i,{objectMode:!1})),i=ka.pipeline([i,new _a({length:P,maxRate:_n.toFiniteNumber(j)})],_n.noop),O&&i.on("progress",(e=>{O(Object.assign(e,{upload:!0}))}))),e.auth&&(T=(e.auth.username||"")+":"+(e.auth.password||"")),!T&&b.username&&(T=b.username+":"+b.password),T&&g.delete("authorization");try{S=Xn(b.pathname+b.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}g.set("Accept-Encoding","gzip, compress, deflate"+(Va?", br":""),!1);const k={path:S,method:p,headers:g.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:T,protocol:h,family:r,beforeRedirect:Qa,beforeRedirects:{}};let A;!_n.isUndefined(o)&&(k.lookup=o),e.socketPath?k.socketPath=e.socketPath:(k.hostname=b.hostname,k.port=b.port,Ya(k,e.proxy,h+"//"+b.hostname+(b.port?":"+b.port:"")+k.path));const E=Ga.test(k.protocol);if(k.agent=E?e.httpsAgent:e.httpAgent,e.transport?A=e.transport:0===e.maxRedirects?A=E?Oa:xa:(e.maxRedirects&&(k.maxRedirects=e.maxRedirects),e.beforeRedirect&&(k.beforeRedirects.config=e.beforeRedirect),A=E?Xa:Ha),e.maxBodyLength>-1?k.maxBodyLength=e.maxBodyLength:k.maxBodyLength=1/0,e.insecureHTTPParser&&(k.insecureHTTPParser=e.insecureHTTPParser),u=A.request(k,(function(a){if(u.destroyed)return;const i=[a],o=+a.headers["content-length"];if(x){const e=new _a({length:_n.toFiniteNumber(o),maxRate:_n.toFiniteNumber(I)});x&&e.on("progress",(e=>{x(Object.assign(e,{download:!0}))})),i.push(e)}let r=a;const l=a.req||u;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==p&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(Ia.createUnzip(Wa)),delete a.headers["content-encoding"];break;case"deflate":i.push(new Ba),i.push(Ia.createUnzip(Wa)),delete a.headers["content-encoding"];break;case"br":Va&&(i.push(Ia.createBrotliDecompress(Ka)),delete a.headers["content-encoding"])}r=i.length>1?ka.pipeline(i,_n.noop):i[0];const y=ka.finished(r,(()=>{y(),f()})),v={status:a.statusCode,statusText:a.statusMessage,headers:new da(a.headers),config:e,request:l};if("stream"===s)v.data=r,ba(t,n,v);else{const a=[];let i=0;r.on("data",(function(t){a.push(t),i+=t.length,e.maxContentLength>-1&&i>e.maxContentLength&&(d=!0,r.destroy(),n(new Mn("maxContentLength size of "+e.maxContentLength+" exceeded",Mn.ERR_BAD_RESPONSE,e,l)))})),r.on("aborted",(function(){if(d)return;const t=new Mn("maxContentLength size of "+e.maxContentLength+" exceeded",Mn.ERR_BAD_RESPONSE,e,l);r.destroy(t),n(t)})),r.on("error",(function(t){u.destroyed||n(Mn.from(t,null,e,l))})),r.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==s&&(e=e.toString(c),c&&"utf8"!==c||(e=_n.stripBOM(e))),v.data=e}catch(t){return n(Mn.from(t,null,e,v.request,v))}ba(t,n,v)}))}m.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),m.once("abort",(e=>{n(e),u.destroy(e)})),u.on("error",(function(t){n(Mn.from(t,null,e,u))})),u.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new Mn("error trying to parse `config.timeout` to int",Mn.ERR_BAD_OPTION_VALUE,e,u));u.setTimeout(t,(function(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Jn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Mn(t,a.clarifyTimeoutError?Mn.ETIMEDOUT:Mn.ECONNABORTED,e,u)),y()}))}if(_n.isStream(i)){let t=!1,n=!1;i.on("end",(()=>{t=!0})),i.once("error",(e=>{n=!0,u.destroy(e)})),i.on("close",(()=>{t||n||y(new va("Request stream has been aborted",e,u))})),i.pipe(u)}else u.end(i)},new Promise(((e,n)=>{let a,i;const o=(e,t)=>{i||(i=!0,a&&a(e,t))},r=e=>{o(e,!0),n(e)};t((t=>{o(t),e(t)}),r,(e=>a=e)).catch(r)}));var t},ni=na.hasStandardBrowserEnv?{write(e,t,n,a,i,o){const r=[e+"="+encodeURIComponent(t)];_n.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),_n.isString(a)&&r.push("path="+a),_n.isString(i)&&r.push("domain="+i),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},ai=na.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(n){let a=n;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(e){const t=_n.isString(e)?a(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ii(e,t){let n=0;const a=Aa(50,250);return i=>{const o=i.loaded,r=i.lengthComputable?i.total:void 0,s=o-n,c=a(s);n=o;const p={loaded:o,total:r,progress:r?o/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&o<=r?(r-o)/c:void 0,event:i};p[t?"download":"upload"]=!0,e(p)}}const oi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let a=e.data;const i=da.from(e.headers).normalize();let o,r,{responseType:s,withXSRFToken:c}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(_n.isFormData(a))if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const u=ha(e.baseURL,e.url);function d(){if(!l)return;const a=da.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());ba((function(e){t(e),p()}),(function(e){n(e),p()}),{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:a,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Xn(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new Mn("Request aborted",Mn.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Mn("Network Error",Mn.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Jn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Mn(t,a.clarifyTimeoutError?Mn.ETIMEDOUT:Mn.ECONNABORTED,e,l)),l=null},na.hasStandardBrowserEnv&&(c&&_n.isFunction(c)&&(c=c(e)),c||!1!==c&&ai(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ni.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===a&&i.setContentType(null),"setRequestHeader"in l&&_n.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),_n.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",ii(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",ii(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{l&&(n(!t||t.type?new va(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const m=Ta(u);m&&-1===na.protocols.indexOf(m)?n(new Mn("Unsupported protocol "+m+":",Mn.ERR_BAD_REQUEST,e)):l.send(a||null)}))},ri={http:ti,xhr:oi};_n.forEach(ri,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const si=e=>`- ${e}`,ci=e=>_n.isFunction(e)||null===e||!1===e,pi=e=>{e=_n.isArray(e)?e:[e];const{length:t}=e;let n,a;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(si).join("\n"):" "+si(e[0]):"as no adapter specified";throw new Mn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return a};function li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new va(null,e)}function ui(e){return li(e),e.headers=da.from(e.headers),e.data=ma.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pi(e.adapter||oa.adapter)(e).then((function(t){return li(e),t.data=ma.call(e,e.transformResponse,t),t.headers=da.from(t.headers),t}),(function(t){return fa(t)||(li(e),t&&t.response&&(t.response.data=ma.call(e,e.transformResponse,t.response),t.response.headers=da.from(t.response.headers))),Promise.reject(t)}))}const di=e=>e instanceof da?{...e}:e;function mi(e,t){t=t||{};const n={};function a(e,t,n){return _n.isPlainObject(e)&&_n.isPlainObject(t)?_n.merge.call({caseless:n},e,t):_n.isPlainObject(t)?_n.merge({},t):_n.isArray(t)?t.slice():t}function i(e,t,n){return _n.isUndefined(t)?_n.isUndefined(e)?void 0:a(void 0,e,n):a(e,t,n)}function o(e,t){if(!_n.isUndefined(t))return a(void 0,t)}function r(e,t){return _n.isUndefined(t)?_n.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,i,o){return o in t?a(n,i):o in e?a(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t)=>i(di(e),di(t),!0)};return _n.forEach(Object.keys(Object.assign({},e,t)),(function(a){const o=c[a]||i,r=o(e[a],t[a],a);_n.isUndefined(r)&&o!==s||(n[a]=r)})),n}const fi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{fi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yi={};fi.transitional=function(e,t,n){function a(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Mn(a(i," has been removed"+(t?" in "+t:"")),Mn.ERR_DEPRECATED);return t&&!yi[i]&&(yi[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const vi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Mn("options must be an object",Mn.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const o=a[i],r=t[o];if(r){const t=e[o],n=void 0===t||r(t,o,e);if(!0!==n)throw new Mn("option "+o+" must be "+n,Mn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Mn("Unknown option "+o,Mn.ERR_BAD_OPTION)}},validators:fi},bi=vi.validators;class hi{constructor(e){this.defaults=e,this.interceptors={request:new Gn,response:new Gn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mi(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;void 0!==n&&vi.assertOptions(n,{silentJSONParsing:bi.transitional(bi.boolean),forcedJSONParsing:bi.transitional(bi.boolean),clarifyTimeoutError:bi.transitional(bi.boolean)},!1),null!=a&&(_n.isFunction(a)?t.paramsSerializer={serialize:a}:vi.assertOptions(a,{encode:bi.function,serialize:bi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&_n.merge(i.common,i[t.method]);i&&_n.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=da.concat(o,i);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const c=[];let p;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,u=0;if(!s){const e=[ui.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,c),l=e.length,p=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{n.subscribe(e),t=e})).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e((function(e,a,i){n.reason||(n.reason=new va(e,a,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new xi((function(t){e=t})),cancel:e}}}const Oi=xi,wi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wi).forEach((([e,t])=>{wi[t]=e}));const ji=wi,Ii=function e(t){const n=new gi(t),a=Qt(gi.prototype.request,n);return _n.extend(a,gi.prototype,n,{allOwnKeys:!0}),_n.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(mi(t,n))},a}(oa);Ii.Axios=gi,Ii.CanceledError=va,Ii.CancelToken=Oi,Ii.isCancel=fa,Ii.VERSION=Pa,Ii.toFormData=Bn,Ii.AxiosError=Mn,Ii.Cancel=Ii.CanceledError,Ii.all=function(e){return Promise.all(e)},Ii.spread=function(e){return function(t){return e.apply(null,t)}},Ii.isAxiosError=function(e){return _n.isObject(e)&&!0===e.isAxiosError},Ii.mergeConfig=mi,Ii.AxiosHeaders=da,Ii.formToJSON=e=>aa(_n.isHTMLForm(e)?new FormData(e):e),Ii.getAdapter=pi,Ii.HttpStatusCode=ji,Ii.default=Ii;const Pi=Ii;var Ti=Function.prototype.toString,Si=Object.create,ki=Object.prototype.toString,Ai=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}(),Ei="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Ai};function Ci(e){if(!e)return Si(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:Si(e);if(t&&~Ti.call(t).indexOf("[native code]"))try{return new t}catch(e){}return Si(e)}var _i="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Di(e){var t=ki.call(e);return t.substring(8,t.length-1)}var zi="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Di(e)}:Di,Ri=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyNames,Fi=Object.getOwnPropertySymbols,qi=Object.prototype,Ui=qi.hasOwnProperty,Li=qi.propertyIsEnumerable,Bi="function"==typeof Fi,Ni=Bi?function(e){return $i(e).concat(Fi(e))}:$i;function Wi(e,t,n){for(var a=Ni(e),i=0,o=a.length,r=void 0,s=void 0;ie.data),Jt)}function co(e,t,n,a){return e.patch(t,n,oo({baseURL:ro(e)},a)).then((e=>e.data),Jt)}function po(e,t,n,a){return e.post(t,n,oo({baseURL:ro(e)},a)).then((e=>e.data),Jt)}function lo(e,t,n,a){return e.put(t,n,oo({baseURL:ro(e)},a)).then((e=>e.data),Jt)}function uo(e,t,n){return e.delete(t,oo({baseURL:ro(e)},n)).then((e=>e.data),Jt)}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fo(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`),vo=(e,t)=>so(e,`/spaces/${t.spaceId}/api_keys`,{params:t.query}),bo=(e,t,n,a)=>po(e,`/spaces/${t.spaceId}/api_keys`,n,{headers:a}),ho=(e,t,n,a)=>lo(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`,n,{headers:a}),go=(e,t,n,a)=>{var i;const o=ao(n);return"accessToken"in o&&delete o.accessToken,"preview_api_key"in o&&delete o.preview_api_key,"policies"in o&&delete o.policies,delete o.sys,lo(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`,o,{headers:fo({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},xo=(e,t)=>uo(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`),Oo=["spaceId"];function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function jo(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Oo)),{},{"sys.space.sys.id[in]":t})}return e}const To=e=>`/organizations/${e.organizationId}/app_definitions/${e.appDefinitionId}/actions`,So=e=>`${To(e)}/${e.appActionId}`,ko=(e,t)=>so(e,So(t)),Ao=(e,t)=>so(e,To(t),{params:Io(t.query)}),Eo=(e,t)=>so(e,(e=>e.environmentId?`/spaces/${e.spaceId}/environments/${e.environmentId}/actions`:`/spaces/${e.spaceId}/actions`)(t),{params:Io(t.query)}),Co=(e,t)=>uo(e,So(t)),_o=(e,t,n)=>po(e,To(t),n),Do=(e,t,n)=>lo(e,So(t),n),zo=e=>(t,n,...a)=>{const i=Gt(ao(n));return i.items=i.items.map((n=>e(t,n,...a))),i},Ro=e=>(t,n,...a)=>{const i=Gt(ao(n));return i.items=i.items.map((n=>e(t,n,...a))),i};function Mo(e){return e<300}async function $o(e=1e3){return new Promise((t=>setTimeout(t,e)))}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function qo(e){for(var t=1;tpo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/app_installations/${t.appDefinitionId}/actions/${t.appActionId}/calls`,n),Lo=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/actions/${t.appActionId}/calls/${t.callId}`),Bo=async(e,t,n)=>async function(e,t,{callId:n}){let a=1;const i=t.retryInterval||2e3,o=t.retries||15;return new Promise(((r,s)=>{const c=async()=>{try{var p,l;const d=await Lo(e,qo(qo({},t),{},{callId:n}));if(null!=d&&null!==(p=d.response)&&void 0!==p&&p.statusCode&&!Mo(null==d||null===(l=d.response)||void 0===l?void 0:l.statusCode)){const e=new Error("App action not found or lambda fails");s(e)}else if(Mo(d.statusCode))r(d);else if(u=d.statusCode,[404,422,429,400].includes(u)&&ao)return void s(new Error("The app action response is taking longer than expected to process."));await $o(i),c()}var u};c()}))}(e,t,{callId:(await po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/app_installations/${t.appDefinitionId}/actions/${t.appActionId}/calls`,n)).sys.id}),No=e=>`/organizations/${e.organizationId}/app_definitions/${e.appDefinitionId}/app_bundles`,Wo=e=>`${No(e)}/${e.appBundleId}`,Ko=(e,t)=>so(e,Wo(t)),Vo=(e,t)=>so(e,No(t),{params:Io(t.query)}),Ho=(e,t)=>uo(e,Wo(t)),Xo=(e,t,n)=>{const{appUploadId:a,comment:i,actions:o,functions:r}=n,s={upload:{sys:{type:"Link",linkType:"AppUpload",id:a}},comment:i,actions:o,functions:r};return po(e,No(t),s)};function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jo(e){for(var t=1;t`/organizations/${e.organizationId}/app_definitions`,Yo=e=>Qo(e)+`/${e.appDefinitionId}`,Zo=(e,t)=>so(e,Yo(t),{params:Io(t.query)}),er=(e,t)=>so(e,Qo(t),{params:t.query}),tr=(e,t,n)=>{const a=ao(n);return po(e,Qo(t),a)},nr=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,Yo(t),o,{headers:Jo({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},ar=(e,t)=>uo(e,Yo(t)),ir=(e,t)=>so(e,(e=>`/app_definitions/${e.appDefinitionId}/app_installations`)(t),{params:Jo(Jo({},Po(Io(t.query))),{},{"sys.organization.sys.id[in]":t.organizationId})}),or=(e,t)=>so(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/details`),rr=(e,t,n)=>lo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/details`,n),sr=(e,t)=>uo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/details`);function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pr(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/app_installations`,ur=e=>lr(e)+`/${e.appDefinitionId}`,dr=(e,t)=>so(e,ur(t),{params:Io(t.query)}),mr=(e,t)=>so(e,lr(t),{params:Io(t.query)}),fr=(e,t,n,a)=>{const i=ao(n);return lo(e,ur(t),i,{headers:pr(pr({},a),t.acceptAllTerms&&{"X-Contentful-Marketplace":"i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy"})})},yr=(e,t)=>uo(e,ur(t)),vr=(e,t)=>so(e,(e=>`/app_definitions/${e.appDefinitionId}/app_installations`)(t),{params:pr(pr({},Po(Io(t.query))),{},{"sys.organization.sys.id[in]":t.organizationId})}),br=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/app_installations/${t.appDefinitionId}/signed_requests`,n),hr=(e,t)=>so(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/signing_secret`),gr=(e,t,n)=>lo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/signing_secret`,n),xr=(e,t)=>uo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/signing_secret`),Or=(e,t)=>so(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/event_subscription`),wr=(e,t,n)=>lo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/event_subscription`,n),jr=(e,t)=>uo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/event_subscription`),Ir=(e,t)=>so(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/keys/${t.fingerprint}`),Pr=(e,t)=>so(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/keys`),Tr=(e,t,n)=>po(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/keys`,n),Sr=(e,t)=>uo(e,`/organizations/${t.organizationId}/app_definitions/${t.appDefinitionId}/keys/${t.fingerprint}`),kr=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/app_installations/${t.appDefinitionId}/access_tokens`,void 0,{headers:{Authorization:`Bearer ${n.jwt}`}});function Ar(e,t){var n;const{hostUpload:a,defaultHostnameUpload:i,timeout:o}=e.httpClientParams;return e.cloneWithNewParams({host:a||i,timeout:null!==(n=null!=o?o:null==t?void 0:t.uploadTimeout)&&void 0!==n?n:3e5})}const Er=e=>`/organizations/${e.organizationId}/app_uploads`,Cr=e=>`${Er(e)}/${e.appUploadId}`,_r=(e,t)=>so(Ar(e),Cr(t)),Dr=(e,t)=>uo(Ar(e),Cr(t)),zr=(e,t,n)=>{const a=Ar(e),{file:i}=n;return po(a,Er(t),i,{headers:{"Content-Type":"application/octet-stream"}})},Rr=e=>{const t=`/spaces/${e.spaceId}/uploads`,n=`/spaces/${e.spaceId}/environments/${e.environmentId}/uploads`;return e.environmentId?n:t},Mr=e=>Rr(e)+`/${e.uploadId}`,$r=(e,t,n)=>{const a=Ar(e),{file:i}=n;return i?po(a,Rr(t),i,{headers:{"Content-Type":"application/octet-stream"}}):Promise.reject(new Error("Unable to locate a file to upload."))},Fr=(e,t)=>uo(Ar(e),Mr(t)),qr=(e,t)=>so(Ar(e),Mr(t)),Ur=["asset","locale","options"],Lr=["asset","options"];function Br(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Wr(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,{params:Io(t.query),headers:a?Wr({},a):void 0}),Vr=(e,t,n,a)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/public/assets`,{params:Io(t.query),headers:a?Wr({},a):void 0}),Hr=(e,t,n,a)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets`,{params:Io(t.query),headers:a?Wr({},a):void 0}),Xr=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,o,{headers:Wr({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Gr=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`),Jr=(e,t,n)=>{var a;return lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/published`,null,{headers:{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0}})},Qr=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/published`),Yr=(e,t)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/archived`),Zr=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/archived`),es=(e,t,n)=>{const a=ao(n);return po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets`,a)},ts=(e,t,n)=>{const a=ao(n);return lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,a)},ns=async(e,t,n)=>{const a=Ar(e,{uploadTimeout:t.uploadTimeout}),{file:i}=n.fields;return Promise.all(Object.keys(i).map((async e=>{const{contentType:n,fileName:o}=i[e];return $r(a,t,i[e]).then((t=>({[e]:{contentType:n,fileName:o,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}})))}))).then((a=>{const i=a.reduce(((e,t)=>Wr(Wr({},e),t)),{}),o=Wr(Wr({},n),{},{fields:Wr(Wr({},n.fields),{},{file:i})});return es(e,t,o)})).catch(Jt)};async function as(e,t,{resolve:n,reject:a,locale:i,processingCheckWait:o=3e3,processingCheckRetries:r=10,checkCount:s=0}){return Kr(e,t).then((c=>{if(c.fields.file[i].url)n(c);else if(s===r){const e=new Error;e.name="AssetProcessingTimeout",e.message="Asset is taking longer then expected to process.",a(e)}else s++,setTimeout((()=>as(e,t,{resolve:n,reject:a,locale:i,checkCount:s,processingCheckWait:o,processingCheckRetries:r})),o)}))}const is=async(e,t)=>{let{asset:n,locale:a,options:{processingCheckRetries:i,processingCheckWait:o}={}}=t,r=Br(t,Ur);return lo(e,`/spaces/${r.spaceId}/environments/${r.environmentId}/assets/${n.sys.id}/files/${a}/process`,null,{headers:{"X-Contentful-Version":n.sys.version}}).then((()=>new Promise(((t,s)=>as(e,{spaceId:r.spaceId,environmentId:r.environmentId,assetId:n.sys.id},{resolve:t,reject:s,locale:a,processingCheckWait:o,processingCheckRetries:i})))))},os=async(e,t)=>{let{asset:n,options:a={}}=t,i=Br(t,Lr);const o=Object.keys(n.fields.file||{});let r=n;const s=o.map((t=>is(e,Wr(Wr({},i),{},{asset:n,locale:t,options:a})).then((e=>{r=e}))));return Promise.all(s).then((()=>r))};class rs extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name="ValidationError"}}const ss=(e,t,n)=>{const a=n.expiresAt,i=Math.floor(Date.now()/1e3);((e,t,n)=>{if(n=n||{},"number"!=typeof t)throw new rs(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new rs(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/bulk_actions/actions/${t.bulkActionId}`),ps=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/bulk_actions/publish`,n),ls=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/bulk_actions/unpublish`,n),us=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/bulk_actions/validate`,n),ds=["version"];function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fs(e){for(var t=1;t`${hs(e)}/${e.commentId}`,hs=e=>{const t="entryId"in e?{spaceId:e.spaceId,environmentId:e.environmentId,parentEntityType:"Entry",parentEntityId:e.entryId}:e,{parentEntityId:n,parentEntityType:a}=t,i=function(e){switch(e){case"ContentType":return"content_types";case"Entry":return"entries";case"Workflow":return"workflows"}}(a),o="parentEntityVersion"in t?`/versions/${t.parentEntityVersion}`:"";return`${(e=>`/spaces/${e.spaceId}/environments/${e.environmentId}`)(t)}/${i}/${n}${o}/comments`},gs=(e,t)=>so(e,bs(t),{headers:"rich-text"===t.bodyFormat?{[vs]:t.bodyFormat}:{}}),xs=(e,t)=>so(e,hs(t),{params:Io(t.query),headers:"rich-text"===t.bodyFormat?{[vs]:t.bodyFormat}:{}}),Os=(e,t,n)=>{const a=ao(n);return po(e,hs(t),a,{headers:fs(fs(fs({},"string"!=typeof n.body?{[vs]:"rich-text"}:{}),"parentEntityReference"in t&&t.parentEntityReference?{"x-contentful-parent-entity-reference":t.parentEntityReference}:{}),t.parentCommentId?{"x-contentful-parent-id":t.parentCommentId}:{})})},ws=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,bs(t),o,{headers:fs(fs({[ys]:null!==(i=n.sys.version)&&void 0!==i?i:0},"string"!=typeof n.body?{[vs]:"rich-text"}:{}),a)})},js=(e,t)=>{let{version:n}=t,a=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,ds);return uo(e,bs(a),{headers:{[ys]:n}})},Is=xs;function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ts(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types`,ks=e=>Ss(e)+`/${e.contentTypeId}`,As=(e,t,n)=>so(e,ks(t),{params:Io(t.query),headers:n}),Es=(e,t,n)=>so(e,Ss(t),{params:t.query,headers:n}),Cs=(e,t,n,a)=>{const i=ao(n);return po(e,Ss(t),i,{headers:a})},_s=(e,t,n,a)=>{const i=ao(n);return lo(e,ks(t),i,{headers:a})},Ds=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,ks(t),o,{headers:Ts({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},zs=(e,t,n)=>uo(e,ks(t),{headers:n}),Rs=(e,t,n,a)=>lo(e,ks(t)+"/published",null,{headers:Ts({"X-Contentful-Version":n.sys.version},a)}),Ms=(e,t,n)=>uo(e,ks(t)+"/published",{headers:n});function $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fs(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types/${e.contentTypeId}/editor_interface`,Us=(e,t)=>so(e,qs(t)),Ls=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/editor_interfaces`),Bs=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,qs(t),o,{headers:Fs({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})};function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ws(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,{params:Io(t.query),headers:Ws({},a)}),Vs=(e,t,n,a)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/public/entries`,{params:Io(t.query),headers:Ws({},a)}),Hs=(e,t,n,a)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries`,{params:Io(t.query),headers:Ws({},a)}),Xs=(e,t,n,a)=>co(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,n,{headers:Ws({"X-Contentful-Version":t.version,"Content-Type":"application/json-patch+json"},a)}),Gs=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,o,{headers:Ws({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Js=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`),Qs=(e,t,n)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/published`,null,{headers:{"X-Contentful-Version":n.sys.version}}),Ys=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/published`),Zs=(e,t)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/archived`),ec=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/archived`),tc=(e,t,n)=>{const a=ao(n);return po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries`,a,{headers:{"X-Contentful-Content-Type":t.contentTypeId}})},nc=(e,t,n)=>{const a=ao(n);return lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,a,{headers:{"X-Contentful-Content-Type":t.contentTypeId}})},ac=(e,t)=>{const{spaceId:n,environmentId:a,entryId:i,include:o}=t;return so(e,`/spaces/${n}/environments/${a}/entries/${i}/references?include=${o||2}`)};function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function oc(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`),sc=(e,t)=>so(e,`/spaces/${t.spaceId}/environments`,{params:t.query}),cc=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`,o,{headers:oc(oc({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},pc=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`),lc=(e,t,n,a)=>{const i=ao(n);return po(e,`/spaces/${t.spaceId}/environments`,i,{headers:a})},uc=(e,t,n,a)=>{const i=ao(n);return lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`,i,{headers:oc(oc({},a),t.sourceEnvironmentId?{"X-Contentful-Source-Environment":t.sourceEnvironmentId}:{})})};function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mc(e){for(var t=1;t`/spaces/${e.spaceId}/environment_aliases`,yc=e=>fc(e)+`/${e.environmentAliasId}`,vc=(e,t)=>so(e,yc(t)),bc=(e,t)=>so(e,fc(t),{params:t.query}),hc=(e,t,n,a)=>{const i=ao(n);return lo(e,yc(t),i,{headers:a})},gc=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,yc(t),o,{headers:mc(mc({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},xc=(e,t)=>uo(e,yc(t));function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wc(e){for(var t=1;t`/organizations/${e}/environment_templates/`+t.join("/"),Ic=(e,{organizationId:t,environmentTemplateId:n,version:a,query:i={}},o)=>so(e,a?jc(t,n,"versions",a):jc(t,n),{params:i,headers:o}),Pc=(e,{organizationId:t,query:n={}},a)=>so(e,jc(t),{params:n,headers:a}),Tc=(e,{organizationId:t},n,a)=>po(e,jc(t),n,{headers:a}),Sc=(e,{organizationId:t,environmentTemplateId:n},a,i)=>{var o;const r=ao(a);return delete r.sys,lo(e,jc(t,n),r,{headers:wc({"X-Contentful-Version":null!==(o=a.sys.version)&&void 0!==o?o:0},i)})},kc=(e,{organizationId:t,version:n,environmentTemplateId:a},i,o)=>co(e,jc(t,a,"versions",n),i,{headers:o}),Ac=(e,{organizationId:t,environmentTemplateId:n},a)=>uo(e,jc(t,n),{headers:a}),Ec=(e,{organizationId:t,environmentTemplateId:n,query:a={}},i)=>so(e,jc(t,n,"versions"),{params:a,headers:i}),Cc=(e,{spaceId:t,environmentId:n,environmentTemplateId:a,version:i},o,r)=>lo(e,i?`/spaces/${t}/environments/${n}/template_installations/${a}/versions/${i}/validated`:`/spaces/${t}/environments/${n}/template_installations/${a}/validated`,o,{headers:r}),_c=(e,{spaceId:t,environmentId:n,environmentTemplateId:a},i,o)=>po(e,`/spaces/${t}/environments/${n}/template_installations/${a}/versions`,i,{headers:o}),Dc=(e,{spaceId:t,environmentId:n,environmentTemplateId:a},i)=>uo(e,`/spaces/${t}/environments/${n}/template_installations/${a}`,{headers:i}),zc=["organizationId","environmentTemplateId","spaceId","environmentId"],Rc=["spaceId","environmentId","environmentTemplateId","installationId"];function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $c(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const qc=(e,t,n)=>{let{organizationId:a,environmentTemplateId:i,spaceId:o,environmentId:r}=t,s=Fc(t,zc);return so(e,((e,...t)=>`/organizations/${e}/environment_templates/`+t.join("/"))(a,i,"template_installations"),{params:$c($c($c({},s),r&&{"environment.sys.id":r}),o&&{"space.sys.id":o}),headers:n})},Uc=(e,t,n)=>{let{spaceId:a,environmentId:i,environmentTemplateId:o,installationId:r}=t,s=Fc(t,Rc);return so(e,`/spaces/${a}/environments/${i}/template_installations/${o}`,{params:$c($c({},r&&{"sys.id":r}),s),headers:n})};function Lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bc(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/extensions`,Wc=e=>Nc(e)+`/${e.extensionId}`,Kc=(e,t)=>so(e,Wc(t),{params:Io(t.query)}),Vc=(e,t)=>so(e,Nc(t),{params:Io(t.query)}),Hc=(e,t,n,a)=>po(e,Nc(t),n,{headers:a}),Xc=(e,t,n,a)=>{const i=ao(n);return lo(e,Wc(t),i,{headers:a})},Gc=async(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,Wc(t),o,{headers:Bc({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Jc=(e,t)=>uo(e,Wc(t)),Qc=(e,{url:t,config:n})=>so(e,t,n),Yc=(e,{url:t,config:n},a)=>po(e,t,a,n),Zc=(e,{url:t,config:n},a)=>lo(e,t,a,n),ep=(e,{url:t,config:n},a)=>co(e,t,a,n),tp=(e,{url:t,config:n})=>uo(e,t,n),np=(e,{url:t,config:n})=>function(e,t,n){return e(t,oo({baseURL:ro(e)},n)).then((e=>e.data),Jt)}(e,t,n);function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ip(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`),rp=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales`,{params:Io(t.query)}),sp=(e,t,n,a)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales`,n,{headers:a}),cp=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,delete o.default,lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`,o,{headers:ip(ip({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},pp=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`),lp=(e,t)=>so(e,"/organizations",{params:null==t?void 0:t.query}),up=(e,t)=>lp(e,{query:{limit:100}}).then((e=>{const n=e.items.find((e=>e.sys.id===t.organizationId));if(!n){const n=new Error(`No organization was found with the ID ${t.organizationId} instead got ${JSON.stringify(e)}`);return n.status=404,n.statusText="Not Found",Promise.reject(n)}return n}));function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mp(e){for(var t=1;tpo(e,`/organizations/${t.organizationId}/invitations`,n,{headers:mp(mp({},yp),a)}),bp=(e,t,n)=>so(e,`/organizations/${t.organizationId}/invitations/${t.invitationId}`,{headers:mp(mp({},fp),n)});function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gp(e){for(var t=1;t`/organizations/${e.organizationId}/organization_memberships`,Op=e=>`${xp(e)}/${e.organizationMembershipId}`,wp=(e,t)=>so(e,Op(t)),jp=(e,t)=>so(e,xp(t),{params:t.query}),Ip=(e,t,n,a)=>{var i;const o=ao(n);delete o.sys;const{role:r}=o;return lo(e,Op(t),{role:r},{headers:gp(gp({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},Pp=(e,t)=>uo(e,Op(t)),Tp=(e,t)=>so(e,`/users/me/access_tokens/${t.tokenId}`),Sp=(e,t)=>so(e,"/users/me/access_tokens",{params:t.query}),kp=(e,t,n,a)=>po(e,"/users/me/access_tokens",n,{headers:a}),Ap=(e,t)=>lo(e,`/users/me/access_tokens/${t.tokenId}/revoked`,null),Ep=(e,t)=>so(e,`/users/me/access_tokens/${t.tokenId}`),Cp=(e,t)=>so(e,"/users/me/access_tokens",{params:t.query}),_p=(e,t,n,a)=>po(e,"/users/me/access_tokens",n,{headers:a}),Dp=(e,t)=>lo(e,`/users/me/access_tokens/${t.tokenId}/revoked`,null),zp=(e,t)=>so(e,`/organizations/${t.organizationId}/access_tokens`,{params:t.query}),Rp=(e,t)=>so(e,`/spaces/${t.spaceId}/preview_api_keys/${t.previewApiKeyId}`),Mp=(e,t)=>so(e,`/spaces/${t.spaceId}/preview_api_keys`,{params:t.query});function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fp(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}`),Up=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases`,{params:t.query}),Lp=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases`,n),Bp=(e,t,n,a)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}`,n,{headers:Fp({"X-Contentful-Version":t.version},a)}),Np=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}`),Wp=(e,t,n)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/published`,null,{headers:Fp({"X-Contentful-Version":t.version},n)}),Kp=(e,t,n)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/published`,{headers:Fp({"X-Contentful-Version":t.version},n)}),Vp=(e,t,n)=>po(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/validate`,n),Hp=(e,t)=>lo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/archived`,null,{headers:{"X-Contentful-Version":t.version}}),Xp=(e,t)=>uo(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/archived`,{headers:{"X-Contentful-Version":t.version}});function Gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jp(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/releases/${t.releaseId}/actions/${t.actionId}`),Yp=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/release_actions`,{params:t.query}),Zp=(e,t)=>so(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/release_actions`,{params:Jp({"sys.release.sys.id[in]":t.releaseId},t.query)});function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function tl(e){for(var t=1;tso(e,`/spaces/${t.spaceId}/roles/${t.roleId}`),al=(e,t)=>so(e,`/spaces/${t.spaceId}/roles`,{params:Io(t.query)}),il=(e,t)=>so(e,`/organizations/${t.organizationId}/roles`,{params:Io(t.query)}),ol=(e,t,n,a)=>po(e,`/spaces/${t.spaceId}/roles`,n,{headers:a}),rl=(e,t,n,a)=>lo(e,`/spaces/${t.spaceId}/roles/${t.roleId}`,n,{headers:a}),sl=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,`/spaces/${t.spaceId}/roles/${t.roleId}`,o,{headers:tl(tl({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},cl=(e,t)=>uo(e,`/spaces/${t.spaceId}/roles/${t.roleId}`),pl=(e,t)=>so(e,`/spaces/${t.spaceId}/scheduled_actions/${t.scheduledActionId}`,{params:{"environment.sys.id":t.environmentId}}),ll=(e,t)=>so(e,`/spaces/${t.spaceId}/scheduled_actions`,{params:Io(t.query)}),ul=(e,t,n)=>po(e,`/spaces/${t.spaceId}/scheduled_actions`,n),dl=(e,t)=>uo(e,`/spaces/${t.spaceId}/scheduled_actions/${t.scheduledActionId}`,{params:{"environment.sys.id":t.environmentId}}),ml=(e,t,n)=>{var a;return lo(e,`/spaces/${t.spaceId}/scheduled_actions/${t.scheduledActionId}`,n,{params:{"environment.sys.id":null===(a=n.environment)||void 0===a?void 0:a.sys.id},headers:{"X-Contentful-Version":t.version}})},fl=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/entries/${e.entryId}/snapshots`,yl=(e,t)=>so(e,fl(t),{params:Io(t.query)}),vl=(e,t)=>so(e,(e=>fl(e)+`/${e.snapshotId}`)(t)),bl=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types/${e.contentTypeId}/snapshots`,hl=(e,t)=>so(e,bl(t),{params:Io(t.query)}),gl=(e,t)=>so(e,(e=>bl(e)+`/${e.snapshotId}`)(t));function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ol(e){for(var t=1;tso(e,`/spaces/${t.spaceId}`),jl=(e,t)=>so(e,"/spaces",{params:t.query}),Il=(e,t)=>so(e,`/organizations/${t.organizationId}/spaces`,{params:t.query}),Pl=(e,t,n,a)=>po(e,"/spaces",n,{headers:t.organizationId?Ol(Ol({},a),{},{"X-Contentful-Organization":t.organizationId}):a}),Tl=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,`/spaces/${t.spaceId}`,o,{headers:Ol({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Sl=(e,t)=>uo(e,`/spaces/${t.spaceId}`),kl=(e,t)=>so(e,`/spaces/${t.spaceId}/space_members/${t.spaceMemberId}`),Al=(e,t)=>so(e,`/spaces/${t.spaceId}/space_members`,{params:t.query});function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Cl(e){for(var t=1;t`/spaces/${e.spaceId}/space_memberships`,zl=e=>`${Dl(e)}/${e.spaceMembershipId}`,Rl=(e,t)=>(_l(),so(e,zl(t))),Ml=(e,t)=>(_l(),so(e,Dl(t),{params:t.query})),$l=(e,t)=>so(e,`/organizations/${t.organizationId}/space_memberships/${t.spaceMembershipId}`),Fl=(e,t)=>so(e,`/organizations/${t.organizationId}/space_memberships`,{params:t.query}),ql=(e,t,n,a)=>(_l(),po(e,Dl(t),n,{headers:a})),Ul=(e,t,n,a)=>(_l(),lo(e,zl(t),n,{headers:a})),Ll=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,zl(t),o,{headers:Cl(Cl({},a),{},{"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0})})},Bl=(e,t)=>uo(e,zl(t)),Nl=["version"];function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Kl(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/tags`,Hl=e=>Vl(e)+`/${e.tagId}`,Xl=(e,t)=>so(e,Hl(t)),Gl=(e,t)=>so(e,Vl(t),{params:t.query}),Jl=(e,t,n)=>{var a;const i=ao(n);return lo(e,Hl(t),i,{headers:{"X-Contentful-Tag-Visibility":null!==(a=n.sys.visibility)&&void 0!==a?a:"private"}})},Ql=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,Hl(t),o,{headers:Kl({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Yl=(e,t)=>{let{version:n}=t,a=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,Nl);return uo(e,Hl(a),{headers:{"X-Contentful-Version":n}})},Zl=["version"];function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function tu(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/entries/${e.entryId}/tasks`,au=e=>`${nu(e)}/${e.taskId}`,iu=(e,t)=>so(e,au(t)),ou=(e,t)=>so(e,nu(t),{params:Io(t.query)}),ru=ou,su=(e,t,n)=>{const a=ao(n);return po(e,nu(t),a)},cu=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,au(t),o,{headers:tu({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},pu=(e,t)=>{let{version:n}=t,a=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,Zl);return uo(e,au(a),{headers:{"X-Contentful-Version":n}})};function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function uu(e){for(var t=1;t`/organizations/${e.organizationId}/teams`,mu=e=>`${du(e)}/${e.teamId}`,fu=(e,t)=>so(e,mu(t)),yu=(e,t)=>so(e,du(t),{params:Io(t.query)}),vu=(e,t)=>so(e,`/spaces/${t.spaceId}/teams`,{params:Io(t.query)}),bu=(e,t,n,a)=>po(e,du(t),n,{headers:a}),hu=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,mu(t),o,{headers:uu({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},gu=(e,t)=>uo(e,mu(t));function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ou(e){for(var t=1;t`/organizations/${e.organizationId}/teams/${e.teamId}/team_memberships`,ju=e=>`/organizations/${e.organizationId}/teams/${e.teamId}/team_memberships/${e.teamMembershipId}`,Iu=(e,t)=>so(e,ju(t)),Pu=(e,t)=>so(e,`/organizations/${t.organizationId}/team_memberships`,{params:Io(t.query)}),Tu=(e,t)=>so(e,wu(t),{params:Io(t.query)}),Su=(e,t,n,a)=>po(e,wu(t),n,{headers:a}),ku=(e,t,n,a)=>{const i=ao(n);return delete i.sys,lo(e,ju(t),i,{headers:Ou({"X-Contentful-Version":n.sys.version||0},a)})},Au=(e,t)=>uo(e,ju(t));function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Cu(e){for(var t=1;t`/spaces/${e.spaceId}/team_space_memberships`,Du=e=>`${_u(e)}/${e.teamSpaceMembershipId}`,zu=(e,t)=>so(e,Du(t)),Ru=(e,t)=>so(e,_u(t),{params:t.query}),Mu=(e,t)=>so(e,`/organizations/${t.organizationId}/team_space_memberships/${t.teamSpaceMembershipId}`),$u=(e,t)=>{const n=t.query||{};return t.teamId&&(n["sys.team.sys.id"]=t.teamId),so(e,`/organizations/${t.organizationId}/team_space_memberships`,{params:t.query})},Fu=(e,t,n,a)=>po(e,_u(t),n,{headers:Cu({"x-contentful-team":t.teamId},a)}),qu=(e,t,n,a)=>{const i=ao(n);return delete i.sys,lo(e,Du(t),i,{headers:Cu({"X-Contentful-Version":n.sys.version||0,"x-contentful-team":n.sys.team.sys.id},a)})},Uu=(e,t)=>uo(e,Du(t)),Lu=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/ui_config`,Bu=(e,t)=>so(e,Lu(t)),Nu=(e,t,n)=>{var a;const i=ao(n);return delete i.sys,lo(e,Lu(t),i,{headers:{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0}})},Wu=(e,t)=>so(e,`/organizations/${t.organizationId}/space_periodic_usages`,{params:t.query}),Ku=(e,t)=>so(e,`/organizations/${t.organizationId}/organization_periodic_usages`,{params:t.query}),Vu=(e,t)=>so(e,`/spaces/${t.spaceId}/users/${t.userId}`),Hu=(e,t)=>so(e,"/users/me",{params:null==t?void 0:t.query}),Xu=(e,t)=>so(e,`/spaces/${t.spaceId}/users`,{params:t.query}),Gu=(e,t)=>so(e,`/organizations/${t.organizationId}/users/${t.userId}`),Ju=(e,t)=>so(e,`/organizations/${t.organizationId}/users`,{params:t.query}),Qu=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/ui_config/me`,Yu=(e,t)=>so(e,Qu(t)),Zu=(e,t,n)=>{var a;const i=ao(n);return delete i.sys,lo(e,Qu(t),i,{headers:{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0}})};function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function td(e){for(var t=1;t`/spaces/${e.spaceId}/webhook_definitions`,ad=e=>`/spaces/${e.spaceId}/webhooks`,id=e=>`${nd(e)}/${e.webhookDefinitionId}`,od=e=>`/spaces/${e.spaceId}/webhook_settings`,rd=e=>`${od(e)}/signing_secret`,sd=e=>`${od(e)}/retry_policy`,cd=(e,t)=>so(e,id(t)),pd=(e,t)=>so(e,(e=>`${ad(e)}/${e.webhookDefinitionId}/calls`)(t),{params:Io(t.query)}),ld=(e,t)=>so(e,(e=>`${ad(e)}/${e.webhookDefinitionId}/calls/${e.callId}`)(t)),ud=(e,t)=>so(e,(e=>`${ad(e)}/${e.webhookDefinitionId}/health`)(t)),dd=(e,t)=>so(e,nd(t),{params:Io(t.query)}),md=(e,t)=>so(e,rd(t)),fd=(e,t)=>so(e,sd(t)),yd=(e,t,n,a)=>{const i=ao(n);return po(e,nd(t),i,{headers:a})},vd=(e,t,n,a)=>{const i=ao(n);return lo(e,id(t),i,{headers:a})},bd=async(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,id(t),o,{headers:td({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},hd=async(e,t,n)=>{const a=ao(n);return lo(e,rd(t),a)},gd=async(e,t,n)=>{const a=ao(n);return lo(e,sd(t),a)},xd=(e,t)=>uo(e,id(t)),Od=async(e,t)=>uo(e,rd(t)),wd=async(e,t)=>uo(e,sd(t)),jd=["version"],Id=["version"];function Pd(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Sd(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/workflows`,Ad=e=>`${kd(e)}/${e.workflowId}`,Ed=(e,t,n)=>so(e,kd(t),{headers:n,params:t.query}),Cd=(e,t,n,a)=>{const i=ao(n);return po(e,kd(t),i,{headers:a})},_d=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,Ad(t),o,{headers:Sd({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Dd=(e,t,n)=>{let{version:a}=t,i=Pd(t,jd);return uo(e,Ad(i),{headers:Sd({"X-Contentful-Version":a},n)})},zd=(e,t,n)=>{let{version:a}=t;return lo(e,(i=Pd(t,Id),`${Ad(i)}/complete`),null,{headers:Sd({"X-Contentful-Version":a},n)});var i},Rd=["version"];function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $d(e){for(var t=1;t`/spaces/${e.spaceId}/environments/${e.environmentId}/workflow_definitions`,qd=e=>`${Fd(e)}/${e.workflowDefinitionId}`,Ud=(e,t,n)=>so(e,qd(t),{headers:n}),Ld=(e,t,n)=>so(e,Fd(t),{headers:n,params:t.query}),Bd=(e,t,n,a)=>{const i=ao(n);return po(e,Fd(t),i,{headers:a})},Nd=(e,t,n,a)=>{var i;const o=ao(n);return delete o.sys,lo(e,qd(t),o,{headers:$d({"X-Contentful-Version":null!==(i=n.sys.version)&&void 0!==i?i:0},a)})},Wd=(e,t,n)=>{let{version:a}=t,i=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,Rd);return uo(e,qd(i),{headers:$d({"X-Contentful-Version":a},n)})},Kd=(e,t,n)=>so(e,(e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/workflows_changelog`)(t),{headers:n,params:t.query}),Vd={ApiKey:t,AppAction:i,AppActionCall:o,AppBundle:r,AppDefinition:s,AppInstallation:p,AppUpload:y,AppSignedRequest:l,AppSigningSecret:u,AppEventSubscription:d,AppKey:m,AppAccessToken:f,AppDetails:c,Asset:b,AssetKey:h,BulkAction:g,Comment:x,ContentType:O,EditorInterface:w,Entry:j,Environment:I,EnvironmentAlias:P,EnvironmentTemplate:T,EnvironmentTemplateInstallation:S,Extension:k,Http:A,Locale:E,Organization:C,OrganizationInvitation:_,OrganizationMembership:D,PersonalAccessToken:z,AccessToken:R,PreviewApiKey:M,Release:$,ReleaseAction:F,Role:q,ScheduledAction:U,Snapshot:L,Space:B,SpaceMember:N,SpaceMembership:W,Tag:K,Task:V,Team:H,TeamMembership:X,TeamSpaceMembership:G,UIConfig:J,Upload:v,Usage:Q,User:Y,UserUIConfig:Z,Webhook:ee,WorkflowDefinition:ne,Workflow:te,WorkflowsChangelog:ae};function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Xd(e){for(var t=1;t(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:t[n]}),e)),e)}function Zd(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>{var t,n;return{spaceId:null!==(t=null===(n=e.sys.space)||void 0===n?void 0:n.sys.id)&&void 0!==t?t:"",apiKeyId:e.sys.id}};return{update:function(){return e({entityType:"ApiKey",action:"update",params:t(this),payload:this,headers:{}}).then((t=>Zd(e,t)))},delete:function(){return e({entityType:"ApiKey",action:"delete",params:t(this)})}}}(e));return Ht(n)}const em=zo(Zd);function tm(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id,appActionId:e.sys.id});return{delete:function(){const n=this.toPlainObject();return e({entityType:"AppAction",action:"delete",params:t(n)})}}}(e));return Ht(n)}const nm=zo(tm);function am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function im(e){for(var t=1;t",message_body:"Hello from Bob!"}}}).then((t=>sm(e,t)))},getCallDetails:function(){return e({entityType:"AppActionCall",action:"getCallDetails",params:{spaceId:"space-id",environmentId:"environment-id",callId:"call-id",appActionId:"app-action-id"}}).then((t=>sm(e,t)))}}}function rm(e,t){return Yd(Gt(ao(t)),om(e))}function sm(e,t,n){return Yd(Gt(ao(t)),om(e,n))}function cm(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id,appBundleId:e.sys.id});return{delete:function(){const n=this.toPlainObject();return e({entityType:"AppBundle",action:"delete",params:t(n)})}}}(e));return Ht(n)}const pm=zo(cm);function lm(e,t){const n=Yd(Gt(ao(t)),function(e){const{wrapAppBundle:t,wrapAppBundleCollection:n}=Uy.appBundle,a=e=>({appDefinitionId:e.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const t=this.toPlainObject();return e({entityType:"AppDefinition",action:"update",params:a(t),headers:{},payload:t}).then((t=>lm(e,t)))},delete:function(){const t=this.toPlainObject();return e({entityType:"AppDefinition",action:"delete",params:a(t)})},getAppBundle(n){const a=this.toPlainObject();return e({entityType:"AppBundle",action:"get",params:{appBundleId:n,appDefinitionId:a.sys.id,organizationId:a.sys.organization.sys.id}}).then((n=>t(e,n)))},getAppBundles(t={}){const a=this.toPlainObject();return e({entityType:"AppBundle",action:"getMany",params:{organizationId:a.sys.organization.sys.id,appDefinitionId:a.sys.id,query:t}}).then((t=>n(e,t)))},createAppBundle(n){const a=this.toPlainObject();return e({entityType:"AppBundle",action:"create",params:{appDefinitionId:a.sys.id,organizationId:a.sys.organization.sys.id},payload:n}).then((n=>t(e,n)))},getInstallationsForOrg(t={}){const n=this.toPlainObject();return e({entityType:"AppDefinition",action:"getInstallationsForOrg",params:{appDefinitionId:n.sys.id,organizationId:n.sys.organization.sys.id,query:t}})}}}(e));return Ht(n)}const um=zo(lm);function dm(e,t){return Yd(Gt(ao(t)),function(e){return{delete:function(){return e({entityType:"AppDetails",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(e))}function mm(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,appDefinitionId:e.sys.appDefinition.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"upsert",params:t(n),headers:{},payload:n}).then((t=>mm(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"delete",params:t(n)})}}}(e));return Ht(n)}const fm=zo(mm);function ym(e,t){return Gt(ao(t))}function vm(e,t){return Yd(Gt(ao(t)),function(e){return{delete:function(){return e({entityType:"AppSigningSecret",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(e))}function bm(e,t){return Yd(Gt(ao(t)),function(e){return{delete:function(){return e({entityType:"AppEventSubscription",action:"delete",params:(this,{organizationId:this.sys.organization.sys.id,appDefinitionId:this.sys.appDefinition.sys.id})})}}}(e))}function hm(e,t){return Yd(Gt(ao(t)),function(e){return{delete:function(){return e({entityType:"AppKey",action:"delete",params:(t=this,{organizationId:t.sys.organization.sys.id,appDefinitionId:t.sys.appDefinition.sys.id,fingerprint:t.sys.id})});var t}}}(e))}const gm=zo(hm);function xm(e,t){return Ht(Gt(ao(t)))}function Om(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({organizationId:e.sys.organization.sys.id,appUploadId:e.sys.id});return{delete:function(){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"delete",params:t(n)})}}}(e));return Ht(n)}const wm=zo(Om),jm=e=>!!e.sys.publishedVersion,Im=e=>!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1),Pm=e=>!e.sys.publishedVersion,Tm=e=>!!e.sys.archivedVersion;function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function km(e){for(var t=1;t({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,assetId:e.sys.id});return{processForLocale:function(n,a){const i=this.toPlainObject();return e({entityType:"Asset",action:"processForLocale",params:km(km({},t(i)),{},{locale:n,options:a,asset:i})}).then((t=>Am(e,t)))},processForAllLocales:function(n){const a=this.toPlainObject();return e({entityType:"Asset",action:"processForAllLocales",params:km(km({},t(a)),{},{asset:a,options:n})}).then((t=>Am(e,t)))},update:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"update",params:t(n),payload:n,headers:{}}).then((t=>Am(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"delete",params:t(n)})},publish:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"publish",params:t(n),payload:n}).then((t=>Am(e,t)))},unpublish:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"unpublish",params:t(n)}).then((t=>Am(e,t)))},archive:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"archive",params:t(n)}).then((t=>Am(e,t)))},unarchive:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"unarchive",params:t(n)}).then((t=>Am(e,t)))},isPublished:function(){const e=this.toPlainObject();return jm(e)},isUpdated:function(){const e=this.toPlainObject();return Im(e)},isDraft:function(){const e=this.toPlainObject();return Pm(e)},isArchived:function(){const e=this.toPlainObject();return Tm(e)}}}(e));return Ht(n)}const Em=zo(Am);function Cm(e,t){return Gt(ao(t))}function _m(e){return new Promise((t=>setTimeout(t,e)))}const Dm=30,zm=1e3,Rm=2e3;class Mm extends Error{constructor(e,t){var n,a,i,o;super(e),n=this,i=void 0,(a="symbol"==typeof(o=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a="action"))?o:o+"")in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,this.action=t,this.name=this.constructor.name}}class $m extends Mm{}async function Fm(e,t){var n,a,i,o,r;let s,c=0,p=!1;const l=null!==(n=null==t?void 0:t.retryCount)&&void 0!==n?n:Dm,u=null!==(a=null==t?void 0:t.retryIntervalMs)&&void 0!==a?a:Rm,d=null!==(i=null==t?void 0:t.initialDelayMs)&&void 0!==i?i:zm,m=null===(o=null==t?void 0:t.throwOnFailedExecution)||void 0===o||o;for(await _m(d);c{const t=this.toPlainObject();return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,bulkActionId:t.sys.id}})();return e({entityType:"BulkAction",action:"get",params:t}).then((t=>Um(e,t)))},async waitProcessing(e){return Fm((async()=>this.get()),e)}}}(e));return Ht(n)}function Lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bm(e){for(var t=1;t({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,entryId:e.sys.parentEntity.sys.id,commentId:e.sys.id});return{update:async function(){const n=this.toPlainObject(),a=await e({entityType:"Comment",action:"update",params:t(n),payload:n});return Km(e,a)},delete:async function(){const n=this.toPlainObject();await e({entityType:"Comment",action:"delete",params:Bm(Bm({},t(n)),{},{version:n.sys.version})})}}}function Km(e,t){return Ht(Yd(Gt(ao(t)),Wm(e)))}const Vm=zo(Km);function Hm(e,t){const n=Yd(Gt(ao(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject();return e({entityType:"EditorInterface",action:"update",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,contentTypeId:t.sys.contentType.sys.id},payload:n}).then((t=>Hm(e,t)))},getControlForField:function(e){const t=(this.controls||[]).filter((t=>t.fieldId===e));return t&&t.length>0?t[0]:null}}}(e));return Ht(n)}const Xm=zo(Hm);function Gm(e,t){return Ht(Yd(Gt(ao(t)),{}))}const Jm=zo(Gm),Qm=["fieldId"];const Ym=function(e,t,n){const a=e.fields.find((e=>e.id===t));return a?(a[n]=!0,Promise.resolve(e)):Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${t}, on the content type ${e.name}.`))},Zm=(e,t,n)=>{let{fieldId:a}=t,i=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,Qm);return Ym(n,a,"omitted").then((t=>e({entityType:"ContentType",action:"update",params:i,payload:t}))).then((t=>e({entityType:"ContentType",action:"publish",params:i,payload:t}))).then((e=>Ym(e,a,"deleted"))).then((t=>e({entityType:"ContentType",action:"update",params:i,payload:t})))};function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function tf(e){for(var t=1;t{const t=e.toPlainObject();return{raw:t,params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,contentTypeId:t.sys.id}}};return{update:function(){const{raw:n,params:a}=t(this);return e({entityType:"ContentType",action:"update",params:a,payload:n}).then((t=>nf(e,t)))},delete:function(){const{params:n}=t(this);return e({entityType:"ContentType",action:"delete",params:n}).then((()=>{}))},publish:function(){const{raw:n,params:a}=t(this);return e({entityType:"ContentType",action:"publish",params:a,payload:n}).then((t=>nf(e,t)))},unpublish:function(){const{params:n}=t(this);return e({entityType:"ContentType",action:"unpublish",params:n}).then((t=>nf(e,t)))},getEditorInterface:function(){const{params:n}=t(this);return e({entityType:"EditorInterface",action:"get",params:n}).then((t=>Hm(e,t)))},getSnapshots:function(n={}){const{params:a}=t(this);return e({entityType:"Snapshot",action:"getManyForContentType",params:tf(tf({},a),{},{query:n})}).then((t=>Jm(e,t)))},getSnapshot:function(n){const{params:a}=t(this);return e({entityType:"Snapshot",action:"getForContentType",params:tf(tf({},a),{},{snapshotId:n})}).then((e=>Gm(0,e)))},isPublished:function(){return jm(this)},isUpdated:function(){return Im(this)},isDraft:function(){return Pm(this)},omitAndDeleteField:function(n){const{raw:a,params:i}=t(this);return Zm(e,tf(tf({},i),{},{fieldId:n}),a).then((t=>nf(e,t)))}}}(e));return Ht(n)}const af=zo(nf);function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function rf(e){for(var t=1;t{const t=e.toPlainObject();return{params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,entryId:t.sys.id},raw:t}};return{update:function(){const{raw:n,params:a}=p(this);return e({entityType:"Entry",action:"update",params:a,payload:n}).then((n=>t(e,n)))},patch:function(n){const{raw:a,params:i}=p(this);return e({entityType:"Entry",action:"patch",params:rf(rf({},i),{},{version:a.sys.version}),payload:n}).then((n=>t(e,n)))},delete:function(){const{params:t}=p(this);return e({entityType:"Entry",action:"delete",params:t})},publish:function(){const{raw:n,params:a}=p(this);return e({entityType:"Entry",action:"publish",params:a,payload:n}).then((n=>t(e,n)))},unpublish:function(){const{params:n}=p(this);return e({entityType:"Entry",action:"unpublish",params:n}).then((n=>t(e,n)))},archive:function(){const{params:n}=p(this);return e({entityType:"Entry",action:"archive",params:n}).then((n=>t(e,n)))},unarchive:function(){const{params:n}=p(this);return e({entityType:"Entry",action:"unarchive",params:n}).then((n=>t(e,n)))},getSnapshots:function(t={}){const{params:n}=p(this);return e({entityType:"Snapshot",action:"getManyForEntry",params:rf(rf({},n),{},{query:t})}).then((t=>i(e,t)))},getSnapshot:function(t){const{params:n}=p(this);return e({entityType:"Snapshot",action:"getForEntry",params:rf(rf({},n),{},{snapshotId:t})}).then((t=>a(e,t)))},createComment:function(t){const{params:n}=p(this);return e({entityType:"Comment",action:"create",params:{spaceId:n.spaceId,environmentId:n.environmentId,parentEntityId:n.entryId,parentEntityType:"Entry"},payload:t}).then((t=>s(e,t)))},getComments:function(){const{params:t}=p(this);return e({entityType:"Comment",action:"getMany",params:t}).then((t=>c(e,t)))},getComment:function(t){const{params:n}=p(this);return e({entityType:"Comment",action:"get",params:rf(rf({},n),{},{commentId:t})}).then((t=>s(e,t)))},createTask:function(t){const{params:n}=p(this);return e({entityType:"Task",action:"create",params:n,payload:t}).then((t=>o(e,t)))},getTasks:function(t={}){const{params:n}=p(this);return e({entityType:"Task",action:"getMany",params:rf(rf({},n),{},{query:t})}).then((t=>r(e,t)))},getTask:function(t){const{params:n}=p(this);return e({entityType:"Task",action:"get",params:rf(rf({},n),{},{taskId:t})}).then((t=>o(e,t)))},isPublished:function(){const e=this.toPlainObject();return jm(e)},isUpdated:function(){const e=this.toPlainObject();return Im(e)},isDraft:function(){const e=this.toPlainObject();return Pm(e)},isArchived:function(){const e=this.toPlainObject();return Tm(e)},references:function(t){const a=this.toPlainObject();return e({entityType:"Entry",action:"references",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.environment.sys.id,entryId:a.sys.id,include:null==t?void 0:t.include}}).then((t=>n(e,t)))}}}(e));return Ht(n)}const cf=zo(sf);function pf(e,t){const n=Yd(Gt(ao(t)),function(e){return{async get(){const t=(e=>{const t=this.toPlainObject();return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,releaseId:t.sys.release.sys.id,actionId:t.sys.id}})();return e({entityType:"ReleaseAction",action:"get",params:t}).then((t=>pf(e,t)))},async waitProcessing(e){return Fm((async()=>this.get()),e)}}}(e));return Ht(n)}const lf=zo(pf);let uf=function(e){return e.contentTypeAnnotationNotIn="sys.contentType.metadata.annotations.ContentType[nin]",e}({});const df=uf;function mf(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>{const t=e.toPlainObject();return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,releaseId:t.sys.id,version:t.sys.version}};return{async archive(){const n=t(this);return e({entityType:"Release",action:"archive",params:n}).then((t=>mf(e,t)))},async unarchive(){const n=t(this);return e({entityType:"Release",action:"unarchive",params:n}).then((t=>mf(e,t)))},async update(n){const a=t(this);return e({entityType:"Release",action:"update",params:a,payload:n}).then((t=>mf(e,t)))},async delete(){const n=t(this);await e({entityType:"Release",action:"delete",params:n})},async publish(n){const a=t(this);return e({entityType:"Release",action:"publish",params:a}).then((t=>pf(e,t))).then((e=>e.waitProcessing(n)))},async unpublish(n){const a=t(this);return e({entityType:"Release",action:"unpublish",params:a}).then((t=>pf(e,t))).then((e=>e.waitProcessing(n)))},async validate(n){const a=t(this);return e({entityType:"Release",action:"validate",params:a,payload:null==n?void 0:n.payload}).then((t=>pf(e,t))).then((e=>e.waitProcessing(null==n?void 0:n.processingOptions)))}}}(e));return Ht(n)}const ff=Ro(mf);function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function vf(e){for(var t=1;t({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,tagId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Tag",action:"update",params:t(n),payload:n}).then((t=>hf(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Tag",action:"delete",params:vf(vf({},t(n)),{},{version:n.sys.version})}).then((()=>{}))}}}function hf(e,t){return Ht(Yd(Gt(ao(t)),bf(e)))}const gf=zo(hf);function xf(e,t){const n=Yd(Gt(ao(t)),function(e){const{wrapUIConfig:t}=Uy.uiConfig;return{update:async function(){const{raw:n,params:a}=(e=>{const t=this.toPlainObject();return{params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id},raw:t}})(),i=await e({entityType:"UIConfig",action:"update",params:a,payload:n});return t(e,i)}}}(e));return Ht(n)}function Of(e,t){const n=Yd(Gt(ao(t)),function(e){const{wrapUserUIConfig:t}=Uy.userUIConfig;return{update:async function(){const{raw:n,params:a}=(e=>{const t=this.toPlainObject();return{params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id},raw:t}})(),i=await e({entityType:"UserUIConfig",action:"update",params:a,payload:n});return t(e,i)}}}(e));return Ht(n)}function wf(e,t){return Ht(Gt(ao(t)))}const jf=Ro(wf),If=["installationId"];function Pf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Tf(e){for(var t=1;t{}))},update:function(){const n=this.toPlainObject();return e({entityType:"Environment",action:"update",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:n}).then((n=>t(e,n)))},getEntryFromData:t=>i(e,t),getAssetFromData:t=>r(e,t),getBulkAction(t){const n=this.toPlainObject();return e({entityType:"BulkAction",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,bulkActionId:t}}).then((t=>O(e,t)))},createPublishBulkAction(t){const n=this.toPlainObject();return e({entityType:"BulkAction",action:"publish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>O(e,t)))},createValidateBulkAction(t){const n=this.toPlainObject();return e({entityType:"BulkAction",action:"validate",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>O(e,t)))},createUnpublishBulkAction(t){const n=this.toPlainObject();return e({entityType:"BulkAction",action:"unpublish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>O(e,t)))},getContentType(t){const a=this.toPlainObject();return e({entityType:"ContentType",action:"get",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,contentTypeId:t}}).then((t=>n(e,t)))},getContentTypes(t={}){const n=this.toPlainObject();return e({entityType:"ContentType",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>a(e,t)))},createContentType(t){const a=this.toPlainObject();return e({entityType:"ContentType",action:"create",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id},payload:t}).then((t=>n(e,t)))},createContentTypeWithId(t,a){const i=this.toPlainObject();return e({entityType:"ContentType",action:"createWithId",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,contentTypeId:t},payload:a}).then((t=>n(e,t)))},getEditorInterfaceForContentType(t){const n=this.toPlainObject();return e({entityType:"EditorInterface",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:t}}).then((t=>d(e,t)))},getEditorInterfaces(){const t=this.toPlainObject();return e({entityType:"EditorInterface",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then((t=>m(e,t)))},getEntry(t,n={}){const a=this.toPlainObject();return e({entityType:"Entry",action:"get",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,entryId:t,query:Kt({query:n}).params}}).then((t=>i(e,t)))},deleteEntry(t){const n=this.toPlainObject();return e({entityType:"Entry",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,entryId:t}}).then((()=>{}))},getEntries(t={}){const n=this.toPlainObject();return e({entityType:"Entry",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>o(e,t)))},getPublishedEntries(t={}){const n=this.toPlainObject();return e({entityType:"Entry",action:"getPublished",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>o(e,t)))},createEntry(t,n){const a=this.toPlainObject();return e({entityType:"Entry",action:"create",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,contentTypeId:t},payload:n}).then((t=>i(e,t)))},createEntryWithId(t,n,a){const o=this.toPlainObject();return e({entityType:"Entry",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,entryId:n,contentTypeId:t},payload:a}).then((t=>i(e,t)))},getEntryReferences(t,n){const a=this.toPlainObject();return e({entityType:"Entry",action:"references",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,entryId:t,include:null==n?void 0:n.include}}).then((t=>o(e,t)))},getAsset(t,n={}){const a=this.toPlainObject();return e({entityType:"Asset",action:"get",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,assetId:t,query:Kt({query:n}).params}}).then((t=>r(e,t)))},getAssets(t={}){const n=this.toPlainObject();return e({entityType:"Asset",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>s(e,t)))},getPublishedAssets(t={}){const n=this.toPlainObject();return e({entityType:"Asset",action:"getPublished",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>s(e,t)))},createAsset(t){const n=this.toPlainObject();return e({entityType:"Asset",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>r(e,t)))},createAssetWithId(t,n){const a=this.toPlainObject();return e({entityType:"Asset",action:"createWithId",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,assetId:t},payload:n}).then((t=>r(e,t)))},createAssetFromFiles(t,n){const a=this.toPlainObject();return e({entityType:"Asset",action:"createFromFiles",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,uploadTimeout:null==n?void 0:n.uploadTimeout},payload:t}).then((t=>r(e,t)))},createAssetKey(t){const n=this.toPlainObject();return e({entityType:"AssetKey",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>c(e,t)))},getUpload(t){const n=this.toPlainObject();return e({entityType:"Upload",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,uploadId:t}}).then((t=>f(e,t)))},createUpload:function(t){const n=this.toPlainObject();return e({entityType:"Upload",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>f(e,t)))},getLocale(t){const n=this.toPlainObject();return e({entityType:"Locale",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,localeId:t}}).then((t=>p(e,t)))},getLocales(){const t=this.toPlainObject();return e({entityType:"Locale",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then((t=>l(e,t)))},createLocale(t){const n=this.toPlainObject();return e({entityType:"Locale",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>p(e,t)))},getUiExtension(t){const n=this.toPlainObject();return e({entityType:"Extension",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,extensionId:t}}).then((t=>y(e,t)))},getUiExtensions(){const t=this.toPlainObject();return e({entityType:"Extension",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then((t=>v(e,t)))},createUiExtension(t){const n=this.toPlainObject();return e({entityType:"Extension",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>y(e,t)))},createUiExtensionWithId(t,n){const a=this.toPlainObject();return e({entityType:"Extension",action:"createWithId",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,extensionId:t},payload:n}).then((t=>y(e,t)))},createAppInstallation(t,n,{acceptAllTerms:a}={}){const i=this.toPlainObject();return e({entityType:"AppInstallation",action:"upsert",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,appDefinitionId:t,acceptAllTerms:a},payload:n}).then((t=>b(e,t)))},getAppInstallation(t){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,appDefinitionId:t}}).then((t=>b(e,t)))},getAppInstallations(){const t=this.toPlainObject();return e({entityType:"AppInstallation",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then((t=>h(e,t)))},createAppActionCall(t,n,a){const i=this.toPlainObject();return e({entityType:"AppActionCall",action:"create",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,appDefinitionId:t,appActionId:n},payload:a}).then((t=>x(e,t)))},createAppSignedRequest(t,n){const a=this.toPlainObject();return e({entityType:"AppSignedRequest",action:"create",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>g(e,t)))},createAppAccessToken(t,n){const a=this.toPlainObject();return e({entityType:"AppAccessToken",action:"create",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>w(e,t)))},getEntrySnapshots(t,n={}){const a=this.toPlainObject();return e({entityType:"Snapshot",action:"getManyForEntry",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,entryId:t,query:n}}).then((t=>u(e,t)))},getContentTypeSnapshots(t,n={}){const a=this.toPlainObject();return e({entityType:"Snapshot",action:"getManyForContentType",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,contentTypeId:t,query:n}}).then((t=>u(e,t)))},createTag(t,n,a){const i=this.toPlainObject();return e({entityType:"Tag",action:"createWithId",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,tagId:t},payload:{name:n,sys:{visibility:null!=a?a:"private"}}}).then((t=>hf(e,t)))},getTags(t={}){const n=this.toPlainObject();return e({entityType:"Tag",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Kt({query:t}).params}}).then((t=>gf(e,t)))},getTag(t){const n=this.toPlainObject();return e({entityType:"Tag",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,tagId:t}}).then((t=>hf(e,t)))},getRelease(t){const n=this.toPlainObject();return e({entityType:"Release",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:t}}).then((t=>mf(e,t)))},getReleases(t){const n=this.toPlainObject();return e({entityType:"Release",action:"query",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:t}}).then((t=>ff(e,t)))},createRelease(t){const n=this.toPlainObject();return e({entityType:"Release",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then((t=>mf(e,t)))},updateRelease({releaseId:t,payload:n,version:a}){const i=this.toPlainObject();return e({entityType:"Release",action:"update",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,releaseId:t,version:a},payload:n}).then((t=>mf(e,t)))},deleteRelease(t){const n=this.toPlainObject();return e({entityType:"Release",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:t}})},publishRelease({releaseId:t,version:n}){const a=this.toPlainObject();return e({entityType:"Release",action:"publish",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:t,version:n}}).then((t=>pf(e,t)))},unpublishRelease({releaseId:t,version:n}){const a=this.toPlainObject();return e({entityType:"Release",action:"unpublish",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:t,version:n}}).then((t=>pf(e,t)))},validateRelease({releaseId:t,payload:n}){const a=this.toPlainObject();return e({entityType:"Release",action:"validate",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:t},payload:n}).then((t=>pf(e,t)))},archiveRelease({releaseId:t,version:n}){const a=this.toPlainObject();return e({entityType:"Release",action:"archive",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:t,version:n}}).then((t=>mf(e,t)))},unarchiveRelease({releaseId:t,version:n}){const a=this.toPlainObject();return e({entityType:"Release",action:"unarchive",params:{spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:t,version:n}}).then((t=>mf(e,t)))},getReleaseAction({actionId:t,releaseId:n}){const a=this.toPlainObject();return e({entityType:"ReleaseAction",action:"get",params:{actionId:t,spaceId:a.sys.space.sys.id,environmentId:a.sys.id,releaseId:n}}).then((t=>pf(e,t)))},getReleaseActions({query:t}){const n=this.toPlainObject();return e({entityType:"ReleaseAction",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:t}}).then((t=>lf(e,t)))},async getUIConfig(){const t=this.toPlainObject(),n=await e({entityType:"UIConfig",action:"get",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}});return xf(e,n)},async getUserUIConfig(){const t=this.toPlainObject(),n=await e({entityType:"UserUIConfig",action:"get",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}});return Of(e,n)},async getEnvironmentTemplateInstallations(t,n={}){let{installationId:a}=n,i=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,If);const o=this.toPlainObject();return e({entityType:"EnvironmentTemplateInstallation",action:"getForEnvironment",params:Tf(Tf({environmentTemplateId:t},a&&{installationId:a}),{},{query:Tf({},Kt({query:i}).params),spaceId:o.sys.space.sys.id,environmentId:o.sys.id})}).then((t=>jf(e,t)))}}}(e);return Ht(Yd(n,a))}const kf=zo(Sf);function Af(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentAliasId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"update",params:t(n),payload:n}).then((t=>Af(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"delete",params:t(n)}).then((()=>{}))}}}(e));return Ht(n)}const Ef=zo(Af),Cf=["spaceId","environmentId"];function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Df(e){for(var t=1;tn(e,a,t)))},updateVersion:function({versionName:a,versionDescription:i}){const o=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"versionUpdate",params:{organizationId:t,environmentTemplateId:o.sys.id,version:o.sys.version},payload:{versionName:a,versionDescription:i}}).then((a=>n(e,a,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"delete",params:{organizationId:t,environmentTemplateId:n.sys.id}})},getVersions:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"versions",params:{organizationId:t,environmentTemplateId:n.sys.id}}).then((n=>a(e,n,t)))},getInstallations:function(n={}){let{spaceId:a,environmentId:o}=n,r=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,Cf);const s=this.toPlainObject();return e({entityType:"EnvironmentTemplateInstallation",action:"getMany",params:{organizationId:t,environmentTemplateId:s.sys.id,query:Df({},Kt({query:r}).params),spaceId:a,environmentId:o}}).then((t=>i(e,t)))},validate:function({spaceId:t,environmentId:n,version:a,takeover:i,changeSet:o}){const r=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"validate",params:{spaceId:t,version:a,environmentId:n,environmentTemplateId:r.sys.id},payload:Df(Df({},i&&{takeover:i}),o&&{changeSet:o})})},install:function({spaceId:t,environmentId:n,installation:a}){const i=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"install",params:{spaceId:t,environmentId:n,environmentTemplateId:i.sys.id},payload:a})},disconnect:function({spaceId:t,environmentId:n}){const a=this.toPlainObject();return e({entityType:"EnvironmentTemplate",action:"disconnect",params:{spaceId:t,environmentId:n,environmentTemplateId:a.sys.id}})}}}(e,n);return Ht(Yd(a,i))}const Rf=Ro(zf);function Mf(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,extensionId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Extension",action:"update",params:t(n),payload:n}).then((t=>Mf(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Extension",action:"delete",params:t(n)})}}}(e));return Ht(n)}const $f=zo(Mf);function Ff(e,t){delete t.internal_code;const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,localeId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Locale",action:"update",params:t(n),payload:n}).then((t=>Ff(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Locale",action:"delete",params:t(n)}).then((()=>{}))}}}(e));return Ht(n)}const qf=zo(Ff);function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Lf(e){for(var t=1;tP(e,t)))},getUser(t){const n=this.toPlainObject();return e({entityType:"User",action:"getForOrganization",params:{organizationId:n.sys.id,userId:t}}).then((t=>a(e,t)))},getUsers(t={}){const n=this.toPlainObject();return e({entityType:"User",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Kt({query:t}).params}}).then((t=>i(e,t)))},getOrganizationMembership(t){const n=this.toPlainObject().sys.id;return e({entityType:"OrganizationMembership",action:"get",params:{organizationId:n,organizationMembershipId:t}}).then((t=>o(e,t,n)))},getOrganizationMemberships(t={}){const n=this.toPlainObject();return e({entityType:"OrganizationMembership",action:"getMany",params:Lf({organizationId:n.sys.id},t)}).then((t=>r(e,t,n.sys.id)))},createTeam(t){const n=this.toPlainObject();return e({entityType:"Team",action:"create",params:{organizationId:n.sys.id},payload:t}).then((t=>u(e,t)))},getTeam(t){const n=this.toPlainObject();return e({entityType:"Team",action:"get",params:{organizationId:n.sys.id,teamId:t}}).then((t=>u(e,t)))},getTeams(t={}){const n=this.toPlainObject();return e({entityType:"Team",action:"getMany",params:{organizationId:n.sys.id,query:Kt({query:t}).params}}).then((t=>d(e,t)))},createTeamMembership(t,n){const a=this.toPlainObject();return e({entityType:"TeamMembership",action:"create",params:{organizationId:a.sys.id,teamId:t},payload:n}).then((t=>s(e,t)))},getTeamMembership(t,n){const a=this.toPlainObject();return e({entityType:"TeamMembership",action:"get",params:{organizationId:a.sys.id,teamId:t,teamMembershipId:n}}).then((t=>s(e,t)))},getTeamMemberships(t={}){const{teamId:n,query:a={}}=t,i=this.toPlainObject();return n?e({entityType:"TeamMembership",action:"getManyForTeam",params:{organizationId:i.sys.id,teamId:n,query:Kt({query:a}).params}}).then((t=>c(e,t))):e({entityType:"TeamMembership",action:"getManyForOrganization",params:{organizationId:i.sys.id,query:Kt({query:a}).params}}).then((t=>c(e,t)))},getTeamSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Kt({query:t.query||{}}).params,teamId:t.teamId}}).then((t=>l(e,t)))},getTeamSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,teamSpaceMembershipId:t}}).then((t=>p(e,t)))},getOrganizationSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,spaceMembershipId:t}}).then((t=>m(e,t)))},getOrganizationSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Kt({query:t}).params}}).then((t=>f(e,t)))},getOrganizationInvitation(t){const n=this.toPlainObject();return e({entityType:"OrganizationInvitation",action:"get",params:{organizationId:n.sys.id,invitationId:t}}).then((t=>y(e,t)))},createOrganizationInvitation(t){const n=this.toPlainObject();return e({entityType:"OrganizationInvitation",action:"create",params:{organizationId:n.sys.id},payload:t}).then((t=>y(e,t)))},getRoles(t={}){const n=this.toPlainObject();return e({entityType:"Role",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Kt({query:t}).params}}).then((t=>I(e,t)))},createAppDefinition(n){const a=this.toPlainObject();return e({entityType:"AppDefinition",action:"create",params:{organizationId:a.sys.id},payload:n}).then((n=>t(e,n)))},getAppDefinitions(t={}){const a=this.toPlainObject();return e({entityType:"AppDefinition",action:"getMany",params:{organizationId:a.sys.id,query:t}}).then((t=>n(e,t)))},getAppDefinition(n){const a=this.toPlainObject();return e({entityType:"AppDefinition",action:"get",params:{organizationId:a.sys.id,appDefinitionId:n}}).then((n=>t(e,n)))},getAppUpload(t){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"get",params:{organizationId:n.sys.id,appUploadId:t}}).then((t=>v(e,t)))},createAppUpload(t){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"create",params:{organizationId:n.sys.id},payload:{file:t}}).then((t=>v(e,t)))},upsertAppSigningSecret(t,n){const a=this.toPlainObject();return e({entityType:"AppSigningSecret",action:"upsert",params:{organizationId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>b(e,t)))},getAppSigningSecret(t){const n=this.toPlainObject();return e({entityType:"AppSigningSecret",action:"get",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((t=>b(e,t)))},deleteAppSigningSecret(t){const n=this.toPlainObject();return e({entityType:"AppSigningSecret",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((()=>{}))},upsertAppEventSubscription(t,n){const a=this.toPlainObject();return e({entityType:"AppEventSubscription",action:"upsert",params:{organizationId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>h(e,t)))},getAppEventSubscription(t){const n=this.toPlainObject();return e({entityType:"AppEventSubscription",action:"get",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((t=>h(e,t)))},deleteAppEventSubscription(t){const n=this.toPlainObject();return e({entityType:"AppEventSubscription",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((()=>{}))},createAppKey(t,n){const a=this.toPlainObject();return e({entityType:"AppKey",action:"create",params:{organizationId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>g(e,t)))},getAppKey(t,n){const a=this.toPlainObject();return e({entityType:"AppKey",action:"get",params:{organizationId:a.sys.id,appDefinitionId:t,fingerprint:n}}).then((t=>g(e,t)))},getAppKeys(t,n={}){const a=this.toPlainObject();return e({entityType:"AppKey",action:"getMany",params:{organizationId:a.sys.id,appDefinitionId:t,query:Kt({query:n}).params}}).then((t=>x(e,t)))},deleteAppKey(t,n){const a=this.toPlainObject();return e({entityType:"AppKey",action:"delete",params:{organizationId:a.sys.id,appDefinitionId:t,fingerprint:n}}).then((()=>{}))},upsertAppDetails(t,n){const a=this.toPlainObject();return e({entityType:"AppDetails",action:"upsert",params:{organizationId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>O(e,t)))},getAppDetails(t){const n=this.toPlainObject();return e({entityType:"AppDetails",action:"get",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((t=>O(e,t)))},deleteAppDetails(t){const n=this.toPlainObject();return e({entityType:"AppDetails",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((()=>{}))},createAppAction(t,n){const a=this.toPlainObject();return e({entityType:"AppAction",action:"create",params:{organizationId:a.sys.id,appDefinitionId:t},payload:n}).then((t=>w(e,t)))},updateAppAction(t,n,a){const i=this.toPlainObject();return e({entityType:"AppAction",action:"update",params:{organizationId:i.sys.id,appDefinitionId:t,appActionId:n},payload:a}).then((t=>w(e,t)))},deleteAppAction(t,n){const a=this.toPlainObject();return e({entityType:"AppAction",action:"delete",params:{organizationId:a.sys.id,appDefinitionId:t,appActionId:n}}).then((e=>{}))},getAppAction(t,n){const a=this.toPlainObject();return e({entityType:"AppAction",action:"get",params:{organizationId:a.sys.id,appDefinitionId:t,appActionId:n}}).then((t=>w(e,t)))},getAppActions(t){const n=this.toPlainObject();return e({entityType:"AppAction",action:"getMany",params:{organizationId:n.sys.id,appDefinitionId:t}}).then((t=>j(e,t)))}}}(e);return Ht(Yd(n,a))}const Nf=zo(Bf);function Wf(e,t){return Ht(Gt(ao(t)))}function Kf(e,t,n){const a=Yd(Gt(ao(t)),function(e,t){const n=e=>({organizationMembershipId:e.sys.id,organizationId:t});return{update:function(){const a=this.toPlainObject();return e({entityType:"OrganizationMembership",action:"update",params:n(a),payload:a}).then((n=>Kf(e,n,t)))},delete:function(){const t=this.toPlainObject();return e({entityType:"OrganizationMembership",action:"delete",params:n(t)})}}}(e,n));return Ht(a)}const Vf=zo(Kf);function Hf(e,t){return Ht(Yd(Gt(ao(t)),{revoke:function(){return e({entityType:"PersonalAccessToken",action:"revoke",params:{tokenId:t.sys.id}}).then((t=>Hf(e,t)))}}))}const Xf=zo(Hf);function Gf(e,t){return Ht(Yd(Gt(ao(t)),{revoke:function(){return e({entityType:"AccessToken",action:"revoke",params:{tokenId:t.sys.id}}).then((t=>Gf(e,t)))}}))}const Jf=zo(Gf);function Qf(e,t){return Ht(Yd(Gt(ao(t)),{}))}const Yf=zo(Qf);function Zf(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,roleId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Role",action:"update",params:t(n),payload:n}).then((t=>Zf(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Role",action:"delete",params:t(n)})}}}(e));return Ht(n)}const ey=zo(Zf),ty=["sys"];function ny(e){const t=e=>{var t;const n=e.toPlainObject();return{spaceId:n.sys.space.sys.id,environmentId:null===(t=n.environment)||void 0===t?void 0:t.sys.id,scheduledActionId:n.sys.id,version:n.sys.version}};return{async delete(){const n=t(this);return e({entityType:"ScheduledAction",action:"delete",params:n}).then((t=>ay(e,t)))},async update(){const n=t(this),a=this.toPlainObject(),{sys:i}=a,o=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(a,ty);return e({entityType:"ScheduledAction",action:"update",params:n,payload:o}).then((t=>ay(e,t)))}}}function ay(e,t){return Ht(Yd(Gt(ao(t)),ny(e)))}const iy=zo(ay);function oy(e,t){const n=Gt(ao(t)),a=function(e){const{wrapSpace:t}=Uy.space,{wrapEnvironment:n,wrapEnvironmentCollection:a}=Uy.environment,{wrapWebhook:i,wrapWebhookCollection:o}=Uy.webhook,{wrapRole:r,wrapRoleCollection:s}=Uy.role,{wrapUser:c,wrapUserCollection:p}=Uy.user,{wrapSpaceMember:l,wrapSpaceMemberCollection:u}=Uy.spaceMember,{wrapSpaceMembership:d,wrapSpaceMembershipCollection:m}=Uy.spaceMembership,{wrapTeamSpaceMembership:f,wrapTeamSpaceMembershipCollection:y}=Uy.teamSpaceMembership,{wrapTeamCollection:v}=Uy.team,{wrapApiKey:b,wrapApiKeyCollection:h}=Uy.apiKey,{wrapEnvironmentAlias:g,wrapEnvironmentAliasCollection:x}=Uy.environmentAlias,{wrapPreviewApiKey:O,wrapPreviewApiKeyCollection:w}=Uy.previewApiKey,{wrapScheduledAction:j,wrapScheduledActionCollection:I}=Uy.scheduledAction;return{delete:function(){const t=this.toPlainObject();return e({entityType:"Space",action:"delete",params:{spaceId:t.sys.id}})},update:function(){const n=this.toPlainObject();return e({entityType:"Space",action:"update",params:{spaceId:n.sys.id},payload:n,headers:{}}).then((n=>t(e,n)))},getEnvironment(t){const a=this.toPlainObject();return e({entityType:"Environment",action:"get",params:{spaceId:a.sys.id,environmentId:t}}).then((t=>n(e,t)))},getEnvironments(t={}){const n=this.toPlainObject();return e({entityType:"Environment",action:"getMany",params:{spaceId:n.sys.id,query:t}}).then((t=>a(e,t)))},createEnvironment(t={}){const a=this.toPlainObject();return e({entityType:"Environment",action:"create",params:{spaceId:a.sys.id},payload:t}).then((t=>n(e,t)))},createEnvironmentWithId(t,a,i){const o=this.toPlainObject();return e({entityType:"Environment",action:"createWithId",params:{spaceId:o.sys.id,environmentId:t,sourceEnvironmentId:i},payload:a}).then((t=>n(e,t)))},getWebhook(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"get",params:{spaceId:n.sys.id,webhookDefinitionId:t}}).then((t=>i(e,t)))},getWebhooks(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"getMany",params:{spaceId:t.sys.id}}).then((t=>o(e,t)))},getWebhookSigningSecret:function(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"getSigningSecret",params:{spaceId:t.sys.id}})},getWebhookRetryPolicy:function(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"getRetryPolicy",params:{spaceId:t.sys.id}})},createWebhook(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"create",params:{spaceId:n.sys.id},payload:t}).then((t=>i(e,t)))},createWebhookWithId(t,n){const a=this.toPlainObject();return e({entityType:"Webhook",action:"createWithId",params:{spaceId:a.sys.id,webhookDefinitionId:t},payload:n}).then((t=>i(e,t)))},upsertWebhookSigningSecret:function(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"upsertSigningSecret",params:{spaceId:n.sys.id},payload:t})},upsertWebhookRetryPolicy:function(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"upsertRetryPolicy",params:{spaceId:n.sys.id},payload:t})},deleteWebhookSigningSecret:function(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"deleteSigningSecret",params:{spaceId:t.sys.id}})},deleteWebhookRetryPolicy:function(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"deleteRetryPolicy",params:{spaceId:t.sys.id}})},getRole(t){const n=this.toPlainObject();return e({entityType:"Role",action:"get",params:{spaceId:n.sys.id,roleId:t}}).then((t=>r(e,t)))},getRoles(t={}){const n=this.toPlainObject();return e({entityType:"Role",action:"getMany",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>s(e,t)))},createRole(t){const n=this.toPlainObject();return e({entityType:"Role",action:"create",params:{spaceId:n.sys.id},payload:t}).then((t=>r(e,t)))},createRoleWithId(t,n){const a=this.toPlainObject();return e({entityType:"Role",action:"createWithId",params:{spaceId:a.sys.id,roleId:t},payload:n}).then((t=>r(e,t)))},getSpaceUser(t){const n=this.toPlainObject();return e({entityType:"User",action:"getForSpace",params:{spaceId:n.sys.id,userId:t}}).then((t=>c(e,t)))},getSpaceUsers(t={}){const n=this.toPlainObject();return e({entityType:"User",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>p(e,t)))},getTeams(t={limit:100}){const n=this.toPlainObject();return e({entityType:"Team",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>v(e,t)))},getSpaceMember(t){const n=this.toPlainObject();return e({entityType:"SpaceMember",action:"get",params:{spaceId:n.sys.id,spaceMemberId:t}}).then((t=>l(e,t)))},getSpaceMembers(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMember",action:"getMany",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>u(e,t)))},getSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"get",params:{spaceId:n.sys.id,spaceMembershipId:t}}).then((t=>d(e,t)))},getSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>m(e,t)))},createSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"create",params:{spaceId:n.sys.id},payload:t}).then((t=>d(e,t)))},createSpaceMembershipWithId(t,n){const a=this.toPlainObject();return e({entityType:"SpaceMembership",action:"createWithId",params:{spaceId:a.sys.id,spaceMembershipId:t},payload:n}).then((t=>d(e,t)))},getTeamSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"get",params:{spaceId:n.sys.id,teamSpaceMembershipId:t}}).then((t=>f(e,t)))},getTeamSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Kt({query:t}).params}}).then((t=>y(e,t)))},createTeamSpaceMembership(t,n){const a=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"create",params:{spaceId:a.sys.id,teamId:t},payload:n}).then((t=>f(e,t)))},getApiKey(t){const n=this.toPlainObject();return e({entityType:"ApiKey",action:"get",params:{spaceId:n.sys.id,apiKeyId:t}}).then((t=>b(e,t)))},getApiKeys(){const t=this.toPlainObject();return e({entityType:"ApiKey",action:"getMany",params:{spaceId:t.sys.id}}).then((t=>h(e,t)))},getPreviewApiKeys(){const t=this.toPlainObject();return e({entityType:"PreviewApiKey",action:"getMany",params:{spaceId:t.sys.id}}).then((t=>w(e,t)))},getPreviewApiKey(t){const n=this.toPlainObject();return e({entityType:"PreviewApiKey",action:"get",params:{spaceId:n.sys.id,previewApiKeyId:t}}).then((t=>O(e,t)))},createApiKey:function(t){const n=this.toPlainObject();return e({entityType:"ApiKey",action:"create",params:{spaceId:n.sys.id},payload:t}).then((t=>b(e,t)))},createApiKeyWithId(t,n){const a=this.toPlainObject();return e({entityType:"ApiKey",action:"createWithId",params:{spaceId:a.sys.id,apiKeyId:t},payload:n}).then((t=>b(e,t)))},createEnvironmentAliasWithId(t,n){const a=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"createWithId",params:{spaceId:a.sys.id,environmentAliasId:t},payload:n}).then((t=>g(e,t)))},getEnvironmentAlias(t){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"get",params:{spaceId:n.sys.id,environmentAliasId:t}}).then((t=>g(e,t)))},getEnvironmentAliases(){const t=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"getMany",params:{spaceId:t.sys.id}}).then((t=>x(e,t)))},getScheduledActions(t){const n=this.toPlainObject();return e({entityType:"ScheduledAction",action:"getMany",params:{spaceId:n.sys.id,query:t}}).then((t=>I(e,t)))},getScheduledAction({scheduledActionId:t,environmentId:n}){const a=this.toPlainObject();return e({entityType:"ScheduledAction",action:"get",params:{spaceId:a.sys.id,environmentId:n,scheduledActionId:t}}).then((t=>j(e,t)))},createScheduledAction(t){const n=this.toPlainObject();return e({entityType:"ScheduledAction",action:"create",params:{spaceId:n.sys.id},payload:t}).then((t=>j(e,t)))},updateScheduledAction({scheduledActionId:t,payload:n,version:a}){const i=this.toPlainObject();return e({entityType:"ScheduledAction",action:"update",params:{spaceId:i.sys.id,version:a,scheduledActionId:t},payload:n}).then((t=>j(e,t)))},deleteScheduledAction({scheduledActionId:t,environmentId:n}){const a=this.toPlainObject();return e({entityType:"ScheduledAction",action:"delete",params:{spaceId:a.sys.id,environmentId:n,scheduledActionId:t}}).then((t=>j(e,t)))}}}(e);return Ht(Yd(n,a))}const ry=zo(oy);function sy(e,t){return Ht(Gt(ao(t)))}const cy=zo(sy);function py(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,spaceMembershipId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"update",params:t(n),payload:n}).then((t=>py(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"delete",params:t(n)})}}}(e));return Ht(n)}const ly=zo(py);function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function dy(e){for(var t=1;t({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,entryId:e.sys.parentEntity.sys.id,taskId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Task",action:"update",params:t(n),payload:n}).then((t=>fy(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Task",action:"delete",params:dy(dy({},t(n)),{},{version:n.sys.version})}).then((()=>{}))}}}function fy(e,t){return Ht(Yd(Gt(ao(t)),my(e)))}const yy=zo(fy);function vy(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({teamId:e.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Team",action:"update",params:t(n),payload:n}).then((t=>vy(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Team",action:"delete",params:t(n)})}}}(e));return Ht(n)}const by=zo(vy);function hy(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({teamMembershipId:e.sys.id,teamId:e.sys.team.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"TeamMembership",action:"update",params:t(n),payload:n}).then((t=>hy(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"TeamMembership",action:"delete",params:t(n)})}}}(e));return Ht(n)}const gy=zo(hy);function xy(e,t){const n=Yd(Gt(ao(t)),function(e){const t=e=>({teamSpaceMembershipId:e.sys.id,spaceId:e.sys.space.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"update",params:t(n),payload:n}).then((t=>xy(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"delete",params:t(n)})}}}(e));return Ht(n)}const Oy=zo(xy);function wy(e,t){const n=Yd(Gt(ao(t)),function(e){return{delete:async function(){const t=this.toPlainObject();await e({entityType:"Upload",action:"delete",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id,uploadId:t.sys.id}})}}}(e));return Ht(n)}function jy(e,t){return Ht(Yd(Gt(ao(t)),{}))}const Iy=zo(jy);function Py(e,t){return Ht(Yd(Gt(ao(t)),{}))}const Ty=zo(Py);function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ky(e){for(var t=1;t({spaceId:e.sys.space.sys.id,webhookDefinitionId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"update",params:t(n),payload:n}).then((t=>Ay(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"delete",params:t(n)})},getCalls:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"getManyCallDetails",params:t(n)})},getCall:function(n){const a=this.toPlainObject();return e({entityType:"Webhook",action:"getCallDetails",params:ky(ky({},t(a)),{},{callId:n})})},getHealth:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"getHealthStatus",params:t(n)})}}}(e));return Ht(n)}const Ey=zo(Ay);function Cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function _y(e){for(var t=1;t({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,workflowDefinitionId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"WorkflowDefinition",action:"update",params:t(n),payload:n}).then((t=>Fy(e,t)))},delete:function(){const n=this.toPlainObject();return e({entityType:"WorkflowDefinition",action:"delete",params:_y(_y({},t(n)),{},{version:n.sys.version})}).then((()=>{}))}}}function Fy(e,t){return Ht(Yd(Gt(ao(t)),$y(e)))}const qy=zo(Fy),Uy={accessToken:Ue,appAction:oe,appActionCall:re,appBundle:se,apiKey:ie,appDefinition:ce,appInstallation:le,appUpload:ve,appDetails:pe,appSignedRequest:ue,appSigningSecret:de,appEventSubscription:me,appKey:fe,appAccessToken:ye,asset:be,assetKey:he,bulkAction:ge,comment:xe,contentType:je,editorInterface:Oe,entry:Ie,environment:Ce,environmentAlias:_e,environmentTemplate:De,environmentTemplateInstallation:Ee,extension:ze,locale:Re,organization:Me,organizationInvitation:$e,organizationMembership:Fe,personalAccessToken:qe,previewApiKey:Le,release:Te,releaseAction:Pe,role:Be,scheduledAction:Ne,snapshot:we,space:We,spaceMember:Ke,spaceMembership:Ve,tag:Se,task:He,team:Xe,teamMembership:Ge,teamSpaceMembership:Je,uiConfig:ke,upload:Qe,usage:Ye,user:Ze,userUIConfig:Ae,webhook:et,workflowDefinition:tt},Ly=["url"];function By(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ny(e){for(var t=1;t(i,o,r)=>e({entityType:n,action:a,params:Ny(Ny({},t),i),payload:o,headers:r});function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Vy(e){for(var t=1;t{const n={makeRequest:e,defaults:t};return{raw:{getDefaultParams:()=>t,get:(t,n)=>e({entityType:"Http",action:"get",params:{url:t,config:n}}),patch:(t,n,a)=>e({entityType:"Http",action:"patch",params:{url:t,config:a},payload:n}),post:(t,n,a)=>e({entityType:"Http",action:"post",params:{url:t,config:a},payload:n}),put:(t,n,a)=>e({entityType:"Http",action:"put",params:{url:t,config:a},payload:n}),delete:(t,n)=>e({entityType:"Http",action:"delete",params:{url:t,config:n}}),http:(t,n)=>e({entityType:"Http",action:"request",params:{url:t,config:n}})},appAction:{get:Wy(n,"AppAction","get"),getMany:Wy(n,"AppAction","getMany"),getManyForEnvironment:Wy(n,"AppAction","getManyForEnvironment"),delete:Wy(n,"AppAction","delete"),create:Wy(n,"AppAction","create"),update:Wy(n,"AppAction","update")},appActionCall:{create:Wy(n,"AppActionCall","create"),getCallDetails:Wy(n,"AppActionCall","getCallDetails"),createWithResponse:Wy(n,"AppActionCall","createWithResponse")},appBundle:{get:Wy(n,"AppBundle","get"),getMany:Wy(n,"AppBundle","getMany"),delete:Wy(n,"AppBundle","delete"),create:Wy(n,"AppBundle","create")},appDetails:{upsert:Wy(n,"AppDetails","upsert"),get:Wy(n,"AppDetails","get"),delete:Wy(n,"AppDetails","delete")},appEventSubscription:{upsert:Wy(n,"AppEventSubscription","upsert"),get:Wy(n,"AppEventSubscription","get"),delete:Wy(n,"AppEventSubscription","delete")},appKey:{create:Wy(n,"AppKey","create"),get:Wy(n,"AppKey","get"),getMany:Wy(n,"AppKey","getMany"),delete:Wy(n,"AppKey","delete")},appSignedRequest:{create:Wy(n,"AppSignedRequest","create")},appSigningSecret:{upsert:Wy(n,"AppSigningSecret","upsert"),get:Wy(n,"AppSigningSecret","get"),delete:Wy(n,"AppSigningSecret","delete")},appAccessToken:{create:Wy(n,"AppAccessToken","create")},function:{getMany:Wy(n,"Function","getMany")},editorInterface:{get:Wy(n,"EditorInterface","get"),getMany:Wy(n,"EditorInterface","getMany"),update:Wy(n,"EditorInterface","update")},space:{get:Wy(n,"Space","get"),getMany:Wy(n,"Space","getMany"),getManyForOrganization:Wy(n,"Space","getManyForOrganization"),update:Wy(n,"Space","update"),delete:Wy(n,"Space","delete"),create:Wy(n,"Space","create")},environment:{get:Wy(n,"Environment","get"),getMany:Wy(n,"Environment","getMany"),create:Wy(n,"Environment","create"),createWithId:Wy(n,"Environment","createWithId"),update:Wy(n,"Environment","update"),delete:Wy(n,"Environment","delete")},environmentAlias:{get:Wy(n,"EnvironmentAlias","get"),getMany:Wy(n,"EnvironmentAlias","getMany"),createWithId:Wy(n,"EnvironmentAlias","createWithId"),update:Wy(n,"EnvironmentAlias","update"),delete:Wy(n,"EnvironmentAlias","delete")},environmentTemplate:{get:Wy(n,"EnvironmentTemplate","get"),getMany:Wy(n,"EnvironmentTemplate","getMany"),create:Wy(n,"EnvironmentTemplate","create"),versionUpdate:Wy(n,"EnvironmentTemplate","versionUpdate"),update:Wy(n,"EnvironmentTemplate","update"),install:Wy(n,"EnvironmentTemplate","install"),versions:Wy(n,"EnvironmentTemplate","versions"),validate:Wy(n,"EnvironmentTemplate","validate"),disconnect:Wy(n,"EnvironmentTemplate","disconnect"),delete:Wy(n,"EnvironmentTemplate","delete")},environmentTemplateInstallation:{getMany:Wy(n,"EnvironmentTemplateInstallation","getMany"),getForEnvironment:Wy(n,"EnvironmentTemplateInstallation","getForEnvironment")},bulkAction:{get:Wy(n,"BulkAction","get"),publish:Wy(n,"BulkAction","publish"),unpublish:Wy(n,"BulkAction","unpublish"),validate:Wy(n,"BulkAction","validate")},comment:{get:Wy(n,"Comment","get"),getMany:Wy(n,"Comment","getMany"),create:Wy(n,"Comment","create"),update:Wy(n,"Comment","update"),delete:Wy(n,"Comment","delete")},contentType:{get:Wy(n,"ContentType","get"),getMany:Wy(n,"ContentType","getMany"),update:Wy(n,"ContentType","update"),delete:Wy(n,"ContentType","delete"),publish:Wy(n,"ContentType","publish"),unpublish:Wy(n,"ContentType","unpublish"),create:Wy(n,"ContentType","create"),createWithId:Wy(n,"ContentType","createWithId"),omitAndDeleteField:(n,a,i)=>Zm(e,Vy(Vy({},Vy(Vy({},t),n)),{},{fieldId:i}),a)},user:{getManyForSpace:Wy(n,"User","getManyForSpace"),getForSpace:Wy(n,"User","getForSpace"),getCurrent:Wy(n,"User","getCurrent"),getForOrganization:Wy(n,"User","getForOrganization"),getManyForOrganization:Wy(n,"User","getManyForOrganization")},task:{get:Wy(n,"Task","get"),getMany:Wy(n,"Task","getMany"),create:Wy(n,"Task","create"),update:Wy(n,"Task","update"),delete:Wy(n,"Task","delete")},entry:{getPublished:Wy(n,"Entry","getPublished"),getMany:Wy(n,"Entry","getMany"),get:Wy(n,"Entry","get"),update:Wy(n,"Entry","update"),patch:Wy(n,"Entry","patch"),delete:Wy(n,"Entry","delete"),publish:Wy(n,"Entry","publish"),unpublish:Wy(n,"Entry","unpublish"),archive:Wy(n,"Entry","archive"),unarchive:Wy(n,"Entry","unarchive"),create:Wy(n,"Entry","create"),createWithId:Wy(n,"Entry","createWithId"),references:Wy(n,"Entry","references")},asset:{getPublished:Wy(n,"Asset","getPublished"),getMany:Wy(n,"Asset","getMany"),get:Wy(n,"Asset","get"),update:Wy(n,"Asset","update"),delete:Wy(n,"Asset","delete"),publish:Wy(n,"Asset","publish"),unpublish:Wy(n,"Asset","unpublish"),archive:Wy(n,"Asset","archive"),unarchive:Wy(n,"Asset","unarchive"),create:Wy(n,"Asset","create"),createWithId:Wy(n,"Asset","createWithId"),createFromFiles:Wy(n,"Asset","createFromFiles"),processForAllLocales:(n,a,i)=>e({entityType:"Asset",action:"processForAllLocales",params:Vy(Vy({},Vy(Vy({},t),n)),{},{options:i,asset:a})}),processForLocale:(n,a,i,o)=>e({entityType:"Asset",action:"processForLocale",params:Vy(Vy({},Vy(Vy({},t),n)),{},{locale:i,asset:a,options:o})})},appUpload:{get:Wy(n,"AppUpload","get"),delete:Wy(n,"AppUpload","delete"),create:Wy(n,"AppUpload","create")},assetKey:{create:Wy(n,"AssetKey","create")},upload:{get:Wy(n,"Upload","get"),create:Wy(n,"Upload","create"),delete:Wy(n,"Upload","delete")},locale:{get:Wy(n,"Locale","get"),getMany:Wy(n,"Locale","getMany"),delete:Wy(n,"Locale","delete"),update:Wy(n,"Locale","update"),create:Wy(n,"Locale","create")},personalAccessToken:{get:Wy(n,"PersonalAccessToken","get"),getMany:Wy(n,"PersonalAccessToken","getMany"),create:(t,n)=>e({entityType:"PersonalAccessToken",action:"create",params:{},headers:n,payload:t}),revoke:Wy(n,"PersonalAccessToken","revoke")},accessToken:{get:Wy(n,"AccessToken","get"),getMany:Wy(n,"AccessToken","getMany"),createPersonalAccessToken:(t,n)=>e({entityType:"AccessToken",action:"createPersonalAccessToken",params:{},headers:n,payload:t}),revoke:Wy(n,"AccessToken","revoke"),getManyForOrganization:Wy(n,"AccessToken","getManyForOrganization")},usage:{getManyForSpace:Wy(n,"Usage","getManyForSpace"),getManyForOrganization:Wy(n,"Usage","getManyForOrganization")},release:{archive:Wy(n,"Release","archive"),get:Wy(n,"Release","get"),query:Wy(n,"Release","query"),create:Wy(n,"Release","create"),update:Wy(n,"Release","update"),delete:Wy(n,"Release","delete"),publish:Wy(n,"Release","publish"),unarchive:Wy(n,"Release","unarchive"),unpublish:Wy(n,"Release","unpublish"),validate:Wy(n,"Release","validate")},releaseAction:{get:Wy(n,"ReleaseAction","get"),getMany:Wy(n,"ReleaseAction","getMany"),queryForRelease:Wy(n,"ReleaseAction","queryForRelease")},role:{get:Wy(n,"Role","get"),getMany:Wy(n,"Role","getMany"),getManyForOrganization:Wy(n,"Role","getManyForOrganization"),create:Wy(n,"Role","create"),createWithId:Wy(n,"Role","createWithId"),update:Wy(n,"Role","update"),delete:Wy(n,"Role","delete")},scheduledActions:{get:Wy(n,"ScheduledAction","get"),getMany:Wy(n,"ScheduledAction","getMany"),create:Wy(n,"ScheduledAction","create"),delete:Wy(n,"ScheduledAction","delete"),update:Wy(n,"ScheduledAction","update")},previewApiKey:{get:Wy(n,"PreviewApiKey","get"),getMany:Wy(n,"PreviewApiKey","getMany")},apiKey:{get:Wy(n,"ApiKey","get"),getMany:Wy(n,"ApiKey","getMany"),create:Wy(n,"ApiKey","create"),createWithId:Wy(n,"ApiKey","createWithId"),update:Wy(n,"ApiKey","update"),delete:Wy(n,"ApiKey","delete")},appDefinition:{get:Wy(n,"AppDefinition","get"),getMany:Wy(n,"AppDefinition","getMany"),create:Wy(n,"AppDefinition","create"),update:Wy(n,"AppDefinition","update"),delete:Wy(n,"AppDefinition","delete"),getInstallationsForOrg:Wy(n,"AppDefinition","getInstallationsForOrg")},appInstallation:{get:Wy(n,"AppInstallation","get"),getMany:Wy(n,"AppInstallation","getMany"),getForOrganization:Wy(n,"AppInstallation","getForOrganization"),upsert:Wy(n,"AppInstallation","upsert"),delete:Wy(n,"AppInstallation","delete")},extension:{get:Wy(n,"Extension","get"),getMany:Wy(n,"Extension","getMany"),create:Wy(n,"Extension","create"),createWithId:Wy(n,"Extension","createWithId"),update:Wy(n,"Extension","update"),delete:Wy(n,"Extension","delete")},webhook:{get:Wy(n,"Webhook","get"),getMany:Wy(n,"Webhook","getMany"),getHealthStatus:Wy(n,"Webhook","getHealthStatus"),getCallDetails:Wy(n,"Webhook","getCallDetails"),getSigningSecret:Wy(n,"Webhook","getSigningSecret"),getRetryPolicy:Wy(n,"Webhook","getRetryPolicy"),getManyCallDetails:Wy(n,"Webhook","getManyCallDetails"),create:Wy(n,"Webhook","create"),update:Wy(n,"Webhook","update"),upsertSigningSecret:Wy(n,"Webhook","upsertSigningSecret"),upsertRetryPolicy:Wy(n,"Webhook","upsertRetryPolicy"),delete:Wy(n,"Webhook","delete"),deleteSigningSecret:Wy(n,"Webhook","deleteSigningSecret"),deleteRetryPolicy:Wy(n,"Webhook","deleteRetryPolicy")},snapshot:{getManyForEntry:Wy(n,"Snapshot","getManyForEntry"),getForEntry:Wy(n,"Snapshot","getForEntry"),getManyForContentType:Wy(n,"Snapshot","getManyForContentType"),getForContentType:Wy(n,"Snapshot","getForContentType")},tag:{get:Wy(n,"Tag","get"),getMany:Wy(n,"Tag","getMany"),createWithId:Wy(n,"Tag","createWithId"),update:Wy(n,"Tag","update"),delete:Wy(n,"Tag","delete")},organization:{getAll:Wy(n,"Organization","getMany"),get:Wy(n,"Organization","get")},organizationInvitation:{get:Wy(n,"OrganizationInvitation","get"),create:Wy(n,"OrganizationInvitation","create")},organizationMembership:{get:Wy(n,"OrganizationMembership","get"),getMany:Wy(n,"OrganizationMembership","getMany"),update:Wy(n,"OrganizationMembership","update"),delete:Wy(n,"OrganizationMembership","delete")},spaceMember:{get:Wy(n,"SpaceMember","get"),getMany:Wy(n,"SpaceMember","getMany")},spaceMembership:{get:Wy(n,"SpaceMembership","get"),getMany:Wy(n,"SpaceMembership","getMany"),getForOrganization:Wy(n,"SpaceMembership","getForOrganization"),getManyForOrganization:Wy(n,"SpaceMembership","getManyForOrganization"),create:Wy(n,"SpaceMembership","create"),createWithId:Wy(n,"SpaceMembership","createWithId"),update:Wy(n,"SpaceMembership","update"),delete:Wy(n,"SpaceMembership","delete")},team:{get:Wy(n,"Team","get"),getMany:Wy(n,"Team","getMany"),getManyForSpace:Wy(n,"Team","getManyForSpace"),create:Wy(n,"Team","create"),update:Wy(n,"Team","update"),delete:Wy(n,"Team","delete")},teamMembership:{get:Wy(n,"TeamMembership","get"),getManyForOrganization:Wy(n,"TeamMembership","getManyForOrganization"),getManyForTeam:Wy(n,"TeamMembership","getManyForTeam"),create:Wy(n,"TeamMembership","create"),update:Wy(n,"TeamMembership","update"),delete:Wy(n,"TeamMembership","delete")},teamSpaceMembership:{get:Wy(n,"TeamSpaceMembership","get"),getMany:Wy(n,"TeamSpaceMembership","getMany"),getForOrganization:Wy(n,"TeamSpaceMembership","getForOrganization"),getManyForOrganization:Wy(n,"TeamSpaceMembership","getManyForOrganization"),create:Wy(n,"TeamSpaceMembership","create"),update:Wy(n,"TeamSpaceMembership","update"),delete:Wy(n,"TeamSpaceMembership","delete")},uiConfig:{get:Wy(n,"UIConfig","get"),update:Wy(n,"UIConfig","update")},userUIConfig:{get:Wy(n,"UserUIConfig","get"),update:Wy(n,"UserUIConfig","update")},workflowDefinition:{get:Wy(n,"WorkflowDefinition","get"),getMany:Wy(n,"WorkflowDefinition","getMany"),create:Wy(n,"WorkflowDefinition","create"),update:Wy(n,"WorkflowDefinition","update"),delete:Wy(n,"WorkflowDefinition","delete")},workflow:{getMany:Wy(n,"Workflow","getMany"),create:Wy(n,"Workflow","create"),update:Wy(n,"Workflow","update"),delete:Wy(n,"Workflow","delete"),complete:Wy(n,"Workflow","complete")},workflowsChangelog:{getMany:Wy(n,"WorkflowsChangelog","getMany")}}};let Xy=function(e){return e.BUILTIN="builtin",e.EXTENSION="extension",e.SIDEBAR_BUILTIN="sidebar-builtin",e.APP="app",e.EDITOR_BUILTIN="editor-builtin",e}({});const Gy={widgetId:"publication-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Publish & Status",description:"Built-in - View entry status, publish, etc."},Jy={widgetId:"releases-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Release",description:"Built-in - View release, add to it, etc."},Qy={widgetId:"content-preview-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Preview",description:"Built-in - Displays preview functionality."},Yy={widgetId:"incoming-links-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Links",description:"Built-in - Shows where an entry is linked."},Zy={widgetId:"translation-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Translation",description:"Built-in - Manage which translations are visible."},ev={widgetId:"versions-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Versions",description:"Built-in - View previously published versions. Available only for master environment."},tv={widgetId:"users-widget",widgetNamespace:Xy.SIDEBAR_BUILTIN,name:"Users",description:"Built-in - Displays users on the same entry."},nv=[Gy,Jy,Qy,Yy,Zy,ev,tv],av=[Gy,Jy,Yy,Zy,tv],iv="Editor",ov="References",rv="reference-tree",sv="Tags",cv="tags-editor",pv=[{widgetId:"default-editor",widgetNamespace:Xy.EDITOR_BUILTIN,name:iv},{widgetId:rv,widgetNamespace:Xy.EDITOR_BUILTIN,name:ov},{widgetId:cv,widgetNamespace:Xy.EDITOR_BUILTIN,name:sv}];function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function uv(e){for(var t=1;t{const t=mv[e],a={type:n.type,linkType:n.linkType,items:n.items};return a.items&&(a.items={type:a.items.type,linkType:a.items.linkType}),"Link"===t.type?t.linkType===a.linkType:"Array"===t.type&&t.items&&a.items?"Link"===t.items.type?t.items.linkType===a.items.linkType:t.items.type===a.items.type:t.type===a.type})));var n;if(!t)throw new Error("Invalid field type");return(e.validations||[]).find((e=>"in"in e))&&dv.includes(t)?{widgetId:"dropdown",fieldId:e.id,widgetNameSpace:"builtin"}:function(e,t){const n=uv(uv({},yv[e]),{},{settings:{helpText:null},widgetNamespace:"builtin",fieldId:t});return e in vv&&(n.settings=uv(uv({},n.settings),vv[e])),n}(t,e.id)}};function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gv(e){for(var t=1;t({[Symbol.asyncIterator](){let n=ao(t);const a=()=>e(ao(n));let i=a();return{current:0,async next(){const{total:e=0,items:t=[],skip:o=0,limit:r=100}=await i;if(e===this.current)return{done:!0,value:null};const s=t[this.current++-o],c=this.current%r==0,p=this.current===e;return c&&!p&&(n=gv(gv({},n),{},{query:gv(gv({},n.query),{},{skip:o+r})}),i=a()),{done:!1,value:s}}}}});function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wv(e){for(var t=1;ta.makeRequest(wv(wv({},e),{},{userAgent:n}));return"plain"===t.type?Hy(i,t.defaults):function(e){const{wrapSpace:t,wrapSpaceCollection:n}=Uy.space,{wrapUser:a}=Uy.user,{wrapPersonalAccessToken:i,wrapPersonalAccessTokenCollection:o}=Uy.personalAccessToken,{wrapAccessToken:r,wrapAccessTokenCollection:s}=Uy.accessToken,{wrapOrganization:c,wrapOrganizationCollection:p}=Uy.organization,{wrapUsageCollection:l}=Uy.usage,{wrapAppDefinition:u}=Uy.appDefinition,{wrapEnvironmentTemplate:d,wrapEnvironmentTemplateCollection:m}=Uy.environmentTemplate;return{getEnvironmentTemplates:function(t,n={}){return e({entityType:"EnvironmentTemplate",action:"getMany",params:{organizationId:t,query:Kt({query:n}).params}}).then((n=>m(e,n,t)))},getEnvironmentTemplate:function({organizationId:t,environmentTemplateId:n,version:a,query:i={}}){return e({entityType:"EnvironmentTemplate",action:"get",params:{organizationId:t,environmentTemplateId:n,version:a,query:Kt({query:i}).params}}).then((n=>d(e,n,t)))},createEnvironmentTemplate:function(t,n){return e({entityType:"EnvironmentTemplate",action:"create",params:{organizationId:t},payload:n}).then((n=>d(e,n,t)))},getSpaces:function(t={}){return e({entityType:"Space",action:"getMany",params:{query:Kt({query:t}).params}}).then((t=>n(e,t)))},getSpace:function(n){return e({entityType:"Space",action:"get",params:{spaceId:n}}).then((n=>t(e,n)))},createSpace:function(n,a){return e({entityType:"Space",action:"create",params:{organizationId:a},payload:n}).then((n=>t(e,n)))},getOrganization:function(t){return e({entityType:"Organization",action:"get",params:{organizationId:t}}).then((t=>c(e,t)))},getOrganizations:function(t={}){return e({entityType:"Organization",action:"getMany",params:{query:Kt({query:t}).params}}).then((t=>p(e,t)))},getCurrentUser:function(t){return e({entityType:"User",action:"getCurrent",params:t}).then((t=>a(e,t)))},getAppDefinition:function(t){return e({entityType:"AppDefinition",action:"get",params:t}).then((t=>u(e,t)))},createPersonalAccessToken:function(t){return e({entityType:"PersonalAccessToken",action:"create",params:{},payload:t}).then((t=>i(e,t)))},getPersonalAccessToken:function(t){return e({entityType:"PersonalAccessToken",action:"get",params:{tokenId:t}}).then((t=>i(e,t)))},getPersonalAccessTokens:function(){return e({entityType:"PersonalAccessToken",action:"getMany",params:{}}).then((t=>o(e,t)))},getAccessToken:function(t){return e({entityType:"AccessToken",action:"get",params:{tokenId:t}}).then((t=>r(e,t)))},getAccessTokens:function(){return e({entityType:"AccessToken",action:"getMany",params:{}}).then((t=>s(e,t)))},getOrganizationAccessTokens:function(t,n={}){return e({entityType:"AccessToken",action:"getManyForOrganization",params:{organizationId:t,query:n}}).then((t=>s(e,t)))},getOrganizationUsage:function(t,n={}){return e({entityType:"Usage",action:"getManyForOrganization",params:{organizationId:t,query:n}}).then((t=>l(e,t)))},getSpaceUsage:function(t,n={}){return e({entityType:"Usage",action:"getManyForSpace",params:{organizationId:t,query:n}}).then((t=>l(e,t)))},rawRequest:function(t){let{url:n}=t,a=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,Ly);return e({entityType:"Http",action:"request",params:{url:n,config:a}})}}}(i)}})(),module.exports=a})(); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/api-key.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/api-key.js deleted file mode 100644 index 2bcf0095..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/api-key.js +++ /dev/null @@ -1,47 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/api_keys`, { - params: params.query - }); -}; -export const create = (http, params, data, headers) => { - return raw.post(http, `/spaces/${params.spaceId}/api_keys`, data, { - headers - }); -}; -export const createWithId = (http, params, data, headers) => { - return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - if ('accessToken' in data) { - delete data.accessToken; - } - if ('preview_api_key' in data) { - delete data.preview_api_key; - } - if ('policies' in data) { - delete data.policies; - } - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action-call.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action-call.js deleted file mode 100644 index 8e0c1a11..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action-call.js +++ /dev/null @@ -1,69 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as raw from './raw'; -import { isSuccessful, shouldRePoll, waitFor } from '../../../common-utils'; -export const create = (http, params, data) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data); -}; -export const getCallDetails = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`); -}; -const APP_ACTION_CALL_RETRY_INTERVAL = 2000; -const APP_ACTION_CALL_RETRIES = 15; -async function callAppActionResult(http, params, { - callId -}) { - let checkCount = 1; - const retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL; - const retries = params.retries || APP_ACTION_CALL_RETRIES; - return new Promise((resolve, reject) => { - const poll = async () => { - try { - var _result$response, _result$response2; - const result = await getCallDetails(http, _objectSpread(_objectSpread({}, params), {}, { - callId: callId - })); - // The lambda failed or returned a 404, so we shouldn't re-poll anymore - if (result !== null && result !== void 0 && (_result$response = result.response) !== null && _result$response !== void 0 && _result$response.statusCode && !isSuccessful(result === null || result === void 0 ? void 0 : (_result$response2 = result.response) === null || _result$response2 === void 0 ? void 0 : _result$response2.statusCode)) { - const error = new Error('App action not found or lambda fails'); - reject(error); - } else if (isSuccessful(result.statusCode)) { - resolve(result); - } - - // The logs are not ready yet. Continue waiting for them - else if (shouldRePoll(result.statusCode) && checkCount < retries) { - checkCount++; - await waitFor(retryInterval); - poll(); - } - - // If the response status code is not successful and is not a status code that should be repolled, reject with an error immediately - else { - const error = new Error('The app action response is taking longer than expected to process.'); - reject(error); - } - } catch (error) { - checkCount++; - if (checkCount > retries) { - reject(new Error('The app action response is taking longer than expected to process.')); - return; - } - // If `appActionCalls.getCallDetails` throws, we re-poll as it might mean that the lambda result is not available in the webhook logs yet - await waitFor(retryInterval); - poll(); - } - }; - poll(); - }); -} -export const createWithResponse = async (http, params, data) => { - const createResponse = await raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data); - const callId = createResponse.sys.id; - return callAppActionResult(http, params, { - callId - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action.js deleted file mode 100644 index 3e2cb96d..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`; -const getAppActionUrl = params => `${getBaseUrl(params)}/${params.appActionId}`; -const getAppActionsEnvUrl = params => { - if (params.environmentId) { - return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`; - } - return `/spaces/${params.spaceId}/actions`; -}; -export const get = (http, params) => { - return raw.get(http, getAppActionUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getManyForEnvironment = (http, params) => { - return raw.get(http, getAppActionsEnvUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const del = (http, params) => { - return raw.del(http, getAppActionUrl(params)); -}; -export const create = (http, params, data) => { - return raw.post(http, getBaseUrl(params), data); -}; -export const update = (http, params, data) => { - return raw.put(http, getAppActionUrl(params), data); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-bundle.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-bundle.js deleted file mode 100644 index edbd4d60..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-bundle.js +++ /dev/null @@ -1,36 +0,0 @@ -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`; -const getAppBundleUrl = params => `${getBaseUrl(params)}/${params.appBundleId}`; -export const get = (http, params) => { - return raw.get(http, getAppBundleUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const del = (http, params) => { - return raw.del(http, getAppBundleUrl(params)); -}; -export const create = (http, params, payload) => { - const { - appUploadId, - comment, - actions, - functions - } = payload; - const data = { - upload: { - sys: { - type: 'Link', - linkType: 'AppUpload', - id: appUploadId - } - }, - comment, - actions, - functions - }; - return raw.post(http, getBaseUrl(params), data); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-definition.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-definition.js deleted file mode 100644 index d651025d..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-definition.js +++ /dev/null @@ -1,45 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as raw from './raw'; -import copy from 'fast-copy'; -import { normalizeSelect, normalizeSpaceId } from './utils'; -const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions`; -export const getAppDefinitionUrl = params => getBaseUrl(params) + `/${params.appDefinitionId}`; -const getBaseUrlForOrgInstallations = params => `/app_definitions/${params.appDefinitionId}/app_installations`; -export const get = (http, params) => { - return raw.get(http, getAppDefinitionUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: params.query - }); -}; -export const create = (http, params, rawData) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getAppDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, getAppDefinitionUrl(params)); -}; -export const getInstallationsForOrg = (http, params) => { - return raw.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, normalizeSpaceId(normalizeSelect(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-details.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-details.js deleted file mode 100644 index 8e31afa7..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-details.js +++ /dev/null @@ -1,10 +0,0 @@ -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`); -}; -export const upsert = (http, params, data) => { - return raw.put(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data); -}; -export const del = (http, params) => { - return raw.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-installation.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-installation.js deleted file mode 100644 index 4f619b52..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-installation.js +++ /dev/null @@ -1,39 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as raw from './raw'; -import { normalizeSelect, normalizeSpaceId } from './utils'; -import copy from 'fast-copy'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`; -const getBaseUrlForOrgInstallations = params => `/app_definitions/${params.appDefinitionId}/app_installations`; -export const getAppInstallationUrl = params => getBaseUrl(params) + `/${params.appDefinitionId}`; -export const get = (http, params) => { - return raw.get(http, getAppInstallationUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const upsert = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, getAppInstallationUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), params.acceptAllTerms && { - 'X-Contentful-Marketplace': 'i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy' - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, getAppInstallationUrl(params)); -}; -export const getForOrganization = (http, params) => { - return raw.get(http, getBaseUrlForOrgInstallations(params), { - params: _objectSpread(_objectSpread({}, normalizeSpaceId(normalizeSelect(params.query))), {}, { - 'sys.organization.sys.id[in]': params.organizationId - }) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signed-request.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signed-request.js deleted file mode 100644 index 39dc2533..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signed-request.js +++ /dev/null @@ -1,4 +0,0 @@ -import * as raw from './raw'; -export const create = (http, params, data) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`, data); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signing-secret.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signing-secret.js deleted file mode 100644 index ac1dad78..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signing-secret.js +++ /dev/null @@ -1,10 +0,0 @@ -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`); -}; -export const upsert = (http, params, data) => { - return raw.put(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data); -}; -export const del = (http, params) => { - return raw.del(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-upload.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-upload.js deleted file mode 100644 index e10fb95b..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-upload.js +++ /dev/null @@ -1,23 +0,0 @@ -import * as raw from './raw'; -import { getUploadHttpClient } from '../../../upload-http-client'; -const getBaseUrl = params => `/organizations/${params.organizationId}/app_uploads`; -const getAppUploadUrl = params => `${getBaseUrl(params)}/${params.appUploadId}`; -export const get = (http, params) => { - const httpUpload = getUploadHttpClient(http); - return raw.get(httpUpload, getAppUploadUrl(params)); -}; -export const del = (http, params) => { - const httpUpload = getUploadHttpClient(http); - return raw.del(httpUpload, getAppUploadUrl(params)); -}; -export const create = (http, params, payload) => { - const httpUpload = getUploadHttpClient(http); - const { - file - } = payload; - return raw.post(httpUpload, getBaseUrl(params), file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset-key.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset-key.js deleted file mode 100644 index de00cedb..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset-key.js +++ /dev/null @@ -1,33 +0,0 @@ -import * as raw from './raw'; -const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60; -export class ValidationError extends Error { - constructor(name, message) { - super(`Invalid "${name}" provided, ` + message); - this.name = 'ValidationError'; - } -} -const validateTimestamp = (name, timestamp, options) => { - options = options || {}; - if (typeof timestamp !== 'number') { - throw new ValidationError(name, `only numeric values are allowed for timestamps, provided type was "${typeof timestamp}"`); - } - if (options.maximum && timestamp > options.maximum) { - throw new ValidationError(name, `value (${timestamp}) cannot be further in the future than expected maximum (${options.maximum})`); - } - if (options.now && timestamp < options.now) { - throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`); - } -}; -export const create = (http, params, data) => { - const expiresAt = data.expiresAt; - const now = Math.floor(Date.now() / 1000); - const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME; - validateTimestamp('expiresAt', expiresAt, { - maximum: currentMaxLifetime, - now - }); - const postParams = { - expiresAt - }; - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/asset_keys`, postParams); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset.js deleted file mode 100644 index ba50c694..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset.js +++ /dev/null @@ -1,197 +0,0 @@ -const _excluded = ["asset", "locale", "options"], - _excluded2 = ["asset", "options"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { errorHandler } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { getUploadHttpClient } from '../../../upload-http-client'; -import * as raw from './raw'; -import { create as createUpload } from './upload'; -import { normalizeSelect } from './utils'; -export const get = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, { - params: normalizeSelect(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -export const getPublished = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, { - params: normalizeSelect(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -export const getMany = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, { - params: normalizeSelect(params.query), - headers: headers ? _objectSpread({}, headers) : undefined - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`); -}; -export const publish = (http, params, rawData) => { - var _rawData$sys$version2; - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, null, { - headers: { - 'X-Contentful-Version': (_rawData$sys$version2 = rawData.sys.version) !== null && _rawData$sys$version2 !== void 0 ? _rawData$sys$version2 : 0 - } - }); -}; -export const unpublish = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`); -}; -export const archive = (http, params) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`); -}; -export const unarchive = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`); -}; -export const create = (http, params, rawData) => { - const data = copy(rawData); - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data); -}; -export const createWithId = (http, params, rawData) => { - const data = copy(rawData); - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data); -}; -export const createFromFiles = async (http, params, data) => { - const httpUpload = getUploadHttpClient(http, { - uploadTimeout: params.uploadTimeout - }); - const { - file - } = data.fields; - return Promise.all(Object.keys(file).map(async locale => { - const { - contentType, - fileName - } = file[locale]; - return createUpload(httpUpload, params, file[locale]).then(upload => { - return { - [locale]: { - contentType, - fileName, - uploadFrom: { - sys: { - type: 'Link', - linkType: 'Upload', - id: upload.sys.id - } - } - } - }; - }); - })).then(uploads => { - const file = uploads.reduce((fieldsData, upload) => _objectSpread(_objectSpread({}, fieldsData), upload), {}); - const asset = _objectSpread(_objectSpread({}, data), {}, { - fields: _objectSpread(_objectSpread({}, data.fields), {}, { - file - }) - }); - return create(http, params, asset); - }).catch(errorHandler); -}; - -/** - * Asset processing - */ - -const ASSET_PROCESSING_CHECK_WAIT = 3000; -const ASSET_PROCESSING_CHECK_RETRIES = 10; -async function checkIfAssetHasUrl(http, params, { - resolve, - reject, - locale, - processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, - processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, - checkCount = 0 -}) { - return get(http, params).then(asset => { - if (asset.fields.file[locale].url) { - resolve(asset); - } else if (checkCount === processingCheckRetries) { - const error = new Error(); - error.name = 'AssetProcessingTimeout'; - error.message = 'Asset is taking longer then expected to process.'; - reject(error); - } else { - checkCount++; - setTimeout(() => checkIfAssetHasUrl(http, params, { - resolve: resolve, - reject: reject, - locale: locale, - checkCount: checkCount, - processingCheckWait, - processingCheckRetries - }), processingCheckWait); - } - }); -} -export const processForLocale = async (http, _ref) => { - let { - asset, - locale, - options: { - processingCheckRetries, - processingCheckWait - } = {} - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${asset.sys.id}/files/${locale}/process`, null, { - headers: { - 'X-Contentful-Version': asset.sys.version - } - }).then(() => { - return new Promise((resolve, reject) => checkIfAssetHasUrl(http, { - spaceId: params.spaceId, - environmentId: params.environmentId, - assetId: asset.sys.id - }, { - resolve, - reject, - locale, - processingCheckWait, - processingCheckRetries - })); - }); -}; -export const processForAllLocales = async (http, _ref2) => { - let { - asset, - options = {} - } = _ref2, - params = _objectWithoutProperties(_ref2, _excluded2); - const locales = Object.keys(asset.fields.file || {}); - let mostUpToDateAssetVersion = asset; - - // Let all the locales process - // Since they all resolve at different times, - // we need to pick the last resolved value - // to reflect the most recent state - const allProcessingLocales = locales.map(locale => processForLocale(http, _objectSpread(_objectSpread({}, params), {}, { - asset, - locale, - options - })).then(result => { - // Side effect of always setting the most up to date asset version - // The last one to call this will be the last one that finished - // and thus the most up to date - mostUpToDateAssetVersion = result; - })); - return Promise.all(allProcessingLocales).then(() => mostUpToDateAssetVersion); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/bulk-action.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/bulk-action.js deleted file mode 100644 index 0be02293..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/bulk-action.js +++ /dev/null @@ -1,15 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ - -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`); -}; -export const publish = (http, params, payload) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload); -}; -export const unpublish = (http, params, payload) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload); -}; -export const validate = (http, params, payload) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/comment.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/comment.js deleted file mode 100644 index a0dd7fb3..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/comment.js +++ /dev/null @@ -1,101 +0,0 @@ -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const VERSION_HEADER = 'X-Contentful-Version'; -const BODY_FORMAT_HEADER = 'x-contentful-comment-body-format'; -const PARENT_ENTITY_REFERENCE_HEADER = 'x-contentful-parent-entity-reference'; -const PARENT_COMMENT_ID_HEADER = 'x-contentful-parent-id'; -const getSpaceEnvBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}`; -const getEntityCommentUrl = params => `${getEntityBaseUrl(params)}/${params.commentId}`; -function getParentPlural(parentEntityType) { - switch (parentEntityType) { - case 'ContentType': - return 'content_types'; - case 'Entry': - return 'entries'; - case 'Workflow': - return 'workflows'; - } -} - -/** - * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version - * to be set as part of the URL path. Workflow comments only support `create` (with - * versionized URL) and `getMany` (without version). The API might support more methods - * in the future with new use cases being discovered. - */ -const getEntityBaseUrl = paramsOrg => { - const params = 'entryId' in paramsOrg ? { - spaceId: paramsOrg.spaceId, - environmentId: paramsOrg.environmentId, - parentEntityType: 'Entry', - parentEntityId: paramsOrg.entryId - } : paramsOrg; - const { - parentEntityId, - parentEntityType - } = params; - const parentPlural = getParentPlural(parentEntityType); - const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : ''; - return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`; -}; -export const get = (http, params) => raw.get(http, getEntityCommentUrl(params), { - headers: params.bodyFormat === 'rich-text' ? { - [BODY_FORMAT_HEADER]: params.bodyFormat - } : {} -}); -export const getMany = (http, params) => raw.get(http, getEntityBaseUrl(params), { - params: normalizeSelect(params.query), - headers: params.bodyFormat === 'rich-text' ? { - [BODY_FORMAT_HEADER]: params.bodyFormat - } : {} -}); -export const create = (http, params, rawData) => { - const data = copy(rawData); - return raw.post(http, getEntityBaseUrl(params), data, { - headers: _objectSpread(_objectSpread(_objectSpread({}, typeof rawData.body !== 'string' ? { - [BODY_FORMAT_HEADER]: 'rich-text' - } : {}), 'parentEntityReference' in params && params.parentEntityReference ? { - [PARENT_ENTITY_REFERENCE_HEADER]: params.parentEntityReference - } : {}), params.parentCommentId ? { - [PARENT_COMMENT_ID_HEADER]: params.parentCommentId - } : {}) - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEntityCommentUrl(params), data, { - headers: _objectSpread(_objectSpread({ - [VERSION_HEADER]: (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, typeof rawData.body !== 'string' ? { - [BODY_FORMAT_HEADER]: 'rich-text' - } : {}), headers) - }); -}; -export const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.del(http, getEntityCommentUrl(params), { - headers: { - [VERSION_HEADER]: version - } - }); -}; - -// Add a deprecation notice. But `getAll` may never be removed for app compatibility reasons. -/** - * @deprecated use `getMany` instead. - */ -export const getAll = getMany; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/content-type.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/content-type.js deleted file mode 100644 index e78a790b..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/content-type.js +++ /dev/null @@ -1,61 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`; -const getContentTypeUrl = params => getBaseUrl(params) + `/${params.contentTypeId}`; -export const get = (http, params, headers) => { - return raw.get(http, getContentTypeUrl(params), { - params: normalizeSelect(params.query), - headers - }); -}; -export const getMany = (http, params, headers) => { - return raw.get(http, getBaseUrl(params), { - params: params.query, - headers - }); -}; -export const create = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data, { - headers - }); -}; -export const createWithId = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, getContentTypeUrl(params), data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getContentTypeUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params, headers) => { - return raw.del(http, getContentTypeUrl(params), { - headers - }); -}; -export const publish = (http, params, rawData, headers) => { - return raw.put(http, getContentTypeUrl(params) + '/published', null, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version - }, headers) - }); -}; -export const unpublish = (http, params, headers) => { - return raw.del(http, getContentTypeUrl(params) + '/published', { - headers - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/editor-interface.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/editor-interface.js deleted file mode 100644 index f7ecf7fb..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/editor-interface.js +++ /dev/null @@ -1,24 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`; -export const get = (http, params) => { - return raw.get(http, getBaseUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getBaseUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/entry.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/entry.js deleted file mode 100644 index 5ee34bff..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/entry.js +++ /dev/null @@ -1,89 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -export const get = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, { - params: normalizeSelect(params.query), - headers: _objectSpread({}, headers) - }); -}; -export const getPublished = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, { - params: normalizeSelect(params.query), - headers: _objectSpread({}, headers) - }); -}; -export const getMany = (http, params, rawData, headers) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, { - params: normalizeSelect(params.query), - headers: _objectSpread({}, headers) - }); -}; -export const patch = (http, params, data, headers) => { - return raw.patch(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version, - 'Content-Type': 'application/json-patch+json' - }, headers) - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`); -}; -export const publish = (http, params, rawData) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, null, { - headers: { - 'X-Contentful-Version': rawData.sys.version - } - }); -}; -export const unpublish = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`); -}; -export const archive = (http, params) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`); -}; -export const unarchive = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`); -}; -export const create = (http, params, rawData) => { - const data = copy(rawData); - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -export const createWithId = (http, params, rawData) => { - const data = copy(rawData); - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, { - headers: { - 'X-Contentful-Content-Type': params.contentTypeId - } - }); -}; -export const references = (http, params) => { - const { - spaceId, - environmentId, - entryId, - include - } = params; - const level = include || 2; - return raw.get(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment-alias.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment-alias.js deleted file mode 100644 index 6fb27953..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment-alias.js +++ /dev/null @@ -1,46 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; - -/** - * Urls - */ - -const getBaseUrl = params => `/spaces/${params.spaceId}/environment_aliases`; -const getEnvironmentAliasUrl = params => getBaseUrl(params) + `/${params.environmentAliasId}`; - -/** - * Endpoints - */ - -export const get = (http, params) => { - return raw.get(http, getEnvironmentAliasUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: params.query - }); -}; -export const createWithId = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, getEnvironmentAliasUrl(params), data, { - headers: headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEnvironmentAliasUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, getEnvironmentAliasUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment.js deleted file mode 100644 index bff32c13..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment.js +++ /dev/null @@ -1,42 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments`, { - params: params.query - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`); -}; -export const create = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.post(http, `/spaces/${params.spaceId}/environments`, data, { - headers - }); -}; -export const createWithId = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), params.sourceEnvironmentId ? { - 'X-Contentful-Source-Environment': params.sourceEnvironmentId - } : {}) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/extension.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/extension.js deleted file mode 100644 index 27c2f620..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/extension.js +++ /dev/null @@ -1,44 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`; -export const getExtensionUrl = params => getBaseUrl(params) + `/${params.extensionId}`; -export const get = (http, params) => { - return raw.get(http, getExtensionUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, rawData, headers) => { - return raw.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -export const createWithId = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, getExtensionUrl(params), data, { - headers - }); -}; -export const update = async (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getExtensionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, getExtensionUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/http.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/http.js deleted file mode 100644 index a5e4f0b2..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/http.js +++ /dev/null @@ -1,39 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ - -import * as raw from './raw'; -export const get = (http, { - url, - config -}) => { - return raw.get(http, url, config); -}; -export const post = (http, { - url, - config -}, payload) => { - return raw.post(http, url, payload, config); -}; -export const put = (http, { - url, - config -}, payload) => { - return raw.put(http, url, payload, config); -}; -export const patch = (http, { - url, - config -}, payload) => { - return raw.patch(http, url, payload, config); -}; -export const del = (http, { - url, - config -}) => { - return raw.del(http, url, config); -}; -export const request = (http, { - url, - config -}) => { - return raw.http(http, url, config); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/index.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/index.js deleted file mode 100644 index a9d20664..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/index.js +++ /dev/null @@ -1,112 +0,0 @@ -import * as ApiKey from './api-key'; -import * as AppAction from './app-action'; -import * as AppActionCall from './app-action-call'; -import * as AppBundle from './app-bundle'; -import * as AppDefinition from './app-definition'; -import * as AppDetails from './app-details'; -import * as AppInstallation from './app-installation'; -import * as AppSignedRequest from './app-signed-request'; -import * as AppSigningSecret from './app-signing-secret'; -import * as AppEventSubscription from './app-event-subscription'; -import * as AppKey from './app-key'; -import * as AppAccessToken from './app-access-token'; -import * as AppUpload from './app-upload'; -import * as Asset from './asset'; -import * as AssetKey from './asset-key'; -import * as BulkAction from './bulk-action'; -import * as Comment from './comment'; -import * as ContentType from './content-type'; -import * as EditorInterface from './editor-interface'; -import * as Entry from './entry'; -import * as Environment from './environment'; -import * as EnvironmentAlias from './environment-alias'; -import * as EnvironmentTemplate from './environment-template'; -import * as EnvironmentTemplateInstallation from './environment-template-installation'; -import * as Extension from './extension'; -import * as Http from './http'; -import * as Locale from './locale'; -import * as Organization from './organization'; -import * as OrganizationInvitation from './organization-invitation'; -import * as OrganizationMembership from './organization-membership'; -import * as PersonalAccessToken from './personal-access-token'; -import * as AccessToken from './access-token'; -import * as PreviewApiKey from './preview-api-key'; -import * as Release from './release'; -import * as ReleaseAction from './release-action'; -import * as Role from './role'; -import * as ScheduledAction from './scheduled-action'; -import * as Snapshot from './snapshot'; -import * as Space from './space'; -import * as SpaceMember from './space-member'; -import * as SpaceMembership from './space-membership'; -import * as Tag from './tag'; -import * as Task from './task'; -import * as Team from './team'; -import * as TeamMembership from './team-membership'; -import * as TeamSpaceMembership from './team-space-membership'; -import * as UIConfig from './ui-config'; -import * as Upload from './upload'; -import * as Usage from './usage'; -import * as User from './user'; -import * as UserUIConfig from './user-ui-config'; -import * as Webhook from './webhook'; -import * as Workflow from './workflow'; -import * as WorkflowDefinition from './workflow-definition'; -import * as WorkflowsChangelog from './workflows-changelog'; -export default { - ApiKey, - AppAction, - AppActionCall, - AppBundle, - AppDefinition, - AppInstallation, - AppUpload, - AppSignedRequest, - AppSigningSecret, - AppEventSubscription, - AppKey, - AppAccessToken, - AppDetails, - Asset, - AssetKey, - BulkAction, - Comment, - ContentType, - EditorInterface, - Entry, - Environment, - EnvironmentAlias, - EnvironmentTemplate, - EnvironmentTemplateInstallation, - Extension, - Http, - Locale, - Organization, - OrganizationInvitation, - OrganizationMembership, - PersonalAccessToken, - AccessToken, - PreviewApiKey, - Release, - ReleaseAction, - Role, - ScheduledAction, - Snapshot, - Space, - SpaceMember, - SpaceMembership, - Tag, - Task, - Team, - TeamMembership, - TeamSpaceMembership, - UIConfig, - Upload, - Usage, - User, - UserUIConfig, - Webhook, - WorkflowDefinition, - Workflow, - WorkflowsChangelog -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/locale.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/locale.js deleted file mode 100644 index 4e5d4c65..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/locale.js +++ /dev/null @@ -1,35 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, data, headers) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - delete data.default; // we should not send this back - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-invitation.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-invitation.js deleted file mode 100644 index 2ecd047e..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-invitation.js +++ /dev/null @@ -1,22 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as raw from './raw'; -const OrganizationUserManagementAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'organization-user-management-api' -}; -const InvitationAlphaHeaders = { - 'x-contentful-enable-alpha-feature': 'pending-org-membership' -}; -export const create = (http, params, data, headers) => { - return raw.post(http, `/organizations/${params.organizationId}/invitations`, data, { - headers: _objectSpread(_objectSpread({}, InvitationAlphaHeaders), headers) - }); -}; -export const get = (http, params, headers) => { - return raw.get(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, { - headers: _objectSpread(_objectSpread({}, OrganizationUserManagementAlphaHeaders), headers) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-membership.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-membership.js deleted file mode 100644 index 82d49a7e..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-membership.js +++ /dev/null @@ -1,35 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/organizations/${params.organizationId}/organization_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.organizationMembershipId}`; -export const get = (http, params) => { - return raw.get(http, getEntityUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: params.query - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - const { - role - } = data; - return raw.put(http, getEntityUrl(params), { - role - }, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, getEntityUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization.js deleted file mode 100644 index 4cbd6df8..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization.js +++ /dev/null @@ -1,26 +0,0 @@ -import * as raw from './raw'; -export const getMany = (http, params) => { - return raw.get(http, `/organizations`, { - params: params === null || params === void 0 ? void 0 : params.query - }); -}; -export const get = (http, params) => { - return getMany(http, { - query: { - limit: 100 - } - }).then(data => { - const org = data.items.find(org => org.sys.id === params.organizationId); - if (!org) { - const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.status = 404; - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - error.statusText = 'Not Found'; - return Promise.reject(error); - } - return org; - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/personal-access-token.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/personal-access-token.js deleted file mode 100644 index ae1aecc0..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/personal-access-token.js +++ /dev/null @@ -1,33 +0,0 @@ -import * as raw from './raw'; - -/** - * @deprecated use `access-token.get` instead `personal-access-token.get` - */ -export const get = (http, params) => { - return raw.get(http, `/users/me/access_tokens/${params.tokenId}`); -}; - -/** - * @deprecated use `access-token.getMany` instead `personal-access-token.getMany` - */ -export const getMany = (http, params) => { - return raw.get(http, '/users/me/access_tokens', { - params: params.query - }); -}; - -/** - * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create` - */ -export const create = (http, _params, rawData, headers) => { - return raw.post(http, '/users/me/access_tokens', rawData, { - headers - }); -}; - -/** - * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke` - */ -export const revoke = (http, params) => { - return raw.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/preview-api-key.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/preview-api-key.js deleted file mode 100644 index 93cdc939..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/preview-api-key.js +++ /dev/null @@ -1,9 +0,0 @@ -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/preview_api_keys`, { - params: params.query - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/raw.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/raw.js deleted file mode 100644 index 697aa36e..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/raw.js +++ /dev/null @@ -1,42 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - -import { errorHandler } from 'contentful-sdk-core'; -function getBaseUrl(http) { - var _http$defaults$baseUR; - return (_http$defaults$baseUR = http.defaults.baseURL) === null || _http$defaults$baseUR === void 0 ? void 0 : _http$defaults$baseUR.split('/spaces')[0]; -} -export function get(http, url, config) { - return http.get(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} -export function patch(http, url, payload, config) { - return http.patch(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} -export function post(http, url, payload, config) { - return http.post(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} -export function put(http, url, payload, config) { - return http.put(url, payload, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} -export function del(http, url, config) { - return http.delete(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} -export function http(http, url, config) { - return http(url, _objectSpread({ - baseURL: getBaseUrl(http) - }, config)).then(response => response.data, errorHandler); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release-action.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release-action.js deleted file mode 100644 index e76c68a3..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release-action.js +++ /dev/null @@ -1,23 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ - -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, { - params: params.query - }); -}; -export const queryForRelease = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, { - params: _objectSpread({ - 'sys.release.sys.id[in]': params.releaseId - }, params.query) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release.js deleted file mode 100644 index 01346b61..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release.js +++ /dev/null @@ -1,58 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as raw from './raw'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`); -}; -export const query = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, { - params: params.query - }); -}; -export const create = (http, params, payload) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, payload); -}; -export const update = (http, params, payload, headers) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`, payload, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`); -}; -export const publish = (http, params, headers) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -export const unpublish = (http, params, headers) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, { - headers: _objectSpread({ - 'X-Contentful-Version': params.version - }, headers) - }); -}; -export const validate = (http, params, payload) => { - return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/validate`, payload); -}; -export const archive = (http, params) => { - return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, null, { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; -export const unarchive = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, { - headers: { - 'X-Contentful-Version': params.version - } - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/role.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/role.js deleted file mode 100644 index e1457ca3..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/role.js +++ /dev/null @@ -1,44 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/roles/${params.roleId}`); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/roles`, { - params: normalizeSelect(params.query) - }); -}; -export const getManyForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/roles`, { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, data, headers) => { - return raw.post(http, `/spaces/${params.spaceId}/roles`, data, { - headers - }); -}; -export const createWithId = (http, params, data, headers) => { - return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/roles/${params.roleId}`); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/scheduled-action.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/scheduled-action.js deleted file mode 100644 index b471b08b..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/scheduled-action.js +++ /dev/null @@ -1,35 +0,0 @@ -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -export const get = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -export const getMany = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/scheduled_actions`, { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, data) => { - return raw.post(http, `/spaces/${params.spaceId}/scheduled_actions`, data); -}; -export const del = (http, params) => { - return raw.del(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, { - params: { - 'environment.sys.id': params.environmentId - } - }); -}; -export const update = (http, params, data) => { - var _data$environment; - return raw.put(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, data, { - params: { - 'environment.sys.id': (_data$environment = data.environment) === null || _data$environment === void 0 ? void 0 : _data$environment.sys.id - }, - headers: { - 'X-Contentful-Version': params.version - } - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/snapshot.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/snapshot.js deleted file mode 100644 index eede191a..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/snapshot.js +++ /dev/null @@ -1,22 +0,0 @@ -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseEntryUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`; -const getEntryUrl = params => getBaseEntryUrl(params) + `/${params.snapshotId}`; -export const getManyForEntry = (http, params) => { - return raw.get(http, getBaseEntryUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getForEntry = (http, params) => { - return raw.get(http, getEntryUrl(params)); -}; -const getBaseContentTypeUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`; -const getContentTypeUrl = params => getBaseContentTypeUrl(params) + `/${params.snapshotId}`; -export const getManyForContentType = (http, params) => { - return raw.get(http, getBaseContentTypeUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getForContentType = (http, params) => { - return raw.get(http, getContentTypeUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-member.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-member.js deleted file mode 100644 index 8010c4ca..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-member.js +++ /dev/null @@ -1,5 +0,0 @@ -import * as raw from './raw'; -export const get = (http, params) => raw.get(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`); -export const getMany = (http, params) => raw.get(http, `/spaces/${params.spaceId}/space_members`, { - params: params.query -}); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-membership.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-membership.js deleted file mode 100644 index 4bc3a578..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-membership.js +++ /dev/null @@ -1,55 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -function spaceMembershipDeprecationWarning() { - console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)'); -} -const getBaseUrl = params => `/spaces/${params.spaceId}/space_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.spaceMembershipId}`; -export const get = (http, params) => { - spaceMembershipDeprecationWarning(); - return raw.get(http, getEntityUrl(params)); -}; -export const getMany = (http, params) => { - spaceMembershipDeprecationWarning(); - return raw.get(http, getBaseUrl(params), { - params: params.query - }); -}; -export const getForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`); -}; -export const getManyForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/space_memberships`, { - params: params.query - }); -}; -export const create = (http, params, data, headers) => { - spaceMembershipDeprecationWarning(); - return raw.post(http, getBaseUrl(params), data, { - headers - }); -}; -export const createWithId = (http, params, data, headers) => { - spaceMembershipDeprecationWarning(); - return raw.put(http, getEntityUrl(params), data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEntityUrl(params), data, { - headers: _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }) - }); -}; -export const del = (http, params) => { - return raw.del(http, getEntityUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space.js deleted file mode 100644 index d38b9717..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space.js +++ /dev/null @@ -1,32 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -export const get = (http, params) => raw.get(http, `/spaces/${params.spaceId}`); -export const getMany = (http, params) => raw.get(http, `/spaces`, { - params: params.query -}); -export const getManyForOrganization = (http, params) => raw.get(http, `/organizations/${params.organizationId}/spaces`, { - params: params.query -}); -export const create = (http, params, payload, headers) => { - return raw.post(http, `/spaces`, payload, { - headers: params.organizationId ? _objectSpread(_objectSpread({}, headers), {}, { - 'X-Contentful-Organization': params.organizationId - }) : headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, `/spaces/${params.spaceId}`, data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => raw.del(http, `/spaces/${params.spaceId}`); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/tag.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/tag.js deleted file mode 100644 index b19670d0..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/tag.js +++ /dev/null @@ -1,46 +0,0 @@ -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`; -const getTagUrl = params => getBaseUrl(params) + `/${params.tagId}`; -export const get = (http, params) => raw.get(http, getTagUrl(params)); -export const getMany = (http, params) => raw.get(http, getBaseUrl(params), { - params: params.query -}); -export const createWithId = (http, params, rawData) => { - var _rawData$sys$visibili; - const data = copy(rawData); - return raw.put(http, getTagUrl(params), data, { - headers: { - 'X-Contentful-Tag-Visibility': (_rawData$sys$visibili = rawData.sys.visibility) !== null && _rawData$sys$visibili !== void 0 ? _rawData$sys$visibili : 'private' - } - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getTagUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.del(http, getTagUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/task.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/task.js deleted file mode 100644 index 125c0d36..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/task.js +++ /dev/null @@ -1,47 +0,0 @@ -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`; -const getTaskUrl = params => `${getBaseUrl(params)}/${params.taskId}`; -export const get = (http, params) => raw.get(http, getTaskUrl(params)); -export const getMany = (http, params) => raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) -}); - -/** - * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons. - */ -export const getAll = getMany; -export const create = (http, params, rawData) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getTaskUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, _ref) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.del(http, getTaskUrl(params), { - headers: { - 'X-Contentful-Version': version - } - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-membership.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-membership.js deleted file mode 100644 index ca846d4b..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-membership.js +++ /dev/null @@ -1,34 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`; -const getEntityUrl = params => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`; -export const get = (http, params) => raw.get(http, getEntityUrl(params)); -export const getManyForOrganization = (http, params) => raw.get(http, `/organizations/${params.organizationId}/team_memberships`, { - params: normalizeSelect(params.query) -}); -export const getManyForTeam = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, rawData, headers) => { - return raw.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0 - }, headers) - }); -}; -export const del = (http, params) => raw.del(http, getEntityUrl(params)); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-space-membership.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-space-membership.js deleted file mode 100644 index 863179f5..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-space-membership.js +++ /dev/null @@ -1,45 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/team_space_memberships`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.teamSpaceMembershipId}`; -export const get = (http, params) => raw.get(http, getEntityUrl(params)); -export const getMany = (http, params) => raw.get(http, getBaseUrl(params), { - params: params.query -}); -export const getForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`); -}; -export const getManyForOrganization = (http, params) => { - const query = params.query || {}; - if (params.teamId) { - query['sys.team.sys.id'] = params.teamId; - } - return raw.get(http, `/organizations/${params.organizationId}/team_space_memberships`, { - params: params.query - }); -}; -export const create = (http, params, rawData, headers) => { - return raw.post(http, getBaseUrl(params), rawData, { - headers: _objectSpread({ - 'x-contentful-team': params.teamId - }, headers) - }); -}; -export const update = (http, params, rawData, headers) => { - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': rawData.sys.version || 0, - 'x-contentful-team': rawData.sys.team.sys.id - }, headers) - }); -}; -export const del = (http, params) => { - return raw.del(http, getEntityUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team.js deleted file mode 100644 index e72060d7..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team.js +++ /dev/null @@ -1,35 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/organizations/${params.organizationId}/teams`; -const getEntityUrl = params => `${getBaseUrl(params)}/${params.teamId}`; -export const get = (http, params) => raw.get(http, getEntityUrl(params)); -export const getMany = (http, params) => raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) -}); -export const getManyForSpace = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/teams`, { - params: normalizeSelect(params.query) - }); -}; -export const create = (http, params, rawData, headers) => { - return raw.post(http, getBaseUrl(params), rawData, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getEntityUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, params) => raw.del(http, getEntityUrl(params)); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/upload.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/upload.js deleted file mode 100644 index 061c8b3f..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/upload.js +++ /dev/null @@ -1,37 +0,0 @@ -import { getUploadHttpClient } from '../../../upload-http-client'; -import * as raw from './raw'; -const getBaseUploadUrl = params => { - const spacePath = `/spaces/${params.spaceId}/uploads`; - const environmentPath = `/spaces/${params.spaceId}/environments/${params.environmentId}/uploads`; - const path = params.environmentId ? environmentPath : spacePath; - return path; -}; -const getEntityUploadUrl = params => { - const path = getBaseUploadUrl(params); - return path + `/${params.uploadId}`; -}; -export const create = (http, params, data) => { - const httpUpload = getUploadHttpClient(http); - const { - file - } = data; - if (!file) { - return Promise.reject(new Error('Unable to locate a file to upload.')); - } - const path = getBaseUploadUrl(params); - return raw.post(httpUpload, path, file, { - headers: { - 'Content-Type': 'application/octet-stream' - } - }); -}; -export const del = (http, params) => { - const httpUpload = getUploadHttpClient(http); - const path = getEntityUploadUrl(params); - return raw.del(httpUpload, path); -}; -export const get = (http, params) => { - const httpUpload = getUploadHttpClient(http); - const path = getEntityUploadUrl(params); - return raw.get(httpUpload, path); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/usage.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/usage.js deleted file mode 100644 index dfd81f2c..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/usage.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as raw from './raw'; -export const getManyForSpace = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/space_periodic_usages`, { - params: params.query - }); -}; -export const getManyForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/organization_periodic_usages`, { - params: params.query - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/user.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/user.js deleted file mode 100644 index 6256b01e..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/user.js +++ /dev/null @@ -1,20 +0,0 @@ -import * as raw from './raw'; -export const getForSpace = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/users/${params.userId}`); -}; -export const getCurrent = (http, params) => raw.get(http, `/users/me`, { - params: params === null || params === void 0 ? void 0 : params.query -}); -export const getManyForSpace = (http, params) => { - return raw.get(http, `/spaces/${params.spaceId}/users`, { - params: params.query - }); -}; -export const getForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/users/${params.userId}`); -}; -export const getManyForOrganization = (http, params) => { - return raw.get(http, `/organizations/${params.organizationId}/users`, { - params: params.query - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/utils.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/utils.js deleted file mode 100644 index 936b2393..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/utils.js +++ /dev/null @@ -1,28 +0,0 @@ -const _excluded = ["spaceId"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -export function normalizeSelect(query) { - if (query && query.select && !/sys/i.test(query.select)) { - return _objectSpread(_objectSpread({}, query), {}, { - select: query.select + ',sys' - }); - } - return query; -} -export function normalizeSpaceId(query) { - if (query && query.spaceId) { - const { - spaceId - } = query, - rest = _objectWithoutProperties(query, _excluded); - return _objectSpread(_objectSpread({}, rest), {}, { - 'sys.space.sys.id[in]': spaceId - }); - } - return query; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/webhook.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/webhook.js deleted file mode 100644 index c8146458..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/webhook.js +++ /dev/null @@ -1,93 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -import { normalizeSelect } from './utils'; -const getBaseUrl = params => `/spaces/${params.spaceId}/webhook_definitions`; -const getWebhookCallBaseUrl = params => `/spaces/${params.spaceId}/webhooks`; -const getWebhookUrl = params => `${getBaseUrl(params)}/${params.webhookDefinitionId}`; -const getWebhookCallUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls`; -const getWebhookCallDetailsUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/calls/${params.callId}`; -const getWebhookHealthUrl = params => `${getWebhookCallBaseUrl(params)}/${params.webhookDefinitionId}/health`; -const getWebhookSettingsUrl = params => `/spaces/${params.spaceId}/webhook_settings`; -const getWebhookSigningSecretUrl = params => `${getWebhookSettingsUrl(params)}/signing_secret`; -const getWebhookRetryPolicyUrl = params => `${getWebhookSettingsUrl(params)}/retry_policy`; -export const get = (http, params) => { - return raw.get(http, getWebhookUrl(params)); -}; -export const getManyCallDetails = (http, params) => { - return raw.get(http, getWebhookCallUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getCallDetails = (http, params) => { - return raw.get(http, getWebhookCallDetailsUrl(params)); -}; -export const getHealthStatus = (http, params) => { - return raw.get(http, getWebhookHealthUrl(params)); -}; -export const getMany = (http, params) => { - return raw.get(http, getBaseUrl(params), { - params: normalizeSelect(params.query) - }); -}; -export const getSigningSecret = (http, params) => { - return raw.get(http, getWebhookSigningSecretUrl(params)); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export const getRetryPolicy = (http, params) => { - return raw.get(http, getWebhookRetryPolicyUrl(params)); -}; -export const create = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data, { - headers - }); -}; -export const createWithId = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.put(http, getWebhookUrl(params), data, { - headers - }); -}; -export const update = async (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getWebhookUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const upsertSigningSecret = async (http, params, rawData) => { - const data = copy(rawData); - return raw.put(http, getWebhookSigningSecretUrl(params), data); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export const upsertRetryPolicy = async (http, params, rawData) => { - const data = copy(rawData); - return raw.put(http, getWebhookRetryPolicyUrl(params), data); -}; -export const del = (http, params) => { - return raw.del(http, getWebhookUrl(params)); -}; -export const deleteSigningSecret = async (http, params) => { - return raw.del(http, getWebhookSigningSecretUrl(params)); -}; - -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export const deleteRetryPolicy = async (http, params) => { - return raw.del(http, getWebhookRetryPolicyUrl(params)); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow-definition.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow-definition.js deleted file mode 100644 index d4787c72..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow-definition.js +++ /dev/null @@ -1,46 +0,0 @@ -const _excluded = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`; -const getWorkflowDefinitionUrl = params => `${getBaseUrl(params)}/${params.workflowDefinitionId}`; -export const get = (http, params, headers) => raw.get(http, getWorkflowDefinitionUrl(params), { - headers -}); -export const getMany = (http, params, headers) => raw.get(http, getBaseUrl(params), { - headers, - params: params.query -}); -export const create = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getWorkflowDefinitionUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, _ref, headers) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.del(http, getWorkflowDefinitionUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow.js deleted file mode 100644 index 92a86e7e..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow.js +++ /dev/null @@ -1,56 +0,0 @@ -const _excluded = ["version"], - _excluded2 = ["version"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`; -const getWorkflowUrl = params => `${getBaseUrl(params)}/${params.workflowId}`; -const completeWorkflowUrl = params => `${getWorkflowUrl(params)}/complete`; -export const getMany = (http, params, headers) => raw.get(http, getBaseUrl(params), { - headers, - params: params.query -}); -export const create = (http, params, rawData, headers) => { - const data = copy(rawData); - return raw.post(http, getBaseUrl(params), data, { - headers - }); -}; -export const update = (http, params, rawData, headers) => { - var _rawData$sys$version; - const data = copy(rawData); - delete data.sys; - return raw.put(http, getWorkflowUrl(params), data, { - headers: _objectSpread({ - 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0 - }, headers) - }); -}; -export const del = (http, _ref, headers) => { - let { - version - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return raw.del(http, getWorkflowUrl(params), { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; -export const complete = (http, _ref2, headers) => { - let { - version - } = _ref2, - params = _objectWithoutProperties(_ref2, _excluded2); - return raw.put(http, completeWorkflowUrl(params), null, { - headers: _objectSpread({ - 'X-Contentful-Version': version - }, headers) - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflows-changelog.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflows-changelog.js deleted file mode 100644 index e9f9ecb6..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflows-changelog.js +++ /dev/null @@ -1,6 +0,0 @@ -import * as raw from './raw'; -const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`; -export const getMany = (http, params, headers) => raw.get(http, getBaseUrl(params), { - headers, - params: params.query -}); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/rest-adapter.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/rest-adapter.js deleted file mode 100644 index 6a099b37..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/rest-adapter.js +++ /dev/null @@ -1,54 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import axios from 'axios'; -import { createHttpClient } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import endpoints from './endpoints'; -/** - * @private - */ -const defaultHostParameters = { - defaultHostname: 'api.contentful.com', - defaultHostnameUpload: 'upload.contentful.com' -}; -export class RestAdapter { - constructor(params) { - _defineProperty(this, "params", void 0); - _defineProperty(this, "axiosInstance", void 0); - if (!params.accessToken) { - throw new TypeError('Expected parameter accessToken'); - } - this.params = _objectSpread(_objectSpread({}, defaultHostParameters), copy(params)); - this.axiosInstance = createHttpClient(axios, _objectSpread(_objectSpread({}, this.params), {}, { - headers: _objectSpread(_objectSpread({ - 'Content-Type': 'application/vnd.contentful.management.v1+json' - }, params.userAgent ? { - 'X-Contentful-User-Agent': params.userAgent - } : {}), this.params.headers) - })); - } - async makeRequest({ - entityType, - action: actionInput, - params, - payload, - headers, - userAgent - }) { - var _endpoints$entityType; - // `delete` is a reserved keyword. Therefore, the methods are called `del`. - const action = actionInput === 'delete' ? 'del' : actionInput; - const endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (_endpoints$entityType = endpoints[entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action]; - if (endpoint === undefined) { - throw new Error('Unknown endpoint'); - } - return await endpoint(this.axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? { - 'X-Contentful-User-Agent': userAgent - } : {})); - } -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/adapters/REST/types.js b/node_modules/contentful-management/dist/es-modules/adapters/REST/types.js deleted file mode 100644 index 8cec2e9c..00000000 --- a/node_modules/contentful-management/dist/es-modules/adapters/REST/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/common-types.js b/node_modules/contentful-management/dist/es-modules/common-types.js deleted file mode 100644 index a7938dfd..00000000 --- a/node_modules/contentful-management/dist/es-modules/common-types.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve - */ - -/** - * ResourceLink is a reference object to another entity outside of the current space/environment - */ - -/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */ - -/* eslint-disable @typescript-eslint/no-explicit-any */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface - -export let ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) { - ScheduledActionReferenceFilters["contentTypeAnnotationNotIn"] = "sys.contentType.metadata.annotations.ContentType[nin]"; - return ScheduledActionReferenceFilters; -}({}); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/common-utils.js b/node_modules/contentful-management/dist/es-modules/common-utils.js deleted file mode 100644 index a72a3398..00000000 --- a/node_modules/contentful-management/dist/es-modules/common-utils.js +++ /dev/null @@ -1,30 +0,0 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ - -import { toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -/** - * @private - */ -export const wrapCollection = fn => (makeRequest, data, ...rest) => { - const collectionData = toPlainObject(copy(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(entity => fn(makeRequest, entity, ...rest)); - // @ts-expect-error - return collectionData; -}; -export const wrapCursorPaginatedCollection = fn => (makeRequest, data, ...rest) => { - const collectionData = toPlainObject(copy(data)); - // @ts-expect-error - collectionData.items = collectionData.items.map(entity => fn(makeRequest, entity, ...rest)); - // @ts-expect-error - return collectionData; -}; -export function isSuccessful(statusCode) { - return statusCode < 300; -} -export function shouldRePoll(statusCode) { - return [404, 422, 429, 400].includes(statusCode); -} -export async function waitFor(ms = 1000) { - return new Promise(resolve => setTimeout(resolve, ms)); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js b/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js deleted file mode 100644 index 2c86b8c5..00000000 --- a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js +++ /dev/null @@ -1,255 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { in_ } from './types'; -const DROPDOWN_TYPES = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']; -const INTERNAL_TO_API = { - Symbol: { - type: 'Symbol' - }, - Text: { - type: 'Text' - }, - RichText: { - type: 'RichText' - }, - Integer: { - type: 'Integer' - }, - Number: { - type: 'Number' - }, - Boolean: { - type: 'Boolean' - }, - Date: { - type: 'Date' - }, - Location: { - type: 'Location' - }, - Object: { - type: 'Object' - }, - File: { - type: 'File' - }, - Entry: { - type: 'Link', - linkType: 'Entry' - }, - Asset: { - type: 'Link', - linkType: 'Asset' - }, - Resource: { - type: 'ResourceLink' - }, - Symbols: { - type: 'Array', - items: { - type: 'Symbol' - } - }, - Entries: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Entry' - } - }, - Assets: { - type: 'Array', - items: { - type: 'Link', - linkType: 'Asset' - } - }, - Resources: { - type: 'Array', - items: { - type: 'ResourceLink' - } - } -}; -export const FIELD_TYPES = Object.keys(INTERNAL_TO_API); - -/** - * Returns an internal string identifier for an API field object. - * - * We use this string as a simplified reference to field types. - * Possible values are: - * - * - Symbol - * - Symbols - * - Text - * - RichText - * - Integer - * - Number - * - Boolean - * - Date - * - Location - * - Object - * - Entry - * - Entries - * - Asset - * - Assets - * - File - */ -export function toInternalFieldType(api) { - return FIELD_TYPES.find(key => { - const internalApi = INTERNAL_TO_API[key]; - const stripped = { - type: api.type, - linkType: api.linkType, - items: api.items - }; - if (stripped.items) { - stripped.items = { - type: stripped.items.type, - linkType: stripped.items.linkType - }; - } - if (internalApi.type === 'Link') { - return internalApi.linkType === stripped.linkType; - } - if (internalApi.type === 'Array' && internalApi.items && stripped.items) { - if (internalApi.items.type === 'Link') { - return internalApi.items.linkType === stripped.items.linkType; - } - return internalApi.items.type === stripped.items.type; - } - return internalApi.type === stripped.type; - }); -} -export const DEFAULTS_WIDGET = { - Text: { - widgetId: 'markdown' - }, - Symbol: { - widgetId: 'singleLine' - }, - Integer: { - widgetId: 'numberEditor' - }, - Number: { - widgetId: 'numberEditor' - }, - Boolean: { - widgetId: 'boolean' - }, - Date: { - widgetId: 'datePicker' - }, - Location: { - widgetId: 'locationEditor' - }, - Object: { - widgetId: 'objectEditor' - }, - RichText: { - widgetId: 'richTextEditor' - }, - Entry: { - widgetId: 'entryLinkEditor' - }, - Asset: { - widgetId: 'assetLinkEditor' - }, - Symbols: { - widgetId: 'tagEditor' - }, - Entries: { - widgetId: 'entryLinksEditor' - }, - Assets: { - widgetId: 'assetLinksEditor' - }, - File: { - widgetId: 'fileEditor' - }, - Resource: { - widgetId: 'resourceLinkEditor' - }, - Resources: { - widgetId: 'resourceLinksEditor' - } -}; -export const DEFAULTS_SETTINGS = { - Boolean: { - falseLabel: 'No', - helpText: null, - trueLabel: 'Yes' - }, - Date: { - helpText: null, - ampm: '24', - format: 'timeZ' - }, - Entry: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Asset: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Entries: { - helpText: null, - bulkEditing: false, - showCreateEntityAction: true, - showLinkEntityAction: true - }, - Assets: { - helpText: null, - showCreateEntityAction: true, - showLinkEntityAction: true - } -}; -function getDefaultWidget(field, fieldId) { - const defaultWidget = _objectSpread(_objectSpread({}, DEFAULTS_WIDGET[field]), {}, { - settings: { - helpText: null - }, - widgetNamespace: 'builtin', - fieldId - }); - if (in_(field, DEFAULTS_SETTINGS)) { - defaultWidget.settings = _objectSpread(_objectSpread({}, defaultWidget.settings), DEFAULTS_SETTINGS[field]); - } - return defaultWidget; -} - -/** - * Given our internal identifier returns a minimal API field object. - */ -export function toApiFieldType(internal) { - return INTERNAL_TO_API[internal]; -} - -/* - * Gets the default widget ID for a field: - * - If a field allows predefined values then `dropdown` widget is used - * in the presence of the `in` validation. - * - If a Text field is a title then the `singleLine` widget is used. - * - Otherwise a simple type-to-editor mapping is used. - */ -export default function getDefaultControlOfField(field) { - const fieldType = toInternalFieldType(field); - if (!fieldType) { - throw new Error('Invalid field type'); - } - const hasInValidation = (field.validations || []).find(v => 'in' in v); - if (hasInValidation && DROPDOWN_TYPES.includes(fieldType)) { - return { - widgetId: 'dropdown', - fieldId: field.id, - widgetNameSpace: 'builtin' - }; - } - return getDefaultWidget(fieldType, field.id); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/editors-defaults.js b/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/editors-defaults.js deleted file mode 100644 index 4218e9d8..00000000 --- a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/editors-defaults.js +++ /dev/null @@ -1,34 +0,0 @@ -import { DEFAULT_EDITOR_ID, WidgetNamespace } from './types'; -export const EntryEditorWidgetTypes = { - DEFAULT_EDITOR: { - name: 'Editor', - id: DEFAULT_EDITOR_ID, - icon: 'Entry' - }, - REFERENCE_TREE: { - name: 'References', - id: 'reference-tree', - icon: 'References' - }, - TAGS_EDITOR: { - name: 'Tags', - id: 'tags-editor', - icon: 'Tags' - } -}; -const DefaultEntryEditor = { - widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id, - widgetNamespace: WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name -}; -const ReferencesEntryEditor = { - widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id, - widgetNamespace: WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.REFERENCE_TREE.name -}; -const TagsEditor = { - widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id, - widgetNamespace: WidgetNamespace.EDITOR_BUILTIN, - name: EntryEditorWidgetTypes.TAGS_EDITOR.name -}; -export const EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/index.js b/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/index.js deleted file mode 100644 index f078f8bd..00000000 --- a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import { SidebarAssetConfiguration, SidebarEntryConfiguration } from './sidebar-defaults'; -import { EntryConfiguration } from './editors-defaults'; -import getDefaultControlOfField from './controls-defaults'; -export default { - SidebarEntryConfiguration, - SidebarAssetConfiguration, - EntryConfiguration, - getDefaultControlOfField -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js b/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js deleted file mode 100644 index 7ff04f49..00000000 --- a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +++ /dev/null @@ -1,57 +0,0 @@ -import { WidgetNamespace } from './types'; -const SidebarWidgetTypes = { - USERS: 'users-widget', - CONTENT_PREVIEW: 'content-preview-widget', - TRANSLATION: 'translation-widget', - INCOMING_LINKS: 'incoming-links-widget', - PUBLICATION: 'publication-widget', - RELEASES: 'releases-widget', - VERSIONS: 'versions-widget', - INFO_PANEL: 'info-panel', - JOBS: 'jobs-widget', - COMMENTS_PANEL: 'comments-panel' -}; -const Publication = { - widgetId: SidebarWidgetTypes.PUBLICATION, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Publish & Status', - description: 'Built-in - View entry status, publish, etc.' -}; -const Releases = { - widgetId: SidebarWidgetTypes.RELEASES, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Release', - description: 'Built-in - View release, add to it, etc.' -}; -const ContentPreview = { - widgetId: SidebarWidgetTypes.CONTENT_PREVIEW, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Preview', - description: 'Built-in - Displays preview functionality.' -}; -const Links = { - widgetId: SidebarWidgetTypes.INCOMING_LINKS, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Links', - description: 'Built-in - Shows where an entry is linked.' -}; -const Translation = { - widgetId: SidebarWidgetTypes.TRANSLATION, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Translation', - description: 'Built-in - Manage which translations are visible.' -}; -const Versions = { - widgetId: SidebarWidgetTypes.VERSIONS, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Versions', - description: 'Built-in - View previously published versions. Available only for master environment.' -}; -const Users = { - widgetId: SidebarWidgetTypes.USERS, - widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN, - name: 'Users', - description: 'Built-in - Displays users on the same entry.' -}; -export const SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users]; -export const SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users]; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/types.js b/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/types.js deleted file mode 100644 index 106a9d10..00000000 --- a/node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/types.js +++ /dev/null @@ -1,14 +0,0 @@ -export let WidgetNamespace = /*#__PURE__*/function (WidgetNamespace) { - WidgetNamespace["BUILTIN"] = "builtin"; - WidgetNamespace["EXTENSION"] = "extension"; - WidgetNamespace["SIDEBAR_BUILTIN"] = "sidebar-builtin"; - WidgetNamespace["APP"] = "app"; - WidgetNamespace["EDITOR_BUILTIN"] = "editor-builtin"; - return WidgetNamespace; -}({}); -export const DEFAULT_EDITOR_ID = 'default-editor'; - -/** - * @private - */ -export const in_ = (key, object) => key in object; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/contentful-management.js b/node_modules/contentful-management/dist/es-modules/contentful-management.js deleted file mode 100644 index 86d84b2c..00000000 --- a/node_modules/contentful-management/dist/es-modules/contentful-management.js +++ /dev/null @@ -1,64 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Contentful Management API SDK. Allows you to create instances of a client - * with access to the Contentful Content Management API. - * @packageDocumentation - */ - -import { getUserAgentHeader } from 'contentful-sdk-core'; -import { createAdapter } from './create-adapter'; -import createContentfulApi from './create-contentful-api'; -import { createPlainClient } from './plain/plain-client'; -import * as editorInterfaceDefaults from './constants/editor-interface-defaults'; -export { asIterator } from './plain/as-iterator'; -export { isDraft, isPublished, isUpdated } from './plain/checks'; -export { createClient }; -export { RestAdapter } from './adapters/REST/rest-adapter'; -export { editorInterfaceDefaults }; -export * from './export-types'; - -/** - * @deprecated - */ - -/** - * Create a client instance - * @param params - Client initialization parameters - * - * ```javascript - * const client = contentfulManagement.createClient({ - * accessToken: 'myAccessToken' - * }) - * ``` - */ - -// Usually, overloads with more specific signatures should come first but some IDEs are often not able to handle overloads with separate TSDocs correctly -/** - * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option. - */ - -function createClient(params, opts = {}) { - const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js'; - const userAgent = getUserAgentHeader( - // @ts-expect-error - `${sdkMain}/${"11.25.3"}`, params.application, params.integration, params.feature); - const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, { - userAgent - })); - - // Parameters and ReturnType only return the types of the last overload - // https://github.com/microsoft/TypeScript/issues/26591 - // @ts-expect-error - const makeRequest = options => adapter.makeRequest(_objectSpread(_objectSpread({}, options), {}, { - userAgent - })); - if (opts.type === 'plain') { - return createPlainClient(makeRequest, opts.defaults); - } else { - return createContentfulApi(makeRequest); - } -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-adapter.js b/node_modules/contentful-management/dist/es-modules/create-adapter.js deleted file mode 100644 index 45d12068..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-adapter.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @packageDocumentation - * @hidden - */ - -import { RestAdapter } from './adapters/REST/rest-adapter'; -/** - * @private - */ -export function createAdapter(params) { - if ('apiAdapter' in params) { - return params.apiAdapter; - } else { - return new RestAdapter(params); - } -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-app-definition-api.js b/node_modules/contentful-management/dist/es-modules/create-app-definition-api.js deleted file mode 100644 index 065dcdeb..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-app-definition-api.js +++ /dev/null @@ -1,191 +0,0 @@ -import entities from './entities'; -import { wrapAppDefinition } from './entities/app-definition'; - -/** - * @private - */ - -/** - * @private - */ -export default function createAppDefinitionApi(makeRequest) { - const { - wrapAppBundle, - wrapAppBundleCollection - } = entities.appBundle; - const getParams = data => ({ - appDefinitionId: data.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => { - * appDefinition.name = 'New App Definition name' - * return appDefinition.update() - * }) - * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'update', - params: getParams(data), - headers: {}, - payload: data - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.delete()) - * .then(() => console.log(`App Definition deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'delete', - params: getParams(data) - }); - }, - /** - * Gets an app bundle - * @param id - AppBundle ID - * @return Promise for an AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - getAppBundle(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'get', - params: { - appBundleId: id, - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - } - }).then(data => wrapAppBundle(makeRequest, data)); - }, - /** - * Gets a collection of AppBundles - * @return Promise for a collection of AppBundles - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppBundles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'getMany', - params: { - organizationId: raw.sys.organization.sys.id, - appDefinitionId: raw.sys.id, - query - } - }).then(data => wrapAppBundleCollection(makeRequest, data)); - }, - /** - * Creates an app bundle - * @param Object representation of the App Bundle to be created - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.createAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - createAppBundle(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'create', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id - }, - payload: data - }).then(data => wrapAppBundle(makeRequest, data)); - }, - /** - * Gets a list of App Installations across an org for given organization and App Definition - * If a spaceId is provided in the query object, it will return the App Installations for that specific space. - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getAppDefinition('', '') - * .then((appDefinition) => appDefinition.getInstallationsForOrg( - * { spaceId: '' } // optional - * )) - * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items)) - * .catch(console.error) - * ``` - */ - getInstallationsForOrg(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getInstallationsForOrg', - params: { - appDefinitionId: raw.sys.id, - organizationId: raw.sys.organization.sys.id, - query - } - }); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-contentful-api.js b/node_modules/contentful-management/dist/es-modules/create-contentful-api.js deleted file mode 100644 index dbe6b169..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-contentful-api.js +++ /dev/null @@ -1,576 +0,0 @@ -const _excluded = ["url"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -import { createRequestConfig } from 'contentful-sdk-core'; -import entities from './entities'; -/** - * @private - */ -export default function createClientApi(makeRequest) { - const { - wrapSpace, - wrapSpaceCollection - } = entities.space; - const { - wrapUser - } = entities.user; - const { - wrapPersonalAccessToken, - wrapPersonalAccessTokenCollection - } = entities.personalAccessToken; - const { - wrapAccessToken, - wrapAccessTokenCollection - } = entities.accessToken; - const { - wrapOrganization, - wrapOrganizationCollection - } = entities.organization; - const { - wrapUsageCollection - } = entities.usage; - const { - wrapAppDefinition - } = entities.appDefinition; - const { - wrapEnvironmentTemplate, - wrapEnvironmentTemplateCollection - } = entities.environmentTemplate; - return { - /** - * Gets all environment templates for a given organization with the lasted version - * @param organizationId - Organization ID - * @return Promise for a collection of EnvironmentTemplates - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplates('') - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplates: function getEnvironmentTemplates(organizationId, query = {}) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'getMany', - params: { - organizationId, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapEnvironmentTemplateCollection(makeRequest, data, organizationId)); - }, - /** - * Gets the lasted version environment template if params.version is not specified - * @param params.organizationId - Organization ID - * @param params.environmentTemplateId - Environment template ID - * @param [params.version] - Template version number to return a specific version of the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate({ - * organizationId: '', - * environmentTemplateId: '', - * version: version> - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplate: function getEnvironmentTemplate({ - organizationId, - environmentTemplateId, - version, - query = {} - }) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'get', - params: { - organizationId, - environmentTemplateId, - version, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Creates an environment template - * @param organizationId - Organization ID - * @param environmentTemplateData - Object representation of the environment template to be created - * @return Promise for the newly created EnvironmentTemplate - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createEnvironmentTemplate('', {}) - * .then((environmentTemplate) => console.log(environmentTemplate)) - * .catch(console.error) - * ``` - */ - createEnvironmentTemplate: function createEnvironmentTemplate(organizationId, environmentTemplateData) { - return makeRequest({ - entityType: 'EnvironmentTemplate', - action: 'create', - params: { - organizationId - }, - payload: environmentTemplateData - }).then(data => wrapEnvironmentTemplate(makeRequest, data, organizationId)); - }, - /** - * Gets all spaces - * @return Promise for a collection of Spaces - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaces() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaces: function getSpaces(query = {}) { - return makeRequest({ - entityType: 'Space', - action: 'getMany', - params: { - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapSpaceCollection(makeRequest, data)); - }, - /** - * Gets a space - * @param spaceId - Space ID - * @return Promise for a Space - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getSpace: function getSpace(spaceId) { - return makeRequest({ - entityType: 'Space', - action: 'get', - params: { - spaceId - } - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Creates a space - * @param spaceData - Object representation of the Space to be created - * @param organizationId - Organization ID, if the associated token can manage more than one organization. - * @return Promise for the newly created Space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createSpace({ - * name: 'Name of new space' - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - createSpace: function createSpace(spaceData, organizationId) { - return makeRequest({ - entityType: 'Space', - action: 'create', - params: { - organizationId - }, - payload: spaceData - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Gets an organization - * @param id - Organization ID - * @return Promise for a Organization - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => console.log(org)) - * .catch(console.error) - * ``` - */ - getOrganization: function getOrganization(id) { - return makeRequest({ - entityType: 'Organization', - action: 'get', - params: { - organizationId: id - } - }).then(data => wrapOrganization(makeRequest, data)); - }, - /** - * Gets a collection of Organizations - * @return Promise for a collection of Organizations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizations() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizations: function getOrganizations(query = {}) { - return makeRequest({ - entityType: 'Organization', - action: 'getMany', - params: { - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapOrganizationCollection(makeRequest, data)); - }, - /** - * Gets the authenticated user - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getCurrentUser() - * .then(user => console.log(user.firstName)) - * .catch(console.error) - * ``` - */ - getCurrentUser: function getCurrentUser(params) { - return makeRequest({ - entityType: 'User', - action: 'getCurrent', - params - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets App Definition - * @return Promise for App Definition - * @param organizationId - Id of the organization where the app is installed - * @param appDefinitionId - Id of the app that will be returned - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAppDefinition(<'org_id'>, <'app_id'>) - * .then(appDefinition => console.log(appDefinition.name)) - * .catch(console.error) - * ``` - */ - - getAppDefinition: function getAppDefinition(params) { - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Creates a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createPersonalAccessToken( - * { - * "name": "My Token", - * "scope": [ - * "content_management_manage" - * ] - * } - * ) - * .then(personalAccessToken => console.log(personalAccessToken.token)) - * .catch(console.error) - * ``` - */ - createPersonalAccessToken: function createPersonalAccessToken(data) { - return makeRequest({ - /** - * When the `PersonalAccessToken` entity is removed, replace the `entityType` with `AccessToken` - * and update the action to `createPersonalToken` to ultilize the new entity called AccessToken. - */ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - payload: data - }).then(response => wrapPersonalAccessToken(makeRequest, response)); - }, - /** - * @deprecated - use getAccessToken instead - * - * Gets a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getPersonalAccessToken: function getPersonalAccessToken(tokenId) { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'get', - params: { - tokenId - } - }).then(data => wrapPersonalAccessToken(makeRequest, data)); - }, - /** - * @deprecated - use getAccessTokens instead - * - * Gets all personal access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getPersonalAccessTokens: function getPersonalAccessTokens() { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'getMany', - params: {} - }).then(data => wrapPersonalAccessTokenCollection(makeRequest, data)); - }, - /** - * Gets a users access token - * @param data - users access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getAccessToken: function getAccessToken(tokenId) { - return makeRequest({ - entityType: 'AccessToken', - action: 'get', - params: { - tokenId - } - }).then(data => wrapAccessToken(makeRequest, data)); - }, - /** - * Gets all user access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getAccessTokens: function getAccessTokens() { - return makeRequest({ - entityType: 'AccessToken', - action: 'getMany', - params: {} - }).then(data => wrapAccessTokenCollection(makeRequest, data)); - }, - /** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationAccessTokens(organizationId) - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getOrganizationAccessTokens: function getOrganizationAccessTokens(organizationId, query = {}) { - return makeRequest({ - entityType: 'AccessToken', - action: 'getManyForOrganization', - params: { - organizationId, - query - } - }).then(data => wrapAccessTokenCollection(makeRequest, data)); - }, - /** - * Get organization usage grouped by {@link UsageMetricEnum metric} - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * @example ```javascript - * - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationUsage('', { - * 'metric[in]': 'cma,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2019-11-10' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizationUsage: function getOrganizationUsage(organizationId, query = {}) { - return makeRequest({ - entityType: 'Usage', - action: 'getManyForOrganization', - params: { - organizationId, - query - } - }).then(data => wrapUsageCollection(makeRequest, data)); - }, - /** - * Get organization usage grouped by space and metric - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaceUsage('', { - * skip: 0, - * limit: 10, - * 'metric[in]': 'cda,cpa,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2020-11-30' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getSpaceUsage: function getSpaceUsage(organizationId, query = {}) { - return makeRequest({ - entityType: 'Usage', - action: 'getManyForSpace', - params: { - organizationId, - query - } - }).then(data => wrapUsageCollection(makeRequest, data)); - }, - /** - * Make a custom request to the Contentful management API's /spaces endpoint - * @param opts - axios request options (https://github.com/mzabriskie/axios) - * @return Promise for the response data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.rawRequest({ - * method: 'GET', - * url: '/custom/path' - * }) - * .then((responseData) => console.log(responseData)) - * .catch(console.error) - * ``` - */ - rawRequest: function rawRequest(_ref) { - let { - url - } = _ref, - config = _objectWithoutProperties(_ref, _excluded); - return makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url, - config - } - }); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-entry-api.js b/node_modules/contentful-management/dist/es-modules/create-entry-api.js deleted file mode 100644 index b762336e..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-entry-api.js +++ /dev/null @@ -1,548 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import * as checks from './plain/checks'; -import entities from './entities'; - -/** - * @private - */ - -/** - * @private - */ -export default function createEntryApi(makeRequest) { - const { - wrapEntry, - wrapEntryCollection - } = entities.entry; - const { - wrapSnapshot, - wrapSnapshotCollection - } = entities.snapshot; - const { - wrapTask, - wrapTaskCollection - } = entities.task; - const { - wrapComment, - wrapCommentCollection - } = entities.comment; - const getParams = self => { - const entry = self.toPlainObject(); - return { - params: { - spaceId: entry.sys.space.sys.id, - environmentId: entry.sys.environment.sys.id, - entryId: entry.sys.id - }, - raw: entry - }; - }; - return { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => { - * entry.fields.title['en-US'] = 'New entry title' - * return entry.update() - * }) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: function update() { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'update', - params, - payload: raw - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Sends an JSON patch to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.patch([ - * { - * op: 'replace', - * path: '/fields/title/en-US', - * value: 'New entry title' - * } - * ])) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - patch: function patch(ops) { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'patch', - params: _objectSpread(_objectSpread({}, params), {}, { - version: raw.sys.version - }), - payload: ops - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.delete()) - * .then(() => console.log(`Entry deleted.`)) - * .catch(console.error) - * ``` - */ - delete: function del() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params - }); - }, - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.publish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} published.`)) - * .catch(console.error) - * ``` - */ - publish: function publish() { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'publish', - params, - payload: raw - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unpublish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`)) - * .catch(console.error) - * ``` - */ - - unpublish: function unpublish() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'unpublish', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Archives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.archive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`)) - * .catch(console.error) - * ``` - */ - archive: function archive() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'archive', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Unarchives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unarchive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`)) - * .catch(console.error) - * ``` - */ - unarchive: function unarchive() { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Entry', - action: 'unarchive', - params - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Gets all snapshots of an entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshots()) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getSnapshots: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - /** - * Gets a snapshot of an entry - * @param snapshotId - Id of the snapshot - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshot('')) - * .then((snapshot) => console.log(snapshot)) - * .catch(console.error) - * ``` - */ - getSnapshot: function (snapshotId) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getForEntry', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId - }) - }).then(data => wrapSnapshot(makeRequest, data)); - }, - /** - * Creates a new comment for an entry - * @param data Object representation of the Comment to be created - * @returns Promise for the newly created Comment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createComment({ - * body: 'Something left to do' - * })) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - createComment: function (data) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'create', - params: { - spaceId: params.spaceId, - environmentId: params.environmentId, - parentEntityId: params.entryId, - parentEntityType: 'Entry' - }, - payload: data - }).then(data => wrapComment(makeRequest, data)); - }, - /** - * Gets all comments of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComments()) - * .then((comments) => console.log(comments)) - * .catch(console.error) - * ``` - */ - getComments: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'getMany', - params - }).then(data => wrapCommentCollection(makeRequest, data)); - }, - /** - * Gets a comment of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComment(``)) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - getComment: function (id) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Comment', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - commentId: id - }) - }).then(data => wrapComment(makeRequest, data)); - }, - /** - * Creates a new task for an entry - * @param data Object representation of the Task to be created - * @returns Promise for the newly created Task - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createTask({ - * body: 'Something left to do', - * assignedTo: '', - * status: 'active' - * })) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - createTask: function (data) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'create', - params, - payload: data - }).then(data => wrapTask(makeRequest, data)); - }, - /** - * Gets all tasks of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTasks()) - * .then((tasks) => console.log(tasks)) - * .catch(console.error) - * ``` - */ - getTasks: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'getMany', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => wrapTaskCollection(makeRequest, data)); - }, - /** - * Gets a task of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTask(``)) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - getTask: function (id) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Task', - action: 'get', - params: _objectSpread(_objectSpread({}, params), {}, { - taskId: id - }) - }).then(data => wrapTask(makeRequest, data)); - }, - /** - * Checks if the entry is published. A published entry might have unpublished changes - */ - isPublished: function isPublished() { - const raw = this.toPlainObject(); - return checks.isPublished(raw); - }, - /** - * Checks if the entry is updated. This means the entry was previously published but has unpublished changes. - */ - isUpdated: function isUpdated() { - const raw = this.toPlainObject(); - return checks.isUpdated(raw); - }, - /** - * Checks if the entry is in draft mode. This means it is not published. - */ - isDraft: function isDraft() { - const raw = this.toPlainObject(); - return checks.isDraft(raw); - }, - /** - * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs. - */ - isArchived: function isArchived() { - const raw = this.toPlainObject(); - return checks.isArchived(raw); - }, - /** - * Recursively collects references of an entry and their descendants - */ - references: function references(options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - entryId: raw.sys.id, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(response => wrapEntryCollection(makeRequest, response)); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-environment-api.js b/node_modules/contentful-management/dist/es-modules/create-environment-api.js deleted file mode 100644 index 166846d5..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-environment-api.js +++ /dev/null @@ -1,2254 +0,0 @@ -const _excluded = ["installationId"]; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -import { createRequestConfig } from 'contentful-sdk-core'; -import entities from './entities'; -import { wrapReleaseAction, wrapReleaseActionCollection } from './entities/release-action'; -import { wrapRelease, wrapReleaseCollection } from './entities/release'; -import { wrapTag, wrapTagCollection } from './entities/tag'; -import { wrapUIConfig } from './entities/ui-config'; -import { wrapUserUIConfig } from './entities/user-ui-config'; -import { wrapEnvironmentTemplateInstallationCollection } from './entities/environment-template-installation'; - -/** - * @private - */ - -/** - * Creates API object with methods to access the Environment API - * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -export default function createEnvironmentApi(makeRequest) { - const { - wrapEnvironment - } = entities.environment; - const { - wrapContentType, - wrapContentTypeCollection - } = entities.contentType; - const { - wrapEntry, - wrapEntryCollection - } = entities.entry; - const { - wrapAsset, - wrapAssetCollection - } = entities.asset; - const { - wrapAssetKey - } = entities.assetKey; - const { - wrapLocale, - wrapLocaleCollection - } = entities.locale; - const { - wrapSnapshotCollection - } = entities.snapshot; - const { - wrapEditorInterface, - wrapEditorInterfaceCollection - } = entities.editorInterface; - const { - wrapUpload - } = entities.upload; - const { - wrapExtension, - wrapExtensionCollection - } = entities.extension; - const { - wrapAppInstallation, - wrapAppInstallationCollection - } = entities.appInstallation; - const { - wrapAppSignedRequest - } = entities.appSignedRequest; - const { - wrapAppActionCall - } = entities.appActionCall; - const { - wrapBulkAction - } = entities.bulkAction; - const { - wrapAppAccessToken - } = entities.appAccessToken; - return { - /** - * Deletes the environment - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.delete()) - * .then(() => console.log('Environment deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteEnvironment() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(() => { - // noop - }); - }, - /** - * Updates the environment - * @return Promise for the updated environment. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => { - * environment.name = 'New name' - * return environment.update() - * }) - * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateEnvironment() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: raw - }).then(data => wrapEnvironment(makeRequest, data)); - }, - /** - * Creates SDK Entry object (locally) from entry data - * @param entryData - Entry Data - * @return Entry - * @example ```javascript - * environment.getEntry('entryId').then(entry => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = entry.toPlainObject(); - * - * // The entry is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * entryWithMethodsAgain.update(); - * - * }); - * ``` - **/ - getEntryFromData(entryData) { - return wrapEntry(makeRequest, entryData); - }, - /** - * Creates SDK Asset object (locally) from entry data - * @param assetData - Asset ID - * @return Asset - * @example ```javascript - * environment.getAsset('asset_id').then(asset => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = asset.toPlainObject(); - * - * // The asset is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * assetWithMethodsAgain.update(); - * - * }); - * ``` - */ - getAssetFromData(assetData) { - return wrapAsset(makeRequest, assetData); - }, - /** - * - * @description Get a BulkAction by ID. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action - * @param bulkActionId - ID of the BulkAction to fetch - * @returns - Promise with the BulkAction - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getBulkAction('')) - * .then((bulkAction) => console.log(bulkAction)) - * ``` - */ - getBulkAction(bulkActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - bulkActionId - } - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to publish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createPublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createPublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createPublishBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to validate all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * action: 'publish', - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createValidateBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createValidateBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createValidateBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUnpublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await clientgetSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createUnpublishBulkAction(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'BulkAction', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapBulkAction(makeRequest, data)); - }, - /** - * Gets a Content Type - * @param contentTypeId - Content Type ID - * @return Promise for a Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - getContentType(contentTypeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - } - }).then(data => wrapContentType(makeRequest, data)); - }, - /** - * Gets a collection of Content Types - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Content Types - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypes()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getContentTypes(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapContentTypeCollection(makeRequest, data)); - }, - /** - * Creates a Content Type - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentType({ - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentType(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapContentType(makeRequest, response)); - }, - /** - * Creates a Content Type with a custom ID - * @param contentTypeId - Content Type ID - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentTypeWithId('', { - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentTypeWithId(contentTypeId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ContentType', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - }, - payload: data - }).then(response => wrapContentType(makeRequest, response)); - }, - /** - * Gets an EditorInterface for a ContentType - * @param contentTypeId - Content Type ID - * @return Promise for an EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaceForContentType('')) - * .then((EditorInterface) => console.log(EditorInterface)) - * .catch(console.error) - * ``` - */ - getEditorInterfaceForContentType(contentTypeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId - } - }).then(response => wrapEditorInterface(makeRequest, response)); - }, - /** - * Gets all EditorInterfaces - * @return Promise for a collection of EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaces()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEditorInterfaces() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(response => wrapEditorInterfaceCollection(makeRequest, response)); - }, - /** - * Gets an Entry - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Entry ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - getEntry(id, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapEntry(makeRequest, data)); - }, - /** - * Deletes an Entry of this environment - * @param id - Entry ID - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteEntry("4bmLXiuviAZH3jkj5DLRWE")) - * .then(() => console.log('Entry deleted.')) - * .catch(console.error) - * ``` - */ - deleteEntry(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id - } - }).then(() => { - // noop - }); - }, - /** - * Gets a collection of Entries - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEntries(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapEntryCollection(makeRequest, data)); - }, - /** - * Gets a collection of published Entries - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedEntries(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapEntryCollection(makeRequest, data)); - }, - /** - * Creates a Entry - * @param contentTypeId - The Content Type ID of the newly created Entry - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntry('', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntry(contentTypeId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId: contentTypeId - }, - payload: data - }).then(response => wrapEntry(makeRequest, response)); - }, - /** - * Creates a Entry with a custom ID - * @param contentTypeId - The Content Type of the newly created Entry - * @param id - Entry ID - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create entry - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntryWithId('', '', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntryWithId(contentTypeId, id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: id, - contentTypeId: contentTypeId - }, - payload: data - }).then(response => wrapEntry(makeRequest, response)); - }, - /** - * Get entry references - * @param entryId - Entry ID - * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum - * @returns Promise of Entry references - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: ' - * }) - * - * // Get entry references - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntryReferences('', {include: number})) - * .then((entry) => console.log(entry.includes)) - * // or - * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number})) - * .catch(console.error) - * ``` - */ - getEntryReferences(entryId, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Entry', - action: 'references', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId: entryId, - include: options === null || options === void 0 ? void 0 : options.include - } - }).then(response => wrapEntryCollection(makeRequest, response)); - }, - /** - * Gets an Asset - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Asset ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Asset - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - getAsset(id, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapAsset(makeRequest, data)); - }, - /** - * Gets a collection of Assets - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAssets(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapAssetCollection(makeRequest, data)); - }, - /** - * Gets a collection of published Assets - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedAssets(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'getPublished', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapAssetCollection(makeRequest, data)); - }, - /** - * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAsset({ - * fields: { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * } - * })) - * .then((asset) => asset.processForLocale("en-US")) // OR asset.processForAllLocales() - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAsset(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param id - Asset ID - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * })) - * .then((asset) => asset.process()) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - assetId: id - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetFromFiles({ - * fields: { - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'filename_english.jpg', - * file: createReadStream('path/to/filename_english.jpg') - * }, - * 'de-DE': { - * contentType: 'image/svg+xml', - * fileName: 'filename_german.svg', - * file: '' - * } - * } - * } - * })) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetFromFiles(data, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'createFromFiles', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadTimeout: options === null || options === void 0 ? void 0 : options.uploadTimeout - }, - payload: data - }).then(response => wrapAsset(makeRequest, response)); - }, - /** - * Creates an asset key for signing asset URLs (Embargoed Assets) - * @param data Object with request payload - * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling) - * @return Promise for the newly created AssetKey - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create assetKey - * now = () => Math.floor(Date.now() / 1000) - * const withExpiryIn1Hour = () => now() + 1 * 60 * 60 - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() })) - * .then((policy, secret) => console.log({ policy, secret })) - * .catch(console.error) - * ``` - */ - createAssetKey(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AssetKey', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapAssetKey(makeRequest, data)); - }, - /** - * Gets an Upload - * @param id - Upload ID - * @return Promise for an Upload - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUpload('') - * .then((upload) => console.log(upload)) - * .catch(console.error) - */ - getUpload(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: id - } - }).then(data => wrapUpload(makeRequest, data)); - }, - /** - * Creates a Upload. - * @param data - Object with file information. - * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream. - * @return Upload object containing information about the uploaded file. - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUpload({file: uploadStream}) - * .then((upload) => console.log(upload)) - * .catch(console.error) - * ``` - */ - createUpload: function createUpload(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Upload', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(data => wrapUpload(makeRequest, data)); - }, - /** - * Gets a Locale - * @param localeId - Locale ID - * @return Promise for an Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - getLocale(localeId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - localeId - } - }).then(data => wrapLocale(makeRequest, data)); - }, - /** - * Gets a collection of Locales - * @return Promise for a collection of Locales - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocales()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getLocales() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(data => wrapLocaleCollection(makeRequest, data)); - }, - /** - * Creates a Locale - * @param data - Object representation of the Locale to be created - * @return Promise for the newly created Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create locale - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createLocale({ - * name: 'German (Austria)', - * code: 'de-AT', - * fallbackCode: 'de-DE', - * optional: true - * })) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - createLocale(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapLocale(makeRequest, response)); - }, - /** - * Gets an UI Extension - * @param id - Extension ID - * @return Promise for an UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - getUiExtension(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - } - }).then(data => wrapExtension(makeRequest, data)); - }, - /** - * Gets a collection of UI Extension - * @return Promise for a collection of UI Extensions - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtensions() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getUiExtensions() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(response => wrapExtensionCollection(makeRequest, response)); - }, - /** - * Creates a UI Extension - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtension({ - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtension(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - /** - * Creates a UI Extension with a custom ID - * @param id - Extension ID - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtensionWithId('', { - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtensionWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - extensionId: id - }, - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - /** - * Creates an App Installation - * @param appDefinitionId - AppDefinition ID - * @param data - AppInstallation data - * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app) - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppInstallation('', { - * parameters: { - * someParameter: someValue - * } - * }) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - createAppInstallation(appDefinitionId, data, { - acceptAllTerms - } = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId, - acceptAllTerms - }, - payload: data - }).then(payload => wrapAppInstallation(makeRequest, payload)); - }, - /** - * Gets an App Installation - * @param id - AppDefintion ID - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - getAppInstallation(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId: id - } - }).then(data => wrapAppInstallation(makeRequest, data)); - }, - /** - * Gets a collection of App Installation - * @return Promise for a collection of App Installations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallations() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppInstallations() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }).then(data => wrapAppInstallationCollection(makeRequest, data)); - }, - /** - * Creates an app action call - * @param appDefinitionId - AppDefinition ID - * @param appActionId - action ID - * @param data - App Action Call data - * @return Promise for an App Action Call - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * headers: { - * 'x-my-header': 'some-value' - * }, - * body: { - * 'some-body-value': true - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppActionCall('', '', data) - * .then((appActionCall) => console.log(appActionCall)) - * .catch(console.error) - * ``` - */ - createAppActionCall(appDefinitionId, appActionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppActionCall', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId, - appActionId - }, - payload: data - }).then(payload => wrapAppActionCall(makeRequest, payload)); - }, - /** - * Creates an app signed request - * @param appDefinitionId - AppDefinition ID - * @param data - SignedRequest data - * @return Promise for a Signed Request - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * method: 'POST', - * path: '/request_path', - * body: '{ "key": "data" }', - * headers: { - * 'x-my-header': 'some-value' - * }, - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppSignedRequest('', data) - * .then((signedRequest) => console.log(signedRequest)) - * .catch(console.error) - * ``` - */ - createAppSignedRequest(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSignedRequest', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppSignedRequest(makeRequest, payload)); - }, - /** - * Creates an app access token - * @param appDefinitionId - AppDefinition ID - * @param data - Json Web Token - * @return Promise for an app access token - * @example ```javascript - * const contentful = require('contentful-management') - * const { sign } = require('jsonwebtoken') - * - * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' } - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * jwt: sign({}, '', signOptions) - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppAccessToken('', data) - * .then((appAccessToken) => console.log(appAccessToken)) - * .catch(console.error) - * ``` - */ - createAppAccessToken(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAccessToken', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppAccessToken(makeRequest, payload)); - }, - /** - * Gets all snapshots of an entry - * @func getEntrySnapshots - * @param entryId - Entry ID - * @param query - query additional query paramaters - * @return Promise for a collection of Entry Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntrySnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getEntrySnapshots(entryId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForEntry', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - entryId, - query - } - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - /** - * Gets all snapshots of a contentType - * @func getContentTypeSnapshots - * @param contentTypeId - Content Type ID - * @param query - query additional query paramaters - * @return Promise for a collection of Content Type Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypeSnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getContentTypeSnapshots(contentTypeId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - contentTypeId, - query - } - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - createTag(id, name, visibility) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'createWithId', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - }, - payload: { - name, - sys: { - visibility: visibility !== null && visibility !== void 0 ? visibility : 'private' - } - } - }).then(data => wrapTag(makeRequest, data)); - }, - getTags(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapTagCollection(makeRequest, data)); - }, - getTag(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - tagId: id - } - }).then(data => wrapTag(makeRequest, data)); - }, - /** - * Retrieves a Release by ID - * @param releaseId - * @returns Promise containing a wrapped Release - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getRelease('')) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - getRelease(releaseId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }).then(data => wrapRelease(makeRequest, data)); - }, - /** - * Gets a Collection of Releases, - * @param {ReleaseQueryOptions} query filtering options for the collection result - * @returns Promise containing a wrapped Release Collection - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' })) - * .then((releases) => console.log(releases)) - * .catch(console.error) - * ``` - */ - getReleases(query) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'query', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query - } - }).then(data => wrapReleaseCollection(makeRequest, data)); - }, - /** - * Creates a new Release with the entities and title in the payload - * @param payload Object containing the payload in order to create a Release - * @returns Promise containing a wrapped Release, that has other helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * title: 'My Release', - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createRelease(payload)) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - createRelease(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'create', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }, - payload - }).then(data => wrapRelease(makeRequest, data)); - }, - /** - * Updates a Release and replaces all the properties. - * @param {object} options, - * @param options.releaseId the ID of the release - * @param options.payload the payload to be updated in the Release - * @param options.version Release sys.version that to be updated - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * - * const payload = { - * title: "Updated Release title", - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } )) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - updateRelease({ - releaseId, - payload, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'update', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - }, - payload - }).then(data => wrapRelease(makeRequest, data)); - }, - /** - * Deletes a Release by ID - does not delete any entities. - * @param releaseId the ID of the release - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteRelease('') - * .catch(console.error) - * ``` - */ - deleteRelease(releaseId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }); - }, - /** - * Publishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - publishRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'publish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => wrapReleaseAction(makeRequest, data)); - }, - /** - * Unpublishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unpublishRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unpublish', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => wrapReleaseAction(makeRequest, data)); - }, - /** - * Validates all Entities contained in a Release against an action (publish or unpublish) - * @param options.releaseId the ID of the release - * @param options.payload (optional) the type of action to be validated against - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } })) - * .catch(console.error) - * ``` - */ - validateRelease({ - releaseId, - payload - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'validate', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - }, - payload - }).then(data => wrapReleaseAction(makeRequest, data)); - }, - /** - * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc). - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be archived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - archiveRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'archive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => wrapRelease(makeRequest, data)); - }, - /** - * Unarchives a previously archived Release - this enables the release to be published, unpublished etc. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be unarchived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unarchiveRelease({ - releaseId, - version - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Release', - action: 'unarchive', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId, - version - } - }).then(data => wrapRelease(makeRequest, data)); - }, - /** - * Retrieves a ReleaseAction by ID - * @param params.releaseId The ID of a Release - * @param params.actionId The ID of a Release Action - * @returns Promise containing a wrapped ReleaseAction - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' })) - * .then((releaseAction) => console.log(releaseAction)) - * .catch(console.error) - * ``` - */ - getReleaseAction({ - actionId, - releaseId - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params: { - actionId, - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - releaseId - } - }).then(data => wrapReleaseAction(makeRequest, data)); - }, - /** - * Gets a Collection of ReleaseActions - * @param {string} params.releaseId ID of the Release to fetch the actions from - * @param {ReleaseQueryOptions} params.query filtering options for the collection result - * @returns Promise containing a wrapped ReleaseAction Collection - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } })) - * .then((releaseActions) => console.log(releaseActions)) - * .catch(console.error) - * ``` - */ - getReleaseActions({ - query - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'getMany', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - query - } - }).then(data => wrapReleaseActionCollection(makeRequest, data)); - }, - async getUIConfig() { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'UIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - return wrapUIConfig(makeRequest, data); - }, - async getUserUIConfig() { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'UserUIConfig', - action: 'get', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - } - }); - return wrapUserUIConfig(makeRequest, data); - }, - /** - * Gets a collection of all environment template installations in the environment for a given template - * @param environmentTemplateId - Environment template ID to return installations for - * @param [options.installationId] - Installation ID to filter for a specific installation - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEnvironmentTemplateInstallations('')) - * .then((installations) => console.log(installations.items)) - * .catch(console.error) - * ``` - */ - async getEnvironmentTemplateInstallations(environmentTemplateId, _ref = {}) { - let { - installationId - } = _ref, - query = _objectWithoutProperties(_ref, _excluded); - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentTemplateInstallation', - action: 'getForEnvironment', - params: _objectSpread(_objectSpread({ - environmentTemplateId - }, installationId && { - installationId - }), {}, { - query: _objectSpread({}, createRequestConfig({ - query - }).params), - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id - }) - }).then(data => wrapEnvironmentTemplateInstallationCollection(makeRequest, data)); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-organization-api.js b/node_modules/contentful-management/dist/es-modules/create-organization-api.js deleted file mode 100644 index a88d4bfd..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-organization-api.js +++ /dev/null @@ -1,1252 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { createRequestConfig } from 'contentful-sdk-core'; -import entities from './entities'; - -/** - * @private - */ - -/** - * Creates API object with methods to access the Organization API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulOrganizationAPI} - * @private - */ -export default function createOrganizationApi(makeRequest) { - const { - wrapAppDefinition, - wrapAppDefinitionCollection - } = entities.appDefinition; - const { - wrapUser, - wrapUserCollection - } = entities.user; - const { - wrapOrganizationMembership, - wrapOrganizationMembershipCollection - } = entities.organizationMembership; - const { - wrapTeamMembership, - wrapTeamMembershipCollection - } = entities.teamMembership; - const { - wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection - } = entities.teamSpaceMembership; - const { - wrapTeam, - wrapTeamCollection - } = entities.team; - const { - wrapSpaceMembership, - wrapSpaceMembershipCollection - } = entities.spaceMembership; - const { - wrapOrganizationInvitation - } = entities.organizationInvitation; - const { - wrapAppUpload - } = entities.appUpload; - const { - wrapAppSigningSecret - } = entities.appSigningSecret; - const { - wrapAppEventSubscription - } = entities.appEventSubscription; - const { - wrapAppKey, - wrapAppKeyCollection - } = entities.appKey; - const { - wrapAppDetails - } = entities.appDetails; - const { - wrapAppAction, - wrapAppActionCollection - } = entities.appAction; - const { - wrapRoleCollection - } = entities.role; - const { - wrapSpaceCollection - } = entities.space; - return { - /** - * Gets a collection of spaces in the organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getSpaces()) - * .then((spaces) => console.log(spaces)) - * .catch(console.error) - * ``` - */ - getSpaces(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapSpaceCollection(makeRequest, data)); - }, - /** - * Gets a User - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getUser(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - userId: id - } - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets a collection of Users in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUsers()) - * .then((users) => console.log(users)) - * .catch(console.error) - * ``` - */ - getUsers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapUserCollection(makeRequest, data)); - }, - /** - * Gets an Organization Membership - * @param id - Organization Membership ID - * @return Promise for an Organization Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationMembership(id) { - const raw = this.toPlainObject(); - const organizationId = raw.sys.id; - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'get', - params: { - organizationId, - organizationMembershipId: id - } - }).then(data => wrapOrganizationMembership(makeRequest, data, organizationId)); - }, - /** - * Gets a collection of Organization Memberships - * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Organization Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - - getOrganizationMemberships(params = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'getMany', - params: _objectSpread({ - organizationId: raw.sys.id - }, params) - }).then(data => wrapOrganizationMembershipCollection(makeRequest, data, raw.sys.id)); - }, - /** - * Creates a Team - * @param data representation of the Team to be created - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createTeam({ - * name: 'new team', - * description: 'new team description' - * })) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - createTeam(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapTeam(makeRequest, data)); - }, - /** - * Gets an Team - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeam('teamId')) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - getTeam(teamId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId - } - }).then(data => wrapTeam(makeRequest, data)); - }, - /** - * Gets all Teams in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeams()) - * .then((teams) => console.log(teams)) - * .catch(console.error) - * ``` - */ - getTeams(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapTeamCollection(makeRequest, data)); - }, - /** - * Creates a Team membership - * @param teamId - Id of the team the membership will be created in - * @param data - Object representation of the Team Membership to be created - * @return Promise for the newly created TeamMembership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((org) => org.createTeamMembership('teamId', { - * admin: true, - * organizationMembershipId: 'organizationMembershipId' - * })) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - createTeamMembership(teamId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'create', - params: { - organizationId: raw.sys.id, - teamId - }, - payload: data - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - /** - * Gets an Team Membership from the team with given teamId - * @return Promise for an Team Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id')) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - getTeamMembership(teamId, teamMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'get', - params: { - organizationId: raw.sys.id, - teamId, - teamMembershipId - } - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - /** - * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization. - * @return Promise for a Team Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMemberships('teamId')) - * .then((teamMemberships) => console.log(teamMemberships)) - * .catch(console.error) - * ``` - */ - getTeamMemberships(opts = {}) { - const { - teamId, - query = {} - } = opts; - const raw = this.toPlainObject(); - if (teamId) { - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForTeam', - params: { - organizationId: raw.sys.id, - teamId, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapTeamMembershipCollection(makeRequest, data)); - } - return makeRequest({ - entityType: 'TeamMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapTeamMembershipCollection(makeRequest, data)); - }, - /** - * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization. - * @return Promise for a Team Space Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMemberships('teamId')) - * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(opts = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query: opts.query || {} - }).params, - teamId: opts.teamId - } - }).then(data => wrapTeamSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Get a Team Space Membership with given teamSpaceMembershipId - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error)] - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - teamSpaceMembershipId - } - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - /** - * Gets an Space Membership in Organization - * @param id - Organiztion Space Membership ID - * @return Promise for a Space Membership in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMembership(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getForOrganization', - params: { - organizationId: raw.sys.id, - spaceMembershipId: id - } - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection Space Memberships in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a Space Membership collection across all spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100 - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Gets an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getOrganizationInvitation('invitation_id')) - * .then((invitation) => console.log(invitation)) - * .catch(console.error) - * ``` - */ - getOrganizationInvitation(invitationId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'get', - params: { - organizationId: raw.sys.id, - invitationId - } - }).then(data => wrapOrganizationInvitation(makeRequest, data)); - }, - /** - * Create an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.createOrganizationInvitation({ - * email: 'user.email@example.com' - * firstName: 'User First Name' - * lastName: 'User Last Name' - * role: 'developer' - * }) - * .catch(console.error) - * ``` - */ - createOrganizationInvitation(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationInvitation', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapOrganizationInvitation(makeRequest, data)); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getManyForOrganization', - params: { - organizationId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapRoleCollection(makeRequest, data)); - }, - /** - * Creates an app definition - * @param Object representation of the App Definition to be created - * @return Promise for the newly created AppDefinition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppDefinition({ - * name: 'Example app', - * locations: [{ location: 'app-config' }], - * src: "http://my-app-host.com/my-app" - * })) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - createAppDefinition(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: data - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Gets all app definitions - * @return Promise for a collection of App Definitions - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinitions()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppDefinitions(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'getMany', - params: { - organizationId: raw.sys.id, - query: query - } - }).then(data => wrapAppDefinitionCollection(makeRequest, data)); - }, - /** - * Gets an app definition - * @return Promise for an App Definition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - getAppDefinition(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDefinition', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId: id - } - }).then(data => wrapAppDefinition(makeRequest, data)); - }, - /** - * Gets an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppUpload('')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - getAppUpload(appUploadId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'get', - params: { - organizationId: raw.sys.id, - appUploadId - } - }).then(data => wrapAppUpload(makeRequest, data)); - }, - /** - * Creates an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppUpload('some_zip_file')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - createAppUpload(file) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'create', - params: { - organizationId: raw.sys.id - }, - payload: { - file - } - }).then(data => wrapAppUpload(makeRequest, data)); - }, - /** - * Creates or updates an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' })) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - upsertAppSigningSecret(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppSigningSecret(makeRequest, payload)); - }, - /** - * Gets an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppSigningSecret('app_definition_id')) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - getAppSigningSecret(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppSigningSecret(makeRequest, payload)); - }, - /** - * Deletes an app signing secret - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppSigningSecret('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppSigningSecret(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - upsertAppEventSubscription(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppEventSubscription(makeRequest, payload)); - }, - /** - * Gets an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppEventSubscription('app_definition_id')) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - getAppEventSubscription(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppEventSubscription(makeRequest, payload)); - }, - /** - * Deletes the current App Event Subscription for the given App - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppEventSubscription('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppEventSubscription(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppEventSubscription', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // generate a new private key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * - * // or use an existing JSON Web Key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - createAppKey(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppKey(makeRequest, payload)); - }, - /** - * Gets an app key by fingerprint - * @return Promise for an App Key - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppKey('app_definition_id', 'fingerprint')) - * .then((appKey) => console.log(appKey)) - * .catch(console.error) - * ``` - */ - getAppKey(appDefinitionId, fingerprint) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId, - fingerprint - } - }).then(payload => wrapAppKey(makeRequest, payload)); - }, - /** - * Gets all keys for the given app - * @return Promise for an array of App Keys - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // with default pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id')) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * - * // with explicit pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' })) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * ``` - */ - getAppKeys(appDefinitionId, query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId, - query: createRequestConfig({ - query - }).params - } - }).then(payload => wrapAppKeyCollection(makeRequest, payload)); - }, - /** - * Deletes an app key by fingerprint. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppKey(appDefinitionId, fingerprint) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppKey', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId, - fingerprint - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates or updates an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppDetails('app_definition_id', - * { icon: { value: 'base_64_image', type: 'base64' }} - * )) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - upsertAppDetails(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'upsert', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppDetails(makeRequest, payload)); - }, - /** - * Gets an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDetails('app_definition_id')) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - getAppDetails(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppDetails(makeRequest, payload)); - }, - /** - * Deletes an app details entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppDetails('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppDetails(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(() => { - /* noop*/ - }); - }, - /** - * Creates an app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppAction('app_definition_id', { - * type: 'endpoint', - * name: 'my nice new app action', - * url: 'https://www.somewhere.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - createAppAction(appDefinitionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'create', - params: { - organizationId: raw.sys.id, - appDefinitionId - }, - payload: data - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Updates an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', { - * type: 'endpoint', - * name: 'my nice updated app action', - * url: 'https://www.somewhere-else.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - updateAppAction(appDefinitionId, appActionId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'update', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - }, - payload: data - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Deletes an app action entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppAction(appDefinitionId, appActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - } - }).then(payload => { - /* noop*/ - }); - }, - /** - * Gets an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppAction('app_definition_id', 'app_action_id')) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - getAppAction(appDefinitionId, appActionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'get', - params: { - organizationId: raw.sys.id, - appDefinitionId, - appActionId - } - }).then(payload => wrapAppAction(makeRequest, payload)); - }, - /** - * Gets existing app actions for an App Definition. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppActions('app_definition_id')) - * .then((appActions) => console.log(appActions)) - * .catch(console.error) - * ``` - */ - getAppActions(appDefinitionId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'getMany', - params: { - organizationId: raw.sys.id, - appDefinitionId - } - }).then(payload => wrapAppActionCollection(makeRequest, payload)); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/create-space-api.js b/node_modules/contentful-management/dist/es-modules/create-space-api.js deleted file mode 100644 index a5f85de9..00000000 --- a/node_modules/contentful-management/dist/es-modules/create-space-api.js +++ /dev/null @@ -1,1565 +0,0 @@ -/** - * Contentful Space API. Contains methods to access any operations at a space - * level, such as creating and reading entities contained in a space. - */ - -import { createRequestConfig } from 'contentful-sdk-core'; -import entities from './entities'; - -/** - * @private - */ - -/** - * Creates API object with methods to access the Space API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -export default function createSpaceApi(makeRequest) { - const { - wrapSpace - } = entities.space; - const { - wrapEnvironment, - wrapEnvironmentCollection - } = entities.environment; - const { - wrapWebhook, - wrapWebhookCollection - } = entities.webhook; - const { - wrapRole, - wrapRoleCollection - } = entities.role; - const { - wrapUser, - wrapUserCollection - } = entities.user; - const { - wrapSpaceMember, - wrapSpaceMemberCollection - } = entities.spaceMember; - const { - wrapSpaceMembership, - wrapSpaceMembershipCollection - } = entities.spaceMembership; - const { - wrapTeamSpaceMembership, - wrapTeamSpaceMembershipCollection - } = entities.teamSpaceMembership; - const { - wrapTeamCollection - } = entities.team; - const { - wrapApiKey, - wrapApiKeyCollection - } = entities.apiKey; - const { - wrapEnvironmentAlias, - wrapEnvironmentAliasCollection - } = entities.environmentAlias; - const { - wrapPreviewApiKey, - wrapPreviewApiKeyCollection - } = entities.previewApiKey; - const { - wrapScheduledAction, - wrapScheduledActionCollection - } = entities.scheduledAction; - return { - /** - * Deletes the space - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.delete()) - * .then(() => console.log('Space deleted.')) - * .catch(console.error) - * ``` - */ - delete: function deleteSpace() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'delete', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Updates the space - * @return Promise for the updated space. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * space.name = 'New name' - * return space.update() - * }) - * .then((space) => console.log(`Space ${space.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: function updateSpace() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Space', - action: 'update', - params: { - spaceId: raw.sys.id - }, - payload: raw, - headers: {} - }).then(data => wrapSpace(makeRequest, data)); - }, - /** - * Gets an environment - * @param id - Environment ID - * @return Promise for an Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - getEnvironment(environmentId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentId - } - }).then(data => wrapEnvironment(makeRequest, data)); - }, - /** - * Gets a collection of Environments - * @return Promise for a collection of Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironments()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironments(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query - } - }).then(data => wrapEnvironmentCollection(makeRequest, data)); - }, - /** - * Creates an environment - * @param data - Object representation of the Environment to be created - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironment({ name: 'Staging' })) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironment(data = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapEnvironment(makeRequest, response)); - }, - /** - * Creates an Environment with a custom ID - * @param id - Environment ID - * @param data - Object representation of the Environment to be created - * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is "master" - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironmentWithId(id, data, sourceEnvironmentId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Environment', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentId: id, - sourceEnvironmentId - }, - payload: data - }).then(response => wrapEnvironment(makeRequest, response)); - }, - /** - * Gets a Webhook - * @param id - Webhook ID - * @return Promise for a Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - getWebhook(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'get', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - } - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Gets a collection of Webhooks - * @return Promise for a collection of Webhooks - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhooks()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getWebhooks() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapWebhookCollection(makeRequest, data)); - }, - /** - * Fetch a webhook signing secret - * @returns Promise for the redacted webhook signing secret in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhookSigningSecret()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookSigningSecret: function getSigningSecret() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Fetch a webhook retry policy - * @returns Promise for the redacted webhook retry policy in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRetryPolicy()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookRetryPolicy: function getWebhookRetryPolicy() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Creates a Webhook - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhook({ - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhook(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Creates a Webhook with a custom ID - * @param id - Webhook ID - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhookWithId('', { - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhookWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - webhookDefinitionId: id - }, - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - /** - * Create or update the webhook signing secret for this space - * @param data 64 character string that will be used to sign the webhook calls - * @returns Promise for the redacted webhook signing secret that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * const crypto = require('crypto') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const signingSecret = client.getSpace('') - * .then((space) => space.upsertWebhookSigningSecret({ - * value: crypto.randomBytes(32).toString('hex') - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookSigningSecret: function getSigningSecret(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertSigningSecret', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Create or update the webhook retry policy for this space - * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy - * @returns Promise for the redacted webhook retry policy that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const retryPolicy = client.getSpace('') - * .then((space) => space.upsertWebhookRetryPolicy({ - * maxRetries: 15 - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookRetryPolicy: function upsertWebhookRetryPolicy(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'upsertRetryPolicy', - params: { - spaceId: raw.sys.id - }, - payload: data - }); - }, - /** - * Delete the webhook signing secret for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookSigningSecret()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookSigningSecret: function getSigningSecret() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteSigningSecret', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Delete the webhook retry policy for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookRetryPolicy()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookRetryPolicy: function deleteRetryPolicy() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'deleteRetryPolicy', - params: { - spaceId: raw.sys.id - } - }); - }, - /** - * Gets a Role - * @param id - Role ID - * @return Promise for a Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createRole({ - * fields: { - * title: { - * 'en-US': 'Role title' - * } - * } - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - getRole(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'get', - params: { - spaceId: raw.sys.id, - roleId: id - } - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapRoleCollection(makeRequest, data)); - }, - /** - * Creates a Role - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRole({ - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRole(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Creates a Role with a custom ID - * @param id - Role ID - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRoleWithId('', { - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRoleWithId(id, roleData) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - roleId: id - }, - payload: roleData - }).then(data => wrapRole(makeRequest, data)); - }, - /** - * Gets a User - * @param userId - User ID - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getSpaceUser(userId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getForSpace', - params: { - spaceId: raw.sys.id, - userId - } - }).then(data => wrapUser(makeRequest, data)); - }, - /** - * Gets a collection of Users in a space - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUsers(query)) - * .then((data) => console.log(data)) - * .catch(console.error) - * ``` - */ - getSpaceUsers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'User', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapUserCollection(makeRequest, data)); - }, - /** - * Gets a collection of teams for a space - * @param query - * @return Promise for a collection of teams for a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeams()) - * .then((teamsCollection) => console.log(teamsCollection)) - * .catch(console.error) - * ``` - */ - getTeams(query = { - limit: 100 - }) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'getManyForSpace', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapTeamCollection(makeRequest, data)); - }, - /** - * Gets a Space Member - * @param id Get Space Member by user_id - * @return Promise for a Space Member - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMember(id)) - * .then((spaceMember) => console.log(spaceMember)) - * .catch(console.error) - * ``` - */ - getSpaceMember(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMemberId: id - } - }).then(data => wrapSpaceMember(makeRequest, data)); - }, - /** - * Gets a collection of Space Members - * @param query - * @return Promise for a collection of Space Members - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembers({'limit': 100})) - * .then((spaceMemberCollection) => console.log(spaceMemberCollection)) - * .catch(console.error) - * ``` - */ - getSpaceMembers(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMember', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapSpaceMemberCollection(makeRequest, data)); - }, - /** - * Gets a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @return Promise for a Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('id')) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - getSpaceMembership(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - } - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection of Space Memberships - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query - }).params - } - }).then(data => wrapSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Creates a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembership({ - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembership(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapSpaceMembership(makeRequest, response)); - }, - /** - * Creates a Space Membership with a custom ID - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembershipWithId('', { - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembershipWithId(id, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - spaceMembershipId: id - }, - payload: data - }).then(response => wrapSpaceMembership(makeRequest, response)); - }, - /** - * Gets a Team Space Membership - * @param id - Team Space Membership ID - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('team_space_membership_id')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'get', - params: { - spaceId: raw.sys.id, - teamSpaceMembershipId - } - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - /** - * Gets a collection of Team Space Memberships - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Team Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMemberships()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(query = {}) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query: createRequestConfig({ - query: query - }).params - } - }).then(data => wrapTeamSpaceMembershipCollection(makeRequest, data)); - }, - /** - * Creates a Team Space Membership - * @param id - Team ID - * @param data - Object representation of the Team Space Membership to be created - * @return Promise for the newly created Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createTeamSpaceMembership('team_id', { - * admin: false, - * roles: [ - * { - sys: { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * } - * ], - * })) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - createTeamSpaceMembership(teamId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'create', - params: { - spaceId: raw.sys.id, - teamId - }, - payload: data - }).then(response => wrapTeamSpaceMembership(makeRequest, response)); - }, - /** - * Gets a Api Key - * @param id - API Key ID - * @return Promise for a Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKey('')) - * .then((apikey) => console.log(apikey)) - * .catch(console.error) - * ``` - */ - getApiKey(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - apiKeyId: id - } - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Gets a collection of Api Keys - * @return Promise for a collection of Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getApiKeys() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapApiKeyCollection(makeRequest, data)); - }, - /** - * Gets a collection of preview Api Keys - * @return Promise for a collection of Preview Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPreviewApiKeys() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapPreviewApiKeyCollection(makeRequest, data)); - }, - /** - * Gets a preview Api Key - * @param id - Preview API Key ID - * @return Promise for a Preview Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKey('')) - * .then((previewApikey) => console.log(previewApikey)) - * .catch(console.error) - * ``` - */ - getPreviewApiKey(id) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'PreviewApiKey', - action: 'get', - params: { - spaceId: raw.sys.id, - previewApiKeyId: id - } - }).then(data => wrapPreviewApiKey(makeRequest, data)); - }, - /** - * Creates a Api Key - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKey({ - * name: 'API Key name', - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKey: function createApiKey(payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Creates a Api Key with a custom ID - * @param id - Api Key ID - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKeyWithId('', { - * name: 'API Key name' - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKeyWithId(id, payload) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ApiKey', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - apiKeyId: id - }, - payload - }).then(data => wrapApiKey(makeRequest, data)); - }, - /** - * Creates an EnvironmentAlias with a custom ID - * @param environmentAliasId - EnvironmentAlias ID - * @param data - Object representation of the EnvironmentAlias to be created - * @return Promise for the newly created EnvironmentAlias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentAliasWithId('', { - * environment: { - * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' } - * } - * })) - * .then((environmentAlias) => console.log(environmentAlias)) - * .catch(console.error) - * ``` - */ - createEnvironmentAliasWithId(environmentAliasId, data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'createWithId', - params: { - spaceId: raw.sys.id, - environmentAliasId - }, - payload: data - }).then(response => wrapEnvironmentAlias(makeRequest, response)); - }, - /** - * Gets an Environment Alias - * @param Environment Alias ID - * @return Promise for an Environment Alias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => console.log(alias)) - * .catch(console.error) - * ``` - */ - getEnvironmentAlias(environmentAliasId) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'get', - params: { - spaceId: raw.sys.id, - environmentAliasId - } - }).then(data => wrapEnvironmentAlias(makeRequest, data)); - }, - /** - * Gets a collection of Environment Aliases - * @return Promise for a collection of Environment Aliases - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAliases() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentAliases() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'getMany', - params: { - spaceId: raw.sys.id - } - }).then(data => wrapEnvironmentAliasCollection(makeRequest, data)); - }, - /** - * Query for scheduled actions in space. - * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details. - * @return Promise for the scheduled actions query - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledActions({ - * 'environment.sys.id': '', - * 'sys.status': 'scheduled' - * })) - * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items)) - * .catch(console.error) - * ``` - */ - getScheduledActions(query) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'getMany', - params: { - spaceId: raw.sys.id, - query - } - }).then(response => wrapScheduledActionCollection(makeRequest, response)); - }, - /** - * Get a Scheduled Action in the current space by environment and ID. - * - * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself. - * @returns Promise with the Scheduled Action - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledAction({ - * scheduledActionId: '', - * environmentId: '' - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - getScheduledAction({ - scheduledActionId, - environmentId - }) { - const space = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'get', - params: { - spaceId: space.sys.id, - environmentId, - scheduledActionId - } - }).then(scheduledAction => wrapScheduledAction(makeRequest, scheduledAction)); - }, - /** - * Creates a scheduled action - * @param data - Object representation of the scheduled action to be created - * @return Promise for the newly created scheduled actions - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - createScheduledAction(data) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'create', - params: { - spaceId: raw.sys.id - }, - payload: data - }).then(response => wrapScheduledAction(makeRequest, response)); - }, - /** - * Update a scheduled action - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to update - * @param options.version the sys.version of the scheduled action to be updated - * @param payload the scheduled actions object with updates, omitting sys object - * @returns Promise containing a wrapped scheduled action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * const { _sys, ...payload } = scheduledAction; - * return space.updateScheduledAction({ - * ...payload, - * scheduledFor: { - * ...payload.scheduledFor, - * timezone: 'Europe/Paris' - * } - * }) - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - updateScheduledAction({ - scheduledActionId, - payload, - version - }) { - const spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params: { - spaceId: spaceProps.sys.id, - version, - scheduledActionId - }, - payload - }).then(response => wrapScheduledAction(makeRequest, response)); - }, - /** - * Cancels a Scheduled Action. - * Only cancels actions that have not yet executed. - * - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to be canceled - * @param options.environmentId the environment ID of the scheduled action to be canceled - * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action. - * @returns Promise containing a wrapped Scheduled Action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Given that an Scheduled Action is scheduled - * client.getSpace('') - * .then((space) => space.deleteScheduledAction({ - * environmentId: '', - * scheduledActionId: '' - * })) - * // The scheduled Action sys.status is now 'canceled' - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - deleteScheduledAction({ - scheduledActionId, - environmentId - }) { - const spaceProps = this.toPlainObject(); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params: { - spaceId: spaceProps.sys.id, - environmentId, - scheduledActionId - } - }).then(response => wrapScheduledAction(makeRequest, response)); - } - }; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/enhance-with-methods.js b/node_modules/contentful-management/dist/es-modules/enhance-with-methods.js deleted file mode 100644 index 315bb87e..00000000 --- a/node_modules/contentful-management/dist/es-modules/enhance-with-methods.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This method enhances a base object which would normally contain data, with - * methods from another object that might work on manipulating that data. - * All the added methods are set as non enumerable, non configurable, and non - * writable properties. This ensures that if we try to clone or stringify the - * base object, we don't have to worry about these additional methods. - * @private - * @param {object} baseObject - Base object with data - * @param {object} methodsObject - Object with methods as properties. The key - * values used here will be the same that will be defined on the baseObject. - */ -export default function enhanceWithMethods(baseObject, methodsObject) { - // @ts-expect-error - return Object.keys(methodsObject).reduce((enhancedObject, methodName) => { - Object.defineProperty(enhancedObject, methodName, { - enumerable: false, - configurable: true, - writable: false, - value: methodsObject[methodName] - }); - return enhancedObject; - }, baseObject); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/api-key.js b/node_modules/contentful-management/dist/es-modules/entities/api-key.js deleted file mode 100644 index de2bb45e..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/api-key.js +++ /dev/null @@ -1,55 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createApiKeyApi(makeRequest) { - const getParams = data => { - var _data$sys$space$sys$i, _data$sys$space; - return { - spaceId: (_data$sys$space$sys$i = (_data$sys$space = data.sys.space) === null || _data$sys$space === void 0 ? void 0 : _data$sys$space.sys.id) !== null && _data$sys$space$sys$i !== void 0 ? _data$sys$space$sys$i : '', - apiKeyId: data.sys.id - }; - }; - return { - update: function update() { - const self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'update', - params: getParams(self), - payload: self, - headers: {} - }).then(data => wrapApiKey(makeRequest, data)); - }, - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'ApiKey', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - */ -export function wrapApiKey(makeRequest, data) { - const apiKey = toPlainObject(copy(data)); - const apiKeyWithMethods = enhanceWithMethods(apiKey, createApiKeyApi(makeRequest)); - return freezeSys(apiKeyWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key collection data - * @return Wrapped api key collection data - */ -export const wrapApiKeyCollection = wrapCollection(wrapApiKey); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-action-call.js b/node_modules/contentful-management/dist/es-modules/entities/app-action-call.js deleted file mode 100644 index 04e95c01..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-action-call.js +++ /dev/null @@ -1,70 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import { toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -export default function createAppActionCallApi(makeRequest, retryOptions) { - return { - createWithResponse: function () { - const payload = { - parameters: { - recipient: 'Alice ', - message_body: 'Hello from Bob!' - } - }; - return makeRequest({ - entityType: 'AppActionCall', - action: 'createWithResponse', - params: _objectSpread({ - spaceId: 'space-id', - environmentId: 'environment-id', - appDefinitionId: 'app-definiton-id', - appActionId: 'app-action-id' - }, retryOptions), - payload: payload - }).then(data => wrapAppActionCallResponse(makeRequest, data)); - }, - getCallDetails: function getCallDetails() { - return makeRequest({ - entityType: 'AppActionCall', - action: 'getCallDetails', - params: { - spaceId: 'space-id', - environmentId: 'environment-id', - callId: 'call-id', - appActionId: 'app-action-id' - } - }).then(data => wrapAppActionCallResponse(makeRequest, data)); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -export function wrapAppActionCall(makeRequest, data) { - const signedRequest = toPlainObject(copy(data)); - const signedRequestWithMethods = enhanceWithMethods(signedRequest, createAppActionCallApi(makeRequest)); - return signedRequestWithMethods; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -export function wrapAppActionCallResponse(makeRequest, data, retryOptions) { - const appActionCallResponse = toPlainObject(copy(data)); - const appActionCallResponseWithMethods = enhanceWithMethods(appActionCallResponse, createAppActionCallApi(makeRequest, retryOptions)); - return appActionCallResponseWithMethods; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-action.js b/node_modules/contentful-management/dist/es-modules/entities/app-action.js deleted file mode 100644 index 9f2dc4b7..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-action.js +++ /dev/null @@ -1,44 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createAppActionApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appActionId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppAction', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -export function wrapAppAction(makeRequest, data) { - const appAction = toPlainObject(copy(data)); - const appActionWithMethods = enhanceWithMethods(appAction, createAppActionApi(makeRequest)); - return freezeSys(appActionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -export const wrapAppActionCollection = wrapCollection(wrapAppAction); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-bundle.js b/node_modules/contentful-management/dist/es-modules/entities/app-bundle.js deleted file mode 100644 index cd5ebdcb..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-bundle.js +++ /dev/null @@ -1,44 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createAppBundleApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id, - appBundleId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppBundle', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -export function wrapAppBundle(makeRequest, data) { - const appBundle = toPlainObject(copy(data)); - const appBundleWithMethods = enhanceWithMethods(appBundle, createAppBundleApi(makeRequest)); - return freezeSys(appBundleWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -export const wrapAppBundleCollection = wrapCollection(wrapAppBundle); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-definition.js b/node_modules/contentful-management/dist/es-modules/entities/app-definition.js deleted file mode 100644 index 87f02df9..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-definition.js +++ /dev/null @@ -1,24 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -import createAppDefinitionApi from '../create-app-definition-api'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition data - * @return Wrapped App Definition data - */ -export function wrapAppDefinition(makeRequest, data) { - const appDefinition = toPlainObject(copy(data)); - const appDefinitionWithMethods = enhanceWithMethods(appDefinition, createAppDefinitionApi(makeRequest)); - return freezeSys(appDefinitionWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition collection data - * @return Wrapped App Definition collection data - */ -export const wrapAppDefinitionCollection = wrapCollection(wrapAppDefinition); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-details.js b/node_modules/contentful-management/dist/es-modules/entities/app-details.js deleted file mode 100644 index 7f6a3b16..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-details.js +++ /dev/null @@ -1,35 +0,0 @@ -import copy from 'fast-copy'; -import { toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @return Wrapped App Details data - */ -function createAppDetailsApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppDetails', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppDetails data - * @return Wrapped AppDetails data - */ -export function wrapAppDetails(makeRequest, data) { - const appDetails = toPlainObject(copy(data)); - return enhanceWithMethods(appDetails, createAppDetailsApi(makeRequest)); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-installation.js b/node_modules/contentful-management/dist/es-modules/entities/app-installation.js deleted file mode 100644 index 501f0a0c..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-installation.js +++ /dev/null @@ -1,51 +0,0 @@ -import { toPlainObject, freezeSys } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createAppInstallationApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'upsert', - params: getParams(data), - headers: {}, - payload: data - }).then(data => wrapAppInstallation(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppInstallation', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Installation data - * @return Wrapped App installation data - */ -export function wrapAppInstallation(makeRequest, data) { - const appInstallation = toPlainObject(copy(data)); - const appInstallationWithMethods = enhanceWithMethods(appInstallation, createAppInstallationApi(makeRequest)); - return freezeSys(appInstallationWithMethods); -} - -/** - * @private - */ -export const wrapAppInstallationCollection = wrapCollection(wrapAppInstallation); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-signed-request.js b/node_modules/contentful-management/dist/es-modules/entities/app-signed-request.js deleted file mode 100644 index 8c9cfe04..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-signed-request.js +++ /dev/null @@ -1,12 +0,0 @@ -import copy from 'fast-copy'; -import { toPlainObject } from 'contentful-sdk-core'; -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSignedRequest data - * @return Wrapped AppSignedRequest data - */ -export function wrapAppSignedRequest(_makeRequest, data) { - const signedRequest = toPlainObject(copy(data)); - return signedRequest; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-signing-secret.js b/node_modules/contentful-management/dist/es-modules/entities/app-signing-secret.js deleted file mode 100644 index 9b9f7931..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-signing-secret.js +++ /dev/null @@ -1,30 +0,0 @@ -import copy from 'fast-copy'; -import { toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -function createSigningSecretApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appDefinitionId: data.sys.appDefinition.sys.id - }); - return { - delete: function del() { - const self = this; - return makeRequest({ - entityType: 'AppSigningSecret', - action: 'delete', - params: getParams(self) - }); - } - }; -} - -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSigningSecret data - * @return Wrapped AppSigningSecret data - */ -export function wrapAppSigningSecret(makeRequest, data) { - const signingSecret = toPlainObject(copy(data)); - return enhanceWithMethods(signingSecret, createSigningSecretApi(makeRequest)); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/app-upload.js b/node_modules/contentful-management/dist/es-modules/entities/app-upload.js deleted file mode 100644 index b6f94b55..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/app-upload.js +++ /dev/null @@ -1,43 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createAppUploadApi(makeRequest) { - const getParams = data => ({ - organizationId: data.sys.organization.sys.id, - appUploadId: data.sys.id - }); - return { - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'AppUpload', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload data - * @return Wrapped App Upload data - */ -export function wrapAppUpload(makeRequest, data) { - const appUpload = toPlainObject(copy(data)); - const appUploadWithMethods = enhanceWithMethods(appUpload, createAppUploadApi(makeRequest)); - return freezeSys(appUploadWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload collection data - * @return Wrapped App Upload collection data - */ -export const wrapAppUploadCollection = wrapCollection(wrapAppUpload); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/asset-key.js b/node_modules/contentful-management/dist/es-modules/entities/asset-key.js deleted file mode 100644 index f87d67e2..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/asset-key.js +++ /dev/null @@ -1,12 +0,0 @@ -import copy from 'fast-copy'; -import { toPlainObject } from 'contentful-sdk-core'; -/** - * @private - * @param http - HTTP client instance - * @param data - Raw asset key data - * @return Wrapped asset key data - */ -export function wrapAssetKey(_makeRequest, data) { - const assetKey = toPlainObject(copy(data)); - return assetKey; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/asset.js b/node_modules/contentful-management/dist/es-modules/entities/asset.js deleted file mode 100644 index bc9ce14d..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/asset.js +++ /dev/null @@ -1,131 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -import * as checks from '../plain/checks'; -/** - * @private - */ -function createAssetApi(makeRequest) { - const getParams = raw => { - return { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.environment.sys.id, - assetId: raw.sys.id - }; - }; - return { - processForLocale: function processForLocale(locale, options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - locale, - options, - asset: raw - }) - }).then(data => wrapAsset(makeRequest, data)); - }, - processForAllLocales: function processForAllLocales(options) { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - asset: raw, - options - }) - }).then(data => wrapAsset(makeRequest, data)); - }, - update: function update() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'update', - params: getParams(raw), - payload: raw, - headers: {} - }).then(data => wrapAsset(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'delete', - params: getParams(raw) - }); - }, - publish: function publish() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'publish', - params: getParams(raw), - payload: raw - }).then(data => wrapAsset(makeRequest, data)); - }, - unpublish: function unpublish() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unpublish', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - archive: function archive() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'archive', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - unarchive: function unarchive() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Asset', - action: 'unarchive', - params: getParams(raw) - }).then(data => wrapAsset(makeRequest, data)); - }, - isPublished: function isPublished() { - const raw = this.toPlainObject(); - return checks.isPublished(raw); - }, - isUpdated: function isUpdated() { - const raw = this.toPlainObject(); - return checks.isUpdated(raw); - }, - isDraft: function isDraft() { - const raw = this.toPlainObject(); - return checks.isDraft(raw); - }, - isArchived: function isArchived() { - const raw = this.toPlainObject(); - return checks.isArchived(raw); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw asset data - * @return Wrapped asset data - */ -export function wrapAsset(makeRequest, data) { - const asset = toPlainObject(copy(data)); - const assetWithMethods = enhanceWithMethods(asset, createAssetApi(makeRequest)); - return freezeSys(assetWithMethods); -} - -/** - * @private - */ -export const wrapAssetCollection = wrapCollection(wrapAsset); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/bulk-action.js b/node_modules/contentful-management/dist/es-modules/entities/bulk-action.js deleted file mode 100644 index 089a355f..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/bulk-action.js +++ /dev/null @@ -1,57 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import enhanceWithMethods from '../enhance-with-methods'; -import { pollAsyncActionStatus } from '../methods/action'; - -/** Entity types supported by the BulkAction API */ - -/** Represents the state of the BulkAction */ -export let BulkActionStatus = /*#__PURE__*/function (BulkActionStatus) { - BulkActionStatus["created"] = "created"; - BulkActionStatus["inProgress"] = "inProgress"; - BulkActionStatus["succeeded"] = "succeeded"; - BulkActionStatus["failed"] = "failed"; - return BulkActionStatus; -}({}); -const STATUSES = Object.values(BulkActionStatus); - -/** The object returned by the BulkActions API */ - -/** - * @private - */ -function createBulkActionApi(makeRequest) { - const getParams = self => { - const bulkAction = self.toPlainObject(); - return { - spaceId: bulkAction.sys.space.sys.id, - environmentId: bulkAction.sys.environment.sys.id, - bulkActionId: bulkAction.sys.id - }; - }; - return { - async get() { - const params = getParams(this); - return makeRequest({ - entityType: 'BulkAction', - action: 'get', - params - }).then(bulkAction => wrapBulkAction(makeRequest, bulkAction)); - }, - async waitProcessing(options) { - return pollAsyncActionStatus(async () => this.get(), options); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw BulkAction data - * @return Wrapped BulkAction data - */ -export function wrapBulkAction(makeRequest, data) { - const bulkAction = toPlainObject(copy(data)); - const bulkActionWithApiMethods = enhanceWithMethods(bulkAction, createBulkActionApi(makeRequest)); - return freezeSys(bulkActionWithApiMethods); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/comment.js b/node_modules/contentful-management/dist/es-modules/entities/comment.js deleted file mode 100644 index 3729ee00..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/comment.js +++ /dev/null @@ -1,77 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; - -// PROPS // - -// Remove and replace with BLOCKS as soon as rich-text-types supports mentions -export let CommentNode = /*#__PURE__*/function (CommentNode) { - CommentNode["Document"] = "document"; - CommentNode["Paragraph"] = "paragraph"; - CommentNode["Mention"] = "mention"; - return CommentNode; -}({}); - -// Add "extends Block" as soon as rich-text-types supports mentions - -// Add "extends Document" as soon as rich-text-types supports mentions. - -// PARAMS // - -// We keep this type as explicit as possible until we open up the comments entity further - -// NESTED CLIENT // - -/** - * @private - */ -export default function createCommentApi(makeRequest) { - const getParams = comment => ({ - spaceId: comment.sys.space.sys.id, - environmentId: comment.sys.environment.sys.id, - entryId: comment.sys.parentEntity.sys.id, - commentId: comment.sys.id - }); - return { - update: async function () { - const raw = this.toPlainObject(); - const data = await makeRequest({ - entityType: 'Comment', - action: 'update', - params: getParams(raw), - payload: raw - }); - return wrapComment(makeRequest, data); - }, - delete: async function () { - const raw = this.toPlainObject(); - await makeRequest({ - entityType: 'Comment', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }); - } - }; -} - -/** - * @private - */ -export function wrapComment(makeRequest, data) { - const comment = toPlainObject(copy(data)); - const commentWithMethods = enhanceWithMethods(comment, createCommentApi(makeRequest)); - return freezeSys(commentWithMethods); -} - -/** - * @private - */ -export const wrapCommentCollection = wrapCollection(wrapComment); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/content-type-fields.js b/node_modules/contentful-management/dist/es-modules/entities/content-type-fields.js deleted file mode 100644 index 527e3d38..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/content-type-fields.js +++ /dev/null @@ -1 +0,0 @@ -import { INLINES, BLOCKS } from '@contentful/rich-text-types'; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/content-type.js b/node_modules/contentful-management/dist/es-modules/entities/content-type.js deleted file mode 100644 index 72c274f1..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/content-type.js +++ /dev/null @@ -1,146 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -import { isDraft, isPublished, isUpdated } from '../plain/checks'; -import { wrapEditorInterface } from './editor-interface'; -import { wrapSnapshot, wrapSnapshotCollection } from './snapshot'; -import { omitAndDeleteField } from '../methods/content-type'; -/** - * @private - */ -function createContentTypeApi(makeRequest) { - const getParams = self => { - const contentType = self.toPlainObject(); - return { - raw: contentType, - params: { - spaceId: contentType.sys.space.sys.id, - environmentId: contentType.sys.environment.sys.id, - contentTypeId: contentType.sys.id - } - }; - }; - return { - update: function () { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: raw - }).then(data => wrapContentType(makeRequest, data)); - }, - delete: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'delete', - params - }).then(() => { - // noop - }); - }, - publish: function () { - const { - raw, - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params, - payload: raw - }).then(data => wrapContentType(makeRequest, data)); - }, - unpublish: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'ContentType', - action: 'unpublish', - params - }).then(data => wrapContentType(makeRequest, data)); - }, - getEditorInterface: function () { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'EditorInterface', - action: 'get', - params - }).then(data => wrapEditorInterface(makeRequest, data)); - }, - getSnapshots: function (query = {}) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getManyForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - query - }) - }).then(data => wrapSnapshotCollection(makeRequest, data)); - }, - getSnapshot: function (snapshotId) { - const { - params - } = getParams(this); - return makeRequest({ - entityType: 'Snapshot', - action: 'getForContentType', - params: _objectSpread(_objectSpread({}, params), {}, { - snapshotId - }) - }).then(data => wrapSnapshot(makeRequest, data)); - }, - isPublished: function () { - return isPublished(this); - }, - isUpdated: function () { - return isUpdated(this); - }, - isDraft: function () { - return isDraft(this); - }, - omitAndDeleteField: function (fieldId) { - const { - raw, - params - } = getParams(this); - return omitAndDeleteField(makeRequest, _objectSpread(_objectSpread({}, params), {}, { - fieldId - }), raw).then(data => wrapContentType(makeRequest, data)); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw content type data - * @return Wrapped content type data - */ -export function wrapContentType(makeRequest, data) { - const contentType = toPlainObject(copy(data)); - const contentTypeWithMethods = enhanceWithMethods(contentType, createContentTypeApi(makeRequest)); - return freezeSys(contentTypeWithMethods); -} - -/** - * @private - */ -export const wrapContentTypeCollection = wrapCollection(wrapContentType); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/editor-interface.js b/node_modules/contentful-management/dist/es-modules/entities/editor-interface.js deleted file mode 100644 index ef2a7018..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/editor-interface.js +++ /dev/null @@ -1,46 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createEditorInterfaceApi(makeRequest) { - return { - update: function () { - const self = this; - const raw = self.toPlainObject(); - return makeRequest({ - entityType: 'EditorInterface', - action: 'update', - params: { - spaceId: self.sys.space.sys.id, - environmentId: self.sys.environment.sys.id, - contentTypeId: self.sys.contentType.sys.id - }, - payload: raw - }).then(response => wrapEditorInterface(makeRequest, response)); - }, - getControlForField: function (fieldId) { - const self = this; - const result = (self.controls || []).filter(control => { - return control.fieldId === fieldId; - }); - return result && result.length > 0 ? result[0] : null; - } - }; -} - -/** - * @private - */ -export function wrapEditorInterface(makeRequest, data) { - const editorInterface = toPlainObject(copy(data)); - const editorInterfaceWithMethods = enhanceWithMethods(editorInterface, createEditorInterfaceApi(makeRequest)); - return freezeSys(editorInterfaceWithMethods); -} - -/** - * @private - */ -export const wrapEditorInterfaceCollection = wrapCollection(wrapEditorInterface); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/entry.js b/node_modules/contentful-management/dist/es-modules/entities/entry.js deleted file mode 100644 index 57a2dfb1..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/entry.js +++ /dev/null @@ -1,22 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import createEntryApi from '../create-entry-api'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw entry data - * @return Wrapped entry data - */ -export function wrapEntry(makeRequest, data) { - const entry = toPlainObject(copy(data)); - const entryWithMethods = enhanceWithMethods(entry, createEntryApi(makeRequest)); - return freezeSys(entryWithMethods); -} - -/** - * Data is also mixed in with link getters if links exist and includes were requested - * @private - */ -export const wrapEntryCollection = wrapCollection(wrapEntry); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/environment-alias.js b/node_modules/contentful-management/dist/es-modules/entities/environment-alias.js deleted file mode 100644 index d5538639..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/environment-alias.js +++ /dev/null @@ -1,54 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createEnvironmentAliasApi(makeRequest) { - const getParams = alias => ({ - spaceId: alias.sys.space.sys.id, - environmentAliasId: alias.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapEnvironmentAlias(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'EnvironmentAlias', - action: 'delete', - params: getParams(raw) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias data - * @return Wrapped environment alias data - */ -export function wrapEnvironmentAlias(makeRequest, data) { - const alias = toPlainObject(copy(data)); - const enhancedAlias = enhanceWithMethods(alias, createEnvironmentAliasApi(makeRequest)); - return freezeSys(enhancedAlias); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias collection data - * @return Wrapped environment alias collection data - */ -export const wrapEnvironmentAliasCollection = wrapCollection(wrapEnvironmentAlias); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/environment.js b/node_modules/contentful-management/dist/es-modules/entities/environment.js deleted file mode 100644 index 2fe597c4..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/environment.js +++ /dev/null @@ -1,29 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import createEnvironmentApi from '../create-environment-api'; -import { wrapCollection } from '../common-utils'; -/** - * This method creates the API for the given environment with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a environment id, so the base path for requests now has the - * environment id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Environment - * @return - */ -export function wrapEnvironment(makeRequest, data) { - // do not pollute generated typings - const environment = toPlainObject(copy(data)); - const environmentApi = createEnvironmentApi(makeRequest); - const enhancedEnvironment = enhanceWithMethods(environment, environmentApi); - return freezeSys(enhancedEnvironment); -} - -/** - * This method wraps each environment in a collection with the environment API. See wrapEnvironment - * above for more details. - * @private - */ -export const wrapEnvironmentCollection = wrapCollection(wrapEnvironment); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/extension.js b/node_modules/contentful-management/dist/es-modules/entities/extension.js deleted file mode 100644 index b931695a..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/extension.js +++ /dev/null @@ -1,50 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createExtensionApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - environmentId: data.sys.environment.sys.id, - extensionId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'update', - params: getParams(data), - payload: data - }).then(response => wrapExtension(makeRequest, response)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Extension', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw UI Extension data - * @return Wrapped UI Extension data - */ -export function wrapExtension(makeRequest, data) { - const extension = toPlainObject(copy(data)); - const extensionWithMethods = enhanceWithMethods(extension, createExtensionApi(makeRequest)); - return freezeSys(extensionWithMethods); -} - -/** - * @private - */ -export const wrapExtensionCollection = wrapCollection(wrapExtension); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/field-type.js b/node_modules/contentful-management/dist/es-modules/entities/field-type.js deleted file mode 100644 index 8cec2e9c..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/field-type.js +++ /dev/null @@ -1 +0,0 @@ -export {}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/index.js b/node_modules/contentful-management/dist/es-modules/entities/index.js deleted file mode 100644 index 99c85d10..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/index.js +++ /dev/null @@ -1,106 +0,0 @@ -import * as apiKey from './api-key'; -import * as appAction from './app-action'; -import * as appActionCall from './app-action-call'; -import * as appBundle from './app-bundle'; -import * as appDefinition from './app-definition'; -import * as appDetails from './app-details'; -import * as appInstallation from './app-installation'; -import * as appSignedRequest from './app-signed-request'; -import * as appSigningSecret from './app-signing-secret'; -import * as appEventSubscription from './app-event-subscription'; -import * as appKey from './app-key'; -import * as appAccessToken from './app-access-token'; -import * as appUpload from './app-upload'; -import * as asset from './asset'; -import * as assetKey from './asset-key'; -import * as bulkAction from './bulk-action'; -import * as comment from './comment'; -import * as contentType from './content-type'; -import * as editorInterface from './editor-interface'; -import * as entry from './entry'; -import * as environment from './environment'; -import * as environmentAlias from './environment-alias'; -import * as environmentTemplate from './environment-template'; -import * as environmentTemplateInstallation from './environment-template-installation'; -import * as extension from './extension'; -import * as locale from './locale'; -import * as organization from './organization'; -import * as organizationInvitation from './organization-invitation'; -import * as organizationMembership from './organization-membership'; -import * as personalAccessToken from './personal-access-token'; -import * as accessToken from './access-token'; -import * as previewApiKey from './preview-api-key'; -import * as release from './release'; -import * as releaseAction from './release-action'; -import * as role from './role'; -import * as scheduledAction from './scheduled-action'; -import * as snapshot from './snapshot'; -import * as space from './space'; -import * as spaceMember from './space-member'; -import * as spaceMembership from './space-membership'; -import * as tag from './tag'; -import * as task from './task'; -import * as team from './team'; -import * as teamMembership from './team-membership'; -import * as teamSpaceMembership from './team-space-membership'; -import * as uiConfig from './ui-config'; -import * as upload from './upload'; -import * as usage from './usage'; -import * as user from './user'; -import * as userUIConfig from './user-ui-config'; -import * as webhook from './webhook'; -import * as workflowDefinition from './workflow-definition'; -export default { - accessToken, - appAction, - appActionCall, - appBundle, - apiKey, - appDefinition, - appInstallation, - appUpload, - appDetails, - appSignedRequest, - appSigningSecret, - appEventSubscription, - appKey, - appAccessToken, - asset, - assetKey, - bulkAction, - comment, - contentType, - editorInterface, - entry, - environment, - environmentAlias, - environmentTemplate, - environmentTemplateInstallation, - extension, - locale, - organization, - organizationInvitation, - organizationMembership, - personalAccessToken, - previewApiKey, - release, - releaseAction, - role, - scheduledAction, - snapshot, - space, - spaceMember, - spaceMembership, - tag, - task, - team, - teamMembership, - teamSpaceMembership, - uiConfig, - upload, - usage, - user, - userUIConfig, - webhook, - workflowDefinition -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/locale.js b/node_modules/contentful-management/dist/es-modules/entities/locale.js deleted file mode 100644 index 44d2f020..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/locale.js +++ /dev/null @@ -1,53 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createLocaleApi(makeRequest) { - const getParams = locale => ({ - spaceId: locale.sys.space.sys.id, - environmentId: locale.sys.environment.sys.id, - localeId: locale.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapLocale(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Locale', - action: 'delete', - params: getParams(raw) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw locale data - * @return Wrapped locale data - */ -export function wrapLocale(makeRequest, data) { - delete data.internal_code; - const locale = toPlainObject(copy(data)); - const localeWithMethods = enhanceWithMethods(locale, createLocaleApi(makeRequest)); - return freezeSys(localeWithMethods); -} - -/** - * @private - */ -export const wrapLocaleCollection = wrapCollection(wrapLocale); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/organization-invitation.js b/node_modules/contentful-management/dist/es-modules/entities/organization-invitation.js deleted file mode 100644 index 94619157..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/organization-invitation.js +++ /dev/null @@ -1,12 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw invitation data - * @return {OrganizationInvitation} Wrapped Inviation data - */ -export function wrapOrganizationInvitation(_makeRequest, data) { - const invitation = toPlainObject(copy(data)); - return freezeSys(invitation); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/organization-membership.js b/node_modules/contentful-management/dist/es-modules/entities/organization-membership.js deleted file mode 100644 index a172687a..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/organization-membership.js +++ /dev/null @@ -1,49 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createOrganizationMembershipApi(makeRequest, organizationId) { - const getParams = data => ({ - organizationMembershipId: data.sys.id, - organizationId - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapOrganizationMembership(makeRequest, data, organizationId)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'OrganizationMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {Object} data - Raw organization membership data - * @return {OrganizationMembership} Wrapped organization membership data - */ -export function wrapOrganizationMembership(makeRequest, data, organizationId) { - const organizationMembership = toPlainObject(copy(data)); - const organizationMembershipWithMethods = enhanceWithMethods(organizationMembership, createOrganizationMembershipApi(makeRequest, organizationId)); - return freezeSys(organizationMembershipWithMethods); -} - -/** - * @private - */ -export const wrapOrganizationMembershipCollection = wrapCollection(wrapOrganizationMembership); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/organization.js b/node_modules/contentful-management/dist/es-modules/entities/organization.js deleted file mode 100644 index a62f6c42..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/organization.js +++ /dev/null @@ -1,27 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import createOrganizationApi from '../create-organization-api'; -import { wrapCollection } from '../common-utils'; -/** - * This method creates the API for the given organization with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with an organization id, so the base path for requests now has the - * organization id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for an Organization - * @return {Organization} - */ -export function wrapOrganization(makeRequest, data) { - const org = toPlainObject(copy(data)); - const orgApi = createOrganizationApi(makeRequest); - const enhancedOrganization = enhanceWithMethods(org, orgApi); - return freezeSys(enhancedOrganization); -} - -/** - * This method normalizes each organization in a collection. - * @private - */ -export const wrapOrganizationCollection = wrapCollection(wrapOrganization); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/personal-access-token.js b/node_modules/contentful-management/dist/es-modules/entities/personal-access-token.js deleted file mode 100644 index 34d0eb3d..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/personal-access-token.js +++ /dev/null @@ -1,33 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access token data - * @return Wrapped personal access token - */ -export function wrapPersonalAccessToken(makeRequest, data) { - const personalAccessToken = toPlainObject(copy(data)); - const personalAccessTokenWithMethods = enhanceWithMethods(personalAccessToken, { - revoke: function () { - return makeRequest({ - entityType: 'PersonalAccessToken', - action: 'revoke', - params: { - tokenId: data.sys.id - } - }).then(data => wrapPersonalAccessToken(makeRequest, data)); - } - }); - return freezeSys(personalAccessTokenWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access collection data - * @return Wrapped personal access token collection data - */ -export const wrapPersonalAccessTokenCollection = wrapCollection(wrapPersonalAccessToken); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/preview-api-key.js b/node_modules/contentful-management/dist/es-modules/entities/preview-api-key.js deleted file mode 100644 index 44107e71..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/preview-api-key.js +++ /dev/null @@ -1,27 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createPreviewApiKeyApi() { - return {}; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - * @return Wrapped preview api key data - */ -export function wrapPreviewApiKey(_makeRequest, data) { - const previewApiKey = toPlainObject(copy(data)); - const previewApiKeyWithMethods = enhanceWithMethods(previewApiKey, createPreviewApiKeyApi()); - return freezeSys(previewApiKeyWithMethods); -} - -/** - * @private - */ -export const wrapPreviewApiKeyCollection = wrapCollection(wrapPreviewApiKey); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/release-action.js b/node_modules/contentful-management/dist/es-modules/entities/release-action.js deleted file mode 100644 index d95423b7..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/release-action.js +++ /dev/null @@ -1,53 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import { pollAsyncActionStatus } from '../methods/action'; -import enhanceWithMethods from '../enhance-with-methods'; - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseActionApi(makeRequest) { - const getParams = self => { - const action = self.toPlainObject(); - return { - spaceId: action.sys.space.sys.id, - environmentId: action.sys.environment.sys.id, - releaseId: action.sys.release.sys.id, - actionId: action.sys.id - }; - }; - return { - async get() { - const params = getParams(this); - return makeRequest({ - entityType: 'ReleaseAction', - action: 'get', - params - }).then(releaseAction => wrapReleaseAction(makeRequest, releaseAction)); - }, - /** Waits for a Release Action to complete */ - async waitProcessing(options) { - return pollAsyncActionStatus(async () => this.get(), options); - } - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -export function wrapReleaseAction(makeRequest, data) { - const releaseAction = toPlainObject(copy(data)); - const releaseActionWithApiMethods = enhanceWithMethods(releaseAction, createReleaseActionApi(makeRequest)); - return freezeSys(releaseActionWithApiMethods); -} - -/** - * @private - */ -export const wrapReleaseActionCollection = wrapCollection(wrapReleaseAction); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/release.js b/node_modules/contentful-management/dist/es-modules/entities/release.js deleted file mode 100644 index 6bc7fd6b..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/release.js +++ /dev/null @@ -1,105 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { ScheduledActionReferenceFilters } from '../common-types'; -import { wrapCursorPaginatedCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapReleaseAction } from './release-action'; - -/** Entity types supported by the Release API */ - -export const ReleaseReferenceFilters = ScheduledActionReferenceFilters; - -/** The object returned by the Releases API */ - -/** - * @private - */ -function createReleaseApi(makeRequest) { - const getParams = self => { - const release = self.toPlainObject(); - return { - spaceId: release.sys.space.sys.id, - environmentId: release.sys.environment.sys.id, - releaseId: release.sys.id, - version: release.sys.version - }; - }; - return { - async archive() { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'archive', - params - }).then(release => wrapRelease(makeRequest, release)); - }, - async unarchive() { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'unarchive', - params - }).then(release => wrapRelease(makeRequest, release)); - }, - async update(payload) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'update', - params, - payload - }).then(release => wrapRelease(makeRequest, release)); - }, - async delete() { - const params = getParams(this); - await makeRequest({ - entityType: 'Release', - action: 'delete', - params - }); - }, - async publish(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'publish', - params - }).then(data => wrapReleaseAction(makeRequest, data)).then(action => action.waitProcessing(options)); - }, - async unpublish(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'unpublish', - params - }).then(data => wrapReleaseAction(makeRequest, data)).then(action => action.waitProcessing(options)); - }, - async validate(options) { - const params = getParams(this); - return makeRequest({ - entityType: 'Release', - action: 'validate', - params, - payload: options === null || options === void 0 ? void 0 : options.payload - }).then(data => wrapReleaseAction(makeRequest, data)).then(action => action.waitProcessing(options === null || options === void 0 ? void 0 : options.processingOptions)); - } - }; -} -/** - * Return a Release object enhanced with its own API helper functions. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -export function wrapRelease(makeRequest, data) { - const release = toPlainObject(copy(data)); - const releaseWithApiMethods = enhanceWithMethods(release, createReleaseApi(makeRequest)); - return freezeSys(releaseWithApiMethods); -} - -/** - * @private - */ -export const wrapReleaseCollection = wrapCursorPaginatedCollection(wrapRelease); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/role.js b/node_modules/contentful-management/dist/es-modules/entities/role.js deleted file mode 100644 index 93b88c6c..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/role.js +++ /dev/null @@ -1,49 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createRoleApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - roleId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapRole(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Role', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw role data - * @return Wrapped role data - */ -export function wrapRole(makeRequest, data) { - const role = toPlainObject(copy(data)); - const roleWithMethods = enhanceWithMethods(role, createRoleApi(makeRequest)); - return freezeSys(roleWithMethods); -} - -/** - * @private - */ -export const wrapRoleCollection = wrapCollection(wrapRole); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/scheduled-action.js b/node_modules/contentful-management/dist/es-modules/entities/scheduled-action.js deleted file mode 100644 index f067315c..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/scheduled-action.js +++ /dev/null @@ -1,150 +0,0 @@ -const _excluded = ["sys"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; - -/** - * Represents that state of the scheduled action - */ -var ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) { - ScheduledActionStatus["scheduled"] = "scheduled"; - ScheduledActionStatus["inProgress"] = "inProgress"; - ScheduledActionStatus["succeeded"] = "succeeded"; - ScheduledActionStatus["failed"] = "failed"; - ScheduledActionStatus["canceled"] = "canceled"; - return ScheduledActionStatus; -}(ScheduledActionStatus || {}); -export default function getInstanceMethods(makeRequest) { - const getParams = self => { - var _scheduledAction$envi; - const scheduledAction = self.toPlainObject(); - return { - spaceId: scheduledAction.sys.space.sys.id, - environmentId: (_scheduledAction$envi = scheduledAction.environment) === null || _scheduledAction$envi === void 0 ? void 0 : _scheduledAction$envi.sys.id, - scheduledActionId: scheduledAction.sys.id, - version: scheduledAction.sys.version - }; - }; - return { - /** - * Cancels the current Scheduled Action schedule. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => scheduledAction.delete()) - * .then((deletedScheduledAction) => console.log(deletedScheduledAction)) - * .catch(console.error); - * ``` - */ - async delete() { - const params = getParams(this); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'delete', - params - }).then(data => wrapScheduledAction(makeRequest, data)); - }, - /** - * Update the current scheduled action. Currently, only changes made to the `scheduledFor` property will be saved. - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * scheduledAction.scheduledFor.timezone = 'Europe/Paris'; - * return scheduledAction.update(); - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - async update() { - const params = getParams(this); - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const _this$toPlainObject = this.toPlainObject(), - { - sys - } = _this$toPlainObject, - payload = _objectWithoutProperties(_this$toPlainObject, _excluded); - return makeRequest({ - entityType: 'ScheduledAction', - action: 'update', - params, - payload - }).then(data => wrapScheduledAction(makeRequest, data)); - } - }; -} - -/** - * @private - */ -export function wrapScheduledAction(makeRequest, data) { - const scheduledAction = toPlainObject(copy(data)); - const scheduledActionWithMethods = enhanceWithMethods(scheduledAction, getInstanceMethods(makeRequest)); - return freezeSys(scheduledActionWithMethods); -} - -/** - * @private - */ -export const wrapScheduledActionCollection = wrapCollection(wrapScheduledAction); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/snapshot.js b/node_modules/contentful-management/dist/es-modules/entities/snapshot.js deleted file mode 100644 index a07fd189..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/snapshot.js +++ /dev/null @@ -1,31 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createSnapshotApi() { - return { - /* In case the snapshot object evolve later */ - }; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot data - * @return Wrapped snapshot data - */ -export function wrapSnapshot(_makeRequest, data) { - const snapshot = toPlainObject(copy(data)); - const snapshotWithMethods = enhanceWithMethods(snapshot, createSnapshotApi()); - return freezeSys(snapshotWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot collection data - * @return Wrapped snapshot collection data - */ -export const wrapSnapshotCollection = wrapCollection(wrapSnapshot); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/space-member.js b/node_modules/contentful-management/dist/es-modules/entities/space-member.js deleted file mode 100644 index e4748419..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/space-member.js +++ /dev/null @@ -1,18 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space member data - * @return Wrapped space member data - */ -export function wrapSpaceMember(_makeRequest, data) { - const spaceMember = toPlainObject(copy(data)); - return freezeSys(spaceMember); -} - -/** - * @private - */ -export const wrapSpaceMemberCollection = wrapCollection(wrapSpaceMember); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/space-membership.js b/node_modules/contentful-management/dist/es-modules/entities/space-membership.js deleted file mode 100644 index 8c812073..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/space-membership.js +++ /dev/null @@ -1,49 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createSpaceMembershipApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - spaceMembershipId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapSpaceMembership(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'SpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped space membership data - */ -export function wrapSpaceMembership(makeRequest, data) { - const spaceMembership = toPlainObject(copy(data)); - const spaceMembershipWithMethods = enhanceWithMethods(spaceMembership, createSpaceMembershipApi(makeRequest)); - return freezeSys(spaceMembershipWithMethods); -} - -/** - * @private - */ -export const wrapSpaceMembershipCollection = wrapCollection(wrapSpaceMembership); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/space.js b/node_modules/contentful-management/dist/es-modules/entities/space.js deleted file mode 100644 index e7fa95fe..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/space.js +++ /dev/null @@ -1,28 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import createSpaceApi from '../create-space-api'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * This method creates the API for the given space with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a space id, so the base path for requests now has the - * space id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Space - * @return {Space} - */ -export function wrapSpace(makeRequest, data) { - const space = toPlainObject(copy(data)); - const spaceApi = createSpaceApi(makeRequest); - const enhancedSpace = enhanceWithMethods(space, spaceApi); - return freezeSys(enhancedSpace); -} - -/** - * This method wraps each space in a collection with the space API. See wrapSpace - * above for more details. - * @private - */ -export const wrapSpaceCollection = wrapCollection(wrapSpace); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/tag.js b/node_modules/contentful-management/dist/es-modules/entities/tag.js deleted file mode 100644 index 38848780..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/tag.js +++ /dev/null @@ -1,56 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -export default function createTagApi(makeRequest) { - const getParams = tag => ({ - spaceId: tag.sys.space.sys.id, - environmentId: tag.sys.environment.sys.id, - tagId: tag.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTag(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Tag', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -export function wrapTag(makeRequest, data) { - const tag = toPlainObject(copy(data)); - const tagWithMethods = enhanceWithMethods(tag, createTagApi(makeRequest)); - return freezeSys(tagWithMethods); -} - -/** - * @private - */ -export const wrapTagCollection = wrapCollection(wrapTag); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/task.js b/node_modules/contentful-management/dist/es-modules/entities/task.js deleted file mode 100644 index b01e4e1e..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/task.js +++ /dev/null @@ -1,57 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -export default function createTaskApi(makeRequest) { - const getParams = task => ({ - spaceId: task.sys.space.sys.id, - environmentId: task.sys.environment.sys.id, - entryId: task.sys.parentEntity.sys.id, - taskId: task.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTask(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Task', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -export function wrapTask(makeRequest, data) { - const task = toPlainObject(copy(data)); - const taskWithMethods = enhanceWithMethods(task, createTaskApi(makeRequest)); - return freezeSys(taskWithMethods); -} - -/** - * @private - */ -export const wrapTaskCollection = wrapCollection(wrapTask); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/team-membership.js b/node_modules/contentful-management/dist/es-modules/entities/team-membership.js deleted file mode 100644 index f6d5ade3..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/team-membership.js +++ /dev/null @@ -1,50 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createTeamMembershipApi(makeRequest) { - const getParams = data => ({ - teamMembershipId: data.sys.id, - teamId: data.sys.team.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeamMembership(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamMembership', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team membership data - * @return Wrapped team membership data - */ -export function wrapTeamMembership(makeRequest, data) { - const teamMembership = toPlainObject(copy(data)); - const teamMembershipWithMethods = enhanceWithMethods(teamMembership, createTeamMembershipApi(makeRequest)); - return freezeSys(teamMembershipWithMethods); -} - -/** - * @private - */ -export const wrapTeamMembershipCollection = wrapCollection(wrapTeamMembership); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/team-space-membership.js b/node_modules/contentful-management/dist/es-modules/entities/team-space-membership.js deleted file mode 100644 index 97066c62..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/team-space-membership.js +++ /dev/null @@ -1,49 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createTeamSpaceMembershipApi(makeRequest) { - const getParams = data => ({ - teamSpaceMembershipId: data.sys.id, - spaceId: data.sys.space.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeamSpaceMembership(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'TeamSpaceMembership', - action: 'delete', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped team space membership data - */ -export function wrapTeamSpaceMembership(makeRequest, data) { - const teamSpaceMembership = toPlainObject(copy(data)); - const teamSpaceMembershipWithMethods = enhanceWithMethods(teamSpaceMembership, createTeamSpaceMembershipApi(makeRequest)); - return freezeSys(teamSpaceMembershipWithMethods); -} - -/** - * @private - */ -export const wrapTeamSpaceMembershipCollection = wrapCollection(wrapTeamSpaceMembership); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/team.js b/node_modules/contentful-management/dist/es-modules/entities/team.js deleted file mode 100644 index 9e737084..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/team.js +++ /dev/null @@ -1,49 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - */ -function createTeamApi(makeRequest) { - const getParams = data => ({ - teamId: data.sys.id, - organizationId: data.sys.organization.sys.id - }); - return { - update: function update() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapTeam(makeRequest, data)); - }, - delete: function del() { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Team', - action: 'delete', - params: getParams(raw) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team data - * @return Wrapped team data - */ -export function wrapTeam(makeRequest, data) { - const team = toPlainObject(copy(data)); - const teamWithMethods = enhanceWithMethods(team, createTeamApi(makeRequest)); - return freezeSys(teamWithMethods); -} - -/** - * @private - */ -export const wrapTeamCollection = wrapCollection(wrapTeam); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/upload.js b/node_modules/contentful-management/dist/es-modules/entities/upload.js deleted file mode 100644 index be9a2085..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/upload.js +++ /dev/null @@ -1,34 +0,0 @@ -import copy from 'fast-copy'; -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createUploadApi(makeRequest) { - return { - delete: async function del() { - const raw = this.toPlainObject(); - await makeRequest({ - entityType: 'Upload', - action: 'delete', - params: { - spaceId: raw.sys.space.sys.id, - environmentId: raw.sys.id, - uploadId: raw.sys.id - } - }); - } - }; -} - -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {object} data - Raw upload data - * @return {Upload} Wrapped upload data - */ -export function wrapUpload(makeRequest, data) { - const upload = toPlainObject(copy(data)); - const uploadWithMethods = enhanceWithMethods(upload, createUploadApi(makeRequest)); - return freezeSys(uploadWithMethods); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/usage.js b/node_modules/contentful-management/dist/es-modules/entities/usage.js deleted file mode 100644 index 2c993524..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/usage.js +++ /dev/null @@ -1,20 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized usage - */ -export function wrapUsage(_makeRequest, data) { - const usage = toPlainObject(copy(data)); - const usageWithMethods = enhanceWithMethods(usage, {}); - return freezeSys(usageWithMethods); -} - -/** - * @private - */ -export const wrapUsageCollection = wrapCollection(wrapUsage); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/user.js b/node_modules/contentful-management/dist/es-modules/entities/user.js deleted file mode 100644 index b4e436da..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/user.js +++ /dev/null @@ -1,23 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import enhanceWithMethods from '../enhance-with-methods'; -import { wrapCollection } from '../common-utils'; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized user - */ -export function wrapUser(_makeRequest, data) { - const user = toPlainObject(copy(data)); - const userWithMethods = enhanceWithMethods(user, {}); - return freezeSys(userWithMethods); -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data collection - * @return Normalized user collection - */ -export const wrapUserCollection = wrapCollection(wrapUser); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/webhook.js b/node_modules/contentful-management/dist/es-modules/entities/webhook.js deleted file mode 100644 index ecc3c80b..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/webhook.js +++ /dev/null @@ -1,80 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createWebhookApi(makeRequest) { - const getParams = data => ({ - spaceId: data.sys.space.sys.id, - webhookDefinitionId: data.sys.id - }); - return { - update: function update() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'update', - params: getParams(data), - payload: data - }).then(data => wrapWebhook(makeRequest, data)); - }, - delete: function del() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'delete', - params: getParams(data) - }); - }, - getCalls: function getCalls() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getManyCallDetails', - params: getParams(data) - }); - }, - getCall: function getCall(id) { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getCallDetails', - params: _objectSpread(_objectSpread({}, getParams(data)), {}, { - callId: id - }) - }); - }, - getHealth: function getHealth() { - const data = this.toPlainObject(); - return makeRequest({ - entityType: 'Webhook', - action: 'getHealthStatus', - params: getParams(data) - }); - } - }; -} - -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw webhook data - * @return Wrapped webhook data - */ -export function wrapWebhook(makeRequest, data) { - const webhook = toPlainObject(copy(data)); - const webhookWithMethods = enhanceWithMethods(webhook, createWebhookApi(makeRequest)); - return freezeSys(webhookWithMethods); -} - -/** - * @private - */ -export const wrapWebhookCollection = wrapCollection(wrapWebhook); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/widget-parameters.js b/node_modules/contentful-management/dist/es-modules/entities/widget-parameters.js deleted file mode 100644 index 8cec2e9c..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/widget-parameters.js +++ /dev/null @@ -1 +0,0 @@ -export {}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/workflow-definition.js b/node_modules/contentful-management/dist/es-modules/entities/workflow-definition.js deleted file mode 100644 index af88c680..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/workflow-definition.js +++ /dev/null @@ -1,87 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; - -/* Workflow Step Permission */ - -export let WorkflowStepPermissionType = /*#__PURE__*/function (WorkflowStepPermissionType) { - WorkflowStepPermissionType["EntityPermission"] = "entity_permission"; - WorkflowStepPermissionType["WorkflowPermission"] = "workflow_permission"; - return WorkflowStepPermissionType; -}({}); -export let WorkflowStepPermissionAction = /*#__PURE__*/function (WorkflowStepPermissionAction) { - WorkflowStepPermissionAction["Edit"] = "edit"; - WorkflowStepPermissionAction["Publish"] = "publish"; - WorkflowStepPermissionAction["Delete"] = "delete"; - return WorkflowStepPermissionAction; -}({}); -export let WorkflowStepPermissionEffect = /*#__PURE__*/function (WorkflowStepPermissionEffect) { - WorkflowStepPermissionEffect["Allow"] = "allow"; - WorkflowStepPermissionEffect["Deny"] = "deny"; - return WorkflowStepPermissionEffect; -}({}); -/* Workflow Step Action */ -export let WorkflowStepActionType = /*#__PURE__*/function (WorkflowStepActionType) { - WorkflowStepActionType["App"] = "app"; - WorkflowStepActionType["Email"] = "email"; - WorkflowStepActionType["Task"] = "task"; - return WorkflowStepActionType; -}({}); - -/* Workflow Step */ - -/* Workflow Definition */ - -/** - * @private - */ -export default function createWorkflowDefinitionApi(makeRequest) { - const getParams = workflowDefinition => ({ - spaceId: workflowDefinition.sys.space.sys.id, - environmentId: workflowDefinition.sys.environment.sys.id, - workflowDefinitionId: workflowDefinition.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapWorkflowDefinition(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'WorkflowDefinition', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -export function wrapWorkflowDefinition(makeRequest, data) { - const workflowDefinition = toPlainObject(copy(data)); - const workflowDefinitionWithMethods = enhanceWithMethods(workflowDefinition, createWorkflowDefinitionApi(makeRequest)); - return freezeSys(workflowDefinitionWithMethods); -} - -/** - * @private - */ -export const wrapWorkflowDefinitionCollection = wrapCollection(wrapWorkflowDefinition); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/workflow.js b/node_modules/contentful-management/dist/es-modules/entities/workflow.js deleted file mode 100644 index e56c23e4..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/workflow.js +++ /dev/null @@ -1,68 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -export default function createWorkflowApi(makeRequest) { - const getParams = Workflow => ({ - spaceId: Workflow.sys.space.sys.id, - environmentId: Workflow.sys.environment.sys.id, - workflowId: Workflow.sys.id - }); - return { - update: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Workflow', - action: 'update', - params: getParams(raw), - payload: raw - }).then(data => wrapWorkflow(makeRequest, data)); - }, - delete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Workflow', - action: 'delete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - }, - complete: function () { - const raw = this.toPlainObject(); - return makeRequest({ - entityType: 'Workflow', - action: 'complete', - params: _objectSpread(_objectSpread({}, getParams(raw)), {}, { - version: raw.sys.version - }) - }).then(() => { - // noop - }); - } - }; -} - -/** - * @private - */ -export function wrapWorkflow(makeRequest, data) { - const Workflow = toPlainObject(copy(data)); - const WorkflowWithMethods = enhanceWithMethods(Workflow, createWorkflowApi(makeRequest)); - return freezeSys(WorkflowWithMethods); -} - -/** - * @private - */ -export const wrapWorkflowCollection = wrapCollection(wrapWorkflow); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/entities/workflows-changelog-entry.js b/node_modules/contentful-management/dist/es-modules/entities/workflows-changelog-entry.js deleted file mode 100644 index bd00e04b..00000000 --- a/node_modules/contentful-management/dist/es-modules/entities/workflows-changelog-entry.js +++ /dev/null @@ -1,24 +0,0 @@ -import { freezeSys, toPlainObject } from 'contentful-sdk-core'; -import copy from 'fast-copy'; -import { wrapCollection } from '../common-utils'; -import enhanceWithMethods from '../enhance-with-methods'; -/** - * @private - */ -function createWorkflowsChangelogEntryApi() { - return {}; -} - -/** - * @private - */ -export function wrapWorkflowsChangelogEntry(_makeRequest, data) { - const workflowsChangelogEntry = toPlainObject(copy(data)); - const workflowsChangelogEntryWithMethods = enhanceWithMethods(workflowsChangelogEntry, createWorkflowsChangelogEntryApi()); - return freezeSys(workflowsChangelogEntryWithMethods); -} - -/** - * @private - */ -export const wrapWorkflowsChangelogEntryCollection = wrapCollection(wrapWorkflowsChangelogEntry); \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/export-types.js b/node_modules/contentful-management/dist/es-modules/export-types.js deleted file mode 100644 index bb67fb9f..00000000 --- a/node_modules/contentful-management/dist/es-modules/export-types.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from './common-types'; -export * from './plain/common-types'; -export { WorkflowStepPermissionType, WorkflowStepPermissionAction, WorkflowStepPermissionEffect } from './entities/workflow-definition'; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/methods/action.js b/node_modules/contentful-management/dist/es-modules/methods/action.js deleted file mode 100644 index c4aad25a..00000000 --- a/node_modules/contentful-management/dist/es-modules/methods/action.js +++ /dev/null @@ -1,54 +0,0 @@ -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/* eslint-disable @typescript-eslint/no-explicit-any */ -import { sleep } from './utils'; -const DEFAULT_MAX_RETRIES = 30; -const DEFAULT_INITIAL_DELAY_MS = 1000; -const DEFAULT_RETRY_INTERVAL_MS = 2000; - -/** Action is an interface that has a sys.status to be checked against */ - -export class AsyncActionProcessingError extends Error { - constructor(message, action) { - super(message); - _defineProperty(this, "action", void 0); - this.action = action; - this.name = this.constructor.name; - } -} -export class AsyncActionFailedError extends AsyncActionProcessingError {} -/** - * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded) - * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status - * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed. - * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long. - */ -export async function pollAsyncActionStatus(actionFunction, options) { - var _options$retryCount, _options$retryInterva, _options$initialDelay, _options$throwOnFaile, _action; - let retryCount = 0; - let done = false; - let action; - const maxRetries = (_options$retryCount = options === null || options === void 0 ? void 0 : options.retryCount) !== null && _options$retryCount !== void 0 ? _options$retryCount : DEFAULT_MAX_RETRIES; - const retryIntervalMs = (_options$retryInterva = options === null || options === void 0 ? void 0 : options.retryIntervalMs) !== null && _options$retryInterva !== void 0 ? _options$retryInterva : DEFAULT_RETRY_INTERVAL_MS; - const initialDelayMs = (_options$initialDelay = options === null || options === void 0 ? void 0 : options.initialDelayMs) !== null && _options$initialDelay !== void 0 ? _options$initialDelay : DEFAULT_INITIAL_DELAY_MS; - const throwOnFailedExecution = (_options$throwOnFaile = options === null || options === void 0 ? void 0 : options.throwOnFailedExecution) !== null && _options$throwOnFaile !== void 0 ? _options$throwOnFaile : true; - - // Initial delay for short-running Actions - await sleep(initialDelayMs); - while (retryCount < maxRetries && !done) { - action = await actionFunction(); - - // Terminal states - if (action && ['succeeded', 'failed'].includes(action.sys.status)) { - done = true; - if (action.sys.status === 'failed' && throwOnFailedExecution) { - throw new AsyncActionFailedError(`${action.sys.type} failed to execute.`, action); - } - return action; - } - await sleep(retryIntervalMs); - retryCount += 1; - } - throw new AsyncActionProcessingError(`${(_action = action) === null || _action === void 0 ? void 0 : _action.sys.type} didn't finish processing within the expected timeframe.`, action); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/methods/bulk-action.js b/node_modules/contentful-management/dist/es-modules/methods/bulk-action.js deleted file mode 100644 index a8d0590b..00000000 --- a/node_modules/contentful-management/dist/es-modules/methods/bulk-action.js +++ /dev/null @@ -1,15 +0,0 @@ -import { pollAsyncActionStatus } from './action'; -/** Waits for a BulkAction status to be either succeeded or failed. - * Used by the Plain client */ -export async function waitForBulkActionProcessing({ - plainClient, - spaceId, - environmentId, - bulkActionId -}, options) { - return pollAsyncActionStatus(async () => plainClient.bulkAction.get({ - bulkActionId, - spaceId, - environmentId - }), options); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/methods/content-type.js b/node_modules/contentful-management/dist/es-modules/methods/content-type.js deleted file mode 100644 index 42d02bbc..00000000 --- a/node_modules/contentful-management/dist/es-modules/methods/content-type.js +++ /dev/null @@ -1,47 +0,0 @@ -const _excluded = ["fieldId"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -/** - * @private - * @param id - unique ID of the field - * @param key - the attribute on the field to change - * @param value - the value to set the attribute to - */ -const findAndUpdateField = function (contentType, fieldId, omitOrDelete) { - const field = contentType.fields.find(field => field.id === fieldId); - if (!field) { - return Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${fieldId}, on the content type ${contentType.name}.`)); - } - field[omitOrDelete] = true; - return Promise.resolve(contentType); -}; -export const omitAndDeleteField = (makeRequest, _ref, contentType) => { - let { - fieldId - } = _ref, - params = _objectWithoutProperties(_ref, _excluded); - return findAndUpdateField(contentType, fieldId, 'omitted').then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: newContentType - }); - }).then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'publish', - params, - payload: newContentType - }); - }).then(newContentType => { - return findAndUpdateField(newContentType, fieldId, 'deleted'); - }).then(newContentType => { - return makeRequest({ - entityType: 'ContentType', - action: 'update', - params, - payload: newContentType - }); - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/methods/release-action.js b/node_modules/contentful-management/dist/es-modules/methods/release-action.js deleted file mode 100644 index 84253052..00000000 --- a/node_modules/contentful-management/dist/es-modules/methods/release-action.js +++ /dev/null @@ -1,17 +0,0 @@ -import { pollAsyncActionStatus } from './action'; -/** Waits for a ReleaseAction status to be either succeeded or failed. - * Used by the Plain client */ -export async function waitForReleaseActionProcessing({ - plainClient, - spaceId, - environmentId, - releaseId, - actionId -}, options) { - return pollAsyncActionStatus(async () => plainClient.releaseAction.get({ - releaseId, - spaceId, - environmentId, - actionId - }), options); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/methods/utils.js b/node_modules/contentful-management/dist/es-modules/methods/utils.js deleted file mode 100644 index 14e5b05e..00000000 --- a/node_modules/contentful-management/dist/es-modules/methods/utils.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Helper function that resolves a Promise after the specified duration (in milliseconds) - * @private - */ -export function sleep(durationMs) { - return new Promise(resolve => setTimeout(resolve, durationMs)); -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/plain/as-iterator.js b/node_modules/contentful-management/dist/es-modules/plain/as-iterator.js deleted file mode 100644 index b43c3b37..00000000 --- a/node_modules/contentful-management/dist/es-modules/plain/as-iterator.js +++ /dev/null @@ -1,47 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import copy from 'fast-copy'; -export const asIterator = (fn, params) => { - return { - [Symbol.asyncIterator]() { - let options = copy(params); - const get = () => fn(copy(options)); - let currentResult = get(); - return { - current: 0, - async next() { - const { - total = 0, - items = [], - skip = 0, - limit = 100 - } = await currentResult; - if (total === this.current) { - return { - done: true, - value: null - }; - } - const value = items[this.current++ - skip]; - const endOfPage = this.current % limit === 0; - const endOfList = this.current === total; - if (endOfPage && !endOfList) { - options = _objectSpread(_objectSpread({}, options), {}, { - query: _objectSpread(_objectSpread({}, options.query), {}, { - skip: skip + limit - }) - }); - currentResult = get(); - } - return { - done: false, - value - }; - } - }; - } - }; -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/plain/checks.js b/node_modules/contentful-management/dist/es-modules/plain/checks.js deleted file mode 100644 index 9a3e597a..00000000 --- a/node_modules/contentful-management/dist/es-modules/plain/checks.js +++ /dev/null @@ -1,8 +0,0 @@ -export const isPublished = data => !!data.sys.publishedVersion; -export const isUpdated = data => { - // The act of publishing an entity increases its version by 1, so any entry which has - // 2 versions higher or more than the publishedVersion has unpublished changes. - return !!(data.sys.publishedVersion && data.sys.version > data.sys.publishedVersion + 1); -}; -export const isDraft = data => !data.sys.publishedVersion; -export const isArchived = data => !!data.sys.archivedVersion; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/plain/common-types.js b/node_modules/contentful-management/dist/es-modules/plain/common-types.js deleted file mode 100644 index 8cec2e9c..00000000 --- a/node_modules/contentful-management/dist/es-modules/plain/common-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/plain/plain-client.js b/node_modules/contentful-management/dist/es-modules/plain/plain-client.js deleted file mode 100644 index 837e646f..00000000 --- a/node_modules/contentful-management/dist/es-modules/plain/plain-client.js +++ /dev/null @@ -1,475 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -import { omitAndDeleteField } from '../methods/content-type'; -import { wrap } from './wrappers/wrap'; -/** - * @private - */ -export const createPlainClient = (makeRequest, defaults) => { - const wrapParams = { - makeRequest, - defaults - }; - return { - raw: { - getDefaultParams: () => defaults, - get: (url, config) => makeRequest({ - entityType: 'Http', - action: 'get', - params: { - url, - config - } - }), - patch: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'patch', - params: { - url, - config - }, - payload - }), - post: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'post', - params: { - url, - config - }, - payload - }), - put: (url, payload, config) => makeRequest({ - entityType: 'Http', - action: 'put', - params: { - url, - config - }, - payload - }), - delete: (url, config) => makeRequest({ - entityType: 'Http', - action: 'delete', - params: { - url, - config - } - }), - http: (url, config) => makeRequest({ - entityType: 'Http', - action: 'request', - params: { - url, - config - } - }) - }, - appAction: { - get: wrap(wrapParams, 'AppAction', 'get'), - getMany: wrap(wrapParams, 'AppAction', 'getMany'), - getManyForEnvironment: wrap(wrapParams, 'AppAction', 'getManyForEnvironment'), - delete: wrap(wrapParams, 'AppAction', 'delete'), - create: wrap(wrapParams, 'AppAction', 'create'), - update: wrap(wrapParams, 'AppAction', 'update') - }, - appActionCall: { - create: wrap(wrapParams, 'AppActionCall', 'create'), - getCallDetails: wrap(wrapParams, 'AppActionCall', 'getCallDetails'), - createWithResponse: wrap(wrapParams, 'AppActionCall', 'createWithResponse') - }, - appBundle: { - get: wrap(wrapParams, 'AppBundle', 'get'), - getMany: wrap(wrapParams, 'AppBundle', 'getMany'), - delete: wrap(wrapParams, 'AppBundle', 'delete'), - create: wrap(wrapParams, 'AppBundle', 'create') - }, - appDetails: { - upsert: wrap(wrapParams, 'AppDetails', 'upsert'), - get: wrap(wrapParams, 'AppDetails', 'get'), - delete: wrap(wrapParams, 'AppDetails', 'delete') - }, - appEventSubscription: { - upsert: wrap(wrapParams, 'AppEventSubscription', 'upsert'), - get: wrap(wrapParams, 'AppEventSubscription', 'get'), - delete: wrap(wrapParams, 'AppEventSubscription', 'delete') - }, - appKey: { - create: wrap(wrapParams, 'AppKey', 'create'), - get: wrap(wrapParams, 'AppKey', 'get'), - getMany: wrap(wrapParams, 'AppKey', 'getMany'), - delete: wrap(wrapParams, 'AppKey', 'delete') - }, - appSignedRequest: { - create: wrap(wrapParams, 'AppSignedRequest', 'create') - }, - appSigningSecret: { - upsert: wrap(wrapParams, 'AppSigningSecret', 'upsert'), - get: wrap(wrapParams, 'AppSigningSecret', 'get'), - delete: wrap(wrapParams, 'AppSigningSecret', 'delete') - }, - appAccessToken: { - create: wrap(wrapParams, 'AppAccessToken', 'create') - }, - function: { - getMany: wrap(wrapParams, 'Function', 'getMany') - }, - editorInterface: { - get: wrap(wrapParams, 'EditorInterface', 'get'), - getMany: wrap(wrapParams, 'EditorInterface', 'getMany'), - update: wrap(wrapParams, 'EditorInterface', 'update') - }, - space: { - get: wrap(wrapParams, 'Space', 'get'), - getMany: wrap(wrapParams, 'Space', 'getMany'), - getManyForOrganization: wrap(wrapParams, 'Space', 'getManyForOrganization'), - update: wrap(wrapParams, 'Space', 'update'), - delete: wrap(wrapParams, 'Space', 'delete'), - create: wrap(wrapParams, 'Space', 'create') - }, - environment: { - get: wrap(wrapParams, 'Environment', 'get'), - getMany: wrap(wrapParams, 'Environment', 'getMany'), - create: wrap(wrapParams, 'Environment', 'create'), - createWithId: wrap(wrapParams, 'Environment', 'createWithId'), - update: wrap(wrapParams, 'Environment', 'update'), - delete: wrap(wrapParams, 'Environment', 'delete') - }, - environmentAlias: { - get: wrap(wrapParams, 'EnvironmentAlias', 'get'), - getMany: wrap(wrapParams, 'EnvironmentAlias', 'getMany'), - createWithId: wrap(wrapParams, 'EnvironmentAlias', 'createWithId'), - update: wrap(wrapParams, 'EnvironmentAlias', 'update'), - delete: wrap(wrapParams, 'EnvironmentAlias', 'delete') - }, - environmentTemplate: { - get: wrap(wrapParams, 'EnvironmentTemplate', 'get'), - getMany: wrap(wrapParams, 'EnvironmentTemplate', 'getMany'), - create: wrap(wrapParams, 'EnvironmentTemplate', 'create'), - versionUpdate: wrap(wrapParams, 'EnvironmentTemplate', 'versionUpdate'), - update: wrap(wrapParams, 'EnvironmentTemplate', 'update'), - install: wrap(wrapParams, 'EnvironmentTemplate', 'install'), - versions: wrap(wrapParams, 'EnvironmentTemplate', 'versions'), - validate: wrap(wrapParams, 'EnvironmentTemplate', 'validate'), - disconnect: wrap(wrapParams, 'EnvironmentTemplate', 'disconnect'), - delete: wrap(wrapParams, 'EnvironmentTemplate', 'delete') - }, - environmentTemplateInstallation: { - getMany: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getMany'), - getForEnvironment: wrap(wrapParams, 'EnvironmentTemplateInstallation', 'getForEnvironment') - }, - bulkAction: { - get: wrap(wrapParams, 'BulkAction', 'get'), - publish: wrap(wrapParams, 'BulkAction', 'publish'), - unpublish: wrap(wrapParams, 'BulkAction', 'unpublish'), - validate: wrap(wrapParams, 'BulkAction', 'validate') - }, - comment: { - get: wrap(wrapParams, 'Comment', 'get'), - getMany: wrap(wrapParams, 'Comment', 'getMany'), - create: wrap(wrapParams, 'Comment', 'create'), - update: wrap(wrapParams, 'Comment', 'update'), - delete: wrap(wrapParams, 'Comment', 'delete') - }, - contentType: { - get: wrap(wrapParams, 'ContentType', 'get'), - getMany: wrap(wrapParams, 'ContentType', 'getMany'), - update: wrap(wrapParams, 'ContentType', 'update'), - delete: wrap(wrapParams, 'ContentType', 'delete'), - publish: wrap(wrapParams, 'ContentType', 'publish'), - unpublish: wrap(wrapParams, 'ContentType', 'unpublish'), - create: wrap(wrapParams, 'ContentType', 'create'), - createWithId: wrap(wrapParams, 'ContentType', 'createWithId'), - omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - fieldId - }), contentType) - }, - user: { - getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'), - getForSpace: wrap(wrapParams, 'User', 'getForSpace'), - getCurrent: wrap(wrapParams, 'User', 'getCurrent'), - getForOrganization: wrap(wrapParams, 'User', 'getForOrganization'), - getManyForOrganization: wrap(wrapParams, 'User', 'getManyForOrganization') - }, - task: { - get: wrap(wrapParams, 'Task', 'get'), - getMany: wrap(wrapParams, 'Task', 'getMany'), - create: wrap(wrapParams, 'Task', 'create'), - update: wrap(wrapParams, 'Task', 'update'), - delete: wrap(wrapParams, 'Task', 'delete') - }, - entry: { - getPublished: wrap(wrapParams, 'Entry', 'getPublished'), - getMany: wrap(wrapParams, 'Entry', 'getMany'), - get: wrap(wrapParams, 'Entry', 'get'), - update: wrap(wrapParams, 'Entry', 'update'), - patch: wrap(wrapParams, 'Entry', 'patch'), - delete: wrap(wrapParams, 'Entry', 'delete'), - publish: wrap(wrapParams, 'Entry', 'publish'), - unpublish: wrap(wrapParams, 'Entry', 'unpublish'), - archive: wrap(wrapParams, 'Entry', 'archive'), - unarchive: wrap(wrapParams, 'Entry', 'unarchive'), - create: wrap(wrapParams, 'Entry', 'create'), - createWithId: wrap(wrapParams, 'Entry', 'createWithId'), - references: wrap(wrapParams, 'Entry', 'references') - }, - asset: { - getPublished: wrap(wrapParams, 'Asset', 'getPublished'), - getMany: wrap(wrapParams, 'Asset', 'getMany'), - get: wrap(wrapParams, 'Asset', 'get'), - update: wrap(wrapParams, 'Asset', 'update'), - delete: wrap(wrapParams, 'Asset', 'delete'), - publish: wrap(wrapParams, 'Asset', 'publish'), - unpublish: wrap(wrapParams, 'Asset', 'unpublish'), - archive: wrap(wrapParams, 'Asset', 'archive'), - unarchive: wrap(wrapParams, 'Asset', 'unarchive'), - create: wrap(wrapParams, 'Asset', 'create'), - createWithId: wrap(wrapParams, 'Asset', 'createWithId'), - createFromFiles: wrap(wrapParams, 'Asset', 'createFromFiles'), - processForAllLocales: (params, asset, options) => makeRequest({ - entityType: 'Asset', - action: 'processForAllLocales', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - options, - asset - }) - }), - processForLocale: (params, asset, locale, options) => makeRequest({ - entityType: 'Asset', - action: 'processForLocale', - params: _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, defaults), params)), {}, { - locale, - asset, - options - }) - }) - }, - appUpload: { - get: wrap(wrapParams, 'AppUpload', 'get'), - delete: wrap(wrapParams, 'AppUpload', 'delete'), - create: wrap(wrapParams, 'AppUpload', 'create') - }, - assetKey: { - create: wrap(wrapParams, 'AssetKey', 'create') - }, - upload: { - get: wrap(wrapParams, 'Upload', 'get'), - create: wrap(wrapParams, 'Upload', 'create'), - delete: wrap(wrapParams, 'Upload', 'delete') - }, - locale: { - get: wrap(wrapParams, 'Locale', 'get'), - getMany: wrap(wrapParams, 'Locale', 'getMany'), - delete: wrap(wrapParams, 'Locale', 'delete'), - update: wrap(wrapParams, 'Locale', 'update'), - create: wrap(wrapParams, 'Locale', 'create') - }, - personalAccessToken: { - get: wrap(wrapParams, 'PersonalAccessToken', 'get'), - getMany: wrap(wrapParams, 'PersonalAccessToken', 'getMany'), - create: (data, headers) => makeRequest({ - entityType: 'PersonalAccessToken', - action: 'create', - params: {}, - headers, - payload: data - }), - revoke: wrap(wrapParams, 'PersonalAccessToken', 'revoke') - }, - accessToken: { - get: wrap(wrapParams, 'AccessToken', 'get'), - getMany: wrap(wrapParams, 'AccessToken', 'getMany'), - createPersonalAccessToken: (data, headers) => makeRequest({ - entityType: 'AccessToken', - action: 'createPersonalAccessToken', - params: {}, - headers, - payload: data - }), - revoke: wrap(wrapParams, 'AccessToken', 'revoke'), - getManyForOrganization: wrap(wrapParams, 'AccessToken', 'getManyForOrganization') - }, - usage: { - getManyForSpace: wrap(wrapParams, 'Usage', 'getManyForSpace'), - getManyForOrganization: wrap(wrapParams, 'Usage', 'getManyForOrganization') - }, - release: { - archive: wrap(wrapParams, 'Release', 'archive'), - get: wrap(wrapParams, 'Release', 'get'), - query: wrap(wrapParams, 'Release', 'query'), - create: wrap(wrapParams, 'Release', 'create'), - update: wrap(wrapParams, 'Release', 'update'), - delete: wrap(wrapParams, 'Release', 'delete'), - publish: wrap(wrapParams, 'Release', 'publish'), - unarchive: wrap(wrapParams, 'Release', 'unarchive'), - unpublish: wrap(wrapParams, 'Release', 'unpublish'), - validate: wrap(wrapParams, 'Release', 'validate') - }, - releaseAction: { - get: wrap(wrapParams, 'ReleaseAction', 'get'), - getMany: wrap(wrapParams, 'ReleaseAction', 'getMany'), - queryForRelease: wrap(wrapParams, 'ReleaseAction', 'queryForRelease') - }, - role: { - get: wrap(wrapParams, 'Role', 'get'), - getMany: wrap(wrapParams, 'Role', 'getMany'), - getManyForOrganization: wrap(wrapParams, 'Role', 'getManyForOrganization'), - create: wrap(wrapParams, 'Role', 'create'), - createWithId: wrap(wrapParams, 'Role', 'createWithId'), - update: wrap(wrapParams, 'Role', 'update'), - delete: wrap(wrapParams, 'Role', 'delete') - }, - scheduledActions: { - get: wrap(wrapParams, 'ScheduledAction', 'get'), - getMany: wrap(wrapParams, 'ScheduledAction', 'getMany'), - create: wrap(wrapParams, 'ScheduledAction', 'create'), - delete: wrap(wrapParams, 'ScheduledAction', 'delete'), - update: wrap(wrapParams, 'ScheduledAction', 'update') - }, - previewApiKey: { - get: wrap(wrapParams, 'PreviewApiKey', 'get'), - getMany: wrap(wrapParams, 'PreviewApiKey', 'getMany') - }, - apiKey: { - get: wrap(wrapParams, 'ApiKey', 'get'), - getMany: wrap(wrapParams, 'ApiKey', 'getMany'), - create: wrap(wrapParams, 'ApiKey', 'create'), - createWithId: wrap(wrapParams, 'ApiKey', 'createWithId'), - update: wrap(wrapParams, 'ApiKey', 'update'), - delete: wrap(wrapParams, 'ApiKey', 'delete') - }, - appDefinition: { - get: wrap(wrapParams, 'AppDefinition', 'get'), - getMany: wrap(wrapParams, 'AppDefinition', 'getMany'), - create: wrap(wrapParams, 'AppDefinition', 'create'), - update: wrap(wrapParams, 'AppDefinition', 'update'), - delete: wrap(wrapParams, 'AppDefinition', 'delete'), - getInstallationsForOrg: wrap(wrapParams, 'AppDefinition', 'getInstallationsForOrg') - }, - appInstallation: { - get: wrap(wrapParams, 'AppInstallation', 'get'), - getMany: wrap(wrapParams, 'AppInstallation', 'getMany'), - getForOrganization: wrap(wrapParams, 'AppInstallation', 'getForOrganization'), - upsert: wrap(wrapParams, 'AppInstallation', 'upsert'), - delete: wrap(wrapParams, 'AppInstallation', 'delete') - }, - extension: { - get: wrap(wrapParams, 'Extension', 'get'), - getMany: wrap(wrapParams, 'Extension', 'getMany'), - create: wrap(wrapParams, 'Extension', 'create'), - createWithId: wrap(wrapParams, 'Extension', 'createWithId'), - update: wrap(wrapParams, 'Extension', 'update'), - delete: wrap(wrapParams, 'Extension', 'delete') - }, - webhook: { - get: wrap(wrapParams, 'Webhook', 'get'), - getMany: wrap(wrapParams, 'Webhook', 'getMany'), - getHealthStatus: wrap(wrapParams, 'Webhook', 'getHealthStatus'), - getCallDetails: wrap(wrapParams, 'Webhook', 'getCallDetails'), - getSigningSecret: wrap(wrapParams, 'Webhook', 'getSigningSecret'), - getRetryPolicy: wrap(wrapParams, 'Webhook', 'getRetryPolicy'), - getManyCallDetails: wrap(wrapParams, 'Webhook', 'getManyCallDetails'), - create: wrap(wrapParams, 'Webhook', 'create'), - update: wrap(wrapParams, 'Webhook', 'update'), - upsertSigningSecret: wrap(wrapParams, 'Webhook', 'upsertSigningSecret'), - upsertRetryPolicy: wrap(wrapParams, 'Webhook', 'upsertRetryPolicy'), - delete: wrap(wrapParams, 'Webhook', 'delete'), - deleteSigningSecret: wrap(wrapParams, 'Webhook', 'deleteSigningSecret'), - deleteRetryPolicy: wrap(wrapParams, 'Webhook', 'deleteRetryPolicy') - }, - snapshot: { - getManyForEntry: wrap(wrapParams, 'Snapshot', 'getManyForEntry'), - getForEntry: wrap(wrapParams, 'Snapshot', 'getForEntry'), - getManyForContentType: wrap(wrapParams, 'Snapshot', 'getManyForContentType'), - getForContentType: wrap(wrapParams, 'Snapshot', 'getForContentType') - }, - tag: { - get: wrap(wrapParams, 'Tag', 'get'), - getMany: wrap(wrapParams, 'Tag', 'getMany'), - createWithId: wrap(wrapParams, 'Tag', 'createWithId'), - update: wrap(wrapParams, 'Tag', 'update'), - delete: wrap(wrapParams, 'Tag', 'delete') - }, - organization: { - getAll: wrap(wrapParams, 'Organization', 'getMany'), - get: wrap(wrapParams, 'Organization', 'get') - }, - organizationInvitation: { - get: wrap(wrapParams, 'OrganizationInvitation', 'get'), - create: wrap(wrapParams, 'OrganizationInvitation', 'create') - }, - organizationMembership: { - get: wrap(wrapParams, 'OrganizationMembership', 'get'), - getMany: wrap(wrapParams, 'OrganizationMembership', 'getMany'), - update: wrap(wrapParams, 'OrganizationMembership', 'update'), - delete: wrap(wrapParams, 'OrganizationMembership', 'delete') - }, - spaceMember: { - get: wrap(wrapParams, 'SpaceMember', 'get'), - getMany: wrap(wrapParams, 'SpaceMember', 'getMany') - }, - spaceMembership: { - get: wrap(wrapParams, 'SpaceMembership', 'get'), - getMany: wrap(wrapParams, 'SpaceMembership', 'getMany'), - getForOrganization: wrap(wrapParams, 'SpaceMembership', 'getForOrganization'), - getManyForOrganization: wrap(wrapParams, 'SpaceMembership', 'getManyForOrganization'), - create: wrap(wrapParams, 'SpaceMembership', 'create'), - createWithId: wrap(wrapParams, 'SpaceMembership', 'createWithId'), - update: wrap(wrapParams, 'SpaceMembership', 'update'), - delete: wrap(wrapParams, 'SpaceMembership', 'delete') - }, - team: { - get: wrap(wrapParams, 'Team', 'get'), - getMany: wrap(wrapParams, 'Team', 'getMany'), - getManyForSpace: wrap(wrapParams, 'Team', 'getManyForSpace'), - create: wrap(wrapParams, 'Team', 'create'), - update: wrap(wrapParams, 'Team', 'update'), - delete: wrap(wrapParams, 'Team', 'delete') - }, - teamMembership: { - get: wrap(wrapParams, 'TeamMembership', 'get'), - getManyForOrganization: wrap(wrapParams, 'TeamMembership', 'getManyForOrganization'), - getManyForTeam: wrap(wrapParams, 'TeamMembership', 'getManyForTeam'), - create: wrap(wrapParams, 'TeamMembership', 'create'), - update: wrap(wrapParams, 'TeamMembership', 'update'), - delete: wrap(wrapParams, 'TeamMembership', 'delete') - }, - teamSpaceMembership: { - get: wrap(wrapParams, 'TeamSpaceMembership', 'get'), - getMany: wrap(wrapParams, 'TeamSpaceMembership', 'getMany'), - getForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getForOrganization'), - getManyForOrganization: wrap(wrapParams, 'TeamSpaceMembership', 'getManyForOrganization'), - create: wrap(wrapParams, 'TeamSpaceMembership', 'create'), - update: wrap(wrapParams, 'TeamSpaceMembership', 'update'), - delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete') - }, - uiConfig: { - get: wrap(wrapParams, 'UIConfig', 'get'), - update: wrap(wrapParams, 'UIConfig', 'update') - }, - userUIConfig: { - get: wrap(wrapParams, 'UserUIConfig', 'get'), - update: wrap(wrapParams, 'UserUIConfig', 'update') - }, - workflowDefinition: { - get: wrap(wrapParams, 'WorkflowDefinition', 'get'), - getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'), - create: wrap(wrapParams, 'WorkflowDefinition', 'create'), - update: wrap(wrapParams, 'WorkflowDefinition', 'update'), - delete: wrap(wrapParams, 'WorkflowDefinition', 'delete') - }, - workflow: { - getMany: wrap(wrapParams, 'Workflow', 'getMany'), - create: wrap(wrapParams, 'Workflow', 'create'), - update: wrap(wrapParams, 'Workflow', 'update'), - delete: wrap(wrapParams, 'Workflow', 'delete'), - complete: wrap(wrapParams, 'Workflow', 'complete') - }, - workflowsChangelog: { - getMany: wrap(wrapParams, 'WorkflowsChangelog', 'getMany') - } - }; -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/plain/wrappers/wrap.js b/node_modules/contentful-management/dist/es-modules/plain/wrappers/wrap.js deleted file mode 100644 index bf1935fa..00000000 --- a/node_modules/contentful-management/dist/es-modules/plain/wrappers/wrap.js +++ /dev/null @@ -1,42 +0,0 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ - -/** - * @private - */ -export const wrap = ({ - makeRequest, - defaults -}, entityType, action) => { - // It's not really possible to make this type safe as we are overloading `makeRequest`. - // This missing typesafety is only within `wrap`. `wrap` has proper public types. - // @ts-expect-error - return (params, payload, headers) => - // @ts-expect-error - makeRequest({ - // @ts-expect-error - entityType, - // @ts-expect-error - action, - // @ts-expect-error - params: _objectSpread(_objectSpread({}, defaults), params), - payload, - // Required after adding optional headers to a delete method for the first time - // @ts-expect-error - headers - }); -}; \ No newline at end of file diff --git a/node_modules/contentful-management/dist/es-modules/upload-http-client.js b/node_modules/contentful-management/dist/es-modules/upload-http-client.js deleted file mode 100644 index db795875..00000000 --- a/node_modules/contentful-management/dist/es-modules/upload-http-client.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @private - */ -export function getUploadHttpClient(http, options) { - var _ref; - const { - hostUpload, - defaultHostnameUpload, - timeout - } = http.httpClientParams; - const uploadHttp = http.cloneWithNewParams({ - host: hostUpload || defaultHostnameUpload, - // Using client presets, options or 5 minute default timeout - timeout: (_ref = timeout !== null && timeout !== void 0 ? timeout : options === null || options === void 0 ? void 0 : options.uploadTimeout) !== null && _ref !== void 0 ? _ref : 300000 - }); - return uploadHttp; -} \ No newline at end of file diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/api-key.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/api-key.d.ts deleted file mode 100644 index ad401f8f..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/api-key.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'ApiKey', 'get'>; -export declare const getMany: RestEndpoint<'ApiKey', 'getMany'>; -export declare const create: RestEndpoint<'ApiKey', 'create'>; -export declare const createWithId: RestEndpoint<'ApiKey', 'createWithId'>; -export declare const update: RestEndpoint<'ApiKey', 'update'>; -export declare const del: RestEndpoint<'ApiKey', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action-call.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action-call.d.ts deleted file mode 100644 index 52351182..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action-call.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const create: RestEndpoint<'AppActionCall', 'create'>; -export declare const getCallDetails: RestEndpoint<'AppActionCall', 'getCallDetails'>; -export declare const createWithResponse: RestEndpoint<'AppActionCall', 'createWithResponse'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action.d.ts deleted file mode 100644 index ffe636cb..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-action.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'AppAction', 'get'>; -export declare const getMany: RestEndpoint<'AppAction', 'getMany'>; -export declare const getManyForEnvironment: RestEndpoint<'AppAction', 'getManyForEnvironment'>; -export declare const del: RestEndpoint<'AppAction', 'delete'>; -export declare const create: RestEndpoint<'AppAction', 'create'>; -export declare const update: RestEndpoint<'AppAction', 'update'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-bundle.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-bundle.d.ts deleted file mode 100644 index 075095fd..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-bundle.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'AppBundle', 'get'>; -export declare const getMany: RestEndpoint<'AppBundle', 'getMany'>; -export declare const del: RestEndpoint<'AppBundle', 'delete'>; -export declare const create: RestEndpoint<'AppBundle', 'create'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-definition.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-definition.d.ts deleted file mode 100644 index fafb87c8..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-definition.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { GetAppDefinitionParams } from '../../../common-types'; -import { RestEndpoint } from '../types'; -export declare const getAppDefinitionUrl: (params: GetAppDefinitionParams) => string; -export declare const get: RestEndpoint<'AppDefinition', 'get'>; -export declare const getMany: RestEndpoint<'AppDefinition', 'getMany'>; -export declare const create: RestEndpoint<'AppDefinition', 'create'>; -export declare const update: RestEndpoint<'AppDefinition', 'update'>; -export declare const del: RestEndpoint<'AppDefinition', 'delete'>; -export declare const getInstallationsForOrg: RestEndpoint<'AppDefinition', 'getInstallationsForOrg'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-details.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-details.d.ts deleted file mode 100644 index 64a3f181..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-details.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'AppDetails', 'get'>; -export declare const upsert: RestEndpoint<'AppDetails', 'upsert'>; -export declare const del: RestEndpoint<'AppDetails', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-installation.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-installation.d.ts deleted file mode 100644 index 58cac335..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-installation.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { GetAppInstallationParams } from '../../../common-types'; -import { RestEndpoint } from '../types'; -export declare const getAppInstallationUrl: (params: GetAppInstallationParams) => string; -export declare const get: RestEndpoint<'AppInstallation', 'get'>; -export declare const getMany: RestEndpoint<'AppInstallation', 'getMany'>; -export declare const upsert: RestEndpoint<'AppInstallation', 'upsert'>; -export declare const del: RestEndpoint<'AppInstallation', 'delete'>; -export declare const getForOrganization: RestEndpoint<'AppInstallation', 'getForOrganization'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signed-request.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signed-request.d.ts deleted file mode 100644 index ebe203fb..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signed-request.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const create: RestEndpoint<'AppSignedRequest', 'create'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signing-secret.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signing-secret.d.ts deleted file mode 100644 index 8a47ba89..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-signing-secret.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'AppSigningSecret', 'get'>; -export declare const upsert: RestEndpoint<'AppSigningSecret', 'upsert'>; -export declare const del: RestEndpoint<'AppSigningSecret', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-upload.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-upload.d.ts deleted file mode 100644 index 17e4bc62..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/app-upload.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'AppUpload', 'get'>; -export declare const del: RestEndpoint<'AppUpload', 'delete'>; -export declare const create: RestEndpoint<'AppUpload', 'create'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset-key.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset-key.d.ts deleted file mode 100644 index 0ade8f5e..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset-key.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare class ValidationError extends Error { - constructor(name: string, message: string); -} -export declare const create: RestEndpoint<'AssetKey', 'create'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset.d.ts deleted file mode 100644 index 22ab1b81..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/asset.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Asset', 'get'>; -export declare const getPublished: RestEndpoint<'Asset', 'getPublished'>; -export declare const getMany: RestEndpoint<'Asset', 'getMany'>; -export declare const update: RestEndpoint<'Asset', 'update'>; -export declare const del: RestEndpoint<'Asset', 'delete'>; -export declare const publish: RestEndpoint<'Asset', 'publish'>; -export declare const unpublish: RestEndpoint<'Asset', 'unpublish'>; -export declare const archive: RestEndpoint<'Asset', 'archive'>; -export declare const unarchive: RestEndpoint<'Asset', 'unarchive'>; -export declare const create: RestEndpoint<'Asset', 'create'>; -export declare const createWithId: RestEndpoint<'Asset', 'createWithId'>; -export declare const createFromFiles: RestEndpoint<'Asset', 'createFromFiles'>; -export declare const processForLocale: RestEndpoint<'Asset', 'processForLocale'>; -export declare const processForAllLocales: RestEndpoint<'Asset', 'processForAllLocales'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/bulk-action.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/bulk-action.d.ts deleted file mode 100644 index 5c13b4cc..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/bulk-action.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'BulkAction', 'get'>; -export declare const publish: RestEndpoint<'BulkAction', 'publish'>; -export declare const unpublish: RestEndpoint<'BulkAction', 'unpublish'>; -export declare const validate: RestEndpoint<'BulkAction', 'validate'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/comment.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/comment.d.ts deleted file mode 100644 index 1693b0ce..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/comment.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Comment', 'get'>; -export declare const getMany: RestEndpoint<'Comment', 'getMany'>; -export declare const create: RestEndpoint<'Comment', 'create'>; -export declare const update: RestEndpoint<'Comment', 'update'>; -export declare const del: RestEndpoint<'Comment', 'delete'>; -/** - * @deprecated use `getMany` instead. - */ -export declare const getAll: RestEndpoint<'Comment', 'getAll'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/content-type.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/content-type.d.ts deleted file mode 100644 index 022d926f..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/content-type.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'ContentType', 'get'>; -export declare const getMany: RestEndpoint<'ContentType', 'getMany'>; -export declare const create: RestEndpoint<'ContentType', 'create'>; -export declare const createWithId: RestEndpoint<'ContentType', 'createWithId'>; -export declare const update: RestEndpoint<'ContentType', 'update'>; -export declare const del: RestEndpoint<'ContentType', 'delete'>; -export declare const publish: RestEndpoint<'ContentType', 'publish'>; -export declare const unpublish: RestEndpoint<'ContentType', 'unpublish'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/editor-interface.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/editor-interface.d.ts deleted file mode 100644 index c4175989..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/editor-interface.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'EditorInterface', 'get'>; -export declare const getMany: RestEndpoint<'EditorInterface', 'getMany'>; -export declare const update: RestEndpoint<'EditorInterface', 'update'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/entry.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/entry.d.ts deleted file mode 100644 index 027e7189..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/entry.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Entry', 'get'>; -export declare const getPublished: RestEndpoint<'Entry', 'getPublished'>; -export declare const getMany: RestEndpoint<'Entry', 'getMany'>; -export declare const patch: RestEndpoint<'Entry', 'patch'>; -export declare const update: RestEndpoint<'Entry', 'update'>; -export declare const del: RestEndpoint<'Entry', 'delete'>; -export declare const publish: RestEndpoint<'Entry', 'publish'>; -export declare const unpublish: RestEndpoint<'Entry', 'unpublish'>; -export declare const archive: RestEndpoint<'Entry', 'archive'>; -export declare const unarchive: RestEndpoint<'Entry', 'unarchive'>; -export declare const create: RestEndpoint<'Entry', 'create'>; -export declare const createWithId: RestEndpoint<'Entry', 'createWithId'>; -export declare const references: RestEndpoint<'Entry', 'references'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment-alias.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment-alias.d.ts deleted file mode 100644 index 6c89d45f..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment-alias.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { RestEndpoint } from '../types'; -/** - * Endpoints - */ -export declare const get: RestEndpoint<'EnvironmentAlias', 'get'>; -export declare const getMany: RestEndpoint<'EnvironmentAlias', 'getMany'>; -export declare const createWithId: RestEndpoint<'EnvironmentAlias', 'createWithId'>; -export declare const update: RestEndpoint<'EnvironmentAlias', 'update'>; -export declare const del: RestEndpoint<'EnvironmentAlias', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment.d.ts deleted file mode 100644 index 2d0f8f31..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/environment.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Environment', 'get'>; -export declare const getMany: RestEndpoint<'Environment', 'getMany'>; -export declare const update: RestEndpoint<'Environment', 'update'>; -export declare const del: RestEndpoint<'Environment', 'delete'>; -export declare const create: RestEndpoint<'Environment', 'create'>; -export declare const createWithId: RestEndpoint<'Environment', 'createWithId'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/extension.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/extension.d.ts deleted file mode 100644 index 5f79b8e5..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/extension.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { GetExtensionParams } from '../../../common-types'; -import { RestEndpoint } from '../types'; -export declare const getExtensionUrl: (params: GetExtensionParams) => string; -export declare const get: RestEndpoint<'Extension', 'get'>; -export declare const getMany: RestEndpoint<'Extension', 'getMany'>; -export declare const create: RestEndpoint<'Extension', 'create'>; -export declare const createWithId: RestEndpoint<'Extension', 'createWithId'>; -export declare const update: RestEndpoint<'Extension', 'update'>; -export declare const del: RestEndpoint<'Extension', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/http.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/http.d.ts deleted file mode 100644 index e20b4c62..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/http.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Http', 'get'>; -export declare const post: RestEndpoint<'Http', 'post'>; -export declare const put: RestEndpoint<'Http', 'put'>; -export declare const patch: RestEndpoint<'Http', 'patch'>; -export declare const del: RestEndpoint<'Http', 'delete'>; -export declare const request: RestEndpoint<'Http', 'request'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/index.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/index.d.ts deleted file mode 100644 index 5c22d8e5..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/index.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import * as ApiKey from './api-key'; -import * as AppAction from './app-action'; -import * as AppActionCall from './app-action-call'; -import * as AppBundle from './app-bundle'; -import * as AppDefinition from './app-definition'; -import * as AppDetails from './app-details'; -import * as AppInstallation from './app-installation'; -import * as AppSignedRequest from './app-signed-request'; -import * as AppSigningSecret from './app-signing-secret'; -import * as AppEventSubscription from './app-event-subscription'; -import * as AppKey from './app-key'; -import * as AppAccessToken from './app-access-token'; -import * as AppUpload from './app-upload'; -import * as Asset from './asset'; -import * as AssetKey from './asset-key'; -import * as BulkAction from './bulk-action'; -import * as Comment from './comment'; -import * as ContentType from './content-type'; -import * as EditorInterface from './editor-interface'; -import * as Entry from './entry'; -import * as Environment from './environment'; -import * as EnvironmentAlias from './environment-alias'; -import * as EnvironmentTemplate from './environment-template'; -import * as EnvironmentTemplateInstallation from './environment-template-installation'; -import * as Extension from './extension'; -import * as Http from './http'; -import * as Locale from './locale'; -import * as Organization from './organization'; -import * as OrganizationInvitation from './organization-invitation'; -import * as OrganizationMembership from './organization-membership'; -import * as PersonalAccessToken from './personal-access-token'; -import * as AccessToken from './access-token'; -import * as PreviewApiKey from './preview-api-key'; -import * as Release from './release'; -import * as ReleaseAction from './release-action'; -import * as Role from './role'; -import * as ScheduledAction from './scheduled-action'; -import * as Snapshot from './snapshot'; -import * as Space from './space'; -import * as SpaceMember from './space-member'; -import * as SpaceMembership from './space-membership'; -import * as Tag from './tag'; -import * as Task from './task'; -import * as Team from './team'; -import * as TeamMembership from './team-membership'; -import * as TeamSpaceMembership from './team-space-membership'; -import * as UIConfig from './ui-config'; -import * as Upload from './upload'; -import * as Usage from './usage'; -import * as User from './user'; -import * as UserUIConfig from './user-ui-config'; -import * as Webhook from './webhook'; -import * as Workflow from './workflow'; -import * as WorkflowDefinition from './workflow-definition'; -import * as WorkflowsChangelog from './workflows-changelog'; -declare const _default: { - ApiKey: typeof ApiKey; - AppAction: typeof AppAction; - AppActionCall: typeof AppActionCall; - AppBundle: typeof AppBundle; - AppDefinition: typeof AppDefinition; - AppInstallation: typeof AppInstallation; - AppUpload: typeof AppUpload; - AppSignedRequest: typeof AppSignedRequest; - AppSigningSecret: typeof AppSigningSecret; - AppEventSubscription: typeof AppEventSubscription; - AppKey: typeof AppKey; - AppAccessToken: typeof AppAccessToken; - AppDetails: typeof AppDetails; - Asset: typeof Asset; - AssetKey: typeof AssetKey; - BulkAction: typeof BulkAction; - Comment: typeof Comment; - ContentType: typeof ContentType; - EditorInterface: typeof EditorInterface; - Entry: typeof Entry; - Environment: typeof Environment; - EnvironmentAlias: typeof EnvironmentAlias; - EnvironmentTemplate: typeof EnvironmentTemplate; - EnvironmentTemplateInstallation: typeof EnvironmentTemplateInstallation; - Extension: typeof Extension; - Http: typeof Http; - Locale: typeof Locale; - Organization: typeof Organization; - OrganizationInvitation: typeof OrganizationInvitation; - OrganizationMembership: typeof OrganizationMembership; - PersonalAccessToken: typeof PersonalAccessToken; - AccessToken: typeof AccessToken; - PreviewApiKey: typeof PreviewApiKey; - Release: typeof Release; - ReleaseAction: typeof ReleaseAction; - Role: typeof Role; - ScheduledAction: typeof ScheduledAction; - Snapshot: typeof Snapshot; - Space: typeof Space; - SpaceMember: typeof SpaceMember; - SpaceMembership: typeof SpaceMembership; - Tag: typeof Tag; - Task: typeof Task; - Team: typeof Team; - TeamMembership: typeof TeamMembership; - TeamSpaceMembership: typeof TeamSpaceMembership; - UIConfig: typeof UIConfig; - Upload: typeof Upload; - Usage: typeof Usage; - User: typeof User; - UserUIConfig: typeof UserUIConfig; - Webhook: typeof Webhook; - WorkflowDefinition: typeof WorkflowDefinition; - Workflow: typeof Workflow; - WorkflowsChangelog: typeof WorkflowsChangelog; -}; -export default _default; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/locale.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/locale.d.ts deleted file mode 100644 index e3de9434..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/locale.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Locale', 'get'>; -export declare const getMany: RestEndpoint<'Locale', 'getMany'>; -export declare const create: RestEndpoint<'Locale', 'create'>; -export declare const update: RestEndpoint<'Locale', 'update'>; -export declare const del: RestEndpoint<'Locale', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-invitation.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-invitation.d.ts deleted file mode 100644 index 0f6d2dec..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-invitation.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const create: RestEndpoint<'OrganizationInvitation', 'create'>; -export declare const get: RestEndpoint<'OrganizationInvitation', 'get'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-membership.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-membership.d.ts deleted file mode 100644 index 30fca696..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization-membership.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'OrganizationMembership', 'get'>; -export declare const getMany: RestEndpoint<'OrganizationMembership', 'getMany'>; -export declare const update: RestEndpoint<'OrganizationMembership', 'update'>; -export declare const del: RestEndpoint<'OrganizationMembership', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization.d.ts deleted file mode 100644 index 52636a7b..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/organization.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getMany: RestEndpoint<'Organization', 'getMany'>; -export declare const get: RestEndpoint<'Organization', 'get'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/personal-access-token.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/personal-access-token.d.ts deleted file mode 100644 index 8eae2754..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/personal-access-token.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { RestEndpoint } from '../types'; -/** - * @deprecated use `access-token.get` instead `personal-access-token.get` - */ -export declare const get: RestEndpoint<'PersonalAccessToken', 'get'>; -/** - * @deprecated use `access-token.getMany` instead `personal-access-token.getMany` - */ -export declare const getMany: RestEndpoint<'PersonalAccessToken', 'getMany'>; -/** - * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create` - */ -export declare const create: RestEndpoint<'PersonalAccessToken', 'create'>; -/** - * @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke` - */ -export declare const revoke: RestEndpoint<'PersonalAccessToken', 'revoke'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/preview-api-key.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/preview-api-key.d.ts deleted file mode 100644 index 3df3e5a0..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/preview-api-key.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'PreviewApiKey', 'get'>; -export declare const getMany: RestEndpoint<'PreviewApiKey', 'getMany'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/raw.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/raw.d.ts deleted file mode 100644 index ae62450e..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/raw.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AxiosInstance, RawAxiosRequestConfig } from 'axios'; -export declare function get(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig): Promise; -export declare function patch(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; -export declare function post(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; -export declare function put(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; -export declare function del(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig): Promise; -export declare function http(http: AxiosInstance, url: string, config?: Omit): Promise; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release-action.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release-action.d.ts deleted file mode 100644 index dcc703df..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release-action.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'ReleaseAction', 'get'>; -export declare const getMany: RestEndpoint<'ReleaseAction', 'getMany'>; -export declare const queryForRelease: RestEndpoint<'ReleaseAction', 'queryForRelease'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release.d.ts deleted file mode 100644 index 4cbf20b4..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/release.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Release', 'get'>; -export declare const query: RestEndpoint<'Release', 'query'>; -export declare const create: RestEndpoint<'Release', 'create'>; -export declare const update: RestEndpoint<'Release', 'update'>; -export declare const del: RestEndpoint<'Release', 'delete'>; -export declare const publish: RestEndpoint<'Release', 'publish'>; -export declare const unpublish: RestEndpoint<'Release', 'unpublish'>; -export declare const validate: RestEndpoint<'Release', 'validate'>; -export declare const archive: RestEndpoint<'Release', 'archive'>; -export declare const unarchive: RestEndpoint<'Release', 'unarchive'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/role.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/role.d.ts deleted file mode 100644 index 4056995a..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/role.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { AxiosInstance } from 'contentful-sdk-core'; -import { GetSpaceParams } from '../../../common-types'; -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Role', 'get'>; -export declare const getMany: RestEndpoint<'Role', 'getMany'>; -export declare const getManyForOrganization: RestEndpoint<'Role', 'getManyForOrganization'>; -export declare const create: RestEndpoint<'Role', 'create'>; -export declare const createWithId: RestEndpoint<'Role', 'createWithId'>; -export declare const update: RestEndpoint<'Role', 'update'>; -export declare const del: (http: AxiosInstance, params: GetSpaceParams & { - roleId: string; -}) => Promise; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/scheduled-action.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/scheduled-action.d.ts deleted file mode 100644 index 3001e852..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/scheduled-action.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'ScheduledAction', 'get'>; -export declare const getMany: RestEndpoint<'ScheduledAction', 'getMany'>; -export declare const create: RestEndpoint<'ScheduledAction', 'create'>; -export declare const del: RestEndpoint<'ScheduledAction', 'delete'>; -export declare const update: RestEndpoint<'ScheduledAction', 'update'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/snapshot.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/snapshot.d.ts deleted file mode 100644 index b8b4000e..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/snapshot.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getManyForEntry: RestEndpoint<'Snapshot', 'getManyForEntry'>; -export declare const getForEntry: RestEndpoint<'Snapshot', 'getForEntry'>; -export declare const getManyForContentType: RestEndpoint<'Snapshot', 'getManyForContentType'>; -export declare const getForContentType: RestEndpoint<'Snapshot', 'getForContentType'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-member.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-member.d.ts deleted file mode 100644 index 19ce765e..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-member.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'SpaceMember', 'get'>; -export declare const getMany: RestEndpoint<'SpaceMember', 'getMany'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-membership.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-membership.d.ts deleted file mode 100644 index 1e9d4dac..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space-membership.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'SpaceMembership', 'get'>; -export declare const getMany: RestEndpoint<'SpaceMembership', 'getMany'>; -export declare const getForOrganization: RestEndpoint<'SpaceMembership', 'getForOrganization'>; -export declare const getManyForOrganization: RestEndpoint<'SpaceMembership', 'getManyForOrganization'>; -export declare const create: RestEndpoint<'SpaceMembership', 'create'>; -export declare const createWithId: RestEndpoint<'SpaceMembership', 'createWithId'>; -export declare const update: RestEndpoint<'SpaceMembership', 'update'>; -export declare const del: RestEndpoint<'SpaceMembership', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space.d.ts deleted file mode 100644 index f214f4db..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/space.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Space', 'get'>; -export declare const getMany: RestEndpoint<'Space', 'getMany'>; -export declare const getManyForOrganization: RestEndpoint<'Space', 'getManyForOrganization'>; -export declare const create: RestEndpoint<'Space', 'create'>; -export declare const update: RestEndpoint<'Space', 'update'>; -export declare const del: RestEndpoint<'Space', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/tag.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/tag.d.ts deleted file mode 100644 index e8ff0172..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/tag.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Tag', 'get'>; -export declare const getMany: RestEndpoint<'Tag', 'getMany'>; -export declare const createWithId: RestEndpoint<'Tag', 'createWithId'>; -export declare const update: RestEndpoint<'Tag', 'update'>; -export declare const del: RestEndpoint<'Tag', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/task.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/task.d.ts deleted file mode 100644 index 006487d5..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/task.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Task', 'get'>; -export declare const getMany: RestEndpoint<'Task', 'getMany'>; -/** - * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons. - */ -export declare const getAll: RestEndpoint<'Task', 'getAll'>; -export declare const create: RestEndpoint<'Task', 'create'>; -export declare const update: RestEndpoint<'Task', 'update'>; -export declare const del: RestEndpoint<'Task', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-membership.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-membership.d.ts deleted file mode 100644 index 23bd4369..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-membership.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { AxiosInstance } from 'contentful-sdk-core'; -import { CollectionProp, GetOrganizationParams, QueryParams } from '../../../common-types'; -import { TeamMembershipProps } from '../../../entities/team-membership'; -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'TeamMembership', 'get'>; -export declare const getManyForOrganization: (http: AxiosInstance, params: GetOrganizationParams & QueryParams) => Promise>; -export declare const getManyForTeam: RestEndpoint<'TeamMembership', 'getManyForTeam'>; -export declare const create: RestEndpoint<'TeamMembership', 'create'>; -export declare const update: RestEndpoint<'TeamMembership', 'update'>; -export declare const del: RestEndpoint<'TeamMembership', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-space-membership.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-space-membership.d.ts deleted file mode 100644 index 4b26e622..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team-space-membership.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'TeamSpaceMembership', 'get'>; -export declare const getMany: RestEndpoint<'TeamSpaceMembership', 'getMany'>; -export declare const getForOrganization: RestEndpoint<'TeamSpaceMembership', 'getForOrganization'>; -export declare const getManyForOrganization: RestEndpoint<'TeamSpaceMembership', 'getManyForOrganization'>; -export declare const create: RestEndpoint<'TeamSpaceMembership', 'create'>; -export declare const update: RestEndpoint<'TeamSpaceMembership', 'update'>; -export declare const del: RestEndpoint<'TeamSpaceMembership', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team.d.ts deleted file mode 100644 index 95628390..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/team.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Team', 'get'>; -export declare const getMany: RestEndpoint<'Team', 'getMany'>; -export declare const getManyForSpace: RestEndpoint<'Team', 'getManyForSpace'>; -export declare const create: RestEndpoint<'Team', 'create'>; -export declare const update: RestEndpoint<'Team', 'update'>; -export declare const del: RestEndpoint<'Team', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/upload.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/upload.d.ts deleted file mode 100644 index 776684d2..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/upload.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const create: RestEndpoint<'Upload', 'create'>; -export declare const del: RestEndpoint<'Upload', 'delete'>; -export declare const get: RestEndpoint<'Upload', 'get'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/usage.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/usage.d.ts deleted file mode 100644 index 47e6e24c..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/usage.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getManyForSpace: RestEndpoint<'Usage', 'getManyForSpace'>; -export declare const getManyForOrganization: RestEndpoint<'Usage', 'getManyForOrganization'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/user.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/user.d.ts deleted file mode 100644 index 84702cd5..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/user.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getForSpace: RestEndpoint<'User', 'getForSpace'>; -export declare const getCurrent: RestEndpoint<'User', 'getCurrent'>; -export declare const getManyForSpace: RestEndpoint<'User', 'getManyForSpace'>; -export declare const getForOrganization: RestEndpoint<'User', 'getForOrganization'>; -export declare const getManyForOrganization: RestEndpoint<'User', 'getManyForOrganization'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/utils.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/utils.d.ts deleted file mode 100644 index 59f3458d..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/utils.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { QueryOptions } from '../../../common-types'; -export declare function normalizeSelect(query?: QueryOptions): QueryOptions | undefined; -export declare function normalizeSpaceId(query?: QueryOptions): QueryOptions | undefined; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/webhook.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/webhook.d.ts deleted file mode 100644 index 93d03b3b..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/webhook.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { RawAxiosRequestHeaders } from 'axios'; -import type { AxiosInstance } from 'contentful-sdk-core'; -import { GetWebhookParams } from '../../../common-types'; -import { CreateWebhooksProps, WebhookProps } from '../../../entities/webhook'; -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'Webhook', 'get'>; -export declare const getManyCallDetails: RestEndpoint<'Webhook', 'getManyCallDetails'>; -export declare const getCallDetails: RestEndpoint<'Webhook', 'getCallDetails'>; -export declare const getHealthStatus: RestEndpoint<'Webhook', 'getHealthStatus'>; -export declare const getMany: RestEndpoint<'Webhook', 'getMany'>; -export declare const getSigningSecret: RestEndpoint<'Webhook', 'getSigningSecret'>; -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export declare const getRetryPolicy: RestEndpoint<'Webhook', 'getRetryPolicy'>; -export declare const create: RestEndpoint<'Webhook', 'create'>; -export declare const createWithId: (http: AxiosInstance, params: GetWebhookParams, rawData: CreateWebhooksProps, headers?: RawAxiosRequestHeaders) => Promise; -export declare const update: RestEndpoint<'Webhook', 'update'>; -export declare const upsertSigningSecret: RestEndpoint<'Webhook', 'upsertSigningSecret'>; -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export declare const upsertRetryPolicy: RestEndpoint<'Webhook', 'upsertRetryPolicy'>; -export declare const del: RestEndpoint<'Webhook', 'delete'>; -export declare const deleteSigningSecret: RestEndpoint<'Webhook', 'deleteSigningSecret'>; -/** - * @deprecated The EAP for this feature has ended. This method will be removed in the next major version. - */ -export declare const deleteRetryPolicy: RestEndpoint<'Webhook', 'deleteRetryPolicy'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow-definition.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow-definition.d.ts deleted file mode 100644 index 831097d7..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow-definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const get: RestEndpoint<'WorkflowDefinition', 'get'>; -export declare const getMany: RestEndpoint<'WorkflowDefinition', 'getMany'>; -export declare const create: RestEndpoint<'WorkflowDefinition', 'create'>; -export declare const update: RestEndpoint<'WorkflowDefinition', 'update'>; -export declare const del: RestEndpoint<'WorkflowDefinition', 'delete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow.d.ts deleted file mode 100644 index 17fbd55d..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflow.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getMany: RestEndpoint<'Workflow', 'getMany'>; -export declare const create: RestEndpoint<'Workflow', 'create'>; -export declare const update: RestEndpoint<'Workflow', 'update'>; -export declare const del: RestEndpoint<'Workflow', 'delete'>; -export declare const complete: RestEndpoint<'Workflow', 'complete'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflows-changelog.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflows-changelog.d.ts deleted file mode 100644 index 67c61f12..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/endpoints/workflows-changelog.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RestEndpoint } from '../types'; -export declare const getMany: RestEndpoint<'WorkflowsChangelog', 'getMany'>; diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/rest-adapter.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/rest-adapter.d.ts deleted file mode 100644 index 6acee2d1..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/rest-adapter.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { CreateHttpClientParams } from 'contentful-sdk-core'; -import { Adapter, MakeRequestOptions } from '../../common-types'; -export type RestAdapterParams = CreateHttpClientParams & { - /** - * Contentful CMA Access Token - */ - accessToken: CreateHttpClientParams['accessToken']; - /** - * API host - * @default api.contentful.com - */ - host?: string; - /** - * direct file upload host - * @default upload.contentful.com - */ - hostUpload?: string; - userAgent?: string | undefined; -}; -export declare class RestAdapter implements Adapter { - private readonly params; - private readonly axiosInstance; - constructor(params: RestAdapterParams); - makeRequest({ entityType, action: actionInput, params, payload, headers, userAgent, }: MakeRequestOptions): Promise; -} diff --git a/node_modules/contentful-management/dist/typings/adapters/REST/types.d.ts b/node_modules/contentful-management/dist/typings/adapters/REST/types.d.ts deleted file mode 100644 index 2b3011c6..00000000 --- a/node_modules/contentful-management/dist/typings/adapters/REST/types.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AxiosInstance } from 'contentful-sdk-core'; -import { MRActions, MROpts, MRReturn } from '../../common-types'; -/** - * @private - */ -export type RestEndpoint ? MROpts['params'] : undefined, Payload = 'payload' extends keyof MROpts ? MROpts['payload'] : undefined, Headers = 'headers' extends keyof MROpts ? MROpts['headers'] : undefined, Return = MRReturn> = Params extends undefined ? (http: AxiosInstance) => Return : Payload extends undefined ? (http: AxiosInstance, params: Params) => Return : Headers extends undefined ? (http: AxiosInstance, params: Params, payload: Payload) => Return : (http: AxiosInstance, params: Params, payload: Payload, headers: Headers) => Return; diff --git a/node_modules/contentful-management/dist/typings/common-types.d.ts b/node_modules/contentful-management/dist/typings/common-types.d.ts deleted file mode 100644 index e9e3c96e..00000000 --- a/node_modules/contentful-management/dist/typings/common-types.d.ts +++ /dev/null @@ -1,2242 +0,0 @@ -/// -import { RawAxiosRequestConfig, RawAxiosRequestHeaders } from 'axios'; -import { OpPatch } from 'json-patch'; -import { Stream } from 'stream'; -import { AppActionProps, CreateAppActionProps } from './entities/app-action'; -import { AppActionCallProps, AppActionCallResponse, CreateAppActionCallProps } from './entities/app-action-call'; -import { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle'; -import { ApiKeyProps, CreateApiKeyProps } from './entities/api-key'; -import { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition'; -import { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation'; -import { AssetFileProp, AssetProcessingForLocale, AssetProps, CreateAssetProps } from './entities/asset'; -import { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'; -import { CreateCommentParams, CreateCommentProps, DeleteCommentParams, CommentProps, UpdateCommentParams, UpdateCommentProps, GetManyCommentsParams, RichTextBodyFormat, RichTextCommentProps, PlainTextBodyFormat, RichTextCommentBodyPayload, GetCommentParentEntityParams } from './entities/comment'; -import { EditorInterfaceProps } from './entities/editor-interface'; -import { CreateEntryProps, EntryProps, EntryReferenceProps } from './entities/entry'; -import { CreateEnvironmentProps, EnvironmentProps } from './entities/environment'; -import { CreateEnvironmentAliasProps, EnvironmentAliasProps } from './entities/environment-alias'; -import { CreateLocaleProps, LocaleProps } from './entities/locale'; -import { AppInstallationsForOrganizationProps } from './entities/app-definition'; -import { OrganizationProp } from './entities/organization'; -import { CreateOrganizationInvitationProps, OrganizationInvitationProps } from './entities/organization-invitation'; -import { OrganizationMembershipProps } from './entities/organization-membership'; -import { CreatePersonalAccessTokenProps, PersonalAccessTokenProp } from './entities/personal-access-token'; -import { AccessTokenProp, CreatePersonalAccessTokenProps as CreatePATProps } from './entities/access-token'; -import { PreviewApiKeyProps } from './entities/preview-api-key'; -import { CreateRoleProps, RoleProps } from './entities/role'; -import { ScheduledActionProps } from './entities/scheduled-action'; -import { SnapshotProps } from './entities/snapshot'; -import { SpaceProps } from './entities/space'; -import { SpaceMemberProps } from './entities/space-member'; -import { CreateSpaceMembershipProps, SpaceMembershipProps } from './entities/space-membership'; -import { CreateTagProps, DeleteTagParams, TagProps, UpdateTagProps } from './entities/tag'; -import { CreateTeamProps, TeamProps } from './entities/team'; -import { CreateTeamMembershipProps, TeamMembershipProps } from './entities/team-membership'; -import { CreateTeamSpaceMembershipProps, TeamSpaceMembershipProps } from './entities/team-space-membership'; -import { CreateExtensionProps, ExtensionProps } from './entities/extension'; -import { UsageProps } from './entities/usage'; -import { UserProps } from './entities/user'; -import { CreateWebhooksProps, UpsertWebhookSigningSecretPayload, WebhookCallDetailsProps, WebhookCallOverviewProps, WebhookHealthProps, WebhookProps, WebhookRetryPolicyPayload, WebhookRetryPolicyProps, WebhookSigningSecretProps } from './entities/webhook'; -import { AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'; -import { AppUploadProps } from './entities/app-upload'; -import { AppDetailsProps, CreateAppDetailsProps } from './entities/app-details'; -import { AppSignedRequestProps, CreateAppSignedRequestProps } from './entities/app-signed-request'; -import { AppSigningSecretProps, CreateAppSigningSecretProps } from './entities/app-signing-secret'; -import { BulkActionProps, BulkActionPublishPayload, BulkActionUnpublishPayload, BulkActionValidatePayload } from './entities/bulk-action'; -import { ReleasePayload, ReleaseProps, ReleaseQueryOptions, ReleaseValidatePayload } from './entities/release'; -import { ReleaseAction, ReleaseActionProps, ReleaseActionQueryOptions } from './entities/release-action'; -import { CreateTaskParams, CreateTaskProps, DeleteTaskParams, TaskProps, UpdateTaskParams, UpdateTaskProps } from './entities/task'; -import { CreateWorkflowDefinitionParams, CreateWorkflowDefinitionProps, DeleteWorkflowDefinitionParams, WorkflowDefinitionProps, WorkflowDefinitionQueryOptions } from './entities/workflow-definition'; -import { CompleteWorkflowParams, CreateWorkflowParams, CreateWorkflowProps, DeleteWorkflowParams, WorkflowProps, WorkflowQueryOptions } from './entities/workflow'; -import { WorkflowsChangelogEntryProps, WorkflowsChangelogQueryOptions } from './entities/workflows-changelog-entry'; -import { UIConfigProps } from './entities/ui-config'; -import { UserUIConfigProps } from './entities/user-ui-config'; -import { CreateEnvironmentTemplateProps, EnvironmentTemplateProps } from './entities/environment-template'; -import { CreateEnvironmentTemplateInstallationProps, EnvironmentTemplateInstallationProps, ValidateEnvironmentTemplateInstallationProps, EnvironmentTemplateValidationProps } from './entities/environment-template-installation'; -import { FunctionProps } from './entities/function'; -import { AppEventSubscriptionProps, CreateAppEventSubscriptionProps } from './entities/app-event-subscription'; -import { AppKeyProps, CreateAppKeyProps } from './entities/app-key'; -import { AppAccessTokenProps, CreateAppAccessTokenProps } from './entities/app-access-token'; -export interface DefaultElements { - toPlainObject(): TPlainObject; -} -/** - * Link is a reference object to another entity that can be resolved using tools such as contentful-resolve - */ -export interface Link { - sys: { - type: 'Link'; - linkType: T; - id: string; - }; -} -/** - * ResourceLink is a reference object to another entity outside of the current space/environment - */ -export interface ResourceLink { - sys: { - type: 'ResourceLink'; - linkType: T; - urn: string; - }; -} -export interface VersionedLink { - sys: { - type: 'Link'; - linkType: T; - id: string; - version: number; - }; -} -export interface BaseCollection { - sys: { - type: 'Array'; - }; - items: T[]; -} -/** String will be in ISO8601 datetime format e.g. 2013-06-26T13:57:24Z */ -export type ISO8601Timestamp = string; -export interface PaginationQueryOptions { - skip?: number; - limit?: number; - order?: string; -} -export interface QueryOptions extends PaginationQueryOptions { - content_type?: string; - include?: number; - select?: string; - links_to_entry?: string; - [key: string]: any; -} -export interface SpaceQueryOptions extends PaginationQueryOptions { - spaceId?: string; -} -export interface BasicMetaSysProps { - type: string; - id: string; - version: number; - createdBy?: SysLink; - createdAt: string; - updatedBy?: SysLink; - updatedAt: string; -} -export interface MetaSysProps extends BasicMetaSysProps { - space?: SysLink; - status?: SysLink; - publishedVersion?: number; - archivedVersion?: number; - archivedBy?: SysLink; - archivedAt?: string; - deletedVersion?: number; - deletedBy?: SysLink; - deletedAt?: string; -} -export interface EntityMetaSysProps extends MetaSysProps { - space: SysLink; - contentType: SysLink; - environment: SysLink; - publishedBy?: Link<'User'> | Link<'AppDefinition'>; - publishedAt?: string; - firstPublishedAt?: string; - publishedCounter?: number; - locale?: string; -} -export interface EntryMetaSysProps extends EntityMetaSysProps { - automationTags: Link<'Tag'>[]; -} -export interface MetaLinkProps { - type: string; - linkType: string; - id: string; -} -export interface MetadataProps { - tags: Link<'Tag'>[]; -} -export interface SysLink { - sys: MetaLinkProps; -} -export interface CollectionProp { - sys: { - type: 'Array'; - }; - total: number; - skip: number; - limit: number; - items: TObj[]; -} -export interface CursorPaginatedCollectionProp extends Omit, 'total' | 'skip'> { - pages?: { - next?: string; - prev?: string; - }; -} -export interface Collection extends CollectionProp, DefaultElements> { -} -export interface CursorPaginatedCollection extends CursorPaginatedCollectionProp, DefaultElements> { -} -export interface QueryOptions extends BasicQueryOptions { - content_type?: string; - include?: number; - select?: string; -} -export interface BasicQueryOptions { - skip?: number; - limit?: number; - [key: string]: any; -} -export interface BasicCursorPaginationOptions extends Omit { - pageNext?: string; - pagePrev?: string; -} -export type KeyValueMap = Record; -/** - * @private - */ -type MRInternal = { - (opts: MROpts<'Http', 'get', UA>): MRReturn<'Http', 'get'>; - (opts: MROpts<'Http', 'patch', UA>): MRReturn<'Http', 'patch'>; - (opts: MROpts<'Http', 'post', UA>): MRReturn<'Http', 'post'>; - (opts: MROpts<'Http', 'put', UA>): MRReturn<'Http', 'put'>; - (opts: MROpts<'Http', 'delete', UA>): MRReturn<'Http', 'delete'>; - (opts: MROpts<'Http', 'request', UA>): MRReturn<'Http', 'request'>; - (opts: MROpts<'AppAction', 'get', UA>): MRReturn<'AppAction', 'get'>; - (opts: MROpts<'AppAction', 'getMany', UA>): MRReturn<'AppAction', 'getMany'>; - (opts: MROpts<'AppAction', 'delete', UA>): MRReturn<'AppAction', 'delete'>; - (opts: MROpts<'AppAction', 'create', UA>): MRReturn<'AppAction', 'create'>; - (opts: MROpts<'AppAction', 'update', UA>): MRReturn<'AppAction', 'update'>; - (opts: MROpts<'AppActionCall', 'create', UA>): MRReturn<'AppActionCall', 'create'>; - (opts: MROpts<'AppActionCall', 'createWithResponse', UA>): MRReturn<'AppActionCall', 'createWithResponse'>; - (opts: MROpts<'AppActionCall', 'getCallDetails', UA>): MRReturn<'AppActionCall', 'getCallDetails'>; - (opts: MROpts<'AppBundle', 'get', UA>): MRReturn<'AppBundle', 'get'>; - (opts: MROpts<'AppBundle', 'getMany', UA>): MRReturn<'AppBundle', 'getMany'>; - (opts: MROpts<'AppBundle', 'delete', UA>): MRReturn<'AppBundle', 'delete'>; - (opts: MROpts<'AppBundle', 'create', UA>): MRReturn<'AppBundle', 'create'>; - (opts: MROpts<'ApiKey', 'get', UA>): MRReturn<'ApiKey', 'get'>; - (opts: MROpts<'ApiKey', 'getMany', UA>): MRReturn<'ApiKey', 'getMany'>; - (opts: MROpts<'ApiKey', 'create', UA>): MRReturn<'ApiKey', 'create'>; - (opts: MROpts<'ApiKey', 'createWithId', UA>): MRReturn<'ApiKey', 'createWithId'>; - (opts: MROpts<'ApiKey', 'update', UA>): MRReturn<'ApiKey', 'update'>; - (opts: MROpts<'ApiKey', 'delete', UA>): MRReturn<'ApiKey', 'delete'>; - (opts: MROpts<'AppDefinition', 'get', UA>): MRReturn<'AppDefinition', 'get'>; - (opts: MROpts<'AppDefinition', 'getMany', UA>): MRReturn<'AppDefinition', 'getMany'>; - (opts: MROpts<'AppDefinition', 'create', UA>): MRReturn<'AppDefinition', 'create'>; - (opts: MROpts<'AppDefinition', 'update', UA>): MRReturn<'AppDefinition', 'update'>; - (opts: MROpts<'AppDefinition', 'delete', UA>): MRReturn<'AppDefinition', 'delete'>; - (opts: MROpts<'AppDefinition', 'getInstallationsForOrg', UA>): MRReturn<'AppDefinition', 'getInstallationsForOrg'>; - (opts: MROpts<'AppInstallation', 'get', UA>): MRReturn<'AppInstallation', 'get'>; - (opts: MROpts<'AppInstallation', 'getMany', UA>): MRReturn<'AppInstallation', 'getMany'>; - (opts: MROpts<'AppInstallation', 'upsert', UA>): MRReturn<'AppInstallation', 'upsert'>; - (opts: MROpts<'AppInstallation', 'delete', UA>): MRReturn<'AppInstallation', 'delete'>; - (opts: MROpts<'AppInstallation', 'getForOrganization', UA>): MRReturn<'AppInstallation', 'getForOrganization'>; - (opts: MROpts<'Asset', 'getMany', UA>): MRReturn<'Asset', 'getMany'>; - (opts: MROpts<'Asset', 'getPublished', UA>): MRReturn<'Asset', 'getPublished'>; - (opts: MROpts<'Asset', 'get', UA>): MRReturn<'Asset', 'get'>; - (opts: MROpts<'Asset', 'update', UA>): MRReturn<'Asset', 'update'>; - (opts: MROpts<'Asset', 'delete', UA>): MRReturn<'Asset', 'delete'>; - (opts: MROpts<'Asset', 'publish', UA>): MRReturn<'Asset', 'publish'>; - (opts: MROpts<'Asset', 'unpublish', UA>): MRReturn<'Asset', 'unpublish'>; - (opts: MROpts<'Asset', 'archive', UA>): MRReturn<'Asset', 'archive'>; - (opts: MROpts<'Asset', 'unarchive', UA>): MRReturn<'Asset', 'unarchive'>; - (opts: MROpts<'Asset', 'create', UA>): MRReturn<'Asset', 'create'>; - (opts: MROpts<'Asset', 'createWithId', UA>): MRReturn<'Asset', 'createWithId'>; - (opts: MROpts<'Asset', 'createFromFiles', UA>): MRReturn<'Asset', 'createFromFiles'>; - (opts: MROpts<'Asset', 'processForAllLocales', UA>): MRReturn<'Asset', 'processForAllLocales'>; - (opts: MROpts<'Asset', 'processForLocale', UA>): MRReturn<'Asset', 'processForLocale'>; - (opts: MROpts<'AppUpload', 'get', UA>): MRReturn<'AppUpload', 'get'>; - (opts: MROpts<'AppUpload', 'delete', UA>): MRReturn<'AppUpload', 'delete'>; - (opts: MROpts<'AppUpload', 'create', UA>): MRReturn<'AppUpload', 'create'>; - (opts: MROpts<'AppDetails', 'upsert', UA>): MRReturn<'AppDetails', 'upsert'>; - (opts: MROpts<'AppDetails', 'get', UA>): MRReturn<'AppDetails', 'get'>; - (opts: MROpts<'AppDetails', 'delete', UA>): MRReturn<'AppDetails', 'delete'>; - (opts: MROpts<'AppSignedRequest', 'create', UA>): MRReturn<'AppSignedRequest', 'create'>; - (opts: MROpts<'AppSigningSecret', 'upsert', UA>): MRReturn<'AppSigningSecret', 'upsert'>; - (opts: MROpts<'AppSigningSecret', 'get', UA>): MRReturn<'AppSigningSecret', 'get'>; - (opts: MROpts<'AppSigningSecret', 'delete', UA>): MRReturn<'AppSigningSecret', 'delete'>; - (opts: MROpts<'AppEventSubscription', 'upsert', UA>): MRReturn<'AppEventSubscription', 'upsert'>; - (opts: MROpts<'AppEventSubscription', 'get', UA>): MRReturn<'AppEventSubscription', 'get'>; - (opts: MROpts<'AppEventSubscription', 'delete', UA>): MRReturn<'AppEventSubscription', 'delete'>; - (opts: MROpts<'AppKey', 'get', UA>): MRReturn<'AppKey', 'get'>; - (opts: MROpts<'AppKey', 'getMany', UA>): MRReturn<'AppKey', 'getMany'>; - (opts: MROpts<'AppKey', 'create', UA>): MRReturn<'AppKey', 'create'>; - (opts: MROpts<'AppKey', 'delete', UA>): MRReturn<'AppKey', 'delete'>; - (opts: MROpts<'AppAccessToken', 'create', UA>): MRReturn<'AppAccessToken', 'create'>; - (opts: MROpts<'AssetKey', 'create', UA>): MRReturn<'AssetKey', 'create'>; - (opts: MROpts<'BulkAction', 'get', UA>): MRReturn<'BulkAction', 'get'>; - (opts: MROpts<'BulkAction', 'publish', UA>): MRReturn<'BulkAction', 'publish'>; - (opts: MROpts<'BulkAction', 'unpublish', UA>): MRReturn<'BulkAction', 'unpublish'>; - (opts: MROpts<'BulkAction', 'validate', UA>): MRReturn<'BulkAction', 'validate'>; - (opts: MROpts<'Comment', 'get', UA>): MRReturn<'Comment', 'get'>; - (opts: MROpts<'Comment', 'getMany', UA>): MRReturn<'Comment', 'getMany'>; - (opts: MROpts<'Comment', 'getAll', UA>): MRReturn<'Comment', 'getAll'>; - (opts: MROpts<'Comment', 'create', UA>): MRReturn<'Comment', 'create'>; - (opts: MROpts<'Comment', 'update', UA>): MRReturn<'Comment', 'update'>; - (opts: MROpts<'Comment', 'delete', UA>): MRReturn<'Comment', 'delete'>; - (opts: MROpts<'ContentType', 'get', UA>): MRReturn<'ContentType', 'get'>; - (opts: MROpts<'ContentType', 'getMany', UA>): MRReturn<'ContentType', 'getMany'>; - (opts: MROpts<'ContentType', 'update', UA>): MRReturn<'ContentType', 'update'>; - (opts: MROpts<'ContentType', 'create', UA>): MRReturn<'ContentType', 'create'>; - (opts: MROpts<'ContentType', 'createWithId', UA>): MRReturn<'ContentType', 'createWithId'>; - (opts: MROpts<'ContentType', 'delete', UA>): MRReturn<'ContentType', 'delete'>; - (opts: MROpts<'ContentType', 'publish', UA>): MRReturn<'ContentType', 'publish'>; - (opts: MROpts<'ContentType', 'unpublish', UA>): MRReturn<'ContentType', 'unpublish'>; - (opts: MROpts<'EditorInterface', 'get', UA>): MRReturn<'EditorInterface', 'get'>; - (opts: MROpts<'EditorInterface', 'getMany', UA>): MRReturn<'EditorInterface', 'getMany'>; - (opts: MROpts<'EditorInterface', 'update', UA>): MRReturn<'EditorInterface', 'update'>; - (opts: MROpts<'Environment', 'get', UA>): MRReturn<'Environment', 'get'>; - (opts: MROpts<'Environment', 'getMany', UA>): MRReturn<'Environment', 'getMany'>; - (opts: MROpts<'Environment', 'create', UA>): MRReturn<'Environment', 'create'>; - (opts: MROpts<'Environment', 'createWithId', UA>): MRReturn<'Environment', 'createWithId'>; - (opts: MROpts<'Environment', 'update', UA>): MRReturn<'Environment', 'update'>; - (opts: MROpts<'Environment', 'delete', UA>): MRReturn<'Environment', 'delete'>; - (opts: MROpts<'EnvironmentAlias', 'get', UA>): MRReturn<'EnvironmentAlias', 'get'>; - (opts: MROpts<'EnvironmentAlias', 'getMany', UA>): MRReturn<'EnvironmentAlias', 'getMany'>; - (opts: MROpts<'EnvironmentAlias', 'createWithId', UA>): MRReturn<'EnvironmentAlias', 'createWithId'>; - (opts: MROpts<'EnvironmentAlias', 'update', UA>): MRReturn<'EnvironmentAlias', 'update'>; - (opts: MROpts<'EnvironmentAlias', 'delete', UA>): MRReturn<'EnvironmentAlias', 'delete'>; - (opts: MROpts<'EnvironmentTemplate', 'get', UA>): MRReturn<'EnvironmentTemplate', 'get'>; - (opts: MROpts<'EnvironmentTemplate', 'getMany', UA>): MRReturn<'EnvironmentTemplate', 'getMany'>; - (opts: MROpts<'EnvironmentTemplate', 'create', UA>): MRReturn<'EnvironmentTemplate', 'create'>; - (opts: MROpts<'EnvironmentTemplate', 'update', UA>): MRReturn<'EnvironmentTemplate', 'update'>; - (opts: MROpts<'EnvironmentTemplate', 'delete', UA>): MRReturn<'EnvironmentTemplate', 'delete'>; - (opts: MROpts<'EnvironmentTemplate', 'versions', UA>): MRReturn<'EnvironmentTemplate', 'versions'>; - (opts: MROpts<'EnvironmentTemplate', 'versionUpdate', UA>): MRReturn<'EnvironmentTemplate', 'versionUpdate'>; - (opts: MROpts<'EnvironmentTemplate', 'validate', UA>): MRReturn<'EnvironmentTemplate', 'validate'>; - (opts: MROpts<'EnvironmentTemplate', 'install', UA>): MRReturn<'EnvironmentTemplate', 'install'>; - (opts: MROpts<'EnvironmentTemplate', 'disconnect', UA>): MRReturn<'EnvironmentTemplate', 'disconnect'>; - (opts: MROpts<'EnvironmentTemplateInstallation', 'getMany', UA>): MRReturn<'EnvironmentTemplateInstallation', 'getMany'>; - (opts: MROpts<'EnvironmentTemplateInstallation', 'getForEnvironment', UA>): MRReturn<'EnvironmentTemplateInstallation', 'getForEnvironment'>; - (opts: MROpts<'Entry', 'getMany', UA>): MRReturn<'Entry', 'getMany'>; - (opts: MROpts<'Entry', 'getPublished', UA>): MRReturn<'Entry', 'getPublished'>; - (opts: MROpts<'Entry', 'get', UA>): MRReturn<'Entry', 'get'>; - (opts: MROpts<'Entry', 'patch', UA>): MRReturn<'Entry', 'patch'>; - (opts: MROpts<'Entry', 'update', UA>): MRReturn<'Entry', 'update'>; - (opts: MROpts<'Entry', 'delete', UA>): MRReturn<'Entry', 'delete'>; - (opts: MROpts<'Entry', 'publish', UA>): MRReturn<'Entry', 'publish'>; - (opts: MROpts<'Entry', 'unpublish', UA>): MRReturn<'Entry', 'unpublish'>; - (opts: MROpts<'Entry', 'archive', UA>): MRReturn<'Entry', 'archive'>; - (opts: MROpts<'Entry', 'unarchive', UA>): MRReturn<'Entry', 'unarchive'>; - (opts: MROpts<'Entry', 'create', UA>): MRReturn<'Entry', 'create'>; - (opts: MROpts<'Entry', 'createWithId', UA>): MRReturn<'Entry', 'createWithId'>; - (opts: MROpts<'Entry', 'references', UA>): MRReturn<'Entry', 'references'>; - (opts: MROpts<'Extension', 'get', UA>): MRReturn<'Extension', 'get'>; - (opts: MROpts<'Extension', 'getMany', UA>): MRReturn<'Extension', 'getMany'>; - (opts: MROpts<'Extension', 'create', UA>): MRReturn<'Extension', 'create'>; - (opts: MROpts<'Extension', 'createWithId', UA>): MRReturn<'Extension', 'createWithId'>; - (opts: MROpts<'Extension', 'update', UA>): MRReturn<'Extension', 'update'>; - (opts: MROpts<'Extension', 'delete', UA>): MRReturn<'Extension', 'delete'>; - (opts: MROpts<'Locale', 'get', UA>): MRReturn<'Locale', 'get'>; - (opts: MROpts<'Locale', 'getMany', UA>): MRReturn<'Locale', 'getMany'>; - (opts: MROpts<'Locale', 'delete', UA>): MRReturn<'Locale', 'delete'>; - (opts: MROpts<'Locale', 'update', UA>): MRReturn<'Locale', 'update'>; - (opts: MROpts<'Locale', 'create', UA>): MRReturn<'Locale', 'create'>; - (opts: MROpts<'Organization', 'getMany', UA>): MRReturn<'Organization', 'getMany'>; - (opts: MROpts<'Organization', 'get', UA>): MRReturn<'Organization', 'get'>; - (opts: MROpts<'OrganizationInvitation', 'get', UA>): MRReturn<'OrganizationInvitation', 'get'>; - (opts: MROpts<'OrganizationInvitation', 'create', UA>): MRReturn<'OrganizationInvitation', 'create'>; - (opts: MROpts<'OrganizationMembership', 'get', UA>): MRReturn<'OrganizationMembership', 'get'>; - (opts: MROpts<'OrganizationMembership', 'getMany', UA>): MRReturn<'OrganizationMembership', 'getMany'>; - (opts: MROpts<'OrganizationMembership', 'update', UA>): MRReturn<'OrganizationMembership', 'update'>; - (opts: MROpts<'OrganizationMembership', 'delete', UA>): MRReturn<'OrganizationMembership', 'delete'>; - (opts: MROpts<'PersonalAccessToken', 'get', UA>): MRReturn<'PersonalAccessToken', 'get'>; - (opts: MROpts<'PersonalAccessToken', 'getMany', UA>): MRReturn<'PersonalAccessToken', 'getMany'>; - (opts: MROpts<'PersonalAccessToken', 'create', UA>): MRReturn<'PersonalAccessToken', 'create'>; - (opts: MROpts<'PersonalAccessToken', 'revoke', UA>): MRReturn<'PersonalAccessToken', 'revoke'>; - (opts: MROpts<'AccessToken', 'get', UA>): MRReturn<'AccessToken', 'get'>; - (opts: MROpts<'AccessToken', 'getMany', UA>): MRReturn<'AccessToken', 'getMany'>; - (opts: MROpts<'AccessToken', 'createPersonalAccessToken', UA>): MRReturn<'AccessToken', 'createPersonalAccessToken'>; - (opts: MROpts<'AccessToken', 'revoke', UA>): MRReturn<'AccessToken', 'revoke'>; - (opts: MROpts<'AccessToken', 'getManyForOrganization', UA>): MRReturn<'AccessToken', 'getManyForOrganization'>; - (opts: MROpts<'PreviewApiKey', 'get', UA>): MRReturn<'PreviewApiKey', 'get'>; - (opts: MROpts<'PreviewApiKey', 'getMany', UA>): MRReturn<'PreviewApiKey', 'getMany'>; - (opts: MROpts<'Release', 'archive', UA>): MRReturn<'Release', 'archive'>; - (opts: MROpts<'Release', 'get', UA>): MRReturn<'Release', 'get'>; - (opts: MROpts<'Release', 'query', UA>): MRReturn<'Release', 'query'>; - (opts: MROpts<'Release', 'create', UA>): MRReturn<'Release', 'create'>; - (opts: MROpts<'Release', 'update', UA>): MRReturn<'Release', 'update'>; - (opts: MROpts<'Release', 'delete', UA>): MRReturn<'Release', 'delete'>; - (opts: MROpts<'Release', 'publish', UA>): MRReturn<'Release', 'publish'>; - (opts: MROpts<'Release', 'unpublish', UA>): MRReturn<'Release', 'unpublish'>; - (opts: MROpts<'Release', 'unarchive', UA>): MRReturn<'Release', 'unarchive'>; - (opts: MROpts<'Release', 'validate', UA>): MRReturn<'Release', 'validate'>; - (opts: MROpts<'ReleaseAction', 'get', UA>): MRReturn<'ReleaseAction', 'get'>; - (opts: MROpts<'ReleaseAction', 'getMany', UA>): MRReturn<'ReleaseAction', 'getMany'>; - (opts: MROpts<'ReleaseAction', 'queryForRelease', UA>): MRReturn<'ReleaseAction', 'queryForRelease'>; - (opts: MROpts<'Role', 'get', UA>): MRReturn<'Role', 'get'>; - (opts: MROpts<'Role', 'getMany', UA>): MRReturn<'Role', 'getMany'>; - (opts: MROpts<'Role', 'getManyForOrganization', UA>): MRReturn<'Role', 'getManyForOrganization'>; - (opts: MROpts<'Role', 'create', UA>): MRReturn<'Role', 'create'>; - (opts: MROpts<'Role', 'createWithId', UA>): MRReturn<'Role', 'createWithId'>; - (opts: MROpts<'Role', 'update', UA>): MRReturn<'Role', 'update'>; - (opts: MROpts<'Role', 'delete', UA>): MRReturn<'Role', 'delete'>; - (opts: MROpts<'ScheduledAction', 'get', UA>): MRReturn<'ScheduledAction', 'get'>; - (opts: MROpts<'ScheduledAction', 'getMany', UA>): MRReturn<'ScheduledAction', 'getMany'>; - (opts: MROpts<'ScheduledAction', 'create', UA>): MRReturn<'ScheduledAction', 'create'>; - (opts: MROpts<'ScheduledAction', 'update', UA>): MRReturn<'ScheduledAction', 'update'>; - (opts: MROpts<'ScheduledAction', 'delete', UA>): MRReturn<'ScheduledAction', 'delete'>; - (opts: MROpts<'Snapshot', 'getManyForEntry', UA>): MRReturn<'Snapshot', 'getManyForEntry'>; - (opts: MROpts<'Snapshot', 'getForEntry', UA>): MRReturn<'Snapshot', 'getForEntry'>; - (opts: MROpts<'Snapshot', 'getManyForContentType', UA>): MRReturn<'Snapshot', 'getManyForContentType'>; - (opts: MROpts<'Snapshot', 'getForContentType', UA>): MRReturn<'Snapshot', 'getForContentType'>; - (opts: MROpts<'Space', 'get', UA>): MRReturn<'Space', 'get'>; - (opts: MROpts<'Space', 'getMany', UA>): MRReturn<'Space', 'getMany'>; - (opts: MROpts<'Space', 'getManyForOrganization', UA>): MRReturn<'Space', 'getManyForOrganization'>; - (opts: MROpts<'Space', 'create', UA>): MRReturn<'Space', 'create'>; - (opts: MROpts<'Space', 'update', UA>): MRReturn<'Space', 'update'>; - (opts: MROpts<'Space', 'delete', UA>): MRReturn<'Space', 'delete'>; - (opts: MROpts<'SpaceMember', 'get', UA>): MRReturn<'SpaceMember', 'get'>; - (opts: MROpts<'SpaceMember', 'getMany', UA>): MRReturn<'SpaceMember', 'getMany'>; - (opts: MROpts<'SpaceMembership', 'get', UA>): MRReturn<'SpaceMembership', 'get'>; - (opts: MROpts<'SpaceMembership', 'getMany', UA>): MRReturn<'SpaceMembership', 'getMany'>; - (opts: MROpts<'SpaceMembership', 'getForOrganization', UA>): MRReturn<'SpaceMembership', 'getForOrganization'>; - (opts: MROpts<'SpaceMembership', 'getManyForOrganization', UA>): MRReturn<'SpaceMembership', 'getManyForOrganization'>; - (opts: MROpts<'SpaceMembership', 'create', UA>): MRReturn<'SpaceMembership', 'create'>; - (opts: MROpts<'SpaceMembership', 'createWithId', UA>): MRReturn<'SpaceMembership', 'createWithId'>; - (opts: MROpts<'SpaceMembership', 'update', UA>): MRReturn<'SpaceMembership', 'update'>; - (opts: MROpts<'SpaceMembership', 'delete', UA>): MRReturn<'SpaceMembership', 'delete'>; - (opts: MROpts<'Tag', 'get', UA>): MRReturn<'Tag', 'get'>; - (opts: MROpts<'Tag', 'getMany', UA>): MRReturn<'Tag', 'getMany'>; - (opts: MROpts<'Tag', 'createWithId', UA>): MRReturn<'Tag', 'createWithId'>; - (opts: MROpts<'Tag', 'update', UA>): MRReturn<'Tag', 'update'>; - (opts: MROpts<'Tag', 'delete', UA>): MRReturn<'Tag', 'delete'>; - (opts: MROpts<'Task', 'get', UA>): MRReturn<'Task', 'get'>; - (opts: MROpts<'Task', 'getMany', UA>): MRReturn<'Task', 'getMany'>; - (opts: MROpts<'Task', 'getAll', UA>): MRReturn<'Task', 'getAll'>; - (opts: MROpts<'Task', 'create', UA>): MRReturn<'Task', 'create'>; - (opts: MROpts<'Task', 'update', UA>): MRReturn<'Task', 'update'>; - (opts: MROpts<'Task', 'delete', UA>): MRReturn<'Task', 'delete'>; - (opts: MROpts<'Team', 'get', UA>): MRReturn<'Team', 'get'>; - (opts: MROpts<'Team', 'getMany', UA>): MRReturn<'Team', 'getMany'>; - (opts: MROpts<'Team', 'getManyForSpace', UA>): MRReturn<'Team', 'getManyForSpace'>; - (opts: MROpts<'Team', 'create', UA>): MRReturn<'Team', 'create'>; - (opts: MROpts<'Team', 'update', UA>): MRReturn<'Team', 'update'>; - (opts: MROpts<'Team', 'delete', UA>): MRReturn<'Team', 'delete'>; - (opts: MROpts<'TeamMembership', 'get', UA>): MRReturn<'TeamMembership', 'get'>; - (opts: MROpts<'TeamMembership', 'getManyForOrganization', UA>): MRReturn<'TeamMembership', 'getManyForOrganization'>; - (opts: MROpts<'TeamMembership', 'getManyForTeam', UA>): MRReturn<'TeamMembership', 'getManyForTeam'>; - (opts: MROpts<'TeamMembership', 'create', UA>): MRReturn<'TeamMembership', 'create'>; - (opts: MROpts<'TeamMembership', 'update', UA>): MRReturn<'TeamMembership', 'update'>; - (opts: MROpts<'TeamMembership', 'delete', UA>): MRReturn<'TeamMembership', 'delete'>; - (opts: MROpts<'TeamSpaceMembership', 'get', UA>): MRReturn<'TeamSpaceMembership', 'get'>; - (opts: MROpts<'TeamSpaceMembership', 'getMany', UA>): MRReturn<'TeamSpaceMembership', 'getMany'>; - (opts: MROpts<'TeamSpaceMembership', 'getForOrganization', UA>): MRReturn<'TeamSpaceMembership', 'getForOrganization'>; - (opts: MROpts<'TeamSpaceMembership', 'getManyForOrganization', UA>): MRReturn<'TeamSpaceMembership', 'getManyForOrganization'>; - (opts: MROpts<'TeamSpaceMembership', 'create', UA>): MRReturn<'TeamSpaceMembership', 'create'>; - (opts: MROpts<'TeamSpaceMembership', 'update', UA>): MRReturn<'TeamSpaceMembership', 'update'>; - (opts: MROpts<'TeamSpaceMembership', 'delete', UA>): MRReturn<'TeamSpaceMembership', 'delete'>; - (opts: MROpts<'UIConfig', 'get', UA>): MRReturn<'UIConfig', 'get'>; - (opts: MROpts<'UIConfig', 'update', UA>): MRReturn<'UIConfig', 'update'>; - (opts: MROpts<'Upload', 'get', UA>): MRReturn<'Entry', 'get'>; - (opts: MROpts<'Upload', 'create', UA>): MRReturn<'Entry', 'create'>; - (opts: MROpts<'Upload', 'delete', UA>): MRReturn<'Entry', 'delete'>; - (opts: MROpts<'Usage', 'getManyForSpace', UA>): MRReturn<'Usage', 'getManyForSpace'>; - (opts: MROpts<'Usage', 'getManyForOrganization', UA>): MRReturn<'Usage', 'getManyForOrganization'>; - (opts: MROpts<'User', 'getManyForSpace', UA>): MRReturn<'User', 'getManyForSpace'>; - (opts: MROpts<'User', 'getForSpace', UA>): MRReturn<'User', 'getForSpace'>; - (opts: MROpts<'User', 'getCurrent', UA>): MRReturn<'User', 'getCurrent'>; - (opts: MROpts<'User', 'getForOrganization', UA>): MRReturn<'User', 'getForOrganization'>; - (opts: MROpts<'User', 'getManyForOrganization', UA>): MRReturn<'User', 'getManyForOrganization'>; - (opts: MROpts<'UserUIConfig', 'get', UA>): MRReturn<'UserUIConfig', 'update'>; - (opts: MROpts<'UserUIConfig', 'update', UA>): MRReturn<'UserUIConfig', 'update'>; - (opts: MROpts<'Webhook', 'get', UA>): MRReturn<'Webhook', 'get'>; - (opts: MROpts<'Webhook', 'getMany', UA>): MRReturn<'Webhook', 'getMany'>; - (opts: MROpts<'Webhook', 'getCallDetails', UA>): MRReturn<'Webhook', 'getCallDetails'>; - (opts: MROpts<'Webhook', 'getHealthStatus', UA>): MRReturn<'Webhook', 'getHealthStatus'>; - (opts: MROpts<'Webhook', 'getManyCallDetails', UA>): MRReturn<'Webhook', 'getManyCallDetails'>; - (opts: MROpts<'Webhook', 'getSigningSecret', UA>): MRReturn<'Webhook', 'getSigningSecret'>; - (opts: MROpts<'Webhook', 'getRetryPolicy', UA>): MRReturn<'Webhook', 'getRetryPolicy'>; - (opts: MROpts<'Webhook', 'create', UA>): MRReturn<'Webhook', 'create'>; - (opts: MROpts<'Webhook', 'createWithId', UA>): MRReturn<'Webhook', 'createWithId'>; - (opts: MROpts<'Webhook', 'update', UA>): MRReturn<'Webhook', 'update'>; - (opts: MROpts<'Webhook', 'upsertSigningSecret', UA>): MRReturn<'Webhook', 'upsertSigningSecret'>; - (opts: MROpts<'Webhook', 'upsertRetryPolicy', UA>): MRReturn<'Webhook', 'upsertRetryPolicy'>; - (opts: MROpts<'Webhook', 'delete', UA>): MRReturn<'Webhook', 'delete'>; - (opts: MROpts<'Webhook', 'deleteSigningSecret', UA>): MRReturn<'Webhook', 'deleteSigningSecret'>; - (opts: MROpts<'Webhook', 'deleteRetryPolicy', UA>): MRReturn<'Webhook', 'deleteRetryPolicy'>; - (opts: MROpts<'WorkflowDefinition', 'get', UA>): MRReturn<'WorkflowDefinition', 'get'>; - (opts: MROpts<'WorkflowDefinition', 'getMany', UA>): MRReturn<'WorkflowDefinition', 'getMany'>; - (opts: MROpts<'WorkflowDefinition', 'create', UA>): MRReturn<'WorkflowDefinition', 'create'>; - (opts: MROpts<'WorkflowDefinition', 'update', UA>): MRReturn<'WorkflowDefinition', 'update'>; - (opts: MROpts<'WorkflowDefinition', 'delete', UA>): MRReturn<'WorkflowDefinition', 'delete'>; - (opts: MROpts<'Workflow', 'getMany', UA>): MRReturn<'Workflow', 'getMany'>; - (opts: MROpts<'Workflow', 'create', UA>): MRReturn<'Workflow', 'create'>; - (opts: MROpts<'Workflow', 'update', UA>): MRReturn<'Workflow', 'update'>; - (opts: MROpts<'Workflow', 'delete', UA>): MRReturn<'Workflow', 'delete'>; - (opts: MROpts<'Workflow', 'complete', UA>): MRReturn<'Workflow', 'complete'>; - (opts: MROpts<'WorkflowsChangelog', 'getMany', UA>): MRReturn<'WorkflowsChangelog', 'getMany'>; -}; -/** - * @private - */ -export type MakeRequestWithUserAgent = MRInternal; -/** - * @private - */ -export type MakeRequest = MRInternal; -/** - * @private - */ -type Without = { - [P in Exclude]?: never; -}; -/** - * @private - */ -export type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U; -export interface Adapter { - makeRequest: MakeRequestWithUserAgent; -} -/** - * @private - */ -export type MRActions = { - Http: { - get: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - return: any; - }; - patch: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - payload: any; - return: any; - }; - post: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - payload: any; - return: any; - }; - put: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - payload: any; - return: any; - }; - delete: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - return: any; - }; - request: { - params: { - url: string; - config?: RawAxiosRequestConfig; - }; - return: any; - }; - }; - AppAction: { - get: { - params: GetAppActionParams; - return: AppActionProps; - }; - getMany: { - params: GetAppDefinitionParams & QueryParams; - return: CollectionProp; - }; - getManyForEnvironment: { - params: GetAppActionsForEnvParams & QueryParams; - return: CollectionProp; - }; - delete: { - params: GetAppActionParams; - return: void; - }; - create: { - params: GetAppDefinitionParams; - payload: CreateAppActionProps; - return: AppActionProps; - }; - update: { - params: GetAppActionParams; - payload: CreateAppActionProps; - return: AppActionProps; - }; - }; - AppActionCall: { - create: { - params: GetAppActionCallParams; - payload: CreateAppActionCallProps; - return: AppActionCallProps; - }; - getCallDetails: { - params: GetAppActionCallDetailsParams; - return: AppActionCallResponse; - }; - createWithResponse: { - params: GetAppActionCallParams; - payload: CreateAppActionCallProps; - return: AppActionCallResponse; - }; - }; - AppBundle: { - get: { - params: GetAppBundleParams; - return: AppBundleProps; - }; - getMany: { - params: GetAppDefinitionParams & QueryParams; - return: CollectionProp; - }; - delete: { - params: GetAppBundleParams; - return: void; - }; - create: { - params: GetAppDefinitionParams; - payload: CreateAppBundleProps; - return: AppBundleProps; - }; - }; - ApiKey: { - get: { - params: GetSpaceParams & { - apiKeyId: string; - }; - return: ApiKeyProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceParams; - payload: CreateApiKeyProps; - headers?: RawAxiosRequestHeaders; - return: ApiKeyProps; - }; - createWithId: { - params: GetSpaceParams & { - apiKeyId: string; - }; - payload: CreateApiKeyProps; - headers?: RawAxiosRequestHeaders; - return: ApiKeyProps; - }; - update: { - params: GetSpaceParams & { - apiKeyId: string; - }; - payload: ApiKeyProps; - headers?: RawAxiosRequestHeaders; - return: ApiKeyProps; - }; - delete: { - params: GetSpaceParams & { - apiKeyId: string; - }; - return: any; - }; - }; - AppDefinition: { - get: { - params: GetOrganizationParams & { - appDefinitionId: string; - }; - return: AppDefinitionProps; - }; - getMany: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetOrganizationParams; - payload: CreateAppDefinitionProps; - return: AppDefinitionProps; - }; - update: { - params: GetAppDefinitionParams; - payload: AppDefinitionProps; - headers?: RawAxiosRequestHeaders; - return: AppDefinitionProps; - }; - delete: { - params: GetAppDefinitionParams; - return: any; - }; - getInstallationsForOrg: { - params: GetOrganizationParams & { - appDefinitionId: string; - } & SpaceQueryParams; - return: AppInstallationsForOrganizationProps; - }; - }; - AppInstallation: { - get: { - params: GetAppInstallationParams; - return: AppInstallationProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & PaginationQueryParams; - return: CollectionProp; - }; - upsert: { - params: GetAppInstallationParams & { - acceptAllTerms?: boolean; - }; - payload: CreateAppInstallationProps; - headers?: RawAxiosRequestHeaders; - return: AppInstallationProps; - }; - delete: { - params: GetAppInstallationParams; - return: any; - }; - getForOrganization: { - params: GetOrganizationParams & { - appDefinitionId: string; - spaceId?: string; - }; - return: AppInstallationsForOrganizationProps; - }; - }; - AppUpload: { - get: { - params: GetAppUploadParams; - return: AppUploadProps; - }; - delete: { - params: GetAppUploadParams; - return: void; - }; - create: { - params: GetOrganizationParams; - payload: { - file: string | ArrayBuffer | Stream; - }; - return: AppUploadProps; - }; - }; - AppDetails: { - upsert: { - params: GetAppDefinitionParams; - payload: CreateAppDetailsProps; - return: AppDetailsProps; - }; - get: { - params: GetAppDefinitionParams; - return: AppDetailsProps; - }; - delete: { - params: GetAppDefinitionParams; - return: void; - }; - }; - AppSignedRequest: { - create: { - params: GetAppInstallationParams; - payload: CreateAppSignedRequestProps; - return: AppSignedRequestProps; - }; - }; - AppSigningSecret: { - upsert: { - params: GetAppDefinitionParams; - payload: CreateAppSigningSecretProps; - return: AppSigningSecretProps; - }; - get: { - params: GetAppDefinitionParams; - return: AppSigningSecretProps; - }; - delete: { - params: GetAppDefinitionParams; - return: void; - }; - }; - AppEventSubscription: { - upsert: { - params: GetAppDefinitionParams; - payload: CreateAppEventSubscriptionProps; - return: AppEventSubscriptionProps; - }; - get: { - params: GetAppDefinitionParams; - return: AppEventSubscriptionProps; - }; - delete: { - params: GetAppDefinitionParams; - return: void; - }; - }; - AppKey: { - create: { - params: GetAppDefinitionParams; - payload: CreateAppKeyProps; - return: AppKeyProps; - }; - get: { - params: GetAppDefinitionParams & { - fingerprint: string; - }; - return: AppKeyProps; - }; - getMany: { - params: GetAppDefinitionParams & QueryParams; - return: CollectionProp; - }; - delete: { - params: GetAppDefinitionParams & { - fingerprint: string; - }; - return: void; - }; - }; - AppAccessToken: { - create: { - params: GetAppInstallationParams; - payload: CreateAppAccessTokenProps; - return: AppAccessTokenProps; - }; - }; - Asset: { - getPublished: { - params: GetSpaceEnvironmentParams & QueryParams; - headers?: RawAxiosRequestHeaders; - return: CollectionProp; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - headers?: RawAxiosRequestHeaders; - return: CollectionProp; - }; - get: { - params: GetSpaceEnvironmentParams & { - assetId: string; - } & QueryParams; - headers?: RawAxiosRequestHeaders; - return: AssetProps; - }; - update: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - payload: AssetProps; - headers?: RawAxiosRequestHeaders; - return: AssetProps; - }; - delete: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - return: any; - }; - publish: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - payload: AssetProps; - return: AssetProps; - }; - unpublish: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - return: AssetProps; - }; - archive: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - return: AssetProps; - }; - unarchive: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - return: AssetProps; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: CreateAssetProps; - return: AssetProps; - }; - createWithId: { - params: GetSpaceEnvironmentParams & { - assetId: string; - }; - payload: CreateAssetProps; - return: AssetProps; - }; - createFromFiles: { - params: GetSpaceEnvironmentParams & { - uploadTimeout?: number; - }; - payload: Omit; - return: AssetProps; - }; - processForAllLocales: { - params: GetSpaceEnvironmentParams & { - asset: AssetProps; - options?: AssetProcessingForLocale; - }; - return: AssetProps; - }; - processForLocale: { - params: GetSpaceEnvironmentParams & { - asset: AssetProps; - locale: string; - options?: AssetProcessingForLocale; - }; - return: AssetProps; - }; - }; - AssetKey: { - create: { - params: GetSpaceEnvironmentParams; - payload: CreateAssetKeyProps; - return: AssetKeyProps; - }; - }; - BulkAction: { - get: { - params: GetBulkActionParams; - return: BulkActionProps; - }; - publish: { - params: GetSpaceEnvironmentParams; - payload: BulkActionPublishPayload; - return: BulkActionProps; - }; - unpublish: { - params: GetSpaceEnvironmentParams; - payload: BulkActionUnpublishPayload; - return: BulkActionProps; - }; - validate: { - params: GetSpaceEnvironmentParams; - payload: BulkActionValidatePayload; - return: BulkActionProps; - }; - }; - Comment: { - get: { - params: GetCommentParams & PlainTextBodyFormat; - return: CommentProps; - } | { - params: GetCommentParams & RichTextBodyFormat; - return: RichTextCommentProps; - }; - getMany: { - params: GetManyCommentsParams & PlainTextBodyFormat & QueryParams; - return: CollectionProp; - } | { - params: GetManyCommentsParams & QueryParams & RichTextBodyFormat; - return: CollectionProp; - }; - getAll: { - params: GetManyCommentsParams & QueryParams & PlainTextBodyFormat; - return: CollectionProp; - } | { - params: GetManyCommentsParams & QueryParams & RichTextBodyFormat; - return: CollectionProp; - }; - create: { - params: CreateCommentParams & PlainTextBodyFormat; - payload: CreateCommentProps; - return: CommentProps; - } | { - params: CreateCommentParams & RichTextBodyFormat; - payload: RichTextCommentBodyPayload; - return: RichTextCommentProps; - }; - update: { - params: UpdateCommentParams; - payload: UpdateCommentProps; - headers?: RawAxiosRequestHeaders; - return: CommentProps; - } | { - params: UpdateCommentParams; - payload: Omit & RichTextCommentBodyPayload; - headers?: RawAxiosRequestHeaders; - return: RichTextCommentProps; - }; - delete: { - params: DeleteCommentParams; - return: void; - }; - }; - ContentType: { - get: { - params: GetContentTypeParams & QueryParams; - return: ContentTypeProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: CreateContentTypeProps; - return: ContentTypeProps; - }; - createWithId: { - params: GetContentTypeParams; - payload: CreateContentTypeProps; - return: ContentTypeProps; - }; - update: { - params: GetContentTypeParams; - payload: ContentTypeProps; - headers?: RawAxiosRequestHeaders; - return: ContentTypeProps; - }; - delete: { - params: GetContentTypeParams; - return: any; - }; - publish: { - params: GetContentTypeParams; - payload: ContentTypeProps; - return: ContentTypeProps; - }; - unpublish: { - params: GetContentTypeParams; - return: ContentTypeProps; - }; - }; - EditorInterface: { - get: { - params: GetEditorInterfaceParams; - return: EditorInterfaceProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp; - }; - update: { - params: GetEditorInterfaceParams; - payload: EditorInterfaceProps; - headers?: RawAxiosRequestHeaders; - return: EditorInterfaceProps; - }; - }; - Function: { - getMany: { - params: GetAppDefinitionParams & QueryParams; - return: CollectionProp; - }; - }; - Environment: { - get: { - params: GetSpaceEnvironmentParams; - return: EnvironmentProps; - }; - getMany: { - params: GetSpaceParams & PaginationQueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceParams; - payload: Partial>; - headers?: RawAxiosRequestHeaders; - return: EnvironmentProps; - }; - createWithId: { - params: GetSpaceEnvironmentParams & { - sourceEnvironmentId?: string; - }; - payload: CreateEnvironmentProps; - headers?: RawAxiosRequestHeaders; - return: EnvironmentProps; - }; - update: { - params: GetSpaceEnvironmentParams; - payload: EnvironmentProps; - headers?: RawAxiosRequestHeaders; - return: EnvironmentProps; - }; - delete: { - params: GetSpaceEnvironmentParams; - return: any; - }; - }; - EnvironmentAlias: { - get: { - params: GetSpaceEnvAliasParams; - return: EnvironmentAliasProps; - }; - getMany: { - params: GetSpaceParams & PaginationQueryParams; - return: CollectionProp; - }; - createWithId: { - params: GetSpaceEnvAliasParams; - payload: CreateEnvironmentAliasProps; - headers?: RawAxiosRequestHeaders; - return: EnvironmentAliasProps; - }; - update: { - params: GetSpaceEnvAliasParams; - payload: EnvironmentAliasProps; - headers?: RawAxiosRequestHeaders; - return: EnvironmentAliasProps; - }; - delete: { - params: GetSpaceEnvAliasParams; - return: any; - }; - }; - EnvironmentTemplate: { - get: { - params: GetEnvironmentTemplateParams & { - version?: number; - query?: { - select?: string; - }; - }; - return: EnvironmentTemplateProps; - }; - getMany: { - params: GetOrganizationParams & { - query?: BasicCursorPaginationOptions & { - select?: string; - }; - }; - return: CursorPaginatedCollectionProp; - }; - create: { - payload: CreateEnvironmentTemplateProps; - params: GetOrganizationParams; - return: EnvironmentTemplateProps; - }; - versionUpdate: { - params: GetEnvironmentTemplateParams & { - version: number; - }; - payload: { - versionName: string; - versionDescription: string; - }; - return: EnvironmentTemplateProps; - }; - update: { - params: GetEnvironmentTemplateParams; - payload: EnvironmentTemplateProps; - return: EnvironmentTemplateProps; - }; - delete: { - params: GetEnvironmentTemplateParams; - return: void; - }; - versions: { - params: GetEnvironmentTemplateParams & { - query?: BasicCursorPaginationOptions & { - select?: string; - }; - }; - return: CursorPaginatedCollectionProp; - }; - validate: { - params: EnvironmentTemplateParams & { - version?: number; - }; - payload: ValidateEnvironmentTemplateInstallationProps; - return: EnvironmentTemplateValidationProps; - }; - install: { - params: EnvironmentTemplateParams; - payload: CreateEnvironmentTemplateInstallationProps; - return: EnvironmentTemplateInstallationProps; - }; - disconnect: { - params: EnvironmentTemplateParams; - return: void; - }; - }; - EnvironmentTemplateInstallation: { - getMany: { - params: BasicCursorPaginationOptions & { - environmentId?: string; - environmentTemplateId: string; - organizationId: string; - spaceId?: string; - }; - return: CursorPaginatedCollectionProp; - }; - getForEnvironment: { - params: BasicCursorPaginationOptions & EnvironmentTemplateParams & { - installationId?: string; - }; - return: CursorPaginatedCollectionProp; - }; - }; - Entry: { - getPublished: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp>; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp>; - }; - get: { - params: GetSpaceEnvironmentParams & { - entryId: string; - } & QueryParams; - return: EntryProps; - }; - patch: { - params: GetSpaceEnvironmentParams & { - entryId: string; - version: number; - }; - payload: OpPatch[]; - headers?: RawAxiosRequestHeaders; - return: EntryProps; - }; - update: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - payload: EntryProps; - headers?: RawAxiosRequestHeaders; - return: EntryProps; - }; - delete: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - return: any; - }; - publish: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - payload: EntryProps; - return: EntryProps; - }; - unpublish: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - return: EntryProps; - }; - archive: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - return: EntryProps; - }; - unarchive: { - params: GetSpaceEnvironmentParams & { - entryId: string; - }; - return: EntryProps; - }; - create: { - params: GetSpaceEnvironmentParams & { - contentTypeId: string; - }; - payload: CreateEntryProps; - return: EntryProps; - }; - createWithId: { - params: GetSpaceEnvironmentParams & { - entryId: string; - contentTypeId: string; - }; - payload: CreateEntryProps; - return: EntryProps; - }; - references: { - params: GetSpaceEnvironmentParams & { - entryId: string; - include?: number; - }; - return: EntryReferenceProps; - }; - }; - Extension: { - get: { - params: GetExtensionParams & QueryParams; - return: ExtensionProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: CreateExtensionProps; - headers?: RawAxiosRequestHeaders; - return: ExtensionProps; - }; - createWithId: { - params: GetExtensionParams; - payload: CreateExtensionProps; - headers?: RawAxiosRequestHeaders; - return: ExtensionProps; - }; - update: { - params: GetExtensionParams; - payload: ExtensionProps; - headers?: RawAxiosRequestHeaders; - return: ExtensionProps; - }; - delete: { - params: GetExtensionParams; - return: any; - }; - }; - Locale: { - get: { - params: GetSpaceEnvironmentParams & { - localeId: string; - }; - return: LocaleProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp; - }; - delete: { - params: GetSpaceEnvironmentParams & { - localeId: string; - }; - return: any; - }; - update: { - params: GetSpaceEnvironmentParams & { - localeId: string; - }; - payload: LocaleProps; - headers?: RawAxiosRequestHeaders; - return: LocaleProps; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: CreateLocaleProps; - headers?: RawAxiosRequestHeaders; - return: LocaleProps; - }; - }; - Organization: { - getMany: { - params: PaginationQueryParams; - return: CollectionProp; - }; - get: { - params: GetOrganizationParams; - return: OrganizationProp; - }; - }; - OrganizationInvitation: { - get: { - params: { - organizationId: string; - invitationId: string; - }; - headers?: RawAxiosRequestHeaders; - return: OrganizationInvitationProps; - }; - create: { - params: { - organizationId: string; - }; - payload: CreateOrganizationInvitationProps; - headers?: RawAxiosRequestHeaders; - return: OrganizationInvitationProps; - }; - }; - OrganizationMembership: { - get: { - params: GetOrganizationMembershipParams; - return: OrganizationMembershipProps; - }; - getMany: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - update: { - params: GetOrganizationMembershipParams; - payload: OrganizationMembershipProps; - headers?: RawAxiosRequestHeaders; - return: OrganizationMembershipProps; - }; - delete: { - params: GetOrganizationMembershipParams; - return: any; - }; - }; - PersonalAccessToken: { - get: { - params: { - tokenId: string; - }; - return: PersonalAccessTokenProp; - }; - getMany: { - params: QueryParams; - return: CollectionProp; - }; - create: { - params: {}; - payload: CreatePersonalAccessTokenProps; - headers?: RawAxiosRequestHeaders; - return: PersonalAccessTokenProp; - }; - revoke: { - params: { - tokenId: string; - }; - return: PersonalAccessTokenProp; - }; - }; - AccessToken: { - get: { - params: { - tokenId: string; - }; - return: AccessTokenProp; - }; - getMany: { - params: QueryParams; - return: CollectionProp; - }; - createPersonalAccessToken: { - params: {}; - payload: CreatePATProps; - headers?: RawAxiosRequestHeaders; - return: AccessTokenProp; - }; - revoke: { - params: { - tokenId: string; - }; - return: AccessTokenProp; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - }; - PreviewApiKey: { - get: { - params: GetSpaceParams & { - previewApiKeyId: string; - }; - return: PreviewApiKeyProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - }; - Release: { - archive: { - params: GetReleaseParams & { - version: number; - }; - return: ReleaseProps; - }; - get: { - params: GetReleaseParams; - return: ReleaseProps; - }; - query: { - params: GetSpaceEnvironmentParams & { - query?: ReleaseQueryOptions; - }; - return: CollectionProp; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: ReleasePayload; - return: ReleaseProps; - }; - update: { - params: GetReleaseParams & { - version: number; - }; - payload: ReleasePayload; - return: ReleaseProps; - }; - delete: { - params: GetReleaseParams; - return: void; - }; - publish: { - params: GetReleaseParams & { - version: number; - }; - return: ReleaseActionProps<'publish'>; - }; - unarchive: { - params: GetReleaseParams & { - version: number; - }; - return: ReleaseProps; - }; - unpublish: { - params: GetReleaseParams & { - version: number; - }; - return: ReleaseActionProps<'unpublish'>; - }; - validate: { - params: GetReleaseParams; - payload?: ReleaseValidatePayload; - return: ReleaseActionProps<'validate'>; - }; - }; - ReleaseAction: { - get: { - params: GetReleaseParams & { - actionId: string; - }; - return: ReleaseAction; - }; - getMany: { - params: GetSpaceEnvironmentParams & { - query?: ReleaseActionQueryOptions; - }; - return: Collection; - }; - queryForRelease: { - params: GetReleaseParams & { - query?: ReleaseActionQueryOptions; - }; - return: Collection; - }; - }; - Role: { - get: { - params: GetSpaceParams & { - roleId: string; - }; - return: RoleProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceParams; - payload: CreateRoleProps; - headers?: RawAxiosRequestHeaders; - return: RoleProps; - }; - createWithId: { - params: GetSpaceParams & { - roleId: string; - }; - payload: CreateRoleProps; - headers?: RawAxiosRequestHeaders; - return: RoleProps; - }; - update: { - params: GetSpaceParams & { - roleId: string; - }; - payload: RoleProps; - headers?: RawAxiosRequestHeaders; - return: RoleProps; - }; - delete: { - params: GetSpaceParams & { - roleId: string; - }; - return: any; - }; - }; - ScheduledAction: { - get: { - params: GetSpaceParams & { - scheduledActionId: string; - environmentId: string; - }; - return: ScheduledActionProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceParams; - payload: Omit; - return: ScheduledActionProps; - }; - update: { - params: GetSpaceParams & { - scheduledActionId: string; - version: number; - }; - payload: Omit; - return: ScheduledActionProps; - }; - delete: { - params: GetSpaceEnvironmentParams & { - scheduledActionId: string; - }; - return: any; - }; - }; - Snapshot: { - getManyForEntry: { - params: GetSnapshotForEntryParams & QueryParams; - return: CollectionProp, 'metadata'>>>; - }; - getForEntry: { - params: GetSnapshotForEntryParams & { - snapshotId: string; - }; - return: SnapshotProps, 'metadata'>>; - }; - getManyForContentType: { - params: GetSnapshotForContentTypeParams & QueryParams; - return: CollectionProp>; - }; - getForContentType: { - params: GetSnapshotForContentTypeParams & { - snapshotId: string; - }; - return: SnapshotProps; - }; - }; - Space: { - get: { - params: GetSpaceParams; - return: SpaceProps; - }; - getMany: { - params: QueryParams; - return: CollectionProp; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - create: { - params: { - organizationId?: string; - }; - payload: Omit; - headers?: RawAxiosRequestHeaders; - return: any; - }; - update: { - params: GetSpaceParams; - payload: SpaceProps; - headers?: RawAxiosRequestHeaders; - return: SpaceProps; - }; - delete: { - params: GetSpaceParams; - return: void; - }; - }; - SpaceMember: { - get: { - params: GetSpaceParams & { - spaceMemberId: string; - }; - return: SpaceMemberProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - }; - SpaceMembership: { - get: { - params: GetSpaceMembershipProps; - return: SpaceMembershipProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - getForOrganization: { - params: GetOrganizationParams & { - spaceMembershipId: string; - }; - return: SpaceMembershipProps; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetSpaceParams; - payload: CreateSpaceMembershipProps; - headers?: RawAxiosRequestHeaders; - return: SpaceMembershipProps; - }; - createWithId: { - params: GetSpaceMembershipProps; - payload: CreateSpaceMembershipProps; - headers?: RawAxiosRequestHeaders; - return: SpaceMembershipProps; - }; - update: { - params: GetSpaceMembershipProps; - payload: SpaceMembershipProps; - headers?: RawAxiosRequestHeaders; - return: SpaceMembershipProps; - }; - delete: { - params: GetSpaceMembershipProps; - return: any; - }; - }; - Tag: { - get: { - params: GetTagParams; - return: TagProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & QueryParams; - return: CollectionProp; - }; - createWithId: { - params: GetTagParams; - payload: CreateTagProps; - return: TagProps; - }; - update: { - params: GetTagParams; - payload: UpdateTagProps; - headers?: RawAxiosRequestHeaders; - return: TagProps; - }; - delete: { - params: DeleteTagParams; - return: any; - }; - }; - Task: { - get: { - params: GetTaskParams; - return: TaskProps; - }; - getMany: { - params: GetEntryParams & QueryParams; - return: CollectionProp; - }; - getAll: { - params: GetEntryParams & QueryParams; - return: CollectionProp; - }; - create: { - params: CreateTaskParams; - payload: CreateTaskProps; - return: TaskProps; - }; - update: { - params: UpdateTaskParams; - payload: UpdateTaskProps; - headers?: RawAxiosRequestHeaders; - return: TaskProps; - }; - delete: { - params: DeleteTaskParams; - return: void; - }; - }; - Team: { - get: { - params: GetTeamParams; - return: TeamProps; - }; - getMany: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - getManyForSpace: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetOrganizationParams; - payload: CreateTeamProps; - headers?: RawAxiosRequestHeaders; - return: any; - }; - update: { - params: GetTeamParams; - payload: TeamProps; - headers?: RawAxiosRequestHeaders; - return: TeamProps; - }; - delete: { - params: GetTeamParams; - return: any; - }; - }; - TeamMembership: { - get: { - params: GetTeamMembershipParams; - return: TeamMembershipProps; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - getManyForTeam: { - params: GetTeamParams & QueryParams; - return: CollectionProp; - }; - create: { - params: GetTeamParams; - payload: CreateTeamMembershipProps; - headers?: RawAxiosRequestHeaders; - return: TeamMembershipProps; - }; - update: { - params: GetTeamMembershipParams; - payload: TeamMembershipProps; - headers?: RawAxiosRequestHeaders; - return: TeamMembershipProps; - }; - delete: { - params: GetTeamMembershipParams; - return: any; - }; - }; - TeamSpaceMembership: { - get: { - params: GetTeamSpaceMembershipParams; - return: TeamSpaceMembershipProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - getForOrganization: { - params: GetOrganizationParams & { - teamSpaceMembershipId: string; - }; - return: TeamSpaceMembershipProps; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams & { - teamId?: string; - }; - return: CollectionProp; - }; - create: { - params: GetSpaceParams & { - teamId: string; - }; - payload: CreateTeamSpaceMembershipProps; - headers?: RawAxiosRequestHeaders; - return: TeamSpaceMembershipProps; - }; - update: { - params: GetTeamSpaceMembershipParams; - payload: TeamSpaceMembershipProps; - headers?: RawAxiosRequestHeaders; - return: TeamSpaceMembershipProps; - }; - delete: { - params: GetTeamSpaceMembershipParams; - return: any; - }; - }; - UIConfig: { - get: { - params: GetUIConfigParams; - return: UIConfigProps; - }; - update: { - params: GetUIConfigParams; - payload: UIConfigProps; - return: UIConfigProps; - }; - }; - Upload: { - get: { - params: GetSpaceEnvironmentUploadParams; - return: any; - }; - create: { - params: GetSpaceEnvironmentParams; - payload: { - file: string | ArrayBuffer | Stream; - }; - return: any; - }; - delete: { - params: GetSpaceEnvironmentUploadParams; - return: any; - }; - }; - Usage: { - getManyForSpace: { - params: { - organizationId: string; - } & QueryParams; - return: CollectionProp; - }; - getManyForOrganization: { - params: { - organizationId: string; - } & QueryParams; - return: CollectionProp; - }; - }; - User: { - getManyForSpace: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - getForSpace: { - params: GetSpaceParams & { - userId: string; - }; - return: UserProps; - }; - getCurrent: { - params?: QueryParams; - return: any; - }; - getForOrganization: { - params: GetOrganizationParams & { - userId: string; - }; - return: UserProps; - }; - getManyForOrganization: { - params: GetOrganizationParams & QueryParams; - return: CollectionProp; - }; - }; - UserUIConfig: { - get: { - params: GetUserUIConfigParams; - return: UserUIConfigProps; - }; - update: { - params: GetUserUIConfigParams; - payload: UserUIConfigProps; - return: UserUIConfigProps; - }; - }; - Webhook: { - get: { - params: GetWebhookParams; - return: WebhookProps; - }; - getMany: { - params: GetSpaceParams & QueryParams; - return: CollectionProp; - }; - getCallDetails: { - params: GetWebhookCallDetailsUrl; - return: WebhookCallDetailsProps; - }; - getHealthStatus: { - params: GetWebhookParams; - return: WebhookHealthProps; - }; - getManyCallDetails: { - params: GetWebhookParams & QueryParams; - return: CollectionProp; - }; - getSigningSecret: { - params: GetSpaceParams; - return: WebhookSigningSecretProps; - }; - getRetryPolicy: { - params: GetSpaceParams; - return: WebhookRetryPolicyProps; - }; - create: { - params: GetSpaceParams; - payload: CreateWebhooksProps; - headers?: RawAxiosRequestHeaders; - return: WebhookProps; - }; - createWithId: { - params: GetWebhookParams; - payload: CreateWebhooksProps; - headers?: RawAxiosRequestHeaders; - return: WebhookProps; - }; - update: { - params: GetWebhookParams; - payload: WebhookProps; - return: WebhookProps; - }; - upsertSigningSecret: { - params: GetSpaceParams; - payload: UpsertWebhookSigningSecretPayload; - return: WebhookSigningSecretProps; - }; - upsertRetryPolicy: { - params: GetSpaceParams; - payload: WebhookRetryPolicyPayload; - return: WebhookRetryPolicyProps; - }; - delete: { - params: GetWebhookParams; - return: void; - }; - deleteSigningSecret: { - params: GetSpaceParams; - return: void; - }; - deleteRetryPolicy: { - params: GetSpaceParams; - return: void; - }; - }; - WorkflowDefinition: { - get: { - params: GetWorkflowDefinitionParams; - headers?: RawAxiosRequestHeaders; - return: WorkflowDefinitionProps; - }; - getMany: { - params: GetSpaceEnvironmentParams & { - query?: WorkflowDefinitionQueryOptions; - }; - headers?: RawAxiosRequestHeaders; - return: CollectionProp; - }; - create: { - params: CreateWorkflowDefinitionParams; - payload: CreateWorkflowDefinitionProps; - headers?: RawAxiosRequestHeaders; - return: WorkflowDefinitionProps; - }; - update: { - params: GetWorkflowDefinitionParams; - payload: WorkflowDefinitionProps; - headers?: RawAxiosRequestHeaders; - return: WorkflowDefinitionProps; - }; - delete: { - params: DeleteWorkflowDefinitionParams; - headers?: RawAxiosRequestHeaders; - return: void; - }; - }; - Workflow: { - getMany: { - params: GetSpaceEnvironmentParams & { - query?: WorkflowQueryOptions; - }; - headers?: RawAxiosRequestHeaders; - return: CollectionProp; - }; - create: { - params: CreateWorkflowParams; - payload: CreateWorkflowProps; - headers?: RawAxiosRequestHeaders; - return: WorkflowProps; - }; - update: { - params: GetWorkflowParams; - payload: WorkflowProps; - headers?: RawAxiosRequestHeaders; - return: WorkflowProps; - }; - delete: { - params: DeleteWorkflowParams; - headers?: RawAxiosRequestHeaders; - return: void; - }; - complete: { - params: CompleteWorkflowParams; - headers?: RawAxiosRequestHeaders; - return: void; - }; - }; - WorkflowsChangelog: { - getMany: { - params: GetSpaceEnvironmentParams & { - query: WorkflowsChangelogQueryOptions; - }; - headers?: RawAxiosRequestHeaders; - return: CollectionProp; - }; - }; -}; -/** - * @private - */ -export type MROpts = { - entityType: ET; - action: Action; -} & (UA extends true ? { - userAgent: string; -} : {}) & ('params' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]['params'] ? { - params?: MRActions[ET][Action]['params']; -} : { - params: MRActions[ET][Action]['params']; -} : {}) & ('payload' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]['payload'] ? { - payload?: MRActions[ET][Action]['payload']; -} : { - payload: MRActions[ET][Action]['payload']; -} : {}) & ('headers' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]['headers'] ? { - headers?: MRActions[ET][Action]['headers']; -} : { - headers: MRActions[ET][Action]['headers']; -} : {}); -/** - * @private - */ -export type MRReturn = 'return' extends keyof MRActions[ET][Action] ? Promise : never; -/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */ -export interface MakeRequestPayload { -} -export interface MakeRequestOptions { - entityType: keyof MRActions; - action: string; - params?: Record; - payload?: Record | OpPatch[] | MakeRequestPayload; - headers?: RawAxiosRequestHeaders; - userAgent: string; -} -export type EnvironmentTemplateParams = { - spaceId: string; - environmentId: string; - environmentTemplateId: string; -}; -export type GetAppActionParams = GetAppDefinitionParams & { - appActionId: string; -}; -export type GetAppActionsForEnvParams = GetSpaceParams & { - environmentId?: string; -}; -export type GetAppActionCallParams = GetAppInstallationParams & { - appActionId: string; -}; -export type CreateWithResponseParams = GetAppActionCallParams & { - retries?: number; - retryInterval?: number; -}; -export type GetAppActionCallDetailsParams = GetSpaceEnvironmentParams & { - appActionId: string; - callId: string; -}; -export type GetAppBundleParams = GetAppDefinitionParams & { - appBundleId: string; -}; -export type GetAppDefinitionParams = GetOrganizationParams & { - appDefinitionId: string; -}; -export type GetAppInstallationsForOrgParams = GetOrganizationParams & { - appDefinitionId: string; -}; -export type GetAppInstallationParams = GetSpaceEnvironmentParams & { - appDefinitionId: string; -}; -export type GetBulkActionParams = GetSpaceEnvironmentParams & { - bulkActionId: string; -}; -export type GetCommentParams = (GetEntryParams | GetCommentParentEntityParams) & { - commentId: string; -}; -export type GetContentTypeParams = GetSpaceEnvironmentParams & { - contentTypeId: string; -}; -export type GetEditorInterfaceParams = GetSpaceEnvironmentParams & { - contentTypeId: string; -}; -export type GetEntryParams = GetSpaceEnvironmentParams & { - entryId: string; -}; -export type GetExtensionParams = GetSpaceEnvironmentParams & { - extensionId: string; -}; -export type GetEnvironmentTemplateParams = GetOrganizationParams & { - environmentTemplateId: string; -}; -export type GetOrganizationParams = { - organizationId: string; -}; -export type GetReleaseParams = GetSpaceEnvironmentParams & { - releaseId: string; -}; -export type GetSnapshotForContentTypeParams = GetSpaceEnvironmentParams & { - contentTypeId: string; -}; -export type GetSnapshotForEntryParams = GetSpaceEnvironmentParams & { - entryId: string; -}; -export type GetSpaceEnvAliasParams = GetSpaceParams & { - environmentAliasId: string; -}; -export type GetSpaceEnvironmentParams = { - spaceId: string; - environmentId: string; -}; -export type GetSpaceEnvironmentUploadParams = GetSpaceEnvironmentParams & { - uploadId: string; -}; -export type GetSpaceMembershipProps = GetSpaceParams & { - spaceMembershipId: string; -}; -export type GetSpaceParams = { - spaceId: string; -}; -export type GetTagParams = GetSpaceEnvironmentParams & { - tagId: string; -}; -export type GetTaskParams = GetEntryParams & { - taskId: string; -}; -export type GetTeamMembershipParams = GetTeamParams & { - teamMembershipId: string; -}; -export type GetTeamParams = { - organizationId: string; - teamId: string; -}; -export type GetTeamSpaceMembershipParams = GetSpaceParams & { - teamSpaceMembershipId: string; -}; -export type GetWebhookCallDetailsUrl = GetWebhookParams & { - callId: string; -}; -export type GetWebhookParams = GetSpaceParams & { - webhookDefinitionId: string; -}; -export type GetOrganizationMembershipParams = GetOrganizationParams & { - organizationMembershipId: string; -}; -export type GetAppKeyParams = GetAppDefinitionParams & { - fingerprint: string; -}; -export type GetAppUploadParams = GetOrganizationParams & { - appUploadId: string; -}; -export type GetWorkflowDefinitionParams = GetSpaceEnvironmentParams & { - workflowDefinitionId: string; -}; -export type GetWorkflowParams = GetSpaceEnvironmentParams & { - workflowId: string; -}; -export type GetUIConfigParams = GetSpaceEnvironmentParams; -export type GetUserUIConfigParams = GetUIConfigParams; -export type QueryParams = { - query?: QueryOptions; -}; -export type SpaceQueryParams = { - query?: SpaceQueryOptions; -}; -export type PaginationQueryParams = { - query?: PaginationQueryOptions; -}; -export declare enum ScheduledActionReferenceFilters { - contentTypeAnnotationNotIn = "sys.contentType.metadata.annotations.ContentType[nin]" -} -export {}; diff --git a/node_modules/contentful-management/dist/typings/common-utils.d.ts b/node_modules/contentful-management/dist/typings/common-utils.d.ts deleted file mode 100644 index 40b97c32..00000000 --- a/node_modules/contentful-management/dist/typings/common-utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Collection, CollectionProp, CursorPaginatedCollection, CursorPaginatedCollectionProp, MakeRequest } from './common-types'; -/** - * @private - */ -export declare const wrapCollection: (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) => (makeRequest: MakeRequest, data: CollectionProp, ...rest: Rest) => Collection; -export declare const wrapCursorPaginatedCollection: (fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) => (makeRequest: MakeRequest, data: CursorPaginatedCollectionProp, ...rest: Rest) => CursorPaginatedCollection; -export declare function isSuccessful(statusCode: number): boolean; -export declare function shouldRePoll(statusCode: number): boolean; -export declare function waitFor(ms?: number): Promise; diff --git a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts b/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts deleted file mode 100644 index fe00ba87..00000000 --- a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { ContentFields } from '../../entities/content-type-fields'; -declare const INTERNAL_TO_API: { - readonly Symbol: { - readonly type: "Symbol"; - }; - readonly Text: { - readonly type: "Text"; - }; - readonly RichText: { - readonly type: "RichText"; - }; - readonly Integer: { - readonly type: "Integer"; - }; - readonly Number: { - readonly type: "Number"; - }; - readonly Boolean: { - readonly type: "Boolean"; - }; - readonly Date: { - readonly type: "Date"; - }; - readonly Location: { - readonly type: "Location"; - }; - readonly Object: { - readonly type: "Object"; - }; - readonly File: { - readonly type: "File"; - }; - readonly Entry: { - readonly type: "Link"; - readonly linkType: "Entry"; - }; - readonly Asset: { - readonly type: "Link"; - readonly linkType: "Asset"; - }; - readonly Resource: { - readonly type: "ResourceLink"; - }; - readonly Symbols: { - readonly type: "Array"; - readonly items: { - readonly type: "Symbol"; - }; - }; - readonly Entries: { - readonly type: "Array"; - readonly items: { - readonly type: "Link"; - readonly linkType: "Entry"; - }; - }; - readonly Assets: { - readonly type: "Array"; - readonly items: { - readonly type: "Link"; - readonly linkType: "Asset"; - }; - }; - readonly Resources: { - readonly type: "Array"; - readonly items: { - readonly type: "ResourceLink"; - }; - }; -}; -export declare const FIELD_TYPES: ("Boolean" | "Symbol" | "Number" | "Asset" | "Entry" | "Text" | "RichText" | "Integer" | "Date" | "Object" | "Location" | "File" | "Resource" | "Symbols" | "Entries" | "Assets" | "Resources")[]; -/** - * Returns an internal string identifier for an API field object. - * - * We use this string as a simplified reference to field types. - * Possible values are: - * - * - Symbol - * - Symbols - * - Text - * - RichText - * - Integer - * - Number - * - Boolean - * - Date - * - Location - * - Object - * - Entry - * - Entries - * - Asset - * - Assets - * - File - */ -export declare function toInternalFieldType(api: Partial): "Boolean" | "Symbol" | "Number" | "Asset" | "Entry" | "Text" | "RichText" | "Integer" | "Date" | "Object" | "Location" | "File" | "Resource" | "Symbols" | "Entries" | "Assets" | "Resources" | undefined; -export declare const DEFAULTS_WIDGET: { - Text: { - widgetId: string; - }; - Symbol: { - widgetId: string; - }; - Integer: { - widgetId: string; - }; - Number: { - widgetId: string; - }; - Boolean: { - widgetId: string; - }; - Date: { - widgetId: string; - }; - Location: { - widgetId: string; - }; - Object: { - widgetId: string; - }; - RichText: { - widgetId: string; - }; - Entry: { - widgetId: string; - }; - Asset: { - widgetId: string; - }; - Symbols: { - widgetId: string; - }; - Entries: { - widgetId: string; - }; - Assets: { - widgetId: string; - }; - File: { - widgetId: string; - }; - Resource: { - widgetId: string; - }; - Resources: { - widgetId: string; - }; -}; -export declare const DEFAULTS_SETTINGS: { - readonly Boolean: { - readonly falseLabel: "No"; - readonly helpText: null; - readonly trueLabel: "Yes"; - }; - readonly Date: { - readonly helpText: null; - readonly ampm: "24"; - readonly format: "timeZ"; - }; - readonly Entry: { - readonly helpText: null; - readonly showCreateEntityAction: true; - readonly showLinkEntityAction: true; - }; - readonly Asset: { - readonly helpText: null; - readonly showCreateEntityAction: true; - readonly showLinkEntityAction: true; - }; - readonly Entries: { - readonly helpText: null; - readonly bulkEditing: false; - readonly showCreateEntityAction: true; - readonly showLinkEntityAction: true; - }; - readonly Assets: { - readonly helpText: null; - readonly showCreateEntityAction: true; - readonly showLinkEntityAction: true; - }; -}; -interface DefaultWidget { - widgetId: string; - settings?: { - helpText: null | string; - }; - fieldId: string; - widgetNamespace: 'builtin'; -} -/** - * Given our internal identifier returns a minimal API field object. - */ -export declare function toApiFieldType(internal: keyof typeof INTERNAL_TO_API): { - readonly type: "Symbol"; -} | { - readonly type: "Text"; -} | { - readonly type: "RichText"; -} | { - readonly type: "Integer"; -} | { - readonly type: "Number"; -} | { - readonly type: "Boolean"; -} | { - readonly type: "Date"; -} | { - readonly type: "Location"; -} | { - readonly type: "Object"; -} | { - readonly type: "File"; -} | { - readonly type: "Link"; - readonly linkType: "Entry"; -} | { - readonly type: "Link"; - readonly linkType: "Asset"; -} | { - readonly type: "ResourceLink"; -} | { - readonly type: "Array"; - readonly items: { - readonly type: "Symbol"; - }; -} | { - readonly type: "Array"; - readonly items: { - readonly type: "Link"; - readonly linkType: "Entry"; - }; -} | { - readonly type: "Array"; - readonly items: { - readonly type: "Link"; - readonly linkType: "Asset"; - }; -} | { - readonly type: "Array"; - readonly items: { - readonly type: "ResourceLink"; - }; -}; -export default function getDefaultControlOfField(field: ContentFields): DefaultWidget | { - widgetId: string; - fieldId: string; - widgetNameSpace: string; -}; -export {}; diff --git a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/editors-defaults.d.ts b/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/editors-defaults.d.ts deleted file mode 100644 index 86962293..00000000 --- a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/editors-defaults.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { WidgetNamespace } from './types'; -export declare const EntryEditorWidgetTypes: { - DEFAULT_EDITOR: { - name: string; - id: string; - icon: string; - }; - REFERENCE_TREE: { - name: string; - id: string; - icon: string; - }; - TAGS_EDITOR: { - name: string; - id: string; - icon: string; - }; -}; -export declare const EntryConfiguration: { - widgetId: string; - widgetNamespace: WidgetNamespace; - name: string; -}[]; diff --git a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/index.d.ts b/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/index.d.ts deleted file mode 100644 index cb17f47a..00000000 --- a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import getDefaultControlOfField from './controls-defaults'; -declare const _default: { - SidebarEntryConfiguration: { - widgetId: string; - widgetNamespace: import("./types").WidgetNamespace; - name: string; - description: string; - }[]; - SidebarAssetConfiguration: { - widgetId: string; - widgetNamespace: import("./types").WidgetNamespace; - name: string; - description: string; - }[]; - EntryConfiguration: { - widgetId: string; - widgetNamespace: import("./types").WidgetNamespace; - name: string; - }[]; - getDefaultControlOfField: typeof getDefaultControlOfField; -}; -export default _default; diff --git a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/sidebar-defaults.d.ts b/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/sidebar-defaults.d.ts deleted file mode 100644 index 23c68f47..00000000 --- a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/sidebar-defaults.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { WidgetNamespace } from './types'; -export declare const SidebarEntryConfiguration: { - widgetId: string; - widgetNamespace: WidgetNamespace; - name: string; - description: string; -}[]; -export declare const SidebarAssetConfiguration: { - widgetId: string; - widgetNamespace: WidgetNamespace; - name: string; - description: string; -}[]; diff --git a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/types.d.ts b/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/types.d.ts deleted file mode 100644 index c87b5bdf..00000000 --- a/node_modules/contentful-management/dist/typings/constants/editor-interface-defaults/types.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare enum WidgetNamespace { - BUILTIN = "builtin", - EXTENSION = "extension", - SIDEBAR_BUILTIN = "sidebar-builtin", - APP = "app", - EDITOR_BUILTIN = "editor-builtin" -} -export declare const DEFAULT_EDITOR_ID = "default-editor"; -/** - * @private - */ -export declare const in_: (key: K, object: O) => key is K & keyof O; diff --git a/node_modules/contentful-management/dist/typings/contentful-management.d.ts b/node_modules/contentful-management/dist/typings/contentful-management.d.ts deleted file mode 100644 index 523efc38..00000000 --- a/node_modules/contentful-management/dist/typings/contentful-management.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Contentful Management API SDK. Allows you to create instances of a client - * with access to the Contentful Content Management API. - * @packageDocumentation - */ -import type { RestAdapterParams } from './adapters/REST/rest-adapter'; -import type { XOR } from './common-types'; -import { AdapterParams } from './create-adapter'; -import { ClientAPI } from './create-contentful-api'; -import type { PlainClientAPI } from './plain/common-types'; -import type { DefaultParams } from './plain/plain-client'; -import * as editorInterfaceDefaults from './constants/editor-interface-defaults'; -export type { ClientAPI } from './create-contentful-api'; -export { asIterator } from './plain/as-iterator'; -export { isDraft, isPublished, isUpdated } from './plain/checks'; -export type { PlainClientAPI } from './plain/common-types'; -export { createClient }; -export { RestAdapter } from './adapters/REST/rest-adapter'; -export { editorInterfaceDefaults }; -export type PlainClientDefaultParams = DefaultParams; -export * from './export-types'; -interface UserAgentParams { - /** - * Application name and version e.g myApp/version - */ - application?: string; - /** - * Integration name and version e.g react/version - */ - integration?: string; - feature?: string; -} -/** - * @deprecated - */ -export type ClientParams = RestAdapterParams & UserAgentParams; -type ClientOptions = UserAgentParams & XOR; -/** - * Create a client instance - * @param params - Client initialization parameters - * - * ```javascript - * const client = contentfulManagement.createClient({ - * accessToken: 'myAccessToken' - * }) - * ``` - */ -declare function createClient(params: ClientOptions): ClientAPI; -declare function createClient(params: ClientOptions, opts: { - type: 'plain'; - defaults?: DefaultParams; -}): PlainClientAPI; -/** - * @deprecated The `alphaFeatures` option is no longer supported. Please use the function without this option. - */ -declare function createClient(params: ClientOptions, opts: { - type?: 'plain'; - alphaFeatures: string[]; - defaults?: DefaultParams; -}): ClientAPI | PlainClientAPI; diff --git a/node_modules/contentful-management/dist/typings/create-adapter.d.ts b/node_modules/contentful-management/dist/typings/create-adapter.d.ts deleted file mode 100644 index 613de49c..00000000 --- a/node_modules/contentful-management/dist/typings/create-adapter.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @packageDocumentation - * @hidden - */ -import { Adapter } from './common-types'; -import { RestAdapterParams } from './adapters/REST/rest-adapter'; -export type AdapterParams = { - apiAdapter: Adapter; -}; -/** - * @private - */ -export declare function createAdapter(params: RestAdapterParams | AdapterParams): Adapter; diff --git a/node_modules/contentful-management/dist/typings/create-app-definition-api.d.ts b/node_modules/contentful-management/dist/typings/create-app-definition-api.d.ts deleted file mode 100644 index 1181a800..00000000 --- a/node_modules/contentful-management/dist/typings/create-app-definition-api.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { MakeRequest, QueryOptions, SpaceQueryOptions } from './common-types'; -import { CreateAppBundleProps } from './entities/app-bundle'; -/** - * @private - */ -export type ContentfulAppDefinitionAPI = ReturnType; -/** - * @private - */ -export default function createAppDefinitionApi(makeRequest: MakeRequest): { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => { - * appDefinition.name = 'New App Definition name' - * return appDefinition.update() - * }) - * .then((appDefinition) => console.log(`App Definition ${appDefinition.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: () => Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.delete()) - * .then(() => console.log(`App Definition deleted.`)) - * .catch(console.error) - * ``` - */ - delete: () => Promise; - /** - * Gets an app bundle - * @param id - AppBundle ID - * @return Promise for an AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - getAppBundle(id: string): Promise; - /** - * Gets a collection of AppBundles - * @return Promise for a collection of AppBundles - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppBundles(query?: QueryOptions): Promise>; - /** - * Creates an app bundle - * @param Object representation of the App Bundle to be created - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.createAppBundle('')) - * .then((appBundle) => console.log(appBundle)) - * .catch(console.error) - * ``` - */ - createAppBundle(data: CreateAppBundleProps): Promise; - /** - * Gets a list of App Installations across an org for given organization and App Definition - * If a spaceId is provided in the query object, it will return the App Installations for that specific space. - * @return Promise for the newly created AppBundle - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getAppDefinition('', '') - * .then((appDefinition) => appDefinition.getInstallationsForOrg( - * { spaceId: '' } // optional - * )) - * .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items)) - * .catch(console.error) - * ``` - */ - getInstallationsForOrg(query?: SpaceQueryOptions): Promise; -}; diff --git a/node_modules/contentful-management/dist/typings/create-contentful-api.d.ts b/node_modules/contentful-management/dist/typings/create-contentful-api.d.ts deleted file mode 100644 index 5a019108..00000000 --- a/node_modules/contentful-management/dist/typings/create-contentful-api.d.ts +++ /dev/null @@ -1,390 +0,0 @@ -import { Collection, MakeRequest, PaginationQueryParams, QueryOptions, QueryParams, GetAppDefinitionParams, CursorPaginatedCollection, GetEnvironmentTemplateParams, BasicCursorPaginationOptions } from './common-types'; -import { Organization, OrganizationProp } from './entities/organization'; -import { CreatePersonalAccessTokenProps } from './entities/personal-access-token'; -import { Space, SpaceProps } from './entities/space'; -import { AppDefinition } from './entities/app-definition'; -import { UsageQuery } from './entities/usage'; -import { UserProps } from './entities/user'; -import { CreateEnvironmentTemplateProps, EnvironmentTemplate, EnvironmentTemplateProps } from './entities/environment-template'; -import { RawAxiosRequestConfig } from 'axios'; -export type ClientAPI = ReturnType; -type CreateSpaceProps = Omit & { - defaultLocale?: string; -}; -/** - * @private - */ -export default function createClientApi(makeRequest: MakeRequest): { - /** - * Gets all environment templates for a given organization with the lasted version - * @param organizationId - Organization ID - * @return Promise for a collection of EnvironmentTemplates - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplates('') - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplates: (organizationId: string, query?: BasicCursorPaginationOptions & { - select?: string; - }) => Promise>; - /** - * Gets the lasted version environment template if params.version is not specified - * @param params.organizationId - Organization ID - * @param params.environmentTemplateId - Environment template ID - * @param [params.version] - Template version number to return a specific version of the environment template - * @return Promise for a EnvironmentTemplate - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getEnvironmentTemplate({ - * organizationId: '', - * environmentTemplateId: '', - * version: version> - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplate: ({ organizationId, environmentTemplateId, version, query, }: import("./common-types").GetOrganizationParams & { - environmentTemplateId: string; - } & { - version?: number | undefined; - query?: { - select?: string | undefined; - } | undefined; - }) => Promise; - /** - * Creates an environment template - * @param organizationId - Organization ID - * @param environmentTemplateData - Object representation of the environment template to be created - * @return Promise for the newly created EnvironmentTemplate - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createEnvironmentTemplate('', {}) - * .then((environmentTemplate) => console.log(environmentTemplate)) - * .catch(console.error) - * ``` - */ - createEnvironmentTemplate: (organizationId: string, environmentTemplateData: CreateEnvironmentTemplateProps) => Promise; - /** - * Gets all spaces - * @return Promise for a collection of Spaces - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaces() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaces: (query?: QueryOptions) => Promise>; - /** - * Gets a space - * @param spaceId - Space ID - * @return Promise for a Space - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - getSpace: (spaceId: string) => Promise; - /** - * Creates a space - * @param spaceData - Object representation of the Space to be created - * @param organizationId - Organization ID, if the associated token can manage more than one organization. - * @return Promise for the newly created Space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createSpace({ - * name: 'Name of new space' - * }) - * .then((space) => console.log(space)) - * .catch(console.error) - * ``` - */ - createSpace: (spaceData: CreateSpaceProps, organizationId: string) => Promise; - /** - * Gets an organization - * @param id - Organization ID - * @return Promise for a Organization - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => console.log(org)) - * .catch(console.error) - * ``` - */ - getOrganization: (id: string) => Promise; - /** - * Gets a collection of Organizations - * @return Promise for a collection of Organizations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizations() - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizations: (query?: PaginationQueryParams['query']) => Promise>; - /** - * Gets the authenticated user - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getCurrentUser() - * .then(user => console.log(user.firstName)) - * .catch(console.error) - * ``` - */ - getCurrentUser: (params?: QueryParams) => Promise; - /** - * Gets App Definition - * @return Promise for App Definition - * @param organizationId - Id of the organization where the app is installed - * @param appDefinitionId - Id of the app that will be returned - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAppDefinition(<'org_id'>, <'app_id'>) - * .then(appDefinition => console.log(appDefinition.name)) - * .catch(console.error) - * ``` - */ - getAppDefinition: (params: GetAppDefinitionParams) => Promise; - /** - * Creates a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.createPersonalAccessToken( - * { - * "name": "My Token", - * "scope": [ - * "content_management_manage" - * ] - * } - * ) - * .then(personalAccessToken => console.log(personalAccessToken.token)) - * .catch(console.error) - * ``` - */ - createPersonalAccessToken: (data: CreatePersonalAccessTokenProps) => Promise; - /** - * @deprecated - use getAccessToken instead - * - * Gets a personal access token - * @param data - personal access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getPersonalAccessToken: (tokenId: string) => Promise; - /** - * @deprecated - use getAccessTokens instead - * - * Gets all personal access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getPersonalAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getPersonalAccessTokens: () => Promise>; - /** - * Gets a users access token - * @param data - users access token config - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessToken(tokenId) - * .then(token => console.log(token.token)) - * .catch(console.error) - * ``` - */ - getAccessToken: (tokenId: string) => Promise; - /** - * Gets all user access tokens - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getAccessTokens() - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getAccessTokens: () => Promise>; - /** - * Retrieves a list of redacted versions of access tokens for an organization, accessible to owners or administrators of an organization. - * - * @return Promise for a Token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationAccessTokens(organizationId) - * .then(response => console.log(reponse.items)) - * .catch(console.error) - * ``` - */ - getOrganizationAccessTokens: (organizationId: string, query?: QueryOptions) => Promise>; - /** - * Get organization usage grouped by {@link UsageMetricEnum metric} - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * @example ```javascript - * - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganizationUsage('', { - * 'metric[in]': 'cma,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2019-11-10' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getOrganizationUsage: (organizationId: string, query?: QueryOptions) => Promise>; - /** - * Get organization usage grouped by space and metric - * - * @param organizationId - Id of an organization - * @param query - Query parameters - * @return Promise of a collection of usages - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpaceUsage('', { - * skip: 0, - * limit: 10, - * 'metric[in]': 'cda,cpa,gql', - * 'dateRange.startAt': '2019-10-22', - * 'dateRange.endAt': '2020-11-30' - * } - * }) - * .then(result => console.log(result.items)) - * .catch(console.error) - * ``` - */ - getSpaceUsage: (organizationId: string, query?: UsageQuery) => Promise>; - /** - * Make a custom request to the Contentful management API's /spaces endpoint - * @param opts - axios request options (https://github.com/mzabriskie/axios) - * @return Promise for the response data - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.rawRequest({ - * method: 'GET', - * url: '/custom/path' - * }) - * .then((responseData) => console.log(responseData)) - * .catch(console.error) - * ``` - */ - rawRequest: ({ url, ...config }: RawAxiosRequestConfig & { - url: string; - }) => Promise; -}; -export {}; diff --git a/node_modules/contentful-management/dist/typings/create-entry-api.d.ts b/node_modules/contentful-management/dist/typings/create-entry-api.d.ts deleted file mode 100644 index 7d7e7682..00000000 --- a/node_modules/contentful-management/dist/typings/create-entry-api.d.ts +++ /dev/null @@ -1,331 +0,0 @@ -import type { OpPatch } from 'json-patch'; -import { MakeRequest } from './common-types'; -import { CreateCommentProps } from './entities/comment'; -import { Entry, EntryProps, EntryReferenceOptionsProps } from './entities/entry'; -import { CreateTaskProps } from './entities/task'; -/** - * @private - */ -export type ContentfulEntryApi = ReturnType; -/** - * @private - */ -export default function createEntryApi(makeRequest: MakeRequest): { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => { - * entry.fields.title['en-US'] = 'New entry title' - * return entry.update() - * }) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update: () => Promise; - /** - * Sends an JSON patch to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.patch([ - * { - * op: 'replace', - * path: '/fields/title/en-US', - * value: 'New entry title' - * } - * ])) - * .then((entry) => console.log(`Entry ${entry.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - patch: (ops: OpPatch[]) => Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.delete()) - * .then(() => console.log(`Entry deleted.`)) - * .catch(console.error) - * ``` - */ - delete: () => Promise; - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.publish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} published.`)) - * .catch(console.error) - * ``` - */ - publish: () => Promise; - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unpublish()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unpublished.`)) - * .catch(console.error) - * ``` - */ - unpublish: () => Promise; - /** - * Archives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.archive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} archived.`)) - * .catch(console.error) - * ``` - */ - archive: () => Promise; - /** - * Unarchives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.unarchive()) - * .then((entry) => console.log(`Entry ${entry.sys.id} unarchived.`)) - * .catch(console.error) - * ``` - */ - unarchive: () => Promise; - /** - * Gets all snapshots of an entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshots()) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getSnapshots: (query?: {}) => Promise>, import("./export-types").SnapshotProps>>>; - /** - * Gets a snapshot of an entry - * @param snapshotId - Id of the snapshot - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getSnapshot('')) - * .then((snapshot) => console.log(snapshot)) - * .catch(console.error) - * ``` - */ - getSnapshot: (snapshotId: string) => Promise>>; - /** - * Creates a new comment for an entry - * @param data Object representation of the Comment to be created - * @returns Promise for the newly created Comment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createComment({ - * body: 'Something left to do' - * })) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - createComment: (data: CreateCommentProps) => Promise; - /** - * Gets all comments of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComments()) - * .then((comments) => console.log(comments)) - * .catch(console.error) - * ``` - */ - getComments: () => Promise>; - /** - * Gets a comment of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getComment(``)) - * .then((comment) => console.log(comment)) - * .catch(console.error) - * ``` - */ - getComment: (id: string) => Promise; - /** - * Creates a new task for an entry - * @param data Object representation of the Task to be created - * @returns Promise for the newly created Task - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.createTask({ - * body: 'Something left to do', - * assignedTo: '', - * status: 'active' - * })) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - createTask: (data: CreateTaskProps) => Promise; - /** - * Gets all tasks of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTasks()) - * .then((tasks) => console.log(tasks)) - * .catch(console.error) - * ``` - */ - getTasks: (query?: {}) => Promise>; - /** - * Gets a task of an entry - * @returns - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => entry.getTask(``)) - * .then((task) => console.log(task)) - * .catch(console.error) - * ``` - */ - getTask: (id: string) => Promise; - /** - * Checks if the entry is published. A published entry might have unpublished changes - */ - isPublished: () => boolean; - /** - * Checks if the entry is updated. This means the entry was previously published but has unpublished changes. - */ - isUpdated: () => boolean; - /** - * Checks if the entry is in draft mode. This means it is not published. - */ - isDraft: () => boolean; - /** - * Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs. - */ - isArchived: () => boolean; - /** - * Recursively collects references of an entry and their descendants - */ - references: (options?: EntryReferenceOptionsProps) => Promise>>; -}; diff --git a/node_modules/contentful-management/dist/typings/create-environment-api.d.ts b/node_modules/contentful-management/dist/typings/create-environment-api.d.ts deleted file mode 100644 index b28c40b5..00000000 --- a/node_modules/contentful-management/dist/typings/create-environment-api.d.ts +++ /dev/null @@ -1,1492 +0,0 @@ -import { Stream } from 'stream'; -import type { BasicCursorPaginationOptions, QueryOptions } from './common-types'; -import { BasicQueryOptions, MakeRequest } from './common-types'; -import type { CreateAppInstallationProps } from './entities/app-installation'; -import type { CreateAppSignedRequestProps } from './entities/app-signed-request'; -import type { CreateAppActionCallProps } from './entities/app-action-call'; -import type { AssetFileProp, AssetProps, CreateAssetFromFilesOptions, CreateAssetProps } from './entities/asset'; -import type { CreateAssetKeyProps } from './entities/asset-key'; -import type { BulkAction, BulkActionPayload, BulkActionPublishPayload, BulkActionUnpublishPayload, BulkActionValidatePayload } from './entities/bulk-action'; -import { ReleaseActionQueryOptions } from './entities/release-action'; -import { ReleasePayload, ReleaseQueryOptions, ReleaseValidatePayload } from './entities/release'; -import type { ContentTypeProps, CreateContentTypeProps } from './entities/content-type'; -import type { CreateEntryProps, EntryProps, EntryReferenceOptionsProps, EntryReferenceProps } from './entities/entry'; -import type { CreateExtensionProps } from './entities/extension'; -import type { CreateLocaleProps } from './entities/locale'; -import { TagVisibility } from './entities/tag'; -import { CreateAppAccessTokenProps } from './entities/app-access-token'; -/** - * @private - */ -export type ContentfulEnvironmentAPI = ReturnType; -/** - * Creates API object with methods to access the Environment API - * @param {ContentfulEnvironmentAPI} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -export default function createEnvironmentApi(makeRequest: MakeRequest): { - /** - * Deletes the environment - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.delete()) - * .then(() => console.log('Environment deleted.')) - * .catch(console.error) - * ``` - */ - delete: () => Promise; - /** - * Updates the environment - * @return Promise for the updated environment. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => { - * environment.name = 'New name' - * return environment.update() - * }) - * .then((environment) => console.log(`Environment ${environment.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: () => Promise; - /** - * Creates SDK Entry object (locally) from entry data - * @param entryData - Entry Data - * @return Entry - * @example ```javascript - * environment.getEntry('entryId').then(entry => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = entry.toPlainObject(); - * - * // The entry is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const entryWithMethodsAgain = environment.getEntryFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * entryWithMethodsAgain.update(); - * - * }); - * ``` - **/ - getEntryFromData(entryData: EntryProps): import("./entities/entry").Entry; - /** - * Creates SDK Asset object (locally) from entry data - * @param assetData - Asset ID - * @return Asset - * @example ```javascript - * environment.getAsset('asset_id').then(asset => { - * - * // Build a plainObject in order to make it usable for React (saving in state or redux) - * const plainObject = asset.toPlainObject(); - * - * // The asset is being updated in some way as plainObject: - * const updatedPlainObject = { - * ...plainObject, - * fields: { - * ...plainObject.fields, - * title: { - * 'en-US': 'updatedTitle' - * } - * } - * }; - * - * // Rebuild an sdk object out of the updated plainObject: - * const assetWithMethodsAgain = environment.getAssetFromData(updatedPlainObject); - * - * // Update with help of the sdk method: - * assetWithMethodsAgain.update(); - * - * }); - * ``` - */ - getAssetFromData(assetData: AssetProps): import("./entities/asset").Asset; - /** - * - * @description Get a BulkAction by ID. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/bulk-action - * @param bulkActionId - ID of the BulkAction to fetch - * @returns - Promise with the BulkAction - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getBulkAction('')) - * .then((bulkAction) => console.log(bulkAction)) - * ``` - */ - getBulkAction(bulkActionId: string): Promise>; - /** - * @description Creates a BulkAction that will attempt to publish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/publish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry', version: 2 } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createPublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createPublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createPublishBulkAction(payload: BulkActionPublishPayload): Promise>; - /** - * @description Creates a BulkAction that will attempt to validate all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/validate-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * action: 'publish', - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: '', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createValidateBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await client.getSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createValidateBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createValidateBulkAction(payload: BulkActionValidatePayload): Promise>; - /** - * @description Creates a BulkAction that will attempt to unpublish all items contained in the payload. - * See: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/bulk-actions/unpublish-bulk-action - * @param {BulkActionPayload} payload - Object containing the items to be processed in the bulkAction - * @returns - Promise with the BulkAction - * - * @example - * - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * entities: { - * sys: { type: 'Array' } - * items: [ - * { sys: { type: 'Link', id: 'entry-id', linkType: 'Entry' } } - * ] - * } - * } - * - * // Using Thenables - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUnpublishBulkAction(payload)) - * .then((bulkAction) => console.log(bulkAction.waitProcessing())) - * .catch(console.error) - * - * // Using async/await - * try { - * const space = await clientgetSpace('') - * const environment = await space.getEnvironment('') - * const bulkActionInProgress = await environment.createUnpublishBulkAction(payload) - * - * // You can wait for a recently created BulkAction to be processed by using `bulkAction.waitProcessing()` - * const bulkActionCompleted = await bulkActionInProgress.waitProcessing() - * console.log(bulkActionCompleted) - * } catch (error) { - * console.log(error) - * } - * ``` - */ - createUnpublishBulkAction(payload: BulkActionUnpublishPayload): Promise>; - /** - * Gets a Content Type - * @param contentTypeId - Content Type ID - * @return Promise for a Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - getContentType(contentTypeId: string): Promise; - /** - * Gets a collection of Content Types - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Content Types - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypes()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getContentTypes(query?: QueryOptions): Promise>; - /** - * Creates a Content Type - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentType({ - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentType(data: CreateContentTypeProps): Promise; - /** - * Creates a Content Type with a custom ID - * @param contentTypeId - Content Type ID - * @param data - Object representation of the Content Type to be created - * @return Promise for the newly created Content Type - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createContentTypeWithId('', { - * name: 'Blog Post', - * fields: [ - * { - * id: 'title', - * name: 'Title', - * required: true, - * localized: false, - * type: 'Text' - * } - * ] - * })) - * .then((contentType) => console.log(contentType)) - * .catch(console.error) - * ``` - */ - createContentTypeWithId(contentTypeId: string, data: CreateContentTypeProps): Promise; - /** - * Gets an EditorInterface for a ContentType - * @param contentTypeId - Content Type ID - * @return Promise for an EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaceForContentType('')) - * .then((EditorInterface) => console.log(EditorInterface)) - * .catch(console.error) - * ``` - */ - getEditorInterfaceForContentType(contentTypeId: string): Promise; - /** - * Gets all EditorInterfaces - * @return Promise for a collection of EditorInterface - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEditorInterfaces()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEditorInterfaces(): Promise>; - /** - * Gets an Entry - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Entry ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntry('')) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - getEntry(id: string, query?: QueryOptions): Promise; - /** - * Deletes an Entry of this environment - * @param id - Entry ID - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteEntry("4bmLXiuviAZH3jkj5DLRWE")) - * .then(() => console.log('Entry deleted.')) - * .catch(console.error) - * ``` - */ - deleteEntry(id: string): Promise; - /** - * Gets a collection of Entries - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEntries(query?: QueryOptions): Promise>>; - /** - * Gets a collection of published Entries - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Entries - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedEntries({'content_type': 'foo'})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedEntries(query?: QueryOptions): Promise>>; - /** - * Creates a Entry - * @param contentTypeId - The Content Type ID of the newly created Entry - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntry('', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntry(contentTypeId: string, data: Omit): Promise; - /** - * Creates a Entry with a custom ID - * @param contentTypeId - The Content Type of the newly created Entry - * @param id - Entry ID - * @param data - Object representation of the Entry to be created - * @return Promise for the newly created Entry - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create entry - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createEntryWithId('', '', { - * fields: { - * title: { - * 'en-US': 'Entry title' - * } - * } - * })) - * .then((entry) => console.log(entry)) - * .catch(console.error) - * ``` - */ - createEntryWithId(contentTypeId: string, id: string, data: CreateEntryProps): Promise; - /** - * Get entry references - * @param entryId - Entry ID - * @param {Object} options.include - Level of the entry descendants from 1 up to 10 maximum - * @returns Promise of Entry references - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: ' - * }) - * - * // Get entry references - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntryReferences('', {include: number})) - * .then((entry) => console.log(entry.includes)) - * // or - * .then((environment) => environment.getEntry('')).then((entry) => entry.references({include: number})) - * .catch(console.error) - * ``` - */ - getEntryReferences(entryId: string, options?: EntryReferenceOptionsProps): Promise; - /** - * Gets an Asset - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param id - Asset ID - * @param query - Object with search parameters. In this method it's only useful for `locale`. - * @return Promise for an Asset - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - getAsset(id: string, query?: QueryOptions): Promise; - /** - * Gets a collection of Assets - * Warning: if you are using the select operator, when saving, any field that was not selected will be removed - * from your entry in the backend - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAssets(query?: QueryOptions): Promise>; - /** - * Gets a collection of published Assets - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of published Assets - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getPublishedAssets()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPublishedAssets(query?: QueryOptions): Promise>; - /** - * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAsset({ - * fields: { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * } - * })) - * .then((asset) => asset.processForLocale("en-US")) // OR asset.processForAllLocales() - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAsset(data: CreateAssetProps): Promise; - /** - * Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param id - Asset ID - * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create asset - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * })) - * .then((asset) => asset.process()) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetWithId(id: string, data: CreateAssetProps): Promise; - /** - * Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing. - * @param data - Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished. - * @param data.fields.file.[LOCALE].file - Can be a string, an ArrayBuffer or a Stream. - * @return Promise for the newly created Asset - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetFromFiles({ - * fields: { - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'filename_english.jpg', - * file: createReadStream('path/to/filename_english.jpg') - * }, - * 'de-DE': { - * contentType: 'image/svg+xml', - * fileName: 'filename_german.svg', - * file: '' - * } - * } - * } - * })) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - createAssetFromFiles(data: Omit, options?: CreateAssetFromFilesOptions): Promise; - /** - * Creates an asset key for signing asset URLs (Embargoed Assets) - * @param data Object with request payload - * @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling) - * @return Promise for the newly created AssetKey - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create assetKey - * now = () => Math.floor(Date.now() / 1000) - * const withExpiryIn1Hour = () => now() + 1 * 60 * 60 - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() })) - * .then((policy, secret) => console.log({ policy, secret })) - * .catch(console.error) - * ``` - */ - createAssetKey(payload: CreateAssetKeyProps): Promise; - /** - * Gets an Upload - * @param id - Upload ID - * @return Promise for an Upload - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUpload('') - * .then((upload) => console.log(upload)) - * .catch(console.error) - */ - getUpload(id: string): Promise<{ - delete: () => Promise; - } & import("./export-types").UploadProps & { - toPlainObject(): import("./export-types").UploadProps; - }>; - /** - * Creates a Upload. - * @param data - Object with file information. - * @param data.file - Actual file content. Can be a string, an ArrayBuffer or a Stream. - * @return Upload object containing information about the uploaded file. - * @example ```javascript - * const client = contentful.createClient({ - * accessToken: '' - * }) - * const uploadStream = createReadStream('path/to/filename_english.jpg') - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUpload({file: uploadStream}) - * .then((upload) => console.log(upload)) - * .catch(console.error) - * ``` - */ - createUpload: (data: { - file: string | ArrayBuffer | Stream; - }) => Promise<{ - delete: () => Promise; - } & import("./export-types").UploadProps & { - toPlainObject(): import("./export-types").UploadProps; - }>; - /** - * Gets a Locale - * @param localeId - Locale ID - * @return Promise for an Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - getLocale(localeId: string): Promise; - /** - * Gets a collection of Locales - * @return Promise for a collection of Locales - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocales()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getLocales(): Promise>; - /** - * Creates a Locale - * @param data - Object representation of the Locale to be created - * @return Promise for the newly created Locale - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Create locale - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createLocale({ - * name: 'German (Austria)', - * code: 'de-AT', - * fallbackCode: 'de-DE', - * optional: true - * })) - * .then((locale) => console.log(locale)) - * .catch(console.error) - * ``` - */ - createLocale(data: CreateLocaleProps): Promise; - /** - * Gets an UI Extension - * @param id - Extension ID - * @return Promise for an UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - getUiExtension(id: string): Promise; - /** - * Gets a collection of UI Extension - * @return Promise for a collection of UI Extensions - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtensions() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getUiExtensions(): Promise>; - /** - * Creates a UI Extension - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtension({ - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtension(data: CreateExtensionProps): Promise; - /** - * Creates a UI Extension with a custom ID - * @param id - Extension ID - * @param data - Object representation of the UI Extension to be created - * @return Promise for the newly created UI Extension - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createUiExtensionWithId('', { - * extension: { - * name: 'My awesome extension', - * src: 'https://example.com/my', - * fieldTypes: [ - * { - * type: 'Symbol' - * }, - * { - * type: 'Text' - * } - * ], - * sidebar: false - * } - * })) - * .then((extension) => console.log(extension)) - * .catch(console.error) - * ``` - */ - createUiExtensionWithId(id: string, data: CreateExtensionProps): Promise; - /** - * Creates an App Installation - * @param appDefinitionId - AppDefinition ID - * @param data - AppInstallation data - * @param options.acceptAllTerms - Flag for accepting Apps' Marketplace EULA, Terms, and Privacy policy (need to pass `{acceptAllTerms: true}` to install a marketplace app) - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppInstallation('', { - * parameters: { - * someParameter: someValue - * } - * }) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - createAppInstallation(appDefinitionId: string, data: CreateAppInstallationProps, { acceptAllTerms }?: { - acceptAllTerms?: boolean | undefined; - }): Promise; - /** - * Gets an App Installation - * @param id - AppDefintion ID - * @return Promise for an App Installation - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => console.log(appInstallation)) - * .catch(console.error) - * ``` - */ - getAppInstallation(id: string): Promise; - /** - * Gets a collection of App Installation - * @return Promise for a collection of App Installations - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallations() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppInstallations(): Promise>; - /** - * Creates an app action call - * @param appDefinitionId - AppDefinition ID - * @param appActionId - action ID - * @param data - App Action Call data - * @return Promise for an App Action Call - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * headers: { - * 'x-my-header': 'some-value' - * }, - * body: { - * 'some-body-value': true - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppActionCall('', '', data) - * .then((appActionCall) => console.log(appActionCall)) - * .catch(console.error) - * ``` - */ - createAppActionCall(appDefinitionId: string, appActionId: string, data: CreateAppActionCallProps): Promise; - /** - * Creates an app signed request - * @param appDefinitionId - AppDefinition ID - * @param data - SignedRequest data - * @return Promise for a Signed Request - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * method: 'POST', - * path: '/request_path', - * body: '{ "key": "data" }', - * headers: { - * 'x-my-header': 'some-value' - * }, - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppSignedRequest('', data) - * .then((signedRequest) => console.log(signedRequest)) - * .catch(console.error) - * ``` - */ - createAppSignedRequest(appDefinitionId: string, data: CreateAppSignedRequestProps): Promise; - /** - * Creates an app access token - * @param appDefinitionId - AppDefinition ID - * @param data - Json Web Token - * @return Promise for an app access token - * @example ```javascript - * const contentful = require('contentful-management') - * const { sign } = require('jsonwebtoken') - * - * const signOptions = { algorithm: 'RS256', issuer: '', expiresIn: '10m' } - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const data = { - * jwt: sign({}, '', signOptions) - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAppAccessToken('', data) - * .then((appAccessToken) => console.log(appAccessToken)) - * .catch(console.error) - * ``` - */ - createAppAccessToken(appDefinitionId: string, data: CreateAppAccessTokenProps): Promise; - /** - * Gets all snapshots of an entry - * @func getEntrySnapshots - * @param entryId - Entry ID - * @param query - query additional query paramaters - * @return Promise for a collection of Entry Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEntrySnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getEntrySnapshots(entryId: string, query?: QueryOptions): Promise>, import("./export-types").SnapshotProps>>>; - /** - * Gets all snapshots of a contentType - * @func getContentTypeSnapshots - * @param contentTypeId - Content Type ID - * @param query - query additional query paramaters - * @return Promise for a collection of Content Type Snapshots - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentTypeSnapshots('')) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getContentTypeSnapshots(contentTypeId: string, query?: QueryOptions): Promise, import("./export-types").SnapshotProps>>; - createTag(id: string, name: string, visibility?: TagVisibility): Promise; - getTags(query?: BasicQueryOptions): Promise>; - getTag(id: string): Promise; - /** - * Retrieves a Release by ID - * @param releaseId - * @returns Promise containing a wrapped Release - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getRelease('')) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - getRelease(releaseId: string): Promise; - /** - * Gets a Collection of Releases, - * @param {ReleaseQueryOptions} query filtering options for the collection result - * @returns Promise containing a wrapped Release Collection - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleases({ 'entities.sys.id[in]': ',' })) - * .then((releases) => console.log(releases)) - * .catch(console.error) - * ``` - */ - getReleases(query?: ReleaseQueryOptions): Promise>; - /** - * Creates a new Release with the entities and title in the payload - * @param payload Object containing the payload in order to create a Release - * @returns Promise containing a wrapped Release, that has other helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const payload = { - * title: 'My Release', - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createRelease(payload)) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - createRelease(payload: ReleasePayload): Promise; - /** - * Updates a Release and replaces all the properties. - * @param {object} options, - * @param options.releaseId the ID of the release - * @param options.payload the payload to be updated in the Release - * @param options.version Release sys.version that to be updated - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * - * const payload = { - * title: "Updated Release title", - * entities: { - * sys: { type: 'Array' }, - * items: [ - * { sys: { linkType: 'Entry', type: 'Link', id: '' } } - * ] - * } - * } - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.updateRelease({ releaseId: '', version: 1, payload } )) - * .then((release) => console.log(release)) - * .catch(console.error) - * ``` - */ - updateRelease({ releaseId, payload, version, }: { - releaseId: string; - payload: ReleasePayload; - version: number; - }): Promise; - /** - * Deletes a Release by ID - does not delete any entities. - * @param releaseId the ID of the release - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.deleteRelease('') - * .catch(console.error) - * ``` - */ - deleteRelease(releaseId: string): Promise; - /** - * Publishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.publishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - publishRelease({ releaseId, version }: { - releaseId: string; - version: number; - }): Promise>; - /** - * Unpublishes all Entities contained in a Release. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be published - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unpublishRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unpublishRelease({ releaseId, version }: { - releaseId: string; - version: number; - }): Promise>; - /** - * Validates all Entities contained in a Release against an action (publish or unpublish) - * @param options.releaseId the ID of the release - * @param options.payload (optional) the type of action to be validated against - * - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.validateRelease({ releaseId: '', payload: { action: 'unpublish' } })) - * .catch(console.error) - * ``` - */ - validateRelease({ releaseId, payload, }: { - releaseId: string; - payload?: ReleaseValidatePayload | undefined; - }): Promise>; - /** - * Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc). - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be archived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.archiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - archiveRelease({ releaseId, version }: { - releaseId: string; - version: number; - }): Promise; - /** - * Unarchives a previously archived Release - this enables the release to be published, unpublished etc. - * @param options.releaseId the ID of the release - * @param options.version the version of the release that is to be unarchived - * @returns Promise containing a wrapped Release, that has helper methods within. - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.unarchiveRelease({ releaseId: '', version: 1 })) - * .catch(console.error) - * ``` - */ - unarchiveRelease({ releaseId, version }: { - releaseId: string; - version: number; - }): Promise; - /** - * Retrieves a ReleaseAction by ID - * @param params.releaseId The ID of a Release - * @param params.actionId The ID of a Release Action - * @returns Promise containing a wrapped ReleaseAction - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseAction({ releaseId: '', actionId: '' })) - * .then((releaseAction) => console.log(releaseAction)) - * .catch(console.error) - * ``` - */ - getReleaseAction({ actionId, releaseId }: { - actionId: string; - releaseId: string; - }): Promise>; - /** - * Gets a Collection of ReleaseActions - * @param {string} params.releaseId ID of the Release to fetch the actions from - * @param {ReleaseQueryOptions} params.query filtering options for the collection result - * @returns Promise containing a wrapped ReleaseAction Collection - * - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getReleaseActions({ query: { 'sys.id[in]': ',', 'sys.release.sys.id[in]': ',' } })) - * .then((releaseActions) => console.log(releaseActions)) - * .catch(console.error) - * ``` - */ - getReleaseActions({ query }: { - query?: ReleaseActionQueryOptions | undefined; - }): Promise, import("./entities/release-action").ReleaseActionProps>>; - getUIConfig(): Promise<{ - update: () => Promise; - } & import("./entities/ui-config").UIConfigProps & { - toPlainObject(): import("./entities/ui-config").UIConfigProps; - }>; - getUserUIConfig(): Promise<{ - update: () => Promise; - } & import("./entities/user-ui-config").UserUIConfigProps & { - toPlainObject(): import("./entities/user-ui-config").UserUIConfigProps; - }>; - /** - * Gets a collection of all environment template installations in the environment for a given template - * @param environmentTemplateId - Environment template ID to return installations for - * @param [options.installationId] - Installation ID to filter for a specific installation - * @return Promise for a collection of EnvironmentTemplateInstallations - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getEnvironmentTemplateInstallations('')) - * .then((installations) => console.log(installations.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentTemplateInstallations(environmentTemplateId: string, { installationId, ...query }?: BasicCursorPaginationOptions & { - installationId?: string | undefined; - }): Promise>; -}; diff --git a/node_modules/contentful-management/dist/typings/create-organization-api.d.ts b/node_modules/contentful-management/dist/typings/create-organization-api.d.ts deleted file mode 100644 index 4eeabe00..00000000 --- a/node_modules/contentful-management/dist/typings/create-organization-api.d.ts +++ /dev/null @@ -1,858 +0,0 @@ -import { Stream } from 'stream'; -import { CreateTeamMembershipProps } from './entities/team-membership'; -import { CreateTeamProps } from './entities/team'; -import { CreateOrganizationInvitationProps } from './entities/organization-invitation'; -import { BasicQueryOptions, MakeRequest, QueryOptions, QueryParams } from './common-types'; -import { CreateAppDefinitionProps } from './entities/app-definition'; -import { CreateAppActionProps } from './entities/app-action'; -import { CreateAppSigningSecretProps } from './entities/app-signing-secret'; -import { CreateAppEventSubscriptionProps } from './entities/app-event-subscription'; -import { CreateAppKeyProps } from './entities/app-key'; -import { CreateAppDetailsProps } from './entities/app-details'; -/** - * @private - */ -export type ContentfulOrganizationAPI = ReturnType; -/** - * Creates API object with methods to access the Organization API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulOrganizationAPI} - * @private - */ -export default function createOrganizationApi(makeRequest: MakeRequest): { - /** - * Gets a collection of spaces in the organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getSpaces()) - * .then((spaces) => console.log(spaces)) - * .catch(console.error) - * ``` - */ - getSpaces(query?: QueryOptions): Promise>; - /** - * Gets a User - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getUser(id: string): Promise; - /** - * Gets a collection of Users in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getUsers()) - * .then((users) => console.log(users)) - * .catch(console.error) - * ``` - */ - getUsers(query?: QueryOptions): Promise>; - /** - * Gets an Organization Membership - * @param id - Organization Membership ID - * @return Promise for an Organization Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationMembership(id: string): Promise; - /** - * Gets a collection of Organization Memberships - * @param params - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Organization Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationMemberships(params?: QueryParams): Promise>; - /** - * Creates a Team - * @param data representation of the Team to be created - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createTeam({ - * name: 'new team', - * description: 'new team description' - * })) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - createTeam(data: CreateTeamProps): Promise; - /** - * Gets an Team - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeam('teamId')) - * .then((team) => console.log(team)) - * .catch(console.error) - * ``` - */ - getTeam(teamId: string): Promise; - /** - * Gets all Teams in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('orgId') - * .then((organization) => organization.getTeams()) - * .then((teams) => console.log(teams)) - * .catch(console.error) - * ``` - */ - getTeams(query?: QueryOptions): Promise>; - /** - * Creates a Team membership - * @param teamId - Id of the team the membership will be created in - * @param data - Object representation of the Team Membership to be created - * @return Promise for the newly created TeamMembership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((org) => org.createTeamMembership('teamId', { - * admin: true, - * organizationMembershipId: 'organizationMembershipId' - * })) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - createTeamMembership(teamId: string, data: CreateTeamMembershipProps): Promise; - /** - * Gets an Team Membership from the team with given teamId - * @return Promise for an Team Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMembership('teamId', 'teamMembership_id')) - * .then((teamMembership) => console.log(teamMembership)) - * .catch(console.error) - * ``` - */ - getTeamMembership(teamId: string, teamMembershipId: string): Promise; - /** - * Get all Team Memberships. If teamID is provided in the optional config object, it will return all Team Memberships in that team. By default, returns all team memberships for the organization. - * @return Promise for a Team Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamMemberships('teamId')) - * .then((teamMemberships) => console.log(teamMemberships)) - * .catch(console.error) - * ``` - */ - getTeamMemberships(opts?: { - teamId?: string; - query?: QueryOptions; - }): Promise>; - /** - * Get all Team Space Memberships. If teamID is provided in the optional config object, it will return all Team Space Memberships in that team. By default, returns all team space memberships across all teams in the organization. - * @return Promise for a Team Space Membership Collection - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMemberships('teamId')) - * .then((teamSpaceMemberships) => console.log(teamSpaceMemberships)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(opts?: { - teamId?: string; - query?: QueryOptions; - }): Promise>; - /** - * Get a Team Space Membership with given teamSpaceMembershipId - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then((organization) => organization.getTeamSpaceMembership('teamSpaceMembershipId')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error)] - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId: string): Promise; - /** - * Gets an Space Membership in Organization - * @param id - Organiztion Space Membership ID - * @return Promise for a Space Membership in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMembership('organizationSpaceMembership_id')) - * .then((organizationMembership) => console.log(organizationMembership)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMembership(id: string): Promise; - /** - * Gets a collection Space Memberships in organization - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a Space Membership collection across all spaces in the organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then((organization) => organization.getOrganizationSpaceMemberships()) // you can add queries like 'limit': 100 - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getOrganizationSpaceMemberships(query?: QueryOptions): Promise>; - /** - * Gets an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.getOrganizationInvitation('invitation_id')) - * .then((invitation) => console.log(invitation)) - * .catch(console.error) - * ``` - */ - getOrganizationInvitation(invitationId: string): Promise; - /** - * Create an Invitation in Organization - * @return Promise for a OrganizationInvitation in an organization - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((organization) => organization.createOrganizationInvitation({ - * email: 'user.email@example.com' - * firstName: 'User First Name' - * lastName: 'User Last Name' - * role: 'developer' - * }) - * .catch(console.error) - * ``` - */ - createOrganizationInvitation(data: CreateOrganizationInvitationProps): Promise; - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query?: QueryOptions): Promise>; - /** - * Creates an app definition - * @param Object representation of the App Definition to be created - * @return Promise for the newly created AppDefinition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppDefinition({ - * name: 'Example app', - * locations: [{ location: 'app-config' }], - * src: "http://my-app-host.com/my-app" - * })) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - createAppDefinition(data: CreateAppDefinitionProps): Promise; - /** - * Gets all app definitions - * @return Promise for a collection of App Definitions - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinitions()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getAppDefinitions(query?: QueryOptions): Promise>; - /** - * Gets an app definition - * @return Promise for an App Definition - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => console.log(appDefinition)) - * .catch(console.error) - * ``` - */ - getAppDefinition(id: string): Promise; - /** - * Gets an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppUpload('')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - getAppUpload(appUploadId: string): Promise; - /** - * Creates an app upload - * @return Promise for an App Upload - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppUpload('some_zip_file')) - * .then((appUpload) => console.log(appUpload)) - * .catch(console.error) - * ``` - */ - createAppUpload(file: string | ArrayBuffer | Stream): Promise; - /** - * Creates or updates an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppSigningSecret('app_definition_id', { value: 'tsren3s1....wn1e' })) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - upsertAppSigningSecret(appDefinitionId: string, data: CreateAppSigningSecretProps): Promise; - /** - * Gets an app signing secret - * @return Promise for an App SigningSecret - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppSigningSecret('app_definition_id')) - * .then((appSigningSecret) => console.log(appSigningSecret)) - * .catch(console.error) - * ``` - */ - getAppSigningSecret(appDefinitionId: string): Promise; - /** - * Deletes an app signing secret - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppSigningSecret('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppSigningSecret(appDefinitionId: string): Promise; - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { targetUrl: '', topics: [''] })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - upsertAppEventSubscription(appDefinitionId: string, data: CreateAppEventSubscriptionProps): Promise; - /** - * Gets an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppEventSubscription('app_definition_id')) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - getAppEventSubscription(appDefinitionId: string): Promise; - /** - * Deletes the current App Event Subscription for the given App - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppEventSubscription('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppEventSubscription(appDefinitionId: string): Promise; - /** - * Creates or updates an app event subscription - * @return Promise for an App Event Subscription - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // generate a new private key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { generate: true })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * - * // or use an existing JSON Web Key - * client.getOrganization('') - * .then((org) => org.upsertAppEventSubscription('app_definition_id', { jwk: 'jwk' })) - * .then((appEventSubscription) => console.log(appEventSubscription)) - * .catch(console.error) - * ``` - */ - createAppKey(appDefinitionId: string, data: CreateAppKeyProps): Promise; - /** - * Gets an app key by fingerprint - * @return Promise for an App Key - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppKey('app_definition_id', 'fingerprint')) - * .then((appKey) => console.log(appKey)) - * .catch(console.error) - * ``` - */ - getAppKey(appDefinitionId: string, fingerprint: string): Promise; - /** - * Gets all keys for the given app - * @return Promise for an array of App Keys - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // with default pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id')) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * - * // with explicit pagination - * client.getOrganization('') - * .then((org) => org.getAppKeys('app_definition_id', { skip: 'skip', limit: 'limit' })) - * .then((appKeys) => console.log(appKeys)) - * .catch(console.error) - * ``` - */ - getAppKeys(appDefinitionId: string, query?: BasicQueryOptions): Promise>; - /** - * Deletes an app key by fingerprint. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppKey('app_definition_id', 'fingerprint')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppKey(appDefinitionId: string, fingerprint: string): Promise; - /** - * Creates or updates an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.upsertAppDetails('app_definition_id', - * { icon: { value: 'base_64_image', type: 'base64' }} - * )) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - upsertAppDetails(appDefinitionId: string, data: CreateAppDetailsProps): Promise; - /** - * Gets an app details entity - * @return Promise for an App Details - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDetails('app_definition_id')) - * .then((appDetails) => console.log(appDetails)) - * .catch(console.error) - * ``` - */ - getAppDetails(appDefinitionId: string): Promise; - /** - * Deletes an app details entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppDetails('app_definition_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppDetails(appDefinitionId: string): Promise; - /** - * Creates an app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.createAppAction('app_definition_id', { - * type: 'endpoint', - * name: 'my nice new app action', - * url: 'https://www.somewhere.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - createAppAction(appDefinitionId: string, data: CreateAppActionProps): Promise<({ - category: "Entries.v1.0" | "Notification.v1.0"; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - }) | ({ - category: "Custom"; - parameters: import("./entities/app-action").AppActionParameterDefinition[]; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - })>; - /** - * Updates an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.updateAppAction('app_definition_id', 'app_action_id', { - * type: 'endpoint', - * name: 'my nice updated app action', - * url: 'https://www.somewhere-else.com/action' - * })) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - updateAppAction(appDefinitionId: string, appActionId: string, data: CreateAppActionProps): Promise<({ - category: "Entries.v1.0" | "Notification.v1.0"; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - }) | ({ - category: "Custom"; - parameters: import("./entities/app-action").AppActionParameterDefinition[]; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - })>; - /** - * Deletes an app action entity. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.deleteAppAction('app_definition_id', 'app_action_id')) - * .then((result) => console.log(result)) - * .catch(console.error) - * ``` - */ - deleteAppAction(appDefinitionId: string, appActionId: string): Promise; - /** - * Gets an existing app action entity. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppAction('app_definition_id', 'app_action_id')) - * .then((appAction) => console.log(appAction)) - * .catch(console.error) - * ``` - */ - getAppAction(appDefinitionId: string, appActionId: string): Promise<({ - category: "Entries.v1.0" | "Notification.v1.0"; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - }) | ({ - category: "Custom"; - parameters: import("./entities/app-action").AppActionParameterDefinition[]; - } & { - sys: { - type: string; - id: string; - createdBy?: import("./common-types").SysLink | undefined; - createdAt: string; - updatedBy?: import("./common-types").SysLink | undefined; - updatedAt: string; - } & { - appDefinition: import("./common-types").SysLink; - organization: import("./common-types").SysLink; - }; - url: string; - name: string; - description?: string | undefined; - type?: "function" | "endpoint" | undefined; - } & import("./common-types").DefaultElements & { - delete(): Promise; - })>; - /** - * Gets existing app actions for an App Definition. - * @return Promise that resolves an App Action entity - * @example ```javascript - * const contentful = require('contentful-management') - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppActions('app_definition_id')) - * .then((appActions) => console.log(appActions)) - * .catch(console.error) - * ``` - */ - getAppActions(appDefinitionId: string): Promise>; -}; diff --git a/node_modules/contentful-management/dist/typings/create-space-api.d.ts b/node_modules/contentful-management/dist/typings/create-space-api.d.ts deleted file mode 100644 index b6e4961d..00000000 --- a/node_modules/contentful-management/dist/typings/create-space-api.d.ts +++ /dev/null @@ -1,1048 +0,0 @@ -/** - * Contentful Space API. Contains methods to access any operations at a space - * level, such as creating and reading entities contained in a space. - */ -import { MakeRequest, PaginationQueryOptions, QueryOptions } from './common-types'; -import { CreateApiKeyProps } from './entities/api-key'; -import { CreateEnvironmentProps } from './entities/environment'; -import { CreateEnvironmentAliasProps } from './entities/environment-alias'; -import { CreateRoleProps, RoleProps } from './entities/role'; -import { ScheduledActionProps, ScheduledActionQueryOptions } from './entities/scheduled-action'; -import { CreateSpaceMembershipProps } from './entities/space-membership'; -import { CreateTeamSpaceMembershipProps } from './entities/team-space-membership'; -import { CreateWebhooksProps, UpsertWebhookSigningSecretPayload, WebhookRetryPolicyPayload } from './entities/webhook'; -/** - * @private - */ -export type ContentfulSpaceAPI = ReturnType; -/** - * Creates API object with methods to access the Space API - * @param {MakeRequest} makeRequest - function to make requests via an adapter - * @return {ContentfulSpaceAPI} - * @private - */ -export default function createSpaceApi(makeRequest: MakeRequest): { - /** - * Deletes the space - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.delete()) - * .then(() => console.log('Space deleted.')) - * .catch(console.error) - * ``` - */ - delete: () => Promise; - /** - * Updates the space - * @return Promise for the updated space. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * space.name = 'New name' - * return space.update() - * }) - * .then((space) => console.log(`Space ${space.sys.id} renamed.`) - * .catch(console.error) - * ``` - */ - update: () => Promise; - /** - * Gets an environment - * @param id - Environment ID - * @return Promise for an Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - getEnvironment(environmentId: string): Promise; - /** - * Gets a collection of Environments - * @return Promise for a collection of Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironments()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironments(query?: PaginationQueryOptions): Promise>; - /** - * Creates an environment - * @param data - Object representation of the Environment to be created - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironment({ name: 'Staging' })) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironment(data?: CreateEnvironmentProps): Promise; - /** - * Creates an Environment with a custom ID - * @param id - Environment ID - * @param data - Object representation of the Environment to be created - * @param sourceEnvironmentId - ID of the source environment that will be copied to create the new environment. Default is "master" - * @return Promise for the newly created Environment - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentWithId('', { name: 'Staging'}, 'master')) - * .then((environment) => console.log(environment)) - * .catch(console.error) - * ``` - */ - createEnvironmentWithId(id: string, data: CreateEnvironmentProps, sourceEnvironmentId?: string): Promise; - /** - * Gets a Webhook - * @param id - Webhook ID - * @return Promise for a Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - getWebhook(id: string): Promise; - /** - * Gets a collection of Webhooks - * @return Promise for a collection of Webhooks - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhooks()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getWebhooks(): Promise>; - /** - * Fetch a webhook signing secret - * @returns Promise for the redacted webhook signing secret in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhookSigningSecret()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookSigningSecret: () => Promise; - /** - * Fetch a webhook retry policy - * @returns Promise for the redacted webhook retry policy in this space - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRetryPolicy()) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - getWebhookRetryPolicy: () => Promise; - /** - * Creates a Webhook - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhook({ - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhook(data: CreateWebhooksProps): Promise; - /** - * Creates a Webhook with a custom ID - * @param id - Webhook ID - * @param data - Object representation of the Webhook to be created - * @return Promise for the newly created Webhook - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.createWebhookWithId('', { - * 'name': 'My webhook', - * 'url': 'https://www.example.com/test', - * 'topics': [ - * 'Entry.create', - * 'ContentType.create', - * '*.publish', - * 'Asset.*' - * ] - * })) - * .then((webhook) => console.log(webhook)) - * .catch(console.error) - * ``` - */ - createWebhookWithId(id: string, data: CreateWebhooksProps): Promise; - /** - * Create or update the webhook signing secret for this space - * @param data 64 character string that will be used to sign the webhook calls - * @returns Promise for the redacted webhook signing secret that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * const crypto = require('crypto') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const signingSecret = client.getSpace('') - * .then((space) => space.upsertWebhookSigningSecret({ - * value: crypto.randomBytes(32).toString('hex') - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookSigningSecret: (data: UpsertWebhookSigningSecretPayload) => Promise; - /** - * Create or update the webhook retry policy for this space - * @param data the maxRetries with integer value >= 2 and <= 99 value to set in the Retry Policy - * @returns Promise for the redacted webhook retry policy that was created or updated - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * const retryPolicy = client.getSpace('') - * .then((space) => space.upsertWebhookRetryPolicy({ - * maxRetries: 15 - * })) - * .then((response) => console.log(response.redactedValue)) - * .catch(console.error) - * ``` - */ - upsertWebhookRetryPolicy: (data: WebhookRetryPolicyPayload) => Promise; - /** - * Delete the webhook signing secret for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookSigningSecret()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookSigningSecret: () => Promise; - /** - * Delete the webhook retry policy for this space - * @returns Promise - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.deleteWebhookRetryPolicy()) - * .then(() => console.log("success")) - * .catch(console.error) - * ``` - */ - deleteWebhookRetryPolicy: () => Promise; - /** - * Gets a Role - * @param id - Role ID - * @return Promise for a Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createRole({ - * fields: { - * title: { - * 'en-US': 'Role title' - * } - * } - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - getRole(id: string): Promise; - /** - * Gets a collection of Roles - * @return Promise for a collection of Roles - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRoles()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getRoles(query?: QueryOptions): Promise>; - /** - * Creates a Role - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRole({ - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRole(data: CreateRoleProps): Promise; - /** - * Creates a Role with a custom ID - * @param id - Role ID - * @param data - Object representation of the Role to be created - * @return Promise for the newly created Role - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.createRoleWithId('', { - * name: 'My Role', - * description: 'foobar role', - * permissions: { - * ContentDelivery: 'all', - * ContentModel: ['read'], - * Settings: [] - * }, - * policies: [ - * { - * effect: 'allow', - * actions: 'all', - * constraint: { - * and: [ - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Entry' - * ] - * }, - * { - * equals: [ - * { doc: 'sys.type' }, - * 'Asset' - * ] - * } - * ] - * } - * } - * ] - * })) - * .then((role) => console.log(role)) - * .catch(console.error) - * ``` - */ - createRoleWithId(id: string, roleData: Omit): Promise; - /** - * Gets a User - * @param userId - User ID - * @return Promise for a User - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUser('id')) - * .then((user) => console.log(user)) - * .catch(console.error) - * ``` - */ - getSpaceUser(userId: string): Promise; - /** - * Gets a collection of Users in a space - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise a collection of Users in a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceUsers(query)) - * .then((data) => console.log(data)) - * .catch(console.error) - * ``` - */ - getSpaceUsers(query?: QueryOptions): Promise>; - /** - * Gets a collection of teams for a space - * @param query - * @return Promise for a collection of teams for a space - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeams()) - * .then((teamsCollection) => console.log(teamsCollection)) - * .catch(console.error) - * ``` - */ - getTeams(query?: QueryOptions): Promise>; - /** - * Gets a Space Member - * @param id Get Space Member by user_id - * @return Promise for a Space Member - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMember(id)) - * .then((spaceMember) => console.log(spaceMember)) - * .catch(console.error) - * ``` - */ - getSpaceMember(id: string): Promise; - /** - * Gets a collection of Space Members - * @param query - * @return Promise for a collection of Space Members - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembers({'limit': 100})) - * .then((spaceMemberCollection) => console.log(spaceMemberCollection)) - * .catch(console.error) - * ``` - */ - getSpaceMembers(query?: QueryOptions): Promise>; - /** - * Gets a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @return Promise for a Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('id')) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - getSpaceMembership(id: string): Promise; - /** - * Gets a collection of Space Memberships - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getSpaceMemberships({'limit': 100})) // you can add more queries as 'key': 'value' - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getSpaceMemberships(query?: QueryOptions): Promise>; - /** - * Creates a Space Membership - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembership({ - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembership(data: CreateSpaceMembershipProps): Promise; - /** - * Creates a Space Membership with a custom ID - * Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user). - * @param id - Space Membership ID - * @param data - Object representation of the Space Membership to be created - * @return Promise for the newly created Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createSpaceMembershipWithId('', { - * admin: false, - * roles: [ - * { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * ], - * email: 'foo@example.com' - * })) - * .then((spaceMembership) => console.log(spaceMembership)) - * .catch(console.error) - * ``` - */ - createSpaceMembershipWithId(id: string, data: CreateSpaceMembershipProps): Promise; - /** - * Gets a Team Space Membership - * @param id - Team Space Membership ID - * @return Promise for a Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('team_space_membership_id')) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMembership(teamSpaceMembershipId: string): Promise; - /** - * Gets a collection of Team Space Memberships - * @param query - Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details. - * @return Promise for a collection of Team Space Memberships - * @example ```javascript - * const contentful = require('contentful-management') - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMemberships()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getTeamSpaceMemberships(query?: QueryOptions): Promise>; - /** - * Creates a Team Space Membership - * @param id - Team ID - * @param data - Object representation of the Team Space Membership to be created - * @return Promise for the newly created Team Space Membership - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createTeamSpaceMembership('team_id', { - * admin: false, - * roles: [ - * { - sys: { - * type: 'Link', - * linkType: 'Role', - * id: '' - * } - * } - * ], - * })) - * .then((teamSpaceMembership) => console.log(teamSpaceMembership)) - * .catch(console.error) - * ``` - */ - createTeamSpaceMembership(teamId: string, data: CreateTeamSpaceMembershipProps): Promise; - /** - * Gets a Api Key - * @param id - API Key ID - * @return Promise for a Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKey('')) - * .then((apikey) => console.log(apikey)) - * .catch(console.error) - * ``` - */ - getApiKey(id: string): Promise; - /** - * Gets a collection of Api Keys - * @return Promise for a collection of Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getApiKeys(): Promise>; - /** - * Gets a collection of preview Api Keys - * @return Promise for a collection of Preview Api Keys - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKeys()) - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getPreviewApiKeys(): Promise>; - /** - * Gets a preview Api Key - * @param id - Preview API Key ID - * @return Promise for a Preview Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getPreviewApiKey('')) - * .then((previewApikey) => console.log(previewApikey)) - * .catch(console.error) - * ``` - */ - getPreviewApiKey(id: string): Promise; - /** - * Creates a Api Key - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKey({ - * name: 'API Key name', - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKey: (payload: CreateApiKeyProps) => Promise; - /** - * Creates a Api Key with a custom ID - * @param id - Api Key ID - * @param payload - Object representation of the Api Key to be created - * @return Promise for the newly created Api Key - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createApiKeyWithId('', { - * name: 'API Key name' - * environments:[ - * { - * sys: { - * type: 'Link' - * linkType: 'Environment', - * id:'' - * } - * } - * ] - * } - * })) - * .then((apiKey) => console.log(apiKey)) - * .catch(console.error) - * ``` - */ - createApiKeyWithId(id: string, payload: CreateApiKeyProps): Promise; - /** - * Creates an EnvironmentAlias with a custom ID - * @param environmentAliasId - EnvironmentAlias ID - * @param data - Object representation of the EnvironmentAlias to be created - * @return Promise for the newly created EnvironmentAlias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createEnvironmentAliasWithId('', { - * environment: { - * sys: { type: 'Link', linkType: 'Environment', id: 'targetEnvironment' } - * } - * })) - * .then((environmentAlias) => console.log(environmentAlias)) - * .catch(console.error) - * ``` - */ - createEnvironmentAliasWithId(environmentAliasId: string, data: CreateEnvironmentAliasProps): Promise; - /** - * Gets an Environment Alias - * @param Environment Alias ID - * @return Promise for an Environment Alias - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => console.log(alias)) - * .catch(console.error) - * ``` - */ - getEnvironmentAlias(environmentAliasId: string): Promise; - /** - * Gets a collection of Environment Aliases - * @return Promise for a collection of Environment Aliases - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAliases() - * .then((response) => console.log(response.items)) - * .catch(console.error) - * ``` - */ - getEnvironmentAliases(): Promise>; - /** - * Query for scheduled actions in space. - * @param query - Object with search parameters. The enviroment id field is mandatory. Check the REST API reference for more details. - * @return Promise for the scheduled actions query - * - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledActions({ - * 'environment.sys.id': '', - * 'sys.status': 'scheduled' - * })) - * .then((scheduledActionCollection) => console.log(scheduledActionCollection.items)) - * .catch(console.error) - * ``` - */ - getScheduledActions(query: ScheduledActionQueryOptions): Promise>; - /** - * Get a Scheduled Action in the current space by environment and ID. - * - * @throws if the Scheduled Action cannot be found or the user doesn't have permission to read schedules from the entity of the scheduled action itself. - * @returns Promise with the Scheduled Action - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getScheduledAction({ - * scheduledActionId: '', - * environmentId: '' - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - getScheduledAction({ scheduledActionId, environmentId, }: { - scheduledActionId: string; - environmentId: string; - }): Promise; - /** - * Creates a scheduled action - * @param data - Object representation of the scheduled action to be created - * @return Promise for the newly created scheduled actions - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * })) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error) - * ``` - */ - createScheduledAction(data: Omit): Promise; - /** - * Update a scheduled action - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to update - * @param options.version the sys.version of the scheduled action to be updated - * @param payload the scheduled actions object with updates, omitting sys object - * @returns Promise containing a wrapped scheduled action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => { - * return space.createScheduledAction({ - * entity: { - * sys: { - * type: 'Link', - * linkType: 'Entry', - * id: '' - * } - * }, - * environment: { - * sys: { - * type: 'Link', - * linkType: 'Environment', - * id: '' - * } - * }, - * action: 'publish', - * scheduledFor: { - * datetime: , - * timezone: 'Europe/Berlin' - * } - * }) - * .then((scheduledAction) => { - * const { _sys, ...payload } = scheduledAction; - * return space.updateScheduledAction({ - * ...payload, - * scheduledFor: { - * ...payload.scheduledFor, - * timezone: 'Europe/Paris' - * } - * }) - * }) - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - updateScheduledAction({ scheduledActionId, payload, version, }: { - scheduledActionId: string; - payload: Omit; - version: number; - }): Promise; - /** - * Cancels a Scheduled Action. - * Only cancels actions that have not yet executed. - * - * @param {object} options - * @param options.scheduledActionId the id of the scheduled action to be canceled - * @param options.environmentId the environment ID of the scheduled action to be canceled - * @throws if the Scheduled Action cannot be found or the user doesn't have permissions in the entity in the action. - * @returns Promise containing a wrapped Scheduled Action with helper methods - * @example ```javascript - * const contentful = require('contentful-management'); - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * // Given that an Scheduled Action is scheduled - * client.getSpace('') - * .then((space) => space.deleteScheduledAction({ - * environmentId: '', - * scheduledActionId: '' - * })) - * // The scheduled Action sys.status is now 'canceled' - * .then((scheduledAction) => console.log(scheduledAction)) - * .catch(console.error); - * ``` - */ - deleteScheduledAction({ scheduledActionId, environmentId, }: { - scheduledActionId: string; - environmentId: string; - }): Promise; -}; diff --git a/node_modules/contentful-management/dist/typings/enhance-with-methods.d.ts b/node_modules/contentful-management/dist/typings/enhance-with-methods.d.ts deleted file mode 100644 index ca2d87cf..00000000 --- a/node_modules/contentful-management/dist/typings/enhance-with-methods.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This method enhances a base object which would normally contain data, with - * methods from another object that might work on manipulating that data. - * All the added methods are set as non enumerable, non configurable, and non - * writable properties. This ensures that if we try to clone or stringify the - * base object, we don't have to worry about these additional methods. - * @private - * @param {object} baseObject - Base object with data - * @param {object} methodsObject - Object with methods as properties. The key - * values used here will be the same that will be defined on the baseObject. - */ -export default function enhanceWithMethods, M extends Record>(baseObject: B, methodsObject: M): M & B; diff --git a/node_modules/contentful-management/dist/typings/entities/api-key.d.ts b/node_modules/contentful-management/dist/typings/entities/api-key.d.ts deleted file mode 100644 index d29de17b..00000000 --- a/node_modules/contentful-management/dist/typings/entities/api-key.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'; -export type ApiKeyProps = { - sys: MetaSysProps; - name: string; - accessToken: string; - environments: { - sys: MetaLinkProps; - }[]; - preview_api_key: { - sys: MetaLinkProps; - }; - description?: string; - policies?: { - effect: string; - action: string; - }[]; -}; -export type CreateApiKeyProps = Pick; -export interface ApiKey extends ApiKeyProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.getApiKey()) - * .then((apiKey) => apiKey.delete()) - * .then(() => console.log('apikey deleted')) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.getApiKey()) - * .then((apiKey) => { - * apiKey.name = 'New name' - * return apiKey.update() - * }) - * .then(apiKey => console.log(apiKey.name)) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - */ -export declare function wrapApiKey(makeRequest: MakeRequest, data: ApiKeyProps): ApiKey; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key collection data - * @return Wrapped api key collection data - */ -export declare const wrapApiKeyCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/app-action-call.d.ts b/node_modules/contentful-management/dist/typings/entities/app-action-call.d.ts deleted file mode 100644 index 1edafd62..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-action-call.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, CreateWithResponseParams, DefaultElements, MakeRequest, SysLink } from '../common-types'; -import { WebhookCallDetailsProps } from './webhook'; -type AppActionCallSys = Except & { - appDefinition: SysLink; - space: SysLink; - environment: SysLink; - action: SysLink; -}; -type RetryOptions = Pick; -export type AppActionCallProps = { - /** - * System metadata - */ - sys: AppActionCallSys; -}; -export type CreateAppActionCallProps = { - /** The body for the call */ - parameters: { - [key: string]: any; - }; -}; -type AppActionCallApi = { - createWithResponse(): Promise; - getCallDetails(): Promise; -}; -export type AppActionCallResponse = WebhookCallDetailsProps; -export interface AppActionCallResponseData extends AppActionCallResponse, DefaultElements, AppActionCallApi { -} -export interface AppActionCall extends AppActionCallProps, DefaultElements { -} -/** - * @private - */ -export default function createAppActionCallApi(makeRequest: MakeRequest, retryOptions?: RetryOptions): AppActionCallApi; -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -export declare function wrapAppActionCall(makeRequest: MakeRequest, data: AppActionCallProps): AppActionCall; -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppActionCall data - * @return Wrapped AppActionCall data - */ -export declare function wrapAppActionCallResponse(makeRequest: MakeRequest, data: AppActionCallResponse, retryOptions?: RetryOptions): AppActionCallResponseData; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-action.d.ts b/node_modules/contentful-management/dist/typings/entities/app-action.d.ts deleted file mode 100644 index 7009fe42..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-action.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; -import { ParameterDefinition } from './widget-parameters'; -type AppActionSys = Except & { - appDefinition: SysLink; - organization: SysLink; -}; -export type AppActionParameterDefinition = Omit; -export type AppActionCategoryProps = { - sys: { - id: AppActionCategoryType; - type: 'AppActionCategory'; - version: string; - }; - name: string; - description: string; - parameters?: AppActionParameterDefinition[]; -}; -type BuiltInCategoriesProps = { - /** - * Category identifying the shape of the action. - */ - category: 'Entries.v1.0' | 'Notification.v1.0'; -}; -type CustomAppActionProps = { - /** - * "Custom" category requires "parameters" - */ - category: 'Custom'; - parameters: AppActionParameterDefinition[]; -}; -type AppActionCategory = BuiltInCategoriesProps | CustomAppActionProps; -export type AppActionCategoryType = AppActionCategory['category']; -export type CreateAppActionProps = AppActionCategory & { - url: string; - name: string; - description?: string; -}; -export type AppActionProps = AppActionCategory & { - /** - * System metadata - */ - sys: AppActionSys; - /** - * Url that will be called when the action is invoked - */ - url: string; - /** - * Human readable name for the action - */ - name: string; - /** - * Human readable description of the action - */ - description?: string; - type?: 'endpoint' | 'function'; -}; -export type AppAction = AppActionProps & DefaultElements & { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppAction('')) - * .then((appAction) => appAction.delete()) - * .catch(console.error) - * ``` - */ - delete(): Promise; -}; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -export declare function wrapAppAction(makeRequest: MakeRequest, data: AppActionProps): AppAction; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -export declare const wrapAppActionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-bundle.d.ts b/node_modules/contentful-management/dist/typings/entities/app-bundle.d.ts deleted file mode 100644 index d01ae98d..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-bundle.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; -type AppBundleSys = Except & { - appDefinition: SysLink; - organization: SysLink; -}; -interface ActionManifestProps { - id?: string; - name: string; - description: string; - category: string; - path: string; - allowNetworks?: string[]; -} -interface FunctionManifestProps { - id: string; - name: string; - description: string; - path: string; - accepts?: string[]; - allowNetworks?: string[]; -} -export type AppBundleFile = { - name: string; - size: number; - md5: string; -}; -export type CreateAppBundleProps = { - appUploadId: string; - comment?: string; - actions?: ActionManifestProps[]; - functions?: FunctionManifestProps[]; -}; -export type AppBundleProps = { - /** - * System metadata - */ - sys: AppBundleSys; - /** - * List of all the files that are in this bundle - */ - files: AppBundleFile[]; - /** - * A comment that describes this bundle - */ - comment?: string; -}; -export interface AppBundle extends AppBundleProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppDefinition('')) - * .then((appDefinition) => appDefinition.getAppBundle('')) - * .then((appBundle) => appBundle.delete()) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle data - * @return Wrapped App Bundle data - */ -export declare function wrapAppBundle(makeRequest: MakeRequest, data: AppBundleProps): AppBundle; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Bundle collection data - * @return Wrapped App Bundle collection data - */ -export declare const wrapAppBundleCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-definition.d.ts b/node_modules/contentful-management/dist/typings/entities/app-definition.d.ts deleted file mode 100644 index a6b80591..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-definition.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest, Link } from '../common-types'; -import { ContentfulAppDefinitionAPI } from '../create-app-definition-api'; -import { SetOptional, Except } from 'type-fest'; -import { FieldType } from './field-type'; -import { ParameterDefinition } from './widget-parameters'; -import { AppInstallationProps } from './app-installation'; -import { EnvironmentProps } from './environment'; -export interface NavigationItem { - name: string; - path: string; -} -type LocationType = 'app-config' | 'entry-sidebar' | 'entry-editor' | 'dialog' | 'page' | 'home'; -export interface SimpleLocation { - location: LocationType; -} -export interface EntryFieldLocation { - location: 'entry-field'; - fieldTypes: FieldType[]; -} -export interface PageLocation { - location: 'page'; - navigationItem?: NavigationItem; -} -export type AppLocation = SimpleLocation | EntryFieldLocation | PageLocation; -export type AppDefinitionProps = { - /** - * System metadata - */ - sys: BasicMetaSysProps & { - organization: SysLink; - shared: boolean; - }; - /** - * App name - */ - name: string; - /** - * URL where the root HTML document of the app can be found - */ - src?: string; - /** - * Link to an AppBundle - */ - bundle?: Link<'AppBundle'>; - /** - * Locations where the app can be installed - */ - locations?: AppLocation[]; - /** - * Instance parameter definitions - */ - parameters?: { - instance?: ParameterDefinition[]; - installation?: ParameterDefinition[]; - }; -}; -export type CreateAppDefinitionProps = SetOptional, 'src' | 'locations'>; -export type AppDefinition = ContentfulAppDefinitionAPI & AppDefinitionProps & DefaultElements; -export type AppInstallationsForOrganizationProps = { - sys: { - type: 'Array'; - }; - items: AppInstallationProps[]; - includes: { - Environment: EnvironmentProps[]; - }; -}; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition data - * @return Wrapped App Definition data - */ -export declare function wrapAppDefinition(makeRequest: MakeRequest, data: AppDefinitionProps): AppDefinition; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Definition collection data - * @return Wrapped App Definition collection data - */ -export declare const wrapAppDefinitionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-details.d.ts b/node_modules/contentful-management/dist/typings/entities/app-details.d.ts deleted file mode 100644 index 73e05e72..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-details.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; -type AppDetailsSys = Except & { - appDefinition: SysLink; - organization: SysLink; -}; -export type IconType = 'base64'; -export interface AppIcon { - value: string; - type: IconType; -} -export type AppDetailsProps = { - /** - * System metadata - */ - sys: AppDetailsSys; - /** - * An Icon that represents the App - */ - icon?: AppIcon; -}; -export type CreateAppDetailsProps = { - /** - * An Icon that represents the App - */ - icon?: AppIcon; -}; -export interface AppDetails extends AppDetailsProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((organization) => organization.getAppDetails()) - * .then((appDetails) => appDetails.delete()) - * .then(() => console.log('appDetails deleted')) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppDetails data - * @return Wrapped AppDetails data - */ -export declare function wrapAppDetails(makeRequest: MakeRequest, data: AppDetailsProps): AppDetails; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-installation.d.ts b/node_modules/contentful-management/dist/typings/entities/app-installation.d.ts deleted file mode 100644 index f465c823..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-installation.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'; -import { Except } from 'type-fest'; -import { FreeFormParameters } from './widget-parameters'; -export type AppInstallationProps = { - sys: Omit & { - appDefinition: SysLink; - environment: SysLink; - space: SysLink; - }; - /** - * Free-form installation parameters (API limits stringified length to 32KB) - */ - parameters?: FreeFormParameters; -}; -export type CreateAppInstallationProps = Except; -export interface AppInstallation extends AppInstallationProps, DefaultElements { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => { - * appInstallation.parameters.someParameter = 'New Value' - * return appInstallation.update() - * }) - * .then((appInstallation) => console.log(`App installation ${appInstallation.sys.id} was updated`)) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAppInstallation('')) - * .then((appInstallation) => appInstallation.delete()) - * .then(() => console.log(`App installation deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Installation data - * @return Wrapped App installation data - */ -export declare function wrapAppInstallation(makeRequest: MakeRequest, data: AppInstallationProps): AppInstallation; -/** - * @private - */ -export declare const wrapAppInstallationCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/app-signed-request.d.ts b/node_modules/contentful-management/dist/typings/entities/app-signed-request.d.ts deleted file mode 100644 index a45ad9c4..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-signed-request.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; -type AppSignedRequestSys = Except & { - appDefinition: SysLink; - space: SysLink; - environment: SysLink; -}; -export type AppSignedRequestProps = { - /** - * System metadata - */ - sys: AppSignedRequestSys; - /** new headers to be included in the request */ - additionalHeaders: { - 'x-contentful-signature': string; - 'x-contentful-signed-headers': string; - 'x-contentful-timestamp': string; - 'x-contentful-space-id': string; - 'x-contentful-environment-id': string; - 'x-contentful-user-id': string; - }; -}; -export type CreateAppSignedRequestProps = { - /** the request method */ - method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD'; - /** the path of the request method */ - path: string; - /** optional stringified body of the request */ - body?: string; - /** optional headers of the request */ - headers?: Record; -}; -export interface AppSignedRequest extends AppSignedRequestProps, DefaultElements { -} -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSignedRequest data - * @return Wrapped AppSignedRequest data - */ -export declare function wrapAppSignedRequest(_makeRequest: MakeRequest, data: AppSignedRequestProps): AppSignedRequest; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-signing-secret.d.ts b/node_modules/contentful-management/dist/typings/entities/app-signing-secret.d.ts deleted file mode 100644 index 227a12a0..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-signing-secret.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; -type AppSigningSecretSys = Except & { - appDefinition: SysLink; - organization: SysLink; -}; -export type AppSigningSecretProps = { - /** - * System metadata - */ - sys: AppSigningSecretSys; - /** The last four characters of the signing secret */ - redactedValue: string; -}; -export type CreateAppSigningSecretProps = { - /** A 64 character matching the regular expression /^[0-9a-zA-Z+/=_-]+$/ */ - value: string; -}; -export interface AppSigningSecret extends AppSigningSecretProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getOrganization('') - * .then((organization) => organization.getAppSigningSecret()) - * .then((signingSecret) => signingSecret.delete()) - * .then(() => console.log('signingSecret deleted')) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param http - HTTP client instance - * @param data - Raw AppSigningSecret data - * @return Wrapped AppSigningSecret data - */ -export declare function wrapAppSigningSecret(makeRequest: MakeRequest, data: AppSigningSecretProps): AppSigningSecret; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/app-upload.d.ts b/node_modules/contentful-management/dist/typings/entities/app-upload.d.ts deleted file mode 100644 index cfc8eb07..00000000 --- a/node_modules/contentful-management/dist/typings/entities/app-upload.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Except } from 'type-fest'; -import { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'; -type AppUploadSys = Except; -export type AppUploadProps = { - sys: AppUploadSys & { - expiresAt: string; - organization: SysLink; - }; -}; -export interface AppUpload extends AppUploadProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('') - * .then((org) => org.getAppUpload('')) - * .then((appUpload) => appUpload.delete()) - * .then(() => console.log(`App Upload deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload data - * @return Wrapped App Upload data - */ -export declare function wrapAppUpload(makeRequest: MakeRequest, data: AppUploadProps): AppUpload; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw App Upload collection data - * @return Wrapped App Upload collection data - */ -export declare const wrapAppUploadCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/asset-key.d.ts b/node_modules/contentful-management/dist/typings/entities/asset-key.d.ts deleted file mode 100644 index ac1daf92..00000000 --- a/node_modules/contentful-management/dist/typings/entities/asset-key.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { DefaultElements, MakeRequest } from '../common-types'; -export type AssetKeyProps = { - /** A JWT describing a policy; needs to be attached to signed URLs */ - policy: string; - /** A secret key to be used for signing URLs */ - secret: string; -}; -export type CreateAssetKeyProps = { - /** (required) UNIX timestamp in the future (but not more than 48 hours from now) */ - expiresAt: number; -}; -export interface AssetKey extends AssetKeyProps, DefaultElements { -} -/** - * @private - * @param http - HTTP client instance - * @param data - Raw asset key data - * @return Wrapped asset key data - */ -export declare function wrapAssetKey(_makeRequest: MakeRequest, data: AssetKeyProps): AssetKey; diff --git a/node_modules/contentful-management/dist/typings/entities/asset.d.ts b/node_modules/contentful-management/dist/typings/entities/asset.d.ts deleted file mode 100644 index 1bff910f..00000000 --- a/node_modules/contentful-management/dist/typings/entities/asset.d.ts +++ /dev/null @@ -1,279 +0,0 @@ -/// -import { Stream } from 'stream'; -import { MetaSysProps, DefaultElements, EntityMetaSysProps, MetadataProps, MakeRequest } from '../common-types'; -export type AssetProps = { - sys: EntityMetaSysProps; - fields: { - /** Title for this asset */ - title: { - [key: string]: string; - }; - /** Description for this asset */ - description?: { - [key: string]: string; - }; - /** File object for this asset */ - file: { - [key: string]: { - fileName: string; - contentType: string; - /** Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone. */ - upload?: string; - /** Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed. */ - url?: string; - /** Details for the file, depending on file type (example: image size in bytes, etc) */ - details?: Record; - uploadFrom?: Record; - }; - }; - }; - metadata?: MetadataProps; -}; -export type CreateAssetProps = Omit; -export type CreateAssetFromFilesOptions = { - uploadTimeout?: number; -}; -export interface AssetFileProp { - sys: MetaSysProps; - fields: { - title: { - [key: string]: string; - }; - description: { - [key: string]: string; - }; - file: { - [key: string]: { - file: string | ArrayBuffer | Stream; - contentType: string; - fileName: string; - }; - }; - }; -} -export interface AssetProcessingForLocale { - processingCheckWait?: number; - processingCheckRetries?: number; -} -type AssetApi = { - /** - * Triggers asset processing after an upload, for the files uploaded to all locales of an asset. - * @param options - Additional options for processing - * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms) - * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5) - * @return Object returned from the server with updated metadata. - * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner', - * 'de-DE': 'Playsam Streamliner' - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * }, - * 'de-DE': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example-de.jpg' - * } - * } - * })) - * .then((asset) => asset.processForAllLocales()) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - processForAllLocales(options?: AssetProcessingForLocale): Promise; - /** - * Triggers asset processing after an upload, for the file uploaded to a specific locale. - * @param locale - Locale which processing should be triggered for - * @param options - Additional options for processing - * @prop options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms) - * @prop options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5) - * @return Object returned from the server with updated metadata. - * @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.createAssetWithId('', { - * title: { - * 'en-US': 'Playsam Streamliner', - * }, - * file: { - * 'en-US': { - * contentType: 'image/jpeg', - * fileName: 'example.jpeg', - * upload: 'https://example.com/example.jpg' - * } - * } - * })) - * .then((asset) => asset.processForLocale('en-US')) - * .then((asset) => console.log(asset)) - * .catch(console.error) - * ``` - */ - processForLocale(locale: string, Options?: AssetProcessingForLocale): Promise; - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => asset.publish()) - * .then((asset) => console.log(`Asset ${asset.sys.id} published.`) - * .catch(console.error) - * ``` - */ - publish(): Promise; - /** - * Archives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => asset.archive()) - * .then((asset) => console.log(`Asset ${asset.sys.id} archived.`) - * .catch(console.error) - * ``` - */ - archive(): Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => asset.delete()) - * .then((asset) => console.log(`Asset deleted.`) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Unarchives the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => asset.unarchive()) - * .then((asset) => console.log(`Asset ${asset.sys.id} unarchived.`) - * .catch(console.error) - * ``` - */ - unarchive(): Promise; - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => asset.unpublish()) - * .then((asset) => console.log(`Asset ${asset.sys.id} unpublished.`) - * .catch(console.error) - * ``` - */ - unpublish(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getAsset('')) - * .then((asset) => { - * asset.fields.title['en-US'] = 'New asset title' - * return asset.update() - * }) - * .then((asset) => console.log(`Asset ${asset.sys.id} updated.`) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Checks if the asset is published. A published asset might have unpublished changes - */ - isPublished(): boolean; - /** - * Checks if the asset is updated. This means the asset was previously published but has unpublished changes. - */ - isUpdated(): boolean; - /** - * Checks if the asset is in draft mode. This means it is not published. - */ - isDraft(): boolean; - /** - * Checks if asset is archived. This means it's not exposed to the Delivery/Preview APIs. - */ - isArchived(): boolean; -}; -export interface Asset extends AssetProps, DefaultElements, AssetApi { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw asset data - * @return Wrapped asset data - */ -export declare function wrapAsset(makeRequest: MakeRequest, data: AssetProps): Asset; -/** - * @private - */ -export declare const wrapAssetCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/bulk-action.d.ts b/node_modules/contentful-management/dist/typings/entities/bulk-action.d.ts deleted file mode 100644 index a5301d60..00000000 --- a/node_modules/contentful-management/dist/typings/entities/bulk-action.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { DefaultElements, ISO8601Timestamp, Link, MakeRequest, MakeRequestPayload, VersionedLink } from '../common-types'; -import { AsyncActionProcessingOptions } from '../methods/action'; -/** Entity types supported by the BulkAction API */ -type Entity = 'Entry' | 'Asset'; -type Collection = Array; -type EntityError = { - entity: VersionedLink | Link; - error: any; -}; -export type BulkActionType = 'publish' | 'unpublish' | 'validate'; -/** Represents the state of the BulkAction */ -export declare enum BulkActionStatus { - /** BulkAction is pending execution */ - created = "created", - /** BulkAction has been started and pending completion */ - inProgress = "inProgress", - /** BulkAction was completed successfully (terminal state) */ - succeeded = "succeeded", - /** BulkAction failed to complete (terminal state) */ - failed = "failed" -} -declare const STATUSES: BulkActionStatus[]; -type BulkActionStatuses = typeof STATUSES[number]; -interface BulkActionFailedError { - sys: { - type: 'Error'; - id: 'BulkActionFailed'; - }; - message?: string; - details?: { - errors: Collection; - }; -} -export type BulkActionPayload = BulkActionPublishPayload | BulkActionUnpublishPayload | BulkActionValidatePayload; -export interface BulkActionValidatePayload extends MakeRequestPayload { - action?: 'publish'; - entities: { - sys?: { - type: 'Array'; - }; - items: Collection>; - }; -} -export interface BulkActionUnpublishPayload extends MakeRequestPayload { - entities: { - sys?: { - type: 'Array'; - }; - items: Collection>; - }; -} -export interface BulkActionPublishPayload extends MakeRequestPayload { - entities: { - sys?: { - type: 'Array'; - }; - items: Collection>; - }; -} -export type BulkActionSysProps = { - id: string; - type: 'BulkAction'; - status: BulkActionStatuses; - space: Link<'Space'>; - environment: Link<'Environment'>; - createdBy: Link<'User'>; - createdAt: ISO8601Timestamp; - updatedAt: ISO8601Timestamp; -}; -/** The object returned by the BulkActions API */ -export interface BulkActionProps { - sys: BulkActionSysProps; - action: BulkActionType; - /** original payload when BulkAction was created */ - payload: TPayload; - /** error information, if present */ - error?: BulkActionFailedError; -} -export interface BulkActionApiMethods { - /** Performs a new GET request and returns the wrapper BulkAction */ - get(): BulkAction; - /** Waits until the BulkAction is in one of the final states (`succeeded` or `failed`) and returns it. */ - waitProcessing(options?: AsyncActionProcessingOptions): Promise; -} -export interface BulkAction extends BulkActionProps, BulkActionApiMethods, DefaultElements> { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw BulkAction data - * @return Wrapped BulkAction data - */ -export declare function wrapBulkAction(makeRequest: MakeRequest, data: BulkActionProps): BulkAction; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/comment.d.ts b/node_modules/contentful-management/dist/typings/entities/comment.d.ts deleted file mode 100644 index 63877711..00000000 --- a/node_modules/contentful-management/dist/typings/entities/comment.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { Node, Text } from '@contentful/rich-text-types'; -import { BasicMetaSysProps, DefaultElements, GetCommentParams, GetEntryParams, GetSpaceEnvironmentParams, Link, MakeRequest, SysLink, VersionedLink } from '../common-types'; -interface LinkWithReference extends Link { - sys: Link['sys'] & { - ref: string; - }; -} -export type CommentSysProps = Pick & { - type: 'Comment'; - space: SysLink; - environment: SysLink; - parentEntity: Link<'ContentType'> | LinkWithReference<'ContentType'> | Link<'Entry'> | LinkWithReference<'Entry'> | VersionedLink<'Workflow'>; - parent: Link<'Comment'> | null; -}; -export type PlainTextBodyProperty = 'plain-text'; -export type RichTextBodyProperty = 'rich-text'; -export type RichTextBodyFormat = { - bodyFormat: RichTextBodyProperty; -}; -export type PlainTextBodyFormat = { - bodyFormat?: PlainTextBodyProperty; -}; -export type CommentStatus = 'active' | 'resolved'; -export type CommentProps = { - sys: CommentSysProps; - body: string; - status: CommentStatus; -}; -export type CreateCommentProps = Omit & { - status?: CommentStatus; -}; -export type UpdateCommentProps = Omit & { - sys: Pick; -}; -export declare enum CommentNode { - Document = "document", - Paragraph = "paragraph", - Mention = "mention" -} -export interface Mention { - nodeType: CommentNode.Mention; - data: { - target: Link<'User'> | Link<'Team'>; - }; - content: Text[]; -} -export interface RootParagraph extends Node { - nodeType: CommentNode.Paragraph; - content: (Text | Mention)[]; -} -export interface RichTextCommentDocument extends Node { - nodeType: CommentNode.Document; - content: RootParagraph[]; -} -export type RichTextCommentBodyPayload = { - body: RichTextCommentDocument; -}; -export type RichTextCommentProps = Omit & RichTextCommentBodyPayload; -export type GetCommentParentEntityParams = GetSpaceEnvironmentParams & ({ - parentEntityType: 'ContentType'; - parentEntityId: string; - parentEntityReference?: string; -} | { - parentEntityType: 'Entry'; - parentEntityId: string; - parentEntityReference?: string; -} | { - parentEntityType: 'Workflow'; - parentEntityId: string; - parentEntityVersion?: number; -}); -export type GetManyCommentsParams = (GetEntryParams | GetCommentParentEntityParams) & { - status?: CommentStatus; -}; -export type CreateCommentParams = (GetEntryParams | GetCommentParentEntityParams) & { - parentCommentId?: string; -}; -export type UpdateCommentParams = GetCommentParams; -export type DeleteCommentParams = GetCommentParams & { - version: number; -}; -type CommentApi = { - update(): Promise; - delete(): Promise; -}; -export interface Comment extends CommentProps, DefaultElements, CommentApi { -} -export interface RichTextComment extends Omit, RichTextCommentProps, DefaultElements, CommentApi { -} -/** - * @private - */ -export default function createCommentApi(makeRequest: MakeRequest): CommentApi; -/** - * @private - */ -export declare function wrapComment(makeRequest: MakeRequest, data: CommentProps | RichTextCommentProps): Comment | RichTextComment; -/** - * @private - */ -export declare const wrapCommentCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/content-type-fields.d.ts b/node_modules/contentful-management/dist/typings/entities/content-type-fields.d.ts deleted file mode 100644 index 797e5abc..00000000 --- a/node_modules/contentful-management/dist/typings/entities/content-type-fields.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { KeyValueMap } from '../common-types'; -import { INLINES, BLOCKS } from '@contentful/rich-text-types'; -interface NumRange { - min?: number; - max?: number; -} -interface DateRange { - min?: string; - max?: string; -} -interface RegExp { - pattern: string; - flags: string; -} -interface NodesValidation { - [BLOCKS.EMBEDDED_ENTRY]?: Pick[]; - [INLINES.EMBEDDED_ENTRY]?: Pick[]; - [INLINES.ENTRY_HYPERLINK]?: Pick[]; - [BLOCKS.EMBEDDED_ASSET]?: Pick[]; - [INLINES.ASSET_HYPERLINK]?: Pick[]; - [BLOCKS.EMBEDDED_RESOURCE]?: { - validations: Pick[]; - allowedResources: ContentTypeAllowedResources[]; - }; - [INLINES.EMBEDDED_RESOURCE]?: { - validations: Pick[]; - allowedResources: ContentTypeAllowedResources[]; - }; - [INLINES.RESOURCE_HYPERLINK]?: { - validations: Pick[]; - allowedResources: ContentTypeAllowedResources[]; - }; -} -export interface ContentTypeFieldValidation { - linkContentType?: string[]; - in?: (string | number)[]; - linkMimetypeGroup?: string[]; - enabledNodeTypes?: (`${BLOCKS}` | `${INLINES}`)[]; - enabledMarks?: string[]; - unique?: boolean; - size?: NumRange; - range?: NumRange; - dateRange?: DateRange; - regexp?: RegExp; - message?: string | null; - prohibitRegexp?: RegExp; - assetImageDimensions?: { - width?: NumRange; - height?: NumRange; - }; - assetFileSize?: NumRange; - nodes?: NodesValidation; -} -interface Item { - type: string; - linkType?: string; - validations?: ContentTypeFieldValidation[]; -} -type ContentTypeAllowedResources = ContentfulEntryResource | ExternalResource; -export interface ContentfulEntryResource { - type: 'Contentful:Entry'; - source: string; - contentTypes: string[]; -} -export interface ExternalResource { - type: string; -} -export interface ContentFields extends Item { - id: string; - name: string; - required: boolean; - localized: boolean; - disabled?: boolean; - omitted?: boolean; - deleted?: boolean; - items?: Item; - apiName?: string; - defaultValue?: T; - allowedResources?: ContentTypeAllowedResources[]; -} -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/content-type.d.ts b/node_modules/contentful-management/dist/typings/entities/content-type.d.ts deleted file mode 100644 index 1dbf0e80..00000000 --- a/node_modules/contentful-management/dist/typings/entities/content-type.d.ts +++ /dev/null @@ -1,206 +0,0 @@ -import { Except, SetOptional, RequireAtLeastOne } from 'type-fest'; -import { BasicMetaSysProps, Collection, DefaultElements, Link, MakeRequest, SysLink } from '../common-types'; -import { ContentFields } from './content-type-fields'; -import { EditorInterface } from './editor-interface'; -import { Snapshot, SnapshotProps } from './snapshot'; -export type ContentTypeMetadata = { - annotations?: RequireAtLeastOne<{ - ContentType?: AnnotationAssignment[]; - ContentTypeField?: Record; - }, 'ContentType' | 'ContentTypeField'>; -}; -export type AnnotationAssignment = Link<'Annotation'> & { - parameters?: Record; -}; -export type ContentTypeProps = { - sys: BasicMetaSysProps & { - space: SysLink; - environment: SysLink; - firstPublishedAt?: string; - publishedCounter?: number; - publishedVersion?: number; - }; - name: string; - description: string; - /** Field used as the main display field for Entries */ - displayField: string; - /** All the fields contained in this Content Type */ - fields: ContentFields[]; - metadata?: ContentTypeMetadata; -}; -export type CreateContentTypeProps = SetOptional, 'description' | 'displayField'>; -type ContentTypeApi = { - /** - * Sends an update to the server with any changes made to the object's properties.
- * Important note about deleting fields: The standard way to delete a field is with two updates: first omit the property from your responses (set the field attribute "omitted" to true), and then - * delete it by setting the attribute "deleted" to true. See the "Deleting fields" section in the - * API reference for more reasoning. Alternatively, - * you may use the convenience method omitAndDeleteField to do both steps at once. - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => { - * contentType.name = 'New name' - * return contentType.update() - * }) - * .then(contentType => console.log(contentType)) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.delete()) - * .then(() => console.log('contentType deleted')) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Publishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.publish()) - * .then((contentType) => console.log(`${contentType.sys.id} is published`)) - * .catch(console.error) - * ``` - */ - publish(): Promise; - /** - * Unpublishes the object - * @return Object returned from the server with updated metadata. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.unpublish()) - * .then((contentType) => console.log(`${contentType.sys.id} is unpublished`)) - * .catch(console.error) - * ``` - */ - unpublish(): Promise; - /** - * Gets the editor interface for the object
- * Important note: The editor interface only represent a published contentType.
- * To get the most recent representation of the contentType make sure to publish it first - * @return Object returned from the server with the current editor interface. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.getEditorInterface()) - * .then((editorInterface) => console.log(editorInterface.contorls)) - * .catch(console.error) - * ``` - */ - getEditorInterface(): Promise; - /** - * Checks if the contentType is in draft mode. This means it is not published. - */ - isDraft(): boolean; - /** - * Checks if the contentType is published. A published contentType might have unpublished changes (@see {ContentType.isUpdated}) - */ - isPublished(): boolean; - /** - * Checks if the contentType is updated. This means the contentType was previously published but has unpublished changes. - */ - isUpdated(): boolean; - /** - * Omits and deletes a field if it exists on the contentType. This is a convenience method which does both operations at once and potentially less - * safe than the standard way. See note about deleting fields on the Update method. - * @return Object returned from the server with updated metadata. - */ - omitAndDeleteField(id: string): Promise; - /** - * Gets a snapshot of a contentType - * @param snapshotId - Id of the snapshot - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((entry) => entry.getSnapshot('')) - * .then((snapshot) => console.log(snapshot)) - * .catch(console.error) - * ``` - */ - getSnapshot(snapshotId: string): Promise>; - /** - * Gets all snapshots of a contentType - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((entry) => entry.getSnapshots()) - * .then((snapshots) => console.log(snapshots.items)) - * .catch(console.error) - * ``` - */ - getSnapshots(): Promise, SnapshotProps>>; -}; -export interface ContentType extends ContentTypeProps, DefaultElements, ContentTypeApi { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw content type data - * @return Wrapped content type data - */ -export declare function wrapContentType(makeRequest: MakeRequest, data: ContentTypeProps): ContentType; -/** - * @private - */ -export declare const wrapContentTypeCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/editor-interface.d.ts b/node_modules/contentful-management/dist/typings/entities/editor-interface.d.ts deleted file mode 100644 index 576c5f0b..00000000 --- a/node_modules/contentful-management/dist/typings/entities/editor-interface.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { MetaSysProps, MetaLinkProps, DefaultElements, MakeRequest } from '../common-types'; -import { DefinedParameters } from './widget-parameters'; -interface WidgetConfig { - /** - * Type of the widget used - */ - widgetNamespace?: string; - /** - * ID of the widget used - */ - widgetId?: string; - /** - * Instance parameter values - */ - settings?: DefinedParameters; -} -export interface Control extends WidgetConfig { - /** - * ID of the customized field - */ - fieldId: string; -} -export interface GroupControl extends WidgetConfig { - /** - * ID of the customized field group - */ - groupId: string; -} -export interface FieldGroupItem { - groupId: string; - name: string; - items: EditorLayoutItem[]; -} -export interface FieldItem { - fieldId: string; -} -export type EditorLayoutItem = FieldItem | FieldGroupItem; -export interface Editor { - /** - * Type of the widget used - */ - widgetNamespace: string; - /** - * ID of the widget used - */ - widgetId: string; - /** - * Widget will be enabled if disabled property is missing - */ - disabled?: boolean; - /** - * Instance parameter values - */ - settings?: DefinedParameters; -} -export interface SidebarItem { - /** - * Type of the widget used - */ - widgetNamespace: string; - /** - * ID of the widget used - */ - widgetId: string; - /** - * Widget will be enabled if disabled property is missing - */ - disabled?: boolean; - /** - * Instance parameter values - */ - settings?: DefinedParameters; -} -export type EditorInterfaceProps = { - sys: MetaSysProps & { - space: { - sys: MetaLinkProps; - }; - environment: { - sys: MetaLinkProps; - }; - contentType: { - sys: MetaLinkProps; - }; - }; - /** - * Array of fields and their associated widgetId - */ - controls?: Control[]; - /** - * Array of field groups and their associated widgetId - */ - groupControls?: GroupControl[]; - /** - * Array of editors. Defaults will be used if property is missing. - */ - editors?: Editor[]; - /** - * Legacy singular editor override - */ - editor?: Editor; - /** - * Array of editor layout field groups - */ - editorLayout?: FieldGroupItem[]; - /** - * Array of sidebar widgets. Defaults will be used if property is missing. - */ - sidebar?: SidebarItem[]; -}; -export interface EditorInterface extends EditorInterfaceProps, DefaultElements { - /** - * Gets a control for a specific field - * @return control object for specific field - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.getEditorInterface()) - * .then((editorInterface) => { - * control = editorInterface.getControlForField('') - * console.log(control) - * }) - * .catch(console.error) - * ``` - */ - getControlForField(id: string): null | Control; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getContentType('')) - * .then((contentType) => contentType.getEditorInterface()) - * .then((editorInterface) => { - * editorInterface.controls[0] = { "fieldId": "title", "widgetId": "singleLine"} - * editorInterface.editors = [ - * { "widgetId": "custom-widget", "widgetNamespace": "app" } - * ] - * return editorInterface.update() - * }) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - */ -export declare function wrapEditorInterface(makeRequest: MakeRequest, data: EditorInterfaceProps): EditorInterface; -/** - * @private - */ -export declare const wrapEditorInterfaceCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/entry.d.ts b/node_modules/contentful-management/dist/typings/entities/entry.d.ts deleted file mode 100644 index aba5f282..00000000 --- a/node_modules/contentful-management/dist/typings/entities/entry.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { CollectionProp, DefaultElements, EntryMetaSysProps, KeyValueMap, MakeRequest, MetadataProps } from '../common-types'; -import { ContentfulEntryApi } from '../create-entry-api'; -import { AssetProps } from './asset'; -export type EntryProps = { - sys: EntryMetaSysProps; - metadata?: MetadataProps; - fields: T; -}; -export type CreateEntryProps = Omit, 'sys'>; -export type EntryReferenceError = { - sys: { - type: 'error'; - id: 'notResolvable'; - }; - details: { - type: 'Link'; - linkType: 'Entry' | 'Asset'; - id: string; - }; -}; -export interface EntryReferenceProps extends CollectionProp { - includes?: { - Entry?: EntryProps[]; - Asset?: AssetProps[]; - }; - errors?: EntryReferenceError[]; -} -export type EntryReferenceOptionsProps = { - include?: number; -}; -export interface Entry extends EntryProps, DefaultElements, ContentfulEntryApi { -} -export type WithResourceName = T extends { - sys: infer Sys; -} ? Omit & { - sys: Sys & { - urn: string; - }; -} : never; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw entry data - * @return Wrapped entry data - */ -export declare function wrapEntry(makeRequest: MakeRequest, data: EntryProps): Entry; -/** - * Data is also mixed in with link getters if links exist and includes were requested - * @private - */ -export declare const wrapEntryCollection: (makeRequest: MakeRequest, data: CollectionProp>) => import("../common-types").Collection>; diff --git a/node_modules/contentful-management/dist/typings/entities/environment-alias.d.ts b/node_modules/contentful-management/dist/typings/entities/environment-alias.d.ts deleted file mode 100644 index ddecfd6c..00000000 --- a/node_modules/contentful-management/dist/typings/entities/environment-alias.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { DefaultElements, MetaLinkProps, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'; -export type EnvironmentAliasProps = { - /** - * System meta data - */ - sys: BasicMetaSysProps & { - space: SysLink; - }; - environment: { - sys: MetaLinkProps; - }; -}; -export type CreateEnvironmentAliasProps = Omit; -export interface EnvironmentAlias extends EnvironmentAliasProps, DefaultElements { - /** - * Sends an update to the server with any changes made to the object's properties. Currently, you can only change the id of the alias's underlying environment. See the example below. - * @memberof EnvironmentAlias - * @func update - * @return {Promise} Object returned from the server with updated changes. - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => { - * alias.environment.sys.id = '' - * return alias.update() - * }) - * .then((alias) => console.log(`alias ${alias.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Deletes this object on the server. - * @memberof EnvironmentAlias - * @func delete - * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled. - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironmentAlias('')) - * .then((alias) => { - * return alias.delete() - * }) - * .then(() => console.log(`Alias deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias data - * @return Wrapped environment alias data - */ -export declare function wrapEnvironmentAlias(makeRequest: MakeRequest, data: EnvironmentAliasProps): EnvironmentAlias; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw environment alias collection data - * @return Wrapped environment alias collection data - */ -export declare const wrapEnvironmentAliasCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/environment.d.ts b/node_modules/contentful-management/dist/typings/entities/environment.d.ts deleted file mode 100644 index e4730dd9..00000000 --- a/node_modules/contentful-management/dist/typings/entities/environment.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ContentfulEnvironmentAPI } from '../create-environment-api'; -import { DefaultElements, SysLink, BasicMetaSysProps, MakeRequest } from '../common-types'; -type EnvironmentMetaSys = BasicMetaSysProps & { - status: SysLink; - space: SysLink; - aliases?: Array; - aliasedEnvironment?: SysLink; -}; -export type EnvironmentProps = { - /** - * System metadata - */ - sys: EnvironmentMetaSys; - /** - * Name of the environment - */ - name: string; -}; -export type CreateEnvironmentProps = Partial>; -export type Environment = ContentfulEnvironmentAPI & EnvironmentProps & DefaultElements; -/** - * This method creates the API for the given environment with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a environment id, so the base path for requests now has the - * environment id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Environment - * @return - */ -export declare function wrapEnvironment(makeRequest: MakeRequest, data: EnvironmentProps): Environment; -/** - * This method wraps each environment in a collection with the environment API. See wrapEnvironment - * above for more details. - * @private - */ -export declare const wrapEnvironmentCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/extension.d.ts b/node_modules/contentful-management/dist/typings/entities/extension.d.ts deleted file mode 100644 index 13576bde..00000000 --- a/node_modules/contentful-management/dist/typings/entities/extension.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { FieldType } from './field-type'; -import { DefinedParameters, ParameterDefinition } from './widget-parameters'; -import { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'; -import { SetRequired, RequireExactlyOne } from 'type-fest'; -type ExtensionSysProps = BasicMetaSysProps & { - space: SysLink; - environment: SysLink; - srcdocSha256?: string; -}; -export type ExtensionProps = { - sys: ExtensionSysProps; - extension: { - /** - * Extension name - */ - name: string; - /** - * Field types where an extension can be used - */ - fieldTypes: FieldType[]; - /** - * URL where the root HTML document of the extension can be found - */ - src?: string; - /** - * String representation of the extension (e.g. inline HTML code) - */ - srcdoc?: string; - /** - * Parameter definitions - */ - parameters?: { - instance?: ParameterDefinition[]; - installation?: ParameterDefinition[]; - }; - /** - * Controls the location of the extension. If true it will be rendered on the sidebar instead of replacing the field's editing control - */ - sidebar?: boolean; - }; - /** - * Values for installation parameters - */ - parameters?: DefinedParameters; -}; -export type CreateExtensionProps = { - extension: RequireExactlyOne, 'src' | 'srcdoc'>; -}; -export interface Extension extends ExtensionProps, DefaultElements { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => { - * extension.extension.name = 'New UI Extension name' - * return extension.update() - * }) - * .then((extension) => console.log(`UI Extension ${extension.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUiExtension('')) - * .then((extension) => extension.delete()) - * .then(() => console.log(`UI Extension deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw UI Extension data - * @return Wrapped UI Extension data - */ -export declare function wrapExtension(makeRequest: MakeRequest, data: ExtensionProps): Extension; -/** - * @private - */ -export declare const wrapExtensionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/field-type.d.ts b/node_modules/contentful-management/dist/typings/entities/field-type.d.ts deleted file mode 100644 index 2e4b9518..00000000 --- a/node_modules/contentful-management/dist/typings/entities/field-type.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -export type FieldType = { - type: 'Symbol'; -} | { - type: 'Text'; -} | { - type: 'RichText'; -} | { - type: 'Integer'; -} | { - type: 'Number'; -} | { - type: 'Date'; -} | { - type: 'Boolean'; -} | { - type: 'Object'; -} | { - type: 'Location'; -} | { - type: 'Link'; - linkType: 'Asset'; -} | { - type: 'Link'; - linkType: 'Entry'; -} | { - type: 'ResourceLink'; - linkType: string; -} | { - type: 'Array'; - items: { - type: 'Symbol'; - }; -} | { - type: 'Array'; - items: { - type: 'Link'; - linkType: 'Entry'; - }; -} | { - type: 'Array'; - items: { - type: 'Resourcelink'; - linkType: string; - }; -} | { - type: 'Array'; - items: { - type: 'Link'; - linkType: 'Asset'; - }; -}; diff --git a/node_modules/contentful-management/dist/typings/entities/index.d.ts b/node_modules/contentful-management/dist/typings/entities/index.d.ts deleted file mode 100644 index 7cf4db16..00000000 --- a/node_modules/contentful-management/dist/typings/entities/index.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import * as apiKey from './api-key'; -import * as appAction from './app-action'; -import * as appActionCall from './app-action-call'; -import * as appBundle from './app-bundle'; -import * as appDefinition from './app-definition'; -import * as appDetails from './app-details'; -import * as appInstallation from './app-installation'; -import * as appSignedRequest from './app-signed-request'; -import * as appSigningSecret from './app-signing-secret'; -import * as appEventSubscription from './app-event-subscription'; -import * as appKey from './app-key'; -import * as appAccessToken from './app-access-token'; -import * as appUpload from './app-upload'; -import * as asset from './asset'; -import * as assetKey from './asset-key'; -import * as bulkAction from './bulk-action'; -import * as comment from './comment'; -import * as contentType from './content-type'; -import * as editorInterface from './editor-interface'; -import * as entry from './entry'; -import * as environment from './environment'; -import * as environmentAlias from './environment-alias'; -import * as environmentTemplate from './environment-template'; -import * as environmentTemplateInstallation from './environment-template-installation'; -import * as extension from './extension'; -import * as locale from './locale'; -import * as organization from './organization'; -import * as organizationInvitation from './organization-invitation'; -import * as organizationMembership from './organization-membership'; -import * as personalAccessToken from './personal-access-token'; -import * as accessToken from './access-token'; -import * as previewApiKey from './preview-api-key'; -import * as release from './release'; -import * as releaseAction from './release-action'; -import * as role from './role'; -import * as scheduledAction from './scheduled-action'; -import * as snapshot from './snapshot'; -import * as space from './space'; -import * as spaceMember from './space-member'; -import * as spaceMembership from './space-membership'; -import * as tag from './tag'; -import * as task from './task'; -import * as team from './team'; -import * as teamMembership from './team-membership'; -import * as teamSpaceMembership from './team-space-membership'; -import * as uiConfig from './ui-config'; -import * as upload from './upload'; -import * as usage from './usage'; -import * as user from './user'; -import * as userUIConfig from './user-ui-config'; -import * as webhook from './webhook'; -import * as workflowDefinition from './workflow-definition'; -declare const _default: { - accessToken: typeof accessToken; - appAction: typeof appAction; - appActionCall: typeof appActionCall; - appBundle: typeof appBundle; - apiKey: typeof apiKey; - appDefinition: typeof appDefinition; - appInstallation: typeof appInstallation; - appUpload: typeof appUpload; - appDetails: typeof appDetails; - appSignedRequest: typeof appSignedRequest; - appSigningSecret: typeof appSigningSecret; - appEventSubscription: typeof appEventSubscription; - appKey: typeof appKey; - appAccessToken: typeof appAccessToken; - asset: typeof asset; - assetKey: typeof assetKey; - bulkAction: typeof bulkAction; - comment: typeof comment; - contentType: typeof contentType; - editorInterface: typeof editorInterface; - entry: typeof entry; - environment: typeof environment; - environmentAlias: typeof environmentAlias; - environmentTemplate: typeof environmentTemplate; - environmentTemplateInstallation: typeof environmentTemplateInstallation; - extension: typeof extension; - locale: typeof locale; - organization: typeof organization; - organizationInvitation: typeof organizationInvitation; - organizationMembership: typeof organizationMembership; - personalAccessToken: typeof personalAccessToken; - previewApiKey: typeof previewApiKey; - release: typeof release; - releaseAction: typeof releaseAction; - role: typeof role; - scheduledAction: typeof scheduledAction; - snapshot: typeof snapshot; - space: typeof space; - spaceMember: typeof spaceMember; - spaceMembership: typeof spaceMembership; - tag: typeof tag; - task: typeof task; - team: typeof team; - teamMembership: typeof teamMembership; - teamSpaceMembership: typeof teamSpaceMembership; - uiConfig: typeof uiConfig; - upload: typeof upload; - usage: typeof usage; - user: typeof user; - userUIConfig: typeof userUIConfig; - webhook: typeof webhook; - workflowDefinition: typeof workflowDefinition; -}; -export default _default; diff --git a/node_modules/contentful-management/dist/typings/entities/locale.d.ts b/node_modules/contentful-management/dist/typings/entities/locale.d.ts deleted file mode 100644 index 809480a0..00000000 --- a/node_modules/contentful-management/dist/typings/entities/locale.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Except, SetOptional } from 'type-fest'; -import { BasicMetaSysProps, SysLink, DefaultElements, MakeRequest } from '../common-types'; -export type LocaleProps = { - sys: BasicMetaSysProps & { - space: SysLink; - environment: SysLink; - }; - /** - * Locale name - */ - name: string; - /** - * Locale code (example: en-us) - */ - code: string; - /** - * Internal locale code - */ - internal_code: string; - /** - * Locale code to fallback to when there is not content for the current locale - */ - fallbackCode: string | null; - /** - * If the content under this locale should be available on the CDA (for public reading) - */ - contentDeliveryApi: boolean; - /** - * If the content under this locale should be available on the CMA (for editing) - */ - contentManagementApi: boolean; - /** - * If this is the default locale - */ - default: boolean; - /** - * If the locale needs to be filled in on entries or not - */ - optional: boolean; -}; -export type CreateLocaleProps = Omit, 'optional' | 'contentManagementApi' | 'default' | 'contentDeliveryApi'>, 'internal_code'>; -export interface Locale extends LocaleProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => locale.delete()) - * .then(() => console.log(`locale deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getLocale('')) - * .then((locale) => { - * locale.name = 'New locale name' - * return locale.update() - * }) - * .then((locale) => console.log(`locale ${locale.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw locale data - * @return Wrapped locale data - */ -export declare function wrapLocale(makeRequest: MakeRequest, data: LocaleProps): Locale; -/** - * @private - */ -export declare const wrapLocaleCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/organization-invitation.d.ts b/node_modules/contentful-management/dist/typings/entities/organization-invitation.d.ts deleted file mode 100644 index 495aa70f..00000000 --- a/node_modules/contentful-management/dist/typings/entities/organization-invitation.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'; -export type OrganizationInvitationProps = { - sys: MetaSysProps & { - organizationMembership: { - sys: MetaLinkProps; - }; - user: Record | null; - invitationUrl: string; - status: string; - }; - firstName: string; - lastName: string; - email: string; - role: string; -}; -export type CreateOrganizationInvitationProps = Omit; -export interface OrganizationInvitation extends OrganizationInvitationProps, DefaultElements { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw invitation data - * @return {OrganizationInvitation} Wrapped Inviation data - */ -export declare function wrapOrganizationInvitation(_makeRequest: MakeRequest, data: OrganizationInvitationProps): OrganizationInvitation; diff --git a/node_modules/contentful-management/dist/typings/entities/organization-membership.d.ts b/node_modules/contentful-management/dist/typings/entities/organization-membership.d.ts deleted file mode 100644 index a51e8997..00000000 --- a/node_modules/contentful-management/dist/typings/entities/organization-membership.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { MetaSysProps, DefaultElements, MetaLinkProps, MakeRequest } from '../common-types'; -export type OrganizationMembershipProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - user: { - sys: MetaLinkProps; - }; - }; - /** - * Role - */ - role: string; - /** - * status - */ - status: boolean; -}; -export interface OrganizationMembership extends OrganizationMembershipProps, DefaultElements { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then(org => org.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => { - * organizationMembership.role = 'member'; - * organizationMembership.update(); - * }) - * .catch(console.error) - */ - update(): Promise; - /** - * Deletes this object on the server. - * @example```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then(org => org.getOrganizationMembership('organizationMembership_id')) - * .then((organizationMembership) => { - * organizationMembership.delete(); - * }) - * .catch(console.error) - * ``` - */ - delete(): Promise; -} -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {Object} data - Raw organization membership data - * @return {OrganizationMembership} Wrapped organization membership data - */ -export declare function wrapOrganizationMembership(makeRequest: MakeRequest, data: OrganizationMembershipProps, organizationId: string): OrganizationMembership; -/** - * @private - */ -export declare const wrapOrganizationMembershipCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp, organizationId: string) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/organization.d.ts b/node_modules/contentful-management/dist/typings/entities/organization.d.ts deleted file mode 100644 index 5f5bfbc9..00000000 --- a/node_modules/contentful-management/dist/typings/entities/organization.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { ContentfulOrganizationAPI } from '../create-organization-api'; -import { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'; -export type Organization = DefaultElements & OrganizationProp & ContentfulOrganizationAPI; -export type OrganizationProp = { - /** - * System metadata - */ - sys: MetaSysProps; - /** - * Name - */ - name: string; -}; -/** - * This method creates the API for the given organization with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with an organization id, so the base path for requests now has the - * organization id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for an Organization - * @return {Organization} - */ -export declare function wrapOrganization(makeRequest: MakeRequest, data: OrganizationProp): Organization; -/** - * This method normalizes each organization in a collection. - * @private - */ -export declare const wrapOrganizationCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/personal-access-token.d.ts b/node_modules/contentful-management/dist/typings/entities/personal-access-token.d.ts deleted file mode 100644 index 81fa220c..00000000 --- a/node_modules/contentful-management/dist/typings/entities/personal-access-token.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'; -export type PersonalAccessTokenProp = { - sys: MetaSysProps & { - expiresAt?: string; - }; - name: string; - scopes: 'content_management_manage'[]; - revokedAt: null | string; - token?: string; -}; -export type CreatePersonalAccessTokenProps = Pick & { - expiresIn?: number; -}; -export interface PersonalAccessToken extends PersonalAccessTokenProp, DefaultElements { - /** - * Revokes a personal access token - * @return Object the revoked personal access token - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: - * }) - * - * client.getPersonalAccessToken('') - * .then((personalAccessToken) => { - * return personalAccessToken.revoke() - * }) - * .catch(console.error) - * ``` - */ - revoke(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access token data - * @return Wrapped personal access token - */ -export declare function wrapPersonalAccessToken(makeRequest: MakeRequest, data: PersonalAccessTokenProp): PersonalAccessToken; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw personal access collection data - * @return Wrapped personal access token collection data - */ -export declare const wrapPersonalAccessTokenCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/preview-api-key.d.ts b/node_modules/contentful-management/dist/typings/entities/preview-api-key.d.ts deleted file mode 100644 index 325bb565..00000000 --- a/node_modules/contentful-management/dist/typings/entities/preview-api-key.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { DefaultElements, MakeRequest, MetaSysProps } from '../common-types'; -export type PreviewApiKeyProps = { - sys: MetaSysProps; - name: string; - description: string; - accessToken: string; -}; -export interface PreviewApiKey extends PreviewApiKeyProps, DefaultElements { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw api key data - * @return Wrapped preview api key data - */ -export declare function wrapPreviewApiKey(_makeRequest: MakeRequest, data: PreviewApiKeyProps): PreviewApiKey; -/** - * @private - */ -export declare const wrapPreviewApiKeyCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/release-action.d.ts b/node_modules/contentful-management/dist/typings/entities/release-action.d.ts deleted file mode 100644 index 180d168b..00000000 --- a/node_modules/contentful-management/dist/typings/entities/release-action.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { DefaultElements, ISO8601Timestamp, Link, MakeRequest } from '../common-types'; -import { AsyncActionProcessingOptions } from '../methods/action'; -type ReleaseActionStatuses = 'created' | 'inProgress' | 'failed' | 'succeeded'; -export type ReleaseActionTypes = 'publish' | 'unpublish' | 'validate'; -export type ReleaseActionSysProps = { - id: string; - type: 'ReleaseAction'; - space: Link<'Space'>; - environment: Link<'Environment'>; - release: Link<'Release'>; - status: ReleaseActionStatuses; - createdBy: Link<'User'>; - createdAt: ISO8601Timestamp; - updatedAt: ISO8601Timestamp; -}; -/** The object returned by the Releases API */ -export interface ReleaseActionProps { - action: T; - sys: ReleaseActionSysProps; -} -export interface ReleaseActionQueryOptions { - /** Find Release Actions by using a comma-separated list of Ids */ - 'sys.id[in]'?: string; - 'sys.release.sys.id[in]'?: string; - 'sys.status[in]'?: string; - 'sys.status[nin]'?: string; - action?: ReleaseActionTypes; - /** Get unique results by this field. Currently supports `sys.release.sys.id` */ - uniqueBy?: string; - /** @default -sys.updatedAt */ - order?: string; - /** - * Limit of how many records are returned in the query result - * @default 100 - * */ - limit?: number; -} -export interface ReleaseActionApiMethods { - /** Performs a new GET request and returns the wrapper Release */ - get(): ReleaseAction; - /** Waits until the Release Action has either succeeded or failed */ - waitProcessing(options?: AsyncActionProcessingOptions): ReleaseAction; -} -export interface ReleaseAction extends ReleaseActionProps, ReleaseActionApiMethods, DefaultElements> { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -export declare function wrapReleaseAction(makeRequest: MakeRequest, data: ReleaseActionProps): ReleaseAction; -/** - * @private - */ -export declare const wrapReleaseActionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp>) => import("../common-types").Collection, ReleaseActionProps>; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/release.d.ts b/node_modules/contentful-management/dist/typings/entities/release.d.ts deleted file mode 100644 index 7765ed42..00000000 --- a/node_modules/contentful-management/dist/typings/entities/release.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { BaseCollection, CursorPaginatedCollection, CursorPaginatedCollectionProp, DefaultElements, ISO8601Timestamp, Link, MakeRequest, MakeRequestPayload, ScheduledActionReferenceFilters } from '../common-types'; -import { AsyncActionProcessingOptions } from '../methods/action'; -import { ReleaseAction } from './release-action'; -/** Entity types supported by the Release API */ -type Entity = 'Entry' | 'Asset'; -type ReleaseStatus = 'active' | 'archived'; -export interface ReleaseQueryOptions { - /** Find releases filtered by the Entity type (Asset, Entry) */ - 'entities.sys.linkType'?: string; - /** Find releases containing the specified, comma-separated entities. Requires `entities.sys.linkType` */ - 'entities.sys.id[in]'?: string; - /** Comma-separated list of ids to exclude from the query */ - 'sys.id[nin]'?: string; - /** Comma-separated list of Ids to find (inclusion) */ - 'sys.id[in]'?: string; - /** Comma-separated list of user Ids to find releases by creator */ - 'sys.createdBy.sys.id[in]'?: string; - /** Comma-separated filter (inclusion) by Release status (active, archived) */ - 'sys.status[in]'?: ReleaseStatus; - /** Comma-separated filter (exclusion) by Release status (active, archived) */ - 'sys.status[nin]'?: ReleaseStatus; - /** Find releases using full text phrase and term matching */ - 'title[match]'?: string; - /** Filter by empty Releases (exists=false) or Releases with items (exists=true) */ - 'entities[exists]'?: boolean; - /** If present, will return results based on a pagination cursor */ - pageNext?: string; - /** - * Limit how many records are returned in the result - * @default 100 - * */ - limit?: number; - /** - * Order releases - * Supported values include - * - `title`, `-title` - * - `sys.updatedAt`, `-sys.updatedAt` - * - `sys.createdAt`, `-sys.createdAt` - * @default -sys.updatedAt - * */ - order?: string; -} -export type ReleaseSysProps = { - id: string; - type: 'Release'; - version: number; - status: ReleaseStatus; - space: Link<'Space'>; - environment: Link<'Environment'>; - archivedBy?: Link<'User'>; - archivedAt?: ISO8601Timestamp; - createdBy: Link<'User'> | Link<'AppDefinition'>; - updatedBy: Link<'User'> | Link<'AppDefinition'>; - createdAt: ISO8601Timestamp; - updatedAt: ISO8601Timestamp; - lastAction?: Link<'ReleaseAction'>; -}; -export type ReleaseReferenceFilters = ScheduledActionReferenceFilters; -export declare const ReleaseReferenceFilters: typeof ScheduledActionReferenceFilters; -export type ReleaseMetadata = { - withReferences: { - entity: Link<'Entry'>; - filter: Record; - }[]; -}; -/** The object returned by the Releases API */ -export interface ReleaseProps { - title: string; - sys: ReleaseSysProps; - entities: BaseCollection>; - metadata?: ReleaseMetadata; -} -export interface ReleasePayload extends MakeRequestPayload { - title: string; - entities: BaseCollection>; -} -export interface ReleaseValidatePayload { - action?: 'publish'; -} -export interface ReleaseValidateOptions { - payload?: ReleaseValidatePayload; - processingOptions?: AsyncActionProcessingOptions; -} -export interface ReleaseApiMethods { - /** - * Archives a release and locks any actions such as adding new entities or publishing/unpublishing. - * This operation increases the sys.version property - * @throws {BadRequest} if the release is already archived - * */ - archive(): Promise; - /** - * Unarchives an `archived` release and unlocks operations on the Release. This operation increases the sys.version property - * @throws {BadRequest} if the release is not archived - * */ - unarchive(): Promise; - /** Updates a Release and returns the updated Release object */ - update(payload: ReleasePayload): Promise; - /** Deletes a Release and all ReleaseActions linked to it (non-reversible) */ - delete(): Promise; - /** Publishes a Release and waits until the asynchronous action is completed */ - publish(options?: AsyncActionProcessingOptions): Promise>; - /** Unpublishes a Release and waits until the asynchronous action is completed */ - unpublish(options?: AsyncActionProcessingOptions): Promise>; - /** Validates a Release and waits until the asynchronous action is completed */ - validate({ payload, options, }?: { - payload?: ReleaseValidatePayload; - options?: AsyncActionProcessingOptions; - }): Promise>; -} -export interface Release extends ReleaseProps, ReleaseApiMethods, DefaultElements { -} -/** - * Return a Release object enhanced with its own API helper functions. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw Release data - * @return Wrapped Release data - */ -export declare function wrapRelease(makeRequest: MakeRequest, data: ReleaseProps): Release; -/** - * @private - */ -export declare const wrapReleaseCollection: (makeRequest: MakeRequest, data: CursorPaginatedCollectionProp) => CursorPaginatedCollection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/role.d.ts b/node_modules/contentful-management/dist/typings/entities/role.d.ts deleted file mode 100644 index 481b8205..00000000 --- a/node_modules/contentful-management/dist/typings/entities/role.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { DefaultElements, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'; -export type ActionType = 'read' | 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'archive' | 'unarchive'; -type ConditionType = 'and' | 'or' | 'not' | 'equals'; -export type ConstraintType = { - [key in ConditionType]?: ConstraintType[] | any; -}; -export type RoleProps = { - sys: BasicMetaSysProps & { - space: SysLink; - }; - name: string; - description?: string; - /** - * Permissions for application sections - */ - permissions: { - ContentDelivery: string[] | string; - ContentModel: string[]; - EnvironmentAliases: string[] | string; - Environments: string[] | string; - Settings: string[] | string; - Tags: string[] | string; - }; - policies: { - effect: string; - actions: ActionType[] | 'all'; - constraint: ConstraintType; - }[]; -}; -export type CreateRoleProps = Omit; -export interface Role extends RoleProps, DefaultElements { - /** - * Deletes this object on the server. - * @memberof Role - * @func delete - * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRole('')) - * .then((role) => role.delete()) - * .then((role) => console.log(`role deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getRole('')) - * .then((roles) => { - * roles.name = 'New role name' - * return roles.update() - * }) - * .then((roles) => console.log(`roles ${roles.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw role data - * @return Wrapped role data - */ -export declare function wrapRole(makeRequest: MakeRequest, data: RoleProps): Role; -/** - * @private - */ -export declare const wrapRoleCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/scheduled-action.d.ts b/node_modules/contentful-management/dist/typings/entities/scheduled-action.d.ts deleted file mode 100644 index 2db2f2d0..00000000 --- a/node_modules/contentful-management/dist/typings/entities/scheduled-action.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { DefaultElements, ISO8601Timestamp, MetaLinkProps, Link, MakeRequest, SysLink, ScheduledActionReferenceFilters, BasicCursorPaginationOptions, CollectionProp } from '../common-types'; -/** - * Represents that state of the scheduled action - */ -declare enum ScheduledActionStatus { - /** action is pending execution */ - scheduled = "scheduled", - /** action has been started and pending completion */ - inProgress = "inProgress", - /** action was completed successfully (terminal state) */ - succeeded = "succeeded", - /** action failed to complete (terminal state) */ - failed = "failed", - /** action was canceled by a user (terminal state) */ - canceled = "canceled" -} -type SchedulableEntityType = 'Entry' | 'Asset' | 'Release'; -type SchedulableActionType = 'publish' | 'unpublish'; -type ErrorDetail = { - error: any; -}; -interface ScheduledActionFailedError { - sys: { - type: 'Error'; - id: string; - }; - message?: string; - details?: { - errors: ErrorDetail[]; - }; -} -export interface CursorPaginatedCollectionProp extends Omit, 'total' | 'skip'> { - pages?: BasicCursorPaginationOptions; -} -export type ScheduledActionSysProps = { - id: string; - type: 'ScheduledAction'; - version: number; - space: SysLink; - status: ScheduledActionStatus; - createdAt: ISO8601Timestamp; - createdBy: Link<'User'> | Link<'AppDefinition'>; - /** an ISO8601 date string representing when an action was moved to canceled */ - canceledAt?: ISO8601Timestamp; - canceledBy?: Link<'User'> | Link<'AppDefinition'>; - /** an ISO8601 date string representing when an action was updated */ - updatedAt: ISO8601Timestamp; - updatedBy: Link<'User'> | Link<'AppDefinition'>; -}; -export type ScheduledActionPayloadProps = { - withReferences?: Record; -}; -export type ScheduledActionProps = { - sys: ScheduledActionSysProps; - action: SchedulableActionType; - entity: Link; - environment?: { - sys: MetaLinkProps; - }; - scheduledFor: { - datetime: ISO8601Timestamp; - /** - * A valid IANA timezone Olson identifier - * - * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - * @example 'Asia/Kolkata' - */ - timezone?: string; - }; - /** - * The Contentful-style error that occurred during execution if sys.status is failed - * - * @example - * { - * sys: { - * type: 'Error', - * id: 'InvalidEntry' - * }, - * message: 'Entry is invalid', - * details: { - * errors: [...] - * } - * } - */ - error?: ScheduledActionFailedError; - payload?: ScheduledActionPayloadProps; -}; -export type CreateUpdateScheduledActionProps = Pick; -export type ScheduledActionCollection = CursorPaginatedCollectionProp; -export interface ScheduledActionQueryOptions { - 'environment.sys.id': string; - [key: string]: any; - limit?: number; - next?: string; - prev?: string; -} -export type ScheduledActionApi = { - delete(): Promise; - update(): Promise; -}; -export interface ScheduledAction extends ScheduledActionProps, DefaultElements, ScheduledActionApi { -} -export default function getInstanceMethods(makeRequest: MakeRequest): ScheduledActionApi; -/** - * @private - */ -export declare function wrapScheduledAction(makeRequest: MakeRequest, data: ScheduledActionProps): ScheduledAction; -/** - * @private - */ -export declare const wrapScheduledActionCollection: (makeRequest: MakeRequest, data: CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/snapshot.d.ts b/node_modules/contentful-management/dist/typings/entities/snapshot.d.ts deleted file mode 100644 index 8fc424cd..00000000 --- a/node_modules/contentful-management/dist/typings/entities/snapshot.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { MetaSysProps, DefaultElements, MakeRequest } from '../common-types'; -export type SnapshotProps = { - sys: MetaSysProps & { - snapshotType: string; - snapshotEntityType: string; - }; - snapshot: T; -}; -export interface Snapshot extends SnapshotProps, DefaultElements> { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot data - * @return Wrapped snapshot data - */ -export declare function wrapSnapshot(_makeRequest: MakeRequest, data: SnapshotProps): Snapshot; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw snapshot collection data - * @return Wrapped snapshot collection data - */ -export declare const wrapSnapshotCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp>) => import("../common-types").Collection, SnapshotProps>; diff --git a/node_modules/contentful-management/dist/typings/entities/space-member.d.ts b/node_modules/contentful-management/dist/typings/entities/space-member.d.ts deleted file mode 100644 index 0a27ac96..00000000 --- a/node_modules/contentful-management/dist/typings/entities/space-member.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types'; -export type SpaceMemberProps = { - sys: MetaSysProps; - /** - * User is an admin - */ - admin: boolean; - /** - * Array of Role Links - */ - roles: { - sys: MetaLinkProps; - }[]; -}; -export interface SpaceMember extends SpaceMemberProps, DefaultElements { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space member data - * @return Wrapped space member data - */ -export declare function wrapSpaceMember(_makeRequest: MakeRequest, data: SpaceMemberProps): SpaceMemberProps & { - toPlainObject(): SpaceMemberProps; -}; -/** - * @private - */ -export declare const wrapSpaceMemberCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/space-membership.d.ts b/node_modules/contentful-management/dist/typings/entities/space-membership.d.ts deleted file mode 100644 index 9908be6f..00000000 --- a/node_modules/contentful-management/dist/typings/entities/space-membership.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { SysLink, MetaSysProps, DefaultElements, MakeRequest } from '../common-types'; -export type SpaceMembershipProps = { - sys: MetaSysProps & { - space: SysLink; - user: SysLink; - }; - user: SysLink; - admin: boolean; - roles: SysLink[]; -}; -export type CreateSpaceMembershipProps = Omit & { - email: string; -}; -export interface SpaceMembership extends SpaceMembershipProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('')) - * .then((spaceMembership) => spaceMembership.delete()) - * .then(() => console.log(`spaceMembership deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getSpaceMembership('')) - * .then((spaceMembership) => { - * spaceMembership.name = 'new space membership name' - * }) - * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped space membership data - */ -export declare function wrapSpaceMembership(makeRequest: MakeRequest, data: SpaceMembershipProps): SpaceMembership; -/** - * @private - */ -export declare const wrapSpaceMembershipCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/space.d.ts b/node_modules/contentful-management/dist/typings/entities/space.d.ts deleted file mode 100644 index 88833807..00000000 --- a/node_modules/contentful-management/dist/typings/entities/space.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { BasicMetaSysProps, DefaultElements, MakeRequest } from '../common-types'; -import { ContentfulSpaceAPI } from '../create-space-api'; -export type SpaceProps = { - sys: BasicMetaSysProps & { - organization: { - sys: { - id: string; - }; - }; - }; - name: string; -}; -export type Space = SpaceProps & DefaultElements & ContentfulSpaceAPI; -/** - * This method creates the API for the given space with all the methods for - * reading and creating other entities. It also passes down a clone of the - * http client with a space id, so the base path for requests now has the - * space id already set. - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - API response for a Space - * @return {Space} - */ -export declare function wrapSpace(makeRequest: MakeRequest, data: SpaceProps): Space; -/** - * This method wraps each space in a collection with the space API. See wrapSpace - * above for more details. - * @private - */ -export declare const wrapSpaceCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/tag.d.ts b/node_modules/contentful-management/dist/typings/entities/tag.d.ts deleted file mode 100644 index db916272..00000000 --- a/node_modules/contentful-management/dist/typings/entities/tag.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types'; -export type TagVisibility = 'private' | 'public'; -export type TagSysProps = Pick & { - type: 'Tag'; - visibility: TagVisibility; - space: SysLink; - environment: SysLink; -}; -export type TagProps = { - sys: TagSysProps; - name: string; -}; -export type CreateTagProps = Omit & { - sys: Pick; -}; -export type UpdateTagProps = Omit & { - sys: Pick; -}; -export type DeleteTagParams = GetTagParams & { - version: number; -}; -export type TagCollectionProps = { - sys: { - type: 'Array'; - }; - items: TagProps[]; - total: number; -}; -export interface TagCollection { - items: Tag[]; - total: number; -} -type TagApi = { - update(): Promise; - delete(): Promise; -}; -export interface Tag extends TagProps, DefaultElements, TagApi { -} -/** - * @private - */ -export default function createTagApi(makeRequest: MakeRequest): TagApi; -/** - * @private - */ -export declare function wrapTag(makeRequest: MakeRequest, data: TagProps): Tag; -/** - * @private - */ -export declare const wrapTagCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/task.d.ts b/node_modules/contentful-management/dist/typings/entities/task.d.ts deleted file mode 100644 index d05d9e91..00000000 --- a/node_modules/contentful-management/dist/typings/entities/task.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { BasicMetaSysProps, DefaultElements, GetEntryParams, GetTaskParams, Link, MakeRequest, SysLink } from '../common-types'; -export type TaskStatus = 'active' | 'resolved'; -export type TaskSysProps = Pick & { - type: 'Task'; - space: SysLink; - environment: SysLink; - parentEntity: Link<'Entry'>; -}; -export type TaskProps = { - sys: TaskSysProps; - body: string; - assignedTo: Link<'User' | 'Team'>; - status: TaskStatus; - dueDate?: string; -}; -export type CreateTaskProps = Omit; -export type UpdateTaskProps = Omit & { - sys: Pick; -}; -export type CreateTaskParams = GetEntryParams; -export type UpdateTaskParams = GetTaskParams; -export type DeleteTaskParams = GetTaskParams & { - version: number; -}; -type TaskApi = { - update(): Promise; - delete(): Promise; -}; -export interface Task extends TaskProps, DefaultElements, TaskApi { -} -/** - * @private - */ -export default function createTaskApi(makeRequest: MakeRequest): TaskApi; -/** - * @private - */ -export declare function wrapTask(makeRequest: MakeRequest, data: TaskProps): Task; -/** - * @private - */ -export declare const wrapTaskCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/team-membership.d.ts b/node_modules/contentful-management/dist/typings/entities/team-membership.d.ts deleted file mode 100644 index c4baf098..00000000 --- a/node_modules/contentful-management/dist/typings/entities/team-membership.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'; -export type TeamMembershipProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - team: { - sys: MetaLinkProps; - }; - organization: { - sys: MetaLinkProps; - }; - organizationMembership: { - sys: MetaLinkProps; - }; - }; - /** - * Is admin - */ - admin: boolean; - /** - * Organization membership id - */ - organizationMembershipId: string; -}; -export type CreateTeamMembershipProps = Omit; -export interface TeamMembership extends TeamMembershipProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then(org => org.getTeamMembership('teamId', 'teamMembershipId')) - * .then((teamMembership) => { - * teamMembership.delete(); - * }) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organizationId') - * .then(org => org.getTeamMembership('teamId', 'teamMembershipId')) - * .then((teamMembership) => { - * teamMembership.admin = true; - * teamMembership.update(); - * }) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team membership data - * @return Wrapped team membership data - */ -export declare function wrapTeamMembership(makeRequest: MakeRequest, data: TeamMembershipProps): TeamMembership; -/** - * @private - */ -export declare const wrapTeamMembershipCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/team-space-membership.d.ts b/node_modules/contentful-management/dist/typings/entities/team-space-membership.d.ts deleted file mode 100644 index 0910c47e..00000000 --- a/node_modules/contentful-management/dist/typings/entities/team-space-membership.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps, QueryOptions } from '../common-types'; -export interface Options { - teamId?: string; - query?: QueryOptions; -} -export type TeamSpaceMembershipProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - team: { - sys: MetaLinkProps; - }; - space: { - sys: MetaLinkProps; - }; - }; - /** - * Is admin - */ - admin: boolean; - /** - * Roles - */ - roles: { - sys: MetaLinkProps; - }[]; -}; -export type CreateTeamSpaceMembershipProps = Omit; -export interface TeamSpaceMembership extends TeamSpaceMembershipProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('')) - * .then((teamSpaceMembership) => teamSpaceMembership.delete()) - * .then(() => console.log(`spaceMembership deleted.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getTeamSpaceMembership('team_space_membership_id')) - * .then((teamSpaceMembership) => { - * item.roles = [ - * { - * sys: { - * type: 'Link', - * linkType: 'Role', - * id: 'role_id' - * } - * } - * ] - * }) - * .then((spaceMembership) => console.log(`spaceMembership ${spaceMembership.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw space membership data - * @return Wrapped team space membership data - */ -export declare function wrapTeamSpaceMembership(makeRequest: MakeRequest, data: TeamSpaceMembershipProps): TeamSpaceMembership; -/** - * @private - */ -export declare const wrapTeamSpaceMembershipCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/team.d.ts b/node_modules/contentful-management/dist/typings/entities/team.d.ts deleted file mode 100644 index 1ddfa314..00000000 --- a/node_modules/contentful-management/dist/typings/entities/team.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'; -export type TeamProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - memberCount: number; - organization: { - sys: MetaLinkProps; - }; - }; - /** - * Name of the team - */ - name: string; - /** - * Description of the team - */ - description: string; -}; -export type CreateTeamProps = Omit; -export interface Team extends TeamProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then(org => org.getOrganizationMembership('organizationMembership_id')) - * .then((team) => { - * team.delete(); - * }) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * @example ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getOrganization('organization_id') - * .then(org => org.getTeam('team_id')) - * .then((team) => { - * team.description = 'new description'; - * team.update(); - * }) - * .catch(console.error) - * ``` - */ - update(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw team data - * @return Wrapped team data - */ -export declare function wrapTeam(makeRequest: MakeRequest, data: TeamProps): Team; -/** - * @private - */ -export declare const wrapTeamCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/upload.d.ts b/node_modules/contentful-management/dist/typings/entities/upload.d.ts deleted file mode 100644 index a2f78f6b..00000000 --- a/node_modules/contentful-management/dist/typings/entities/upload.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { DefaultElements, MakeRequest, MetaSysProps, SysLink } from '../common-types'; -export type UploadProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - space: SysLink; - environment?: SysLink; - }; -}; -export interface Upload extends UploadProps, DefaultElements { - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * @example - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getEnvironment('')) - * .then((environment) => environment.getUpload('')) - * .then((upload) => upload.delete()) - * .then((upload) => console.log(`upload ${upload.sys.id} updated.`)) - * .catch(console.error) - */ - delete(): Promise; -} -/** - * @private - * @param {function} makeRequest - function to make requests via an adapter - * @param {object} data - Raw upload data - * @return {Upload} Wrapped upload data - */ -export declare function wrapUpload(makeRequest: MakeRequest, data: UploadProps): { - delete: () => Promise; -} & UploadProps & { - toPlainObject(): UploadProps; -}; diff --git a/node_modules/contentful-management/dist/typings/entities/usage.d.ts b/node_modules/contentful-management/dist/typings/entities/usage.d.ts deleted file mode 100644 index 92327159..00000000 --- a/node_modules/contentful-management/dist/typings/entities/usage.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps, QueryOptions } from '../common-types'; -export type UsageMetricEnum = 'cda' | 'cma' | 'cpa' | 'gql'; -export interface UsageQuery extends QueryOptions { - 'metric[in]'?: string; - 'dateRange.startAt'?: string; - 'dateRange.endAt'?: string; -} -export type UsageProps = { - /** - * System metadata - */ - sys: MetaSysProps & { - organization?: { - sys: MetaLinkProps; - }; - }; - /** - * Type of usage - */ - metric: UsageMetricEnum; - /** - * Unit of usage metric - */ - unitOfMeasure: string; - /** - * Range of usage - */ - dateRange: { - startAt: string; - endAt: string; - }; - /** - * Value of the usage - */ - usage: number; - /** - * Usage per day - */ - usagePerDay: { - [key: string]: number; - }; -}; -export interface Usage extends UsageProps, DefaultElements { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized usage - */ -export declare function wrapUsage(_makeRequest: MakeRequest, data: UsageProps): Usage; -/** - * @private - */ -export declare const wrapUsageCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/user.d.ts b/node_modules/contentful-management/dist/typings/entities/user.d.ts deleted file mode 100644 index dc2a22e2..00000000 --- a/node_modules/contentful-management/dist/typings/entities/user.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { DefaultElements, BasicMetaSysProps, MakeRequest } from '../common-types'; -export type UserProps = { - /** - * System metadata - */ - sys: BasicMetaSysProps; - /** - * First name of the user - */ - firstName: string; - /** - * Last name of the user - */ - lastName: string; - /** - * Url to the users avatar - */ - avatarUrl: string; - /** - * Email address of the user - */ - email: string; - /** - * Activation flag - */ - activated: boolean; - /** - * Number of sign ins - */ - signInCount: number; - /** - * User confirmation flag - */ - confirmed: boolean; - '2faEnabled': boolean; - cookieConsentData: string; -}; -export interface User extends UserProps, DefaultElements { -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data - * @return Normalized user - */ -export declare function wrapUser(_makeRequest: MakeRequest, data: T): T & { - toPlainObject(): T; -}; -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw data collection - * @return Normalized user collection - */ -export declare const wrapUserCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/entities/webhook.d.ts b/node_modules/contentful-management/dist/typings/entities/webhook.d.ts deleted file mode 100644 index 53fcd527..00000000 --- a/node_modules/contentful-management/dist/typings/entities/webhook.d.ts +++ /dev/null @@ -1,279 +0,0 @@ -import { Except, JsonValue, SetOptional } from 'type-fest'; -import { BasicMetaSysProps, CollectionProp, DefaultElements, MakeRequest, MetaLinkProps, SysLink } from '../common-types'; -interface EqualityConstraint { - equals: [Doc, string]; -} -interface Doc { - doc: 'sys.id' | 'sys.contentType.sys.id' | 'sys.environment.sys.id'; -} -interface InConstraint { - in: [Doc, [string, ...string[]]]; -} -interface RegexpConstraint { - regexp: [Doc, Pattern]; -} -interface Pattern { - pattern: string; -} -interface NotConstraint { - not: EqualityConstraint | InConstraint | RegexpConstraint; -} -export type WebhookCalls = { - total: number; - healthy: number; -}; -export type WebhookCallRequest = { - url: string; - method: string; - headers: { - [key: string]: string; - }; - body: string; -}; -export type WebhookCallResponse = WebhookCallRequest & { - statusCode: number; -}; -export type WebhookHealthSys = Except; -export type WebhookCallDetailsSys = Except; -export type WebhookHeader = { - key: string; - value: string; - secret?: boolean; -}; -export type WebhookFilter = EqualityConstraint | InConstraint | RegexpConstraint | NotConstraint; -export type WebhookTransformation = { - method?: null | 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE'; - contentType?: null | 'application/vnd.contentful.management.v1+json' | 'application/vnd.contentful.management.v1+json; charset=utf-8' | 'application/json' | 'application/json; charset=utf-8' | 'application/x-www-form-urlencoded' | 'application/x-www-form-urlencoded; charset=utf-8'; - includeContentLength?: boolean | null; - body?: JsonValue; -}; -export type CreateWebhooksProps = SetOptional, 'headers' | 'active'>; -export type UpdateWebhookProps = SetOptional, 'headers' | 'name' | 'topics' | 'url' | 'active'>; -export type UpsertWebhookSigningSecretPayload = { - value: string; -}; -export type WebhookCallDetailsProps = { - /** - * System metadata - */ - sys: WebhookCallDetailsSys; - /** - * Request object - */ - request: WebhookCallRequest; - /** - * Request object - */ - response: WebhookCallResponse; - /** - * Status code of the request - */ - statusCode: number; - /** - * Errors - */ - errors: any[]; - /** - * Type of the webhook - */ - eventType: string; - /** - * Url of the request - */ - url: string; - /** - * Timestamp of the request - */ - requestAt: string; - /** - * Timestamp of the response - */ - responseAt: string; -}; -export type WebhookCallOverviewProps = Except; -export type WebhookHealthProps = { - /** - * System metadata - */ - sys: WebhookHealthSys & { - space: { - sys: MetaLinkProps; - }; - }; - /** - * Webhook call statistics - */ - calls: WebhookCalls; -}; -export type WebhookSigningSecretSys = Except; -export type WebhookSigningSecretProps = { - sys: WebhookSigningSecretSys & { - space: { - sys: MetaLinkProps; - }; - }; - redactedValue: string; -}; -export type WebhookRetryPolicyPayload = { - maxRetries: number; -}; -export type WebhookRetryPolicySys = Except; -export type WebhookRetryPolicyProps = { - sys: WebhookRetryPolicySys & { - space: { - sys: MetaLinkProps; - }; - }; - maxRetries: number; -}; -export type WebhookProps = { - /** - * System metadata - */ - sys: BasicMetaSysProps & { - space: SysLink; - }; - /** - * Webhook name - */ - name: string; - /** - * Webhook url - */ - url: string; - /** - * Topics the webhook wants to subscribe to - */ - topics: string[]; - /** - * Username for basic http auth - */ - httpBasicUsername?: string; - /** - * Password for basic http auth - */ - httpBasicPassword?: string; - /** - * Headers that should be appended to the webhook request - */ - headers: Array; - /** - * Webhook filters - */ - filters?: WebhookFilter[]; - /** - * Transformation to apply - */ - transformation?: WebhookTransformation; - /** - * Whether the Webhook is active. If set to false, no calls will be made - */ - active: boolean; -}; -export interface WebHooks extends WebhookProps, DefaultElements { - /** - * Sends an update to the server with any changes made to the object's properties - * @return Object returned from the server with updated changes. - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => { - * webhook.name = 'new webhook name' - * return webhook.update() - * }) - * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - update(): Promise; - /** - * Deletes this object on the server. - * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => webhook.delete()) - * .then((webhook) => console.log(`webhook ${webhook.sys.id} updated.`)) - * .catch(console.error) - * ``` - */ - delete(): Promise; - /** - * List of the most recent webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details. - * @return Promise for list of calls - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => webhook.getCalls()) - * .then((response) => console.log(response.items)) // webhook calls - * .catch(console.error) - * ``` - */ - getCalls(): Promise>; - /** - * Webhook call with specific id. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details - * @return Promise for call details - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => webhook.getCall('')) - * .then((webhookCall) => console.log(webhookCall)) - * .catch(console.error) - * ``` - */ - getCall(id: string): Promise; - /** - * Overview of the health of webhook calls. See https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overviews for more details. - * @return Promise for health info - * ```javascript - * const contentful = require('contentful-management') - * - * const client = contentful.createClient({ - * accessToken: '' - * }) - * - * client.getSpace('') - * .then((space) => space.getWebhook('')) - * .then((webhook) => webhook.getHealth()) - * .then((webhookHealth) => console.log(webhookHealth)) - * .catch(console.error) - * ``` - */ - getHealth(): Promise; -} -/** - * @private - * @param makeRequest - function to make requests via an adapter - * @param data - Raw webhook data - * @return Wrapped webhook data - */ -export declare function wrapWebhook(makeRequest: MakeRequest, data: WebhookProps): WebHooks; -/** - * @private - */ -export declare const wrapWebhookCollection: (makeRequest: MakeRequest, data: CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/widget-parameters.d.ts b/node_modules/contentful-management/dist/typings/entities/widget-parameters.d.ts deleted file mode 100644 index 85916336..00000000 --- a/node_modules/contentful-management/dist/typings/entities/widget-parameters.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -type ParameterType = 'Boolean' | 'Symbol' | 'Number' | 'Enum'; -type ParameterOption = string | { - [key: string]: string; -}; -export interface ParameterDefinition { - name: string; - id: string; - description?: string; - type: ParameterType; - required?: boolean; - default?: boolean | string | number; - options?: ParameterOption[]; - labels?: { - empty?: string; - true?: string; - false?: string; - }; -} -export type DefinedParameters = Record; -export type FreeFormParameters = Record | Array | number | string | boolean; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/workflow-definition.d.ts b/node_modules/contentful-management/dist/typings/entities/workflow-definition.d.ts deleted file mode 100644 index 50e04045..00000000 --- a/node_modules/contentful-management/dist/typings/entities/workflow-definition.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { BasicMetaSysProps, DefaultElements, GetSpaceEnvironmentParams, GetWorkflowDefinitionParams, Link, MakeRequest, PaginationQueryOptions, SysLink } from '../common-types'; -type NonEmptyArray = [T, ...T[]]; -export type WorkflowStepPermissionActors = 'all' | NonEmptyArray | Link<'Team'>>; -export declare enum WorkflowStepPermissionType { - EntityPermission = "entity_permission", - WorkflowPermission = "workflow_permission" -} -export declare enum WorkflowStepPermissionAction { - Edit = "edit", - Publish = "publish", - Delete = "delete" -} -export declare enum WorkflowStepPermissionEffect { - Allow = "allow", - Deny = "deny" -} -export interface WorkflowStepPermission { - type: WorkflowStepPermissionType; - configuration: { - actors: WorkflowStepPermissionActors; - action: WorkflowStepPermissionAction; - effect: WorkflowStepPermissionEffect; - }; -} -export declare enum WorkflowStepActionType { - App = "app", - Email = "email", - Task = "task" -} -export type WorkflowStepAction = WorkflowStepEmailAction | WorkflowStepTaskAction | WorkflowStepAppAction; -export type WorkflowStepEmailActionRecipient = string | Link<'User'> | Link<'Team'>; -export type WorkflowStepEmailAction = { - type: 'email'; - configuration: { - recipients: WorkflowStepEmailActionRecipient[]; - }; -}; -export type WorkflowStepTaskAction = { - type: 'task'; - configuration: { - assignee: Link<'User'> | Link<'Team'>; - body: string; - dueDate?: number; - }; -}; -export type WorkflowStepAppAction = { - type: 'app'; - appId: string; - appActionId: string; - configuration?: { - body?: Record; - headers?: Record; - }; -}; -export type WorkflowStepProps = { - id: string; - name: string; - description?: string; - actions?: WorkflowStepAction[]; - annotations?: string[]; - permissions?: WorkflowStepPermission[]; -}; -export type UpdateWorkflowStepProps = WorkflowStepProps; -export type CreateWorkflowStepProps = Omit; -export type WorkflowDefinitionSysProps = Pick & { - type: 'WorkflowDefinition'; - space: SysLink; - environment: SysLink; - isLocked: boolean; -}; -export type WorkflowDefinitionValidationLink = { - type: 'Link'; - validations: Array<{ - linkContentType: string[]; - }>; - linkType: 'Entry'; -}; -export type WorkflowDefinitionProps = { - sys: WorkflowDefinitionSysProps; - name: string; - description?: string; - appliesTo?: WorkflowDefinitionValidationLink[]; - steps: WorkflowStepProps[]; - startOnEntityCreation?: boolean; - flowType?: 'no_restriction' | 'strict_neighbor'; -}; -export type CreateWorkflowDefinitionProps = Omit & { - steps: CreateWorkflowStepProps[]; -}; -export type UpdateWorkflowDefinitionProps = Omit & { - sys: Pick; - steps: Array; -}; -export type CreateWorkflowDefinitionParams = GetSpaceEnvironmentParams; -export type UpdateWorkflowDefinitionParams = GetWorkflowDefinitionParams; -export type DeleteWorkflowDefinitionParams = GetWorkflowDefinitionParams & { - version: number; -}; -type WorkflowDefinitionApi = { - update(): Promise; - delete(): Promise; -}; -export interface WorkflowDefinition extends WorkflowDefinitionProps, DefaultElements, WorkflowDefinitionApi { -} -export type WorkflowDefinitionQueryOptions = Omit; -/** - * @private - */ -export default function createWorkflowDefinitionApi(makeRequest: MakeRequest): WorkflowDefinitionApi; -/** - * @private - */ -export declare function wrapWorkflowDefinition(makeRequest: MakeRequest, data: WorkflowDefinitionProps): WorkflowDefinition; -/** - * @private - */ -export declare const wrapWorkflowDefinitionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/workflow.d.ts b/node_modules/contentful-management/dist/typings/entities/workflow.d.ts deleted file mode 100644 index 80f9a6b0..00000000 --- a/node_modules/contentful-management/dist/typings/entities/workflow.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { BasicMetaSysProps, DefaultElements, GetSpaceEnvironmentParams, GetWorkflowParams, Link, MakeRequest, PaginationQueryOptions, SysLink } from '../common-types'; -export type WorkflowSysProps = Pick & { - type: 'Workflow'; - space: SysLink; - environment: SysLink; - completedBy?: SysLink; - completedAt?: string; - deletedBy?: SysLink; - deletedAt?: string; - entity: Link<'Entry'>; - workflowDefinition: Link<'WorkflowDefinition'>; -}; -export type WorkflowProps = { - sys: WorkflowSysProps; - stepId?: string; -}; -export type CreateWorkflowProps = Omit & { - entity: Link<'Entry'>; - workflowDefinition: Link<'WorkflowDefinition'>; -}; -export type UpdateWorkflowProps = Omit & { - sys: Pick; -}; -export type CreateWorkflowParams = GetSpaceEnvironmentParams; -export type UpdateWorkflowParams = GetWorkflowParams; -export type DeleteWorkflowParams = GetWorkflowParams & { - version: number; -}; -export type CompleteWorkflowParams = DeleteWorkflowParams; -type WorkflowApi = { - update(): Promise; - delete(): Promise; - complete(): Promise; -}; -type OrderQueryParam = 'sys.updatedAt' | '-sys.updatedAt' | 'sys.createdAt' | '-sys.createdAt'; -export interface Workflow extends WorkflowProps, DefaultElements, WorkflowApi { -} -export type WorkflowQueryOptions = Omit & { - 'stepId[in]'?: string; - /** Find workflows filtered by the Entity type (Entry) */ - 'sys.entity.sys.linkType'?: string; - /** Find workflows containing the specified, comma-separated entities. Requires `sys.entity.sys.linkType` */ - 'sys.entity.sys.id[in]'?: string; - 'sys.workflowDefinition.sys.id'?: string; - /** - * Order workflows by - * @default -sys.createdAt - * */ - order?: OrderQueryParam; -}; -/** - * @private - */ -export default function createWorkflowApi(makeRequest: MakeRequest): WorkflowApi; -/** - * @private - */ -export declare function wrapWorkflow(makeRequest: MakeRequest, data: WorkflowProps): Workflow; -/** - * @private - */ -export declare const wrapWorkflowCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; -export {}; diff --git a/node_modules/contentful-management/dist/typings/entities/workflows-changelog-entry.d.ts b/node_modules/contentful-management/dist/typings/entities/workflows-changelog-entry.d.ts deleted file mode 100644 index 5a0f8051..00000000 --- a/node_modules/contentful-management/dist/typings/entities/workflows-changelog-entry.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { DefaultElements, Link, MakeRequest, PaginationQueryOptions, SysLink, VersionedLink } from '../common-types'; -export type WorkflowsChangelogQueryOptions = Omit & { - /** Find workflows changelog entries filtered by the Entity type (Entry) */ - 'entity.sys.linkType': string; - /** Find workflows changelog entries containing the specified, comma-separated entities. Requires `sys.entity.sys.linkType` */ - 'entity.sys.id': string; - /** workflow.sys.id is optional so all past workflows can be found */ - 'workflow.sys.id'?: string; - 'eventAt[lte]'?: string; - 'eventAt[gte]'?: string; -}; -export type WorkflowsChangelogEntryProps = { - event: string; - eventBy: SysLink; - eventAt: string; - workflow: VersionedLink<'Workflow'>; - workflowDefinition: Link<'WorkflowDefinition'>; - entity: Link<'Entry'>; - stepId: string; - stepAnnotations: string[]; - stepName: string; -}; -export interface WorkflowsChangelogEntry extends WorkflowsChangelogEntryProps, DefaultElements { -} -/** - * @private - */ -export declare function wrapWorkflowsChangelogEntry(_makeRequest: MakeRequest, data: WorkflowsChangelogEntryProps): WorkflowsChangelogEntry; -/** - * @private - */ -export declare const wrapWorkflowsChangelogEntryCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; diff --git a/node_modules/contentful-management/dist/typings/export-types.d.ts b/node_modules/contentful-management/dist/typings/export-types.d.ts deleted file mode 100644 index 62aed0d9..00000000 --- a/node_modules/contentful-management/dist/typings/export-types.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -export * from './common-types'; -export * from './plain/common-types'; -export type { ApiKey, ApiKeyProps, CreateApiKeyProps } from './entities/api-key'; -export type { AppAction, AppActionCategoryProps, AppActionCategoryType, AppActionParameterDefinition, AppActionProps, CreateAppActionProps, } from './entities/app-action'; -export type { AppActionCall, AppActionCallProps, CreateAppActionCallProps, } from './entities/app-action-call'; -export type { AppBundle, AppBundleFile, AppBundleProps, CreateAppBundleProps, } from './entities/app-bundle'; -export type { AppDefinition, AppDefinitionProps, AppLocation, CreateAppDefinitionProps, EntryFieldLocation, NavigationItem, PageLocation, SimpleLocation, } from './entities/app-definition'; -export type { AppDetails, AppDetailsProps, AppIcon, CreateAppDetailsProps, IconType, } from './entities/app-details'; -export type { AppInstallation, AppInstallationProps, CreateAppInstallationProps, } from './entities/app-installation'; -export type { AppSignedRequest, AppSignedRequestProps, CreateAppSignedRequestProps, } from './entities/app-signed-request'; -export type { AppSigningSecret, AppSigningSecretProps, CreateAppSigningSecretProps, } from './entities/app-signing-secret'; -export type { AppEventSubscription, AppEventSubscriptionProps, CreateAppEventSubscriptionProps, } from './entities/app-event-subscription'; -export type { AppKey, AppKeyProps, CreateAppKeyProps } from './entities/app-key'; -export type { AppAccessToken, AppAccessTokenProps, CreateAppAccessTokenProps, } from './entities/app-access-token'; -export type { AppUpload, AppUploadProps } from './entities/app-upload'; -export type { Asset, AssetFileProp, AssetProps, CreateAssetProps } from './entities/asset'; -export type { AssetKey, AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key'; -export type { BulkAction, BulkActionPayload, BulkActionProps, BulkActionPublishPayload, BulkActionStatus, BulkActionType, BulkActionUnpublishPayload, BulkActionValidatePayload, } from './entities/bulk-action'; -export type { RichTextCommentDocument, RichTextCommentProps, Comment, CommentProps, CreateCommentProps, UpdateCommentProps, DeleteCommentParams, GetCommentParentEntityParams, GetManyCommentsParams, } from './entities/comment'; -export type { AnnotationAssignment, ContentType, ContentTypeMetadata, ContentTypeProps, CreateContentTypeProps, } from './entities/content-type'; -export type { ContentFields, ContentTypeFieldValidation, ContentfulEntryResource, ExternalResource, } from './entities/content-type-fields'; -export type { Control, Editor, EditorInterface, EditorInterfaceProps, EditorLayoutItem, FieldGroupItem, FieldItem, GroupControl, SidebarItem, } from './entities/editor-interface'; -export type { FunctionProps } from './entities/function'; -export type { CreateEntryProps, Entry, EntryProps, WithResourceName } from './entities/entry'; -export type { CreateEnvironmentProps, Environment, EnvironmentProps } from './entities/environment'; -export type { CreateEnvironmentAliasProps, EnvironmentAlias, EnvironmentAliasProps, } from './entities/environment-alias'; -export type { ContentTypeTemplateProps, CreateEnvironmentTemplateProps, EditorInterfaceTemplateProps, EnvironmentTemplate, EnvironmentTemplateProps, Hint, } from './entities/environment-template'; -export type { CreateEnvironmentTemplateInstallationProps, EnvironmentTemplateInstallation, EnvironmentTemplateInstallationProps, EnvironmentTemplateInstallationStatus, EnvironmentTemplateValidationProps, ValidateEnvironmentTemplateInstallationProps, ValidationFinding, } from './entities/environment-template-installation'; -export type { CreateExtensionProps as CreateUIExtensionProps, Extension as UIExtension, ExtensionProps as UIExtensionProps, } from './entities/extension'; -export type { FieldType } from './entities/field-type'; -export type { CreateLocaleProps, Locale, LocaleProps } from './entities/locale'; -export type { Organization, OrganizationProp } from './entities/organization'; -export type { CreateOrganizationInvitationProps, OrganizationInvitation, OrganizationInvitationProps, } from './entities/organization-invitation'; -export type { OrganizationMembership, OrganizationMembershipProps, } from './entities/organization-membership'; -export type { CreatePersonalAccessTokenProps, PersonalAccessToken, PersonalAccessTokenProp, } from './entities/personal-access-token'; -export type { CreatePersonalAccessTokenProps as CreatePATProps, AccessToken, AccessTokenProp, } from './entities/access-token'; -export type { PreviewApiKey, PreviewApiKeyProps } from './entities/preview-api-key'; -export type { Release, ReleasePayload, ReleaseProps, ReleaseQueryOptions, ReleaseSysProps, ReleaseValidateOptions, ReleaseMetadata, ReleaseReferenceFilters, } from './entities/release'; -export type { ReleaseAction, ReleaseActionProps, ReleaseActionQueryOptions, ReleaseActionSysProps, ReleaseActionTypes, } from './entities/release-action'; -export type { CreateRoleProps, Role, RoleProps } from './entities/role'; -export type { ScheduledAction, ScheduledActionProps, ScheduledActionSysProps, } from './entities/scheduled-action'; -export type { Snapshot, SnapshotProps } from './entities/snapshot'; -export type { Space, SpaceProps } from './entities/space'; -export type { SpaceMember, SpaceMemberProps } from './entities/space-member'; -export type { CreateSpaceMembershipProps, SpaceMembership, SpaceMembershipProps, } from './entities/space-membership'; -export type { CreateTagProps, Tag, TagProps, TagVisibility } from './entities/tag'; -export type { CreateTaskProps, Task, TaskProps, UpdateTaskProps } from './entities/task'; -export type { CreateTeamProps, Team, TeamProps } from './entities/team'; -export type { CreateTeamMembershipProps, TeamMembership, TeamMembershipProps, } from './entities/team-membership'; -export type { CreateTeamSpaceMembershipProps, TeamSpaceMembership, TeamSpaceMembershipProps, } from './entities/team-space-membership'; -export type { UIConfig, UIConfigProps } from './entities/ui-config'; -export type { Upload, UploadProps } from './entities/upload'; -export type { Usage, UsageProps } from './entities/usage'; -export type { User, UserProps } from './entities/user'; -export type { UserUIConfig, UserUIConfigProps } from './entities/user-ui-config'; -export type { CreateWebhooksProps, UpdateWebhookProps, WebhookCallRequest, WebhookFilter, WebhookProps, WebHooks, WebhookTransformation, UpsertWebhookSigningSecretPayload, WebhookSigningSecretProps, } from './entities/webhook'; -export type { WorkflowDefinition, WorkflowDefinitionSysProps, WorkflowDefinitionProps, CreateWorkflowDefinitionProps, UpdateWorkflowDefinitionProps, CreateWorkflowDefinitionParams, UpdateWorkflowDefinitionParams, DeleteWorkflowDefinitionParams, WorkflowStepProps, UpdateWorkflowStepProps, CreateWorkflowStepProps, WorkflowDefinitionQueryOptions, WorkflowDefinitionValidationLink, WorkflowStepAction, WorkflowStepActionType, WorkflowStepPermission, WorkflowStepPermissionActors, WorkflowStepEmailActionRecipient, WorkflowStepEmailAction, WorkflowStepTaskAction, WorkflowStepAppAction, } from './entities/workflow-definition'; -export { WorkflowStepPermissionType, WorkflowStepPermissionAction, WorkflowStepPermissionEffect, } from './entities/workflow-definition'; -export type { DefinedParameters, FreeFormParameters, ParameterDefinition, } from './entities/widget-parameters'; -export type { CreateWorkflowProps, UpdateWorkflowProps, DeleteWorkflowParams, Workflow, WorkflowProps, WorkflowQueryOptions, } from './entities/workflow'; -export type { WorkflowsChangelogEntry, WorkflowsChangelogEntryProps, WorkflowsChangelogQueryOptions, } from './entities/workflows-changelog-entry'; diff --git a/node_modules/contentful-management/dist/typings/methods/action.d.ts b/node_modules/contentful-management/dist/typings/methods/action.d.ts deleted file mode 100644 index 92d03b31..00000000 --- a/node_modules/contentful-management/dist/typings/methods/action.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** Action is an interface that has a sys.status to be checked against */ -interface Action extends Record { - sys: { - status: string; - type: string; - }; -} -export declare class AsyncActionProcessingError extends Error { - action?: Action; - constructor(message: string, action?: Action); -} -export declare class AsyncActionFailedError extends AsyncActionProcessingError { -} -export type AsyncActionProcessingOptions = { - /** The amount of times to retry. - * @default 30 - * */ - retryCount?: number; - /** The interval between retries, in milliseconds (ms). - * @default 2000 (2s) - * */ - retryIntervalMs?: number; - /** - * Initial delay in milliseconds when performing the first check. - * This is used to prevent short running bulkActions of waiting too long for a result. - * @default 1000 (1s) - * */ - initialDelayMs?: number; - /** - * Throws an error if the Action does not complete with a successful (succeeded) status. - * @default true - */ - throwOnFailedExecution?: boolean; -}; -/** - * @description Waits for an Action to be completed and to be in one of the final states (failed or succeeded) - * @param {Function} actionFunction - GET function that will be called every interval to fetch an Action status - * @throws {ActionFailedError} throws an error if `throwOnFailedExecution = true` with the Action that failed. - * @throws {AsyncActionProcessingError} throws an error with a Action when processing takes too long. - */ -export declare function pollAsyncActionStatus(actionFunction: () => Promise, options?: AsyncActionProcessingOptions): Promise; -export {}; diff --git a/node_modules/contentful-management/dist/typings/methods/bulk-action.d.ts b/node_modules/contentful-management/dist/typings/methods/bulk-action.d.ts deleted file mode 100644 index a9d7cd59..00000000 --- a/node_modules/contentful-management/dist/typings/methods/bulk-action.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BulkActionPayload, BulkActionProps } from '../entities/bulk-action'; -import { PlainClientAPI } from '../plain/common-types'; -import { AsyncActionProcessingOptions } from './action'; -type PlainOptions = { - /** Used by the PlainClient to perform a poll for the BulkAction status */ - plainClient: PlainClientAPI; - spaceId: string; - environmentId: string; - bulkActionId: string; -}; -/** Waits for a BulkAction status to be either succeeded or failed. - * Used by the Plain client */ -export declare function waitForBulkActionProcessing({ plainClient, spaceId, environmentId, bulkActionId }: PlainOptions, options?: AsyncActionProcessingOptions): Promise>; -export {}; diff --git a/node_modules/contentful-management/dist/typings/methods/content-type.d.ts b/node_modules/contentful-management/dist/typings/methods/content-type.d.ts deleted file mode 100644 index 244db182..00000000 --- a/node_modules/contentful-management/dist/typings/methods/content-type.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { GetContentTypeParams, MakeRequest } from '../common-types'; -import { ContentTypeProps } from '../entities/content-type'; -export declare const omitAndDeleteField: (makeRequest: MakeRequest, { fieldId, ...params }: { - fieldId: string; -} & import("../common-types").GetSpaceEnvironmentParams & { - contentTypeId: string; -}, contentType: ContentTypeProps) => Promise; diff --git a/node_modules/contentful-management/dist/typings/methods/release-action.d.ts b/node_modules/contentful-management/dist/typings/methods/release-action.d.ts deleted file mode 100644 index 27c0b573..00000000 --- a/node_modules/contentful-management/dist/typings/methods/release-action.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ReleaseActionProps, ReleaseActionTypes } from '../entities/release-action'; -import { PlainClientAPI } from '../plain/common-types'; -import { AsyncActionProcessingOptions } from './action'; -type PlainOptions = { - /** Used by the PlainClient to perform a poll for the BulkAction status */ - plainClient: PlainClientAPI; - spaceId: string; - environmentId: string; - releaseId: string; - actionId: string; -}; -/** Waits for a ReleaseAction status to be either succeeded or failed. - * Used by the Plain client */ -export declare function waitForReleaseActionProcessing({ plainClient, spaceId, environmentId, releaseId, actionId }: PlainOptions, options?: AsyncActionProcessingOptions): Promise>; -export {}; diff --git a/node_modules/contentful-management/dist/typings/methods/utils.d.ts b/node_modules/contentful-management/dist/typings/methods/utils.d.ts deleted file mode 100644 index ea9f9779..00000000 --- a/node_modules/contentful-management/dist/typings/methods/utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Helper function that resolves a Promise after the specified duration (in milliseconds) - * @private - */ -export declare function sleep(durationMs: number): Promise; diff --git a/node_modules/contentful-management/dist/typings/plain/as-iterator.d.ts b/node_modules/contentful-management/dist/typings/plain/as-iterator.d.ts deleted file mode 100644 index d5483aeb..00000000 --- a/node_modules/contentful-management/dist/typings/plain/as-iterator.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { CollectionProp, QueryParams } from '../common-types'; -type IterableFn

= (params: P) => Promise>; -type ParamsType = T extends (params: infer P) => any ? P : never; -export declare const asIterator:

>(fn: F, params: ParamsType) => AsyncIterable; -export {}; diff --git a/node_modules/contentful-management/dist/typings/plain/checks.d.ts b/node_modules/contentful-management/dist/typings/plain/checks.d.ts deleted file mode 100644 index a9b3d48d..00000000 --- a/node_modules/contentful-management/dist/typings/plain/checks.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MetaSysProps } from '../common-types'; -export declare const isPublished: (data: { - sys: MetaSysProps; -}) => boolean; -export declare const isUpdated: (data: { - sys: MetaSysProps; -}) => boolean; -export declare const isDraft: (data: { - sys: MetaSysProps; -}) => boolean; -export declare const isArchived: (data: { - sys: MetaSysProps; -}) => boolean; diff --git a/node_modules/contentful-management/dist/typings/plain/common-types.d.ts b/node_modules/contentful-management/dist/typings/plain/common-types.d.ts deleted file mode 100644 index 4e86b682..00000000 --- a/node_modules/contentful-management/dist/typings/plain/common-types.d.ts +++ /dev/null @@ -1,364 +0,0 @@ -import { RawAxiosRequestHeaders, RawAxiosRequestConfig } from 'axios'; -import { OpPatch } from 'json-patch'; -import { CollectionProp, GetAppDefinitionParams, GetContentTypeParams, GetOrganizationMembershipParams, GetOrganizationParams, GetSnapshotForContentTypeParams, GetSnapshotForEntryParams, GetSpaceEnvironmentParams, GetSpaceParams, KeyValueMap, QueryParams, GetBulkActionParams, GetReleaseParams, CursorPaginatedCollectionProp, GetEnvironmentTemplateParams, BasicCursorPaginationOptions, EnvironmentTemplateParams } from '../common-types'; -import { ApiKeyProps, CreateApiKeyProps } from '../entities/api-key'; -import { AssetFileProp, AssetProcessingForLocale, AssetProps, CreateAssetProps } from '../entities/asset'; -import { ContentTypeProps, CreateContentTypeProps } from '../entities/content-type'; -import { CreateEntryProps, EntryProps, EntryReferenceProps } from '../entities/entry'; -import { CreateOrganizationInvitationProps, OrganizationInvitationProps } from '../entities/organization-invitation'; -import { OrganizationMembershipProps } from '../entities/organization-membership'; -import { CreatePersonalAccessTokenProps, PersonalAccessTokenProp } from '../entities/personal-access-token'; -import { AccessTokenProp, CreatePersonalAccessTokenProps as CreatePATProps } from '../entities/access-token'; -import { PreviewApiKeyProps } from '../entities/preview-api-key'; -import { ScheduledActionProps, CreateUpdateScheduledActionProps } from '../entities/scheduled-action'; -import { SnapshotProps } from '../entities/snapshot'; -import { DefaultParams, OptionalDefaults } from './wrappers/wrap'; -import { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key'; -import { FunctionProps } from '../entities/function'; -import { BulkActionPayload, BulkActionProps, BulkActionPublishPayload, BulkActionUnpublishPayload, BulkActionValidatePayload } from '../entities/bulk-action'; -import { ReleasePayload, ReleaseProps, ReleaseQueryOptions, ReleaseValidatePayload } from '../entities/release'; -import { ReleaseActionProps, ReleaseActionQueryOptions } from '../entities/release-action'; -import { CreateEnvironmentTemplateProps, EnvironmentTemplateProps } from '../entities/environment-template'; -import { CreateEnvironmentTemplateInstallationProps, EnvironmentTemplateInstallationProps, EnvironmentTemplateValidationProps, ValidateEnvironmentTemplateInstallationProps } from '../entities/environment-template-installation'; -import { AppActionPlainClientAPI } from './entities/app-action'; -import { AppActionCallPlainClientAPI } from './entities/app-action-call'; -import { EditorInterfacePlainClientAPI } from './entities/editor-interface'; -import { UIConfigPlainClientAPI } from './entities/ui-config'; -import { UserUIConfigPlainClientAPI } from './entities/user-ui-config'; -import { AppDefinitionPlainClientAPI } from './entities/app-definition'; -import { AppUploadPlainClientAPI } from './entities/app-upload'; -import { AppBundlePlainClientAPI } from './entities/app-bundle'; -import { AppDetailsPlainClientAPI } from './entities/app-details'; -import { AppInstallationPlainClientAPI } from './entities/app-installation'; -import { WebhookPlainClientAPI } from './entities/webhook'; -import { AppSignedRequestPlainClientAPI } from './entities/app-signed-request'; -import { AppSigningSecretPlainClientAPI } from './entities/app-signing-secret'; -import { ExtensionPlainClientAPI } from './entities/extension'; -import { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription'; -import { AppKeyPlainClientAPI } from './entities/app-key'; -import { UserPlainClientAPI } from './entities/user'; -import { UploadPlainClientAPI } from './entities/upload'; -import { OrganizationPlainClientAPI } from './entities/organization'; -import { LocalePlainClientAPI } from './entities/locale'; -import { SpacePlainClientAPI } from './entities/space'; -import { SpaceMembershipPlainClientAPI } from './entities/space-membership'; -import { SpaceMemberPlainClientAPI } from './entities/space-member'; -import { EnvironmentPlainClientAPI } from './entities/environment'; -import { EnvironmentAliasPlainClientAPI } from './entities/environment-alias'; -import { CommentPlainClientAPI } from './entities/comment'; -import { TaskPlainClientAPI } from './entities/task'; -import { WorkflowPlainClientAPI } from './entities/workflow'; -import { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog'; -import { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition'; -import { RolePlainClientAPI } from './entities/role'; -import { TagPlainClientAPI } from './entities/tag'; -import { UsagePlainClientAPI } from './entities/usage'; -import { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership'; -import { TeamPlainClientAPI } from './entities/team'; -import { TeamMembershipPlainClientAPI } from './entities/team-membership'; -import { AppAccessTokenPlainClientAPI } from './entities/app-access-token'; -export type PlainClientAPI = { - raw: { - getDefaultParams(): DefaultParams | undefined; - get(url: string, config?: RawAxiosRequestConfig): Promise; - post(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; - patch(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; - put(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise; - delete(url: string, config?: RawAxiosRequestConfig): Promise; - http(url: string, config?: RawAxiosRequestConfig): Promise; - }; - appAction: AppActionPlainClientAPI; - appActionCall: AppActionCallPlainClientAPI; - appBundle: AppBundlePlainClientAPI; - appDetails: AppDetailsPlainClientAPI; - appEventSubscription: AppEventSubscriptionPlainClientAPI; - appKey: AppKeyPlainClientAPI; - appSignedRequest: AppSignedRequestPlainClientAPI; - appSigningSecret: AppSigningSecretPlainClientAPI; - appAccessToken: AppAccessTokenPlainClientAPI; - function: { - getMany(params: OptionalDefaults): Promise>; - }; - editorInterface: EditorInterfacePlainClientAPI; - space: SpacePlainClientAPI; - environment: EnvironmentPlainClientAPI; - environmentAlias: EnvironmentAliasPlainClientAPI; - environmentTemplate: { - get(params: GetEnvironmentTemplateParams & { - version?: number; - query?: { - select?: string; - }; - }, headers?: RawAxiosRequestHeaders): Promise; - getMany(params: GetOrganizationParams & { - query?: BasicCursorPaginationOptions & { - select?: string; - }; - }, headers?: RawAxiosRequestHeaders): Promise>; - create(params: GetOrganizationParams, rawData: CreateEnvironmentTemplateProps, headers?: RawAxiosRequestHeaders): Promise; - versionUpdate(params: GetEnvironmentTemplateParams & { - version: number; - }, rawData: { - versionName?: string; - versionDescription?: string; - }, headers?: RawAxiosRequestHeaders): Promise; - update(params: GetEnvironmentTemplateParams, rawData: EnvironmentTemplateProps, headers?: RawAxiosRequestHeaders): Promise; - delete(params: GetEnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise; - versions(params: GetEnvironmentTemplateParams & { - query?: BasicCursorPaginationOptions & { - select?: string; - }; - }, headers?: RawAxiosRequestHeaders): Promise>; - validate(params: EnvironmentTemplateParams & { - version?: number; - }, rawData: ValidateEnvironmentTemplateInstallationProps, headers?: RawAxiosRequestHeaders): Promise; - install(params: EnvironmentTemplateParams, rawData: CreateEnvironmentTemplateInstallationProps, headers?: RawAxiosRequestHeaders): Promise; - disconnect(params: EnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise; - }; - environmentTemplateInstallation: { - getMany(params: BasicCursorPaginationOptions & { - environmentId?: string; - environmentTemplateId: string; - organizationId: string; - spaceId?: string; - }, headers?: RawAxiosRequestHeaders): Promise>; - getForEnvironment(params: BasicCursorPaginationOptions & EnvironmentTemplateParams & { - installationId?: string; - }, headers?: RawAxiosRequestHeaders): Promise>; - }; - bulkAction: { - get(params: GetBulkActionParams): Promise>; - publish(params: GetSpaceEnvironmentParams, payload: BulkActionPublishPayload): Promise>; - unpublish(params: GetSpaceEnvironmentParams, payload: BulkActionUnpublishPayload): Promise>; - validate(params: GetSpaceEnvironmentParams, payload: BulkActionValidatePayload): Promise>; - }; - comment: CommentPlainClientAPI; - contentType: { - get(params: OptionalDefaults): Promise; - getMany(params: OptionalDefaults): Promise>; - update(params: OptionalDefaults, rawData: ContentTypeProps, headers?: RawAxiosRequestHeaders): Promise; - delete(params: OptionalDefaults): Promise; - publish(params: OptionalDefaults, rawData: ContentTypeProps): Promise; - unpublish(params: OptionalDefaults): Promise; - create(params: OptionalDefaults, rawData: CreateContentTypeProps): Promise; - createWithId(params: OptionalDefaults, rawData: CreateContentTypeProps): Promise; - omitAndDeleteField(params: OptionalDefaults, contentType: ContentTypeProps, fieldId: string): Promise; - }; - user: UserPlainClientAPI; - entry: { - getPublished(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise>>; - getMany(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise>>; - get(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise>; - update(params: OptionalDefaults, rawData: EntryProps, headers?: RawAxiosRequestHeaders): Promise>; - patch(params: OptionalDefaults, rawData: OpPatch[], headers?: RawAxiosRequestHeaders): Promise>; - delete(params: OptionalDefaults): Promise; - publish(params: OptionalDefaults, rawData: EntryProps): Promise>; - unpublish(params: OptionalDefaults): Promise>; - archive(params: OptionalDefaults): Promise>; - unarchive(params: OptionalDefaults): Promise>; - create(params: OptionalDefaults, rawData: CreateEntryProps): Promise>; - createWithId(params: OptionalDefaults, rawData: CreateEntryProps): Promise>; - references(params: OptionalDefaults): Promise; - }; - asset: { - getPublished(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise>; - getMany(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise>; - get(params: OptionalDefaults, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise; - update(params: OptionalDefaults, rawData: AssetProps, headers?: RawAxiosRequestHeaders): Promise; - delete(params: OptionalDefaults): Promise; - publish(params: OptionalDefaults, rawData: AssetProps): Promise; - unpublish(params: OptionalDefaults): Promise; - archive(params: OptionalDefaults): Promise; - unarchive(params: OptionalDefaults): Promise; - create(params: OptionalDefaults, rawData: CreateAssetProps): Promise; - createWithId(params: OptionalDefaults, rawData: CreateAssetProps): Promise; - createFromFiles(params: OptionalDefaults, data: Omit): Promise; - processForAllLocales(params: OptionalDefaults, asset: AssetProps, processingOptions?: AssetProcessingForLocale): Promise; - processForLocale(params: OptionalDefaults, asset: AssetProps, locale: string, processingOptions?: AssetProcessingForLocale): Promise; - }; - appUpload: AppUploadPlainClientAPI; - assetKey: { - create(params: OptionalDefaults, data: CreateAssetKeyProps): Promise; - }; - upload: UploadPlainClientAPI; - locale: LocalePlainClientAPI; - personalAccessToken: { - get(params: OptionalDefaults<{ - tokenId: string; - }>): Promise; - getMany(params: OptionalDefaults): Promise>; - create(rawData: CreatePersonalAccessTokenProps, headers?: RawAxiosRequestHeaders): Promise; - revoke(params: OptionalDefaults<{ - tokenId: string; - }>): Promise; - }; - accessToken: { - get(params: OptionalDefaults<{ - tokenId: string; - }>): Promise; - getMany(params: OptionalDefaults): Promise>; - createPersonalAccessToken(rawData: CreatePATProps, headers?: RawAxiosRequestHeaders): Promise; - revoke(params: OptionalDefaults<{ - tokenId: string; - }>): Promise; - getManyForOrganization(params: OptionalDefaults): Promise>; - }; - usage: UsagePlainClientAPI; - release: { - archive(params: OptionalDefaults): Promise; - get(params: OptionalDefaults): Promise; - query(params: OptionalDefaults & { - query?: ReleaseQueryOptions; - }): Promise>; - create(params: OptionalDefaults, data: ReleasePayload): Promise; - update(params: OptionalDefaults, data: ReleasePayload): Promise; - delete(params: OptionalDefaults): Promise; - publish(params: OptionalDefaults): Promise>; - unarchive(params: OptionalDefaults): Promise; - unpublish(params: OptionalDefaults): Promise>; - validate(params: OptionalDefaults, data?: ReleaseValidatePayload): Promise>; - }; - releaseAction: { - get(params: OptionalDefaults & { - actionId: string; - }): Promise; - getMany(params: OptionalDefaults & { - query?: ReleaseActionQueryOptions; - }): Promise>; - queryForRelease(params: OptionalDefaults & { - query?: ReleaseActionQueryOptions; - }): Promise>; - }; - role: RolePlainClientAPI; - scheduledActions: { - get(params: OptionalDefaults & { - scheduledActionId: string; - environmentId: string; - }): Promise; - getMany(params: OptionalDefaults): Promise>; - create(params: OptionalDefaults, data: CreateUpdateScheduledActionProps): Promise; - delete(params: OptionalDefaults): Promise; - update(params: OptionalDefaults, data: CreateUpdateScheduledActionProps): Promise; - }; - previewApiKey: { - get(params: OptionalDefaults): Promise; - getMany(params: OptionalDefaults): Promise>; - }; - apiKey: { - get(params: OptionalDefaults): Promise; - getMany(params: OptionalDefaults): Promise>; - create(params: OptionalDefaults, data: CreateApiKeyProps, headers?: RawAxiosRequestHeaders): Promise; - createWithId(params: OptionalDefaults, data: CreateApiKeyProps, headers?: RawAxiosRequestHeaders): Promise; - update(params: OptionalDefaults, rawData: ApiKeyProps, headers?: RawAxiosRequestHeaders): Promise; - delete(params: OptionalDefaults): Promise; - }; - appDefinition: AppDefinitionPlainClientAPI; - appInstallation: AppInstallationPlainClientAPI; - extension: ExtensionPlainClientAPI; - webhook: WebhookPlainClientAPI; - snapshot: { - getManyForEntry(params: OptionalDefaults): Promise, 'metadata'>>>>; - getForEntry(params: OptionalDefaults): Promise, 'metadata'>>>; - getManyForContentType(params: OptionalDefaults): Promise>>; - getForContentType(params: OptionalDefaults): Promise>; - }; - tag: TagPlainClientAPI; - organization: OrganizationPlainClientAPI; - organizationInvitation: { - get(params: OptionalDefaults<{ - organizationId: string; - invitationId: string; - }>, headers?: RawAxiosRequestHeaders): Promise; - create(params: OptionalDefaults<{ - organizationId: string; - }>, data: CreateOrganizationInvitationProps, headers?: RawAxiosRequestHeaders): Promise; - }; - organizationMembership: { - get(params: OptionalDefaults): Promise; - getMany(params: OptionalDefaults): Promise>; - update(params: OptionalDefaults, rawData: OrganizationMembershipProps, headers?: RawAxiosRequestHeaders): Promise; - delete(params: OptionalDefaults): Promise; - }; - spaceMember: SpaceMemberPlainClientAPI; - spaceMembership: SpaceMembershipPlainClientAPI; - task: TaskPlainClientAPI; - team: TeamPlainClientAPI; - teamMembership: TeamMembershipPlainClientAPI; - teamSpaceMembership: TeamSpaceMembershipPlainClientAPI; - uiConfig: UIConfigPlainClientAPI; - userUIConfig: UserUIConfigPlainClientAPI; - workflowDefinition: WorkflowDefinitionPlainClientAPI; - workflow: WorkflowPlainClientAPI; - workflowsChangelog: WorkflowsChangelogPlainClientAPI; -}; diff --git a/node_modules/contentful-management/dist/typings/plain/plain-client.d.ts b/node_modules/contentful-management/dist/typings/plain/plain-client.d.ts deleted file mode 100644 index d72ec56a..00000000 --- a/node_modules/contentful-management/dist/typings/plain/plain-client.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MakeRequest } from '../common-types'; -import { PlainClientAPI } from './common-types'; -import { DefaultParams } from './wrappers/wrap'; -export type { DefaultParams } from './wrappers/wrap'; -/** - * @private - */ -export declare const createPlainClient: (makeRequest: MakeRequest, defaults: DefaultParams | undefined) => PlainClientAPI; diff --git a/node_modules/contentful-management/dist/typings/plain/wrappers/wrap.d.ts b/node_modules/contentful-management/dist/typings/plain/wrappers/wrap.d.ts deleted file mode 100644 index 795d6f21..00000000 --- a/node_modules/contentful-management/dist/typings/plain/wrappers/wrap.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { MakeRequest, MRActions, MRReturn } from '../../common-types'; -export type DefaultParams = { - spaceId?: string; - environmentId?: string; - organizationId?: string; -}; -/** - * @private - */ -export type OptionalDefaults = Omit & ('organizationId' extends keyof T ? { - organizationId?: string; -} : Record) & ('spaceId' extends keyof T ? { - spaceId?: string; -} : Record) & ('environmentId' extends keyof T ? { - environmentId?: string; -} : Record); -/** - * @private - */ -export type WrapParams = { - makeRequest: MakeRequest; - defaults?: DefaultParams; -}; -/** - * @private - */ -export type WrapFn> = Params extends undefined ? () => Return : Payload extends undefined ? (params: Params) => Return : Headers extends undefined ? (params: Params, payload: Payload) => Return : (params: Params, payload: Payload, headers: Headers) => Return; -/** - * @private - */ -export declare const wrap: ({ makeRequest, defaults }: WrapParams, entityType: ET, action: Action) => WrapFn>; diff --git a/node_modules/contentful-management/dist/typings/upload-http-client.d.ts b/node_modules/contentful-management/dist/typings/upload-http-client.d.ts deleted file mode 100644 index e760a1a9..00000000 --- a/node_modules/contentful-management/dist/typings/upload-http-client.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { AxiosInstance } from 'contentful-sdk-core'; -type UploadHttpClientOpts = { - uploadTimeout?: number; -}; -/** - * @private - */ -export declare function getUploadHttpClient(http: AxiosInstance, options?: UploadHttpClientOpts): AxiosInstance; -export {}; diff --git a/node_modules/contentful-management/package.json b/node_modules/contentful-management/package.json deleted file mode 100644 index 49388bc4..00000000 --- a/node_modules/contentful-management/package.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "name": "contentful-management", - "version": "11.25.3", - "description": "Client for Contentful's Content Management API", - "homepage": "https://www.contentful.com/developers/documentation/content-management-api/", - "main": "./dist/contentful-management.node.js", - "browser": "./dist/contentful-management.browser.js", - "types": "./dist/typings/contentful-management.d.ts", - "module": "./dist/es-modules/contentful-management.js", - "engines": { - "node": ">=18" - }, - "browserslist": [ - ">0.3%", - "Chrome >= 75", - "Edge >= 74", - "Firefox >= 73", - "Safari >= 13" - ], - "repository": { - "type": "git", - "url": "https://github.com/contentful/contentful-management.js.git" - }, - "author": "Contentful ", - "license": "MIT", - "scripts": { - "clean": "rimraf dist", - "build": "npm run clean && npm run build:modules && npm run build:standalone && npm run build:types", - "build:modules": "BABEL_ENV=modules babel --extensions \".ts\" --extensions \".js\" lib -d dist/es-modules/", - "build:standalone": "webpack && NODE_ENV=production webpack", - "build:standalone:log": "NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json", - "build:types": "rimraf dist/typings && tsc --declaration --noEmit false --emitDeclarationOnly true --allowJs false", - "build:docs": "typedoc", - "docs:dev": "npm run build && npm run build:docs", - "docs:watch": "nodemon --exec npm run docs:dev -w lib typings", - "docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management", - "check-types": "tsc", - "lint": "eslint lib test --ext '.ts,.tsx,.js,.jsx'", - "pretest": "rimraf coverage && npm run lint", - "test": "npm run test:cover-unit && npm run test:cover-integration && npm run test:size", - "test:cover-unit": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/unit npm run test:unit", - "test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/integration npm run test:integration", - "test:unit": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/unit-results.xml", - "test:unit-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --watch --require @babel/register", - "test:integration": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/integration-results.xml", - "test:integration-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --watch --require @babel/register", - "test:browser": "BABEL_ENV=test karma start karma.conf.local.js --log-level info", - "test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0", - "test:size": "bundlesize", - "test:prepush": "npm run build && npm run test:unit && npm run test:size", - "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'", - "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'", - "semantic-release": "semantic-release", - "precommit": "npm run lint", - "postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi", - "prepush": "npm run test:prepush", - "prepublishOnly": "npm run build && npm run test:version" - }, - "files": [ - "dist", - "types.d.ts" - ], - "dependencies": { - "@contentful/rich-text-types": "^16.3.0", - "@types/json-patch": "0.0.30", - "axios": "^1.6.2", - "contentful-sdk-core": "^8.1.0", - "fast-copy": "^3.0.0", - "lodash.isplainobject": "^4.0.6", - "type-fest": "^4.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.12.7", - "@babel/core": "^7.20.0", - "@babel/eslint-parser": "^7.17.0", - "@babel/node": "^7.13.13", - "@babel/plugin-proposal-class-properties": "^7.12.1", - "@babel/plugin-proposal-export-namespace-from": "^7.12.1", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", - "@babel/plugin-proposal-object-rest-spread": "^7.12.1", - "@babel/plugin-proposal-optional-chaining": "^7.13.12", - "@babel/preset-env": "^7.14.1", - "@babel/preset-typescript": "^7.12.7", - "@contentful/integration-test-utils": "^2.0.0", - "@semantic-release/changelog": "^6.0.0", - "@types/chai": "^4.2.17", - "@types/chai-as-promised": "^7.1.4", - "@types/lodash": "^4.14.168", - "@types/lodash.isplainobject": "^4.0.6", - "@types/mocha": "^10.0.1", - "@types/node": "^20.2.3", - "@types/sinon": "17.0.3", - "@types/sinon-chai": "^3.2.9", - "@typescript-eslint/eslint-plugin": "^5.15.0", - "@typescript-eslint/parser": "^5.15.0", - "babel-loader": "^8.2.1", - "babel-plugin-inline-replace-variables": "^1.3.1", - "babel-plugin-lodash": "^3.3.4", - "babel-plugin-rewire-ts": "1.4.0", - "better-docs": "^2.3.2", - "bundlesize": "^0.18.1", - "chai": "^4.2.0", - "chai-as-promised": "7.1.1", - "contentful-sdk-jsdoc": "^3.0.0", - "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.11.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-no-only-tests": "^3.1.0", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.0.0", - "express": "^4.17.1", - "husky": "^4.3.8", - "in-publish": "^2.0.1", - "istanbul": "^1.0.0-alpha.2", - "json": "^11.0.0", - "jsonwebtoken": "^9.0.2", - "karma": "^6.3.4", - "karma-chrome-launcher": "^3.1.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.1", - "karma-mocha": "^2.0.1", - "karma-sourcemap-loader": "^0.4.0", - "karma-webpack": "^5.0.0", - "lint-staged": "^15.0.1", - "lodash": "^4.17.20", - "lodash-webpack-plugin": "^0.11.5", - "mocha": "^10.0.0", - "mocha-junit-reporter": "^2.0.2", - "nodemon": "^3.0.1", - "nyc": "^15.1.0", - "prettier": "^2.6.0", - "require-all": "^3.0.0", - "rimraf": "^5.0.0", - "semantic-release": "^19.0.5", - "sinon": "^17.0.1", - "sinon-chai": "^3.7.0", - "typedoc": "^0.23.24", - "typescript": "^4.9.4", - "webpack": "^5.88.1", - "webpack-bundle-analyzer": "^4.9.0", - "webpack-cli": "^5.1.4" - }, - "config": { - "commitizen": { - "path": "./node_modules/cz-conventional-changelog" - } - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "prettier --write", - "eslint" - ], - "*.md": [ - "prettier --write" - ] - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "release": { - "branches": [ - "master", - "next", - "next-major" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "releaseRules": [ - { - "type": "build", - "scope": "deps", - "release": "patch" - } - ] - } - ], - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github" - ] - }, - "bundlesize": [ - { - "path": "./dist/contentful-management.browser.js", - "maxSize": "75Kb" - }, - { - "path": "./dist/contentful-management.browser.min.js", - "maxSize": "30Kb" - }, - { - "path": "./dist/contentful-management.node.js", - "maxSize": "85Kb" - }, - { - "path": "./dist/contentful-management.node.min.js", - "maxSize": "35Kb" - } - ] -} diff --git a/node_modules/contentful-management/types.d.ts b/node_modules/contentful-management/types.d.ts deleted file mode 100644 index 9fa8a59d..00000000 --- a/node_modules/contentful-management/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './dist/typings/export-types' diff --git a/node_modules/contentful-sdk-core/LICENSE b/node_modules/contentful-sdk-core/LICENSE deleted file mode 100644 index 9b0169e7..00000000 --- a/node_modules/contentful-sdk-core/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Contentful - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/contentful-sdk-core/README.md b/node_modules/contentful-sdk-core/README.md deleted file mode 100644 index 470205ad..00000000 --- a/node_modules/contentful-sdk-core/README.md +++ /dev/null @@ -1,73 +0,0 @@ -# contentful-sdk-core - -![MIT License](https://img.shields.io/badge/license-MIT-blue.svg) -[![NPM Version](https://img.shields.io/npm/v/contentful-sdk-core.svg)](https://www.npmjs.com/package/contentful-sdk-core) -[![npm downloads](https://img.shields.io/npm/dm/contentful-management.svg)](http://npm-stat.com/charts.html?package=contentful-management) -[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) -[![semantic-release](https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) - -> This package contains some core modules and utilities used by both the [contentful.js](https://github.com/contentful/contentful.js) and [contentful-management.js](https://github.com/contentful/contentful-management.js) SDKs. - -## About - -[Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster. - -## Installation - -``` -npm install --saveDev contentful-sdk-core -``` - -## Use case - -This package contains some core modules and utilities used by both the [contentful.js](https://github.com/contentful/contentful.js) and [contentful-management.js](https://github.com/contentful/contentful-management.js) SDKs. - -## Support - -We support LTS versions of Node.js and all current browsers in their last 3 versions including IE 11. - -### ES2015 modules version - -For bundlers like webpack2 and rollup we support the `module` & -`jsnext:main` entry in the package.json - -## Development - -### Create the default and the es-modules build: - -``` -npm run build -``` - -### Run Tests: - -Run only the unit tests: - -``` -npm run test -``` - -Run unit tests including coverage report: - -``` -npm run test:cover -``` - -Run unit tests with coverage report and display the result in your browser: - -``` -npm run browser-coverage -``` - -Emulate a CI test run: - -``` -npm run test:ci-emulate -``` - -Enable debug mode for tests: - -``` -npm run test:debug -``` diff --git a/node_modules/contentful-sdk-core/dist/index.es-modules.js b/node_modules/contentful-sdk-core/dist/index.es-modules.js deleted file mode 100644 index 66ca6376..00000000 --- a/node_modules/contentful-sdk-core/dist/index.es-modules.js +++ /dev/null @@ -1,755 +0,0 @@ -import copy from 'fast-copy'; -import qs from 'qs'; -import isString from 'lodash.isstring'; -import pThrottle from 'p-throttle'; -import isPlainObject from 'lodash.isplainobject'; - -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _wrapRegExp() { - _wrapRegExp = function (e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = new RegExp(e, t); - return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function () {}; - return { - s: F, - n: function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function (e) { - throw e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function () { - it = it.call(o); - }, - n: function () { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function (e) { - didErr = true; - err = e; - }, - f: function () { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; -} -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function asyncToken(instance, getToken) { - instance.interceptors.request.use(function (config) { - return getToken().then(function (accessToken) { - config.headers.set('Authorization', "Bearer ".concat(accessToken)); - return config; - }); - }); -} - -function isNode() { - /** - * Polyfills of 'process' might set process.browser === true - * - * See: - * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8 - * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156 - **/ - return typeof process !== 'undefined' && !process.browser; -} -function isReactNative() { - return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative'; -} -function getNodeVersion() { - return process.versions && process.versions.node ? "v".concat(process.versions.node) : process.version; -} -function getWindow() { - return window; -} -function noop() { - return undefined; -} - -var delay = function delay(ms) { - return new Promise(function (resolve) { - setTimeout(resolve, ms); - }); -}; -var defaultWait = function defaultWait(attempts) { - return Math.pow(Math.SQRT2, attempts); -}; -function rateLimit(instance) { - var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5; - var _instance$defaults = instance.defaults, - _instance$defaults$re = _instance$defaults.responseLogger, - responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re, - _instance$defaults$re2 = _instance$defaults.requestLogger, - requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2; - instance.interceptors.request.use(function (config) { - requestLogger(config); - return config; - }, function (error) { - requestLogger(error); - return Promise.reject(error); - }); - instance.interceptors.response.use(function (response) { - // we don't need to do anything here - responseLogger(response); - return response; - }, function (error) { - var response = error.response; - var config = error.config; - responseLogger(error); - // Do not retry if it is disabled or no request config exists (not an axios error) - if (!config || !instance.defaults.retryOnError) { - return Promise.reject(error); - } - - // Retried already for max attempts - var doneAttempts = config.attempts || 1; - if (doneAttempts > maxRetry) { - error.attempts = config.attempts; - return Promise.reject(error); - } - var retryErrorType = null; - var wait = defaultWait(doneAttempts); - - // Errors without response did not receive anything from the server - if (!response) { - retryErrorType = 'Connection'; - } else if (response.status >= 500 && response.status < 600) { - // 5** errors are server related - retryErrorType = "Server ".concat(response.status); - } else if (response.status === 429) { - // 429 errors are exceeded rate limit exceptions - retryErrorType = 'Rate limit'; - // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413 - if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) { - wait = response.headers['x-contentful-ratelimit-reset']; - } - } - if (retryErrorType) { - // convert to ms and add jitter - wait = Math.floor(wait * 1000 + Math.random() * 200 + 500); - instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); - - // increase attempts counter - config.attempts = doneAttempts + 1; - - /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object - to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry - requests still use the original http/httpsAgent property */ - delete config.httpAgent; - delete config.httpsAgent; - return delay(wait).then(function () { - return instance(config); - }); - } - return Promise.reject(error); - }); -} - -var PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\d+)(%)/, { - value: 1 -}); -function calculateLimit(type) { - var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7; - var limit = max; - if (PERCENTAGE_REGEX.test(type)) { - var _type$match; - var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups; - if (groups && groups.value) { - var percentage = parseInt(groups.value) / 100; - limit = Math.round(max * percentage); - } - } - return Math.min(30, Math.max(1, limit)); -} -function createThrottle(limit, logger) { - logger('info', "Throttle request to ".concat(limit, "/s")); - return pThrottle({ - limit: limit, - interval: 1000, - strict: false - }); -} -var rateLimitThrottle = (function (axiosInstance) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto'; - var _axiosInstance$defaul = axiosInstance.defaults.logHandler, - logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul; - var limit = isString(type) ? calculateLimit(type) : calculateLimit('auto', type); - var throttle = createThrottle(limit, logHandler); - var isCalculated = false; - var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) { - if (!isCalculated && isString(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) { - var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']); - var nextLimit = calculateLimit(type, rawLimit); - if (nextLimit !== limit) { - if (requestInterceptorId) { - axiosInstance.interceptors.request.eject(requestInterceptorId); - } - limit = nextLimit; - throttle = createThrottle(nextLimit, logHandler); - requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - } - isCalculated = true; - } - return response; - }, function (error) { - return Promise.reject(error); - }); - return function () { - axiosInstance.interceptors.request.eject(requestInterceptorId); - axiosInstance.interceptors.response.eject(responseInterceptorId); - }; -}); - -// Matches 'sub.host:port' or 'host:port' and extracts hostname and port -// Also enforces toplevel domain specified, no spaces and no protocol -var HOST_REGEX = /^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/; - -/** - * Create pre-configured axios instance - * @private - * @param {AxiosStatic} axios - Axios library - * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ -function createHttpClient(axios, options) { - var defaultConfig = { - insecure: false, - retryOnError: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - logHandler: function logHandler(level, data) { - if (level === 'error' && data) { - var title = [data.name, data.message].filter(function (a) { - return a; - }).join(' - '); - console.error("[error] ".concat(title)); - console.error(data); - return; - } - console.log("[".concat(level, "] ").concat(data)); - }, - // Passed to axios - headers: {}, - httpAgent: false, - httpsAgent: false, - timeout: 30000, - throttle: 0, - basePath: '', - adapter: undefined, - maxContentLength: 1073741824, - // 1GB - maxBodyLength: 1073741824 // 1GB - }; - var config = _objectSpread2(_objectSpread2({}, defaultConfig), options); - if (!config.accessToken) { - var missingAccessTokenError = new TypeError('Expected parameter accessToken'); - config.logHandler('error', missingAccessTokenError); - throw missingAccessTokenError; - } - - // Construct axios baseURL option - var protocol = config.insecure ? 'http' : 'https'; - var space = config.space ? "".concat(config.space, "/") : ''; - var hostname = config.defaultHostname; - var port = config.insecure ? 80 : 443; - if (config.host && HOST_REGEX.test(config.host)) { - var parsed = config.host.split(':'); - if (parsed.length === 2) { - var _parsed = _slicedToArray(parsed, 2); - hostname = _parsed[0]; - port = _parsed[1]; - } else { - hostname = parsed[0]; - } - } - - // Ensure that basePath does start but not end with a slash - if (config.basePath) { - config.basePath = "/".concat(config.basePath.split('/').filter(Boolean).join('/')); - } - var baseURL = options.baseURL || "".concat(protocol, "://").concat(hostname, ":").concat(port).concat(config.basePath, "/spaces/").concat(space); - if (!config.headers.Authorization && typeof config.accessToken !== 'function') { - config.headers.Authorization = 'Bearer ' + config.accessToken; - } - var axiosOptions = { - // Axios - baseURL: baseURL, - headers: config.headers, - httpAgent: config.httpAgent, - httpsAgent: config.httpsAgent, - proxy: config.proxy, - timeout: config.timeout, - adapter: config.adapter, - maxContentLength: config.maxContentLength, - maxBodyLength: config.maxBodyLength, - paramsSerializer: { - serialize: function serialize(params) { - return qs.stringify(params); - } - }, - // Contentful - logHandler: config.logHandler, - responseLogger: config.responseLogger, - requestLogger: config.requestLogger, - retryOnError: config.retryOnError - }; - var instance = axios.create(axiosOptions); - instance.httpClientParams = options; - - /** - * Creates a new axios instance with the same default base parameters as the - * current one, and with any overrides passed to the newParams object - * This is useful as the SDKs use dependency injection to get the axios library - * and the version of the library comes from different places depending - * on whether it's a browser build or a node.js build. - * @private - * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ - instance.cloneWithNewParams = function (newParams) { - return createHttpClient(axios, _objectSpread2(_objectSpread2({}, copy(options)), newParams)); - }; - - /** - * Apply interceptors. - * Please note that the order of interceptors is important - */ - - if (config.onBeforeRequest) { - instance.interceptors.request.use(config.onBeforeRequest); - } - if (typeof config.accessToken === 'function') { - asyncToken(instance, config.accessToken); - } - if (config.throttle) { - rateLimitThrottle(instance, config.throttle); - } - rateLimit(instance, config.retryLimit); - if (config.onError) { - instance.interceptors.response.use(function (response) { - return response; - }, config.onError); - } - return instance; -} - -/* eslint-disable @typescript-eslint/no-explicit-any */ -/** - * Creates request parameters configuration by parsing an existing query object - * @private - * @param {Object} query - * @return {Object} Config object with `params` property, ready to be used in axios - */ -function createRequestConfig(_ref) { - var query = _ref.query; - var config = {}; - delete query.resolveLinks; - config.params = copy(query); - return config; -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function enforceObjPath(obj, path) { - if (!(path in obj)) { - var err = new Error(); - err.name = 'PropertyMissing'; - err.message = "Required property ".concat(path, " missing from:\n\n").concat(JSON.stringify(obj), "\n\n"); - throw err; - } - return true; -} - -// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze - -function deepFreeze(object) { - var propNames = Object.getOwnPropertyNames(object); - var _iterator = _createForOfIteratorHelper(propNames), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var name = _step.value; - var value = object[name]; - if (value && _typeof(value) === 'object') { - deepFreeze(value); - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - return Object.freeze(object); -} -function freezeSys(obj) { - deepFreeze(obj.sys || {}); - return obj; -} - -function getBrowserOS() { - var win = getWindow(); - if (!win) { - return null; - } - var userAgent = win.navigator.userAgent; - // TODO: platform is deprecated. - var platform = win.navigator.platform; - var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; - var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; - var iosPlatforms = ['iPhone', 'iPad', 'iPod']; - if (macosPlatforms.indexOf(platform) !== -1) { - return 'macOS'; - } else if (iosPlatforms.indexOf(platform) !== -1) { - return 'iOS'; - } else if (windowsPlatforms.indexOf(platform) !== -1) { - return 'Windows'; - } else if (/Android/.test(userAgent)) { - return 'Android'; - } else if (/Linux/.test(platform)) { - return 'Linux'; - } - return null; -} -function getNodeOS() { - var platform = process.platform || 'linux'; - var version = process.version || '0.0.0'; - var platformMap = { - android: 'Android', - aix: 'Linux', - darwin: 'macOS', - freebsd: 'Linux', - linux: 'Linux', - openbsd: 'Linux', - sunos: 'Linux', - win32: 'Windows' - }; - if (platform in platformMap) { - return "".concat(platformMap[platform] || 'Linux', "/").concat(version); - } - return null; -} -function getUserAgentHeader(sdk, application, integration, feature) { - var headerParts = []; - if (application) { - headerParts.push("app ".concat(application)); - } - if (integration) { - headerParts.push("integration ".concat(integration)); - } - if (feature) { - headerParts.push('feature ' + feature); - } - headerParts.push("sdk ".concat(sdk)); - var platform = null; - try { - if (isReactNative()) { - platform = getBrowserOS(); - headerParts.push('platform ReactNative'); - } else if (isNode()) { - platform = getNodeOS(); - headerParts.push("platform node.js/".concat(getNodeVersion())); - } else { - platform = getBrowserOS(); - headerParts.push('platform browser'); - } - } catch (e) { - platform = null; - } - if (platform) { - headerParts.push("os ".concat(platform)); - } - return "".concat(headerParts.filter(function (item) { - return item !== ''; - }).join('; '), ";"); -} - -/** - * Mixes in a method to return just a plain object with no additional methods - * @private - * @param data - Any plain JSON response returned from the API - * @return Enhanced object with toPlainObject method - */ -function toPlainObject(data) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - return Object.defineProperty(data, 'toPlainObject', { - enumerable: false, - configurable: false, - writable: false, - value: function value() { - return copy(this); - } - }); -} - -/** - * Handles errors received from the server. Parses the error into a more useful - * format, places it in an exception and throws it. - * See https://www.contentful.com/developers/docs/references/errors/ - * for more details on the data received on the errorResponse.data property - * and the expected error codes. - * @private - */ -function errorHandler(errorResponse) { - var config = errorResponse.config, - response = errorResponse.response; - var errorName; - - // Obscure the Management token - if (config && config.headers && config.headers['Authorization']) { - var token = "...".concat(config.headers['Authorization'].toString().substr(-5)); - config.headers['Authorization'] = "Bearer ".concat(token); - } - if (!isPlainObject(response) || !isPlainObject(config)) { - throw errorResponse; - } - var data = response === null || response === void 0 ? void 0 : response.data; - var errorData = { - status: response === null || response === void 0 ? void 0 : response.status, - statusText: response === null || response === void 0 ? void 0 : response.statusText, - message: '', - details: {} - }; - if (config && isPlainObject(config)) { - errorData.request = { - url: config.url, - headers: config.headers, - method: config.method, - payloadData: config.data - }; - } - if (data && _typeof(data) === 'object') { - var _data$sys; - if ('requestId' in data) { - errorData.requestId = data.requestId || 'UNKNOWN'; - } - if ('message' in data) { - errorData.message = data.message || ''; - } - if ('details' in data) { - errorData.details = data.details || {}; - } - errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id; - } - var error = new Error(); - error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response === void 0 ? void 0 : response.status, " ").concat(response === null || response === void 0 ? void 0 : response.statusText); - try { - error.message = JSON.stringify(errorData, null, ' '); - } catch (_unused) { - var _errorData$message; - error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : ''; - } - throw error; -} - -export { createHttpClient, createRequestConfig, enforceObjPath, errorHandler, freezeSys, getUserAgentHeader, toPlainObject }; diff --git a/node_modules/contentful-sdk-core/dist/index.js b/node_modules/contentful-sdk-core/dist/index.js deleted file mode 100644 index f2e8c10f..00000000 --- a/node_modules/contentful-sdk-core/dist/index.js +++ /dev/null @@ -1,773 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var copy = require('fast-copy'); -var qs = require('qs'); -var isString = require('lodash.isstring'); -var pThrottle = require('p-throttle'); -var isPlainObject = require('lodash.isplainobject'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var copy__default = /*#__PURE__*/_interopDefaultLegacy(copy); -var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs); -var isString__default = /*#__PURE__*/_interopDefaultLegacy(isString); -var pThrottle__default = /*#__PURE__*/_interopDefaultLegacy(pThrottle); -var isPlainObject__default = /*#__PURE__*/_interopDefaultLegacy(isPlainObject); - -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _wrapRegExp() { - _wrapRegExp = function (e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = new RegExp(e, t); - return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function () {}; - return { - s: F, - n: function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function (e) { - throw e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function () { - it = it.call(o); - }, - n: function () { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function (e) { - didErr = true; - err = e; - }, - f: function () { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; -} -function _toPrimitive(input, hint) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} -function _toPropertyKey(arg) { - var key = _toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); -} - -function asyncToken(instance, getToken) { - instance.interceptors.request.use(function (config) { - return getToken().then(function (accessToken) { - config.headers.set('Authorization', "Bearer ".concat(accessToken)); - return config; - }); - }); -} - -function isNode() { - /** - * Polyfills of 'process' might set process.browser === true - * - * See: - * https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8 - * https://github.com/defunctzombie/node-process/blob/master/browser.js#L156 - **/ - return typeof process !== 'undefined' && !process.browser; -} -function isReactNative() { - return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative'; -} -function getNodeVersion() { - return process.versions && process.versions.node ? "v".concat(process.versions.node) : process.version; -} -function getWindow() { - return window; -} -function noop() { - return undefined; -} - -var delay = function delay(ms) { - return new Promise(function (resolve) { - setTimeout(resolve, ms); - }); -}; -var defaultWait = function defaultWait(attempts) { - return Math.pow(Math.SQRT2, attempts); -}; -function rateLimit(instance) { - var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5; - var _instance$defaults = instance.defaults, - _instance$defaults$re = _instance$defaults.responseLogger, - responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re, - _instance$defaults$re2 = _instance$defaults.requestLogger, - requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2; - instance.interceptors.request.use(function (config) { - requestLogger(config); - return config; - }, function (error) { - requestLogger(error); - return Promise.reject(error); - }); - instance.interceptors.response.use(function (response) { - // we don't need to do anything here - responseLogger(response); - return response; - }, function (error) { - var response = error.response; - var config = error.config; - responseLogger(error); - // Do not retry if it is disabled or no request config exists (not an axios error) - if (!config || !instance.defaults.retryOnError) { - return Promise.reject(error); - } - - // Retried already for max attempts - var doneAttempts = config.attempts || 1; - if (doneAttempts > maxRetry) { - error.attempts = config.attempts; - return Promise.reject(error); - } - var retryErrorType = null; - var wait = defaultWait(doneAttempts); - - // Errors without response did not receive anything from the server - if (!response) { - retryErrorType = 'Connection'; - } else if (response.status >= 500 && response.status < 600) { - // 5** errors are server related - retryErrorType = "Server ".concat(response.status); - } else if (response.status === 429) { - // 429 errors are exceeded rate limit exceptions - retryErrorType = 'Rate limit'; - // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413 - if (response.headers && error.response.headers['x-contentful-ratelimit-reset']) { - wait = response.headers['x-contentful-ratelimit-reset']; - } - } - if (retryErrorType) { - // convert to ms and add jitter - wait = Math.floor(wait * 1000 + Math.random() * 200 + 500); - instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); - - // increase attempts counter - config.attempts = doneAttempts + 1; - - /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object - to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry - requests still use the original http/httpsAgent property */ - delete config.httpAgent; - delete config.httpsAgent; - return delay(wait).then(function () { - return instance(config); - }); - } - return Promise.reject(error); - }); -} - -var PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\d+)(%)/, { - value: 1 -}); -function calculateLimit(type) { - var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7; - var limit = max; - if (PERCENTAGE_REGEX.test(type)) { - var _type$match; - var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups; - if (groups && groups.value) { - var percentage = parseInt(groups.value) / 100; - limit = Math.round(max * percentage); - } - } - return Math.min(30, Math.max(1, limit)); -} -function createThrottle(limit, logger) { - logger('info', "Throttle request to ".concat(limit, "/s")); - return pThrottle__default["default"]({ - limit: limit, - interval: 1000, - strict: false - }); -} -var rateLimitThrottle = (function (axiosInstance) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto'; - var _axiosInstance$defaul = axiosInstance.defaults.logHandler, - logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul; - var limit = isString__default["default"](type) ? calculateLimit(type) : calculateLimit('auto', type); - var throttle = createThrottle(limit, logHandler); - var isCalculated = false; - var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) { - if (!isCalculated && isString__default["default"](type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) { - var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']); - var nextLimit = calculateLimit(type, rawLimit); - if (nextLimit !== limit) { - if (requestInterceptorId) { - axiosInstance.interceptors.request.eject(requestInterceptorId); - } - limit = nextLimit; - throttle = createThrottle(nextLimit, logHandler); - requestInterceptorId = axiosInstance.interceptors.request.use(function (config) { - return throttle(function () { - return config; - })(); - }, function (error) { - return Promise.reject(error); - }); - } - isCalculated = true; - } - return response; - }, function (error) { - return Promise.reject(error); - }); - return function () { - axiosInstance.interceptors.request.eject(requestInterceptorId); - axiosInstance.interceptors.response.eject(responseInterceptorId); - }; -}); - -// Matches 'sub.host:port' or 'host:port' and extracts hostname and port -// Also enforces toplevel domain specified, no spaces and no protocol -var HOST_REGEX = /^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/; - -/** - * Create pre-configured axios instance - * @private - * @param {AxiosStatic} axios - Axios library - * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ -function createHttpClient(axios, options) { - var defaultConfig = { - insecure: false, - retryOnError: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - logHandler: function logHandler(level, data) { - if (level === 'error' && data) { - var title = [data.name, data.message].filter(function (a) { - return a; - }).join(' - '); - console.error("[error] ".concat(title)); - console.error(data); - return; - } - console.log("[".concat(level, "] ").concat(data)); - }, - // Passed to axios - headers: {}, - httpAgent: false, - httpsAgent: false, - timeout: 30000, - throttle: 0, - basePath: '', - adapter: undefined, - maxContentLength: 1073741824, - // 1GB - maxBodyLength: 1073741824 // 1GB - }; - var config = _objectSpread2(_objectSpread2({}, defaultConfig), options); - if (!config.accessToken) { - var missingAccessTokenError = new TypeError('Expected parameter accessToken'); - config.logHandler('error', missingAccessTokenError); - throw missingAccessTokenError; - } - - // Construct axios baseURL option - var protocol = config.insecure ? 'http' : 'https'; - var space = config.space ? "".concat(config.space, "/") : ''; - var hostname = config.defaultHostname; - var port = config.insecure ? 80 : 443; - if (config.host && HOST_REGEX.test(config.host)) { - var parsed = config.host.split(':'); - if (parsed.length === 2) { - var _parsed = _slicedToArray(parsed, 2); - hostname = _parsed[0]; - port = _parsed[1]; - } else { - hostname = parsed[0]; - } - } - - // Ensure that basePath does start but not end with a slash - if (config.basePath) { - config.basePath = "/".concat(config.basePath.split('/').filter(Boolean).join('/')); - } - var baseURL = options.baseURL || "".concat(protocol, "://").concat(hostname, ":").concat(port).concat(config.basePath, "/spaces/").concat(space); - if (!config.headers.Authorization && typeof config.accessToken !== 'function') { - config.headers.Authorization = 'Bearer ' + config.accessToken; - } - var axiosOptions = { - // Axios - baseURL: baseURL, - headers: config.headers, - httpAgent: config.httpAgent, - httpsAgent: config.httpsAgent, - proxy: config.proxy, - timeout: config.timeout, - adapter: config.adapter, - maxContentLength: config.maxContentLength, - maxBodyLength: config.maxBodyLength, - paramsSerializer: { - serialize: function serialize(params) { - return qs__default["default"].stringify(params); - } - }, - // Contentful - logHandler: config.logHandler, - responseLogger: config.responseLogger, - requestLogger: config.requestLogger, - retryOnError: config.retryOnError - }; - var instance = axios.create(axiosOptions); - instance.httpClientParams = options; - - /** - * Creates a new axios instance with the same default base parameters as the - * current one, and with any overrides passed to the newParams object - * This is useful as the SDKs use dependency injection to get the axios library - * and the version of the library comes from different places depending - * on whether it's a browser build or a node.js build. - * @private - * @param {CreateHttpClientParams} newParams - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ - instance.cloneWithNewParams = function (newParams) { - return createHttpClient(axios, _objectSpread2(_objectSpread2({}, copy__default["default"](options)), newParams)); - }; - - /** - * Apply interceptors. - * Please note that the order of interceptors is important - */ - - if (config.onBeforeRequest) { - instance.interceptors.request.use(config.onBeforeRequest); - } - if (typeof config.accessToken === 'function') { - asyncToken(instance, config.accessToken); - } - if (config.throttle) { - rateLimitThrottle(instance, config.throttle); - } - rateLimit(instance, config.retryLimit); - if (config.onError) { - instance.interceptors.response.use(function (response) { - return response; - }, config.onError); - } - return instance; -} - -/* eslint-disable @typescript-eslint/no-explicit-any */ -/** - * Creates request parameters configuration by parsing an existing query object - * @private - * @param {Object} query - * @return {Object} Config object with `params` property, ready to be used in axios - */ -function createRequestConfig(_ref) { - var query = _ref.query; - var config = {}; - delete query.resolveLinks; - config.params = copy__default["default"](query); - return config; -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function enforceObjPath(obj, path) { - if (!(path in obj)) { - var err = new Error(); - err.name = 'PropertyMissing'; - err.message = "Required property ".concat(path, " missing from:\n\n").concat(JSON.stringify(obj), "\n\n"); - throw err; - } - return true; -} - -// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze - -function deepFreeze(object) { - var propNames = Object.getOwnPropertyNames(object); - var _iterator = _createForOfIteratorHelper(propNames), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var name = _step.value; - var value = object[name]; - if (value && _typeof(value) === 'object') { - deepFreeze(value); - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - return Object.freeze(object); -} -function freezeSys(obj) { - deepFreeze(obj.sys || {}); - return obj; -} - -function getBrowserOS() { - var win = getWindow(); - if (!win) { - return null; - } - var userAgent = win.navigator.userAgent; - // TODO: platform is deprecated. - var platform = win.navigator.platform; - var macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; - var windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; - var iosPlatforms = ['iPhone', 'iPad', 'iPod']; - if (macosPlatforms.indexOf(platform) !== -1) { - return 'macOS'; - } else if (iosPlatforms.indexOf(platform) !== -1) { - return 'iOS'; - } else if (windowsPlatforms.indexOf(platform) !== -1) { - return 'Windows'; - } else if (/Android/.test(userAgent)) { - return 'Android'; - } else if (/Linux/.test(platform)) { - return 'Linux'; - } - return null; -} -function getNodeOS() { - var platform = process.platform || 'linux'; - var version = process.version || '0.0.0'; - var platformMap = { - android: 'Android', - aix: 'Linux', - darwin: 'macOS', - freebsd: 'Linux', - linux: 'Linux', - openbsd: 'Linux', - sunos: 'Linux', - win32: 'Windows' - }; - if (platform in platformMap) { - return "".concat(platformMap[platform] || 'Linux', "/").concat(version); - } - return null; -} -function getUserAgentHeader(sdk, application, integration, feature) { - var headerParts = []; - if (application) { - headerParts.push("app ".concat(application)); - } - if (integration) { - headerParts.push("integration ".concat(integration)); - } - if (feature) { - headerParts.push('feature ' + feature); - } - headerParts.push("sdk ".concat(sdk)); - var platform = null; - try { - if (isReactNative()) { - platform = getBrowserOS(); - headerParts.push('platform ReactNative'); - } else if (isNode()) { - platform = getNodeOS(); - headerParts.push("platform node.js/".concat(getNodeVersion())); - } else { - platform = getBrowserOS(); - headerParts.push('platform browser'); - } - } catch (e) { - platform = null; - } - if (platform) { - headerParts.push("os ".concat(platform)); - } - return "".concat(headerParts.filter(function (item) { - return item !== ''; - }).join('; '), ";"); -} - -/** - * Mixes in a method to return just a plain object with no additional methods - * @private - * @param data - Any plain JSON response returned from the API - * @return Enhanced object with toPlainObject method - */ -function toPlainObject(data) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - return Object.defineProperty(data, 'toPlainObject', { - enumerable: false, - configurable: false, - writable: false, - value: function value() { - return copy__default["default"](this); - } - }); -} - -/** - * Handles errors received from the server. Parses the error into a more useful - * format, places it in an exception and throws it. - * See https://www.contentful.com/developers/docs/references/errors/ - * for more details on the data received on the errorResponse.data property - * and the expected error codes. - * @private - */ -function errorHandler(errorResponse) { - var config = errorResponse.config, - response = errorResponse.response; - var errorName; - - // Obscure the Management token - if (config && config.headers && config.headers['Authorization']) { - var token = "...".concat(config.headers['Authorization'].toString().substr(-5)); - config.headers['Authorization'] = "Bearer ".concat(token); - } - if (!isPlainObject__default["default"](response) || !isPlainObject__default["default"](config)) { - throw errorResponse; - } - var data = response === null || response === void 0 ? void 0 : response.data; - var errorData = { - status: response === null || response === void 0 ? void 0 : response.status, - statusText: response === null || response === void 0 ? void 0 : response.statusText, - message: '', - details: {} - }; - if (config && isPlainObject__default["default"](config)) { - errorData.request = { - url: config.url, - headers: config.headers, - method: config.method, - payloadData: config.data - }; - } - if (data && _typeof(data) === 'object') { - var _data$sys; - if ('requestId' in data) { - errorData.requestId = data.requestId || 'UNKNOWN'; - } - if ('message' in data) { - errorData.message = data.message || ''; - } - if ('details' in data) { - errorData.details = data.details || {}; - } - errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id; - } - var error = new Error(); - error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response === void 0 ? void 0 : response.status, " ").concat(response === null || response === void 0 ? void 0 : response.statusText); - try { - error.message = JSON.stringify(errorData, null, ' '); - } catch (_unused) { - var _errorData$message; - error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : ''; - } - throw error; -} - -exports.createHttpClient = createHttpClient; -exports.createRequestConfig = createRequestConfig; -exports.enforceObjPath = enforceObjPath; -exports.errorHandler = errorHandler; -exports.freezeSys = freezeSys; -exports.getUserAgentHeader = getUserAgentHeader; -exports.toPlainObject = toPlainObject; diff --git a/node_modules/contentful-sdk-core/dist/types/async-token.d.ts b/node_modules/contentful-sdk-core/dist/types/async-token.d.ts deleted file mode 100644 index effa5473..00000000 --- a/node_modules/contentful-sdk-core/dist/types/async-token.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AxiosInstance } from './types'; -export default function asyncToken(instance: AxiosInstance, getToken: () => Promise): void; diff --git a/node_modules/contentful-sdk-core/dist/types/create-http-client.d.ts b/node_modules/contentful-sdk-core/dist/types/create-http-client.d.ts deleted file mode 100644 index f424f138..00000000 --- a/node_modules/contentful-sdk-core/dist/types/create-http-client.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { AxiosStatic } from 'axios'; -import type { AxiosInstance, CreateHttpClientParams } from './types'; -/** - * Create pre-configured axios instance - * @private - * @param {AxiosStatic} axios - Axios library - * @param {CreateHttpClientParams} options - Initialization parameters for the HTTP client - * @return {AxiosInstance} Initialized axios instance - */ -export default function createHttpClient(axios: AxiosStatic, options: CreateHttpClientParams): AxiosInstance; diff --git a/node_modules/contentful-sdk-core/dist/types/create-request-config.d.ts b/node_modules/contentful-sdk-core/dist/types/create-request-config.d.ts deleted file mode 100644 index 63d52d11..00000000 --- a/node_modules/contentful-sdk-core/dist/types/create-request-config.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -type Config = { - params?: Record; -}; -/** - * Creates request parameters configuration by parsing an existing query object - * @private - * @param {Object} query - * @return {Object} Config object with `params` property, ready to be used in axios - */ -export default function createRequestConfig({ query }: { - query: Record; -}): Config; -export {}; diff --git a/node_modules/contentful-sdk-core/dist/types/enforce-obj-path.d.ts b/node_modules/contentful-sdk-core/dist/types/enforce-obj-path.d.ts deleted file mode 100644 index 7bca48b7..00000000 --- a/node_modules/contentful-sdk-core/dist/types/enforce-obj-path.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function enforceObjPath(obj: any, path: string): boolean; diff --git a/node_modules/contentful-sdk-core/dist/types/error-handler.d.ts b/node_modules/contentful-sdk-core/dist/types/error-handler.d.ts deleted file mode 100644 index 1aa96f75..00000000 --- a/node_modules/contentful-sdk-core/dist/types/error-handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Handles errors received from the server. Parses the error into a more useful - * format, places it in an exception and throws it. - * See https://www.contentful.com/developers/docs/references/errors/ - * for more details on the data received on the errorResponse.data property - * and the expected error codes. - * @private - */ -export default function errorHandler(errorResponse: any): never; diff --git a/node_modules/contentful-sdk-core/dist/types/freeze-sys.d.ts b/node_modules/contentful-sdk-core/dist/types/freeze-sys.d.ts deleted file mode 100644 index 8841bc46..00000000 --- a/node_modules/contentful-sdk-core/dist/types/freeze-sys.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -type FreezeObject = Record; -export default function freezeSys(obj: T): T; -export {}; diff --git a/node_modules/contentful-sdk-core/dist/types/get-user-agent.d.ts b/node_modules/contentful-sdk-core/dist/types/get-user-agent.d.ts deleted file mode 100644 index 93cd1b9b..00000000 --- a/node_modules/contentful-sdk-core/dist/types/get-user-agent.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentHeader(sdk: string, application?: string, integration?: string, feature?: string): string; diff --git a/node_modules/contentful-sdk-core/dist/types/index.d.ts b/node_modules/contentful-sdk-core/dist/types/index.d.ts deleted file mode 100644 index 0bfe8fb9..00000000 --- a/node_modules/contentful-sdk-core/dist/types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { default as createHttpClient } from './create-http-client'; -export { default as createRequestConfig } from './create-request-config'; -export { default as enforceObjPath } from './enforce-obj-path'; -export { default as freezeSys } from './freeze-sys'; -export { default as getUserAgentHeader } from './get-user-agent'; -export { default as toPlainObject } from './to-plain-object'; -export { default as errorHandler } from './error-handler'; -export type { AxiosInstance, CreateHttpClientParams } from './types'; diff --git a/node_modules/contentful-sdk-core/dist/types/rate-limit-throttle.d.ts b/node_modules/contentful-sdk-core/dist/types/rate-limit-throttle.d.ts deleted file mode 100644 index ce964d57..00000000 --- a/node_modules/contentful-sdk-core/dist/types/rate-limit-throttle.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { AxiosInstance } from './types'; -type ThrottleType = 'auto' | string; -declare const _default: (axiosInstance: AxiosInstance, type?: ThrottleType | number) => () => void; -export default _default; diff --git a/node_modules/contentful-sdk-core/dist/types/rate-limit.d.ts b/node_modules/contentful-sdk-core/dist/types/rate-limit.d.ts deleted file mode 100644 index e849f641..00000000 --- a/node_modules/contentful-sdk-core/dist/types/rate-limit.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AxiosInstance } from './types'; -export default function rateLimit(instance: AxiosInstance, maxRetry?: number): void; diff --git a/node_modules/contentful-sdk-core/dist/types/to-plain-object.d.ts b/node_modules/contentful-sdk-core/dist/types/to-plain-object.d.ts deleted file mode 100644 index a056bd92..00000000 --- a/node_modules/contentful-sdk-core/dist/types/to-plain-object.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Mixes in a method to return just a plain object with no additional methods - * @private - * @param data - Any plain JSON response returned from the API - * @return Enhanced object with toPlainObject method - */ -export default function toPlainObject, R = T>(data: T): T & { - /** - * Returns this entity as a plain JS object - */ - toPlainObject(): R; -}; diff --git a/node_modules/contentful-sdk-core/dist/types/types.d.ts b/node_modules/contentful-sdk-core/dist/types/types.d.ts deleted file mode 100644 index 9a75b907..00000000 --- a/node_modules/contentful-sdk-core/dist/types/types.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { AxiosHeaderValue, AxiosRequestHeaders, InternalAxiosRequestConfig } from 'axios'; -import type { AxiosInstance as OriginalAxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; -export type DefaultOptions = AxiosRequestConfig & { - logHandler: (level: string, data?: Error | string) => void; - responseLogger?: (response: AxiosResponse | Error) => unknown; - requestLogger?: (request: AxiosRequestConfig | Error) => unknown; - retryOnError?: boolean; -}; -export type AxiosInstance = OriginalAxiosInstance & { - httpClientParams: CreateHttpClientParams; - cloneWithNewParams: (params: Partial) => AxiosInstance; - defaults: DefaultOptions; -}; -export type CreateHttpClientParams = { - /** Access Token or an async function that returns Access Token */ - accessToken: string | (() => Promise); - /** Space ID */ - space?: string; - /** - * Requests will be made over http instead of the default https - * @default false - */ - insecure?: boolean; - /** - * API host - */ - host?: string; - /** HTTP agent for node */ - httpAgent?: AxiosRequestConfig['httpAgent']; - /** HTTPS agent for node */ - httpsAgent?: AxiosRequestConfig['httpsAgent']; - /** Axios adapter to handle requests */ - adapter?: AxiosRequestConfig['adapter']; - /** Axios proxy config */ - proxy?: AxiosRequestConfig['proxy']; - /** Gets called on every request triggered by the SDK, takes the axios request config as an argument */ - requestLogger?: DefaultOptions['requestLogger']; - /** Gets called on every response, takes axios response object as an argument */ - responseLogger?: DefaultOptions['responseLogger']; - /** Request interceptor */ - onBeforeRequest?: (value: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise; - /** Error handler */ - onError?: (error: any) => any; - /** A log handler function to process given log messages & errors. Receives the log level (error, warning & info) and the actual log data (Error object or string). (Default can be found here: https://github.com/contentful/contentful-sdk-core/blob/master/lib/create-http-client.js) */ - logHandler?: DefaultOptions['logHandler']; - /** Optional additional headers */ - headers?: AxiosRequestHeaders | Record; - defaultHostname?: string; - /** - * If we should retry on errors and 429 rate limit exceptions - * @default true - */ - retryOnError?: boolean; - /** - * Optional number of retries before failure - * @default 5 - */ - retryLimit?: number; - /** - * Optional number of milliseconds before the request times out. - * @default 30000 - */ - timeout?: number; - basePath?: string; - baseURL?: string; - /** - * Optional maximum content length in bytes - * @default 1073741824 i.e 1GB - */ - maxContentLength?: number; - /** - * Optional maximum body length in bytes - * @default 1073741824 i.e 1GB - */ - maxBodyLength?: number; - /** - * Optional maximum number of requests per second (rate-limit) - * @desc should represent the max of your current plan's rate limit - * @default 0 = no throttling - * @param 1-30 (fixed number of limit), 'auto' (calculated limit based on current tier), '0%' - '100%' (calculated % limit based on tier) - */ - throttle?: 'auto' | string | number; - /** - * Optional how often the current request has been retried - * @default 0 - */ - attempt?: number; -}; -export type ContentfulErrorData = { - status?: number; - statusText?: string; - requestId?: string; - message: string; - details: Record; - request?: Record; - sys?: { - id?: string; - }; -}; diff --git a/node_modules/contentful-sdk-core/dist/types/utils.d.ts b/node_modules/contentful-sdk-core/dist/types/utils.d.ts deleted file mode 100644 index a652ecc6..00000000 --- a/node_modules/contentful-sdk-core/dist/types/utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function isNode(): boolean; -export declare function isReactNative(): boolean; -export declare function getNodeVersion(): string; -export declare function getWindow(): Window; -export declare function noop(): undefined; diff --git a/node_modules/contentful-sdk-core/package.json b/node_modules/contentful-sdk-core/package.json deleted file mode 100644 index 966269a9..00000000 --- a/node_modules/contentful-sdk-core/package.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "name": "contentful-sdk-core", - "version": "8.1.2", - "description": "Core modules for the Contentful JS SDKs", - "homepage": "https://www.contentful.com/developers/docs/javascript/", - "main": "dist/index.js", - "module": "dist/index.es-modules.js", - "jsnext:main": "dist/index.es-modules.js", - "types": "dist/types/index.d.ts", - "browser": { - "os": false - }, - "repository": { - "type": "git", - "url": "https://github.com/contentful/contentful-sdk-core.git" - }, - "author": "Contentful ", - "license": "MIT", - "scripts": { - "clean": "rimraf coverage && rimraf dist", - "build:js": "rollup -c", - "build:types": "tsc --emitDeclarationOnly", - "build": "npm run clean && npm run build:types && npm run build:js", - "lint": "eslint src test --ext '.ts,.js'", - "pretest": "npm run lint", - "test": "jest", - "test:watch": "jest --watch", - "test:cover": "jest --coverage", - "browser-coverage": "npm run test:cover && opener coverage/lcov-report/index.html", - "prepublish": "in-publish && npm run build || not-in-publish", - "semantic-release": "semantic-release", - "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'", - "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'", - "precommit": "npm run lint", - "tsc": "tsc --noEmit", - "prepush": "npm run test:unit && bundlesize" - }, - "files": [ - "dist", - "bin" - ], - "engines": { - "node": ">=12" - }, - "dependencies": { - "fast-copy": "^2.1.7", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "p-throttle": "^4.1.1", - "qs": "^6.11.2" - }, - "devDependencies": { - "@babel/cli": "^7.12.8", - "@babel/core": "7.22.5", - "@babel/node": "^7.12.6", - "@babel/preset-env": "^7.12.7", - "@babel/preset-typescript": "^7.12.7", - "@babel/register": "^7.0.0", - "@rollup/plugin-node-resolve": "^15.0.0", - "@semantic-release/changelog": "^6.0.3", - "@semantic-release/commit-analyzer": "^10.0.1", - "@semantic-release/github": "^9.0.3", - "@semantic-release/npm": "^10.0.4", - "@semantic-release/release-notes-generator": "^11.0.3", - "@types/chai": "^4.2.21", - "@types/jest": "^29.2.2", - "@types/lodash.isplainobject": "^4.0.6", - "@types/lodash.isstring": "^4.0.6", - "@types/qs": "^6.9.10", - "@typescript-eslint/eslint-plugin": "^5.11.0", - "@typescript-eslint/parser": "^5.11.0", - "axios": "^1.6.0", - "axios-mock-adapter": "^1.20.0", - "babel-eslint": "^10.1.0", - "bundlesize": "^0.18.1", - "chai": "^4.3.4", - "core-js": "^3.8.0", - "cz-conventional-changelog": "^3.1.0", - "eslint": "^8.26.0", - "eslint-config-prettier": "^8.5.0", - "eslint-config-standard": "^17.0.0", - "eslint-plugin-babel": "^5.1.0", - "eslint-plugin-import": "^2.13.0", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-standard": "^5.0.0", - "husky": "^8.0.3", - "in-publish": "^2.0.0", - "jest": "^29.3.1", - "lint-staged": "^13.0.0", - "mkdirp": "^1.0.4", - "moxios": "^0.4.0", - "opener": "^1.4.1", - "prettier": "^2.2.1", - "regenerator-runtime": "^0.13.7", - "require-all": "^3.0.0", - "rimraf": "^4.2.0", - "rollup": "^2.34.0", - "rollup-plugin-babel": "^4.4.0", - "semantic-release": "^21.0.5", - "ts-jest": "^29.0.3", - "tslib": "^2.0.3", - "typescript": "^4.5.5" - }, - "bundlesize": [ - { - "path": "./dist/index.js", - "maxSize": "10Kb" - }, - { - "path": "./dist/index.es-modules.js", - "maxSize": "10Kb" - } - ], - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "prettier --write", - "eslint" - ], - "*.md": [ - "prettier --write" - ] - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "release": { - "branches": [ - "master", - "next" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "releaseRules": [ - { - "type": "build", - "scope": "deps", - "release": "patch" - } - ] - } - ], - "@semantic-release/release-notes-generator", - "@semantic-release/npm", - "@semantic-release/changelog", - "@semantic-release/github" - ] - }, - "config": { - "commitizen": { - "path": "./node_modules/cz-conventional-changelog" - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/LICENSE b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/LICENSE deleted file mode 100644 index 90139aa7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/README.md b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/README.md deleted file mode 100644 index 63e784fa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/README.md +++ /dev/null @@ -1,745 +0,0 @@ -# ajv-keywords - -Custom JSON-Schema keywords for [Ajv](https://github.com/epoberezkin/ajv) validator - -[![build](https://github.com/ajv-validator/ajv-keywords/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv-keywords/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/ajv-keywords.svg)](https://www.npmjs.com/package/ajv-keywords) -[![npm downloads](https://img.shields.io/npm/dm/ajv-keywords.svg)](https://www.npmjs.com/package/ajv-keywords) -[![coverage](https://coveralls.io/repos/github/ajv-validator/ajv-keywords/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv-keywords?branch=master) -[![gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) - -**Please note**: This readme file is for [ajv-keywords v5.0.0](https://github.com/ajv-validator/ajv-keywords/releases/tag/v5.0.0) that should be used with [ajv v8](https://github.com/ajv-validator/ajv). - -[ajv-keywords v3](https://github.com/ajv-validator/ajv-keywords/tree/v3) should be used with [ajv v6](https://github.com/ajv-validator/ajv/tree/v6). - -## Contents - -- [Install](#install) -- [Usage](#usage) -- [Keywords](#keywords) - - [Types](#types) - - [typeof](#typeof) - - [instanceof](#instanceof)\+ - - [Keywords for numbers](#keywords-for-numbers) - - [range and exclusiveRange](#range-and-exclusiverange) - - [Keywords for strings](#keywords-for-strings) - - [regexp](#regexp) - - [transform](#transform)\* - - [Keywords for arrays](#keywords-for-arrays) - - [uniqueItemProperties](#uniqueitemproperties)\+ - - [Keywords for objects](#keywords-for-objects) - - [allRequired](#allrequired) - - [anyRequired](#anyrequired) - - [oneRequired](#onerequired) - - [patternRequired](#patternrequired) - - [prohibited](#prohibited) - - [deepProperties](#deepproperties) - - [deepRequired](#deeprequired) - - [dynamicDefaults](#dynamicdefaults)\*\+ - - [Keywords for all types](#keywords-for-all-types) - - [select/selectCases/selectDefault](#selectselectcasesselectdefault) -- [Security contact](#security-contact) -- [Open-source software support](#open-source-software-support) -- [License](#license) - -\* - keywords that modify data -\+ - keywords that are not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - -## Install - -To install version 4 to use with [Ajv v7](https://github.com/ajv-validator/ajv): - -``` -npm install ajv-keywords -``` - -## Usage - -To add all available keywords: - -```javascript -const Ajv = require("ajv") -const ajv = new Ajv() -require("ajv-keywords")(ajv) - -ajv.validate({instanceof: "RegExp"}, /.*/) // true -ajv.validate({instanceof: "RegExp"}, ".*") // false -``` - -To add a single keyword: - -```javascript -require("ajv-keywords")(ajv, "instanceof") -``` - -To add multiple keywords: - -```javascript -require("ajv-keywords")(ajv, ["typeof", "instanceof"]) -``` - -To add a single keyword directly (to avoid adding unused code): - -```javascript -require("ajv-keywords/dist/keywords/select")(ajv, opts) -``` - -To add all keywords via Ajv options: - -```javascript -const ajv = new Ajv({keywords: require("ajv-keywords/dist/definitions")(opts)}) -``` - -To add one or several keywords via options: - -```javascript -const ajv = new Ajv({ - keywords: [ - require("ajv-keywords/dist/definitions/typeof")(), - require("ajv-keywords/dist/definitions/instanceof")(), - // select exports an array of 3 definitions - see "select" in docs - ...require("ajv-keywords/dist/definitions/select")(opts), - ], -}) -``` - -`opts` is an optional object with a property `defaultMeta` - URI of meta-schema to use for keywords that use subschemas (`select` and `deepProperties`). The default is `"http://json-schema.org/schema"`. - -## Keywords - -### Types - -#### `typeof` - -Based on JavaScript `typeof` operation. - -The value of the keyword should be a string (`"undefined"`, `"string"`, `"number"`, `"object"`, `"function"`, `"boolean"` or `"symbol"`) or an array of strings. - -To pass validation the result of `typeof` operation on the value should be equal to the string (or one of the strings in the array). - -```javascript -ajv.validate({typeof: "undefined"}, undefined) // true -ajv.validate({typeof: "undefined"}, null) // false -ajv.validate({typeof: ["undefined", "object"]}, null) // true -``` - -#### `instanceof` - -Based on JavaScript `instanceof` operation. - -The value of the keyword should be a string (`"Object"`, `"Array"`, `"Function"`, `"Number"`, `"String"`, `"Date"`, `"RegExp"` or `"Promise"`) or an array of strings. - -To pass validation the result of `data instanceof ...` operation on the value should be true: - -```javascript -ajv.validate({instanceof: "Array"}, []) // true -ajv.validate({instanceof: "Array"}, {}) // false -ajv.validate({instanceof: ["Array", "Function"]}, function () {}) // true -``` - -You can add your own constructor function to be recognised by this keyword: - -```javascript -class MyClass {} -const instanceofDef = require("ajv-keywords/dist/definitions/instanceof") -instanceofDef.CONSTRUCTORS.MyClass = MyClass -ajv.validate({instanceof: "MyClass"}, new MyClass()) // true -``` - -**Please note**: currently `instanceof` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). - -### Keywords for numbers - -#### `range` and `exclusiveRange` - -Syntax sugar for the combination of minimum and maximum keywords (or exclusiveMinimum and exclusiveMaximum), also fails schema compilation if there are no numbers in the range. - -The value of these keywords must be an array consisting of two numbers, the second must be greater or equal than the first one. - -If the validated value is not a number the validation passes, otherwise to pass validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. - -```javascript -const schema = {type: "number", range: [1, 3]} -ajv.validate(schema, 1) // true -ajv.validate(schema, 2) // true -ajv.validate(schema, 3) // true -ajv.validate(schema, 0.99) // false -ajv.validate(schema, 3.01) // false - -const schema = {type: "number", exclusiveRange: [1, 3]} -ajv.validate(schema, 1.01) // true -ajv.validate(schema, 2) // true -ajv.validate(schema, 2.99) // true -ajv.validate(schema, 1) // false -ajv.validate(schema, 3) // false -``` - -### Keywords for strings - -#### `regexp` - -This keyword allows to use regular expressions with flags in schemas, and also without `"u"` flag when needed (the standard `pattern` keyword does not support flags and implies the presence of `"u"` flag). - -This keyword applies only to strings. If the data is not a string, the validation succeeds. - -The value of this keyword can be either a string (the result of `regexp.toString()`) or an object with the properties `pattern` and `flags` (the same strings that should be passed to RegExp constructor). - -```javascript -const schema = { - type: "object", - properties: { - foo: {type: "string", regexp: "/foo/i"}, - bar: {type: "string", regexp: {pattern: "bar", flags: "i"}}, - }, -} - -const validData = { - foo: "Food", - bar: "Barmen", -} - -const invalidData = { - foo: "fog", - bar: "bad", -} -``` - -#### `transform` - -This keyword allows a string to be modified during validation. - -This keyword applies only to strings. If the data is not a string, the `transform` keyword is ignored. - -A standalone string cannot be modified, i.e. `data = 'a'; ajv.validate(schema, data);`, because strings are passed by value - -**Supported transformations:** - -- `trim`: remove whitespace from start and end -- `trimStart`/`trimLeft`: remove whitespace from start -- `trimEnd`/`trimRight`: remove whitespace from end -- `toLowerCase`: convert to lower case -- `toUpperCase`: convert to upper case -- `toEnumCase`: change string case to be equal to one of `enum` values in the schema - -Transformations are applied in the order they are listed. - -Note: `toEnumCase` requires that all allowed values are unique when case insensitive. - -**Example: multiple transformations** - -```javascript -require("ajv-keywords")(ajv, "transform") - -const schema = { - type: "array", - items: { - type: "string", - transform: ["trim", "toLowerCase"], - }, -} - -const data = [" MixCase "] -ajv.validate(schema, data) -console.log(data) // ['mixcase'] -``` - -**Example: `enumcase`** - -```javascript -require("ajv-keywords")(ajv, ["transform"]) - -const schema = { - type: "array", - items: { - type: "string", - transform: ["trim", "toEnumCase"], - enum: ["pH"], - }, -} - -const data = ["ph", " Ph", "PH", "pH "] -ajv.validate(schema, data) -console.log(data) // ['pH','pH','pH','pH'] -``` - -### Keywords for arrays - -#### `uniqueItemProperties` - -The keyword allows to check that some properties in array items are unique. - -This keyword applies only to arrays. If the data is not an array, the validation succeeds. - -The value of this keyword must be an array of strings - property names that should have unique values across all items. - -```javascript -const schema = { - type: "array", - uniqueItemProperties: ["id", "name"], -} - -const validData = [{id: 1}, {id: 2}, {id: 3}] - -const invalidData1 = [ - {id: 1}, - {id: 1}, // duplicate "id" - {id: 3}, -] - -const invalidData2 = [ - {id: 1, name: "taco"}, - {id: 2, name: "taco"}, // duplicate "name" - {id: 3, name: "salsa"}, -] -``` - -This keyword is contributed by [@blainesch](https://github.com/blainesch). - -**Please note**: currently `uniqueItemProperties` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). - -### Keywords for objects - -#### `allRequired` - -This keyword allows to require the presence of all properties used in `properties` keyword in the same schema object. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be boolean. - -If the value of the keyword is `false`, the validation succeeds. - -If the value of the keyword is `true`, the validation succeeds if the data contains all properties defined in `properties` keyword (in the same schema object). - -If the `properties` keyword is not present in the same schema object, schema compilation will throw exception. - -```javascript -const schema = { - type: "object", - properties: { - foo: {type: "number"}, - bar: {type: "number"}, - }, - allRequired: true, -} - -const validData = {foo: 1, bar: 2} -const alsoValidData = {foo: 1, bar: 2, baz: 3} - -const invalidDataList = [{}, {foo: 1}, {bar: 2}] -``` - -#### `anyRequired` - -This keyword allows to require the presence of any (at least one) property from the list. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be an array of strings, each string being a property name. For data object to be valid at least one of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - anyRequired: ["foo", "bar"], -} - -const validData = {foo: 1} -const alsoValidData = {foo: 1, bar: 2} - -const invalidDataList = [{}, {baz: 3}] -``` - -#### `oneRequired` - -This keyword allows to require the presence of only one property from the list. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be an array of strings, each string being a property name. For data object to be valid exactly one of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - oneRequired: ["foo", "bar"], -} - -const validData = {foo: 1} -const alsoValidData = {bar: 2, baz: 3} - -const invalidDataList = [{}, {baz: 3}, {foo: 1, bar: 2}] -``` - -#### `patternRequired` - -This keyword allows to require the presence of properties that match some pattern(s). - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword should be an array of strings, each string being a regular expression. For data object to be valid each regular expression in this array should match at least one property name in the data object. - -If the array contains multiple regular expressions, more than one expression can match the same property name. - -```javascript -const schema = { - type: "object", - patternRequired: ["f.*o", "b.*r"], -} - -const validData = {foo: 1, bar: 2} -const alsoValidData = {foobar: 3} - -const invalidDataList = [{}, {foo: 1}, {bar: 2}] -``` - -#### `prohibited` - -This keyword allows to prohibit that any of the properties in the list is present in the object. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword should be an array of strings, each string being a property name. For data object to be valid none of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - prohibited: ["foo", "bar"], -} - -const validData = {baz: 1} -const alsoValidData = {} - -const invalidDataList = [{foo: 1}, {bar: 2}, {foo: 1, bar: 2}] -``` - -**Please note**: `{prohibited: ['foo', 'bar']}` is equivalent to `{not: {anyRequired: ['foo', 'bar']}}` (i.e. it has the same validation result for any data). - -#### `deepProperties` - -This keyword allows to validate deep properties (identified by JSON pointers). - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value should be an object, where keys are JSON pointers to the data, starting from the current position in data, and the values are JSON schemas. For data object to be valid the value of each JSON pointer should be valid according to the corresponding schema. - -```javascript -const schema = { - type: "object", - deepProperties: { - "/users/1/role": {enum: ["admin"]}, - }, -} - -const validData = { - users: [ - {}, - { - id: 123, - role: "admin", - }, - ], -} - -const alsoValidData = { - users: { - 1: { - id: 123, - role: "admin", - }, - }, -} - -const invalidData = { - users: [ - {}, - { - id: 123, - role: "user", - }, - ], -} - -const alsoInvalidData = { - users: { - 1: { - id: 123, - role: "user", - }, - }, -} -``` - -#### `deepRequired` - -This keyword allows to check that some deep properties (identified by JSON pointers) are available. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value should be an array of JSON pointers to the data, starting from the current position in data. For data object to be valid each JSON pointer should be some existing part of the data. - -```javascript -const schema = { - type: "object", - deepRequired: ["/users/1/role"], -} - -const validData = { - users: [ - {}, - { - id: 123, - role: "admin", - }, - ], -} - -const invalidData = { - users: [ - {}, - { - id: 123, - }, - ], -} -``` - -See [json-schema-org/json-schema-spec#203](https://github.com/json-schema-org/json-schema-spec/issues/203#issue-197211916) for an example of the equivalent schema without `deepRequired` keyword. - -### Keywords for all types - -#### `select`/`selectCases`/`selectDefault` - -**Please note**: these keywords are deprecated. It is recommended to use OpenAPI [discriminator](https://ajv.js.org/json-schema.html#discriminator) keyword supported by Ajv v8 instead of `select`. - -These keywords allow to choose the schema to validate the data based on the value of some property in the validated data. - -These keywords must be present in the same schema object (`selectDefault` is optional). - -The value of `select` keyword should be a [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference) that points to any primitive JSON type (string, number, boolean or null) in the data that is validated. You can also use a constant of primitive type as the value of this keyword (e.g., for debugging purposes). - -The value of `selectCases` keyword must be an object where each property name is a possible string representation of the value of `select` keyword and each property value is a corresponding schema (from draft-06 it can be boolean) that must be used to validate the data. - -The value of `selectDefault` keyword is a schema (also can be boolean) that must be used to validate the data in case `selectCases` has no key equal to the stringified value of `select` keyword. - -The validation succeeds in one of the following cases: - -- the validation of data using selected schema succeeds, -- none of the schemas is selected for validation, -- the value of select is undefined (no property in the data that the data reference points to). - -If `select` value (in data) is not a primitive type the validation fails. - -This keyword correctly tracks evaluated properties and items to work with `unevaluatedProperties` and `unevaluatedItems` keywords - only properties and items from the subschema that was used (one of `selectCases` subschemas or `selectDefault` subschema) are marked as evaluated. - -**Please note**: these keywords require Ajv `$data` option to support [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference). - -```javascript -require("ajv-keywords")(ajv, "select") - -const schema = { - type: "object", - required: ["kind"], - properties: { - kind: {type: "string"}, - }, - select: {$data: "0/kind"}, - selectCases: { - foo: { - required: ["foo"], - properties: { - kind: {}, - foo: {type: "string"}, - }, - additionalProperties: false, - }, - bar: { - required: ["bar"], - properties: { - kind: {}, - bar: {type: "number"}, - }, - additionalProperties: false, - }, - }, - selectDefault: { - propertyNames: { - not: {enum: ["foo", "bar"]}, - }, - }, -} - -const validDataList = [ - {kind: "foo", foo: "any"}, - {kind: "bar", bar: 1}, - {kind: "anything_else", not_bar_or_foo: "any value"}, -] - -const invalidDataList = [ - {kind: "foo"}, // no property foo - {kind: "bar"}, // no property bar - {kind: "foo", foo: "any", another: "any value"}, // additional property - {kind: "bar", bar: 1, another: "any value"}, // additional property - {kind: "anything_else", foo: "any"}, // property foo not allowed - {kind: "anything_else", bar: 1}, // property bar not allowed -] -``` - -#### `dynamicDefaults` - -This keyword allows to assign dynamic defaults to properties, such as timestamps, unique IDs etc. - -This keyword only works if `useDefaults` options is used and not inside `anyOf` keywords etc., in the same way as [default keyword treated by Ajv](https://github.com/epoberezkin/ajv#assigning-defaults). - -The keyword should be added on the object level. Its value should be an object with each property corresponding to a property name, in the same way as in standard `properties` keyword. The value of each property can be: - -- an identifier of dynamic default function (a string) -- an object with properties `func` (an identifier) and `args` (an object with parameters that will be passed to this function during schema compilation - see examples). - -The properties used in `dynamicDefaults` should not be added to `required` keyword in the same schema (or validation will fail), because unlike `default` this keyword is processed after validation. - -There are several predefined dynamic default functions: - -- `"timestamp"` - current timestamp in milliseconds -- `"datetime"` - current date and time as string (ISO, valid according to `date-time` format) -- `"date"` - current date as string (ISO, valid according to `date` format) -- `"time"` - current time as string (ISO, valid according to `time` format) -- `"random"` - pseudo-random number in [0, 1) interval -- `"randomint"` - pseudo-random integer number. If string is used as a property value, the function will randomly return 0 or 1. If object `{ func: 'randomint', args: { max: N } }` is used then the default will be an integer number in [0, N) interval. -- `"seq"` - sequential integer number starting from 0. If string is used as a property value, the default sequence will be used. If object `{ func: 'seq', args: { name: 'foo'} }` is used then the sequence with name `"foo"` will be used. Sequences are global, even if different ajv instances are used. - -```javascript -const schema = { - type: "object", - dynamicDefaults: { - ts: "datetime", - r: {func: "randomint", args: {max: 100}}, - id: {func: "seq", args: {name: "id"}}, - }, - properties: { - ts: { - type: "string", - format: "date-time", - }, - r: { - type: "integer", - minimum: 0, - exclusiveMaximum: 100, - }, - id: { - type: "integer", - minimum: 0, - }, - }, -} - -const data = {} -ajv.validate(data) // true -data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } - -const data1 = {} -ajv.validate(data1) // true -data1 // { ts: '2016-12-01T22:07:29.832Z', r: 68, id: 1 } - -ajv.validate(data1) // true -data1 // didn't change, as all properties were defined -``` - -When using the `useDefaults` option value `"empty"`, properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. Use `allOf` [compound keyword](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) to execute `dynamicDefaults` before validation. - -```javascript -const schema = { - type: "object", - allOf: [ - { - dynamicDefaults: { - ts: "datetime", - r: {func: "randomint", args: {min: 5, max: 100}}, - id: {func: "seq", args: {name: "id"}}, - }, - }, - { - properties: { - ts: { - type: "string", - }, - r: { - type: "number", - minimum: 5, - exclusiveMaximum: 100, - }, - id: { - type: "integer", - minimum: 0, - }, - }, - }, - ], -} - -const data = {ts: "", r: null} -ajv.validate(data) // true -data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } -``` - -You can add your own dynamic default function to be recognised by this keyword: - -```javascript -const uuid = require("uuid") - -const def = require("ajv-keywords/dist/definitions/dynamicDefaults") -def.DEFAULTS.uuid = () => uuid.v4 - -const schema = { - dynamicDefaults: {id: "uuid"}, - properties: {id: {type: "string", format: "uuid"}}, -} - -const data = {} -ajv.validate(schema, data) // true -data // { id: 'a1183fbe-697b-4030-9bcc-cfeb282a9150' }; - -const data1 = {} -ajv.validate(schema, data1) // true -data1 // { id: '5b008de7-1669-467a-a5c6-70fa244d7209' } -``` - -You also can define dynamic default that accept parameters, e.g. version of uuid: - -```javascript -const uuid = require("uuid") - -function getUuid(args) { - const version = "v" + ((arvs && args.v) || "4") - return uuid[version] -} - -const def = require("ajv-keywords/dist/definitions/dynamicDefaults") -def.DEFAULTS.uuid = getUuid - -const schema = { - dynamicDefaults: { - id1: "uuid", // v4 - id2: {func: "uuid", v: 4}, // v4 - id3: {func: "uuid", v: 1}, // v1 - }, -} -``` - -**Please note**: dynamic default functions are differentiated by the number of parameters they have (`function.length`). Functions that do not expect default must have one non-optional argument so that `function.length` > 0. - -`dynamicDefaults` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md). - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -Please do NOT report security vulnerabilities via GitHub issues. - -## Open-source software support - -Ajv-keywords is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv-keywords?utm_source=npm-ajv-keywords&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - -## License - -[MIT](https://github.com/epoberezkin/ajv-keywords/blob/master/LICENSE) diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts deleted file mode 100644 index f1066781..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare type RangeKwd = "range" | "exclusiveRange"; -export default function getRangeDef(keyword: RangeKwd): GetDefinition; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js deleted file mode 100644 index 21d4aa46..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getRangeDef(keyword) { - return () => ({ - keyword, - type: "number", - schemaType: "array", - macro: function ([min, max]) { - validateRangeSchema(min, max); - return keyword === "range" - ? { minimum: min, maximum: max } - : { exclusiveMinimum: min, exclusiveMaximum: max }; - }, - metaSchema: { - type: "array", - minItems: 2, - maxItems: 2, - items: { type: "number" }, - }, - }); - function validateRangeSchema(min, max) { - if (min > max || (keyword === "exclusiveRange" && min === max)) { - throw new Error("There are no numbers in range"); - } - } -} -exports.default = getRangeDef; -//# sourceMappingURL=_range.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map deleted file mode 100644 index 132c83d5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_range.js","sourceRoot":"","sources":["../../src/definitions/_range.ts"],"names":[],"mappings":";;AAKA,SAAwB,WAAW,CAAC,OAAiB;IACnD,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAAmB;YAC3C,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAC7B,OAAO,OAAO,KAAK,OAAO;gBACxB,CAAC,CAAC,EAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC;gBAC9B,CAAC,CAAC,EAAC,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAC,CAAA;QACpD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;IAEF,SAAS,mBAAmB,CAAC,GAAW,EAAE,GAAW;QACnD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;SACjD;IACH,CAAC;AACH,CAAC;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts deleted file mode 100644 index cac6e5eb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare type RequiredKwd = "anyRequired" | "oneRequired"; -export default function getRequiredDef(keyword: RequiredKwd): GetDefinition; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js deleted file mode 100644 index 27dd2ffb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getRequiredDef(keyword) { - return () => ({ - keyword, - type: "object", - schemaType: "array", - macro(schema) { - if (schema.length === 0) - return true; - if (schema.length === 1) - return { required: schema }; - const comb = keyword === "anyRequired" ? "anyOf" : "oneOf"; - return { [comb]: schema.map((p) => ({ required: [p] })) }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }); -} -exports.default = getRequiredDef; -//# sourceMappingURL=_required.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map deleted file mode 100644 index 94211e7a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_required.js","sourceRoot":"","sources":["../../src/definitions/_required.ts"],"names":[],"mappings":";;AAKA,SAAwB,cAAc,CACpC,OAAoB;IAEpB,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,CAAC,MAAgB;YACpB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAA;YAClD,MAAM,IAAI,GAAG,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;YAC1D,OAAO,EAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,CAAA;QACvD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;AACJ,CAAC;AAlBD,iCAkBC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts deleted file mode 100644 index 7c36a04c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { KeywordDefinition } from "ajv"; -export interface DefinitionOptions { - defaultMeta?: string | boolean; -} -export declare type GetDefinition = (opts?: DefinitionOptions) => T; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js deleted file mode 100644 index 6e5dd982..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=_types.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map deleted file mode 100644 index 31f2facc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../src/definitions/_types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts deleted file mode 100644 index b0d91dd2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { DefinitionOptions } from "./_types"; -import type { SchemaObject, KeywordCxt, Name } from "ajv"; -export declare function metaSchemaRef({ defaultMeta }?: DefinitionOptions): SchemaObject; -export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string, flags?: string): Name; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js deleted file mode 100644 index f8d1045c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.usePattern = exports.metaSchemaRef = void 0; -const codegen_1 = require("ajv/dist/compile/codegen"); -const META_SCHEMA_ID = "http://json-schema.org/schema"; -function metaSchemaRef({ defaultMeta } = {}) { - return defaultMeta === false ? {} : { $ref: defaultMeta || META_SCHEMA_ID }; -} -exports.metaSchemaRef = metaSchemaRef; -function usePattern({ gen, it: { opts } }, pattern, flags = opts.unicodeRegExp ? "u" : "") { - const rx = new RegExp(pattern, flags); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._) `new RegExp(${pattern}, ${flags})`, - }); -} -exports.usePattern = usePattern; -//# sourceMappingURL=_util.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map deleted file mode 100644 index c9e310bd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_util.js","sourceRoot":"","sources":["../../src/definitions/_util.ts"],"names":[],"mappings":";;;AAEA,sDAA0C;AAE1C,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAEtD,SAAgB,aAAa,CAAC,EAAC,WAAW,KAAuB,EAAE;IACjE,OAAO,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,WAAW,IAAI,cAAc,EAAC,CAAA;AAC3E,CAAC;AAFD,sCAEC;AAED,SAAgB,UAAU,CACxB,EAAC,GAAG,EAAE,EAAE,EAAE,EAAC,IAAI,EAAC,EAAa,EAC7B,OAAe,EACf,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;IAErC,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrC,OAAO,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE;QAC/B,GAAG,EAAE,EAAE,CAAC,QAAQ,EAAE;QAClB,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,IAAA,WAAC,EAAA,cAAc,OAAO,KAAK,KAAK,GAAG;KAC1C,CAAC,CAAA;AACJ,CAAC;AAXD,gCAWC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts deleted file mode 100644 index ac709be9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -export default function getDef(): MacroKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js deleted file mode 100644 index c2a6803f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getDef() { - return { - keyword: "allRequired", - type: "object", - schemaType: "boolean", - macro(schema, parentSchema) { - if (!schema) - return true; - const required = Object.keys(parentSchema.properties); - if (required.length === 0) - return true; - return { required }; - }, - dependencies: ["properties"], - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=allRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map deleted file mode 100644 index ff7006b3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allRequired.js","sourceRoot":"","sources":["../../src/definitions/allRequired.ts"],"names":[],"mappings":";;AAEA,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,SAAS;QACrB,KAAK,CAAC,MAAe,EAAE,YAAY;YACjC,IAAI,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAA;YACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YACrD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACtC,OAAO,EAAC,QAAQ,EAAC,CAAA;QACnB,CAAC;QACD,YAAY,EAAE,CAAC,YAAY,CAAC;KAC7B,CAAA;AACH,CAAC;AAbD,yBAaC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js deleted file mode 100644 index 0870ce39..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _required_1 = __importDefault(require("./_required")); -const getDef = (0, _required_1.default)("anyRequired"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=anyRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map deleted file mode 100644 index af1a67bf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyRequired.js","sourceRoot":"","sources":["../../src/definitions/anyRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts deleted file mode 100644 index ed185656..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { DefinitionOptions } from "./_types"; -export default function getDef(opts?: DefinitionOptions): MacroKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js deleted file mode 100644 index a567d7b9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _util_1 = require("./_util"); -function getDef(opts) { - return { - keyword: "deepProperties", - type: "object", - schemaType: "object", - macro: function (schema) { - const allOf = []; - for (const pointer in schema) - allOf.push(getSchema(pointer, schema[pointer])); - return { allOf }; - }, - metaSchema: { - type: "object", - propertyNames: { type: "string", format: "json-pointer" }, - additionalProperties: (0, _util_1.metaSchemaRef)(opts), - }, - }; -} -exports.default = getDef; -function getSchema(jsonPointer, schema) { - const segments = jsonPointer.split("/"); - const rootSchema = {}; - let pointerSchema = rootSchema; - for (let i = 1; i < segments.length; i++) { - let segment = segments[i]; - const isLast = i === segments.length - 1; - segment = unescapeJsonPointer(segment); - const properties = (pointerSchema.properties = {}); - let items; - if (/[0-9]+/.test(segment)) { - let count = +segment; - items = pointerSchema.items = []; - pointerSchema.type = ["object", "array"]; - while (count--) - items.push({}); - } - else { - pointerSchema.type = "object"; - } - pointerSchema = isLast ? schema : {}; - properties[segment] = pointerSchema; - if (items) - items.push(pointerSchema); - } - return rootSchema; -} -function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); -} -module.exports = getDef; -//# sourceMappingURL=deepProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map deleted file mode 100644 index 782bd04a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepProperties.js","sourceRoot":"","sources":["../../src/definitions/deepProperties.ts"],"names":[],"mappings":";;AAEA,mCAAqC;AAErC,SAAwB,MAAM,CAAC,IAAwB;IACrD,OAAO;QACL,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAU,MAAoC;YACnD,MAAM,KAAK,GAAG,EAAE,CAAA;YAChB,KAAK,MAAM,OAAO,IAAI,MAAM;gBAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;YAC7E,OAAO,EAAC,KAAK,EAAC,CAAA;QAChB,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC;YACvD,oBAAoB,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC;SAC1C;KACF,CAAA;AACH,CAAC;AAhBD,yBAgBC;AAED,SAAS,SAAS,CAAC,WAAmB,EAAE,MAAoB;IAC1D,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AC,CAAA;AACpD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js deleted file mode 100644 index 2aa8bbfc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -function getDef() { - return { - keyword: "deepRequired", - type: "object", - schemaType: "array", - code(ctx) { - const { schema, data } = ctx; - const props = schema.map((jp) => (0, codegen_1._) `(${getData(jp)}) === undefined`); - ctx.fail((0, codegen_1.or)(...props)); - function getData(jsonPointer) { - if (jsonPointer === "") - throw new Error("empty JSON pointer not allowed"); - const segments = jsonPointer.split("/"); - let x = data; - const xs = segments.map((s, i) => i ? (x = (0, codegen_1._) `${x}${(0, codegen_1.getProperty)(unescapeJPSegment(s))}`) : x); - return (0, codegen_1.and)(...xs); - } - }, - metaSchema: { - type: "array", - items: { type: "string", format: "json-pointer" }, - }, - }; -} -exports.default = getDef; -function unescapeJPSegment(s) { - return s.replace(/~1/g, "/").replace(/~0/g, "~"); -} -module.exports = getDef; -//# sourceMappingURL=deepRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map deleted file mode 100644 index a632916c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepRequired.js","sourceRoot":"","sources":["../../src/definitions/deepRequired.ts"],"names":[],"mappings":";;AACA,sDAAsE;AAEtE,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,IAAI,CAAC,GAAe;YAClB,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAA;YAC1B,MAAM,KAAK,GAAI,MAAmB,CAAC,GAAG,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,OAAO,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAA;YACzF,GAAG,CAAC,IAAI,CAAC,IAAA,YAAE,EAAC,GAAG,KAAK,CAAC,CAAC,CAAA;YAEtB,SAAS,OAAO,CAAC,WAAmB;gBAClC,IAAI,WAAW,KAAK,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;gBACzE,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;gBACvC,IAAI,CAAC,GAAS,IAAI,CAAA;gBAClB,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAC/B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,CAAC,GAAG,IAAA,qBAAW,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1D,CAAA;gBACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;YACnB,CAAC;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC;SAChD;KACF,CAAA;AACH,CAAC;AAzBD,yBAyBC;AAED,SAAS,iBAAiB,CAAC,CAAS;IAClC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts deleted file mode 100644 index 702fb0ab..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -export declare type DynamicDefaultFunc = (args?: Record) => () => any; -declare const DEFAULTS: Record; -declare const getDef: (() => FuncKeywordDefinition) & { - DEFAULTS: typeof DEFAULTS; -}; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js deleted file mode 100644 index eada65ef..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sequences = {}; -const DEFAULTS = { - timestamp: () => () => Date.now(), - datetime: () => () => new Date().toISOString(), - date: () => () => new Date().toISOString().slice(0, 10), - time: () => () => new Date().toISOString().slice(11), - random: () => () => Math.random(), - randomint: (args) => { - var _a; - const max = (_a = args === null || args === void 0 ? void 0 : args.max) !== null && _a !== void 0 ? _a : 2; - return () => Math.floor(Math.random() * max); - }, - seq: (args) => { - var _a; - const name = (_a = args === null || args === void 0 ? void 0 : args.name) !== null && _a !== void 0 ? _a : ""; - sequences[name] || (sequences[name] = 0); - return () => sequences[name]++; - }, -}; -const getDef = Object.assign(_getDef, { DEFAULTS }); -function _getDef() { - return { - keyword: "dynamicDefaults", - type: "object", - schemaType: ["string", "object"], - modifying: true, - valid: true, - compile(schema, _parentSchema, it) { - if (!it.opts.useDefaults || it.compositeRule) - return () => true; - const fs = {}; - for (const key in schema) - fs[key] = getDefault(schema[key]); - const empty = it.opts.useDefaults === "empty"; - return (data) => { - for (const prop in schema) { - if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) { - data[prop] = fs[prop](); - } - } - return true; - }; - }, - metaSchema: { - type: "object", - additionalProperties: { - anyOf: [ - { type: "string" }, - { - type: "object", - additionalProperties: false, - required: ["func", "args"], - properties: { - func: { type: "string" }, - args: { type: "object" }, - }, - }, - ], - }, - }, - }; -} -function getDefault(d) { - return typeof d == "object" ? getObjDefault(d) : getStrDefault(d); -} -function getObjDefault({ func, args }) { - const def = DEFAULTS[func]; - assertDefined(func, def); - return def(args); -} -function getStrDefault(d = "") { - const def = DEFAULTS[d]; - assertDefined(d, def); - return def(); -} -function assertDefined(name, def) { - if (!def) - throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=dynamicDefaults.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map deleted file mode 100644 index 95e8170e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map +++ /dev/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,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;wBAC1B,UAAU,EAAE;4BACV,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;4BACtB,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;yBACvB;qBACF;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAA6C;IAC/D,OAAO,OAAO,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;AACnE,CAAC;AAED,SAAS,aAAa,CAAC,EAAC,IAAI,EAAE,IAAI,EAAwB;IACxD,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC1B,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IACxB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAA;AAClB,CAAC;AAED,SAAS,aAAa,CAAC,CAAC,GAAG,EAAE;IAC3B,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;IACvB,aAAa,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACrB,OAAO,GAAG,EAAE,CAAA;AACd,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,GAAwB;IAC3D,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,IAAI,EAAE,CAAC,CAAA;AACxF,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js deleted file mode 100644 index cee3febb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _range_1 = __importDefault(require("./_range")); -const getDef = (0, _range_1.default)("exclusiveRange"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=exclusiveRange.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map deleted file mode 100644 index aa43025a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exclusiveRange.js","sourceRoot":"","sources":["../../src/definitions/exclusiveRange.ts"],"names":[],"mappings":";;;;;AAEA,sDAAkC;AAElC,MAAM,MAAM,GAA0C,IAAA,gBAAW,EAAC,gBAAgB,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts deleted file mode 100644 index 326d6847..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Vocabulary, ErrorNoParams } from "ajv"; -import type { DefinitionOptions } from "./_types"; -import { PatternRequiredError } from "./patternRequired"; -import { SelectError } from "./select"; -export default function ajvKeywords(opts?: DefinitionOptions): Vocabulary; -export declare type AjvKeywordsError = PatternRequiredError | SelectError | ErrorNoParams<"range" | "exclusiveRange" | "anyRequired" | "oneRequired" | "allRequired" | "deepProperties" | "deepRequired" | "dynamicDefaults" | "instanceof" | "prohibited" | "regexp" | "transform" | "uniqueItemProperties">; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js deleted file mode 100644 index 94ae44e8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("./typeof")); -const instanceof_1 = __importDefault(require("./instanceof")); -const range_1 = __importDefault(require("./range")); -const exclusiveRange_1 = __importDefault(require("./exclusiveRange")); -const regexp_1 = __importDefault(require("./regexp")); -const transform_1 = __importDefault(require("./transform")); -const uniqueItemProperties_1 = __importDefault(require("./uniqueItemProperties")); -const allRequired_1 = __importDefault(require("./allRequired")); -const anyRequired_1 = __importDefault(require("./anyRequired")); -const oneRequired_1 = __importDefault(require("./oneRequired")); -const patternRequired_1 = __importDefault(require("./patternRequired")); -const prohibited_1 = __importDefault(require("./prohibited")); -const deepProperties_1 = __importDefault(require("./deepProperties")); -const deepRequired_1 = __importDefault(require("./deepRequired")); -const dynamicDefaults_1 = __importDefault(require("./dynamicDefaults")); -const select_1 = __importDefault(require("./select")); -const definitions = [ - typeof_1.default, - instanceof_1.default, - range_1.default, - exclusiveRange_1.default, - regexp_1.default, - transform_1.default, - uniqueItemProperties_1.default, - allRequired_1.default, - anyRequired_1.default, - oneRequired_1.default, - patternRequired_1.default, - prohibited_1.default, - deepProperties_1.default, - deepRequired_1.default, - dynamicDefaults_1.default, -]; -function ajvKeywords(opts) { - return definitions.map((d) => d(opts)).concat((0, select_1.default)(opts)); -} -exports.default = ajvKeywords; -module.exports = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map deleted file mode 100644 index 07d35302..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;AAEA,sDAAgC;AAChC,8DAAwC;AACxC,oDAA2B;AAC3B,sEAA6C;AAC7C,sDAA6B;AAC7B,4DAAmC;AACnC,kFAAyD;AACzD,gEAAuC;AACvC,gEAAuC;AACvC,gEAAuC;AACvC,wEAAuE;AACvE,8DAAqC;AACrC,sEAA6C;AAC7C,kEAAyC;AACzC,wEAA+C;AAC/C,sDAA+C;AAE/C,MAAM,WAAW,GAAuC;IACtD,gBAAS;IACT,oBAAa;IACb,eAAK;IACL,wBAAc;IACd,gBAAM;IACN,mBAAS;IACT,8BAAoB;IACpB,qBAAW;IACX,qBAAW;IACX,qBAAW;IACX,yBAAe;IACf,oBAAU;IACV,wBAAc;IACd,sBAAY;IACZ,yBAAe;CAChB,CAAA;AAED,SAAwB,WAAW,CAAC,IAAwB;IAC1D,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,8BAEC;AAqBD,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts deleted file mode 100644 index 05726f1f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -declare type Constructor = new (...args: any[]) => any; -declare const CONSTRUCTORS: Record; -declare const getDef: (() => FuncKeywordDefinition) & { - CONSTRUCTORS: typeof CONSTRUCTORS; -}; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js deleted file mode 100644 index 034fb641..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const CONSTRUCTORS = { - Object, - Array, - Function, - Number, - String, - Date, - RegExp, -}; -/* istanbul ignore else */ -if (typeof Buffer != "undefined") - CONSTRUCTORS.Buffer = Buffer; -/* istanbul ignore else */ -if (typeof Promise != "undefined") - CONSTRUCTORS.Promise = Promise; -const getDef = Object.assign(_getDef, { CONSTRUCTORS }); -function _getDef() { - return { - keyword: "instanceof", - schemaType: ["string", "array"], - compile(schema) { - if (typeof schema == "string") { - const C = getConstructor(schema); - return (data) => data instanceof C; - } - if (Array.isArray(schema)) { - const constructors = schema.map(getConstructor); - return (data) => { - for (const C of constructors) { - if (data instanceof C) - return true; - } - return false; - }; - } - /* istanbul ignore next */ - throw new Error("ajv implementation error"); - }, - metaSchema: { - anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }], - }, - }; -} -function getConstructor(c) { - const C = CONSTRUCTORS[c]; - if (C) - return C; - throw new Error(`invalid "instanceof" keyword value ${c}`); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=instanceof.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map deleted file mode 100644 index d401cd77..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instanceof.js","sourceRoot":"","sources":["../../src/definitions/instanceof.ts"],"names":[],"mappings":";;AAIA,MAAM,YAAY,GAA4C;IAC5D,MAAM;IACN,KAAK;IACL,QAAQ;IACR,MAAM;IACN,MAAM;IACN,IAAI;IACJ,MAAM;CACP,CAAA;AAED,0BAA0B;AAC1B,IAAI,OAAO,MAAM,IAAI,WAAW;IAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAA;AAE9D,0BAA0B;AAC1B,IAAI,OAAO,OAAO,IAAI,WAAW;IAAE,YAAY,CAAC,OAAO,GAAG,OAAO,CAAA;AAEjE,MAAM,MAAM,GAER,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,YAAY,EAAC,CAAC,CAAA;AAE1C,SAAS,OAAO;IACd,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/B,OAAO,CAAC,MAAyB;YAC/B,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;gBAC7B,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;gBAChC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,CAAA;aACnC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACzB,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;gBAC/C,OAAO,CAAC,IAAI,EAAE,EAAE;oBACd,KAAK,MAAM,CAAC,IAAI,YAAY,EAAE;wBAC5B,IAAI,IAAI,YAAY,CAAC;4BAAE,OAAO,IAAI,CAAA;qBACnC;oBACD,OAAO,KAAK,CAAA;gBACd,CAAC,CAAA;aACF;YAED,0BAA0B;YAC1B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC7C,CAAC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAC,CAAC;SACpE;KACF,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,CAAS;IAC/B,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;IACzB,IAAI,CAAC;QAAE,OAAO,CAAC,CAAA;IACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,EAAE,CAAC,CAAA;AAC5D,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js deleted file mode 100644 index ae46c30c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _required_1 = __importDefault(require("./_required")); -const getDef = (0, _required_1.default)("oneRequired"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=oneRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map deleted file mode 100644 index 134a1d93..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneRequired.js","sourceRoot":"","sources":["../../src/definitions/oneRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts deleted file mode 100644 index 95b8eb52..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "ajv"; -export declare type PatternRequiredError = ErrorObject<"patternRequired", { - missingPattern: string; -}>; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js deleted file mode 100644 index ca24e642..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const error = { - message: ({ params: { missingPattern } }) => (0, codegen_1.str) `should have property matching pattern '${missingPattern}'`, - params: ({ params: { missingPattern } }) => (0, codegen_1._) `{missingPattern: ${missingPattern}}`, -}; -function getDef() { - return { - keyword: "patternRequired", - type: "object", - schemaType: "array", - error, - code(cxt) { - const { gen, schema, data } = cxt; - if (schema.length === 0) - return; - const valid = gen.let("valid", true); - for (const pat of schema) - validateProperties(pat); - function validateProperties(pattern) { - const matched = gen.let("matched", false); - gen.forIn("key", data, (key) => { - gen.assign(matched, (0, codegen_1._) `${(0, _util_1.usePattern)(cxt, pattern)}.test(${key})`); - gen.if(matched, () => gen.break()); - }); - cxt.setParams({ missingPattern: pattern }); - gen.assign(valid, (0, codegen_1.and)(valid, matched)); - cxt.pass(valid); - } - }, - metaSchema: { - type: "array", - items: { type: "string", format: "regex" }, - uniqueItems: true, - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=patternRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map deleted file mode 100644 index 17b095f8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternRequired.js","sourceRoot":"","sources":["../../src/definitions/patternRequired.ts"],"names":[],"mappings":";;AAC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AAc,EAAE,OAAO,EAAC,CAAC,CAAA;gBACxC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,aAAG,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;gBACtC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAC;YACxC,WAAW,EAAE,IAAI;SAClB;KACF,CAAA;AACH,CAAC;AA/BD,yBA+BC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts deleted file mode 100644 index ac709be9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -export default function getDef(): MacroKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js deleted file mode 100644 index 9a497460..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getDef() { - return { - keyword: "prohibited", - type: "object", - schemaType: "array", - macro: function (schema) { - if (schema.length === 0) - return true; - if (schema.length === 1) - return { not: { required: schema } }; - return { not: { anyOf: schema.map((p) => ({ required: [p] })) } }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=prohibited.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map deleted file mode 100644 index 1a2deec1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prohibited.js","sourceRoot":"","sources":["../../src/definitions/prohibited.ts"],"names":[],"mappings":";;AAEA,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,EAAE,UAAU,MAAgB;YAC/B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAC,GAAG,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAAC,CAAA;YACzD,OAAO,EAAC,GAAG,EAAE,EAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,EAAC,CAAA;QAC7D,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAA;AACH,CAAC;AAfD,yBAeC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js deleted file mode 100644 index aa75c51b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _range_1 = __importDefault(require("./_range")); -const getDef = (0, _range_1.default)("range"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map deleted file mode 100644 index 7d9dd587..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/definitions/range.ts"],"names":[],"mappings":";;;;;AAEA,sDAAkC;AAElC,MAAM,MAAM,GAA0C,IAAA,gBAAW,EAAC,OAAO,CAAC,CAAA;AAE1E,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js deleted file mode 100644 index b3c5a7cc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const regexpMetaSchema = { - type: "object", - properties: { - pattern: { type: "string" }, - flags: { type: "string", nullable: true }, - }, - required: ["pattern"], - additionalProperties: false, -}; -const metaRegexp = /^\/(.*)\/([gimuy]*)$/; -function getDef() { - return { - keyword: "regexp", - type: "string", - schemaType: ["string", "object"], - code(cxt) { - const { data, schema } = cxt; - const regx = getRegExp(schema); - cxt.pass((0, codegen_1._) `${regx}.test(${data})`); - function getRegExp(sch) { - if (typeof sch == "object") - return (0, _util_1.usePattern)(cxt, sch.pattern, sch.flags); - const rx = metaRegexp.exec(sch); - if (rx) - return (0, _util_1.usePattern)(cxt, rx[1], rx[2]); - throw new Error("cannot parse string into RegExp"); - } - }, - metaSchema: { - anyOf: [{ type: "string" }, regexpMetaSchema], - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=regexp.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map deleted file mode 100644 index d389e474..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexp.js","sourceRoot":"","sources":["../../src/definitions/regexp.ts"],"names":[],"mappings":";;AACA,s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AC;SAC5C;KACF,CAAA;AACH,CAAC;AArBD,yBAqBC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts deleted file mode 100644 index d12fc65d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { KeywordDefinition, ErrorObject } from "ajv"; -import type { DefinitionOptions } from "./_types"; -export declare type SelectError = ErrorObject<"select", { - failingCase?: string; - failingDefault?: true; -}>; -export default function getDef(opts?: DefinitionOptions): KeywordDefinition[]; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js deleted file mode 100644 index bce677bf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const error = { - message: ({ params: { schemaProp } }) => schemaProp - ? (0, codegen_1.str) `should match case "${schemaProp}" schema` - : (0, codegen_1.str) `should match default case schema`, - params: ({ params: { schemaProp } }) => schemaProp ? (0, codegen_1._) `{failingCase: ${schemaProp}}` : (0, codegen_1._) `{failingDefault: true}`, -}; -function getDef(opts) { - const metaSchema = (0, _util_1.metaSchemaRef)(opts); - return [ - { - keyword: "select", - schemaType: ["string", "number", "boolean", "null"], - $data: true, - error, - dependencies: ["selectCases"], - code(cxt) { - const { gen, schemaCode, parentSchema } = cxt; - cxt.block$data(codegen_1.nil, () => { - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - const value = gen.const("value", (0, codegen_1._) `${schemaCode} === null ? "null" : ${schemaCode}`); - gen.if(false); // optimizer should remove it from generated code - for (const schemaProp in parentSchema.selectCases) { - cxt.setParams({ schemaProp }); - gen.elseIf((0, codegen_1._) `"" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans - const schCxt = cxt.subschema({ keyword: "selectCases", schemaProp }, schValid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - gen.assign(valid, schValid); - } - gen.else(); - if (parentSchema.selectDefault !== undefined) { - cxt.setParams({ schemaProp: undefined }); - const schCxt = cxt.subschema({ keyword: "selectDefault" }, schValid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - gen.assign(valid, schValid); - } - gen.endIf(); - cxt.pass(valid); - }); - }, - }, - { - keyword: "selectCases", - dependencies: ["select"], - metaSchema: { - type: "object", - additionalProperties: metaSchema, - }, - }, - { - keyword: "selectDefault", - dependencies: ["select", "selectCases"], - metaSchema, - }, - ]; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=select.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map deleted file mode 100644 index 1e5a0355..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/definitions/select.ts"],"names":[],"mappings":";;AACA,sDAA0D;AAE1D,mCAAqC;AAIrC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAC,EAAC,EAAE,EAAE,CAClC,UAAU;QACR,CAAC,CAAC,IAAA,aAAG,EAAA,sBAAsB,UAAU,UAAU;QAC/C,CAAC,CAAC,IAAA,aAAG,EAAA,kCAAkC;IAC3C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAC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AC,EAAE,QAAQ,CAAC,CAAA;wBAC5E,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;wBAChC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;qBAC5B;oBACD,GAAG,CAAC,IAAI,EAAE,CAAA;oBACV,IAAI,YAAY,CAAC,aAAa,KAAK,SAAS,EAAE;wBAC5C,GAAG,CAAC,SAAS,CAAC,EAAC,UAAU,EAAE,SAAS,EAAC,CAAC,CAAA;wBACtC,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,eAAe,EAAC,EAAE,QAAQ,CAAC,CAAA;wBAClE,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;wBAChC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;qBAC5B;oBACD,GAAG,CAAC,KAAK,EAAE,CAAA;oBACX,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACjB,CAAC,CAAC,CAAA;YACJ,CAAC;SACF;QACD;YACE,OAAO,EAAE,aAAa;YACtB,YAAY,EAAE,CAAC,QAAQ,CAAC;YACxB,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,UAAU;aACjC;SACF;QACD;YACE,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;YACvC,UAAU;SACX;KACF,CAAA;AACH,CAAC;AAlDD,yBAkDC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts deleted file mode 100644 index 551c46ea..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -declare type TransformName = "trimStart" | "trimEnd" | "trimLeft" | "trimRight" | "trim" | "toLowerCase" | "toUpperCase" | "toEnumCase"; -interface TransformConfig { - hash: Record; -} -declare type Transform = (s: string, cfg?: TransformConfig) => string; -declare const transform: { - [key in TransformName]: Transform; -}; -declare const getDef: (() => CodeKeywordDefinition) & { - transform: typeof transform; -}; -export default getDef; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js deleted file mode 100644 index 17128de4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const transform = { - trimStart: (s) => s.trimStart(), - trimEnd: (s) => s.trimEnd(), - trimLeft: (s) => s.trimStart(), - trimRight: (s) => s.trimEnd(), - trim: (s) => s.trim(), - toLowerCase: (s) => s.toLowerCase(), - toUpperCase: (s) => s.toUpperCase(), - toEnumCase: (s, cfg) => (cfg === null || cfg === void 0 ? void 0 : cfg.hash[configKey(s)]) || s, -}; -const getDef = Object.assign(_getDef, { transform }); -function _getDef() { - return { - keyword: "transform", - schemaType: "array", - before: "enum", - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { parentData, parentDataProperty } = it; - const tNames = schema; - if (!tNames.length) - return; - let cfg; - if (tNames.includes("toEnumCase")) { - const config = getEnumCaseCfg(parentSchema); - cfg = gen.scopeValue("obj", { ref: config, code: (0, codegen_1.stringify)(config) }); - } - gen.if((0, codegen_1._) `typeof ${data} == "string" && ${parentData} !== undefined`, () => { - gen.assign(data, transformExpr(tNames.slice())); - gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, data); - }); - function transformExpr(ts) { - if (!ts.length) - return data; - const t = ts.pop(); - if (!(t in transform)) - throw new Error(`transform: unknown transformation ${t}`); - const func = gen.scopeValue("func", { - ref: transform[t], - code: (0, codegen_1._) `require("ajv-keywords/dist/definitions/transform").transform${(0, codegen_1.getProperty)(t)}`, - }); - const arg = transformExpr(ts); - return cfg && t === "toEnumCase" ? (0, codegen_1._) `${func}(${arg}, ${cfg})` : (0, codegen_1._) `${func}(${arg})`; - } - }, - metaSchema: { - type: "array", - items: { type: "string", enum: Object.keys(transform) }, - }, - }; -} -function getEnumCaseCfg(parentSchema) { - // build hash table to enum values - const cfg = { hash: {} }; - // requires `enum` in the same schema as transform - if (!parentSchema.enum) - throw new Error('transform: "toEnumCase" requires "enum"'); - for (const v of parentSchema.enum) { - if (typeof v !== "string") - continue; - const k = configKey(v); - // requires all `enum` values have unique keys - if (cfg.hash[k]) { - throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique'); - } - cfg.hash[k] = v; - } - return cfg; -} -function configKey(s) { - return s.toLowerCase(); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=transform.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map deleted file mode 100644 index 82220dcf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/definitions/transform.ts"],"names":[],"mappings":";;AACA,sDAAkE;AAkBlE,MAAM,SAAS,GAAwC;IACrD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,S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AAED,SAAS,cAAc,CAAC,YAA6B;IACnD,kCAAkC;IAClC,MAAM,GAAG,GAAoB,EAAC,IAAI,EAAE,EAAE,EAAC,CAAA;IAEvC,kDAAkD;IAClD,IAAI,CAAC,YAAY,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAClF,KAAK,MAAM,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE;QACjC,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,SAAQ;QACnC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QACtB,8CAA8C;QAC9C,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAA;SAC9F;QACD,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;KAChB;IAED,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;AACxB,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js deleted file mode 100644 index 5bb2b020..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"]; -function getDef() { - return { - keyword: "typeof", - schemaType: ["string", "array"], - code(cxt) { - const { data, schema, schemaValue } = cxt; - cxt.fail(typeof schema == "string" - ? (0, codegen_1._) `typeof ${data} != ${schema}` - : (0, codegen_1._) `${schemaValue}.indexOf(typeof ${data}) < 0`); - }, - metaSchema: { - anyOf: [ - { type: "string", enum: TYPES }, - { type: "array", items: { type: "string", enum: TYPES } }, - ], - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=typeof.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map deleted file mode 100644 index 918d3ff1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeof.js","sourceRoot":"","sources":["../../src/definitions/typeof.ts"],"names":[],"mappings":";;AACA,sDAA0C;AAE1C,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAA;AAE1F,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/B,IAAI,CAAC,GAAe;YAClB,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAC,GAAG,GAAG,CAAA;YACvC,GAAG,CAAC,IAAI,CACN,OAAO,MAAM,IAAI,QAAQ;gBACvB,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,IAAI,OAAO,MAAM,EAAE;gBAChC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,WAAW,mBAAmB,IAAI,OAAO,CAClD,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC;gBAC7B,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAC;aACtD;SACF;KACF,CAAA;AACH,CAAC;AAnBD,yBAmBC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts deleted file mode 100644 index d8365595..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -export default function getDef(): FuncKeywordDefinition; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js deleted file mode 100644 index 1758209a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const equal = require("fast-deep-equal"); -const SCALAR_TYPES = ["number", "integer", "string", "boolean", "null"]; -function getDef() { - return { - keyword: "uniqueItemProperties", - type: "array", - schemaType: "array", - compile(keys, parentSchema) { - const scalar = getScalarKeys(keys, parentSchema); - return (data) => { - if (data.length <= 1) - return true; - for (let k = 0; k < keys.length; k++) { - const key = keys[k]; - if (scalar[k]) { - const hash = {}; - for (const x of data) { - if (!x || typeof x != "object") - continue; - let p = x[key]; - if (p && typeof p == "object") - continue; - if (typeof p == "string") - p = '"' + p; - if (hash[p]) - return false; - hash[p] = true; - } - } - else { - for (let i = data.length; i--;) { - const x = data[i]; - if (!x || typeof x != "object") - continue; - for (let j = i; j--;) { - const y = data[j]; - if (y && typeof y == "object" && equal(x[key], y[key])) - return false; - } - } - } - } - return true; - }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }; -} -exports.default = getDef; -function getScalarKeys(keys, schema) { - return keys.map((key) => { - var _a, _b, _c; - const t = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type; - return Array.isArray(t) - ? !t.includes("object") && !t.includes("array") - : SCALAR_TYPES.includes(t); - }); -} -module.exports = getDef; -//# sourceMappingURL=uniqueItemProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map deleted file mode 100644 index c0619c26..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItemProperties.js","sourceRoot":"","sources":["../../src/definitions/uniqueItemProperties.ts"],"names":[],"mappings":";;AACA,yCAAyC;AAEzC,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;AAEvE,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,OAAO;QACnB,OAAO,CAAC,IAAc,EAAE,YAA6B;YACnD,MAA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CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;oCAAE,OAAO,KAAK,CAAA;6BACrE;yBACF;qBACF;iBACF;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAA;AACH,CAAC;AAzCD,yBAyCC;AAED,SAAS,aAAa,CAAC,IAAc,EAAE,MAAuB;IAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;;QACtB,MAAM,CAAC,GAAG,MAAA,MAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,UAAU,0CAAG,GAAG,CAAC,0CAAE,IAAI,CAAA;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC/C,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9B,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.d.ts deleted file mode 100644 index fc5b7a94..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -export { AjvKeywordsError } from "./definitions"; -declare const ajvKeywords: Plugin; -export default ajvKeywords; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js deleted file mode 100644 index d0d3d8b2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const keywords_1 = __importDefault(require("./keywords")); -const ajvKeywords = (ajv, keyword) => { - if (Array.isArray(keyword)) { - for (const k of keyword) - get(k)(ajv); - return ajv; - } - if (keyword) { - get(keyword)(ajv); - return ajv; - } - for (keyword in keywords_1.default) - get(keyword)(ajv); - return ajv; -}; -ajvKeywords.get = get; -function get(keyword) { - const defFunc = keywords_1.default[keyword]; - if (!defFunc) - throw new Error("Unknown keyword " + keyword); - return defFunc; -} -exports.default = ajvKeywords; -module.exports = ajvKeywords; -// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -module.exports.default = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js.map deleted file mode 100644 index 2f472f1e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAEA,0DAAgC;AAIhC,MAAM,WAAW,GAA8B,CAAC,GAAQ,EAAE,OAA2B,EAAO,EAAE;IAC5F,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC1B,KAAK,MAAM,CAAC,IAAI,OAAO;YAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACpC,OAAO,GAAG,CAAA;KACX;IACD,IAAI,OAAO,EAAE;QACX,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAA;QACjB,OAAO,GAAG,CAAA;KACX;IACD,KAAK,OAAO,IAAI,kBAAO;QAAE,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAA;IAC1C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,WAAW,CAAC,GAAG,GAAG,GAAG,CAAA;AAErB,SAAS,GAAG,CAAC,OAAe;IAC1B,MAAM,OAAO,GAAG,kBAAO,CAAC,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,OAAO,CAAC,CAAA;IAC3D,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA;AAE5B,sEAAsE;AACtE,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts deleted file mode 100644 index 97dd1213..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const allRequired: Plugin; -export default allRequired; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js deleted file mode 100644 index aaf65637..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const allRequired_1 = __importDefault(require("../definitions/allRequired")); -const allRequired = (ajv) => ajv.addKeyword((0, allRequired_1.default)()); -exports.default = allRequired; -module.exports = allRequired; -//# sourceMappingURL=allRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map deleted file mode 100644 index e19effd3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allRequired.js","sourceRoot":"","sources":["../../src/keywords/allRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts deleted file mode 100644 index 55e0fb1f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const anyRequired: Plugin; -export default anyRequired; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js deleted file mode 100644 index 700dc0da..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const anyRequired_1 = __importDefault(require("../definitions/anyRequired")); -const anyRequired = (ajv) => ajv.addKeyword((0, anyRequired_1.default)()); -exports.default = anyRequired; -module.exports = anyRequired; -//# sourceMappingURL=anyRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map deleted file mode 100644 index e1986e05..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyRequired.js","sourceRoot":"","sources":["../../src/keywords/anyRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts deleted file mode 100644 index b8209c8d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -import type { DefinitionOptions } from "../definitions/_types"; -declare const deepProperties: Plugin; -export default deepProperties; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js deleted file mode 100644 index bd207d8b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const deepProperties_1 = __importDefault(require("../definitions/deepProperties")); -const deepProperties = (ajv, opts) => ajv.addKeyword((0, deepProperties_1.default)(opts)); -exports.default = deepProperties; -module.exports = deepProperties; -//# sourceMappingURL=deepProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map deleted file mode 100644 index 23ee8f3d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepProperties.js","sourceRoot":"","sources":["../../src/keywords/deepProperties.ts"],"names":[],"mappings":";;;;;AACA,mFAAkD;AAGlD,MAAM,cAAc,GAA8B,CAAC,GAAG,EAAE,IAAwB,EAAE,EAAE,CAClF,GAAG,CAAC,UAAU,CAAC,IAAA,wBAAM,EAAC,IAAI,CAAC,CAAC,CAAA;AAE9B,kBAAe,cAAc,CAAA;AAC7B,MAAM,CAAC,OAAO,GAAG,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts deleted file mode 100644 index 113062ba..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const deepRequired: Plugin; -export default deepRequired; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js deleted file mode 100644 index 20778316..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const deepRequired_1 = __importDefault(require("../definitions/deepRequired")); -const deepRequired = (ajv) => ajv.addKeyword((0, deepRequired_1.default)()); -exports.default = deepRequired; -module.exports = deepRequired; -//# sourceMappingURL=deepRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map deleted file mode 100644 index 4b808c1c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepRequired.js","sourceRoot":"","sources":["../../src/keywords/deepRequired.ts"],"names":[],"mappings":";;;;;AACA,+EAAgD;AAEhD,MAAM,YAAY,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,sBAAM,GAAE,CAAC,CAAA;AAEzE,kBAAe,YAAY,CAAA;AAC3B,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts deleted file mode 100644 index b5e84757..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const dynamicDefaults: Plugin; -export default dynamicDefaults; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js deleted file mode 100644 index 3df22076..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicDefaults_1 = __importDefault(require("../definitions/dynamicDefaults")); -const dynamicDefaults = (ajv) => ajv.addKeyword((0, dynamicDefaults_1.default)()); -exports.default = dynamicDefaults; -module.exports = dynamicDefaults; -//# sourceMappingURL=dynamicDefaults.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map deleted file mode 100644 index f87302ae..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicDefaults.js","sourceRoot":"","sources":["../../src/keywords/dynamicDefaults.ts"],"names":[],"mappings":";;;;;AACA,qFAAmD;AAEnD,MAAM,eAAe,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,yBAAM,GAAE,CAAC,CAAA;AAE5E,kBAAe,eAAe,CAAA;AAC9B,MAAM,CAAC,OAAO,GAAG,eAAe,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts deleted file mode 100644 index 23ca1acb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const exclusiveRange: Plugin; -export default exclusiveRange; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js deleted file mode 100644 index 5788996f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const exclusiveRange_1 = __importDefault(require("../definitions/exclusiveRange")); -const exclusiveRange = (ajv) => ajv.addKeyword((0, exclusiveRange_1.default)()); -exports.default = exclusiveRange; -module.exports = exclusiveRange; -//# sourceMappingURL=exclusiveRange.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map deleted file mode 100644 index a12321b7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exclusiveRange.js","sourceRoot":"","sources":["../../src/keywords/exclusiveRange.ts"],"names":[],"mappings":";;;;;AACA,mFAAkD;AAElD,MAAM,cAAc,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,wBAAM,GAAE,CAAC,CAAA;AAE3E,kBAAe,cAAc,CAAA;AAC7B,MAAM,CAAC,OAAO,GAAG,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts deleted file mode 100644 index 98fd14ec..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const ajvKeywords: Record | undefined>; -export default ajvKeywords; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js deleted file mode 100644 index d2b7d86a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("./typeof")); -const instanceof_1 = __importDefault(require("./instanceof")); -const range_1 = __importDefault(require("./range")); -const exclusiveRange_1 = __importDefault(require("./exclusiveRange")); -const regexp_1 = __importDefault(require("./regexp")); -const transform_1 = __importDefault(require("./transform")); -const uniqueItemProperties_1 = __importDefault(require("./uniqueItemProperties")); -const allRequired_1 = __importDefault(require("./allRequired")); -const anyRequired_1 = __importDefault(require("./anyRequired")); -const oneRequired_1 = __importDefault(require("./oneRequired")); -const patternRequired_1 = __importDefault(require("./patternRequired")); -const prohibited_1 = __importDefault(require("./prohibited")); -const deepProperties_1 = __importDefault(require("./deepProperties")); -const deepRequired_1 = __importDefault(require("./deepRequired")); -const dynamicDefaults_1 = __importDefault(require("./dynamicDefaults")); -const select_1 = __importDefault(require("./select")); -// TODO type -const ajvKeywords = { - typeof: typeof_1.default, - instanceof: instanceof_1.default, - range: range_1.default, - exclusiveRange: exclusiveRange_1.default, - regexp: regexp_1.default, - transform: transform_1.default, - uniqueItemProperties: uniqueItemProperties_1.default, - allRequired: allRequired_1.default, - anyRequired: anyRequired_1.default, - oneRequired: oneRequired_1.default, - patternRequired: patternRequired_1.default, - prohibited: prohibited_1.default, - deepProperties: deepProperties_1.default, - deepRequired: deepRequired_1.default, - dynamicDefaults: dynamicDefaults_1.default, - select: select_1.default, -}; -exports.default = ajvKeywords; -module.exports = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map deleted file mode 100644 index b91d99ec..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keywords/index.ts"],"names":[],"mappings":";;;;;AACA,sDAAmC;AACnC,8DAA2C;AAC3C,oDAA2B;AAC3B,sEAA6C;AAC7C,sDAA6B;AAC7B,4DAAmC;AACnC,kFAAyD;AACzD,gEAAuC;AACvC,gEAAuC;AACvC,gEAAuC;AACvC,wEAA+C;AAC/C,8DAAqC;AACrC,sEAA6C;AAC7C,kEAAyC;AACzC,wEAA+C;AAC/C,sDAA6B;AAE7B,YAAY;AACZ,MAAM,WAAW,GAA4C;IAC3D,MAAM,EAAE,gBAAY;IACpB,UAAU,EAAE,oBAAgB;IAC5B,KAAK,EAAL,eAAK;IACL,cAAc,EAAd,wBAAc;IACd,MAAM,EAAN,gBAAM;IACN,SAAS,EAAT,mBAAS;IACT,oBAAoB,EAApB,8BAAoB;IACpB,WAAW,EAAX,qBAAW;IACX,WAAW,EAAX,qBAAW;IACX,WAAW,EAAX,qBAAW;IACX,eAAe,EAAf,yBAAe;IACf,UAAU,EAAV,oBAAU;IACV,cAAc,EAAd,wBAAc;IACd,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,MAAM,EAAN,gBAAM;CACP,CAAA;AAED,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts deleted file mode 100644 index 2fa300cf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const instanceofPlugin: Plugin; -export default instanceofPlugin; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js deleted file mode 100644 index e5e2784d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const instanceof_1 = __importDefault(require("../definitions/instanceof")); -const instanceofPlugin = (ajv) => ajv.addKeyword((0, instanceof_1.default)()); -exports.default = instanceofPlugin; -module.exports = instanceofPlugin; -//# sourceMappingURL=instanceof.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map deleted file mode 100644 index b33b1154..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instanceof.js","sourceRoot":"","sources":["../../src/keywords/instanceof.ts"],"names":[],"mappings":";;;;;AACA,2EAA8C;AAE9C,MAAM,gBAAgB,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,oBAAM,GAAE,CAAC,CAAA;AAE7E,kBAAe,gBAAgB,CAAA;AAC/B,MAAM,CAAC,OAAO,GAAG,gBAAgB,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts deleted file mode 100644 index 2aaa0f56..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const oneRequired: Plugin; -export default oneRequired; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js deleted file mode 100644 index c62e1ebd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const oneRequired_1 = __importDefault(require("../definitions/oneRequired")); -const oneRequired = (ajv) => ajv.addKeyword((0, oneRequired_1.default)()); -exports.default = oneRequired; -module.exports = oneRequired; -//# sourceMappingURL=oneRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map deleted file mode 100644 index 9dc8aa0c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneRequired.js","sourceRoot":"","sources":["../../src/keywords/oneRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts deleted file mode 100644 index 565f5c09..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const patternRequired: Plugin; -export default patternRequired; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js deleted file mode 100644 index fc6a1ab6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const patternRequired_1 = __importDefault(require("../definitions/patternRequired")); -const patternRequired = (ajv) => ajv.addKeyword((0, patternRequired_1.default)()); -exports.default = patternRequired; -module.exports = patternRequired; -//# sourceMappingURL=patternRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map deleted file mode 100644 index c446c4dc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternRequired.js","sourceRoot":"","sources":["../../src/keywords/patternRequired.ts"],"names":[],"mappings":";;;;;AACA,qFAAmD;AAEnD,MAAM,eAAe,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,yBAAM,GAAE,CAAC,CAAA;AAE5E,kBAAe,eAAe,CAAA;AAC9B,MAAM,CAAC,OAAO,GAAG,eAAe,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts deleted file mode 100644 index 19f2ccb1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const prohibited: Plugin; -export default prohibited; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js deleted file mode 100644 index 08414f91..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const prohibited_1 = __importDefault(require("../definitions/prohibited")); -const prohibited = (ajv) => ajv.addKeyword((0, prohibited_1.default)()); -exports.default = prohibited; -module.exports = prohibited; -//# sourceMappingURL=prohibited.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map deleted file mode 100644 index 5c2b190e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prohibited.js","sourceRoot":"","sources":["../../src/keywords/prohibited.ts"],"names":[],"mappings":";;;;;AACA,2EAA8C;AAE9C,MAAM,UAAU,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,oBAAM,GAAE,CAAC,CAAA;AAEvE,kBAAe,UAAU,CAAA;AACzB,MAAM,CAAC,OAAO,GAAG,UAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts deleted file mode 100644 index 5e9bd230..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const range: Plugin; -export default range; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js deleted file mode 100644 index 915f28d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const range_1 = __importDefault(require("../definitions/range")); -const range = (ajv) => ajv.addKeyword((0, range_1.default)()); -exports.default = range; -module.exports = range; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map deleted file mode 100644 index b07eb26b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/keywords/range.ts"],"names":[],"mappings":";;;;;AACA,iEAAyC;AAEzC,MAAM,KAAK,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,eAAM,GAAE,CAAC,CAAA;AAElE,kBAAe,KAAK,CAAA;AACpB,MAAM,CAAC,OAAO,GAAG,KAAK,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts deleted file mode 100644 index 4c64f089..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const regexp: Plugin; -export default regexp; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js deleted file mode 100644 index 7eb75832..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexp_1 = __importDefault(require("../definitions/regexp")); -const regexp = (ajv) => ajv.addKeyword((0, regexp_1.default)()); -exports.default = regexp; -module.exports = regexp; -//# sourceMappingURL=regexp.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map deleted file mode 100644 index a004f5e8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexp.js","sourceRoot":"","sources":["../../src/keywords/regexp.ts"],"names":[],"mappings":";;;;;AACA,mEAA0C;AAE1C,MAAM,MAAM,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAA;AAEnE,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts deleted file mode 100644 index f7f9abaa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -import type { DefinitionOptions } from "../definitions/_types"; -declare const select: Plugin; -export default select; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js deleted file mode 100644 index eff7205c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const select_1 = __importDefault(require("../definitions/select")); -const select = (ajv, opts) => { - (0, select_1.default)(opts).forEach((d) => ajv.addKeyword(d)); - return ajv; -}; -exports.default = select; -module.exports = select; -//# sourceMappingURL=select.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map deleted file mode 100644 index 55b294c9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/keywords/select.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAG3C,MAAM,MAAM,GAA8B,CAAC,GAAG,EAAE,IAAwB,EAAE,EAAE;IAC1E,IAAA,gBAAO,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts deleted file mode 100644 index 8734ed08..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const transform: Plugin; -export default transform; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js deleted file mode 100644 index bdf9ef1d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const transform_1 = __importDefault(require("../definitions/transform")); -const transform = (ajv) => ajv.addKeyword((0, transform_1.default)()); -exports.default = transform; -module.exports = transform; -//# sourceMappingURL=transform.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map deleted file mode 100644 index ef0e6750..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/keywords/transform.ts"],"names":[],"mappings":";;;;;AACA,yEAA6C;AAE7C,MAAM,SAAS,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,mBAAM,GAAE,CAAC,CAAA;AAEtE,kBAAe,SAAS,CAAA;AACxB,MAAM,CAAC,OAAO,GAAG,SAAS,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts deleted file mode 100644 index 57aff4b9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const typeofPlugin: Plugin; -export default typeofPlugin; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js deleted file mode 100644 index 6cabc3af..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("../definitions/typeof")); -const typeofPlugin = (ajv) => ajv.addKeyword((0, typeof_1.default)()); -exports.default = typeofPlugin; -module.exports = typeofPlugin; -//# sourceMappingURL=typeof.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map deleted file mode 100644 index ec706221..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeof.js","sourceRoot":"","sources":["../../src/keywords/typeof.ts"],"names":[],"mappings":";;;;;AACA,mEAA0C;AAE1C,MAAM,YAAY,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAA;AAEzE,kBAAe,YAAY,CAAA;AAC3B,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts deleted file mode 100644 index ff06feac..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const uniqueItemProperties: Plugin; -export default uniqueItemProperties; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js deleted file mode 100644 index a638fcc4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const uniqueItemProperties_1 = __importDefault(require("../definitions/uniqueItemProperties")); -const uniqueItemProperties = (ajv) => ajv.addKeyword((0, uniqueItemProperties_1.default)()); -exports.default = uniqueItemProperties; -module.exports = uniqueItemProperties; -//# sourceMappingURL=uniqueItemProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map deleted file mode 100644 index b62fdd2f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItemProperties.js","sourceRoot":"","sources":["../../src/keywords/uniqueItemProperties.ts"],"names":[],"mappings":";;;;;AACA,+FAAwD;AAExD,MAAM,oBAAoB,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,8BAAM,GAAE,CAAC,CAAA;AAEjF,kBAAe,oBAAoB,CAAA;AACnC,MAAM,CAAC,OAAO,GAAG,oBAAoB,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/package.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/package.json deleted file mode 100644 index 515f5837..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "ajv-keywords", - "version": "5.1.0", - "description": "Additional JSON-Schema keywords for Ajv JSON validator", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "scripts": { - "build": "rm -rf dist && tsc", - "prepublish": "npm run build", - "prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"", - "prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"", - "test": "npm link && npm link ajv-keywords && npm run eslint && npm run test-cov", - "eslint": "eslint \"src/**/*.*s\" \"spec/**/*.*s\"", - "test-spec": "jest spec/*.ts", - "test-cov": "jest spec/*.ts --coverage" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/epoberezkin/ajv-keywords.git" - }, - "keywords": [ - "JSON-Schema", - "ajv", - "keywords" - ], - "files": [ - "src", - "dist", - "ajv-keywords.d.ts" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": { - "url": "https://github.com/epoberezkin/ajv-keywords/issues" - }, - "homepage": "https://github.com/epoberezkin/ajv-keywords#readme", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - }, - "devDependencies": { - "@ajv-validator/config": "^0.2.3", - "@types/chai": "^4.2.14", - "@types/jest": "^26.0.14", - "@types/node": "^16.4.10", - "@types/uuid": "^8.3.0", - "@typescript-eslint/eslint-plugin": "^4.4.1", - "@typescript-eslint/parser": "^4.4.1", - "ajv": "^8.8.2", - "ajv-formats": "^2.0.0", - "chai": "^4.2.0", - "eslint": "^7.2.0", - "eslint-config-prettier": "^7.0.0", - "husky": "^7.0.1", - "jest": "^26.5.3", - "json-schema-test": "^2.0.0", - "lint-staged": "^11.1.1", - "prettier": "^2.1.2", - "ts-jest": "^26.4.1", - "typescript": "^4.2.0", - "uuid": "^8.1.0" - }, - "prettier": "@ajv-validator/config/prettierrc.json", - "husky": { - "hooks": { - "pre-commit": "lint-staged && npm test" - } - }, - "lint-staged": { - "*.{md,json,yaml,js,ts}": "prettier --write" - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_range.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_range.ts deleted file mode 100644 index 38cb9a0d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_range.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" - -type RangeKwd = "range" | "exclusiveRange" - -export default function getRangeDef(keyword: RangeKwd): GetDefinition { - return () => ({ - keyword, - type: "number", - schemaType: "array", - macro: function ([min, max]: [number, number]) { - validateRangeSchema(min, max) - return keyword === "range" - ? {minimum: min, maximum: max} - : {exclusiveMinimum: min, exclusiveMaximum: max} - }, - metaSchema: { - type: "array", - minItems: 2, - maxItems: 2, - items: {type: "number"}, - }, - }) - - function validateRangeSchema(min: number, max: number): void { - if (min > max || (keyword === "exclusiveRange" && min === max)) { - throw new Error("There are no numbers in range") - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_required.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_required.ts deleted file mode 100644 index ddf93954..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_required.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" - -type RequiredKwd = "anyRequired" | "oneRequired" - -export default function getRequiredDef( - keyword: RequiredKwd -): GetDefinition { - return () => ({ - keyword, - type: "object", - schemaType: "array", - macro(schema: string[]) { - if (schema.length === 0) return true - if (schema.length === 1) return {required: schema} - const comb = keyword === "anyRequired" ? "anyOf" : "oneOf" - return {[comb]: schema.map((p) => ({required: [p]}))} - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - }) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_types.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_types.ts deleted file mode 100644 index c3f54248..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_types.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {KeywordDefinition} from "ajv" - -export interface DefinitionOptions { - defaultMeta?: string | boolean -} - -export type GetDefinition = (opts?: DefinitionOptions) => T diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_util.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_util.ts deleted file mode 100644 index 68bcc01b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/_util.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {DefinitionOptions} from "./_types" -import type {SchemaObject, KeywordCxt, Name} from "ajv" -import {_} from "ajv/dist/compile/codegen" - -const META_SCHEMA_ID = "http://json-schema.org/schema" - -export function metaSchemaRef({defaultMeta}: DefinitionOptions = {}): SchemaObject { - return defaultMeta === false ? {} : {$ref: defaultMeta || META_SCHEMA_ID} -} - -export function usePattern( - {gen, it: {opts}}: KeywordCxt, - pattern: string, - flags = opts.unicodeRegExp ? "u" : "" -): Name { - const rx = new RegExp(pattern, flags) - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: _`new RegExp(${pattern}, ${flags})`, - }) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts deleted file mode 100644 index 821558f2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" - -export default function getDef(): MacroKeywordDefinition { - return { - keyword: "allRequired", - type: "object", - schemaType: "boolean", - macro(schema: boolean, parentSchema) { - if (!schema) return true - const required = Object.keys(parentSchema.properties) - if (required.length === 0) return true - return {required} - }, - dependencies: ["properties"], - } -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts deleted file mode 100644 index 7f715367..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRequiredDef from "./_required" - -const getDef: GetDefinition = getRequiredDef("anyRequired") - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts deleted file mode 100644 index be294106..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type {MacroKeywordDefinition, SchemaObject, Schema} from "ajv" -import type {DefinitionOptions} from "./_types" -import {metaSchemaRef} from "./_util" - -export default function getDef(opts?: DefinitionOptions): MacroKeywordDefinition { - return { - keyword: "deepProperties", - type: "object", - schemaType: "object", - macro: function (schema: Record) { - const allOf = [] - for (const pointer in schema) allOf.push(getSchema(pointer, schema[pointer])) - return {allOf} - }, - metaSchema: { - type: "object", - propertyNames: {type: "string", format: "json-pointer"}, - additionalProperties: metaSchemaRef(opts), - }, - } -} - -function getSchema(jsonPointer: string, schema: SchemaObject): SchemaObject { - const segments = jsonPointer.split("/") - const rootSchema: SchemaObject = {} - let pointerSchema: SchemaObject = rootSchema - for (let i = 1; i < segments.length; i++) { - let segment: string = segments[i] - const isLast = i === segments.length - 1 - segment = unescapeJsonPointer(segment) - const properties: Record = (pointerSchema.properties = {}) - let items: SchemaObject[] | undefined - if (/[0-9]+/.test(segment)) { - let count = +segment - items = pointerSchema.items = [] - pointerSchema.type = ["object", "array"] - while (count--) items.push({}) - } else { - pointerSchema.type = "object" - } - pointerSchema = isLast ? schema : {} - properties[segment] = pointerSchema - if (items) items.push(pointerSchema) - } - return rootSchema -} - -function unescapeJsonPointer(str: string): string { - return str.replace(/~1/g, "/").replace(/~0/g, "~") -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts deleted file mode 100644 index c01b7026..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt} from "ajv" -import {_, or, and, getProperty, Code} from "ajv/dist/compile/codegen" - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "deepRequired", - type: "object", - schemaType: "array", - code(ctx: KeywordCxt) { - const {schema, data} = ctx - const props = (schema as string[]).map((jp: string) => _`(${getData(jp)}) === undefined`) - ctx.fail(or(...props)) - - function getData(jsonPointer: string): Code { - if (jsonPointer === "") throw new Error("empty JSON pointer not allowed") - const segments = jsonPointer.split("/") - let x: Code = data - const xs = segments.map((s, i) => - i ? (x = _`${x}${getProperty(unescapeJPSegment(s))}`) : x - ) - return and(...xs) - } - }, - metaSchema: { - type: "array", - items: {type: "string", format: "json-pointer"}, - }, - } -} - -function unescapeJPSegment(s: string): string { - return s.replace(/~1/g, "/").replace(/~0/g, "~") -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts deleted file mode 100644 index 84cd0c37..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {FuncKeywordDefinition, SchemaCxt} from "ajv" - -const sequences: Record = {} - -export type DynamicDefaultFunc = (args?: Record) => () => any - -const DEFAULTS: Record = { - timestamp: () => () => Date.now(), - datetime: () => () => new Date().toISOString(), - date: () => () => new Date().toISOString().slice(0, 10), - time: () => () => new Date().toISOString().slice(11), - random: () => () => Math.random(), - randomint: (args?: {max?: number}) => { - const max = args?.max ?? 2 - return () => Math.floor(Math.random() * max) - }, - seq: (args?: {name?: string}) => { - const name = args?.name ?? "" - sequences[name] ||= 0 - return () => (sequences[name] as number)++ - }, -} - -interface PropertyDefaultSchema { - func: string - args: Record -} - -type DefaultSchema = Record - -const getDef: (() => FuncKeywordDefinition) & { - DEFAULTS: typeof DEFAULTS -} = Object.assign(_getDef, {DEFAULTS}) - -function _getDef(): FuncKeywordDefinition { - return { - keyword: "dynamicDefaults", - type: "object", - schemaType: ["string", "object"], - modifying: true, - valid: true, - compile(schema: DefaultSchema, _parentSchema, it: SchemaCxt) { - if (!it.opts.useDefaults || it.compositeRule) return () => true - const fs: Record any> = {} - for (const key in schema) fs[key] = getDefault(schema[key]) - const empty = it.opts.useDefaults === "empty" - - return (data: Record) => { - for (const prop in schema) { - if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) { - data[prop] = fs[prop]() - } - } - return true - } - }, - metaSchema: { - type: "object", - additionalProperties: { - anyOf: [ - {type: "string"}, - { - type: "object", - additionalProperties: false, - required: ["func", "args"], - properties: { - func: {type: "string"}, - args: {type: "object"}, - }, - }, - ], - }, - }, - } -} - -function getDefault(d: string | PropertyDefaultSchema | undefined): () => any { - return typeof d == "object" ? getObjDefault(d) : getStrDefault(d) -} - -function getObjDefault({func, args}: PropertyDefaultSchema): () => any { - const def = DEFAULTS[func] - assertDefined(func, def) - return def(args) -} - -function getStrDefault(d = ""): () => any { - const def = DEFAULTS[d] - assertDefined(d, def) - return def() -} - -function assertDefined(name: string, def?: DynamicDefaultFunc): asserts def is DynamicDefaultFunc { - if (!def) throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`) -} - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts deleted file mode 100644 index 7a4f7361..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRangeDef from "./_range" - -const getDef: GetDefinition = getRangeDef("exclusiveRange") - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/index.ts deleted file mode 100644 index eb0a4af7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/index.ts +++ /dev/null @@ -1,61 +0,0 @@ -import type {Vocabulary, KeywordDefinition, ErrorNoParams} from "ajv" -import type {DefinitionOptions, GetDefinition} from "./_types" -import typeofDef from "./typeof" -import instanceofDef from "./instanceof" -import range from "./range" -import exclusiveRange from "./exclusiveRange" -import regexp from "./regexp" -import transform from "./transform" -import uniqueItemProperties from "./uniqueItemProperties" -import allRequired from "./allRequired" -import anyRequired from "./anyRequired" -import oneRequired from "./oneRequired" -import patternRequired, {PatternRequiredError} from "./patternRequired" -import prohibited from "./prohibited" -import deepProperties from "./deepProperties" -import deepRequired from "./deepRequired" -import dynamicDefaults from "./dynamicDefaults" -import selectDef, {SelectError} from "./select" - -const definitions: GetDefinition[] = [ - typeofDef, - instanceofDef, - range, - exclusiveRange, - regexp, - transform, - uniqueItemProperties, - allRequired, - anyRequired, - oneRequired, - patternRequired, - prohibited, - deepProperties, - deepRequired, - dynamicDefaults, -] - -export default function ajvKeywords(opts?: DefinitionOptions): Vocabulary { - return definitions.map((d) => d(opts)).concat(selectDef(opts)) -} - -export type AjvKeywordsError = - | PatternRequiredError - | SelectError - | ErrorNoParams< - | "range" - | "exclusiveRange" - | "anyRequired" - | "oneRequired" - | "allRequired" - | "deepProperties" - | "deepRequired" - | "dynamicDefaults" - | "instanceof" - | "prohibited" - | "regexp" - | "transform" - | "uniqueItemProperties" - > - -module.exports = ajvKeywords diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts deleted file mode 100644 index 2f1c54f5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts +++ /dev/null @@ -1,61 +0,0 @@ -import type {FuncKeywordDefinition} from "ajv" - -type Constructor = new (...args: any[]) => any - -const CONSTRUCTORS: Record = { - Object, - Array, - Function, - Number, - String, - Date, - RegExp, -} - -/* istanbul ignore else */ -if (typeof Buffer != "undefined") CONSTRUCTORS.Buffer = Buffer - -/* istanbul ignore else */ -if (typeof Promise != "undefined") CONSTRUCTORS.Promise = Promise - -const getDef: (() => FuncKeywordDefinition) & { - CONSTRUCTORS: typeof CONSTRUCTORS -} = Object.assign(_getDef, {CONSTRUCTORS}) - -function _getDef(): FuncKeywordDefinition { - return { - keyword: "instanceof", - schemaType: ["string", "array"], - compile(schema: string | string[]) { - if (typeof schema == "string") { - const C = getConstructor(schema) - return (data) => data instanceof C - } - - if (Array.isArray(schema)) { - const constructors = schema.map(getConstructor) - return (data) => { - for (const C of constructors) { - if (data instanceof C) return true - } - return false - } - } - - /* istanbul ignore next */ - throw new Error("ajv implementation error") - }, - metaSchema: { - anyOf: [{type: "string"}, {type: "array", items: {type: "string"}}], - }, - } -} - -function getConstructor(c: string): Constructor { - const C = CONSTRUCTORS[c] - if (C) return C - throw new Error(`invalid "instanceof" keyword value ${c}`) -} - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts deleted file mode 100644 index 79c44c97..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRequiredDef from "./_required" - -const getDef: GetDefinition = getRequiredDef("oneRequired") - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts deleted file mode 100644 index 63235c52..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt, KeywordErrorDefinition, ErrorObject} from "ajv" -import {_, str, and} from "ajv/dist/compile/codegen" -import {usePattern} from "./_util" - -export type PatternRequiredError = ErrorObject<"patternRequired", {missingPattern: string}> - -const error: KeywordErrorDefinition = { - message: ({params: {missingPattern}}) => - str`should have property matching pattern '${missingPattern}'`, - params: ({params: {missingPattern}}) => _`{missingPattern: ${missingPattern}}`, -} - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "patternRequired", - type: "object", - schemaType: "array", - error, - code(cxt: KeywordCxt) { - const {gen, schema, data} = cxt - if (schema.length === 0) return - const valid = gen.let("valid", true) - for (const pat of schema) validateProperties(pat) - - function validateProperties(pattern: string): void { - const matched = gen.let("matched", false) - - gen.forIn("key", data, (key) => { - gen.assign(matched, _`${usePattern(cxt, pattern)}.test(${key})`) - gen.if(matched, () => gen.break()) - }) - - cxt.setParams({missingPattern: pattern}) - gen.assign(valid, and(valid, matched)) - cxt.pass(valid) - } - }, - metaSchema: { - type: "array", - items: {type: "string", format: "regex"}, - uniqueItems: true, - }, - } -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts deleted file mode 100644 index 659fdda1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" - -export default function getDef(): MacroKeywordDefinition { - return { - keyword: "prohibited", - type: "object", - schemaType: "array", - macro: function (schema: string[]) { - if (schema.length === 0) return true - if (schema.length === 1) return {not: {required: schema}} - return {not: {anyOf: schema.map((p) => ({required: [p]}))}} - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - } -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/range.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/range.ts deleted file mode 100644 index c867b7d1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/range.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRangeDef from "./_range" - -const getDef: GetDefinition = getRangeDef("range") - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts deleted file mode 100644 index 68ddef83..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt, JSONSchemaType, Name} from "ajv" -import {_} from "ajv/dist/compile/codegen" -import {usePattern} from "./_util" - -interface RegexpSchema { - pattern: string - flags?: string -} - -const regexpMetaSchema: JSONSchemaType = { - type: "object", - properties: { - pattern: {type: "string"}, - flags: {type: "string", nullable: true}, - }, - required: ["pattern"], - additionalProperties: false, -} - -const metaRegexp = /^\/(.*)\/([gimuy]*)$/ - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "regexp", - type: "string", - schemaType: ["string", "object"], - code(cxt: KeywordCxt) { - const {data, schema} = cxt - const regx = getRegExp(schema) - cxt.pass(_`${regx}.test(${data})`) - - function getRegExp(sch: string | RegexpSchema): Name { - if (typeof sch == "object") return usePattern(cxt, sch.pattern, sch.flags) - const rx = metaRegexp.exec(sch) - if (rx) return usePattern(cxt, rx[1], rx[2]) - throw new Error("cannot parse string into RegExp") - } - }, - metaSchema: { - anyOf: [{type: "string"}, regexpMetaSchema], - }, - } -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/select.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/select.ts deleted file mode 100644 index f5cc19f5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/select.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type {KeywordDefinition, KeywordErrorDefinition, KeywordCxt, ErrorObject} from "ajv" -import {_, str, nil, Name} from "ajv/dist/compile/codegen" -import type {DefinitionOptions} from "./_types" -import {metaSchemaRef} from "./_util" - -export type SelectError = ErrorObject<"select", {failingCase?: string; failingDefault?: true}> - -const error: KeywordErrorDefinition = { - message: ({params: {schemaProp}}) => - schemaProp - ? str`should match case "${schemaProp}" schema` - : str`should match default case schema`, - params: ({params: {schemaProp}}) => - schemaProp ? _`{failingCase: ${schemaProp}}` : _`{failingDefault: true}`, -} - -export default function getDef(opts?: DefinitionOptions): KeywordDefinition[] { - const metaSchema = metaSchemaRef(opts) - - return [ - { - keyword: "select", - schemaType: ["string", "number", "boolean", "null"], - $data: true, - error, - dependencies: ["selectCases"], - code(cxt: KeywordCxt) { - const {gen, schemaCode, parentSchema} = cxt - cxt.block$data(nil, () => { - const valid = gen.let("valid", true) - const schValid = gen.name("_valid") - const value = gen.const("value", _`${schemaCode} === null ? "null" : ${schemaCode}`) - gen.if(false) // optimizer should remove it from generated code - for (const schemaProp in parentSchema.selectCases) { - cxt.setParams({schemaProp}) - gen.elseIf(_`"" + ${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans - const schCxt = cxt.subschema({keyword: "selectCases", schemaProp}, schValid) - cxt.mergeEvaluated(schCxt, Name) - gen.assign(valid, schValid) - } - gen.else() - if (parentSchema.selectDefault !== undefined) { - cxt.setParams({schemaProp: undefined}) - const schCxt = cxt.subschema({keyword: "selectDefault"}, schValid) - cxt.mergeEvaluated(schCxt, Name) - gen.assign(valid, schValid) - } - gen.endIf() - cxt.pass(valid) - }) - }, - }, - { - keyword: "selectCases", - dependencies: ["select"], - metaSchema: { - type: "object", - additionalProperties: metaSchema, - }, - }, - { - keyword: "selectDefault", - dependencies: ["select", "selectCases"], - metaSchema, - }, - ] -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/transform.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/transform.ts deleted file mode 100644 index af4ae291..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/transform.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject, KeywordCxt, Code, Name} from "ajv" -import {_, stringify, getProperty} from "ajv/dist/compile/codegen" - -type TransformName = - | "trimStart" - | "trimEnd" - | "trimLeft" - | "trimRight" - | "trim" - | "toLowerCase" - | "toUpperCase" - | "toEnumCase" - -interface TransformConfig { - hash: Record -} - -type Transform = (s: string, cfg?: TransformConfig) => string - -const transform: {[key in TransformName]: Transform} = { - trimStart: (s) => s.trimStart(), - trimEnd: (s) => s.trimEnd(), - trimLeft: (s) => s.trimStart(), - trimRight: (s) => s.trimEnd(), - trim: (s) => s.trim(), - toLowerCase: (s) => s.toLowerCase(), - toUpperCase: (s) => s.toUpperCase(), - toEnumCase: (s, cfg) => cfg?.hash[configKey(s)] || s, -} - -const getDef: (() => CodeKeywordDefinition) & { - transform: typeof transform -} = Object.assign(_getDef, {transform}) - -function _getDef(): CodeKeywordDefinition { - return { - keyword: "transform", - schemaType: "array", - before: "enum", - code(cxt: KeywordCxt) { - const {gen, data, schema, parentSchema, it} = cxt - const {parentData, parentDataProperty} = it - const tNames: string[] = schema - if (!tNames.length) return - let cfg: Name | undefined - if (tNames.includes("toEnumCase")) { - const config = getEnumCaseCfg(parentSchema) - cfg = gen.scopeValue("obj", {ref: config, code: stringify(config)}) - } - gen.if(_`typeof ${data} == "string" && ${parentData} !== undefined`, () => { - gen.assign(data, transformExpr(tNames.slice())) - gen.assign(_`${parentData}[${parentDataProperty}]`, data) - }) - - function transformExpr(ts: string[]): Code { - if (!ts.length) return data - const t = ts.pop() as string - if (!(t in transform)) throw new Error(`transform: unknown transformation ${t}`) - const func = gen.scopeValue("func", { - ref: transform[t as TransformName], - code: _`require("ajv-keywords/dist/definitions/transform").transform${getProperty(t)}`, - }) - const arg = transformExpr(ts) - return cfg && t === "toEnumCase" ? _`${func}(${arg}, ${cfg})` : _`${func}(${arg})` - } - }, - metaSchema: { - type: "array", - items: {type: "string", enum: Object.keys(transform)}, - }, - } -} - -function getEnumCaseCfg(parentSchema: AnySchemaObject): TransformConfig { - // build hash table to enum values - const cfg: TransformConfig = {hash: {}} - - // requires `enum` in the same schema as transform - if (!parentSchema.enum) throw new Error('transform: "toEnumCase" requires "enum"') - for (const v of parentSchema.enum) { - if (typeof v !== "string") continue - const k = configKey(v) - // requires all `enum` values have unique keys - if (cfg.hash[k]) { - throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique') - } - cfg.hash[k] = v - } - - return cfg -} - -function configKey(s: string): string { - return s.toLowerCase() -} - -export default getDef -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts deleted file mode 100644 index a8b39fbf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt} from "ajv" -import {_} from "ajv/dist/compile/codegen" - -const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"] - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "typeof", - schemaType: ["string", "array"], - code(cxt: KeywordCxt) { - const {data, schema, schemaValue} = cxt - cxt.fail( - typeof schema == "string" - ? _`typeof ${data} != ${schema}` - : _`${schemaValue}.indexOf(typeof ${data}) < 0` - ) - }, - metaSchema: { - anyOf: [ - {type: "string", enum: TYPES}, - {type: "array", items: {type: "string", enum: TYPES}}, - ], - }, - } -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts deleted file mode 100644 index 8b2c6f94..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type {FuncKeywordDefinition, AnySchemaObject} from "ajv" -import equal = require("fast-deep-equal") - -const SCALAR_TYPES = ["number", "integer", "string", "boolean", "null"] - -export default function getDef(): FuncKeywordDefinition { - return { - keyword: "uniqueItemProperties", - type: "array", - schemaType: "array", - compile(keys: string[], parentSchema: AnySchemaObject) { - const scalar = getScalarKeys(keys, parentSchema) - - return (data) => { - if (data.length <= 1) return true - for (let k = 0; k < keys.length; k++) { - const key = keys[k] - if (scalar[k]) { - const hash: Record = {} - for (const x of data) { - if (!x || typeof x != "object") continue - let p = x[key] - if (p && typeof p == "object") continue - if (typeof p == "string") p = '"' + p - if (hash[p]) return false - hash[p] = true - } - } else { - for (let i = data.length; i--; ) { - const x = data[i] - if (!x || typeof x != "object") continue - for (let j = i; j--; ) { - const y = data[j] - if (y && typeof y == "object" && equal(x[key], y[key])) return false - } - } - } - } - return true - } - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - } -} - -function getScalarKeys(keys: string[], schema: AnySchemaObject): boolean[] { - return keys.map((key) => { - const t = schema.items?.properties?.[key]?.type - return Array.isArray(t) - ? !t.includes("object") && !t.includes("array") - : SCALAR_TYPES.includes(t) - }) -} - -module.exports = getDef diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/index.ts deleted file mode 100644 index bb580fb3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/index.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type Ajv from "ajv" -import type {Plugin} from "ajv" -import plugins from "./keywords" - -export {AjvKeywordsError} from "./definitions" - -const ajvKeywords: Plugin = (ajv: Ajv, keyword?: string | string[]): Ajv => { - if (Array.isArray(keyword)) { - for (const k of keyword) get(k)(ajv) - return ajv - } - if (keyword) { - get(keyword)(ajv) - return ajv - } - for (keyword in plugins) get(keyword)(ajv) - return ajv -} - -ajvKeywords.get = get - -function get(keyword: string): Plugin { - const defFunc = plugins[keyword] - if (!defFunc) throw new Error("Unknown keyword " + keyword) - return defFunc -} - -export default ajvKeywords -module.exports = ajvKeywords - -// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -module.exports.default = ajvKeywords diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts deleted file mode 100644 index 30cce437..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/allRequired" - -const allRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default allRequired -module.exports = allRequired diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts deleted file mode 100644 index b55b817e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/anyRequired" - -const anyRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default anyRequired -module.exports = anyRequired diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts deleted file mode 100644 index e035531e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/deepProperties" -import type {DefinitionOptions} from "../definitions/_types" - -const deepProperties: Plugin = (ajv, opts?: DefinitionOptions) => - ajv.addKeyword(getDef(opts)) - -export default deepProperties -module.exports = deepProperties diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts deleted file mode 100644 index 44b19ae2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/deepRequired" - -const deepRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default deepRequired -module.exports = deepRequired diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts deleted file mode 100644 index f8f82053..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/dynamicDefaults" - -const dynamicDefaults: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default dynamicDefaults -module.exports = dynamicDefaults diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts deleted file mode 100644 index 407a374e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/exclusiveRange" - -const exclusiveRange: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default exclusiveRange -module.exports = exclusiveRange diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/index.ts deleted file mode 100644 index edf99963..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type {Plugin} from "ajv" -import typeofPlugin from "./typeof" -import instanceofPlugin from "./instanceof" -import range from "./range" -import exclusiveRange from "./exclusiveRange" -import regexp from "./regexp" -import transform from "./transform" -import uniqueItemProperties from "./uniqueItemProperties" -import allRequired from "./allRequired" -import anyRequired from "./anyRequired" -import oneRequired from "./oneRequired" -import patternRequired from "./patternRequired" -import prohibited from "./prohibited" -import deepProperties from "./deepProperties" -import deepRequired from "./deepRequired" -import dynamicDefaults from "./dynamicDefaults" -import select from "./select" - -// TODO type -const ajvKeywords: Record | undefined> = { - typeof: typeofPlugin, - instanceof: instanceofPlugin, - range, - exclusiveRange, - regexp, - transform, - uniqueItemProperties, - allRequired, - anyRequired, - oneRequired, - patternRequired, - prohibited, - deepProperties, - deepRequired, - dynamicDefaults, - select, -} - -export default ajvKeywords -module.exports = ajvKeywords diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts deleted file mode 100644 index 98a2463d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/instanceof" - -const instanceofPlugin: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default instanceofPlugin -module.exports = instanceofPlugin diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts deleted file mode 100644 index 452bb244..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/oneRequired" - -const oneRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default oneRequired -module.exports = oneRequired diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts deleted file mode 100644 index f9e4e50c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/patternRequired" - -const patternRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default patternRequired -module.exports = patternRequired diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts deleted file mode 100644 index c4f05764..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/prohibited" - -const prohibited: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default prohibited -module.exports = prohibited diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/range.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/range.ts deleted file mode 100644 index 1fd28ce0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/range.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/range" - -const range: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default range -module.exports = range diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts deleted file mode 100644 index 48c461cb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/regexp" - -const regexp: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default regexp -module.exports = regexp diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/select.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/select.ts deleted file mode 100644 index dc3bd816..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/select.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {Plugin} from "ajv" -import getDefs from "../definitions/select" -import type {DefinitionOptions} from "../definitions/_types" - -const select: Plugin = (ajv, opts?: DefinitionOptions) => { - getDefs(opts).forEach((d) => ajv.addKeyword(d)) - return ajv -} - -export default select -module.exports = select diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/transform.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/transform.ts deleted file mode 100644 index d6335ec4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/transform.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/transform" - -const transform: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default transform -module.exports = transform diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts deleted file mode 100644 index a171c507..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/typeof" - -const typeofPlugin: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default typeofPlugin -module.exports = typeofPlugin diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts deleted file mode 100644 index 1dc5fe3e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/uniqueItemProperties" - -const uniqueItemProperties: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default uniqueItemProperties -module.exports = uniqueItemProperties diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/.runkit_example.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/.runkit_example.js deleted file mode 100644 index 0d578d5d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/.runkit_example.js +++ /dev/null @@ -1,23 +0,0 @@ -const Ajv = require("ajv") -const ajv = new Ajv({allErrors: true}) - -const schema = { - type: "object", - properties: { - foo: {type: "string"}, - bar: {type: "number", maximum: 3}, - }, - required: ["foo", "bar"], - additionalProperties: false, -} - -const validate = ajv.compile(schema) - -test({foo: "abc", bar: 2}) -test({foo: 2, bar: 4}) - -function test(data) { - const valid = validate(data) - if (valid) console.log("Valid!") - else console.log("Invalid: " + ajv.errorsText(validate.errors)) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/LICENSE b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/LICENSE deleted file mode 100644 index 139162ad..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2021 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/README.md b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/README.md deleted file mode 100644 index c10422e6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/README.md +++ /dev/null @@ -1,207 +0,0 @@ -Ajv logo - -  - -# Ajv JSON schema validator - -The fastest JSON validator for Node.js and browser. - -Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). - -[![build](https://github.com/ajv-validator/ajv/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) -[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) -[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master) -[![SimpleX](https://img.shields.io/badge/chat-on%20SimpleX-70F0F9)](https://simplex.chat/contact#/?v=1-2&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqASV4yROM28Er0luVTx5X1CsMrU%3D%40smp4.simplex.im%2F8KvvURM6J38Gdq9dCuPswMOkMny0xCOJ%23%2F%3Fv%3D1-2%26dh%3DMCowBQYDK2VuAyEAr8rPVRuMOXv6kwF2yUAap-eoVg-9ssOFCi1fIrxTUw0%253D%26srv%3Do5vmywmrnaxalvz6wi3zicyftgio6psuvyniis6gco6bp6ekl4cqj4id.onion&data=%7B%22type%22%3A%22group%22%2C%22groupLinkId%22%3A%224pwLRgWHU9tlroMWHz0uOg%3D%3D%22%7D) -[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) -[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin) - -## Ajv sponsors - -[Mozilla](https://www.mozilla.org)[](https://opencollective.com/ajv) - -[Microsoft](https://opensource.microsoft.com)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) - -[Retool](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)[Tidelift](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)[SimpleX](https://github.com/simplex-chat/simplex-chat)[](https://opencollective.com/ajv) - -## Contributing - -More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation. - -Please review [Contributing guidelines](./CONTRIBUTING.md) and [Code components](https://ajv.js.org/components.html). - -## Documentation - -All documentation is available on the [Ajv website](https://ajv.js.org). - -Some useful site links: - -- [Getting started](https://ajv.js.org/guide/getting-started.html) -- [JSON Schema vs JSON Type Definition](https://ajv.js.org/guide/schema-language.html) -- [API reference](https://ajv.js.org/api.html) -- [Strict mode](https://ajv.js.org/strict-mode.html) -- [Standalone validation code](https://ajv.js.org/standalone.html) -- [Security considerations](https://ajv.js.org/security.html) -- [Command line interface](https://ajv.js.org/packages/ajv-cli.html) -- [Frequently Asked Questions](https://ajv.js.org/faq.html) - -## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin) - -Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant! - -Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released. - -Please sponsor Ajv via: - -- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it) -- [Ajv Open Collective](https://opencollective.com/ajv) - -Thank you. - -#### Open Collective sponsors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Performance - -Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. - -Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: - -- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place -- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster -- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) -- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) - -Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): - -[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|ajv|@exodus/schemasafe|is-my-json-valid|djv|@cfworker/json-schema|jsonschema/=t:100,69.2,51.5,13.1,5.1,1.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) - -## Features - -- Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6): - - all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html)) - - [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions: - - NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator). - - keyword [nullable](https://ajv.js.org/json-schema.html#nullable). - - full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available) - - support of recursive references between schemas - - correct string lengths for strings with unicode pairs - - JSON Schema [formats](https://ajv.js.org/guide/formats.html) (with [ajv-formats](https://github.com/ajv-validator/ajv-formats) plugin). - - [validates schemas against meta-schema](https://ajv.js.org/api.html#api-validateschema) -- NEW: supports [JSON Type Definition](https://datatracker.ietf.org/doc/rfc8927/): - - all keywords (see [JSON Type Definition schema forms](https://ajv.js.org/json-type-definition.html)) - - meta-schema for JTD schemas - - "union" keyword and user-defined keywords (can be used inside "metadata" member of the schema) -- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 10.x - current -- [asynchronous loading](https://ajv.js.org/guide/managing-schemas.html#asynchronous-schema-loading) of referenced schemas during compilation -- "All errors" validation mode with [option allErrors](https://ajv.js.org/options.html#allerrors) -- [error messages with parameters](https://ajv.js.org/api.html#validation-errors) describing error reasons to allow error message generation -- i18n error messages support with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package -- [removing-additional-properties](https://ajv.js.org/guide/modifying-data.html#removing-additional-properties) -- [assigning defaults](https://ajv.js.org/guide/modifying-data.html#assigning-defaults) to missing properties and items -- [coercing data](https://ajv.js.org/guide/modifying-data.html#coercing-data-types) to the types specified in `type` keywords -- [user-defined keywords](https://ajv.js.org/guide/user-keywords.html) -- additional extension keywords with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package -- [\$data reference](https://ajv.js.org/guide/combining-schemas.html#data-reference) to use values from the validated data as values for the schema keywords -- [asynchronous validation](https://ajv.js.org/guide/async-validation.html) of user-defined formats and keywords - -## Install - -To install version 8: - -``` -npm install ajv -``` - -## Getting started - -Try it in the Node.js REPL: https://runkit.com/npm/ajv - -In JavaScript: - -```javascript -// or ESM/TypeScript import -import Ajv from "ajv" -// Node.js require: -const Ajv = require("ajv") - -const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} - -const schema = { - type: "object", - properties: { - foo: {type: "integer"}, - bar: {type: "string"}, - }, - required: ["foo"], - additionalProperties: false, -} - -const data = { - foo: 1, - bar: "abc", -} - -const validate = ajv.compile(schema) -const valid = validate(data) -if (!valid) console.log(validate.errors) -``` - -Learn how to use Ajv and see more examples in the [Guide: getting started](https://ajv.js.org/guide/getting-started.html) - -## Changes history - -See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases) - -**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) - -[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) - -[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). - -## Code of conduct - -Please review and follow the [Code of conduct](./CODE_OF_CONDUCT.md). - -Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - -## Open-source software support - -Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - -## License - -[MIT](./LICENSE) diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.d.ts deleted file mode 100644 index e835e2b2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -export declare class Ajv2019 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2019; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { default as ValidationError } from "./runtime/validation_error"; -export { default as MissingRefError } from "./compile/ref_error"; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js deleted file mode 100644 index bad415cc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2019 = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const dynamic_1 = require("./vocabularies/dynamic"); -const next_1 = require("./vocabularies/next"); -const unevaluated_1 = require("./vocabularies/unevaluated"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2019_09_1 = require("./refs/json-schema-2019-09"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema"; -class Ajv2019 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(dynamic_1.default); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - this.addVocabulary(next_1.default); - this.addVocabulary(unevaluated_1.default); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2019_09_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -exports.Ajv2019 = Ajv2019; -module.exports = exports = Ajv2019; -module.exports.Ajv2019 = Ajv2019; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2019; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -var validation_error_1 = require("./runtime/validation_error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } }); -var ref_error_1 = require("./compile/ref_error"); -Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } }); -//# sourceMappingURL=2019.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js.map deleted file mode 100644 index 7e55d957..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2019.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2019.js","sourceRoot":"","sources":["../lib/2019.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AAEvC,kDAAsD;AACtD,oDAAsD;AACtD,8CAAgD;AAChD,4DAA8D;AAC9D,gEAAwD;AACxD,oEAA0D;AAE1D,MAAM,cAAc,GAAG,8CAA8C,CAAA;AAErE,MAAa,OAAQ,SAAQ,cAAO;IAClC,YAAY,OAAgB,EAAE;QAC5B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,IAAI;SAClB,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAA;QACrC,gBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QACxD,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;QAClC,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAA;QACzC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,MAAM,EAAC,KAAK,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AA/BD,0BA+BC;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;AAChC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA;AACnD,+DAAqE;AAA7D,mHAAA,OAAO,OAAmB;AAClC,iDAA8D;AAAtD,4GAAA,OAAO,OAAmB"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.d.ts deleted file mode 100644 index 2e56c8fc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -export declare class Ajv2020 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2020; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { default as ValidationError } from "./runtime/validation_error"; -export { default as MissingRefError } from "./compile/ref_error"; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js deleted file mode 100644 index b3fe71cb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0; -const core_1 = require("./core"); -const draft2020_1 = require("./vocabularies/draft2020"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2020_12_1 = require("./refs/json-schema-2020-12"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema"; -class Ajv2020 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - draft2020_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2020_12_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -exports.Ajv2020 = Ajv2020; -module.exports = exports = Ajv2020; -module.exports.Ajv2020 = Ajv2020; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2020; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -var validation_error_1 = require("./runtime/validation_error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } }); -var ref_error_1 = require("./compile/ref_error"); -Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } }); -//# sourceMappingURL=2020.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js.map deleted file mode 100644 index 2f4fda81..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2020.js","sourceRoot":"","sources":["../lib/2020.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AAEvC,wDAA4D;AAC5D,gEAAwD;AACxD,oEAA0D;AAE1D,MAAM,cAAc,GAAG,8CAA8C,CAAA;AAErE,MAAa,OAAQ,SAAQ,cAAO;IAClC,YAAY,OAAgB,EAAE;QAC5B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,IAAI;SAClB,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,mBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3D,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,MAAM,EAAC,KAAK,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AA5BD,0BA4BC;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;AAChC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA;AACnD,+DAAqE;AAA7D,mHAAA,OAAO,OAAmB;AAClC,iDAA8D;AAAtD,4GAAA,OAAO,OAAmB"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.d.ts deleted file mode 100644 index fce3b03b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore from "./core"; -export declare class Ajv extends AjvCore { - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, SchemaValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { default as ValidationError } from "./runtime/validation_error"; -export { default as MissingRefError } from "./compile/ref_error"; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js deleted file mode 100644 index 8eecf1be..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const discriminator_1 = require("./vocabularies/discriminator"); -const draft7MetaSchema = require("./refs/json-schema-draft-07.json"); -const META_SUPPORT_DATA = ["/properties"]; -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"; -class Ajv extends core_1.default { - _addVocabularies() { - super._addVocabularies(); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema; - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -exports.Ajv = Ajv; -module.exports = exports = Ajv; -module.exports.Ajv = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -var validation_error_1 = require("./runtime/validation_error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } }); -var ref_error_1 = require("./compile/ref_error"); -Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } }); -//# sourceMappingURL=ajv.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js.map deleted file mode 100644 index 42c3edf1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/ajv.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv.js","sourceRoot":"","sources":["../lib/ajv.ts"],"names":[],"mappings":";;;AACA,iCAA4B;AAC5B,kDAAsD;AACtD,gEAAwD;AACxD,qEAAoE;AAEpE,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,MAAM,cAAc,GAAG,wCAAwC,CAAA;AAE/D,MAAa,GAAI,SAAQ,cAAO;IAC9B,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,gBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,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AA;AAAQ,kGAAA,OAAO,OAAA;AACnD,+DAAqE;AAA7D,mHAAA,OAAO,OAAmB;AAClC,iDAA8D;AAAtD,4GAAA,OAAO,OAAmB"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts deleted file mode 100644 index a0220ad7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export declare abstract class _CodeOrName { - abstract readonly str: string; - abstract readonly names: UsedNames; - abstract toString(): string; - abstract emptyStr(): boolean; -} -export declare const IDENTIFIER: RegExp; -export declare class Name extends _CodeOrName { - readonly str: string; - constructor(s: string); - toString(): string; - emptyStr(): boolean; - get names(): UsedNames; -} -export declare class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[]; - private _str?; - private _names?; - constructor(code: string | readonly CodeItem[]); - toString(): string; - emptyStr(): boolean; - get str(): string; - get names(): UsedNames; -} -export type CodeItem = Name | string | number | boolean | null; -export type UsedNames = Record; -export type Code = _Code | Name; -export type SafeExpr = Code | number | boolean | null; -export declare const nil: _Code; -type CodeArg = SafeExpr | string | undefined; -export declare function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code; -export declare function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code; -export declare function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void; -export declare function strConcat(c1: Code, c2: Code): Code; -export declare function stringify(x: unknown): Code; -export declare function safeStringify(x: unknown): string; -export declare function getProperty(key: Code | string | number): Code; -export declare function getEsmExportName(key: Code | string | number): Code; -export declare function regexpCode(rx: RegExp): Code; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js deleted file mode 100644 index f8268838..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; -class _CodeOrName { -} -exports._CodeOrName = _CodeOrName; -exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; -class Name extends _CodeOrName { - constructor(s) { - super(); - if (!exports.IDENTIFIER.test(s)) - throw new Error("CodeGen: name must be a valid identifier"); - this.str = s; - } - toString() { - return this.str; - } - emptyStr() { - return false; - } - get names() { - return { [this.str]: 1 }; - } -} -exports.Name = Name; -class _Code extends _CodeOrName { - constructor(code) { - super(); - this._items = typeof code === "string" ? [code] : code; - } - toString() { - return this.str; - } - emptyStr() { - if (this._items.length > 1) - return false; - const item = this._items[0]; - return item === "" || item === '""'; - } - get str() { - var _a; - return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); - } - get names() { - var _a; - return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { - if (c instanceof Name) - names[c.str] = (names[c.str] || 0) + 1; - return names; - }, {}))); - } -} -exports._Code = _Code; -exports.nil = new _Code(""); -function _(strs, ...args) { - const code = [strs[0]]; - let i = 0; - while (i < args.length) { - addCodeArg(code, args[i]); - code.push(strs[++i]); - } - return new _Code(code); -} -exports._ = _; -const plus = new _Code("+"); -function str(strs, ...args) { - const expr = [safeStringify(strs[0])]; - let i = 0; - while (i < args.length) { - expr.push(plus); - addCodeArg(expr, args[i]); - expr.push(plus, safeStringify(strs[++i])); - } - optimize(expr); - return new _Code(expr); -} -exports.str = str; -function addCodeArg(code, arg) { - if (arg instanceof _Code) - code.push(...arg._items); - else if (arg instanceof Name) - code.push(arg); - else - code.push(interpolate(arg)); -} -exports.addCodeArg = addCodeArg; -function optimize(expr) { - let i = 1; - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]); - if (res !== undefined) { - expr.splice(i - 1, 3, res); - continue; - } - expr[i++] = "+"; - } - i++; - } -} -function mergeExprItems(a, b) { - if (b === '""') - return a; - if (a === '""') - return b; - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') - return; - if (typeof b != "string") - return `${a.slice(0, -1)}${b}"`; - if (b[0] === '"') - return a.slice(0, -1) + b.slice(1); - return; - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) - return `"${a}${b.slice(1)}`; - return; -} -function strConcat(c1, c2) { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; -} -exports.strConcat = strConcat; -// TODO do not allow arrays here -function interpolate(x) { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x); -} -function stringify(x) { - return new _Code(safeStringify(x)); -} -exports.stringify = stringify; -function safeStringify(x) { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029"); -} -exports.safeStringify = safeStringify; -function getProperty(key) { - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; -} -exports.getProperty = getProperty; -//Does best effort to format the name properly -function getEsmExportName(key) { - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { - return new _Code(`${key}`); - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); -} -exports.getEsmExportName = getEsmExportName; -function regexpCode(rx) { - return new _Code(rx.toString()); -} -exports.regexpCode = regexpCode; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js.map deleted file mode 100644 index 7ff7a0e6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../lib/compile/codegen/code.ts"],"names":[],"mappings":";;;AAAA,MAAsB,WAAW;CAKhC;AALD,kCAKC;AAEY,QAAA,UAAU,GAAG,uBAAuB,CAAA;AAEjD,MAAa,IAAK,SAAQ,WAAW;IAEnC,YAAY,CAAS;QACnB,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,kBAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QACpF,IAAI,CAAC,GAAG,GAAG,CAAC,CAAA;IACd,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,GAAG,CAAA;IACjB,CAAC;IAED,QAAQ;QACN,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,KAAK;QACP,OAAO,EAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAC,CAAA;IACxB,CAAC;CACF;AAnBD,oBAmBC;AAED,MAAa,KAAM,SAAQ,WAAW;IAKpC,YAAY,IAAkC;QAC5C,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,MAAM,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IACxD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,GAAG,CAAA;IACjB,CAAC;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,KAAK,CAAA;QACxC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;QAC3B,OAAO,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,IAAI,CAAA;IACrC,CAAC;IAED,IAAI,GAAG;;QAC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ACxF,CAAC;AALD,4CAKC;AAED,SAAgB,UAAU,CAAC,EAAU;IACnC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;AACjC,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts deleted file mode 100644 index d586a4b4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { ScopeValueSets, NameValue, ValueScope, ValueScopeName } from "./scope"; -import { _Code, Code, Name } from "./code"; -import { Scope } from "./scope"; -export { _, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code } from "./code"; -export { Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds } from "./scope"; -export type SafeExpr = Code | number | boolean | null; -export type Block = Code | (() => void); -export declare const operators: { - GT: _Code; - GTE: _Code; - LT: _Code; - LTE: _Code; - EQ: _Code; - NEQ: _Code; - NOT: _Code; - OR: _Code; - AND: _Code; - ADD: _Code; -}; -export interface CodeGenOptions { - es5?: boolean; - lines?: boolean; - ownProperties?: boolean; -} -export declare class CodeGen { - readonly _scope: Scope; - readonly _extScope: ValueScope; - readonly _values: ScopeValueSets; - private readonly _nodes; - private readonly _blockStarts; - private readonly _constants; - private readonly opts; - constructor(extScope: ValueScope, opts?: CodeGenOptions); - toString(): string; - name(prefix: string): Name; - scopeName(prefix: string): ValueScopeName; - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name; - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name): Code; - scopeCode(): Code; - private _def; - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name; - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen; - add(lhs: Code, rhs: SafeExpr): CodeGen; - code(c: Block | SafeExpr): CodeGen; - object(...keyValues: [Name | string, SafeExpr | string][]): _Code; - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen; - elseIf(condition: Code | boolean): CodeGen; - else(): CodeGen; - endIf(): CodeGen; - private _for; - for(iteration: Code, forBody?: Block): CodeGen; - forRange(nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void, varKind?: Code): CodeGen; - forOf(nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - forIn(nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - endFor(): CodeGen; - label(label: Name): CodeGen; - break(label?: Code): CodeGen; - return(value: Block | SafeExpr): CodeGen; - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen; - throw(error: Code): CodeGen; - block(body?: Block, nodeCount?: number): CodeGen; - endBlock(nodeCount?: number): CodeGen; - func(name: Name, args?: Code, async?: boolean, funcBody?: Block): CodeGen; - endFunc(): CodeGen; - optimize(n?: number): void; - private _leafNode; - private _blockNode; - private _endBlockNode; - private _elseNode; - private get _root(); - private get _currNode(); - private set _currNode(value); -} -export declare function not(x: T): T; -export declare function and(...args: Code[]): Code; -export declare function or(...args: Code[]): Code; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js deleted file mode 100644 index a6c805af..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js +++ /dev/null @@ -1,697 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; -const code_1 = require("./code"); -const scope_1 = require("./scope"); -var code_2 = require("./code"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return code_2._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return code_2.str; } }); -Object.defineProperty(exports, "strConcat", { enumerable: true, get: function () { return code_2.strConcat; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return code_2.nil; } }); -Object.defineProperty(exports, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return code_2.stringify; } }); -Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return code_2.Name; } }); -var scope_2 = require("./scope"); -Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } }); -Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function () { return scope_2.ValueScope; } }); -Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function () { return scope_2.ValueScopeName; } }); -Object.defineProperty(exports, "varKinds", { enumerable: true, get: function () { return scope_2.varKinds; } }); -exports.operators = { - GT: new code_1._Code(">"), - GTE: new code_1._Code(">="), - LT: new code_1._Code("<"), - LTE: new code_1._Code("<="), - EQ: new code_1._Code("==="), - NEQ: new code_1._Code("!=="), - NOT: new code_1._Code("!"), - OR: new code_1._Code("||"), - AND: new code_1._Code("&&"), - ADD: new code_1._Code("+"), -}; -class Node { - optimizeNodes() { - return this; - } - optimizeNames(_names, _constants) { - return this; - } -} -class Def extends Node { - constructor(varKind, name, rhs) { - super(); - this.varKind = varKind; - this.name = name; - this.rhs = rhs; - } - render({ es5, _n }) { - const varKind = es5 ? scope_1.varKinds.var : this.varKind; - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`; - return `${varKind} ${this.name}${rhs};` + _n; - } - optimizeNames(names, constants) { - if (!names[this.name.str]) - return; - if (this.rhs) - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {}; - } -} -class Assign extends Node { - constructor(lhs, rhs, sideEffects) { - super(); - this.lhs = lhs; - this.rhs = rhs; - this.sideEffects = sideEffects; - } - render({ _n }) { - return `${this.lhs} = ${this.rhs};` + _n; - } - optimizeNames(names, constants) { - if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) - return; - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names }; - return addExprNames(names, this.rhs); - } -} -class AssignOp extends Assign { - constructor(lhs, op, rhs, sideEffects) { - super(lhs, rhs, sideEffects); - this.op = op; - } - render({ _n }) { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n; - } -} -class Label extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - return `${this.label}:` + _n; - } -} -class Break extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - const label = this.label ? ` ${this.label}` : ""; - return `break${label};` + _n; - } -} -class Throw extends Node { - constructor(error) { - super(); - this.error = error; - } - render({ _n }) { - return `throw ${this.error};` + _n; - } - get names() { - return this.error.names; - } -} -class AnyCode extends Node { - constructor(code) { - super(); - this.code = code; - } - render({ _n }) { - return `${this.code};` + _n; - } - optimizeNodes() { - return `${this.code}` ? this : undefined; - } - optimizeNames(names, constants) { - this.code = optimizeExpr(this.code, names, constants); - return this; - } - get names() { - return this.code instanceof code_1._CodeOrName ? this.code.names : {}; - } -} -class ParentNode extends Node { - constructor(nodes = []) { - super(); - this.nodes = nodes; - } - render(opts) { - return this.nodes.reduce((code, n) => code + n.render(opts), ""); - } - optimizeNodes() { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i].optimizeNodes(); - if (Array.isArray(n)) - nodes.splice(i, 1, ...n); - else if (n) - nodes[i] = n; - else - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - optimizeNames(names, constants) { - const { nodes } = this; - let i = nodes.length; - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i]; - if (n.optimizeNames(names, constants)) - continue; - subtractNames(names, n.names); - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - get names() { - return this.nodes.reduce((names, n) => addNames(names, n.names), {}); - } -} -class BlockNode extends ParentNode { - render(opts) { - return "{" + opts._n + super.render(opts) + "}" + opts._n; - } -} -class Root extends ParentNode { -} -class Else extends BlockNode { -} -Else.kind = "else"; -class If extends BlockNode { - constructor(condition, nodes) { - super(nodes); - this.condition = condition; - } - render(opts) { - let code = `if(${this.condition})` + super.render(opts); - if (this.else) - code += "else " + this.else.render(opts); - return code; - } - optimizeNodes() { - super.optimizeNodes(); - const cond = this.condition; - if (cond === true) - return this.nodes; // else is ignored here - let e = this.else; - if (e) { - const ns = e.optimizeNodes(); - e = this.else = Array.isArray(ns) ? new Else(ns) : ns; - } - if (e) { - if (cond === false) - return e instanceof If ? e : e.nodes; - if (this.nodes.length) - return this; - return new If(not(cond), e instanceof If ? [e] : e.nodes); - } - if (cond === false || !this.nodes.length) - return undefined; - return this; - } - optimizeNames(names, constants) { - var _a; - this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - if (!(super.optimizeNames(names, constants) || this.else)) - return; - this.condition = optimizeExpr(this.condition, names, constants); - return this; - } - get names() { - const names = super.names; - addExprNames(names, this.condition); - if (this.else) - addNames(names, this.else.names); - return names; - } -} -If.kind = "if"; -class For extends BlockNode { -} -For.kind = "for"; -class ForLoop extends For { - constructor(iteration) { - super(); - this.iteration = iteration; - } - render(opts) { - return `for(${this.iteration})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iteration = optimizeExpr(this.iteration, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iteration.names); - } -} -class ForRange extends For { - constructor(varKind, name, from, to) { - super(); - this.varKind = varKind; - this.name = name; - this.from = from; - this.to = to; - } - render(opts) { - const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind; - const { name, from, to } = this; - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts); - } - get names() { - const names = addExprNames(super.names, this.from); - return addExprNames(names, this.to); - } -} -class ForIter extends For { - constructor(loop, varKind, name, iterable) { - super(); - this.loop = loop; - this.varKind = varKind; - this.name = name; - this.iterable = iterable; - } - render(opts) { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iterable = optimizeExpr(this.iterable, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iterable.names); - } -} -class Func extends BlockNode { - constructor(name, args, async) { - super(); - this.name = name; - this.args = args; - this.async = async; - } - render(opts) { - const _async = this.async ? "async " : ""; - return `${_async}function ${this.name}(${this.args})` + super.render(opts); - } -} -Func.kind = "func"; -class Return extends ParentNode { - render(opts) { - return "return " + super.render(opts); - } -} -Return.kind = "return"; -class Try extends BlockNode { - render(opts) { - let code = "try" + super.render(opts); - if (this.catch) - code += this.catch.render(opts); - if (this.finally) - code += this.finally.render(opts); - return code; - } - optimizeNodes() { - var _a, _b; - super.optimizeNodes(); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes(); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes(); - return this; - } - optimizeNames(names, constants) { - var _a, _b; - super.optimizeNames(names, constants); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants); - return this; - } - get names() { - const names = super.names; - if (this.catch) - addNames(names, this.catch.names); - if (this.finally) - addNames(names, this.finally.names); - return names; - } -} -class Catch extends BlockNode { - constructor(error) { - super(); - this.error = error; - } - render(opts) { - return `catch(${this.error})` + super.render(opts); - } -} -Catch.kind = "catch"; -class Finally extends BlockNode { - render(opts) { - return "finally" + super.render(opts); - } -} -Finally.kind = "finally"; -class CodeGen { - constructor(extScope, opts = {}) { - this._values = {}; - this._blockStarts = []; - this._constants = {}; - this.opts = { ...opts, _n: opts.lines ? "\n" : "" }; - this._extScope = extScope; - this._scope = new scope_1.Scope({ parent: extScope }); - this._nodes = [new Root()]; - } - toString() { - return this._root.render(this.opts); - } - // returns unique name in the internal scope - name(prefix) { - return this._scope.name(prefix); - } - // reserves unique name in the external scope - scopeName(prefix) { - return this._extScope.name(prefix); - } - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName, value) { - const name = this._extScope.value(prefixOrName, value); - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()); - vs.add(name); - return name; - } - getScopeValue(prefix, keyOrRef) { - return this._extScope.getValue(prefix, keyOrRef); - } - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName) { - return this._extScope.scopeRefs(scopeName, this._values); - } - scopeCode() { - return this._extScope.scopeCode(this._values); - } - _def(varKind, nameOrPrefix, rhs, constant) { - const name = this._scope.toName(nameOrPrefix); - if (rhs !== undefined && constant) - this._constants[name.str] = rhs; - this._leafNode(new Def(varKind, name, rhs)); - return name; - } - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant); - } - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant); - } - // `var` declaration with optional assignment - var(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant); - } - // assignment code - assign(lhs, rhs, sideEffects) { - return this._leafNode(new Assign(lhs, rhs, sideEffects)); - } - // `+=` code - add(lhs, rhs) { - return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs)); - } - // appends passed SafeExpr to code or executes Block - code(c) { - if (typeof c == "function") - c(); - else if (c !== code_1.nil) - this._leafNode(new AnyCode(c)); - return this; - } - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues) { - const code = ["{"]; - for (const [key, value] of keyValues) { - if (code.length > 1) - code.push(","); - code.push(key); - if (key !== value || this.opts.es5) { - code.push(":"); - (0, code_1.addCodeArg)(code, value); - } - } - code.push("}"); - return new code_1._Code(code); - } - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition, thenBody, elseBody) { - this._blockNode(new If(condition)); - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf(); - } - else if (thenBody) { - this.code(thenBody).endIf(); - } - else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body'); - } - return this; - } - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition) { - return this._elseNode(new If(condition)); - } - // `else` clause - only valid after `if` or `else if` clauses - else() { - return this._elseNode(new Else()); - } - // end `if` statement (needed if gen.if was used only with condition) - endIf() { - return this._endBlockNode(If, Else); - } - _for(node, forBody) { - this._blockNode(node); - if (forBody) - this.code(forBody).endFor(); - return this; - } - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration, forBody) { - return this._for(new ForLoop(iteration), forBody); - } - // `for` statement for a range of values - forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) { - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)); - } - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) { - const name = this._scope.toName(nameOrPrefix); - if (this.opts.es5) { - const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, (0, code_1._) `${arr}.length`, (i) => { - this.var(name, (0, code_1._) `${arr}[${i}]`); - forBody(name); - }); - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)); - } - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody); - } - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); - } - // end `for` loop - endFor() { - return this._endBlockNode(For); - } - // `label` statement - label(label) { - return this._leafNode(new Label(label)); - } - // `break` statement - break(label) { - return this._leafNode(new Break(label)); - } - // `return` statement - return(value) { - const node = new Return(); - this._blockNode(node); - this.code(value); - if (node.nodes.length !== 1) - throw new Error('CodeGen: "return" should have one node'); - return this._endBlockNode(Return); - } - // `try` statement - try(tryBody, catchCode, finallyCode) { - if (!catchCode && !finallyCode) - throw new Error('CodeGen: "try" without "catch" and "finally"'); - const node = new Try(); - this._blockNode(node); - this.code(tryBody); - if (catchCode) { - const error = this.name("e"); - this._currNode = node.catch = new Catch(error); - catchCode(error); - } - if (finallyCode) { - this._currNode = node.finally = new Finally(); - this.code(finallyCode); - } - return this._endBlockNode(Catch, Finally); - } - // `throw` statement - throw(error) { - return this._leafNode(new Throw(error)); - } - // start self-balancing block - block(body, nodeCount) { - this._blockStarts.push(this._nodes.length); - if (body) - this.code(body).endBlock(nodeCount); - return this; - } - // end the current self-balancing block - endBlock(nodeCount) { - const len = this._blockStarts.pop(); - if (len === undefined) - throw new Error("CodeGen: not in self-balancing block"); - const toClose = this._nodes.length - len; - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`); - } - this._nodes.length = len; - return this; - } - // `function` heading (or definition if funcBody is passed) - func(name, args = code_1.nil, async, funcBody) { - this._blockNode(new Func(name, args, async)); - if (funcBody) - this.code(funcBody).endFunc(); - return this; - } - // end function definition - endFunc() { - return this._endBlockNode(Func); - } - optimize(n = 1) { - while (n-- > 0) { - this._root.optimizeNodes(); - this._root.optimizeNames(this._root.names, this._constants); - } - } - _leafNode(node) { - this._currNode.nodes.push(node); - return this; - } - _blockNode(node) { - this._currNode.nodes.push(node); - this._nodes.push(node); - } - _endBlockNode(N1, N2) { - const n = this._currNode; - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop(); - return this; - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`); - } - _elseNode(node) { - const n = this._currNode; - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"'); - } - this._currNode = n.else = node; - return this; - } - get _root() { - return this._nodes[0]; - } - get _currNode() { - const ns = this._nodes; - return ns[ns.length - 1]; - } - set _currNode(node) { - const ns = this._nodes; - ns[ns.length - 1] = node; - } -} -exports.CodeGen = CodeGen; -function addNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) + (from[n] || 0); - return names; -} -function addExprNames(names, from) { - return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names; -} -function optimizeExpr(expr, names, constants) { - if (expr instanceof code_1.Name) - return replaceName(expr); - if (!canOptimize(expr)) - return expr; - return new code_1._Code(expr._items.reduce((items, c) => { - if (c instanceof code_1.Name) - c = replaceName(c); - if (c instanceof code_1._Code) - items.push(...c._items); - else - items.push(c); - return items; - }, [])); - function replaceName(n) { - const c = constants[n.str]; - if (c === undefined || names[n.str] !== 1) - return n; - delete names[n.str]; - return c; - } - function canOptimize(e) { - return (e instanceof code_1._Code && - e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined)); - } -} -function subtractNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) - (from[n] || 0); -} -function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`; -} -exports.not = not; -const andCode = mappend(exports.operators.AND); -// boolean AND (&&) expression with the passed arguments -function and(...args) { - return args.reduce(andCode); -} -exports.and = and; -const orCode = mappend(exports.operators.OR); -// boolean OR (||) expression with the passed arguments -function or(...args) { - return args.reduce(orCode); -} -exports.or = or; -function mappend(op) { - return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`); -} -function par(x) { - return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js.map deleted file mode 100644 index baef9cff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/codegen/index.ts"],"names":[],"mappings":";;;AACA,iCAA8F;AAC9F,mCAAuC;AAEvC,+BAA6F;AAArF,yFAAA,CAAC,OAAA;AAAE,2FAAA,GAAG,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,2FAAA,GAAG,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAAE,4FAAA,IAAI,OAAA;AACxE,iCAA+F;AAAvF,8FAAA,KAAK,OAAA;AAAc,mGAAA,UAAU,OAAA;AAAE,uGAAA,cAAc,OAAA;AAAkB,iGAAA,QAAQ,OAAA;AAQlE,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE,IAAI,YAAK,CAAC,GAAG,CAAC;IAClB,GAAG,EAAE,IAAI,YAAK,CAAC,IAAI,CAAC;IACpB,EAAE,EAAE,IAAI,YAAK,CAAC,GAAG,CAAC;IAClB,GAAG,EAAE,IAAI,YAAK,CAAC,IAAI,CAAC;IACpB,EAAE,EAAE,IAAI,YAAK,CAAC,KAAK,CAAC;IACpB,GAAG,EAAE,IAAI,YAAK,CAAC,KAAK,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AC,EAAA,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AACjF,CAAC;AAED,SAAS,GAAG,CAAC,CAAO;IAClB,OAAO,CAAC,YAAY,WAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,QAAC,EAAA,IAAI,CAAC,GAAG,CAAA;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts deleted file mode 100644 index 3d953053..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Code, Name } from "./code"; -interface NameGroup { - prefix: string; - index: number; -} -export interface NameValue { - ref: ValueReference; - key?: unknown; - code?: Code; -} -export type ValueReference = unknown; -interface ScopeOptions { - prefixes?: Set; - parent?: Scope; -} -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore; - es5?: boolean; - lines?: boolean; -} -export type ScopeStore = Record; -type ScopeValues = { - [Prefix in string]?: Map; -}; -export type ScopeValueSets = { - [Prefix in string]?: Set; -}; -export declare enum UsedValueState { - Started = 0, - Completed = 1 -} -export type UsedScopeValues = { - [Prefix in string]?: Map; -}; -export declare const varKinds: { - const: Name; - let: Name; - var: Name; -}; -export declare class Scope { - protected readonly _names: { - [Prefix in string]?: NameGroup; - }; - protected readonly _prefixes?: Set; - protected readonly _parent?: Scope; - constructor({ prefixes, parent }?: ScopeOptions); - toName(nameOrPrefix: Name | string): Name; - name(prefix: string): Name; - protected _newName(prefix: string): string; - private _nameGroup; -} -interface ScopePath { - property: string; - itemIndex: number; -} -export declare class ValueScopeName extends Name { - readonly prefix: string; - value?: NameValue; - scopePath?: Code; - constructor(prefix: string, nameStr: string); - setValue(value: NameValue, { property, itemIndex }: ScopePath): void; -} -interface VSOptions extends ValueScopeOptions { - _n: Code; -} -export declare class ValueScope extends Scope { - protected readonly _values: ScopeValues; - protected readonly _scope: ScopeStore; - readonly opts: VSOptions; - constructor(opts: ValueScopeOptions); - get(): ScopeStore; - name(prefix: string): ValueScopeName; - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName; - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name, values?: ScopeValues | ScopeValueSets): Code; - scopeCode(values?: ScopeValues | ScopeValueSets, usedValues?: UsedScopeValues, getCode?: (n: ValueScopeName) => Code | undefined): Code; - private _reduceValues; -} -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js deleted file mode 100644 index 4bc7794e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0; -const code_1 = require("./code"); -class ValueError extends Error { - constructor(name) { - super(`CodeGen: "code" for ${name} not defined`); - this.value = name.value; - } -} -var UsedValueState; -(function (UsedValueState) { - UsedValueState[UsedValueState["Started"] = 0] = "Started"; - UsedValueState[UsedValueState["Completed"] = 1] = "Completed"; -})(UsedValueState || (exports.UsedValueState = UsedValueState = {})); -exports.varKinds = { - const: new code_1.Name("const"), - let: new code_1.Name("let"), - var: new code_1.Name("var"), -}; -class Scope { - constructor({ prefixes, parent } = {}) { - this._names = {}; - this._prefixes = prefixes; - this._parent = parent; - } - toName(nameOrPrefix) { - return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix); - } - name(prefix) { - return new code_1.Name(this._newName(prefix)); - } - _newName(prefix) { - const ng = this._names[prefix] || this._nameGroup(prefix); - return `${prefix}${ng.index++}`; - } - _nameGroup(prefix) { - var _a, _b; - if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`); - } - return (this._names[prefix] = { prefix, index: 0 }); - } -} -exports.Scope = Scope; -class ValueScopeName extends code_1.Name { - constructor(prefix, nameStr) { - super(nameStr); - this.prefix = prefix; - } - setValue(value, { property, itemIndex }) { - this.value = value; - this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`; - } -} -exports.ValueScopeName = ValueScopeName; -const line = (0, code_1._) `\n`; -class ValueScope extends Scope { - constructor(opts) { - super(opts); - this._values = {}; - this._scope = opts.scope; - this.opts = { ...opts, _n: opts.lines ? line : code_1.nil }; - } - get() { - return this._scope; - } - name(prefix) { - return new ValueScopeName(prefix, this._newName(prefix)); - } - value(nameOrPrefix, value) { - var _a; - if (value.ref === undefined) - throw new Error("CodeGen: ref must be passed in value"); - const name = this.toName(nameOrPrefix); - const { prefix } = name; - const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref; - let vs = this._values[prefix]; - if (vs) { - const _name = vs.get(valueKey); - if (_name) - return _name; - } - else { - vs = this._values[prefix] = new Map(); - } - vs.set(valueKey, name); - const s = this._scope[prefix] || (this._scope[prefix] = []); - const itemIndex = s.length; - s[itemIndex] = value.ref; - name.setValue(value, { property: prefix, itemIndex }); - return name; - } - getValue(prefix, keyOrRef) { - const vs = this._values[prefix]; - if (!vs) - return; - return vs.get(keyOrRef); - } - scopeRefs(scopeName, values = this._values) { - return this._reduceValues(values, (name) => { - if (name.scopePath === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return (0, code_1._) `${scopeName}${name.scopePath}`; - }); - } - scopeCode(values = this._values, usedValues, getCode) { - return this._reduceValues(values, (name) => { - if (name.value === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return name.value.code; - }, usedValues, getCode); - } - _reduceValues(values, valueCode, usedValues = {}, getCode) { - let code = code_1.nil; - for (const prefix in values) { - const vs = values[prefix]; - if (!vs) - continue; - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()); - vs.forEach((name) => { - if (nameSet.has(name)) - return; - nameSet.set(name, UsedValueState.Started); - let c = valueCode(name); - if (c) { - const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`; - } - else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) { - code = (0, code_1._) `${code}${c}${this.opts._n}`; - } - else { - throw new ValueError(name); - } - nameSet.set(name, UsedValueState.Completed); - }); - } - return code; - } -} -exports.ValueScope = ValueScope; -//# sourceMappingURL=scope.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map deleted file mode 100644 index 911769f8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../lib/compile/codegen/scope.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAezC,MAAM,UAAW,SAAQ,KAAK;IAE5B,YAAY,IAAoB;QAC9B,KAAK,CAAC,uBAAuB,IAAI,cAAc,CAAC,CAAA;QAChD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;IACzB,CAAC;CACF;AAuBD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,6DAAS,CAAA;AACX,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAMY,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,IAAI,WAAI,CAAC,OAAO,CAAC;IACxB,GAAG,EAAE,IAAI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G,CAAC,CAAC,CAAC,gBAAQ,CAAC,KAAK,CAAA;oBACzD,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;gBACxD,CAAC;qBAAM,IAAI,CAAC,CAAC,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,CAAC,EAAE,CAAC;oBACjC,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;gBACtC,CAAC;qBAAM,CAAC;oBACN,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;gBAC5B,CAAC;gBACD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;YAC7C,CAAC,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAjGD,gCAiGC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.d.ts deleted file mode 100644 index 74eef7e2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { KeywordErrorCxt, KeywordErrorDefinition } from "../types"; -import { CodeGen, Code, Name } from "./codegen"; -export declare const keywordError: KeywordErrorDefinition; -export declare const keyword$DataError: KeywordErrorDefinition; -export interface ErrorPaths { - instancePath?: Code; - schemaPath?: string; - parentSchema?: boolean; -} -export declare function reportError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths, overrideAllErrors?: boolean): void; -export declare function reportExtraError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths): void; -export declare function resetErrorsCount(gen: CodeGen, errsCount: Name): void; -export declare function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }: KeywordErrorCxt): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js deleted file mode 100644 index 24d721d8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0; -const codegen_1 = require("./codegen"); -const util_1 = require("./util"); -const names_1 = require("./names"); -exports.keywordError = { - message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`, -}; -exports.keyword$DataError = { - message: ({ keyword, schemaType }) => schemaType - ? (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)` - : (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`, -}; -function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) { - addError(gen, errObj); - } - else { - returnErrors(it, (0, codegen_1._) `[${errObj}]`); - } -} -exports.reportError = reportError; -function reportExtraError(cxt, error = exports.keywordError, errorPaths) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - addError(gen, errObj); - if (!(compositeRule || allErrors)) { - returnErrors(it, names_1.default.vErrors); - } -} -exports.reportExtraError = reportExtraError; -function resetErrorsCount(gen, errsCount) { - gen.assign(names_1.default.errors, errsCount); - gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); -} -exports.resetErrorsCount = resetErrorsCount; -function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) { - /* istanbul ignore if */ - if (errsCount === undefined) - throw new Error("ajv implementation error"); - const err = gen.name("err"); - gen.forRange("i", errsCount, names_1.default.errors, (i) => { - gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`); - gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); - gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`); - if (it.opts.verbose) { - gen.assign((0, codegen_1._) `${err}.schema`, schemaValue); - gen.assign((0, codegen_1._) `${err}.data`, data); - } - }); -} -exports.extendErrors = extendErrors; -function addError(gen, errObj) { - const err = gen.const("err", errObj); - gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`); - gen.code((0, codegen_1._) `${names_1.default.errors}++`); -} -function returnErrors(it, errs) { - const { gen, validateName, schemaEnv } = it; - if (schemaEnv.$async) { - gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, errs); - gen.return(false); - } -} -const E = { - keyword: new codegen_1.Name("keyword"), - schemaPath: new codegen_1.Name("schemaPath"), // also used in JTD errors - params: new codegen_1.Name("params"), - propertyName: new codegen_1.Name("propertyName"), - message: new codegen_1.Name("message"), - schema: new codegen_1.Name("schema"), - parentSchema: new codegen_1.Name("parentSchema"), -}; -function errorObjectCode(cxt, error, errorPaths) { - const { createErrors } = cxt.it; - if (createErrors === false) - return (0, codegen_1._) `{}`; - return errorObject(cxt, error, errorPaths); -} -function errorObject(cxt, error, errorPaths = {}) { - const { gen, it } = cxt; - const keyValues = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ]; - extraErrorProps(cxt, error, keyValues); - return gen.object(...keyValues); -} -function errorInstancePath({ errorPath }, { instancePath }) { - const instPath = instancePath - ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` - : errorPath; - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; -} -function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) { - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`; - if (schemaPath) { - schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; - } - return [E.schemaPath, schPath]; -} -function extraErrorProps(cxt, { params, message }, keyValues) { - const { keyword, data, schemaValue, it } = cxt; - const { opts, propertyName, topSchemaRef, schemaPath } = it; - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._) `{}`]); - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); - } - if (opts.verbose) { - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); - } - if (propertyName) - keyValues.push([E.propertyName, propertyName]); -} -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js.map deleted file mode 100644 index ea08e4e3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/compile/errors.ts"],"names":[],"mappings":";;;AAEA,uCAAgE;AAEhE,iCAAyC;AACzC,mCAAuB;AAEV,QAAA,YAAY,GAA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,IAAI,CACZ,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EACpB,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,IAAA,WAAC,EAAA,IAAI,CAAC,CACxE,CAAA;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;IACpF,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,SAAS,CAAC,IAAI,CACZ,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,EACvB,CAAC,CAAC,CAAC,YAAY,EAAE,IAAA,WAAC,EAAA,GAAG,YAAY,GAAG,UAAU,EAAE,CAAC,EACjD,CAAC,eAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CACf,CAAA;IACH,CAAC;IACD,IAAI,YAAY;QAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.d.ts deleted file mode 100644 index 2809353d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { AnySchema, AnySchemaObject, AnyValidateFunction, EvaluatedProperties, EvaluatedItems } from "../types"; -import type Ajv from "../core"; -import type { InstanceOptions } from "../core"; -import { CodeGen, Name, Code, ValueScopeName } from "./codegen"; -import { LocalRefs } from "./resolve"; -import { JSONType } from "./rules"; -export type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema; -}; -export interface SchemaCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly data: Name; - readonly parentData: Name; - readonly parentDataProperty: Code | number; - readonly dataNames: Name[]; - readonly dataPathArr: (Code | number)[]; - readonly dataLevel: number; - dataTypes: JSONType[]; - definedProperties: Set; - readonly topSchemaRef: Code; - readonly validateName: Name; - evaluated?: Name; - readonly ValidationError?: Name; - readonly schema: AnySchema; - readonly schemaEnv: SchemaEnv; - readonly rootId: string; - baseId: string; - readonly schemaPath: Code; - readonly errSchemaPath: string; - readonly errorPath: Code; - readonly propertyName?: Name; - readonly compositeRule?: boolean; - props?: EvaluatedProperties | Name; - items?: EvaluatedItems | Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - readonly createErrors?: boolean; - readonly opts: InstanceOptions; - readonly self: Ajv; -} -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject; -} -interface SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root?: SchemaEnv; - readonly baseId?: string; - readonly schemaPath?: string; - readonly localRefs?: LocalRefs; - readonly meta?: boolean; -} -export declare class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root: SchemaEnv; - baseId: string; - schemaPath?: string; - localRefs?: LocalRefs; - readonly meta?: boolean; - readonly $async?: boolean; - readonly refs: SchemaRefs; - readonly dynamicAnchors: { - [Ref in string]?: true; - }; - validate?: AnyValidateFunction; - validateName?: ValueScopeName; - serialize?: (data: unknown) => string; - serializeName?: ValueScopeName; - parse?: (data: string) => unknown; - parseName?: ValueScopeName; - constructor(env: SchemaEnvArgs); -} -export declare function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv; -export declare function resolveRef(this: Ajv, root: SchemaEnv, baseId: string, ref: string): AnySchema | SchemaEnv | undefined; -export declare function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void; -export declare function resolveSchema(this: Ajv, root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref: string): SchemaEnv | undefined; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js deleted file mode 100644 index 9e42a558..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js +++ /dev/null @@ -1,242 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0; -const codegen_1 = require("./codegen"); -const validation_error_1 = require("../runtime/validation_error"); -const names_1 = require("./names"); -const resolve_1 = require("./resolve"); -const util_1 = require("./util"); -const validate_1 = require("./validate"); -class SchemaEnv { - constructor(env) { - var _a; - this.refs = {}; - this.dynamicAnchors = {}; - let schema; - if (typeof env.schema == "object") - schema = env.schema; - this.schema = env.schema; - this.schemaId = env.schemaId; - this.root = env.root || this; - this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || "$id"]); - this.schemaPath = env.schemaPath; - this.localRefs = env.localRefs; - this.meta = env.meta; - this.$async = schema === null || schema === void 0 ? void 0 : schema.$async; - this.refs = {}; - } -} -exports.SchemaEnv = SchemaEnv; -// let codeSize = 0 -// let nodeCount = 0 -// Compiles schema in SchemaEnv -function compileSchema(sch) { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - let _ValidationError; - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: validation_error_1.default, - code: (0, codegen_1._) `require("ajv/dist/runtime/validation_error").default`, - }); - } - const validateName = gen.scopeName("validate"); - sch.validateName = validateName; - const schemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: names_1.default.data, - parentData: names_1.default.parentData, - parentDataProperty: names_1.default.parentDataProperty, - dataNames: [names_1.default.data], - dataPathArr: [codegen_1.nil], // TODO can its length be used as dataLevel if nil is removed? - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue("schema", this.opts.code.source === true - ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) } - : { ref: sch.schema }), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: codegen_1.nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: (0, codegen_1._) `""`, - opts: this.opts, - self: this, - }; - let sourceCode; - try { - this._compilations.add(sch); - (0, validate_1.validateFunctionCode)(schemaCxt); - gen.optimize(this.opts.code.optimize); - // gen.optimize(1) - const validateCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`; - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) - sourceCode = this.opts.code.process(sourceCode, sch); - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); - const validate = makeValidate(this, this.scope.get()); - this.scope.value(validateName, { ref: validate }); - validate.errors = null; - validate.schema = sch.schema; - validate.schemaEnv = sch; - if (sch.$async) - validate.$async = true; - if (this.opts.code.source === true) { - validate.source = { validateName, validateCode, scopeValues: gen._values }; - } - if (this.opts.unevaluated) { - const { props, items } = schemaCxt; - validate.evaluated = { - props: props instanceof codegen_1.Name ? undefined : props, - items: items instanceof codegen_1.Name ? undefined : items, - dynamicProps: props instanceof codegen_1.Name, - dynamicItems: items instanceof codegen_1.Name, - }; - if (validate.source) - validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated); - } - sch.validate = validate; - return sch; - } - catch (e) { - delete sch.validate; - delete sch.validateName; - if (sourceCode) - this.logger.error("Error compiling schema, function code:", sourceCode); - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e; - } - finally { - this._compilations.delete(sch); - } -} -exports.compileSchema = compileSchema; -function resolveRef(root, baseId, ref) { - var _a; - ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref); - const schOrFunc = root.refs[ref]; - if (schOrFunc) - return schOrFunc; - let _sch = resolve.call(this, root, ref); - if (_sch === undefined) { - const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv - const { schemaId } = this.opts; - if (schema) - _sch = new SchemaEnv({ schema, schemaId, root, baseId }); - } - if (_sch === undefined) - return; - return (root.refs[ref] = inlineOrCompile.call(this, _sch)); -} -exports.resolveRef = resolveRef; -function inlineOrCompile(sch) { - if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs)) - return sch.schema; - return sch.validate ? sch : compileSchema.call(this, sch); -} -// Index of schema compilation in the currently compiled list -function getCompilingSchema(schEnv) { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) - return sch; - } -} -exports.getCompilingSchema = getCompilingSchema; -function sameSchemaEnv(s1, s2) { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId; -} -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve(root, // information about the root schema for the current schema -ref // reference to resolve -) { - let sch; - while (typeof (sch = this.refs[ref]) == "string") - ref = sch; - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref); -} -// Resolve schema, its root and baseId -function resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref // reference to resolve -) { - const p = this.opts.uriResolver.parse(ref); - const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p); - let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined); - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root); - } - const id = (0, resolve_1.normalizeId)(refPath); - const schOrRef = this.refs[id] || this.schemas[id]; - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef); - if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== "object") - return; - return getJsonPointer.call(this, p, sch); - } - if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== "object") - return; - if (!schOrRef.validate) - compileSchema.call(this, schOrRef); - if (id === (0, resolve_1.normalizeId)(ref)) { - const { schema } = schOrRef; - const { schemaId } = this.opts; - const schId = schema[schemaId]; - if (schId) - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - return new SchemaEnv({ schema, schemaId, root, baseId }); - } - return getJsonPointer.call(this, p, schOrRef); -} -exports.resolveSchema = resolveSchema; -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]); -function getJsonPointer(parsedRef, { baseId, schema, root }) { - var _a; - if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== "/") - return; - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") - return; - const partSchema = schema[(0, util_1.unescapeFragment)(part)]; - if (partSchema === undefined) - return; - schema = partSchema; - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId]; - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - } - } - let env; - if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) { - const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref); - env = resolveSchema.call(this, root, $ref); - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const { schemaId } = this.opts; - env = env || new SchemaEnv({ schema, schemaId, root, baseId }); - if (env.schema !== env.root.schema) - return env; - return undefined; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js.map deleted file mode 100644 index e3df35a4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/compile/index.ts"],"names":[],"mappings":";;;AAUA,uCAAgF;AAChF,kEAAyD;AACzD,mCAAuB;AACvB,uCAAkG;AAClG,iCAA6D;AAC7D,yCAA+C;AA0D/C,MAAa,SAAS;IAkBpB,YAAY,GAAkB;;QATrB,SAAI,GAAe,EAAE,CAAA;QACrB,mBAAc,GAA6B,EAAE,CAAA;QASpD,IAAI,MAAmC,CAAA;QACvC,IAAI,OAAO,GAAG,CAAC,MAAM,IAAI,QAAQ;YAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACtD,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,mCAAI,IAAA,qBAAW,EAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,GAAG,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAA;QACxE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAA;QAChC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAA;QAC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,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IAC5B,GAAG,GAAG,GAAG,IAAI,IAAI,SAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC,CAAA;IAC5D,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM;QAAE,OAAO,GAAG,CAAA;IAC9C,OAAO,SAAS,CAAA;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts deleted file mode 100644 index 618c64ae..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileParser(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js deleted file mode 100644 index 8fc94fd0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js +++ /dev/null @@ -1,350 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const type_1 = require("../../vocabularies/jtd/type"); -const parseJson_1 = require("../../runtime/parseJson"); -const util_1 = require("../util"); -const timestamp_1 = require("../../runtime/timestamp"); -const genParse = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -}; -function compileParser(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const parseName = gen.scopeName("parse"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - parseName, - char: gen.name("c"), - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.parseName = parseName; - parserFunction(cxt); - gen.optimize(this.opts.code.optimize); - const parseFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${parseFuncCode}`; - const makeParse = new Function(`${names_1.default.scope}`, sourceCode); - const parse = makeParse(this.scope.get()); - this.scope.value(parseName, { ref: parse }); - sch.parse = parse; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling parser, function code:", sourceCode); - delete sch.parse; - delete sch.parseName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileParser; -const undef = (0, codegen_1._) `undefined`; -function parserFunction(cxt) { - const { gen, parseName, char } = cxt; - gen.func(parseName, (0, codegen_1._) `${names_1.default.json}, ${names_1.default.jsonPos}, ${names_1.default.jsonPart}`, false, () => { - gen.let(names_1.default.data); - gen.let(char); - gen.assign((0, codegen_1._) `${parseName}.message`, undef); - gen.assign((0, codegen_1._) `${parseName}.position`, undef); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${names_1.default.jsonPos} || 0`); - gen.const(names_1.default.jsonLen, (0, codegen_1._) `${names_1.default.json}.length`); - parseCode(cxt); - skipWhitespace(cxt); - gen.if(names_1.default.jsonPart, () => { - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(names_1.default.data); - }); - gen.if((0, codegen_1._) `${names_1.default.jsonPos} === ${names_1.default.jsonLen}`, () => gen.return(names_1.default.data)); - jsonSyntaxError(cxt); - }); -} -function parseCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - if (form) - parseNullable(cxt, genParse[form]); - else - parseEmpty(cxt); -} -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)); -function parseNullable(cxt, parseForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return parseForm(cxt); - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)); -} -function parseElements(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "["); - const ix = gen.let("i", 0); - gen.assign(data, (0, codegen_1._) `[]`); - parseItems(cxt, "]", () => { - const el = gen.let("el"); - parseCode({ ...cxt, schema: schema.elements, data: el }); - gen.assign((0, codegen_1._) `${data}[${ix}++]`, el); - }); -} -function parseValues(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)); -} -function parseItems(cxt, endToken, block) { - tryParseItems(cxt, endToken, block); - parseToken(cxt, endToken); -} -function tryParseItems(cxt, endToken, block) { - const { gen } = cxt; - gen.for((0, codegen_1._) `;${names_1.default.jsonPos}<${names_1.default.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block(); - tryParseToken(cxt, ",", () => gen.break(), hasItem); - }); - function hasItem() { - tryParseToken(cxt, endToken, () => { }, jsonSyntaxError); - } -} -function parseKeyValue(cxt, schema) { - const { gen } = cxt; - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - parsePropertyValue(cxt, key, schema); -} -function parseDiscriminator(cxt) { - const { gen, data, schema } = cxt; - const { discriminator, mapping } = schema; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - const startPos = gen.const("pos", names_1.default.jsonPos); - const value = gen.let("value"); - const tag = gen.let("tag"); - tryParseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if((0, codegen_1._) `${key} === ${discriminator}`, () => { - parseString({ ...cxt, data: tag }); - gen.assign((0, codegen_1._) `${data}[${key}]`, tag); - gen.break(); - }, () => parseEmpty({ ...cxt, data: value }) // can be discarded/skipped - ); - }); - gen.assign(names_1.default.jsonPos, startPos); - gen.if((0, codegen_1._) `${tag} === undefined`); - parsingError(cxt, (0, codegen_1.str) `discriminator tag not found`); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - parseSchemaProperties({ ...cxt, schema: mapping[tagValue] }, discriminator); - } - gen.else(); - parsingError(cxt, (0, codegen_1.str) `discriminator value not in schema`); - gen.endIf(); -} -function parseProperties(cxt) { - const { gen, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseSchemaProperties(cxt); -} -function parseSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties, additionalProperties } = schema; - parseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if(false); - parseDefinedProperty(cxt, key, properties); - parseDefinedProperty(cxt, key, optionalProperties); - if (discriminator) { - gen.elseIf((0, codegen_1._) `${key} === ${discriminator}`); - const tag = gen.let("tag"); - parseString({ ...cxt, data: tag }); // can be discarded, it is already assigned - } - gen.else(); - if (additionalProperties) { - parseEmpty({ ...cxt, data: (0, codegen_1._) `${data}[${key}]` }); - } - else { - parsingError(cxt, (0, codegen_1.str) `property ${key} not allowed`); - } - gen.endIf(); - }); - if (properties) { - const hasProp = (0, code_1.hasPropFunc)(gen); - const allProps = (0, codegen_1.and)(...Object.keys(properties).map((p) => (0, codegen_1._) `${hasProp}.call(${data}, ${p})`)); - gen.if((0, codegen_1.not)(allProps), () => parsingError(cxt, (0, codegen_1.str) `missing required properties`)); - } -} -function parseDefinedProperty(cxt, key, schemas = {}) { - const { gen } = cxt; - for (const prop in schemas) { - gen.elseIf((0, codegen_1._) `${key} === ${prop}`); - parsePropertyValue(cxt, key, schemas[prop]); - } -} -function parsePropertyValue(cxt, key, schema) { - parseCode({ ...cxt, schema, data: (0, codegen_1._) `${cxt.data}[${key}]` }); -} -function parseType(cxt) { - const { gen, schema, data, self } = cxt; - switch (schema.type) { - case "boolean": - parseBoolean(cxt); - break; - case "string": - parseString(cxt); - break; - case "timestamp": { - parseString(cxt); - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const { allowDate, parseDate } = self.opts; - const notValid = allowDate ? (0, codegen_1._) `!${vts}(${data}, true)` : (0, codegen_1._) `!${vts}(${data})`; - const fail = parseDate - ? (0, codegen_1.or)(notValid, (0, codegen_1._) `(${data} = new Date(${data}), false)`, (0, codegen_1._) `isNaN(${data}.valueOf())`) - : notValid; - gen.if(fail, () => parsingError(cxt, (0, codegen_1.str) `invalid timestamp`)); - break; - } - case "float32": - case "float64": - parseNumber(cxt); - break; - default: { - const t = schema.type; - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16); // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if((0, codegen_1._) `${data} < 0`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - else { - const [min, max, maxDigits] = type_1.intRange[t]; - parseNumber(cxt, maxDigits); - gen.if((0, codegen_1._) `${data} < ${min} || ${data} > ${max}`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - } -} -function parseString(cxt) { - parseToken(cxt, '"'); - parseWith(cxt, parseJson_1.parseJsonString); -} -function parseEnum(cxt) { - const { gen, data, schema } = cxt; - const enumSch = schema.enum; - parseToken(cxt, '"'); - // TODO loopEnum - gen.if(false); - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1); // remove starting quote - gen.elseIf((0, codegen_1._) `${jsonSlice(valueStr.length)} === ${valueStr}`); - gen.assign(data, (0, codegen_1.str) `${value}`); - gen.add(names_1.default.jsonPos, valueStr.length); - } - gen.else(); - jsonSyntaxError(cxt); - gen.endIf(); -} -function parseNumber(cxt, maxDigits) { - const { gen } = cxt; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `"-0123456789".indexOf(${jsonSlice(1)}) < 0`, () => jsonSyntaxError(cxt), () => parseWith(cxt, parseJson_1.parseJsonNumber, maxDigits)); -} -function parseBooleanToken(bool, fail) { - return (cxt) => { - const { gen, data } = cxt; - tryParseToken(cxt, `${bool}`, () => fail(cxt), () => gen.assign(data, bool)); - }; -} -function parseRef(cxt) { - const { gen, self, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return parseCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileParser.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - partialParse(cxt, getParser(gen, sch), true); -} -function getParser(gen, sch) { - return sch.parse - ? gen.scopeValue("parse", { ref: sch.parse }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.parse`; -} -function parseEmpty(cxt) { - parseWith(cxt, parseJson_1.parseJson); -} -function parseWith(cxt, parseFunc, args) { - partialParse(cxt, (0, util_1.useFunc)(cxt.gen, parseFunc), args); -} -function partialParse(cxt, parseFunc, args) { - const { gen, data } = cxt; - gen.assign(data, (0, codegen_1._) `${parseFunc}(${names_1.default.json}, ${names_1.default.jsonPos}${args ? (0, codegen_1._) `, ${args}` : codegen_1.nil})`); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${parseFunc}.position`); - gen.if((0, codegen_1._) `${data} === undefined`, () => parsingError(cxt, (0, codegen_1._) `${parseFunc}.message`)); -} -function parseToken(cxt, tok) { - tryParseToken(cxt, tok, jsonSyntaxError); -} -function tryParseToken(cxt, tok, fail, success) { - const { gen } = cxt; - const n = tok.length; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `${jsonSlice(n)} === ${tok}`, () => { - gen.add(names_1.default.jsonPos, n); - success === null || success === void 0 ? void 0 : success(cxt); - }, () => fail(cxt)); -} -function skipWhitespace({ gen, char: c }) { - gen.code((0, codegen_1._) `while((${c}=${names_1.default.json}[${names_1.default.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${names_1.default.jsonPos}++;`); -} -function jsonSlice(len) { - return len === 1 - ? (0, codegen_1._) `${names_1.default.json}[${names_1.default.jsonPos}]` - : (0, codegen_1._) `${names_1.default.json}.slice(${names_1.default.jsonPos}, ${names_1.default.jsonPos}+${len})`; -} -function jsonSyntaxError(cxt) { - parsingError(cxt, (0, codegen_1._) `"unexpected token " + ${names_1.default.json}[${names_1.default.jsonPos}]`); -} -function parsingError({ gen, parseName }, msg) { - gen.assign((0, codegen_1._) `${parseName}.message`, msg); - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(undef); -} -//# sourceMappingURL=parse.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map deleted file mode 100644 index 87bd922a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../lib/compile/jtd/parse.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAmF;AACnF,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAmD;AACnD,oDAAiD;AACjD,sDAA6D;AAC7D,uDAAmF;AACnF,kCAA+B;AAC/B,uDAAoD;AAIpD,MAAM,QAAQ,GAA+B;IAC3C,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,kBAAkB;IACjC,UAAU,EAAE,eAAe;IAC3B,kBAAkB,EAAE,eAAe;IACnC,IAAI,EAAE,SAAS;IAC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AAI,eAAC,CAAC,IAAI,IAAI,eAAC,CAAC,OAAO,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC,aAAa,eAAC,CAAC,OAAO,KAAK,CAC7G,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,GAAkB;IACnC,OAAO,GAAG,KAAK,CAAC;QACd,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,IAAI,IAAI,eAAC,CAAC,OAAO,GAAG;QAC5B,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,IAAI,UAAU,eAAC,CAAC,OAAO,KAAK,eAAC,CAAC,OAAO,IAAI,GAAG,GAAG,CAAA;AAC3D,CAAC;AAED,SAAS,eAAe,CAAC,GAAa;IACpC,YAAY,CAAC,GAAG,EAAE,IAAA,WAAC,EAAA,yBAAyB,eAAC,CAAC,IAAI,IAAI,eAAC,CAAC,OAAO,GAAG,CAAC,CAAA;AACrE,CAAC;AAED,SAAS,YAAY,CAAC,EAAC,GAAG,EAAE,SAAS,EAAW,EAAE,GAAS;IACzD,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,SAAS,UAAU,EAAE,GAAG,CAAC,CAAA;IACxC,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,SAAS,WAAW,EAAE,eAAC,CAAC,OAAO,CAAC,CAAA;IAC/C,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts deleted file mode 100644 index b0413d71..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileSerializer(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js deleted file mode 100644 index 341c5007..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js +++ /dev/null @@ -1,229 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const util_1 = require("../util"); -const quote_1 = require("../../runtime/quote"); -const genSerialize = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -}; -function compileSerializer(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const serializeName = gen.scopeName("serialize"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.serializeName = serializeName; - gen.func(serializeName, names_1.default.data, false, () => { - gen.let(names_1.default.json, (0, codegen_1.str) ``); - serializeCode(cxt); - gen.return(names_1.default.json); - }); - gen.optimize(this.opts.code.optimize); - const serializeFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${serializeFuncCode}`; - const makeSerialize = new Function(`${names_1.default.scope}`, sourceCode); - const serialize = makeSerialize(this.scope.get()); - this.scope.value(serializeName, { ref: serialize }); - sch.serialize = serialize; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling serializer, function code:", sourceCode); - delete sch.serialize; - delete sch.serializeName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileSerializer; -function serializeCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty); -} -function serializeNullable(cxt, serializeForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return serializeForm(cxt); - gen.if((0, codegen_1._) `${data} === undefined || ${data} === null`, () => gen.add(names_1.default.json, (0, codegen_1._) `"null"`), () => serializeForm(cxt)); -} -function serializeElements(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `[`); - const first = gen.let("first", true); - gen.forOf("el", data, (el) => { - addComma(cxt, first); - serializeCode({ ...cxt, schema: schema.elements, data: el }); - }); - gen.add(names_1.default.json, (0, codegen_1.str) `]`); -} -function serializeValues(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - const first = gen.let("first", true); - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeKeyValue(cxt, key, schema, first) { - const { gen, data } = cxt; - addComma(cxt, first); - serializeString({ ...cxt, data: key }); - gen.add(names_1.default.json, (0, codegen_1.str) `:`); - const value = gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - serializeCode({ ...cxt, schema, data: value }); -} -function serializeDiscriminator(cxt) { - const { gen, schema, data } = cxt; - const { discriminator } = schema; - gen.add(names_1.default.json, (0, codegen_1.str) `{${JSON.stringify(discriminator)}:`); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(discriminator)}`); - serializeString({ ...cxt, data: tag }); - gen.if(false); - for (const tagValue in schema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - const sch = schema.mapping[tagValue]; - serializeSchemaProperties({ ...cxt, schema: sch }, discriminator); - } - gen.endIf(); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeProperties(cxt) { - const { gen } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - serializeSchemaProperties(cxt); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties } = schema; - const props = keys(properties); - const optProps = keys(optionalProperties); - const allProps = allProperties(props.concat(optProps)); - let first = !discriminator; - let firstProp; - for (const key of props) { - if (first) - first = false; - else - gen.add(names_1.default.json, (0, codegen_1.str) `,`); - serializeProperty(key, properties[key], keyValue(key)); - } - if (first) - firstProp = gen.let("first", true); - for (const key of optProps) { - const value = keyValue(key); - gen.if((0, codegen_1.and)((0, codegen_1._) `${value} !== undefined`, (0, code_1.isOwnProperty)(gen, data, key)), () => { - addComma(cxt, firstProp); - serializeProperty(key, optionalProperties[key], value); - }); - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => gen.if(isAdditional(key, allProps), () => serializeKeyValue(cxt, key, {}, firstProp))); - } - function keys(ps) { - return ps ? Object.keys(ps) : []; - } - function allProperties(ps) { - if (discriminator) - ps.push(discriminator); - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap"); - } - return ps; - } - function keyValue(key) { - return gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - } - function serializeProperty(key, propSchema, value) { - gen.add(names_1.default.json, (0, codegen_1.str) `${JSON.stringify(key)}:`); - serializeCode({ ...cxt, schema: propSchema, data: value }); - } - function isAdditional(key, ps) { - return ps.length ? (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)) : true; - } -} -function serializeType(cxt) { - const { gen, schema, data } = cxt; - switch (schema.type) { - case "boolean": - gen.add(names_1.default.json, (0, codegen_1._) `${data} ? "true" : "false"`); - break; - case "string": - serializeString(cxt); - break; - case "timestamp": - gen.if((0, codegen_1._) `${data} instanceof Date`, () => gen.add(names_1.default.json, (0, codegen_1._) `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt)); - break; - default: - serializeNumber(cxt); - } -} -function serializeString({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `${(0, util_1.useFunc)(gen, quote_1.default)}(${data})`); -} -function serializeNumber({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `"" + ${data}`); -} -function serializeRef(cxt) { - const { gen, self, data, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return serializeCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileSerializer.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - gen.add(names_1.default.json, (0, codegen_1._) `${getSerialize(gen, sch)}(${data})`); -} -function getSerialize(gen, sch) { - return sch.serialize - ? gen.scopeValue("serialize", { ref: sch.serialize }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.serialize`; -} -function serializeEmpty({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `JSON.stringify(${data})`); -} -function addComma({ gen }, first) { - if (first) { - gen.if(first, () => gen.assign(first, false), () => gen.add(names_1.default.json, (0, codegen_1.str) `,`)); - } - else { - gen.add(names_1.default.json, (0, codegen_1.str) `,`); - } -} -//# sourceMappingURL=serialize.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map deleted file mode 100644 index 15c82c71..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serialize.js","sourceRo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A,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;AACxD,CAAC;AAED,SAAS,YAAY,CAAC,GAAY,EAAE,GAAc;IAChD,OAAO,GAAG,CAAC,SAAS;QAClB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,EAAC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAC,CAAC;QACnD,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,CAAC,YAAY,CAAA;AAC3D,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,GAAG,EAAE,IAAI,EAAe;IAC/C,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,WAAC,EAAA,kBAAkB,IAAI,GAAG,CAAC,CAAA;AAC7C,CAAC;AAED,SAAS,QAAQ,CAAC,EAAC,GAAG,EAAe,EAAE,KAAY;IACjD,IAAI,KAAK,EAAE,CAAC;QACV,GAAG,CAAC,EAAE,CACJ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAC9B,CAAA;IACH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAAA;IACzB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts deleted file mode 100644 index 678986f1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { SchemaObject } from "../../types"; -export type SchemaObjectMap = { - [Ref in string]?: SchemaObject; -}; -export declare const jtdForms: readonly ["elements", "values", "discriminator", "properties", "optionalProperties", "enum", "type", "ref"]; -export type JTDForm = (typeof jtdForms)[number]; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js deleted file mode 100644 index b9c60a90..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.jtdForms = void 0; -exports.jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -]; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js.map deleted file mode 100644 index 53439e00..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/jtd/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/compile/jtd/types.ts"],"names":[],"mappings":";;;AAIa,QAAA,QAAQ,GAAG;IACtB,UAAU;IACV,QAAQ;IACR,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,MAAM;IACN,MAAM;IACN,KAAK;CACG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.d.ts deleted file mode 100644 index 5740e82c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Name } from "./codegen"; -declare const names: { - data: Name; - valCxt: Name; - instancePath: Name; - parentData: Name; - parentDataProperty: Name; - rootData: Name; - dynamicAnchors: Name; - vErrors: Name; - errors: Name; - this: Name; - self: Name; - scope: Name; - json: Name; - jsonPos: Name; - jsonLen: Name; - jsonPart: Name; -}; -export default names; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js deleted file mode 100644 index 3bce5aaa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("./codegen"); -const names = { - // validation function arguments - data: new codegen_1.Name("data"), // data passed to validation function - // args passed from referencing schema - valCxt: new codegen_1.Name("valCxt"), // validation/data context - should not be used directly, it is destructured to the names below - instancePath: new codegen_1.Name("instancePath"), - parentData: new codegen_1.Name("parentData"), - parentDataProperty: new codegen_1.Name("parentDataProperty"), - rootData: new codegen_1.Name("rootData"), // root data - same as the data passed to the first/top validation function - dynamicAnchors: new codegen_1.Name("dynamicAnchors"), // used to support recursiveRef and dynamicRef - // function scoped variables - vErrors: new codegen_1.Name("vErrors"), // null or array of validation errors - errors: new codegen_1.Name("errors"), // counter of validation errors - this: new codegen_1.Name("this"), - // "globals" - self: new codegen_1.Name("self"), - scope: new codegen_1.Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new codegen_1.Name("json"), - jsonPos: new codegen_1.Name("jsonPos"), - jsonLen: new codegen_1.Name("jsonLen"), - jsonPart: new codegen_1.Name("jsonPart"), -}; -exports.default = names; -//# sourceMappingURL=names.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js.map deleted file mode 100644 index 971fcbf7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/names.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"names.js","sourceRoot":"","sources":["../../lib/compile/names.ts"],"names":[],"mappings":";;AAAA,uCAA8B;AAE9B,MAAM,KAAK,GAAG;IACZ,gCAAgC;IAChC,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC,EAAE,qCAAqC;IAC7D,sCAAsC;IACtC,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC,EAAE,+FAA+F;IAC3H,YAAY,EAAE,IAAI,cAAI,CAAC,cAAc,CAAC;IACtC,UAAU,EAAE,IAAI,cAAI,CAAC,YAAY,CAAC;IAClC,kBAAkB,EAAE,IAAI,cAAI,CAAC,oBAAoB,CAAC;IAClD,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC,EAAE,2EAA2E;IAC3G,cAAc,EAAE,IAAI,cAAI,CAAC,gBAAgB,CAAC,EAAE,8CAA8C;IAC1F,4BAA4B;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC,EAAE,qCAAqC;IACnE,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC,EAAE,+BAA+B;IAC3D,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,YAAY;IACZ,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,IAAI,cAAI,CAAC,OAAO,CAAC;IACxB,wDAAwD;IACxD,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC;CAC/B,CAAA;AAED,kBAAe,KAAK,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.d.ts deleted file mode 100644 index 43374439..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { UriResolver } from "../types"; -export default class MissingRefError extends Error { - readonly missingRef: string; - readonly missingSchema: string; - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string); -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js deleted file mode 100644 index 3916dec8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const resolve_1 = require("./resolve"); -class MissingRefError extends Error { - constructor(resolver, baseId, ref, msg) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`); - this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref); - this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef)); - } -} -exports.default = MissingRefError; -//# sourceMappingURL=ref_error.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js.map deleted file mode 100644 index d13f5f2d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/ref_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref_error.js","sourceRoot":"","sources":["../../lib/compile/ref_error.ts"],"names":[],"mappings":";;AAAA,uCAA8D;AAG9D,MAAqB,eAAgB,SAAQ,KAAK;IAIhD,YAAY,QAAqB,EAAE,MAAc,EAAE,GAAW,EAAE,GAAY;QAC1E,KAAK,CAAC,GAAG,IAAI,2BAA2B,GAAG,YAAY,MAAM,EAAE,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,GAAG,IAAA,oBAAU,EAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;QACnD,IAAI,CAAC,aAAa,GAAG,IAAA,qBAAW,EAAC,IAAA,qBAAW,EAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;IAC1E,CAAC;CACF;AATD,kCASC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.d.ts deleted file mode 100644 index 70ef6ce6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { AnySchema, AnySchemaObject, UriResolver } from "../types"; -import type Ajv from "../ajv"; -import type { URIComponents } from "uri-js"; -export type LocalRefs = { - [Ref in string]?: AnySchemaObject; -}; -export declare function inlineRef(schema: AnySchema, limit?: boolean | number): boolean; -export declare function getFullPath(resolver: UriResolver, id?: string, normalize?: boolean): string; -export declare function _getFullPath(resolver: UriResolver, p: URIComponents): string; -export declare function normalizeId(id: string | undefined): string; -export declare function resolveUrl(resolver: UriResolver, baseId: string, id: string): string; -export declare function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js deleted file mode 100644 index f12f968d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0; -const util_1 = require("./util"); -const equal = require("fast-deep-equal"); -const traverse = require("json-schema-traverse"); -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]); -function inlineRef(schema, limit = true) { - if (typeof schema == "boolean") - return true; - if (limit === true) - return !hasRef(schema); - if (!limit) - return false; - return countKeys(schema) <= limit; -} -exports.inlineRef = inlineRef; -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]); -function hasRef(schema) { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) - return true; - const sch = schema[key]; - if (Array.isArray(sch) && sch.some(hasRef)) - return true; - if (typeof sch == "object" && hasRef(sch)) - return true; - } - return false; -} -function countKeys(schema) { - let count = 0; - for (const key in schema) { - if (key === "$ref") - return Infinity; - count++; - if (SIMPLE_INLINED.has(key)) - continue; - if (typeof schema[key] == "object") { - (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch))); - } - if (count === Infinity) - return Infinity; - } - return count; -} -function getFullPath(resolver, id = "", normalize) { - if (normalize !== false) - id = normalizeId(id); - const p = resolver.parse(id); - return _getFullPath(resolver, p); -} -exports.getFullPath = getFullPath; -function _getFullPath(resolver, p) { - const serialized = resolver.serialize(p); - return serialized.split("#")[0] + "#"; -} -exports._getFullPath = _getFullPath; -const TRAILING_SLASH_HASH = /#\/?$/; -function normalizeId(id) { - return id ? id.replace(TRAILING_SLASH_HASH, "") : ""; -} -exports.normalizeId = normalizeId; -function resolveUrl(resolver, baseId, id) { - id = normalizeId(id); - return resolver.resolve(baseId, id); -} -exports.resolveUrl = resolveUrl; -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i; -function getSchemaRefs(schema, baseId) { - if (typeof schema == "boolean") - return {}; - const { schemaId, uriResolver } = this.opts; - const schId = normalizeId(schema[schemaId] || baseId); - const baseIds = { "": schId }; - const pathPrefix = getFullPath(uriResolver, schId, false); - const localRefs = {}; - const schemaRefs = new Set(); - traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) - return; - const fullPath = pathPrefix + jsonPtr; - let innerBaseId = baseIds[parentJsonPtr]; - if (typeof sch[schemaId] == "string") - innerBaseId = addRef.call(this, sch[schemaId]); - addAnchor.call(this, sch.$anchor); - addAnchor.call(this, sch.$dynamicAnchor); - baseIds[jsonPtr] = innerBaseId; - function addRef(ref) { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve; - ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref); - if (schemaRefs.has(ref)) - throw ambiguos(ref); - schemaRefs.add(ref); - let schOrRef = this.refs[ref]; - if (typeof schOrRef == "string") - schOrRef = this.refs[schOrRef]; - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref); - } - else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref); - localRefs[ref] = sch; - } - else { - this.refs[ref] = fullPath; - } - } - return ref; - } - function addAnchor(anchor) { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) - throw new Error(`invalid anchor "${anchor}"`); - addRef.call(this, `#${anchor}`); - } - } - }); - return localRefs; - function checkAmbiguosRef(sch1, sch2, ref) { - if (sch2 !== undefined && !equal(sch1, sch2)) - throw ambiguos(ref); - } - function ambiguos(ref) { - return new Error(`reference "${ref}" resolves to more than one schema`); - } -} -exports.getSchemaRefs = getSchemaRefs; -//# sourceMappingURL=resolve.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js.map deleted file mode 100644 index 824ef454..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/resolve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version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AC,GAAG,CAAC,GAAG,QAAQ,CAAA;gBAC3B,CAAC;YACH,CAAC;YACD,OAAO,GAAG,CAAA;QACZ,CAAC;QAED,SAAS,SAAS,CAAY,MAAe;YAC3C,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE,CAAC;gBAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,GAAG,CAAC,CAAA;gBACvE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,MAAM,EAAE,CAAC,CAAA;YACjC,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,SAAS,CAAA;IAEhB,SAAS,gBAAgB,CAAC,IAAe,EAAE,IAA2B,EAAE,GAAW;QACjF,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;YAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAA;IACnE,CAAC;IAED,SAAS,QAAQ,CAAC,GAAW;QAC3B,OAAO,IAAI,KAAK,CAAC,cAAc,GAAG,oCAAoC,CAAC,CAAA;IACzE,CAAC;AACH,CAAC;AAxDD,sCAwDC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.d.ts deleted file mode 100644 index 51ec46ab..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { AddedKeywordDefinition } from "../types"; -declare const _jsonTypes: readonly ["string", "number", "integer", "boolean", "null", "object", "array"]; -export type JSONType = (typeof _jsonTypes)[number]; -export declare function isJSONType(x: unknown): x is JSONType; -type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined; -}; -export interface ValidationRules { - rules: RuleGroup[]; - post: RuleGroup; - all: { - [Key in string]?: boolean | Rule; - }; - keywords: { - [Key in string]?: boolean; - }; - types: ValidationTypes; -} -export interface RuleGroup { - type?: JSONType; - rules: Rule[]; -} -export interface Rule { - keyword: string; - definition: AddedKeywordDefinition; -} -export declare function getRules(): ValidationRules; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js deleted file mode 100644 index 82a591ff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRules = exports.isJSONType = void 0; -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; -const jsonTypes = new Set(_jsonTypes); -function isJSONType(x) { - return typeof x == "string" && jsonTypes.has(x); -} -exports.isJSONType = isJSONType; -function getRules() { - const groups = { - number: { type: "number", rules: [] }, - string: { type: "string", rules: [] }, - array: { type: "array", rules: [] }, - object: { type: "object", rules: [] }, - }; - return { - types: { ...groups, integer: true, boolean: true, null: true }, - rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object], - post: { rules: [] }, - all: {}, - keywords: {}, - }; -} -exports.getRules = getRules; -//# sourceMappingURL=rules.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js.map deleted file mode 100644 index 084c70f8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/rules.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../lib/compile/rules.ts"],"names":[],"mappings":";;;AAEA,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;AAIjG,MAAM,SAAS,GAAgB,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;AAElD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,OAAO,CAAC,IAAI,QAAQ,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC;AAFD,gCAEC;AAyBD,SAAgB,QAAQ;IACtB,MAAM,MAAM,GAAgE;QAC1E,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAC;QACjC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;KACpC,CAAA;IACD,OAAO;QACL,KAAK,EAAE,EAAC,GAAG,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;QAC5D,KAAK,EAAE,CAAC,EAAC,KAAK,EAAE,EAAE,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QAC/E,IAAI,EAAE,EAAC,KAAK,EAAE,EAAE,EAAC;QACjB,GAAG,EAAE,EAAE;QACP,QAAQ,EAAE,EAAE;KACb,CAAA;AACH,CAAC;AAdD,4BAcC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.d.ts deleted file mode 100644 index 1ec282ae..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { AnySchema, EvaluatedProperties, EvaluatedItems } from "../types"; -import type { SchemaCxt, SchemaObjCxt } from "."; -import { Code, Name, CodeGen } from "./codegen"; -import type { Rule, ValidationRules } from "./rules"; -export declare function toHash(arr: T[]): { - [K in T]?: true; -}; -export declare function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void; -export declare function checkUnknownRules(it: SchemaCxt, schema?: AnySchema): void; -export declare function schemaHasRules(schema: AnySchema, rules: { - [Key in string]?: boolean | Rule; -}): boolean; -export declare function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean; -export declare function schemaRefOrVal({ topSchemaRef, schemaPath }: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false): Code | number | boolean; -export declare function unescapeFragment(str: string): string; -export declare function escapeFragment(str: string | number): string; -export declare function escapeJsonPointer(str: string | number): string; -export declare function unescapeJsonPointer(str: string): string; -export declare function eachItem(xs: T | T[], f: (x: T) => void): void; -type SomeEvaluated = EvaluatedProperties | EvaluatedItems; -type MergeEvaluatedFunc = (gen: CodeGen, from: Name | T, to: Name | Exclude | undefined, toName?: typeof Name) => Name | T; -interface MergeEvaluated { - props: MergeEvaluatedFunc; - items: MergeEvaluatedFunc; -} -export declare const mergeEvaluated: MergeEvaluated; -export declare function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name; -export declare function setEvaluated(gen: CodeGen, props: Name, ps: { - [K in string]?: true; -}): void; -export declare function useFunc(gen: CodeGen, f: { - code: string; -}): Name; -export declare enum Type { - Num = 0, - Str = 1 -} -export declare function getErrorPath(dataProp: Name | string | number, dataPropType?: Type, jsPropertySyntax?: boolean): Code | string; -export declare function checkStrictMode(it: SchemaCxt, msg: string, mode?: boolean | "log"): void; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js deleted file mode 100644 index 73c87c85..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0; -const codegen_1 = require("./codegen"); -const code_1 = require("./codegen/code"); -// TODO refactor to use Set -function toHash(arr) { - const hash = {}; - for (const item of arr) - hash[item] = true; - return hash; -} -exports.toHash = toHash; -function alwaysValidSchema(it, schema) { - if (typeof schema == "boolean") - return schema; - if (Object.keys(schema).length === 0) - return true; - checkUnknownRules(it, schema); - return !schemaHasRules(schema, it.self.RULES.all); -} -exports.alwaysValidSchema = alwaysValidSchema; -function checkUnknownRules(it, schema = it.schema) { - const { opts, self } = it; - if (!opts.strictSchema) - return; - if (typeof schema === "boolean") - return; - const rules = self.RULES.keywords; - for (const key in schema) { - if (!rules[key]) - checkStrictMode(it, `unknown keyword: "${key}"`); - } -} -exports.checkUnknownRules = checkUnknownRules; -function schemaHasRules(schema, rules) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (rules[key]) - return true; - return false; -} -exports.schemaHasRules = schemaHasRules; -function schemaHasRulesButRef(schema, RULES) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (key !== "$ref" && RULES.all[key]) - return true; - return false; -} -exports.schemaHasRulesButRef = schemaHasRulesButRef; -function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") - return schema; - if (typeof schema == "string") - return (0, codegen_1._) `${schema}`; - } - return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`; -} -exports.schemaRefOrVal = schemaRefOrVal; -function unescapeFragment(str) { - return unescapeJsonPointer(decodeURIComponent(str)); -} -exports.unescapeFragment = unescapeFragment; -function escapeFragment(str) { - return encodeURIComponent(escapeJsonPointer(str)); -} -exports.escapeFragment = escapeFragment; -function escapeJsonPointer(str) { - if (typeof str == "number") - return `${str}`; - return str.replace(/~/g, "~0").replace(/\//g, "~1"); -} -exports.escapeJsonPointer = escapeJsonPointer; -function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); -} -exports.unescapeJsonPointer = unescapeJsonPointer; -function eachItem(xs, f) { - if (Array.isArray(xs)) { - for (const x of xs) - f(x); - } - else { - f(xs); - } -} -exports.eachItem = eachItem; -function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) { - return (gen, from, to, toName) => { - const res = to === undefined - ? from - : to instanceof codegen_1.Name - ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof codegen_1.Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to); - return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res; - }; -} -exports.mergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => { - gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`)); - }), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => { - if (from === true) { - gen.assign(to, true); - } - else { - gen.assign(to, (0, codegen_1._) `${to} || {}`); - setEvaluated(gen, to, from); - } - }), - mergeValues: (from, to) => (from === true ? true : { ...from, ...to }), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -}; -function evaluatedPropsToName(gen, ps) { - if (ps === true) - return gen.var("props", true); - const props = gen.var("props", (0, codegen_1._) `{}`); - if (ps !== undefined) - setEvaluated(gen, props, ps); - return props; -} -exports.evaluatedPropsToName = evaluatedPropsToName; -function setEvaluated(gen, props, ps) { - Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true)); -} -exports.setEvaluated = setEvaluated; -const snippets = {}; -function useFunc(gen, f) { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)), - }); -} -exports.useFunc = useFunc; -var Type; -(function (Type) { - Type[Type["Num"] = 0] = "Num"; - Type[Type["Str"] = 1] = "Str"; -})(Type || (exports.Type = Type = {})); -function getErrorPath(dataProp, dataPropType, jsPropertySyntax) { - // let path - if (dataProp instanceof codegen_1.Name) { - const isNumber = dataPropType === Type.Num; - return jsPropertySyntax - ? isNumber - ? (0, codegen_1._) `"[" + ${dataProp} + "]"` - : (0, codegen_1._) `"['" + ${dataProp} + "']"` - : isNumber - ? (0, codegen_1._) `"/" + ${dataProp}` - : (0, codegen_1._) `"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; // TODO maybe use global escapePointer - } - return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp); -} -exports.getErrorPath = getErrorPath; -function checkStrictMode(it, msg, mode = it.opts.strictSchema) { - if (!mode) - return; - msg = `strict mode: ${msg}`; - if (mode === true) - throw new Error(msg); - it.self.logger.warn(msg); -} -exports.checkStrictMode = checkStrictMode; -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js.map deleted file mode 100644 index ee010089..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../lib/compile/util.ts"],"names":[],"mappings":";;;AAEA,uCAA6D;AAC7D,yCAAoC;AAGpC,2BAA2B;AAC3B,SAAgB,MAAM,CAA4B,GAAQ;IACxD,MAAM,IAAI,GAAsB,EAAE,CAAA;IAClC,KAAK,MAAM,IAAI,IAAI,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzC,OAAO,IAAI,CAAA;AACb,CAAC;AAJD,wBAIC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,MAAiB;IAChE,IAAI,OAAO,MAAM,IAAI,SAAS;QAAE,OAAO,MAAM,CAAA;IAC7C,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IACjD,iBAAiB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AACnD,CAAC;AALD,8CAKC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,SAAoB,EAAE,CAAC,MAAM;IAC5E,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;IACvB,IAAI,CAAC,IAAI,CAAC,YAAY;QAAE,OAAM;IAC9B,IAAI,OAAO,MAAM,KAAK,SAAS;QAAE,OAAM;IACvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAA;IACjC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,IAAI,CAAC,KAAK,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;AAHD,WAAY,IAAI;IACd,6BAAG,CAAA;IACH,6BAAG,CAAA;AACL,CAAC,EAHW,IAAI,oBAAJ,IAAI,QAGf;AAED,SAAgB,YAAY,CAC1B,QAAgC,EAChC,YAAmB,EACnB,gBAA0B;IAE1B,WAAW;IACX,IAAI,QAAQ,YAAY,cAAI,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,CAAA;QAC1C,OAAO,gBAAgB;YACrB,CAAC,CAAC,QAAQ;gBACR,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,QAAQ;gBAC5B,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,QAAQ,SAAS;YAChC,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,EAAE;gBACtB,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,4CAA4C,CAAA,CAAC,sCAAsC;IAC3G,CAAC;IACD,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAA,qBAAW,EAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAA;AAChG,CAAC;AAjBD,oCAiBC;AAED,SAAgB,eAAe,CAC7B,EAAa,EACb,GAAW,EACX,OAAwB,EAAE,CAAC,IAAI,CAAC,YAAY;IAE5C,IAAI,CAAC,IAAI;QAAE,OAAM;IACjB,GAAG,GAAG,gBAAgB,GAAG,EAAE,CAAA;IAC3B,IAAI,IAAI,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;IACvC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC;AATD,0CASC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts deleted file mode 100644 index 165d375d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType, RuleGroup, Rule } from "../rules"; -export declare function schemaHasRulesForType({ schema, self }: SchemaObjCxt, type: JSONType): boolean | undefined; -export declare function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean; -export declare function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js deleted file mode 100644 index 6187dbbe..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0; -function schemaHasRulesForType({ schema, self }, type) { - const group = self.RULES.types[type]; - return group && group !== true && shouldUseGroup(schema, group); -} -exports.schemaHasRulesForType = schemaHasRulesForType; -function shouldUseGroup(schema, group) { - return group.rules.some((rule) => shouldUseRule(schema, rule)); -} -exports.shouldUseGroup = shouldUseGroup; -function shouldUseRule(schema, rule) { - var _a; - return (schema[rule.keyword] !== undefined || - ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); -} -exports.shouldUseRule = shouldUseRule; -//# sourceMappingURL=applicability.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map deleted file mode 100644 index 450cfe75..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applicability.js","sourceRoot":"","sources":["../../../lib/compile/validate/applicability.ts"],"names":[],"mappings":";;;AAIA,SAAgB,qBAAqB,CACnC,EAAC,MAAM,EAAE,IAAI,EAAe,EAC5B,IAAc;IAEd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACpC,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AACjE,CAAC;AAND,sDAMC;AAED,SAAgB,cAAc,CAAC,MAAuB,EAAE,KAAgB;IACtE,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAuB,EAAE,IAAU;;IAC/D,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS;SAClC,MAAA,IAAI,CAAC,UAAU,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAA,CACrE,CAAA;AACH,CAAC;AALD,sCAKC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts deleted file mode 100644 index 0ce79520..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { SchemaCxt } from ".."; -import { Name } from "../codegen"; -export declare function topBoolOrEmptySchema(it: SchemaCxt): void; -export declare function boolOrEmptySchema(it: SchemaCxt, valid: Name): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js deleted file mode 100644 index 8eeb7b5e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0; -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const boolError = { - message: "boolean schema is false", -}; -function topBoolOrEmptySchema(it) { - const { gen, schema, validateName } = it; - if (schema === false) { - falseSchemaError(it, false); - } - else if (typeof schema == "object" && schema.$async === true) { - gen.return(names_1.default.data); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, null); - gen.return(true); - } -} -exports.topBoolOrEmptySchema = topBoolOrEmptySchema; -function boolOrEmptySchema(it, valid) { - const { gen, schema } = it; - if (schema === false) { - gen.var(valid, false); // TODO var - falseSchemaError(it); - } - else { - gen.var(valid, true); // TODO var - } -} -exports.boolOrEmptySchema = boolOrEmptySchema; -function falseSchemaError(it, overrideAllErrors) { - const { gen, data } = it; - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - }; - (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors); -} -//# sourceMappingURL=boolSchema.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map deleted file mode 100644 index b7444a20..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"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B,sFAAsF;IACtF,MAAM,GAAG,GAAoB;QAC3B,GAAG;QACH,OAAO,EAAE,cAAc;QACvB,IAAI;QACJ,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,EAAE;QACV,EAAE;KACH,CAAA;IACD,IAAA,oBAAW,EAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAA;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts deleted file mode 100644 index 91a6194a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { ErrorObject, AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { JSONType } from "../rules"; -import { Code, Name } from "../codegen"; -export declare enum DataType { - Correct = 0, - Wrong = 1 -} -export declare function getSchemaTypes(schema: AnySchemaObject): JSONType[]; -export declare function getJSONTypes(ts: unknown | unknown[]): JSONType[]; -export declare function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean; -export declare function checkDataType(dataType: JSONType, data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export declare function checkDataTypes(dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export type TypeError = ErrorObject<"type", { - type: string; -}>; -export declare function reportTypeError(it: SchemaObjCxt): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js deleted file mode 100644 index 6d03e0dc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js +++ /dev/null @@ -1,203 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0; -const rules_1 = require("../rules"); -const applicability_1 = require("./applicability"); -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -var DataType; -(function (DataType) { - DataType[DataType["Correct"] = 0] = "Correct"; - DataType[DataType["Wrong"] = 1] = "Wrong"; -})(DataType || (exports.DataType = DataType = {})); -function getSchemaTypes(schema) { - const types = getJSONTypes(schema.type); - const hasNull = types.includes("null"); - if (hasNull) { - if (schema.nullable === false) - throw new Error("type: null contradicts nullable: false"); - } - else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"'); - } - if (schema.nullable === true) - types.push("null"); - } - return types; -} -exports.getSchemaTypes = getSchemaTypes; -// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -function getJSONTypes(ts) { - const types = Array.isArray(ts) ? ts : ts ? [ts] : []; - if (types.every(rules_1.isJSONType)) - return types; - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); -} -exports.getJSONTypes = getJSONTypes; -function coerceAndCheckDataType(it, types) { - const { gen, data, opts } = it; - const coerceTo = coerceToTypes(types, opts.coerceTypes); - const checkTypes = types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong); - gen.if(wrongType, () => { - if (coerceTo.length) - coerceData(it, types, coerceTo); - else - reportTypeError(it); - }); - } - return checkTypes; -} -exports.coerceAndCheckDataType = coerceAndCheckDataType; -const COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]); -function coerceToTypes(types, coerceTypes) { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : []; -} -function coerceData(it, types, coerceTo) { - const { gen, data, opts } = it; - const dataType = gen.let("dataType", (0, codegen_1._) `typeof ${data}`); - const coerced = gen.let("coerced", (0, codegen_1._) `undefined`); - if (opts.coerceTypes === "array") { - gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen - .assign(data, (0, codegen_1._) `${data}[0]`) - .assign(dataType, (0, codegen_1._) `typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))); - } - gen.if((0, codegen_1._) `${coerced} !== undefined`); - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t); - } - } - gen.else(); - reportTypeError(it); - gen.endIf(); - gen.if((0, codegen_1._) `${coerced} !== undefined`, () => { - gen.assign(data, coerced); - assignParentData(it, coerced); - }); - function coerceSpecificType(t) { - switch (t) { - case "string": - gen - .elseIf((0, codegen_1._) `${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, (0, codegen_1._) `"" + ${data}`) - .elseIf((0, codegen_1._) `${data} === null`) - .assign(coerced, (0, codegen_1._) `""`); - return; - case "number": - gen - .elseIf((0, codegen_1._) `${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "integer": - gen - .elseIf((0, codegen_1._) `${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "boolean": - gen - .elseIf((0, codegen_1._) `${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf((0, codegen_1._) `${data} === "true" || ${data} === 1`) - .assign(coerced, true); - return; - case "null": - gen.elseIf((0, codegen_1._) `${data} === "" || ${data} === 0 || ${data} === false`); - gen.assign(coerced, null); - return; - case "array": - gen - .elseIf((0, codegen_1._) `${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`) - .assign(coerced, (0, codegen_1._) `[${data}]`); - } - } -} -function assignParentData({ gen, parentData, parentDataProperty }, expr) { - // TODO use gen.property - gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr)); -} -function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { - const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; - let cond; - switch (dataType) { - case "null": - return (0, codegen_1._) `${data} ${EQ} null`; - case "array": - cond = (0, codegen_1._) `Array.isArray(${data})`; - break; - case "object": - cond = (0, codegen_1._) `${data} && typeof ${data} == "object" && !Array.isArray(${data})`; - break; - case "integer": - cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`); - break; - case "number": - cond = numCond(); - break; - default: - return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`; - } - return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond); - function numCond(_cond = codegen_1.nil) { - return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil); - } -} -exports.checkDataType = checkDataType; -function checkDataTypes(dataTypes, data, strictNums, correct) { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct); - } - let cond; - const types = (0, util_1.toHash)(dataTypes); - if (types.array && types.object) { - const notObj = (0, codegen_1._) `typeof ${data} != "object"`; - cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`; - delete types.null; - delete types.array; - delete types.object; - } - else { - cond = codegen_1.nil; - } - if (types.number) - delete types.integer; - for (const t in types) - cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct)); - return cond; -} -exports.checkDataTypes = checkDataTypes; -const typeError = { - message: ({ schema }) => `must be ${schema}`, - params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`, -}; -function reportTypeError(it) { - const cxt = getTypeErrorContext(it); - (0, errors_1.reportError)(cxt, typeError); -} -exports.reportTypeError = reportTypeError; -function getTypeErrorContext(it) { - const { gen, data, schema } = it; - const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - }; -} -//# sourceMappingURL=dataType.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map deleted file mode 100644 index c8fb1c6e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataType.js","sourceRoot":"","sources":["../../../lib/compile/validate/dataType.ts"],"names":[],"mappings":";;;AAOA,oCAA6C;AAC7C,mDAAqD;AACrD,sCAAqC;AACrC,wCAAkE;AAClE,kCAA8C;AAE9C,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,6CAAO,CAAA;IACP,yCAAK,CAAA;AACP,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,SAAgB,cAAc,CAAC,MAAuB;IACpD,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACtC,IAAI,OAAO,EAAE,CAAC;QACZ,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;IAC1F,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAC7D,CAAC;QACD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aAAa,CAAC,CAAa,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAA;IAChG,OAAO,IAAI,CAAA;AACb,CAAC;AAvBD,wCAuBC;AAID,MAAM,SAAS,GAA2B;IACxC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,WAAW,MAAM,EAAE;IAC1C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,WAAW,EAAC,EAAE,EAAE,CAChC,OAAO,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,MAAM,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,WAAW,GAAG;CAC/E,CAAA;AAED,SAAgB,eAAe,CAAC,EAAgB;IAC9C,MAAM,GAAG,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;IACnC,IAAA,oBAAW,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;AAC7B,CAAC;AAHD,0CAGC;AAED,SAAS,mBAAmB,CAAC,EAAgB;IAC3C,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,GAAG,EAAE,CAAA;IAC9B,MAAM,UAAU,GAAG,IAAA,qBAAc,EAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACrD,OAAO;QACL,GAAG;QACH,OAAO,EAAE,MAAM;QACf,IAAI;QACJ,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,UAAU;QACV,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,MAAM;QACpB,MAAM,EAAE,EAAE;QACV,EAAE;KACH,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts deleted file mode 100644 index 02ba453b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaObjCxt } from ".."; -export declare function assignDefaults(it: SchemaObjCxt, ty?: string): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js deleted file mode 100644 index cd9c42d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assignDefaults = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function assignDefaults(it, ty) { - const { properties, items } = it.schema; - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default); - } - } - else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i) => assignDefault(it, i, sch.default)); - } -} -exports.assignDefaults = assignDefaults; -function assignDefault(it, prop, defaultValue) { - const { gen, compositeRule, data, opts } = it; - if (defaultValue === undefined) - return; - const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`; - if (compositeRule) { - (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`); - return; - } - let condition = (0, codegen_1._) `${childData} === undefined`; - if (opts.useDefaults === "empty") { - condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === ""`; - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`); -} -//# sourceMappingURL=defaults.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map deleted file mode 100644 index 88d3672e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map +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WAAW,KAAK,OAAO,EAAE,CAAC;QACjC,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,SAAS,OAAO,SAAS,gBAAgB,SAAS,SAAS,CAAA;IAC7E,CAAC;IACD,iCAAiC;IACjC,2FAA2F;IAC3F,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,IAAA,WAAC,EAAA,GAAG,SAAS,MAAM,IAAA,mBAAS,EAAC,YAAY,CAAC,EAAE,CAAC,CAAA;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.d.ts deleted file mode 100644 index 6c533ed7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AddedKeywordDefinition, AnySchemaObject, KeywordErrorCxt, KeywordCxtParams } from "../../types"; -import type { SchemaCxt, SchemaObjCxt } from ".."; -import { SubschemaArgs } from "./subschema"; -import { Code, Name, CodeGen } from "../codegen"; -import type { JSONType } from "../rules"; -import { ErrorPaths } from "../errors"; -export declare function validateFunctionCode(it: SchemaCxt): void; -export declare class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly keyword: string; - readonly data: Name; - readonly $data?: string | false; - schema: any; - readonly schemaValue: Code | number | boolean; - readonly schemaCode: Code | number | boolean; - readonly schemaType: JSONType[]; - readonly parentSchema: AnySchemaObject; - readonly errsCount?: Name; - params: KeywordCxtParams; - readonly it: SchemaObjCxt; - readonly def: AddedKeywordDefinition; - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string); - result(condition: Code, successAction?: () => void, failAction?: () => void): void; - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void; - pass(condition: Code, failAction?: () => void): void; - fail(condition?: Code): void; - fail$data(condition: Code): void; - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void; - private _error; - $dataError(): void; - reset(): void; - ok(cond: Code | boolean): void; - setParams(obj: KeywordCxtParams, assign?: true): void; - block$data(valid: Name, codeBlock: () => void, $dataValid?: Code): void; - check$data(valid?: Name, $dataValid?: Code): void; - invalid$data(): Code; - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt; - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void; - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void; -} -export declare function getData($data: string, { dataLevel, dataNames, dataPathArr }: SchemaCxt): Code | number; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js deleted file mode 100644 index 0d683322..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js +++ /dev/null @@ -1,520 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0; -const boolSchema_1 = require("./boolSchema"); -const dataType_1 = require("./dataType"); -const applicability_1 = require("./applicability"); -const dataType_2 = require("./dataType"); -const defaults_1 = require("./defaults"); -const keyword_1 = require("./keyword"); -const subschema_1 = require("./subschema"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const resolve_1 = require("../resolve"); -const util_1 = require("../util"); -const errors_1 = require("../errors"); -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -function validateFunctionCode(it) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it); - return; - } - } - validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); -} -exports.validateFunctionCode = validateFunctionCode; -function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { - if (opts.code.es5) { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { - gen.code((0, codegen_1._) `"use strict"; ${funcSourceUrl(schema, opts)}`); - destructureValCxtES5(gen, opts); - gen.code(body); - }); - } - else { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body)); - } -} -function destructureValCxt(opts) { - return (0, codegen_1._) `{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`; -} -function destructureValCxtES5(gen, opts) { - gen.if(names_1.default.valCxt, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`); - gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`); - gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`); - }, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `""`); - gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`); - gen.var(names_1.default.rootData, names_1.default.data); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`); - }); -} -function topSchemaObjCode(it) { - const { schema, opts, gen } = it; - validateFunction(it, () => { - if (opts.$comment && schema.$comment) - commentKeyword(it); - checkNoDefault(it); - gen.let(names_1.default.vErrors, null); - gen.let(names_1.default.errors, 0); - if (opts.unevaluated) - resetEvaluated(it); - typeAndKeywords(it); - returnResults(it); - }); - return; -} -function resetEvaluated(it) { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const { gen, validateName } = it; - it.evaluated = gen.const("evaluated", (0, codegen_1._) `${validateName}.evaluated`); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`)); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`)); -} -function funcSourceUrl(schema, opts) { - const schId = typeof schema == "object" && schema[opts.schemaId]; - return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil; -} -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it, valid) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid); - return; - } - } - (0, boolSchema_1.boolOrEmptySchema)(it, valid); -} -function schemaCxtHasRules({ schema, self }) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (self.RULES.all[key]) - return true; - return false; -} -function isSchemaObj(it) { - return typeof it.schema != "boolean"; -} -function subSchemaObjCode(it, valid) { - const { schema, gen, opts } = it; - if (opts.$comment && schema.$comment) - commentKeyword(it); - updateContext(it); - checkAsyncSchema(it); - const errsCount = gen.const("_errs", names_1.default.errors); - typeAndKeywords(it, errsCount); - // TODO var - gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); -} -function checkKeywords(it) { - (0, util_1.checkUnknownRules)(it); - checkRefsAndKeywords(it); -} -function typeAndKeywords(it, errsCount) { - if (it.opts.jtd) - return schemaKeywords(it, [], false, errsCount); - const types = (0, dataType_1.getSchemaTypes)(it.schema); - const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); - schemaKeywords(it, types, !checkedTypes, errsCount); -} -function checkRefsAndKeywords(it) { - const { schema, errSchemaPath, opts, self } = it; - if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); - } -} -function checkNoDefault(it) { - const { schema, opts } = it; - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); - } -} -function updateContext(it) { - const schId = it.schema[it.opts.schemaId]; - if (schId) - it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); -} -function checkAsyncSchema(it) { - if (it.schema.$async && !it.schemaEnv.$async) - throw new Error("async schema in sync schema"); -} -function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { - const msg = schema.$comment; - if (opts.$comment === true) { - gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`); - } - else if (typeof opts.$comment == "function") { - const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`; - const rootName = gen.scopeValue("root", { ref: schemaEnv.root }); - gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`); - } -} -function returnResults(it) { - const { gen, schemaEnv, validateName, ValidationError, opts } = it; - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`)); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors); - if (opts.unevaluated) - assignEvaluated(it); - gen.return((0, codegen_1._) `${names_1.default.errors} === 0`); - } -} -function assignEvaluated({ gen, evaluated, props, items }) { - if (props instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.props`, props); - if (items instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.items`, items); -} -function schemaKeywords(it, types, typeErrors, errsCount) { - const { gen, schema, data, allErrors, opts, self } = it; - const { RULES } = self; - if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); // TODO typecast - return; - } - if (!opts.jtd) - checkStrictTypes(it, types); - gen.block(() => { - for (const group of RULES.rules) - groupKeywords(group); - groupKeywords(RULES.post); - }); - function groupKeywords(group) { - if (!(0, applicability_1.shouldUseGroup)(schema, group)) - return; - if (group.type) { - gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); - iterateKeywords(it, group); - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else(); - (0, dataType_2.reportTypeError)(it); - } - gen.endIf(); - } - else { - iterateKeywords(it, group); - } - // TODO make it "ok" call? - if (!allErrors) - gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`); - } -} -function iterateKeywords(it, group) { - const { gen, schema, opts: { useDefaults }, } = it; - if (useDefaults) - (0, defaults_1.assignDefaults)(it, group.type); - gen.block(() => { - for (const rule of group.rules) { - if ((0, applicability_1.shouldUseRule)(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type); - } - } - }); -} -function checkStrictTypes(it, types) { - if (it.schemaEnv.meta || !it.opts.strictTypes) - return; - checkContextTypes(it, types); - if (!it.opts.allowUnionTypes) - checkMultipleTypes(it, types); - checkKeywordTypes(it, it.dataTypes); -} -function checkContextTypes(it, types) { - if (!types.length) - return; - if (!it.dataTypes.length) { - it.dataTypes = types; - return; - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`); - } - }); - narrowSchemaTypes(it, types); -} -function checkMultipleTypes(it, ts) { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword"); - } -} -function checkKeywordTypes(it, ts) { - const rules = it.self.RULES.all; - for (const keyword in rules) { - const rule = rules[keyword]; - if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) { - const { type } = rule.definition; - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`); - } - } - } -} -function hasApplicableType(schTs, kwdT) { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")); -} -function includesType(ts, t) { - return ts.includes(t) || (t === "integer" && ts.includes("number")); -} -function narrowSchemaTypes(it, withTypes) { - const ts = []; - for (const t of it.dataTypes) { - if (includesType(withTypes, t)) - ts.push(t); - else if (withTypes.includes("integer") && t === "number") - ts.push("integer"); - } - it.dataTypes = ts; -} -function strictTypesError(it, msg) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - msg += ` at "${schemaPath}" (strictTypes)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); -} -class KeywordCxt { - constructor(it, def, keyword) { - (0, keyword_1.validateKeywordUsage)(it, def, keyword); - this.gen = it.gen; - this.allErrors = it.allErrors; - this.keyword = keyword; - this.data = it.data; - this.schema = it.schema[keyword]; - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data; - this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data); - this.schemaType = def.schemaType; - this.parentSchema = it.schema; - this.params = {}; - this.it = it; - this.def = def; - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)); - } - else { - this.schemaCode = this.schemaValue; - if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`); - } - } - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", names_1.default.errors); - } - } - result(condition, successAction, failAction) { - this.failResult((0, codegen_1.not)(condition), successAction, failAction); - } - failResult(condition, successAction, failAction) { - this.gen.if(condition); - if (failAction) - failAction(); - else - this.error(); - if (successAction) { - this.gen.else(); - successAction(); - if (this.allErrors) - this.gen.endIf(); - } - else { - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - } - pass(condition, failAction) { - this.failResult((0, codegen_1.not)(condition), undefined, failAction); - } - fail(condition) { - if (condition === undefined) { - this.error(); - if (!this.allErrors) - this.gen.if(false); // this branch will be removed by gen.optimize - return; - } - this.gen.if(condition); - this.error(); - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - fail$data(condition) { - if (!this.$data) - return this.fail(condition); - const { schemaCode } = this; - this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`); - } - error(append, errorParams, errorPaths) { - if (errorParams) { - this.setParams(errorParams); - this._error(append, errorPaths); - this.setParams({}); - return; - } - this._error(append, errorPaths); - } - _error(append, errorPaths) { - ; - (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths); - } - $dataError() { - (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); - } - reset() { - if (this.errsCount === undefined) - throw new Error('add "trackErrors" to keyword definition'); - (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); - } - ok(cond) { - if (!this.allErrors) - this.gen.if(cond); - } - setParams(obj, assign) { - if (assign) - Object.assign(this.params, obj); - else - this.params = obj; - } - block$data(valid, codeBlock, $dataValid = codegen_1.nil) { - this.gen.block(() => { - this.check$data(valid, $dataValid); - codeBlock(); - }); - } - check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { - if (!this.$data) - return; - const { gen, schemaCode, schemaType, def } = this; - gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid)); - if (valid !== codegen_1.nil) - gen.assign(valid, true); - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()); - this.$dataError(); - if (valid !== codegen_1.nil) - gen.assign(valid, false); - } - gen.else(); - } - invalid$data() { - const { gen, schemaCode, schemaType, def, it } = this; - return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); - function wrong$DataType() { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof codegen_1.Name)) - throw new Error("ajv implementation error"); - const st = Array.isArray(schemaType) ? schemaType : [schemaType]; - return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`; - } - return codegen_1.nil; - } - function invalid$DataSchema() { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); // TODO value.code for standalone - return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`; - } - return codegen_1.nil; - } - } - subschema(appl, valid) { - const subschema = (0, subschema_1.getSubschema)(this.it, appl); - (0, subschema_1.extendSubschemaData)(subschema, this.it, appl); - (0, subschema_1.extendSubschemaMode)(subschema, appl); - const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined }; - subschemaCode(nextContext, valid); - return nextContext; - } - mergeEvaluated(schemaCxt, toName) { - const { it, gen } = this; - if (!it.opts.unevaluated) - return; - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName); - } - } - mergeValidEvaluated(schemaCxt, valid) { - const { it, gen } = this; - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); - return true; - } - } -} -exports.KeywordCxt = KeywordCxt; -function keywordCode(it, keyword, def, ruleType) { - const cxt = new KeywordCxt(it, def, keyword); - if ("code" in def) { - def.code(cxt, ruleType); - } - else if (cxt.$data && def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } - else if ("macro" in def) { - (0, keyword_1.macroKeywordCode)(cxt, def); - } - else if (def.compile || def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } -} -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/; -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; -function getData($data, { dataLevel, dataNames, dataPathArr }) { - let jsonPointer; - let data; - if ($data === "") - return names_1.default.rootData; - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) - throw new Error(`Invalid JSON-pointer: ${$data}`); - jsonPointer = $data; - data = names_1.default.rootData; - } - else { - const matches = RELATIVE_JSON_POINTER.exec($data); - if (!matches) - throw new Error(`Invalid JSON-pointer: ${$data}`); - const up = +matches[1]; - jsonPointer = matches[2]; - if (jsonPointer === "#") { - if (up >= dataLevel) - throw new Error(errorMsg("property/index", up)); - return dataPathArr[dataLevel - up]; - } - if (up > dataLevel) - throw new Error(errorMsg("data", up)); - data = dataNames[dataLevel - up]; - if (!jsonPointer) - return data; - } - let expr = data; - const segments = jsonPointer.split("/"); - for (const segment of segments) { - if (segment) { - data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`; - expr = (0, codegen_1._) `${expr} && ${data}`; - } - } - return expr; - function errorMsg(pointerType, up) { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; - } -} -exports.getData = getData; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js.map deleted file mode 100644 index cdf5854e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/validate/index.ts"],"names":[],"mappings":";;;AASA,6CAAoE;AACpE,yCAAiE;AACjE,mDAA6D;AAC7D,yCAAmF;AACnF,yCAAyC;AACzC,uCAAkG;AAClG,2CAAiG;AACjG,wCAAwF;AACxF,oCAAwB;AACxB,wCAAqC;AACrC,kCAOgB;AAEhB,sCAMkB;AAElB,mGAAmG;AACnG,SAAgB,oBAAoB,CAAC,EAAa;IAChD,IAAI,WAAW,CAAC,EAAE,C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,EAAC,IAAA,0BAAmB,EAAC,OAAO,CAAC,CAAC,EAAE,CAAA;YAC7D,IAAI,GAAG,IAAA,WAAC,EAAA,GAAG,IAAI,OAAO,IAAI,EAAE,CAAA;QAC9B,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;IAEX,SAAS,QAAQ,CAAC,WAAmB,EAAE,EAAU;QAC/C,OAAO,iBAAiB,WAAW,IAAI,EAAE,gCAAgC,SAAS,EAAE,CAAA;IACtF,CAAC;AACH,CAAC;AAtCD,0BAsCC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.d.ts deleted file mode 100644 index d15cee87..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { KeywordCxt } from "."; -import type { AddedKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType } from "../rules"; -export declare function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void; -export declare function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void; -export declare function validSchemaType(schema: unknown, schemaType: JSONType[], allowUndefined?: boolean): boolean; -export declare function validateKeywordUsage({ schema, opts, self, errSchemaPath }: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js deleted file mode 100644 index 1109d3a4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0; -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const errors_1 = require("../errors"); -function macroKeywordCode(cxt, def) { - const { gen, keyword, schema, parentSchema, it } = cxt; - const macroSchema = def.macro.call(it.self, schema, parentSchema, it); - const schemaRef = useKeyword(gen, keyword, macroSchema); - if (it.opts.validateSchema !== false) - it.self.validateSchema(macroSchema, true); - const valid = gen.name("valid"); - cxt.subschema({ - schema: macroSchema, - schemaPath: codegen_1.nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, valid); - cxt.pass(valid, () => cxt.error(true)); -} -exports.macroKeywordCode = macroKeywordCode; -function funcKeywordCode(cxt, def) { - var _a; - const { gen, keyword, schema, parentSchema, $data, it } = cxt; - checkAsyncKeyword(it, def); - const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate; - const validateRef = useKeyword(gen, keyword, validate); - const valid = gen.let("valid"); - cxt.block$data(valid, validateKeyword); - cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid); - function validateKeyword() { - if (def.errors === false) { - assignValid(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => cxt.error()); - } - else { - const ruleErrs = def.async ? validateAsync() : validateSync(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => addErrs(cxt, ruleErrs)); - } - } - function validateAsync() { - const ruleErrs = gen.let("ruleErrs", null); - gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e))); - return ruleErrs; - } - function validateSync() { - const validateErrs = (0, codegen_1._) `${validateRef}.errors`; - gen.assign(validateErrs, null); - assignValid(codegen_1.nil); - return validateErrs; - } - function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) { - const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self; - const passSchema = !(("compile" in def && !$data) || def.schema === false); - gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying); - } - function reportErrs(errors) { - var _a; - gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors); - } -} -exports.funcKeywordCode = funcKeywordCode; -function modifyData(cxt) { - const { gen, data, it } = cxt; - gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`)); -} -function addErrs(cxt, errs) { - const { gen } = cxt; - gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => { - gen - .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`) - .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - (0, errors_1.extendErrors)(cxt); - }, () => cxt.error()); -} -function checkAsyncKeyword({ schemaEnv }, def) { - if (def.async && !schemaEnv.$async) - throw new Error("async keyword in sync schema"); -} -function useKeyword(gen, keyword, result) { - if (result === undefined) - throw new Error(`keyword "${keyword}" failed to compile`); - return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) }); -} -function validSchemaType(schema, schemaType, allowUndefined = false) { - // TODO add tests - return (!schemaType.length || - schemaType.some((st) => st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined"))); -} -exports.validSchemaType = validSchemaType; -function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error"); - } - const deps = def.dependencies; - if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`); - } - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]); - if (!valid) { - const msg = `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors); - if (opts.validateSchema === "log") - self.logger.error(msg); - else - throw new Error(msg); - } - } -} -exports.validateKeywordUsage = validateKeywordUsage; -//# sourceMappingURL=keyword.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map deleted file mode 100644 index ad1d1b99..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyword.js","sourceRoot":"","sources":["../../../lib/compile/validate/keyword.ts"],"names":[],"mappings":";;;AAUA,wCAAsE;AACtE,oCAAwB;AAExB,kDAAwD;AACxD,sCAAsC;AAItC,SAAgB,gBAAgB,CAAC,GAAe,EAAE,GAA2B;IAC3E,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACpD,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;IACrE,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,CAAA;IACvD,IAAI,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,KAAK;QAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IAE/E,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,GAAG,CAAC,SAAS,CACX;QACE,MAAM,EAAE,WAAW;QACnB,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,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;;gBACpD,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;QAC3B,CAAC;IACH,CAAC;AACH,CAAC;AAzBD,oDAyBC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts deleted file mode 100644 index b92785f2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AnySchema } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { Code, Name } from "../codegen"; -import { Type } from "../util"; -import type { JSONType } from "../rules"; -export interface SubschemaContext { - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef?: Code; - errorPath?: Code; - dataLevel?: number; - dataTypes?: JSONType[]; - data?: Name; - parentData?: Name; - parentDataProperty?: Code | number; - dataNames?: Name[]; - dataPathArr?: (Code | number)[]; - propertyName?: Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - compositeRule?: true; - createErrors?: boolean; - allErrors?: boolean; -} -export type SubschemaArgs = Partial<{ - keyword: string; - schemaProp: string | number; - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef: Code; - data: Name | Code; - dataProp: Code | string | number; - dataTypes: JSONType[]; - definedProperties: Set; - propertyName: Name; - dataPropType: Type; - jtdDiscriminator: string; - jtdMetadata: boolean; - compositeRule: true; - createErrors: boolean; - allErrors: boolean; -}>; -export declare function getSubschema(it: SchemaObjCxt, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }: SubschemaArgs): SubschemaContext; -export declare function extendSubschemaData(subschema: SubschemaContext, it: SchemaObjCxt, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }: SubschemaArgs): void; -export declare function extendSubschemaMode(subschema: SubschemaContext, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }: SubschemaArgs): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js deleted file mode 100644 index 9de28286..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed'); - } - if (keyword !== undefined) { - const sch = it.schema[keyword]; - return schemaProp === undefined - ? { - schema: sch, - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`, - }; - } - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - }; - } - throw new Error('either "keyword" or "schema" must be passed'); -} -exports.getSubschema = getSubschema; -function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed'); - } - const { gen } = it; - if (dataProp !== undefined) { - const { errorPath, dataPathArr, opts } = it; - const nextData = gen.let("data", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true); - dataContextProps(nextData); - subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`; - subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`; - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]; - } - if (data !== undefined) { - const nextData = data instanceof codegen_1.Name ? data : gen.let("data", data, true); // replaceable if used once? - dataContextProps(nextData); - if (propertyName !== undefined) - subschema.propertyName = propertyName; - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - if (dataTypes) - subschema.dataTypes = dataTypes; - function dataContextProps(_nextData) { - subschema.data = _nextData; - subschema.dataLevel = it.dataLevel + 1; - subschema.dataTypes = []; - it.definedProperties = new Set(); - subschema.parentData = it.data; - subschema.dataNames = [...it.dataNames, _nextData]; - } -} -exports.extendSubschemaData = extendSubschemaData; -function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) { - if (compositeRule !== undefined) - subschema.compositeRule = compositeRule; - if (createErrors !== undefined) - subschema.createErrors = createErrors; - if (allErrors !== undefined) - subschema.allErrors = allErrors; - subschema.jtdDiscriminator = jtdDiscriminator; // not inherited - subschema.jtdMetadata = jtdMetadata; // not inherited -} -exports.extendSubschemaMode = extendSubschemaMode; -//# sourceMappingURL=subschema.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map deleted file mode 100644 index e4f903fb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subschema.js","sourceRoot":"","sources":["../../../lib/compile/validate/subschema.ts"],"names":[],"mappings":";;;AAEA,wCAA0D;AA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B;QACvG,gBAAgB,CAAC,QAAQ,CAAC,CAAA;QAC1B,IAAI,YAAY,KAAK,SAAS;YAAE,SAAS,CAAC,YAAY,GAAG,YAAY,CAAA;QACrE,2GAA2G;IAC7G,CAAC;IAED,IAAI,SAAS;QAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAA;IAE9C,SAAS,gBAAgB,CAAC,SAAe;QACvC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAA;QAC1B,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,GAAG,CAAC,CAAA;QACtC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAA;QACxB,EAAE,CAAC,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAA;QACxC,SAAS,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAA;QAC9B,SAAS,CAAC,SAAS,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;IACpD,CAAC;AACH,CAAC;AArCD,kDAqCC;AAED,SAAgB,mBAAmB,CACjC,SAA2B,EAC3B,EAAC,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAgB;IAEtF,IAAI,aAAa,KAAK,SAAS;QAAE,SAAS,CAAC,aAAa,GAAG,aAAa,CAAA;IACxE,IAAI,YAAY,KAAK,SAAS;QAAE,SAAS,CAAC,YAAY,GAAG,YAAY,CAAA;IACrE,IAAI,SAAS,KAAK,SAAS;QAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5D,SAAS,CAAC,gBAAgB,GAAG,gBAAgB,CAAA,CAAC,gBAAgB;IAC9D,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA,CAAC,gBAAgB;AACtD,CAAC;AATD,kDASC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.d.ts deleted file mode 100644 index 4591ed9e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, AnyValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv; - [prop: string]: any; -} -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -import type { Schema, AnySchema, AnySchemaObject, SchemaObject, AsyncSchema, Vocabulary, KeywordDefinition, AddedKeywordDefinition, AnyValidateFunction, ValidateFunction, AsyncValidateFunction, ErrorObject, Format, AddedFormat, RegExpEngine, UriResolver } from "./types"; -import type { JSONSchemaType } from "./types/json-schema"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import ValidationError from "./runtime/validation_error"; -import MissingRefError from "./compile/ref_error"; -import { ValidationRules } from "./compile/rules"; -import { SchemaEnv } from "./compile"; -import { Code, ValueScope } from "./compile/codegen"; -export type Options = CurrentOptions & DeprecatedOptions; -export interface CurrentOptions { - strict?: boolean | "log"; - strictSchema?: boolean | "log"; - strictNumbers?: boolean | "log"; - strictTypes?: boolean | "log"; - strictTuples?: boolean | "log"; - strictRequired?: boolean | "log"; - allowMatchingProperties?: boolean; - allowUnionTypes?: boolean; - validateFormats?: boolean; - $data?: boolean; - allErrors?: boolean; - verbose?: boolean; - discriminator?: boolean; - unicodeRegExp?: boolean; - timestamp?: "string" | "date"; - parseDate?: boolean; - allowDate?: boolean; - $comment?: true | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown); - formats?: { - [Name in string]?: Format; - }; - keywords?: Vocabulary; - schemas?: AnySchema[] | { - [Key in string]?: AnySchema; - }; - logger?: Logger | false; - loadSchema?: (uri: string) => Promise; - removeAdditional?: boolean | "all" | "failing"; - useDefaults?: boolean | "empty"; - coerceTypes?: boolean | "array"; - next?: boolean; - unevaluated?: boolean; - dynamicRef?: boolean; - schemaId?: "id" | "$id"; - jtd?: boolean; - meta?: SchemaObject | boolean; - defaultMeta?: string | AnySchemaObject; - validateSchema?: boolean | "log"; - addUsedSchema?: boolean; - inlineRefs?: boolean | number; - passContext?: boolean; - loopRequired?: number; - loopEnum?: number; - ownProperties?: boolean; - multipleOfPrecision?: number; - int32range?: boolean; - messages?: boolean; - code?: CodeOptions; - uriResolver?: UriResolver; -} -export interface CodeOptions { - es5?: boolean; - esm?: boolean; - lines?: boolean; - optimize?: boolean | number; - formats?: Code; - source?: boolean; - process?: (code: string, schema?: SchemaEnv) => string; - regExp?: RegExpEngine; -} -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine; - optimize: number; -} -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean; - /** @deprecated */ - jsPropertySyntax?: boolean; - /** @deprecated */ - unicode?: boolean; -} -type RequiredInstanceOptions = { - [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "schemaId" | "addUsedSchema" | "validateSchema" | "validateFormats" | "int32range" | "unicodeRegExp" | "uriResolver"]: NonNullable; -} & { - code: InstanceCodeOptions; -}; -export type InstanceOptions = Options & RequiredInstanceOptions; -export interface Logger { - log(...args: unknown[]): unknown; - warn(...args: unknown[]): unknown; - error(...args: unknown[]): unknown; -} -export default class Ajv { - opts: InstanceOptions; - errors?: ErrorObject[] | null; - logger: Logger; - readonly scope: ValueScope; - readonly schemas: { - [Key in string]?: SchemaEnv; - }; - readonly refs: { - [Ref in string]?: SchemaEnv | string; - }; - readonly formats: { - [Name in string]?: AddedFormat; - }; - readonly RULES: ValidationRules; - readonly _compilations: Set; - private readonly _loading; - private readonly _cache; - private readonly _metaOpts; - static ValidationError: typeof ValidationError; - static MissingRefError: typeof MissingRefError; - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - validate(schema: Schema | string, data: unknown): boolean; - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T; - validate(schema: JTDSchemaType, data: unknown): data is T; - validate(schema: T, data: unknown): data is JTDDataType; - validate(schema: AsyncSchema, data: unknown | T): Promise; - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise; - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: T, _meta?: boolean): ValidateFunction>; - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction; - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction; - compileAsync(schema: SchemaObject | JSONSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: AsyncSchema, meta?: boolean): Promise>; - compileAsync(schema: AnySchemaObject, meta?: boolean): Promise>; - addSchema(schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema?: boolean | "log"): Ajv; - addMetaSchema(schema: AnySchemaObject, key?: string, // schema key - _validateSchema?: boolean | "log"): Ajv; - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise; - getSchema(keyRef: string): AnyValidateFunction | undefined; - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv; - addVocabulary(definitions: Vocabulary): Ajv; - addKeyword(kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition): Ajv; - getKeyword(keyword: string): AddedKeywordDefinition | boolean; - removeKeyword(keyword: string): Ajv; - addFormat(name: string, format: Format): Ajv; - errorsText(errors?: ErrorObject[] | null | undefined, // optional array of validation errors - { separator, dataVar }?: ErrorsTextOptions): string; - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject; - private _removeAllSchemas; - _addSchema(schema: AnySchema, meta?: boolean, baseId?: string, validateSchema?: boolean | "log", addSchema?: boolean): SchemaEnv; - private _checkUnique; - private _compileSchemaEnv; - private _compileMetaSchema; -} -export interface ErrorsTextOptions { - separator?: string; - dataVar?: string; -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js deleted file mode 100644 index 7e30c83a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js +++ /dev/null @@ -1,618 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -const validation_error_1 = require("./runtime/validation_error"); -const ref_error_1 = require("./compile/ref_error"); -const rules_1 = require("./compile/rules"); -const compile_1 = require("./compile"); -const codegen_2 = require("./compile/codegen"); -const resolve_1 = require("./compile/resolve"); -const dataType_1 = require("./compile/validate/dataType"); -const util_1 = require("./compile/util"); -const $dataRefSchema = require("./refs/data.json"); -const uri_1 = require("./runtime/uri"); -const defaultRegExp = (str, flags) => new RegExp(str, flags); -defaultRegExp.code = "new RegExp"; -const META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"]; -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]); -const removedOptions = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -}; -const deprecatedOptions = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -}; -const MAX_EXPRESSION = 200; -// eslint-disable-next-line complexity -function requiredOptions(o) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; - const s = o.strict; - const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize; - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0; - const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp; - const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default; - return { - strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true, - strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true, - strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log", - strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log", - strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false, - code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp }, - loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION, - loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION, - meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true, - messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true, - inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true, - schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : "$id", - addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true, - validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true, - validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true, - unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true, - int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true, - uriResolver: uriResolver, - }; -} -class Ajv { - constructor(opts = {}) { - this.schemas = {}; - this.refs = {}; - this.formats = {}; - this._compilations = new Set(); - this._loading = {}; - this._cache = new Map(); - opts = this.opts = { ...opts, ...requiredOptions(opts) }; - const { es5, lines } = this.opts.code; - this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines }); - this.logger = getLogger(opts.logger); - const formatOpt = opts.validateFormats; - opts.validateFormats = false; - this.RULES = (0, rules_1.getRules)(); - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED"); - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn"); - this._metaOpts = getMetaSchemaOptions.call(this); - if (opts.formats) - addInitialFormats.call(this); - this._addVocabularies(); - this._addDefaultMetaSchema(); - if (opts.keywords) - addInitialKeywords.call(this, opts.keywords); - if (typeof opts.meta == "object") - this.addMetaSchema(opts.meta); - addInitialSchemas.call(this); - opts.validateFormats = formatOpt; - } - _addVocabularies() { - this.addKeyword("$async"); - } - _addDefaultMetaSchema() { - const { $data, meta, schemaId } = this.opts; - let _dataRefSchema = $dataRefSchema; - if (schemaId === "id") { - _dataRefSchema = { ...$dataRefSchema }; - _dataRefSchema.id = _dataRefSchema.$id; - delete _dataRefSchema.$id; - } - if (meta && $data) - this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false); - } - defaultMeta() { - const { meta, schemaId } = this.opts; - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined); - } - validate(schemaKeyRef, // key, ref or schema object - // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents - data // to be validated - ) { - let v; - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef); - if (!v) - throw new Error(`no schema with key or ref "${schemaKeyRef}"`); - } - else { - v = this.compile(schemaKeyRef); - } - const valid = v(data); - if (!("$async" in v)) - this.errors = v.errors; - return valid; - } - compile(schema, _meta) { - const sch = this._addSchema(schema, _meta); - return (sch.validate || this._compileSchemaEnv(sch)); - } - compileAsync(schema, meta) { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function"); - } - const { loadSchema } = this.opts; - return runCompileAsync.call(this, schema, meta); - async function runCompileAsync(_schema, _meta) { - await loadMetaSchema.call(this, _schema.$schema); - const sch = this._addSchema(_schema, _meta); - return sch.validate || _compileAsync.call(this, sch); - } - async function loadMetaSchema($ref) { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, { $ref }, true); - } - } - async function _compileAsync(sch) { - try { - return this._compileSchemaEnv(sch); - } - catch (e) { - if (!(e instanceof ref_error_1.default)) - throw e; - checkLoaded.call(this, e); - await loadMissingSchema.call(this, e.missingSchema); - return _compileAsync.call(this, sch); - } - } - function checkLoaded({ missingSchema: ref, missingRef }) { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`); - } - } - async function loadMissingSchema(ref) { - const _schema = await _loadSchema.call(this, ref); - if (!this.refs[ref]) - await loadMetaSchema.call(this, _schema.$schema); - if (!this.refs[ref]) - this.addSchema(_schema, ref, meta); - } - async function _loadSchema(ref) { - const p = this._loading[ref]; - if (p) - return p; - try { - return await (this._loading[ref] = loadSchema(ref)); - } - finally { - delete this._loading[ref]; - } - } - } - // Adds schema to the instance - addSchema(schema, // If array is passed, `key` will be ignored - key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ) { - if (Array.isArray(schema)) { - for (const sch of schema) - this.addSchema(sch, undefined, _meta, _validateSchema); - return this; - } - let id; - if (typeof schema === "object") { - const { schemaId } = this.opts; - id = schema[schemaId]; - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`); - } - } - key = (0, resolve_1.normalizeId)(key || id); - this._checkUnique(key); - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true); - return this; - } - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema(schema, key, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ) { - this.addSchema(schema, key, true, _validateSchema); - return this; - } - // Validate schema against its meta-schema - validateSchema(schema, throwOrLogError) { - if (typeof schema == "boolean") - return true; - let $schema; - $schema = schema.$schema; - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string"); - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta(); - if (!$schema) { - this.logger.warn("meta-schema not available"); - this.errors = null; - return true; - } - const valid = this.validate($schema, schema); - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText(); - if (this.opts.validateSchema === "log") - this.logger.error(message); - else - throw new Error(message); - } - return valid; - } - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef) { - let sch; - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") - keyRef = sch; - if (sch === undefined) { - const { schemaId } = this.opts; - const root = new compile_1.SchemaEnv({ schema: {}, schemaId }); - sch = compile_1.resolveSchema.call(this, root, keyRef); - if (!sch) - return; - this.refs[keyRef] = sch; - } - return (sch.validate || this._compileSchemaEnv(sch)); - } - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef) { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef); - this._removeAllSchemas(this.refs, schemaKeyRef); - return this; - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas); - this._removeAllSchemas(this.refs); - this._cache.clear(); - return this; - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef); - if (typeof sch == "object") - this._cache.delete(sch.schema); - delete this.schemas[schemaKeyRef]; - delete this.refs[schemaKeyRef]; - return this; - } - case "object": { - const cacheKey = schemaKeyRef; - this._cache.delete(cacheKey); - let id = schemaKeyRef[this.opts.schemaId]; - if (id) { - id = (0, resolve_1.normalizeId)(id); - delete this.schemas[id]; - delete this.refs[id]; - } - return this; - } - default: - throw new Error("ajv.removeSchema: invalid parameter"); - } - } - // add "vocabulary" - a collection of keywords - addVocabulary(definitions) { - for (const def of definitions) - this.addKeyword(def); - return this; - } - addKeyword(kwdOrDef, def // deprecated - ) { - let keyword; - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef; - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword"); - def.keyword = keyword; - } - } - else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef; - keyword = def.keyword; - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array"); - } - } - else { - throw new Error("invalid addKeywords parameters"); - } - checkKeyword.call(this, keyword, def); - if (!def) { - (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd)); - return this; - } - keywordMetaschema.call(this, def); - const definition = { - ...def, - type: (0, dataType_1.getJSONTypes)(def.type), - schemaType: (0, dataType_1.getJSONTypes)(def.schemaType), - }; - (0, util_1.eachItem)(keyword, definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))); - return this; - } - getKeyword(keyword) { - const rule = this.RULES.all[keyword]; - return typeof rule == "object" ? rule.definition : !!rule; - } - // Remove keyword - removeKeyword(keyword) { - // TODO return type should be Ajv - const { RULES } = this; - delete RULES.keywords[keyword]; - delete RULES.all[keyword]; - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword); - if (i >= 0) - group.rules.splice(i, 1); - } - return this; - } - // Add format - addFormat(name, format) { - if (typeof format == "string") - format = new RegExp(format); - this.formats[name] = format; - return this; - } - errorsText(errors = this.errors, // optional array of validation errors - { separator = ", ", dataVar = "data" } = {} // optional options with properties `separator` and `dataVar` - ) { - if (!errors || errors.length === 0) - return "No errors"; - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg); - } - $dataMetaSchema(metaSchema, keywordsJsonPointers) { - const rules = this.RULES.all; - metaSchema = JSON.parse(JSON.stringify(metaSchema)); - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1); // first segment is an empty string - let keywords = metaSchema; - for (const seg of segments) - keywords = keywords[seg]; - for (const key in rules) { - const rule = rules[key]; - if (typeof rule != "object") - continue; - const { $data } = rule.definition; - const schema = keywords[key]; - if ($data && schema) - keywords[key] = schemaOrData(schema); - } - } - return metaSchema; - } - _removeAllSchemas(schemas, regex) { - for (const keyRef in schemas) { - const sch = schemas[keyRef]; - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef]; - } - else if (sch && !sch.meta) { - this._cache.delete(sch.schema); - delete schemas[keyRef]; - } - } - } - } - _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) { - let id; - const { schemaId } = this.opts; - if (typeof schema == "object") { - id = schema[schemaId]; - } - else { - if (this.opts.jtd) - throw new Error("schema must be object"); - else if (typeof schema != "boolean") - throw new Error("schema must be object or boolean"); - } - let sch = this._cache.get(schema); - if (sch !== undefined) - return sch; - baseId = (0, resolve_1.normalizeId)(id || baseId); - const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId); - sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs }); - this._cache.set(sch.schema, sch); - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) - this._checkUnique(baseId); - this.refs[baseId] = sch; - } - if (validateSchema) - this.validateSchema(schema, true); - return sch; - } - _checkUnique(id) { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`); - } - } - _compileSchemaEnv(sch) { - if (sch.meta) - this._compileMetaSchema(sch); - else - compile_1.compileSchema.call(this, sch); - /* istanbul ignore if */ - if (!sch.validate) - throw new Error("ajv implementation error"); - return sch.validate; - } - _compileMetaSchema(sch) { - const currentOpts = this.opts; - this.opts = this._metaOpts; - try { - compile_1.compileSchema.call(this, sch); - } - finally { - this.opts = currentOpts; - } - } -} -Ajv.ValidationError = validation_error_1.default; -Ajv.MissingRefError = ref_error_1.default; -exports.default = Ajv; -function checkOptions(checkOpts, options, msg, log = "error") { - for (const key in checkOpts) { - const opt = key; - if (opt in options) - this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`); - } -} -function getSchEnv(keyRef) { - keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef]; -} -function addInitialSchemas() { - const optsSchemas = this.opts.schemas; - if (!optsSchemas) - return; - if (Array.isArray(optsSchemas)) - this.addSchema(optsSchemas); - else - for (const key in optsSchemas) - this.addSchema(optsSchemas[key], key); -} -function addInitialFormats() { - for (const name in this.opts.formats) { - const format = this.opts.formats[name]; - if (format) - this.addFormat(name, format); - } -} -function addInitialKeywords(defs) { - if (Array.isArray(defs)) { - this.addVocabulary(defs); - return; - } - this.logger.warn("keywords option as map is deprecated, pass array"); - for (const keyword in defs) { - const def = defs[keyword]; - if (!def.keyword) - def.keyword = keyword; - this.addKeyword(def); - } -} -function getMetaSchemaOptions() { - const metaOpts = { ...this.opts }; - for (const opt of META_IGNORE_OPTIONS) - delete metaOpts[opt]; - return metaOpts; -} -const noLogs = { log() { }, warn() { }, error() { } }; -function getLogger(logger) { - if (logger === false) - return noLogs; - if (logger === undefined) - return console; - if (logger.log && logger.warn && logger.error) - return logger; - throw new Error("logger must implement log, warn and error methods"); -} -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i; -function checkKeyword(keyword, def) { - const { RULES } = this; - (0, util_1.eachItem)(keyword, (kwd) => { - if (RULES.keywords[kwd]) - throw new Error(`Keyword ${kwd} is already defined`); - if (!KEYWORD_NAME.test(kwd)) - throw new Error(`Keyword ${kwd} has invalid name`); - }); - if (!def) - return; - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function'); - } -} -function addRule(keyword, definition, dataType) { - var _a; - const post = definition === null || definition === void 0 ? void 0 : definition.post; - if (dataType && post) - throw new Error('keyword with "post" flag cannot have "type"'); - const { RULES } = this; - let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType); - if (!ruleGroup) { - ruleGroup = { type: dataType, rules: [] }; - RULES.rules.push(ruleGroup); - } - RULES.keywords[keyword] = true; - if (!definition) - return; - const rule = { - keyword, - definition: { - ...definition, - type: (0, dataType_1.getJSONTypes)(definition.type), - schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType), - }, - }; - if (definition.before) - addBeforeRule.call(this, ruleGroup, rule, definition.before); - else - ruleGroup.rules.push(rule); - RULES.all[keyword] = rule; - (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd)); -} -function addBeforeRule(ruleGroup, rule, before) { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before); - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule); - } - else { - ruleGroup.rules.push(rule); - this.logger.warn(`rule ${before} is not defined`); - } -} -function keywordMetaschema(def) { - let { metaSchema } = def; - if (metaSchema === undefined) - return; - if (def.$data && this.opts.$data) - metaSchema = schemaOrData(metaSchema); - def.validateSchema = this.compile(metaSchema, true); -} -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -}; -function schemaOrData(schema) { - return { anyOf: [schema, $dataRef] }; -} -//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js.map deleted file mode 100644 index 3760c3e4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../lib/core.ts"],"names":[],"mappings":";;;A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AAK,MAAM,CAAC,CAAA;IACxE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACX,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;IACpC,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,MAAM,iBAAiB,CAAC,CAAA;IACnD,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAY,GAAsB;IAC1D,IAAI,EAAC,UAAU,EAAC,GAAG,GAAG,CAAA;IACtB,IAAI,UAAU,KAAK,SAAS;QAAE,OAAM;IACpC,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IACvE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,gFAAgF;CACvF,CAAA;AAED,SAAS,YAAY,CAAC,MAAiB;IACrC,OAAO,EAAC,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,CAAA;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.d.ts deleted file mode 100644 index a079ba4b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AnySchemaObject, SchemaObject, JTDParser } from "./types"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import AjvCore, { CurrentOptions } from "./core"; -type JTDOptions = CurrentOptions & { - strict?: never; - allowMatchingProperties?: never; - allowUnionTypes?: never; - validateFormats?: never; - $data?: never; - verbose?: boolean; - $comment?: never; - formats?: never; - loadSchema?: never; - useDefaults?: never; - coerceTypes?: never; - next?: never; - unevaluated?: never; - dynamicRef?: never; - meta?: boolean; - defaultMeta?: never; - inlineRefs?: boolean; - loopRequired?: never; - multipleOfPrecision?: never; -}; -export declare class Ajv extends AjvCore { - constructor(opts?: JTDOptions); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - compileSerializer(schema: SchemaObject): (data: T) => string; - compileSerializer(schema: JTDSchemaType): (data: T) => string; - compileParser(schema: SchemaObject): JTDParser; - compileParser(schema: JTDSchemaType): JTDParser; - private _compileSerializer; - private _compileParser; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, JTDParser, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { JTDErrorObject } from "./vocabularies/jtd"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType }; -export { JTDOptions }; -export { default as ValidationError } from "./runtime/validation_error"; -export { default as MissingRefError } from "./compile/ref_error"; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js deleted file mode 100644 index 1a3baaf2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0; -const core_1 = require("./core"); -const jtd_1 = require("./vocabularies/jtd"); -const jtd_schema_1 = require("./refs/jtd-schema"); -const serialize_1 = require("./compile/jtd/serialize"); -const parse_1 = require("./compile/jtd/parse"); -const META_SCHEMA_ID = "JTD-meta-schema"; -class Ajv extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - jtd: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(jtd_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - this.addMetaSchema(jtd_schema_1.default, META_SCHEMA_ID, false); - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } - compileSerializer(schema) { - const sch = this._addSchema(schema); - return sch.serialize || this._compileSerializer(sch); - } - compileParser(schema) { - const sch = this._addSchema(schema); - return (sch.parse || this._compileParser(sch)); - } - _compileSerializer(sch) { - serialize_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.serialize) - throw new Error("ajv implementation error"); - return sch.serialize; - } - _compileParser(sch) { - parse_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.parse) - throw new Error("ajv implementation error"); - return sch.parse; - } -} -exports.Ajv = Ajv; -module.exports = exports = Ajv; -module.exports.Ajv = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -var validation_error_1 = require("./runtime/validation_error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } }); -var ref_error_1 = require("./compile/ref_error"); -Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } }); -//# sourceMappingURL=jtd.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js.map deleted file mode 100644 index 6bf9f3b1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/jtd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd.js","sourceRoot":"","sources":["../lib/jtd.ts"],"names":[],"mappings":";;;AAEA,iCAA8C;AAC9C,4CAA8C;AAC9C,kDAA6C;AAC7C,uDAAuD;AACvD,+CAA+C;AAG/C,MAAM,cAAc,GAAG,iBAAiB,CAAA;AA4BxC,MAAa,GAAI,SAAQ,cAAO;IAC9B,YAAY,OAAmB,EAAE;QAC/B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,GAAG,EAAE,IAAI;SACV,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;IACnC,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAM;QAC3B,IAAI,CAAC,aAAa,CAAC,oBAAa,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;IAC1D,CA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AAG,GAAG,CAAA;AAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAA;AACxB,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,GAAG,CAAA;AA0BlB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAElB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA;AAInD,+DAAqE;AAA7D,mHAAA,OAAO,OAAmB;AAClC,iDAA8D;AAAtD,4GAAA,OAAO,OAAmB"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts deleted file mode 100644 index cf008331..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js deleted file mode 100644 index e8649628..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2019($data) { - ; - [ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2019; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map deleted file mode 100644 index 9b8a36d6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2019-09/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,+CAA8C;AAC9C,yCAAwC;AACxC,6CAA4C;AAC5C,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAfD,oCAeC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts deleted file mode 100644 index c232ab05..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js deleted file mode 100644 index d9256756..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const unevaluated = require("./meta/unevaluated.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format-annotation.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2020($data) { - ; - [ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2020; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map deleted file mode 100644 index eb90027d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2020-12/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,uDAAsD;AACtD,+CAA8C;AAC9C,yCAAwC;AACxC,wDAAuD;AACvD,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,WAAW;QACX,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAhBD,oCAgBC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-secure.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts deleted file mode 100644 index 932797a3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SchemaObject } from "../types"; -declare const jtdMetaSchema: SchemaObject; -export default jtdMetaSchema; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js deleted file mode 100644 index 1ee940af..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const shared = (root) => { - const sch = { - nullable: { type: "boolean" }, - metadata: { - optionalProperties: { - union: { elements: { ref: "schema" } }, - }, - additionalProperties: true, - }, - }; - if (root) - sch.definitions = { values: { ref: "schema" } }; - return sch; -}; -const emptyForm = (root) => ({ - optionalProperties: shared(root), -}); -const refForm = (root) => ({ - properties: { - ref: { type: "string" }, - }, - optionalProperties: shared(root), -}); -const typeForm = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}); -const enumForm = (root) => ({ - properties: { - enum: { elements: { type: "string" } }, - }, - optionalProperties: shared(root), -}); -const elementsForm = (root) => ({ - properties: { - elements: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const propertiesForm = (root) => ({ - properties: { - properties: { values: { ref: "schema" } }, - }, - optionalProperties: { - optionalProperties: { values: { ref: "schema" } }, - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const optionalPropertiesForm = (root) => ({ - properties: { - optionalProperties: { values: { ref: "schema" } }, - }, - optionalProperties: { - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const discriminatorForm = (root) => ({ - properties: { - discriminator: { type: "string" }, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}); -const valuesForm = (root) => ({ - properties: { - values: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const schema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}); -const jtdMetaSchema = { - definitions: { - schema: schema(false), - }, - ...schema(true), -}; -exports.default = jtdMetaSchema; -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map deleted file mode 100644 index d46755b2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/refs/jtd-schema.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAe,CAAC,IAAI,EAAE,EAAE;IAClC,MAAM,GAAG,GAAiB;QACxB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,QAAQ,EAAE;YACR,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EA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AAkB,EAAE,MAAM,CAAC,IAAI,CAAC;CACjC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,SAAS;YACT,OAAO;YACP,QAAQ;YACR,QAAQ;YACR,YAAY;YACZ,cAAc;YACd,sBAAsB;YACtB,iBAAiB;YACjB,UAAU;SACX,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KACtB;CACF,CAAC,CAAA;AAEF,MAAM,aAAa,GAAiB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;KACtB;IACD,GAAG,MAAM,CAAC,IAAI,CAAC;CAChB,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.d.ts deleted file mode 100644 index 777cae20..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as equal from "fast-deep-equal"; -type Equal = typeof equal & { - code: string; -}; -declare const _default: Equal; -export default _default; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js deleted file mode 100644 index 774bba05..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://github.com/ajv-validator/ajv/issues/889 -const equal = require("fast-deep-equal"); -equal.code = 'require("ajv/dist/runtime/equal").default'; -exports.default = equal; -//# sourceMappingURL=equal.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js.map deleted file mode 100644 index 0e17901c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/equal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"equal.js","sourceRoot":"","sources":["../../lib/runtime/equal.ts"],"names":[],"mappings":";;AAAA,kDAAkD;AAClD,yCAAwC;AAGtC,KAAe,CAAC,IAAI,GAAG,2CAA2C,CAAA;AAEpE,kBAAe,KAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts deleted file mode 100644 index 85f1d567..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare function parseJson(s: string, pos: number): unknown; -export declare namespace parseJson { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined; -export declare namespace parseJsonNumber { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonString(s: string, pos: number): string | undefined; -export declare namespace parseJsonString { - var message: string | undefined; - var position: number; - var code: string; -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js deleted file mode 100644 index eaa28381..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseJsonString = exports.parseJsonNumber = exports.parseJson = void 0; -const rxParseJson = /position\s(\d+)(?: \(line \d+ column \d+\))?$/; -function parseJson(s, pos) { - let endPos; - parseJson.message = undefined; - let matches; - if (pos) - s = s.slice(pos); - try { - parseJson.position = pos + s.length; - return JSON.parse(s); - } - catch (e) { - matches = rxParseJson.exec(e.message); - if (!matches) { - parseJson.message = "unexpected end"; - return undefined; - } - endPos = +matches[1]; - const c = s[endPos]; - s = s.slice(0, endPos); - parseJson.position = pos + endPos; - try { - return JSON.parse(s); - } - catch (e1) { - parseJson.message = `unexpected token ${c}`; - return undefined; - } - } -} -exports.parseJson = parseJson; -parseJson.message = undefined; -parseJson.position = 0; -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson'; -function parseJsonNumber(s, pos, maxDigits) { - let numStr = ""; - let c; - parseJsonNumber.message = undefined; - if (s[pos] === "-") { - numStr += "-"; - pos++; - } - if (s[pos] === "0") { - numStr += "0"; - pos++; - } - else { - if (!parseDigits(maxDigits)) { - errorMessage(); - return undefined; - } - } - if (maxDigits) { - parseJsonNumber.position = pos; - return +numStr; - } - if (s[pos] === ".") { - numStr += "."; - pos++; - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e"; - pos++; - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c; - pos++; - } - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - parseJsonNumber.position = pos; - return +numStr; - function parseDigits(maxLen) { - let digit = false; - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true; - numStr += c; - pos++; - } - return digit; - } - function errorMessage() { - parseJsonNumber.position = pos; - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end"; - } -} -exports.parseJsonNumber = parseJsonNumber; -parseJsonNumber.message = undefined; -parseJsonNumber.position = 0; -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber'; -const escapedChars = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -}; -const CODE_A = "a".charCodeAt(0); -const CODE_0 = "0".charCodeAt(0); -function parseJsonString(s, pos) { - let str = ""; - let c; - parseJsonString.message = undefined; - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++]; - if (c === '"') - break; - if (c === "\\") { - c = s[pos]; - if (c in escapedChars) { - str += escapedChars[c]; - pos++; - } - else if (c === "u") { - pos++; - let count = 4; - let code = 0; - while (count--) { - code <<= 4; - c = s[pos]; - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - c = c.toLowerCase(); - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10; - } - else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - pos++; - } - str += String.fromCharCode(code); - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } - else if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - else { - if (c.charCodeAt(0) >= 0x20) { - str += c; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - } - } - parseJsonString.position = pos; - return str; - function errorMessage(msg) { - parseJsonString.position = pos; - parseJsonString.message = msg; - } -} -exports.parseJsonString = parseJsonString; -parseJsonString.message = undefined; -parseJsonString.position = 0; -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString'; -//# sourceMappingURL=parseJson.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js.map deleted file mode 100644 index 7c125f87..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/parseJson.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parseJson.js","sourceRoot":"","sources":["../../lib/runtime/parseJson.ts"],"names":[],"mappings":";;;AAAA,MAAM,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modules/ajv/dist/runtime/quote.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.d.ts deleted file mode 100644 index 0579dd3c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function quote(s: string): string; -declare namespace quote { - var code: string; -} -export default quote; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js deleted file mode 100644 index ebf78f70..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const rxEscapable = -// eslint-disable-next-line no-control-regex, no-misleading-character-class -/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -const escaped = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -}; -function quote(s) { - rxEscapable.lastIndex = 0; - return ('"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a]; - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4); - }) - : s) + - '"'); -} -exports.default = quote; -quote.code = 'require("ajv/dist/runtime/quote").default'; -//# sourceMappingURL=quote.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js.map deleted file mode 100644 index 4d226252..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/quote.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../lib/runtime/quote.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW;AACf,2EAA2E;AAC3E,iIAAiI,CAAA;AAEnI,MAAM,OAAO,GAA6B;IACxC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACb,CAAA;AAED,SAAwB,KAAK,CAAC,CAAS;IACrC,WAAW,CAAC,SAAS,GAAG,CAAC,CAAA;IACzB,OAAO,CACL,GAAG;QACH,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBAC3B,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;gBACpB,OAAO,OAAO,CAAC,KAAK,QAAQ;oBAC1B,CAAC,CAAC,CAAC;oBACH,CAAC,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;YAC/D,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC,CAAC;QACN,GAAG,CACJ,CAAA;AACH,CAAC;AAdD,wBAcC;AAED,KAAK,CAAC,IAAI,GAAG,2CAA2C,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.d.ts deleted file mode 100644 index c34a98f2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2"; -type Re2 = typeof re2 & { - code: string; -}; -declare const _default: Re2; -export default _default; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js deleted file mode 100644 index 4b1ee253..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const re2 = require("re2"); -re2.code = 'require("ajv/dist/runtime/re2").default'; -exports.default = re2; -//# sourceMappingURL=re2.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js.map deleted file mode 100644 index bb938a2c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/re2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"re2.js","sourceRoot":"","sources":["../../lib/runtime/re2.ts"],"names":[],"mappings":";;AAAA,2BAA0B;AAGxB,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts deleted file mode 100644 index cd483268..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function validTimestamp(str: string, allowDate: boolean): boolean; -declare namespace validTimestamp { - var code: string; -} -export default validTimestamp; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js deleted file mode 100644 index 5e0f0656..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const DT_SEPARATOR = /t|\s/i; -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i; -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -function validTimestamp(str, allowDate) { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt = str.split(DT_SEPARATOR); - return ((dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0]))); -} -exports.default = validTimestamp; -function validDate(str) { - const matches = DATE.exec(str); - if (!matches) - return false; - const y = +matches[1]; - const m = +matches[2]; - const d = +matches[3]; - return (m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0)))); -} -function validTime(str) { - const matches = TIME.exec(str); - if (!matches) - return false; - const hr = +matches[1]; - const min = +matches[2]; - const sec = +matches[3]; - const tzH = +(matches[4] || 0); - const tzM = +(matches[5] || 0); - return ((hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60)); -} -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default'; -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js.map deleted file mode 100644 index 6b0eee03..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../lib/runtime/timestamp.ts"],"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C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAC1E,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,OAAO,GAAoB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/C,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAA;IAC1B,MAAM,EAAE,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC9B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,OAAO,CACL,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;QACpC,cAAc;QACd,CAAC,EAAE,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CACpD,CAAA;AACH,CAAC;AAED,cAAc,CAAC,IAAI,GAAG,+CAA+C,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts deleted file mode 100644 index ecbee69c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function ucs2length(str: string): number; -declare namespace ucs2length { - var code: string; -} -export default ucs2length; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js deleted file mode 100644 index 92ea0c08..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -function ucs2length(str) { - const len = str.length; - let length = 0; - let pos = 0; - let value; - while (pos < len) { - length++; - value = str.charCodeAt(pos++); - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos); - if ((value & 0xfc00) === 0xdc00) - pos++; // low surrogate - } - } - return length; -} -exports.default = ucs2length; -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default'; -//# sourceMappingURL=ucs2length.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map deleted file mode 100644 index a5ceb6b1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ucs2length.js","sourceRoot":"","sources":["../../lib/runtime/ucs2length.ts"],"names":[],"mappings":";;AAAA,qDAAqD;AACrD,iEAAiE;AACjE,SAAwB,UAAU,CAAC,GAAW;IAC5C,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAA;IACtB,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,IAAI,GAAG,GAAG,CAAC,CAAA;IACX,IAAI,KAAa,CAAA;IACjB,OAAO,GAAG,GAAG,GAAG,EAAE,CAAC;QACjB,MAAM,EAAE,CAAA;QACR,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;QAC7B,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;YACpD,gDAAgD;YAChD,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM;gBAAE,GAAG,EAAE,CAAA,CAAC,gBAAgB;QACzD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAfD,6BAeC;AAED,UAAU,CAAC,IAAI,GAAG,gDAAgD,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.d.ts deleted file mode 100644 index 4690868f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js"; -type URI = typeof uri & { - code: string; -}; -declare const _default: URI; -export default _default; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js deleted file mode 100644 index fbd38151..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const uri = require("uri-js"); -uri.code = 'require("ajv/dist/runtime/uri").default'; -exports.default = uri; -//# sourceMappingURL=uri.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js.map deleted file mode 100644 index 701bed95..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/uri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../lib/runtime/uri.ts"],"names":[],"mappings":";;AAAA,8BAA6B;AAG3B,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts deleted file mode 100644 index b0ee9698..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ErrorObject } from "../types"; -export default class ValidationError extends Error { - readonly errors: Partial[]; - readonly ajv: true; - readonly validation: true; - constructor(errors: Partial[]); -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js deleted file mode 100644 index 353502c0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class ValidationError extends Error { - constructor(errors) { - super("validation failed"); - this.errors = errors; - this.ajv = this.validation = true; - } -} -exports.default = ValidationError; -//# sourceMappingURL=validation_error.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js.map deleted file mode 100644 index 70206fbc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/runtime/validation_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validation_error.js","sourceRoot":"","sources":["../../lib/runtime/validation_error.ts"],"names":[],"mappings":";;AAEA,MAAqB,eAAgB,SAAQ,KAAK;IAKhD,YAAY,MAA8B;QACxC,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACnC,CAAC;CACF;AAVD,kCAUC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.d.ts deleted file mode 100644 index a9141c3d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type AjvCore from "../core"; -import type { AnyValidateFunction } from "../types"; -declare function standaloneCode(ajv: AjvCore, refsOrFunc?: { - [K in string]?: string; -} | AnyValidateFunction): string; -export default standaloneCode; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js deleted file mode 100644 index b44bb5db..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_1 = require("../compile/codegen/scope"); -const code_1 = require("../compile/codegen/code"); -function standaloneCode(ajv, refsOrFunc) { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option"); - } - const { _n } = ajv.scope.opts; - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => sch.meta ? undefined : ajv.compile(sch.schema)); - function getValidate(id) { - const v = ajv.getSchema(id); - if (!v) - throw new Error(`moduleCode: no schema with id ${id}`); - return v; - } - function funcExportCode(source) { - const usedValues = {}; - const n = source === null || source === void 0 ? void 0 : source.validateName; - const vCode = validateCode(usedValues, source); - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}`; - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}`; - } - function multiExportsCode(schemas, getValidateFunc) { - var _a; - const usedValues = {}; - let code = (0, code_1._) `"use strict";`; - for (const name in schemas) { - const v = getValidateFunc(schemas[name]); - if (v) { - const vCode = validateCode(usedValues, v.source); - const exportSyntax = ajv.opts.code.esm - ? (0, code_1._) `export const ${(0, code_1.getEsmExportName)(name)}` - : (0, code_1._) `exports${(0, code_1.getProperty)(name)}`; - code = (0, code_1._) `${code}${_n}${exportSyntax} = ${(_a = v.source) === null || _a === void 0 ? void 0 : _a.validateName};${_n}${vCode}`; - } - } - return `${code}`; - } - function validateCode(usedValues, s) { - if (!s) - throw new Error('moduleCode: function does not have "source" property'); - if (usedState(s.validateName) === scope_1.UsedValueState.Completed) - return code_1.nil; - setUsedState(s.validateName, scope_1.UsedValueState.Started); - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode); - const code = new code_1._Code(`${scopeCode}${_n}${s.validateCode}`); - return s.evaluated ? (0, code_1._) `${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code; - function refValidateCode(n) { - var _a; - const vRef = (_a = n.value) === null || _a === void 0 ? void 0 : _a.ref; - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef; - return validateCode(usedValues, v.source); - } - else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const { validate, validateName } = vRef; - if (!validateName) - throw new Error("ajv internal error"); - const def = ajv.opts.code.es5 ? scope_1.varKinds.var : scope_1.varKinds.const; - const wrapper = (0, code_1._) `${def} ${n} = {validate: ${validateName}};`; - if (usedState(validateName) === scope_1.UsedValueState.Started) - return wrapper; - const vCode = validateCode(usedValues, validate === null || validate === void 0 ? void 0 : validate.source); - return (0, code_1._) `${wrapper}${_n}${vCode}`; - } - return undefined; - } - function usedState(name) { - var _a; - return (_a = usedValues[name.prefix]) === null || _a === void 0 ? void 0 : _a.get(name); - } - function setUsedState(name, state) { - const { prefix } = name; - const names = (usedValues[prefix] = usedValues[prefix] || new Map()); - names.set(name, state); - } - } -} -module.exports = exports = standaloneCode; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = standaloneCode; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js.map deleted file mode 100644 index 8551fe91..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/standalone/index.ts"],"names":[],"mappings":";;AAGA,oDAAkG;AAClG,kDAA0F;AAE1F,SAAS,cAAc,CACrB,GAAY,EACZ,UAA2D;IAE3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAA;IAC1E,CAAC;IACD,MAAM,EAAC,EAAE,EAAC,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAA;IAC3B,OAAO,OAAO,UAAU,IAAI,UAAU;QACpC,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC;QACnC,CAAC,CAAC,UAAU,KAAK,SAAS;YAC1B,CAAC,CAAC,gBAAgB,CAAS,UAAU,EAAE,WAAW,CAAC;YACnD,CAAC,CAAC,gBAAgB,CAAY,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAC/C,GAAG,CAAC,IAAI,CAAC,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/D,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAA;YACrB,MAAM,KAAK,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC,CAAA;YACpE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACxB,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,cAAc,CAAA;AACzC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.d.ts deleted file mode 100644 index 156ac322..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Ajv, { AnySchema, AnyValidateFunction, ErrorObject } from "../core"; -export default class AjvPack { - readonly ajv: Ajv; - errors?: ErrorObject[] | null; - constructor(ajv: Ajv); - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction; - getSchema(keyRef: string): AnyValidateFunction | undefined; - private getStandalone; - addSchema(...args: Parameters): AjvPack; - addKeyword(...args: Parameters): AjvPack; -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js deleted file mode 100644 index 35e5c992..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("../core"); -const _1 = require("."); -const requireFromString = require("require-from-string"); -class AjvPack { - constructor(ajv) { - this.ajv = ajv; - } - validate(schemaKeyRef, data) { - return core_1.default.prototype.validate.call(this, schemaKeyRef, data); - } - compile(schema, meta) { - return this.getStandalone(this.ajv.compile(schema, meta)); - } - getSchema(keyRef) { - const v = this.ajv.getSchema(keyRef); - if (!v) - return undefined; - return this.getStandalone(v); - } - getStandalone(v) { - return requireFromString((0, _1.default)(this.ajv, v)); - } - addSchema(...args) { - this.ajv.addSchema.call(this.ajv, ...args); - return this; - } - addKeyword(...args) { - this.ajv.addKeyword.call(this.ajv, ...args); - return this; - } -} -exports.default = AjvPack; -//# sourceMappingURL=instance.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js.map deleted file mode 100644 index 6ac33b11..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/standalone/instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../lib/standalone/instance.ts"],"names":[],"mappings":";;AAAA,kCAAwE;AACxE,wBAA8B;AAC9B,yDAAwD;AAExD,MAAqB,OAAO;IAE1B,YAAqB,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEjC,QAAQ,CAAC,YAAgC,EAAE,IAAa;QACtD,OAAO,cAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAC9D,CAAC;IAED,OAAO,CAAc,MAAiB,EAAE,IAAc;QACpD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IAC9D,CAAC;IAED,SAAS,CAAc,MAAc;QACnC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAI,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,CAAC;YAAE,OAAO,SAAS,CAAA;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9B,CAAC;IAEO,aAAa,CAAc,CAAyB;QAC1D,OAAO,iBAAiB,CAAC,IAAA,UAAc,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAA2B,CAAA;IACjF,CAAC;IAED,SAAS,CAAC,GAAG,IAAgD;QAC3D,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,GAAG,IAAiD;QAC7D,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AA/BD,0BA+BC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.d.ts deleted file mode 100644 index 485440e9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import * as URI from "uri-js"; -import type { CodeGen, Code, Name, ScopeValueSets, ValueScopeName } from "../compile/codegen"; -import type { SchemaEnv, SchemaCxt, SchemaObjCxt } from "../compile"; -import type { JSONType } from "../compile/rules"; -import type { KeywordCxt } from "../compile/validate"; -import type Ajv from "../core"; -interface _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - [x: string]: any; -} -export interface SchemaObject extends _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - $async?: false; - [x: string]: any; -} -export interface AsyncSchema extends _SchemaObject { - $async: true; -} -export type AnySchemaObject = SchemaObject | AsyncSchema; -export type Schema = SchemaObject | boolean; -export type AnySchema = Schema | AsyncSchema; -export type SchemaMap = { - [Key in string]?: AnySchema; -}; -export interface SourceCode { - validateName: ValueScopeName; - validateCode: string; - scopeValues: ScopeValueSets; - evaluated?: Code; -} -export interface DataValidationCxt { - instancePath: string; - parentData: { - [K in T]: any; - }; - parentDataProperty: T; - rootData: Record | any[]; - dynamicAnchors: { - [Ref in string]?: ValidateFunction; - }; -} -export interface ValidateFunction { - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T; - errors?: null | ErrorObject[]; - evaluated?: Evaluated; - schema: AnySchema; - schemaEnv: SchemaEnv; - source?: SourceCode; -} -export interface JTDParser { - (json: string): T | undefined; - message?: string; - position?: number; -} -export type EvaluatedProperties = { - [K in string]?: true; -} | true; -export type EvaluatedItems = number | true; -export interface Evaluated { - props?: EvaluatedProperties; - items?: EvaluatedItems; - dynamicProps: boolean; - dynamicItems: boolean; -} -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise; - $async: true; -} -export type AnyValidateFunction = ValidateFunction | AsyncValidateFunction; -export interface ErrorObject, S = unknown> { - keyword: K; - instancePath: string; - schemaPath: string; - params: P; - propertyName?: string; - message?: string; - schema?: S; - parentSchema?: AnySchemaObject; - data?: unknown; -} -export type ErrorNoParams = ErrorObject, S>; -interface _KeywordDef { - keyword: string | string[]; - type?: JSONType | JSONType[]; - schemaType?: JSONType | JSONType[]; - allowUndefined?: boolean; - $data?: boolean; - implements?: string[]; - before?: string; - post?: boolean; - metaSchema?: AnySchemaObject; - validateSchema?: AnyValidateFunction; - dependencies?: string[]; - error?: KeywordErrorDefinition; - $dataError?: KeywordErrorDefinition; -} -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void; - trackErrors?: boolean; -} -export type MacroKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaCxt) => AnySchema; -export type CompileKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => DataValidateFunction; -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise; - errors?: Partial[]; -} -export interface SchemaValidateFunction { - (schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): boolean | Promise; - errors?: Partial[]; -} -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction; - compile?: CompileKeywordFunc; - schema?: boolean; - modifying?: boolean; - async?: boolean; - valid?: boolean; - errors?: boolean | "full"; -} -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc; -} -export type KeywordDefinition = CodeKeywordDefinition | FuncKeywordDefinition | MacroKeywordDefinition; -export type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[]; - schemaType: JSONType[]; -}; -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code); - params?: Code | ((cxt: KeywordErrorCxt) => Code); -} -export type Vocabulary = (KeywordDefinition | string)[]; -export interface KeywordErrorCxt { - gen: CodeGen; - keyword: string; - data: Name; - $data?: string | false; - schema: any; - parentSchema?: AnySchemaObject; - schemaCode: Code | number | boolean; - schemaValue: Code | number | boolean; - schemaType?: JSONType[]; - errsCount?: Name; - params: KeywordCxtParams; - it: SchemaCxt; -} -export type KeywordCxtParams = { - [P in string]?: Code | string | number; -}; -export type FormatValidator = (data: T) => boolean; -export type FormatCompare = (data1: T, data2: T) => number | undefined; -export type AsyncFormatValidator = (data: T) => Promise; -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: FormatValidator | (T extends string ? string | RegExp : never); - async?: false | undefined; - compare?: FormatCompare; -} -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: AsyncFormatValidator; - async: true; - compare?: FormatCompare; -} -export type AddedFormat = true | RegExp | FormatValidator | FormatDefinition | FormatDefinition | AsyncFormatDefinition | AsyncFormatDefinition; -export type Format = AddedFormat | string; -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike; - code: string; -} -export interface RegExpLike { - test: (s: string) => boolean; -} -export interface UriResolver { - parse(uri: string): URI.URIComponents; - resolve(base: string, path: string): string; - serialize(component: URI.URIComponents): string; -} -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js deleted file mode 100644 index aa219d8f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js.map deleted file mode 100644 index 1f80f85e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.d.ts deleted file mode 100644 index 4774233f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.d.ts +++ /dev/null @@ -1,125 +0,0 @@ -type StrictNullChecksWrapper = undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name}` : Type; -type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never; -export type SomeJSONSchema = UncheckedJSONSchemaType; -type UncheckedPartialSchema = Partial>; -export type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema>; -type JSONType = IsPartial extends true ? T | undefined : T; -interface NumberKeywords { - minimum?: number; - maximum?: number; - exclusiveMinimum?: number; - exclusiveMaximum?: number; - multipleOf?: number; - format?: string; -} -interface StringKeywords { - minLength?: number; - maxLength?: number; - pattern?: string; - format?: string; -} -type UncheckedJSONSchemaType = (// these two unions allow arbitrary unions of types -{ - anyOf: readonly UncheckedJSONSchemaType[]; -} | { - oneOf: readonly UncheckedJSONSchemaType[]; -} | ({ - type: readonly (T extends number ? JSONType<"number" | "integer", IsPartial> : T extends string ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> : never)[]; -} & UnionToIntersection) | ((T extends number ? { - type: JSONType<"number" | "integer", IsPartial>; -} & NumberKeywords : T extends string ? { - type: JSONType<"string", IsPartial>; -} & StringKeywords : T extends boolean ? { - type: JSONType<"boolean", IsPartial>; -} : T extends readonly [any, ...any[]] ? { - type: JSONType<"array", IsPartial>; - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable; - } & { - length: T["length"]; - }; - minItems: T["length"]; -} & ({ - maxItems: T["length"]; -} | { - additionalItems: false; -}) : T extends readonly any[] ? { - type: JSONType<"array", IsPartial>; - items: UncheckedJSONSchemaType; - contains?: UncheckedPartialSchema; - minItems?: number; - maxItems?: number; - minContains?: number; - maxContains?: number; - uniqueItems?: true; - additionalItems?: never; -} : T extends Record ? { - type: JSONType<"object", IsPartial>; - additionalProperties?: boolean | UncheckedJSONSchemaType; - unevaluatedProperties?: boolean | UncheckedJSONSchemaType; - properties?: IsPartial extends true ? Partial> : UncheckedPropertiesSchema; - patternProperties?: Record>; - propertyNames?: Omit, "type"> & { - type?: "string"; - }; - dependencies?: { - [K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema; - }; - dependentRequired?: { - [K in keyof T]?: Readonly<(keyof T)[]>; - }; - dependentSchemas?: { - [K in keyof T]?: UncheckedPartialSchema; - }; - minProperties?: number; - maxProperties?: number; -} & (IsPartial extends true ? { - required: Readonly<(keyof T)[]>; -} : [UncheckedRequiredMembers] extends [never] ? { - required?: Readonly[]>; -} : { - required: Readonly[]>; -}) : T extends null ? { - type: JSONType<"null", IsPartial>; - nullable: true; -} : never) & { - allOf?: Readonly[]>; - anyOf?: Readonly[]>; - oneOf?: Readonly[]>; - if?: UncheckedPartialSchema; - then?: UncheckedPartialSchema; - else?: UncheckedPartialSchema; - not?: UncheckedPartialSchema; -})) & { - [keyword: string]: any; - $id?: string; - $ref?: string; - $defs?: Record>; - definitions?: Record>; -}; -export type JSONSchemaType = StrictNullChecksWrapper<"JSONSchemaType", UncheckedJSONSchemaType>; -type Known = { - [key: string]: Known; -} | [Known, ...Known[]] | Known[] | number | string | boolean | null; -type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | { - $ref: string; - }; -}; -export type PropertiesSchema = StrictNullChecksWrapper<"PropertiesSchema", UncheckedPropertiesSchema>; -type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -export type RequiredMembers = StrictNullChecksWrapper<"RequiredMembers", UncheckedRequiredMembers>; -type Nullable = undefined extends T ? { - nullable: true; - const?: null; - enum?: Readonly<(T | null)[]>; - default?: T | null; -} : { - nullable?: false; - const?: T; - enum?: Readonly; - default?: T; -}; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js deleted file mode 100644 index 2d8f98dc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js.map deleted file mode 100644 index ae6b4d0f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/json-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../../lib/types/json-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts deleted file mode 100644 index 80ad3129..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** numeric strings */ -type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -/** string strings */ -type StringType = "string" | "timestamp"; -/** Generic JTD Schema without inference of the represented type */ -export type SomeJTDSchemaType = (// ref -{ - ref: string; -} | { - type: NumberType | StringType | "boolean"; -} | { - enum: string[]; -} | { - elements: SomeJTDSchemaType; -} | { - values: SomeJTDSchemaType; -} | { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} | { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} | { - discriminator: string; - mapping: Record; -} | {}) & { - nullable?: boolean; - metadata?: Record; - definitions?: Record; -}; -/** required keys of an object, not undefined */ -type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -/** optional or undifined-able keys of an object */ -type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never; -}[keyof T]; -/** type is true if T is a union type */ -type IsUnion_ = false extends (T extends unknown ? ([U] extends [T] ? false : true) : never) ? false : true; -type IsUnion = IsUnion_; -/** type is true if T is identically E */ -type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false; -/** type is true if T or null is identically E or null*/ -type NullTypeEquality = TypeEquality; -/** gets only the string literals of a type or null if a type isn't a string literal */ -type EnumString = [T] extends [never] ? null : T extends string ? string extends T ? null : T : null; -/** true if type is a union of string literals */ -type IsEnum = null extends EnumString ? false : true; -/** true only if all types are array types (not tuples) */ -type IsElements = false extends IsUnion ? [T] extends [readonly unknown[]] ? undefined extends T[0.5] ? false : true : false : false; -/** true if the the type is a values type */ -type IsValues = false extends IsUnion ? TypeEquality : false; -/** true if type is a properties type and Union is false, or type is a discriminator type and Union is true */ -type IsRecord = Union extends IsUnion ? null extends EnumString ? false : true : false; -/** true if type represents an empty record */ -type IsEmptyRecord = [T] extends [Record] ? [T] extends [never] ? false : true : false; -/** actual schema */ -export type JTDSchemaType = Record> = (// refs - where null wasn't specified, must match exactly -(null extends EnumString ? never : ({ - [K in keyof D]: [T] extends [D[K]] ? { - ref: K; - } : never; -}[keyof D] & { - nullable?: false; -}) | (null extends T ? { - [K in keyof D]: [Exclude] extends [Exclude] ? { - ref: K; - } : never; -}[keyof D] & { - nullable: true; -} : never)) | (unknown extends T ? { - nullable?: boolean; -} : never) | ((true extends NullTypeEquality ? { - type: NumberType; -} : true extends NullTypeEquality ? { - type: "boolean"; -} : true extends NullTypeEquality ? { - type: StringType; -} : true extends NullTypeEquality ? { - type: "timestamp"; -} : true extends IsEnum> ? { - enum: EnumString>[]; -} : true extends IsElements> ? T extends readonly (infer E)[] ? { - elements: JTDSchemaType; -} : never : true extends IsEmptyRecord> ? { - properties: Record; - optionalProperties?: Record; -} | { - optionalProperties: Record; -} : true extends IsValues> ? T extends Record ? { - values: JTDSchemaType; -} : never : true extends IsRecord, false> ? ([RequiredKeys>] extends [never] ? { - properties?: Record; -} : { - properties: { - [K in RequiredKeys]: JTDSchemaType; - }; -}) & ([OptionalKeys>] extends [never] ? { - optionalProperties?: Record; -} : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D>; - }; -}) & { - additionalProperties?: boolean; -} : true extends IsRecord, true> ? { - [K in keyof Exclude]-?: Exclude[K] extends string ? { - discriminator: K; - mapping: { - [M in Exclude[K]]: JTDSchemaType ? T : never, K>, D>; - }; - } : never; -}[keyof Exclude] : never) & (null extends T ? { - nullable: true; -} : { - nullable?: false; -}))) & { - metadata?: Record; - definitions?: { - [K in keyof D]: JTDSchemaType; - }; -}; -type JTDDataDef> = // ref -(S extends { - ref: string; -} ? D extends { - [K in S["ref"]]: infer V; -} ? JTDDataDef : never : S extends { - type: NumberType; -} ? number : S extends { - type: "boolean"; -} ? boolean : S extends { - type: "string"; -} ? string : S extends { - type: "timestamp"; -} ? string | Date : S extends { - enum: readonly (infer E)[]; -} ? string extends E ? never : [E] extends [string] ? E : never : S extends { - elements: infer E; -} ? JTDDataDef[] : S extends { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - values: infer V; -} ? Record> : S extends { - discriminator: infer M; - mapping: Record; -} ? [M] extends [string] ? { - [K in keyof S["mapping"]]: JTDDataDef & { - [KM in M]: K; - }; -}[keyof S["mapping"]] : never : unknown) | (S extends { - nullable: true; -} ? null : never); -export type JTDDataType = S extends { - definitions: Record; -} ? JTDDataDef : JTDDataDef>; -export {}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js deleted file mode 100644 index 11338aa8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js.map deleted file mode 100644 index add89bd7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/types/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/types/jtd-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts deleted file mode 100644 index 60751564..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export type AdditionalItemsError = ErrorObject<"additionalItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export declare function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js deleted file mode 100644 index 608d51eb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateAdditionalItems = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "additionalItems", - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt) { - const { parentSchema, it } = cxt; - const { items } = parentSchema; - if (!Array.isArray(items)) { - (0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas'); - return; - } - validateAdditionalItems(cxt, items); - }, -}; -function validateAdditionalItems(cxt, items) { - const { gen, schema, data, keyword, it } = cxt; - it.items = true; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items.length }); - cxt.pass((0, codegen_1._) `${len} <= ${items.length}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var - gen.if((0, codegen_1.not)(valid), () => validateItems(valid)); - cxt.ok(valid); - } - function validateItems(valid) { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } -} -exports.validateAdditionalItems = validateAdditionalItems; -exports.default = def; -//# sourceMappingURL=additionalItems.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map deleted file mode 100644 index 0091d314..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalItems.ts"],"names":[],"mappings":";;;AAOA,mDAAuD;AACvD,6CAA2E;AAI3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAA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E,IAAA,WAAC,EAAA,GAAG,GAAG,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC,CAAA,CAAC,WAAW;QACxE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAA;QAC9C,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;IAED,SAAS,aAAa,CAAC,KAAW;QAChC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;YACzC,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,YAAY,EAAE,WAAI,CAAC,GAAG,EAAC,EAAE,KAAK,CAAC,CAAA;YACpE,IAAI,CAAC,EAAE,CAAC,SAAS;gBAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;QAC1D,CAAC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AAnBD,0DAmBC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts deleted file mode 100644 index 74698c7a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, AddedKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type AdditionalPropertiesError = ErrorObject<"additionalProperties", { - additionalProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition & AddedKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js deleted file mode 100644 index 1d3374bb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const util_1 = require("../../compile/util"); -const error = { - message: "must NOT have additional properties", - params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`, -}; -const def = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, opts } = it; - it.props = true; - if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) - return; - const props = (0, code_1.allSchemaProperties)(parentSchema.properties); - const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties); - checkAdditionalProperties(); - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function checkAdditionalProperties() { - gen.forIn("key", data, (key) => { - if (!props.length && !patProps.length) - additionalPropertyCode(key); - else - gen.if(isAdditional(key), () => additionalPropertyCode(key)); - }); - } - function isAdditional(key) { - let definedProp; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties"); - definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key); - } - else if (props.length) { - definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`)); - } - else { - definedProp = codegen_1.nil; - } - if (patProps.length) { - definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`)); - } - return (0, codegen_1.not)(definedProp); - } - function deleteAdditional(key) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - function additionalPropertyCode(key) { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key); - return; - } - if (schema === false) { - cxt.setParams({ additionalProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false); - gen.if((0, codegen_1.not)(valid), () => { - cxt.reset(); - deleteAdditional(key); - }); - } - else { - applyAdditionalSchema(key, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - } - function applyAdditionalSchema(key, valid, errors) { - const subschema = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }; - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }); - } - cxt.subschema(subschema, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=additionalProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map deleted file mode 100644 index 649ddae5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalProperties.ts"],"names":[],"mappings":";;AAOA,kCAAsE;AACtE,mDAAiE;AACjE,+CAAmC;AAEnC,6CAA0E;AAQ1E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,qCAAqC;IAC9C,MAAM,EAAE,CAAC,EAAC,MAA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AAkB;gBAC/B,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,GAAG;gBACb,YAAY,EAAE,WAAI,CAAC,GAAG;aACvB,CAAA;YACD,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;gBACrB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;oBACvB,aAAa,EAAE,IAAI;oBACnB,YAAY,EAAE,KAAK;oBACnB,SAAS,EAAE,KAAK;iBACjB,CAAC,CAAA;YACJ,CAAC;YACD,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js deleted file mode 100644 index 1b1ae737..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "allOf", - schemaType: "array", - code(cxt) { - const { gen, schema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const valid = gen.name("valid"); - schema.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid); - cxt.ok(valid); - cxt.mergeEvaluated(schCxt); - }); - }, -}; -exports.default = def; -//# sourceMappingURL=allOf.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map deleted file mode 100644 index d119d0ea..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/allOf.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,wBAAwB;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACvE,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAc,EAAE,CAAS,EAAE,EAAE;YAC3C,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,GAAG,CAAC;gBAAE,OAAM;YACtC,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,EAAC,EAAE,KAAK,CAAC,CAAA;YACtE,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;YACb,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC5B,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts deleted file mode 100644 index 61bca56e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js deleted file mode 100644 index 66cfce2c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in anyOf" }, -}; -exports.default = def; -//# sourceMappingURL=anyOf.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map deleted file mode 100644 index 537ffcbe..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/anyOf.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAIrC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts deleted file mode 100644 index 5493e844..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type ContainsError = ErrorObject<"contains", { - minContains: number; - maxContains?: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js deleted file mode 100644 index 6c5473f5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { min, max } }) => max === undefined - ? (0, codegen_1.str) `must contain at least ${min} valid item(s)` - : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`, -}; -const def = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - let min; - let max; - const { minContains, maxContains } = parentSchema; - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains; - max = maxContains; - } - else { - min = 1; - } - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - cxt.setParams({ min, max }); - if (max === undefined && min === 0) { - (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`); - return; - } - if (max !== undefined && min > max) { - (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`); - cxt.fail(); - return; - } - if ((0, util_1.alwaysValidSchema)(it, schema)) { - let cond = (0, codegen_1._) `${len} >= ${min}`; - if (max !== undefined) - cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`; - cxt.pass(cond); - return; - } - it.items = true; - const valid = gen.name("valid"); - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())); - } - else if (min === 0) { - gen.let(valid, true); - if (max !== undefined) - gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount); - } - else { - gen.let(valid, false); - validateItemsWithCount(); - } - cxt.result(valid, () => cxt.reset()); - function validateItemsWithCount() { - const schValid = gen.name("_valid"); - const count = gen.let("count", 0); - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))); - } - function validateItems(_valid, block) { - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword: "contains", - dataProp: i, - dataPropType: util_1.Type.Num, - compositeRule: true, - }, _valid); - block(); - }); - } - function checkLimits(count) { - gen.code((0, codegen_1._) `${count}++`); - if (max === undefined) { - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break()); - } - else { - gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break()); - if (min === 1) - gen.assign(valid, true); - else - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true)); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=contains.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map deleted file mode 100644 index 41579284..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/contains.ts"],"names":[],"mappings":";;AAOA,mDAAkD;AAClD,6CAA2E;AAQ3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAChC,GAAG,KAAK,SAAS;QACf,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,gBAAgB;QACjD,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,qBAAqB,GAAG,gBAAgB;IAC7E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAC/B,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,kBAAkB,GAAG,GAAG;CAC/F,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,IAAI,GAAW,CAAA;QACf,IAAI,GAAuB,CAAA;QAC3B,MAAM,EAAC,WAAW,EAAE,WAAW,EAAC,GAAG,YAAY,CAAA;QAC/C,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACjB,GA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CAAC,CAAA;QACJ,CAAC;QAED,SAAS,WAAW,CAAC,KAAW;YAC9B,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,IAAI,CAAC,CAAA;YACvB,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACtB,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;YACtE,CAAC;iBAAM,CAAC;gBACN,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;gBACpE,IAAI,GAAG,KAAK,CAAC;oBAAE,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;;oBACjC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAA;YACnE,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts deleted file mode 100644 index 05900e0c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export type PropertyDependencies = { - [K in string]?: string[]; -}; -export interface DependenciesErrorParams { - property: string; - missingProperty: string; - depsCount: number; - deps: string; -} -export type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, { - [K in string]?: string[] | AnySchema; -}>; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: { - [K in string]?: string[]; -}): void; -export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js deleted file mode 100644 index e81f86d1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -exports.error = { - message: ({ params: { property, depsCount, deps } }) => { - const property_ies = depsCount === 1 ? "property" : "properties"; - return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`; - }, - params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -}; -const def = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error: exports.error, - code(cxt) { - const [propDeps, schDeps] = splitDependencies(cxt); - validatePropertyDeps(cxt, propDeps); - validateSchemaDeps(cxt, schDeps); - }, -}; -function splitDependencies({ schema }) { - const propertyDeps = {}; - const schemaDeps = {}; - for (const key in schema) { - if (key === "__proto__") - continue; - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps; - deps[key] = schema[key]; - } - return [propertyDeps, schemaDeps]; -} -function validatePropertyDeps(cxt, propertyDeps = cxt.schema) { - const { gen, data, it } = cxt; - if (Object.keys(propertyDeps).length === 0) - return; - const missing = gen.let("missing"); - for (const prop in propertyDeps) { - const deps = propertyDeps[prop]; - if (deps.length === 0) - continue; - const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties); - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }); - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - (0, code_1.checkReportMissingProp)(cxt, depProp); - } - }); - } - else { - gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } -} -exports.validatePropertyDeps = validatePropertyDeps; -function validateSchemaDeps(cxt, schemaDeps = cxt.schema) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - for (const prop in schemaDeps) { - if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop])) - continue; - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => { - const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid); - cxt.mergeValidEvaluated(schCxt, valid); - }, () => gen.var(valid, true) // TODO var - ); - cxt.ok(valid); - } -} -exports.validateSchemaDeps = validateSchemaDeps; -exports.default = def; -//# sourceMappingURL=dependencies.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map deleted file mode 100644 index 50d7ca34..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependencies.ts"],"names":[],"mappings":";;;AAQ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G,WAAW,QAAQ,IAAA,uBAAgB,EAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;YACtE,IAAA,wBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAC/B,GAAG,CAAC,IAAI,EAAE,CAAA;QACZ,CAAC;IACH,CAAC;AACH,CAAC;AA5BD,oDA4BC;AAED,SAAgB,kBAAkB,CAAC,GAAe,EAAE,aAAwB,GAAG,CAAC,MAAM;IACpF,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACpC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;QAC9B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,UAAU,CAAC,IAAI,CAAc,CAAC;YAAE,SAAQ;QAClE,GAAG,CAAC,EAAE,CACJ,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EACtD,GAAG,EAAE;YACH,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;YAChE,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACxC,CAAC,EACD,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,WAAW;SACvC,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;AACH,CAAC;AAfD,gDAeC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js deleted file mode 100644 index 66ef2e84..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("./dependencies"); -const def = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentSchemas.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map deleted file mode 100644 index 17712e6f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentSchemas.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependentSchemas.ts"],"names":[],"mappings":";;AACA,iDAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iCAAkB,EAAC,GAAG,CAAC;CACvC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts deleted file mode 100644 index 8f602e33..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type IfKeywordError = ErrorObject<"if", { - failingKeyword: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js deleted file mode 100644 index 2c42a3e9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`, - params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`, -}; -const def = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt) { - const { gen, parentSchema, it } = cxt; - if (parentSchema.then === undefined && parentSchema.else === undefined) { - (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored'); - } - const hasThen = hasSchema(it, "then"); - const hasElse = hasSchema(it, "else"); - if (!hasThen && !hasElse) - return; - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - validateIf(); - cxt.reset(); - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause"); - cxt.setParams({ ifClause }); - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)); - } - else if (hasThen) { - gen.if(schValid, validateClause("then")); - } - else { - gen.if((0, codegen_1.not)(schValid), validateClause("else")); - } - cxt.pass(valid, () => cxt.error(true)); - function validateIf() { - const schCxt = cxt.subschema({ - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, schValid); - cxt.mergeEvaluated(schCxt); - } - function validateClause(keyword, ifClause) { - return () => { - const schCxt = cxt.subschema({ keyword }, schValid); - gen.assign(valid, schValid); - cxt.mergeValidEvaluated(schCxt, valid); - if (ifClause) - gen.assign(ifClause, (0, codegen_1._) `${keyword}`); - else - cxt.setParams({ ifClause: keyword }); - }; - } - }, -}; -function hasSchema(it, keyword) { - const schema = it.schema[keyword]; - return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema); -} -exports.default = def; -//# sourceMappingURL=if.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map deleted file mode 100644 index 54efb1dc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"if.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/if.ts"],"names":[],"mappings":";;AAQA,mDAAuD;AACvD,6CAAqE;AAIrE,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,eAAe,MAAM,CAAC,QAAQ,UAAU;IAClE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,QAAQ,GAAG;CAC9D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CA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,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;QAEtC,SAAS,UAAU;YACjB,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAC1B;gBACE,OAAO,EAAE,IAAI;gBACb,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,KAAK;aACjB,EACD,QAAQ,CACT,CAAA;YACD,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC5B,CAAC;QAED,SAAS,cAAc,CAAC,OAAe,EAAE,QAAe;YACtD,OAAO,GAAG,EAAE;gBACV,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAC,EAAE,QAAQ,CAAC,CAAA;gBACjD,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;gBAC3B,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;gBACtC,IAAI,QAAQ;oBAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAA,WAAC,EAAA,GAAG,OAAO,EAAE,CAAC,CAAA;;oBAC5C,GAAG,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAA;YACzC,CAAC,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,SAAS,SAAS,CAAC,EAAgB,EAAE,OAAe;IAClD,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAA;AAC/D,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts deleted file mode 100644 index b9cc5f5c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ErrorNoParams, Vocabulary } from "../../types"; -import { AdditionalItemsError } from "./additionalItems"; -import { ItemsError } from "./items2020"; -import { ContainsError } from "./contains"; -import { DependenciesError } from "./dependencies"; -import { PropertyNamesError } from "./propertyNames"; -import { AdditionalPropertiesError } from "./additionalProperties"; -import { NotKeywordError } from "./not"; -import { AnyOfError } from "./anyOf"; -import { OneOfError } from "./oneOf"; -import { IfKeywordError } from "./if"; -export default function getApplicator(draft2020?: boolean): Vocabulary; -export type ApplicatorKeywordError = ErrorNoParams<"false schema"> | AdditionalItemsError | ItemsError | ContainsError | AdditionalPropertiesError | DependenciesError | IfKeywordError | AnyOfError | OneOfError | NotKeywordError | PropertyNamesError; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js deleted file mode 100644 index cf592f27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const additionalItems_1 = require("./additionalItems"); -const prefixItems_1 = require("./prefixItems"); -const items_1 = require("./items"); -const items2020_1 = require("./items2020"); -const contains_1 = require("./contains"); -const dependencies_1 = require("./dependencies"); -const propertyNames_1 = require("./propertyNames"); -const additionalProperties_1 = require("./additionalProperties"); -const properties_1 = require("./properties"); -const patternProperties_1 = require("./patternProperties"); -const not_1 = require("./not"); -const anyOf_1 = require("./anyOf"); -const oneOf_1 = require("./oneOf"); -const allOf_1 = require("./allOf"); -const if_1 = require("./if"); -const thenElse_1 = require("./thenElse"); -function getApplicator(draft2020 = false) { - const applicator = [ - // any - not_1.default, - anyOf_1.default, - oneOf_1.default, - allOf_1.default, - if_1.default, - thenElse_1.default, - // object - propertyNames_1.default, - additionalProperties_1.default, - dependencies_1.default, - properties_1.default, - patternProperties_1.default, - ]; - // array - if (draft2020) - applicator.push(prefixItems_1.default, items2020_1.default); - else - applicator.push(additionalItems_1.default, items_1.default); - applicator.push(contains_1.default); - return applicator; -} -exports.default = getApplicator; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map deleted file mode 100644 index ebcb8534..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/index.ts"],"names":[],"mappings":";;AACA,uDAAuE;AACvE,+CAAuC;AACvC,mCAA2B;AAC3B,2CAAiD;AACjD,yCAAkD;AAClD,iDAA8D;AAC9D,mDAAiE;AACjE,iEAAsF;AACtF,6CAAqC;AACrC,2DAAmD;AACnD,+BAAiD;AACjD,mCAAyC;AACzC,mCAAyC;AACzC,mCAA2B;AAC3B,6BAA8C;AAC9C,yCAAiC;AAEjC,SAAwB,aAAa,CAAC,SAAS,GAAG,KAAK;IACrD,MAAM,UAAU,GAAG;QACjB,MAAM;QACN,aAAU;QACV,eAAK;QACL,eAAK;QACL,eAAK;QACL,YAAS;QACT,kBAAQ;QACR,SAAS;QACT,uBAAa;QACb,8BAAoB;QACpB,sBAAY;QACZ,oBAAU;QACV,2BAAiB;KAClB,CAAA;IACD,QAAQ;IACR,IAAI,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,qBAAW,EAAE,mBAAS,CAAC,CAAA;;QACjD,UAAU,CAAC,IAAI,CAAC,yBAAe,EAAE,eAAK,CAAC,CAAA;IAC5C,UAAU,CAAC,IAAI,CAAC,kBAAQ,CAAC,CAAA;IACzB,OAAO,UAAU,CAAA;AACnB,CAAC;AArBD,gCAqBC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts deleted file mode 100644 index 8e608ca9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function validateTuple(cxt: KeywordCxt, extraItems: string, schArr?: AnySchema[]): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js deleted file mode 100644 index 26f527bc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateTuple = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt) { - const { schema, it } = cxt; - if (Array.isArray(schema)) - return validateTuple(cxt, "additionalItems", schema); - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -function validateTuple(cxt, extraItems, schArr = cxt.schema) { - const { gen, parentSchema, data, keyword, it } = cxt; - checkStrictTuple(parentSchema); - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items); - } - const valid = gen.name("valid"); - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - schArr.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({ - keyword, - schemaProp: i, - dataProp: i, - }, valid)); - cxt.ok(valid); - }); - function checkStrictTuple(sch) { - const { opts, errSchemaPath } = it; - const l = schArr.length; - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; - (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); - } - } -} -exports.validateTuple = validateTuple; -exports.default = def; -//# sourceMappingURL=items.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map deleted file mode 100644 index ef551187..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items.ts"],"names":[],"mappings":";;;AAEA,mDAAuC;AACvC,6CAAqF;AACrF,kCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;IAC1C,MAAM,EAAE,aAAa;IACrB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACxB,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,OAAO,aAAa,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAA;QAC/E,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC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5C,MAAM,EAAC,IAAI,EAAE,aAAa,EAAC,GAAG,EAAE,CAAA;QAChC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAA;QACvB,MAAM,SAAS,GAAG,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC,CAAA;QACzF,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,SAAS,EAAE,CAAC;YACpC,MAAM,GAAG,GAAG,IAAI,OAAO,QAAQ,CAAC,oCAAoC,UAAU,4CAA4C,aAAa,GAAG,CAAA;YAC1I,IAAA,sBAAe,EAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;QAC7C,CAAC;IACH,CAAC;AACH,CAAC;AApCD,sCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts deleted file mode 100644 index a2565b2c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type ItemsError = ErrorObject<"items", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js deleted file mode 100644 index f2387d7d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const additionalItems_1 = require("./additionalItems"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt) { - const { schema, parentSchema, it } = cxt; - const { prefixItems } = parentSchema; - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - if (prefixItems) - (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems); - else - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -exports.default = def; -//# sourceMappingURL=items2020.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map deleted file mode 100644 index 5034acda..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items2020.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items2020.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAqC;AACrC,uDAAyD;AAIzD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtC,MAAM,EAAC,WAAW,EAAC,GAAG,YAAY,CAAA;QAClC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,IAAI,WAAW;YAAE,IAAA,yCAAuB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;;YACrD,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,CAAA;IACjC,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts deleted file mode 100644 index d2f4888f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export type NotKeywordError = ErrorNoParams<"not", AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js deleted file mode 100644 index 89f6fdda..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt) { - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) { - cxt.fail(); - return; - } - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, valid); - cxt.failResult(valid, () => cxt.reset(), () => cxt.error()); - }, - error: { message: "must NOT be valid" }, -}; -exports.default = def; -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map deleted file mode 100644 index d99e6ea8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/not.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAIpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;YAClC,GAAG,CAAC,IAAI,EAAE,CAAA;YACV,OAAM;QACR,CAAC;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CACX;YACE,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,KAAK;SACjB,EACD,KAAK,CACN,CAAA;QAED,GAAG,CAAC,UAAU,CACZ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EACjB,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CAAA;IACH,CAAC;IACD,KAAK,EAAE,EAAC,OAAO,EAAE,mBAAmB,EAAC;CACtC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts deleted file mode 100644 index 1e1d34f7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type OneOfError = ErrorObject<"oneOf", { - passingSchemas: [number, number] | null; -}, AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js deleted file mode 100644 index 441db2ac..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "must match exactly one schema in oneOf", - params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`, -}; -const def = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - if (it.opts.discriminator && parentSchema.discriminator) - return; - const schArr = schema; - const valid = gen.let("valid", false); - const passing = gen.let("passing", null); - const schValid = gen.name("_valid"); - cxt.setParams({ passing }); - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - gen.block(validateOneOf); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - function validateOneOf() { - schArr.forEach((sch, i) => { - let schCxt; - if ((0, util_1.alwaysValidSchema)(it, sch)) { - gen.var(schValid, true); - } - else { - schCxt = cxt.subschema({ - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, schValid); - } - if (i > 0) { - gen - .if((0, codegen_1._) `${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`) - .else(); - } - gen.if(schValid, () => { - gen.assign(valid, true); - gen.assign(passing, i); - if (schCxt) - cxt.mergeEvaluated(schCxt, codegen_1.Name); - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=oneOf.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map deleted file mode 100644 index 13b8bfe9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/oneOf.ts"],"names":[],"mappings":";;AAOA,mDAA6C;AAC7C,6CAAoD;AASpD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,OAAO,GAAG;CAC7D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC3C,wBAAwB;QACxB,I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AA,GAAG,QAAQ,OAAO,KAAK,EAAE,CAAC;yBAC9B,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;yBACpB,MAAM,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC;yBACtC,IAAI,EAAE,CAAA;gBACX,CAAC;gBAED,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;oBACpB,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;oBACvB,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;oBACtB,IAAI,MAAM;wBAAE,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;gBAC9C,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js deleted file mode 100644 index 48501c6e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const util_2 = require("../../compile/util"); -const def = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, data, parentSchema, it } = cxt; - const { opts } = it; - const patterns = (0, code_1.allSchemaProperties)(schema); - const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p])); - if (patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true))) { - return; - } - const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties; - const valid = gen.name("valid"); - if (it.props !== true && !(it.props instanceof codegen_1.Name)) { - it.props = (0, util_2.evaluatedPropsToName)(gen, it.props); - } - const { props } = it; - validatePatternProperties(); - function validatePatternProperties() { - for (const pat of patterns) { - if (checkProperties) - checkMatchingProperties(pat); - if (it.allErrors) { - validateProperties(pat); - } - else { - gen.var(valid, true); // TODO var - validateProperties(pat); - gen.if(valid); - } - } - } - function checkMatchingProperties(pat) { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); - } - } - } - function validateProperties(pat) { - gen.forIn("key", data, (key) => { - gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat); - if (!alwaysValid) { - cxt.subschema({ - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: util_2.Type.Str, - }, valid); - } - if (it.opts.unevaluated && props !== true) { - gen.assign((0, codegen_1._) `${props}[${key}]`, true); - } - else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=patternProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map deleted file mode 100644 index 231b0816..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/patternProperties.ts"],"names":[],"mappings":";;AAEA,kCAAuD;AACvD,mDAAkD;AAClD,6CAAqE;AACrE,6CAA6D;AAG7D,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,MAAM,EAAC,IAAI,EAAC,GAAG,EAAE,CAAA;QACjB,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,CAAA;QAC5C,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAChD,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAc,CAAC,CAC9C,CAAA;QAED,IACE,QAAQ,CAAC,MAAM,KAAK,CAAC;YACrB,CAAC,mBAAmB,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;gBAC7C,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,EAC9C,CAAC;YACD,OAAM;QACR,CAAC;QAED,MAAM,eAAe,GACnB,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,uBAAuB,IAAI,YAAY,CAAC,UAAU,CAAA;QAC/E,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA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AG,EAAE,GAAG,EAAE;oBACnD,MAAM,WAAW,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;oBACrD,IAAI,CAAC,WAAW,EAAE,CAAC;wBACjB,GAAG,CAAC,SAAS,CACX;4BACE,OAAO,EAAE,mBAAmB;4BAC5B,UAAU,EAAE,GAAG;4BACf,QAAQ,EAAE,GAAG;4BACb,YAAY,EAAE,WAAI,CAAC,GAAG;yBACvB,EACD,KAAK,CACN,CAAA;oBACH,CAAC;oBAED,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;wBAC1C,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,IAAI,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;oBACvC,CAAC;yBAAM,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC;wBACzC,sFAAsF;wBACtF,uDAAuD;wBACvD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;oBACvC,CAAC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js deleted file mode 100644 index 727bc23c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const items_1 = require("./items"); -const def = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => (0, items_1.validateTuple)(cxt, "items"), -}; -exports.default = def; -//# sourceMappingURL=prefixItems.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map deleted file mode 100644 index deef718e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefixItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/prefixItems.ts"],"names":[],"mappings":";;AACA,mCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,GAAG,EAAE,OAAO,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js deleted file mode 100644 index 7347358e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_1 = require("../../compile/validate"); -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const additionalProperties_1 = require("./additionalProperties"); -const def = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); - } - const allProps = (0, code_1.allSchemaProperties)(schema); - for (const prop of allProps) { - it.definedProperties.add(prop); - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props); - } - const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - if (properties.length === 0) - return; - const valid = gen.name("valid"); - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop); - } - else { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties)); - applyPropertySchema(prop); - if (!it.allErrors) - gen.else().var(valid, true); - gen.endIf(); - } - cxt.it.definedProperties.add(prop); - cxt.ok(valid); - } - function hasDefault(prop) { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; - } - function applyPropertySchema(prop) { - cxt.subschema({ - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map deleted file mode 100644 index 13cd3477..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/properties.ts"],"names":[],"mappings":";;AACA,qDAAiD;AACjD,kCAA2D;AAC3D,6CAA4E;AAC5E,iEAA0C;AAE1C,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,KAAK,KAAK,IAAI,YAAY,CAAC,oBAAoB,KAAK,SAAS,EAAE,CAAC;YAC1F,8BAAK,CAAC,IAAI,CAAC,IAAI,qBAAU,CAAC,EAAE,EAAE,8BAAK,EAAE,sBAAsB,CAAC,CAAC,CAAA;QAC/D,CAAC;QACD,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,CAAA;QAC5C,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;YAC5B,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAChC,CAAC;QACD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YAChE,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,IAAA,aAAM,EAAC,QAAQ,CAAC,EAAE,EAAE,CA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AI;gBAChB,QAAQ,EAAE,IAAI;aACf,EACD,KAAK,CACN,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts deleted file mode 100644 index a806da32..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type PropertyNamesError = ErrorObject<"propertyNames", { - propertyName: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js deleted file mode 100644 index f3871152..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "property name must be valid", - params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`, -}; -const def = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - gen.forIn("key", data, (key) => { - cxt.setParams({ propertyName: key }); - cxt.subschema({ - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, valid); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(true); - if (!it.allErrors) - gen.break(); - }); - }); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=propertyNames.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map deleted file mode 100644 index 835b2bb1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyNames.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/propertyNames.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AAIpD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,kBAAkB,MAAM,CAAC,YAAY,GAAG;CAChE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAE/B,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YAC7B,GAAG,CAAC,SAAS,CAAC,EAAC,YAAY,EAAE,GAAG,EAAC,CAAC,CAAA;YAClC,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,eAAe;gBACxB,IAAI,EAAE,GAAG;gBACT,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,YAAY,EAAE,GAAG;gBACjB,aAAa,EAAE,IAAI;aACpB,EACD,KAAK,CACN,CAAA;YACD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;gBACtB,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;gBACf,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,KAAK,EAAE,CAAA;YAChC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js deleted file mode 100644 index 1ae63902..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({ keyword, parentSchema, it }) { - if (parentSchema.if === undefined) - (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); - }, -}; -exports.default = def; -//# sourceMappingURL=thenElse.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map deleted file mode 100644 index 2629f4fc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"thenElse.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/thenElse.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,EAAE,KAAK,SAAS;YAAE,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,2BAA2B,CAAC,CAAA;IAChG,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.d.ts deleted file mode 100644 index f914baca..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { SchemaMap } from "../types"; -import type { SchemaCxt } from "../compile"; -import type { KeywordCxt } from "../compile/validate"; -import { CodeGen, Code, Name } from "../compile/codegen"; -export declare function checkReportMissingProp(cxt: KeywordCxt, prop: string): void; -export declare function checkMissingProp({ gen, data, it: { opts } }: KeywordCxt, properties: string[], missing: Name): Code; -export declare function reportMissingProp(cxt: KeywordCxt, missing: Name): void; -export declare function hasPropFunc(gen: CodeGen): Name; -export declare function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code; -export declare function propertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function noPropertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function allSchemaProperties(schemaMap?: SchemaMap): string[]; -export declare function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[]; -export declare function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }: KeywordCxt, func: Code, context: Code, passSchema?: boolean): Code; -export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string): Name; -export declare function validateArray(cxt: KeywordCxt): Name; -export declare function validateUnion(cxt: KeywordCxt): void; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js deleted file mode 100644 index 8cb89932..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0; -const codegen_1 = require("../compile/codegen"); -const util_1 = require("../compile/util"); -const names_1 = require("../compile/names"); -const util_2 = require("../compile/util"); -function checkReportMissingProp(cxt, prop) { - const { gen, data, it } = cxt; - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true); - cxt.error(); - }); -} -exports.checkReportMissingProp = checkReportMissingProp; -function checkMissingProp({ gen, data, it: { opts } }, properties, missing) { - return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`))); -} -exports.checkMissingProp = checkMissingProp; -function reportMissingProp(cxt, missing) { - cxt.setParams({ missingProperty: missing }, true); - cxt.error(); -} -exports.reportMissingProp = reportMissingProp; -function hasPropFunc(gen) { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: (0, codegen_1._) `Object.prototype.hasOwnProperty`, - }); -} -exports.hasPropFunc = hasPropFunc; -function isOwnProperty(gen, data, property) { - return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`; -} -exports.isOwnProperty = isOwnProperty; -function propertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`; - return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond; -} -exports.propertyInData = propertyInData; -function noPropertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`; - return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond; -} -exports.noPropertyInData = noPropertyInData; -function allSchemaProperties(schemaMap) { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []; -} -exports.allSchemaProperties = allSchemaProperties; -function schemaProperties(it, schemaMap) { - return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p])); -} -exports.schemaProperties = schemaProperties; -function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) { - const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data; - const valCxt = [ - [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)], - [names_1.default.parentData, it.parentData], - [names_1.default.parentDataProperty, it.parentDataProperty], - [names_1.default.rootData, names_1.default.rootData], - ]; - if (it.opts.dynamicRef) - valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]); - const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`; - return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`; -} -exports.callValidateCode = callValidateCode; -const newRegExp = (0, codegen_1._) `new RegExp`; -function usePattern({ gen, it: { opts } }, pattern) { - const u = opts.unicodeRegExp ? "u" : ""; - const { regExp } = opts.code; - const rx = regExp(pattern, u); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._) `${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`, - }); -} -exports.usePattern = usePattern; -function validateArray(cxt) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - if (it.allErrors) { - const validArr = gen.let("valid", true); - validateItems(() => gen.assign(validArr, false)); - return validArr; - } - gen.var(valid, true); - validateItems(() => gen.break()); - return valid; - function validateItems(notValid) { - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword, - dataProp: i, - dataPropType: util_1.Type.Num, - }, valid); - gen.if((0, codegen_1.not)(valid), notValid); - }); - } -} -exports.validateArray = validateArray; -function validateUnion(cxt) { - const { gen, schema, keyword, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)); - if (alwaysValid && !it.opts.unevaluated) - return; - const valid = gen.let("valid", false); - const schValid = gen.name("_valid"); - gen.block(() => schema.forEach((_sch, i) => { - const schCxt = cxt.subschema({ - keyword, - schemaProp: i, - compositeRule: true, - }, schValid); - gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`); - const merged = cxt.mergeValidEvaluated(schCxt, schValid); - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) - gen.if((0, codegen_1.not)(valid)); - })); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); -} -exports.validateUnion = validateUnion; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js.map deleted file mode 100644 index ef06de27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../lib/vocabularies/code.ts"],"names":[],"mappings":";;;AAGA,gDAAoG;AACpG,0CAAuD;AACvD,4CAAgC;AAChC,0CAAuC;AACvC,SAAgB,sBAAsB,CAAC,GAAe,EAAE,IAAY;IAClE,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IAC3B,GAAG,CAAC,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE;QACpE,GAAG,CAAC,SAAS,CAAC,EAAC,eAAe,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,EAAE,EAAC,EAAE,IAAI,CAAC,CAAA;QAClD,GAAG,CAAC,KAAK,EAAE,CAAA;IACb,CAAC,CAAC,CAAA;AACJ,CAAC;AAND,wDAMC;AAED,SAAgB,gBAAgB,CAC9B,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC,IAAI,EAAC,EAAa,EACnC,UAAoB,EACpB,OAAa;IAEb,OAAO,IAAA,YAAE,EACP,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACzB,IAAA,aAAG,EAAC,gBAAgB,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,E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,CAAC,CACtB,CAAA;AACH,CAAC;AAjCD,sCAiCC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js deleted file mode 100644 index 313598aa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const def = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); - }, -}; -exports.default = def; -//# sourceMappingURL=id.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map deleted file mode 100644 index 4eb27eb3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"id.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/id.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,IAAI;QACF,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;IACzE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts deleted file mode 100644 index f2e34ee3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const core: Vocabulary; -export default core; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js deleted file mode 100644 index 87656d74..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const id_1 = require("./id"); -const ref_1 = require("./ref"); -const core = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - { keyword: "$comment" }, - "definitions", - id_1.default, - ref_1.default, -]; -exports.default = core; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map deleted file mode 100644 index 5bf65f94..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/index.ts"],"names":[],"mappings":";;AACA,6BAA4B;AAC5B,+BAA8B;AAE9B,MAAM,IAAI,GAAe;IACvB,SAAS;IACT,KAAK;IACL,OAAO;IACP,aAAa;IACb,EAAC,OAAO,EAAE,UAAU,EAAC;IACrB,aAAa;IACb,YAAS;IACT,aAAU;CACX,CAAA;AAED,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts deleted file mode 100644 index 6a0967d1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { Code } from "../../compile/codegen"; -import { SchemaEnv } from "../../compile"; -declare const def: CodeKeywordDefinition; -export declare function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code; -export declare function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js deleted file mode 100644 index bac1ae85..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callRef = exports.getValidate = void 0; -const ref_error_1 = require("../../compile/ref_error"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$ref", - schemaType: "string", - code(cxt) { - const { gen, schema: $ref, it } = cxt; - const { baseId, schemaEnv: env, validateName, opts, self } = it; - const { root } = env; - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) - return callRootRef(); - const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref); - if (schOrEnv === undefined) - throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref); - if (schOrEnv instanceof compile_1.SchemaEnv) - return callValidate(schOrEnv); - return inlineRefSchema(schOrEnv); - function callRootRef() { - if (env === root) - return callRef(cxt, validateName, env, env.$async); - const rootName = gen.scopeValue("root", { ref: root }); - return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async); - } - function callValidate(sch) { - const v = getValidate(cxt, sch); - callRef(cxt, v, sch, sch.$async); - } - function inlineRefSchema(sch) { - const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); - const valid = gen.name("valid"); - const schCxt = cxt.subschema({ - schema: sch, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, valid); - cxt.mergeEvaluated(schCxt); - cxt.ok(valid); - } - }, -}; -function getValidate(cxt, sch) { - const { gen } = cxt; - return sch.validate - ? gen.scopeValue("validate", { ref: sch.validate }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.validate`; -} -exports.getValidate = getValidate; -function callRef(cxt, v, sch, $async) { - const { gen, it } = cxt; - const { allErrors, schemaEnv: env, opts } = it; - const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; - if ($async) - callAsyncRef(); - else - callSyncRef(); - function callAsyncRef() { - if (!env.$async) - throw new Error("async schema referenced by sync schema"); - const valid = gen.let("valid"); - gen.try(() => { - gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); - addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result - if (!allErrors) - gen.assign(valid, true); - }, (e) => { - gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e)); - addErrorsFrom(e); - if (!allErrors) - gen.assign(valid, false); - }); - cxt.ok(valid); - } - function callSyncRef() { - cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); - } - function addErrorsFrom(source) { - const errs = (0, codegen_1._) `${source}.errors`; - gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged - gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - } - function addEvaluatedFrom(source) { - var _a; - if (!it.opts.unevaluated) - return; - const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated; - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props); - } - } - else { - const props = gen.var("props", (0, codegen_1._) `${source}.evaluated.props`); - it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name); - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items); - } - } - else { - const items = gen.var("items", (0, codegen_1._) `${source}.evaluated.items`); - it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name); - } - } - } -} -exports.callRef = callRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map deleted file mode 100644 index 3125bb89..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/ref.ts"],"names":[],"mappings":";;;AAEA,uDAAqD;AACrD,kCAAwC;AACxC,mDAAmE;AACnE,+CAAmC;AACnC,2CAAmD;AACnD,6CAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,MAAM,EAAC,MAAM,EAAE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QACH,CAAC;QACD,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACtB,IAAI,YAAY,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;gBAC/C,IAAI,YAAY,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;oBACrC,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;gBACpE,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,MAAM,kBAAkB,CAAC,CAAA;gBAC5D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,cAAI,CAAC,CAAA;YAC7D,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAhED,0BAgEC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts deleted file mode 100644 index ab3669a4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export type DiscriminatorError = DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js deleted file mode 100644 index ccdb340b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const types_1 = require("../discriminator/types"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -}; -const def = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { oneOf } = parentSchema; - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option"); - } - const tagName = schema.propertyName; - if (typeof tagName != "string") - throw new Error("discriminator: requires propertyName"); - if (schema.mapping) - throw new Error("discriminator: mapping is not supported"); - if (!oneOf) - throw new Error("discriminator: requires oneOf keyword"); - const valid = gen.let("valid", false); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`); - gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName })); - cxt.ok(valid); - function validateMapping() { - const mapping = getMapping(); - gen.if(false); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(mapping[tagValue])); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - return _valid; - } - function getMapping() { - var _a; - const oneOfMapping = {}; - const topRequired = hasRequired(parentSchema); - let tagRequired = true; - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i]; - if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) { - sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref); - if (sch instanceof compile_1.SchemaEnv) - sch = sch.schema; - } - const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName]; - if (typeof propSch != "object") { - throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`); - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)); - addMappings(propSch, i); - } - if (!tagRequired) - throw new Error(`discriminator: "${tagName}" must be required`); - return oneOfMapping; - function hasRequired({ required }) { - return Array.isArray(required) && required.includes(tagName); - } - function addMappings(sch, i) { - if (sch.const) { - addMapping(sch.const, i); - } - else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i); - } - } - else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`); - } - } - function addMapping(tagValue, i) { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`); - } - oneOfMapping[tagValue] = i; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map deleted file mode 100644 index a4b05125..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/index.ts"],"names":[],"mappings":";;AAEA,mDAA0D;AAC1D,kDAAgE;AAChE,2CAAmD;AACnD,6CAAuD;AAIvD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAA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,WAAW,CAAC,EAAC,QAAQ,EAAkB;gBAC9C,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC9D,CAAC;YAED,SAAS,WAAW,CAAC,GAAoB,EAAE,CAAS;gBAClD,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;oBACd,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;gBAC1B,CAAC;qBAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;oBACpB,KAAK,MAAM,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;wBAChC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;oBACzB,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,+BAA+B,CAAC,CAAA;gBACvF,CAAC;YACH,CAAC;YAED,SAAS,UAAU,CAAC,QAAiB,EAAE,CAAS;gBAC9C,IAAI,OAAO,QAAQ,IAAI,QAAQ,IAAI,QAAQ,IAAI,YAAY,EAAE,CAAC;oBAC5D,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,iCAAiC,CAAC,CAAA;gBAC9E,CAAC;gBACD,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts deleted file mode 100644 index 8550f6d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { ErrorObject } from "../../types"; -export declare enum DiscrError { - Tag = "tag", - Mapping = "mapping" -} -export type DiscrErrorObj = ErrorObject<"discriminator", { - error: E; - tag: string; - tagValue: unknown; -}, string>; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js deleted file mode 100644 index edf4da5e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DiscrError = void 0; -var DiscrError; -(function (DiscrError) { - DiscrError["Tag"] = "tag"; - DiscrError["Mapping"] = "mapping"; -})(DiscrError || (exports.DiscrError = DiscrError = {})); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map deleted file mode 100644 index 028633bd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts deleted file mode 100644 index d65752c6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft2020Vocabularies: Vocabulary[]; -export default draft2020Vocabularies; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js deleted file mode 100644 index 23d244ae..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const dynamic_1 = require("./dynamic"); -const next_1 = require("./next"); -const unevaluated_1 = require("./unevaluated"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft2020Vocabularies = [ - dynamic_1.default, - core_1.default, - validation_1.default, - (0, applicator_1.default)(true), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, - next_1.default, - unevaluated_1.default, -]; -exports.default = draft2020Vocabularies; -//# sourceMappingURL=draft2020.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map deleted file mode 100644 index ae1a4d83..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft2020.js","sourceRoot":"","sources":["../../lib/vocabularies/draft2020.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,uCAAyC;AACzC,iCAAmC;AACnC,+CAAiD;AACjD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,qBAAqB,GAAiB;IAC1C,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,EAAC,IAAI,CAAC;IAC7B,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;IACjB,cAAc;IACd,qBAAqB;CACtB,CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts deleted file mode 100644 index 469fb844..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft7Vocabularies: Vocabulary[]; -export default draft7Vocabularies; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js deleted file mode 100644 index 1e993de0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft7Vocabularies = [ - core_1.default, - validation_1.default, - (0, applicator_1.default)(), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, -]; -exports.default = draft7Vocabularies; -//# sourceMappingURL=draft7.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map deleted file mode 100644 index bc7389c6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft7.js","sourceRoot":"","sources":["../../lib/vocabularies/draft7.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,kBAAkB,GAAiB;IACvC,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,GAAE;IACzB,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts deleted file mode 100644 index 56212139..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicAnchor(cxt: KeywordCxt, anchor: string): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js deleted file mode 100644 index 972dc35c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicAnchor = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -}; -function dynamicAnchor(cxt, anchor) { - const { gen, it } = cxt; - it.schemaEnv.root.dynamicAnchors[anchor] = true; - const v = (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`; - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt); - gen.if((0, codegen_1._) `!${v}`, () => gen.assign(v, validate)); -} -exports.dynamicAnchor = dynamicAnchor; -function _getValidate(cxt) { - const { schemaEnv, schema, self } = cxt.it; - const { root, baseId, localRefs, meta } = schemaEnv.root; - const { schemaId } = self.opts; - const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta }); - compile_1.compileSchema.call(self, sch); - return (0, ref_1.getValidate)(cxt, sch); -} -exports.default = def; -//# sourceMappingURL=dynamicAnchor.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map deleted file mode 100644 index e70afe30..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/dynamicAnchor.ts"],"names":[],"mappings":";;;AAEA,mDAA0D;AAC1D,+CAAmC;AACnC,2CAAsD;AACtD,qCAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,gBAAgB;IACzB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC9C,CAAA;AAED,SAAgB,aAAa,CAAC,GAAe,EAAE,MAAc;IAC3D,MAAM,EAAC,GAAG,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACrB,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IAC/C,MAAM,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,cAAc,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAA;IACtD,MAAM,QAAQ,GAAG,EAAE,CAAC,aAAa,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;IAC/E,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;AACjD,CAAC;AAND,sCAMC;AAED,SAAS,YAAY,CAAC,GAAe;IACnC,MAAM,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAC,EAAE,CAAA;IACxC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,SAAS,CAAC,IAAI,CAAA;IACtD,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAG,IAAI,mBAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAA;IAC5E,uBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC7B,OAAO,IAAA,iBAAW,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAC9B,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts deleted file mode 100644 index fa2f2b81..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicRef(cxt: KeywordCxt, ref: string): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js deleted file mode 100644 index 9f010a0d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicRef = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -}; -function dynamicRef(cxt, ref) { - const { gen, keyword, it } = cxt; - if (ref[0] !== "#") - throw new Error(`"${keyword}" only supports hash fragment reference`); - const anchor = ref.slice(1); - if (it.allErrors) { - _dynamicRef(); - } - else { - const valid = gen.let("valid", false); - _dynamicRef(valid); - cxt.ok(valid); - } - function _dynamicRef(valid) { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`); - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)); - } - else { - _callRef(it.validateName, valid)(); - } - } - function _callRef(validate, valid) { - return valid - ? () => gen.block(() => { - (0, ref_1.callRef)(cxt, validate); - gen.let(valid, true); - }) - : () => (0, ref_1.callRef)(cxt, validate); - } -} -exports.dynamicRef = dynamicRef; -exports.default = def; -//# sourceMappingURL=dynamicRef.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map deleted file mode 100644 index 69afd4de..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicRef.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/dynamicRef.ts"],"names":[],"mappings":";;;AAEA,mDAAgE;AAChE,+CAAmC;AACnC,qCAAmC;AAEnC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC3C,CAAA;AAED,SAAgB,UAAU,CAAC,GAAe,EAAE,GAAW;IACrD,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IAC9B,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,IAAI,OAAO,yCAAyC,CAAC,CAAA;IACzF,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAC3B,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;QACjB,WAAW,EAAE,CAAA;IACf,CAAC;SAAM,CAAC;QACN,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACrC,WAAW,CAAC,KAAK,CAAC,CAAA;QAClB,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;IAED,SAAS,WAAW,CAAC,KAAY;QAC/B,+EAA+E;QAC/E,4EAA4E;QAC5E,sFAAsF;QACtF,qDAAqD;QACrD,kGAAkG;QAClG,yDAAyD;QACzD,IAAI,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7C,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,cAAc,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAC,CAAA;YACrE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAA;QACjE,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAA;QACpC,CAAC;IACH,CAAC;IAED,SAAS,QAAQ,CAAC,QAAc,EAAE,KAAY;QAC5C,OAAO,KAAK;YACV,CAAC,CAAC,GAAG,EAAE,CACH,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE;gBACb,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;gBACtB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;YACtB,CAAC,CAAC;YACN,CAAC,CAAC,GAAG,EAAE,CAAC,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IAClC,CAAC;AACH,CAAC;AApCD,gCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts deleted file mode 100644 index 0c751d93..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const dynamic: Vocabulary; -export default dynamic; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js deleted file mode 100644 index f2388a75..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const dynamicRef_1 = require("./dynamicRef"); -const recursiveAnchor_1 = require("./recursiveAnchor"); -const recursiveRef_1 = require("./recursiveRef"); -const dynamic = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default]; -exports.default = dynamic; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map deleted file mode 100644 index f96ba76d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/index.ts"],"names":[],"mappings":";;AACA,mDAA2C;AAC3C,6CAAqC;AACrC,uDAA+C;AAC/C,iDAAyC;AAEzC,MAAM,OAAO,GAAe,CAAC,uBAAa,EAAE,oBAAU,EAAE,yBAAe,EAAE,sBAAY,CAAC,CAAA;AAEtF,kBAAe,OAAO,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js deleted file mode 100644 index 9fd83235..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) - (0, dynamicAnchor_1.dynamicAnchor)(cxt, ""); - else - (0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored"); - }, -}; -exports.default = def; -//# sourceMappingURL=recursiveAnchor.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map deleted file mode 100644 index 5d5e381b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveAnchor.ts"],"names":[],"mappings":";;AACA,mDAA6C;AAC7C,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,UAAU,EAAE,SAAS;IACrB,IAAI,CAAC,GAAG;QACN,IAAI,GAAG,CAAC,MAAM;YAAE,IAAA,6BAAa,EAAC,GAAG,EAAE,EAAE,CAAC,CAAA;;YACjC,IAAA,sBAAe,EAAC,GAAG,CAAC,EAAE,EAAE,oCAAoC,CAAC,CAAA;IACpE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js deleted file mode 100644 index 8cd5c696..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicRef_1 = require("./dynamicRef"); -const def = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema), -}; -exports.default = def; -//# sourceMappingURL=recursiveRef.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map deleted file mode 100644 index f8138044..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveRef.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveRef.ts"],"names":[],"mappings":";;AACA,6CAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts deleted file mode 100644 index be67f2e8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TypeError } from "../compile/validate/dataType"; -import type { ApplicatorKeywordError } from "./applicator"; -import type { ValidationKeywordError } from "./validation"; -import type { FormatError } from "./format/format"; -import type { UnevaluatedPropertiesError } from "./unevaluated/unevaluatedProperties"; -import type { UnevaluatedItemsError } from "./unevaluated/unevaluatedItems"; -import type { DependentRequiredError } from "./validation/dependentRequired"; -import type { DiscriminatorError } from "./discriminator"; -export type DefinedError = TypeError | ApplicatorKeywordError | ValidationKeywordError | FormatError | UnevaluatedPropertiesError | UnevaluatedItemsError | DependentRequiredError | DiscriminatorError; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js deleted file mode 100644 index d4d3fba0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js.map deleted file mode 100644 index 56bad736..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/vocabularies/errors.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts deleted file mode 100644 index 04dc98f6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type FormatError = ErrorObject<"format", { - format: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js deleted file mode 100644 index aa667c1e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`, -}; -const def = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt, ruleType) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const { opts, errSchemaPath, schemaEnv, self } = it; - if (!opts.validateFormats) - return; - if ($data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }); - const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`); - const fType = gen.let("fType"); - const format = gen.let("format"); - // TODO simplify - gen.if((0, codegen_1._) `typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || "string"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `"string"`).assign(format, fDef)); - cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt())); - function unknownFmt() { - if (opts.strictSchema === false) - return codegen_1.nil; - return (0, codegen_1._) `${schemaCode} && !${format}`; - } - function invalidFmt() { - const callFormat = schemaEnv.$async - ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : (0, codegen_1._) `${format}(${data})`; - const validData = (0, codegen_1._) `(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`; - return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`; - } - } - function validateFormat() { - const formatDef = self.formats[schema]; - if (!formatDef) { - unknownFormat(); - return; - } - if (formatDef === true) - return; - const [fmtType, format, fmtRef] = getFormat(formatDef); - if (fmtType === ruleType) - cxt.pass(validCondition()); - function unknownFormat() { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()); - return; - } - throw new Error(unknownMsg()); - function unknownMsg() { - return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; - } - } - function getFormat(fmtDef) { - const code = fmtDef instanceof RegExp - ? (0, codegen_1.regexpCode)(fmtDef) - : opts.code.formats - ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` - : undefined; - const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code }); - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`]; - } - return ["string", fmtDef, fmt]; - } - function validCondition() { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) - throw new Error("async format in sync schema"); - return (0, codegen_1._) `await ${fmtRef}(${data})`; - } - return typeof format == "function" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map deleted file mode 100644 index b6d93c98..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/format.ts"],"names":[],"mappings":";;AASA,mDAAoF;AAapF,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,sBAAsB,UAAU,GAAG;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,YAAY,UAAU,GAAG;CACrD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe,EAAE,QAAiB;QACrC,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtD,MAAM,EAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QACjD,IAAI,CAAC,IAAI,CAAC,eAAe;YAAE,OAAM;QAEjC,IAA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\ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts deleted file mode 100644 index c8019c9d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const format: Vocabulary; -export default format; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js deleted file mode 100644 index d19023d2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const format_1 = require("./format"); -const format = [format_1.default]; -exports.default = format; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map deleted file mode 100644 index 6315bfe1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/index.ts"],"names":[],"mappings":";;AACA,qCAAoC;AAEpC,MAAM,MAAM,GAAe,CAAC,gBAAa,CAAC,CAAA;AAE1C,kBAAe,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts deleted file mode 100644 index 85e16df6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export type JTDDiscriminatorError = _JTDTypeError<"discriminator", "object", string> | DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js deleted file mode 100644 index e7074d27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const types_1 = require("../discriminator/types"); -const error = { - message: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? params.discrError === types_1.DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? (0, codegen_1._) `{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, parentSchema } = cxt; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - gen.if(cond); - validateDiscriminator(); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - cxt.ok(valid); - function validateDiscriminator() { - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(schema)}`); - gen.if((0, codegen_1._) `${tag} === undefined`); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }); - gen.elseIf((0, codegen_1._) `typeof ${tag} == "string"`); - validateMapping(tag); - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }, { instancePath: schema }); - gen.endIf(); - } - function validateMapping(tag) { - gen.if(false); - for (const tagValue in parentSchema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(tagValue)); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag }, { instancePath: schema, schemaPath: "mapping", parentSchema: true }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - cxt.subschema({ - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, _valid); - return _valid; - } - }, -}; -exports.default = def; -//# sourceMappingURL=discriminator.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map deleted file mode 100644 index ca2a5ab9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"discriminator.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/discriminator.ts"],"names":[],"mappings":";;AAEA,mDAA+D;AAC/D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AACxE,kDAAgE;AAOhE,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,MAAM,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,GAAG,CAAA;QAC5B,OAAO,MAAM,CAAC,UAAU;YACtB,CAAC,CAAC,MAAM,CAAC,UAAU,KAAK,kBAAU,CAAC,GAAG;gBACpC,CAAC,CAAC,QAAQ,MAAM,kBAAkB;gBAClC,CAAC,CAAC,iBA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C,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,SAAS;gBAClB,UAAU;gBACV,gBAAgB,EAAE,MAAM;aACzB,EACD,MAAM,CACP,CAAA;YACD,OAAO,MAAM,CAAA;QACf,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts deleted file mode 100644 index 82c942c3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js deleted file mode 100644 index 9b8fb548..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "elements", - schemaType: "object", - error: (0, error_1.typeError)("array"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const [valid] = (0, nullable_1.checkNullable)(cxt); - gen.if((0, codegen_1.not)(valid), () => gen.if((0, codegen_1._) `Array.isArray(${data})`, () => gen.assign(valid, (0, code_1.validateArray)(cxt)), () => cxt.error())); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=elements.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map deleted file mode 100644 index 38fe3a12..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/elements.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AACpD,kCAAqC;AACrC,mDAA4C;AAC5C,yCAAwC;AACxC,yCAAwC;AACxC,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,OAAO,CAAC;IACzB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClC,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CACtB,GAAG,CAAC,EAAE,CACJ,IAAA,WAAC,EAAA,iBAAiB,IAAI,GAAG,EACzB,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,EAC3C,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CACF,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts deleted file mode 100644 index 8ba1790d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type JTDEnumError = ErrorObject<"enum", { - allowedValues: string[]; -}, string[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js deleted file mode 100644 index 78b01ee3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, schemaValue, parentSchema, it } = cxt; - if (schema.length === 0) - throw new Error("enum must have non-empty array"); - if (schema.length !== new Set(schema).size) - throw new Error("enum items must be unique"); - let valid; - const isString = (0, codegen_1._) `typeof ${data} == "string"`; - if (schema.length >= it.opts.loopEnum) { - let cond; - [valid, cond] = (0, nullable_1.checkNullable)(cxt, isString); - gen.if(cond, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - valid = (0, codegen_1.and)(isString, (0, codegen_1.or)(...schema.map((value) => (0, codegen_1._) `${data} === ${value}`))); - if (parentSchema.nullable) - valid = (0, codegen_1.or)((0, codegen_1._) `${data} === null`, valid); - } - cxt.pass(valid); - function loopEnum() { - gen.forOf("v", schemaValue, (v) => gen.if((0, codegen_1._) `${valid} = ${data} === ${v}`, () => gen.break())); - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map deleted file mode 100644 index 06ee9e20..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/enum.ts"],"names":[],"mappings":";;AAEA,mDAAsD;AACtD,yCAAwC;AACxC,yCAAwC;AAIxC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC1E,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,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;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts deleted file mode 100644 index d334ff54..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { KeywordErrorDefinition, KeywordErrorCxt, ErrorObject } from "../../types"; -import { Code } from "../../compile/codegen"; -export type _JTDTypeError = ErrorObject; -export declare function typeError(t: string): KeywordErrorDefinition; -export declare function typeErrorMessage({ parentSchema }: KeywordErrorCxt, t: string): string; -export declare function typeErrorParams({ parentSchema }: KeywordErrorCxt, t: string): Code; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js deleted file mode 100644 index 1a3920a7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeErrorParams = exports.typeErrorMessage = exports.typeError = void 0; -const codegen_1 = require("../../compile/codegen"); -function typeError(t) { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - }; -} -exports.typeError = typeError; -function typeErrorMessage({ parentSchema }, t) { - return (parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable) ? `must be ${t} or null` : `must be ${t}`; -} -exports.typeErrorMessage = typeErrorMessage; -function typeErrorParams({ parentSchema }, t) { - return (0, codegen_1._) `{type: ${t}, nullable: ${!!(parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable)}}`; -} -exports.typeErrorParams = typeErrorParams; -//# sourceMappingURL=error.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map deleted file mode 100644 index db559678..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/error.ts"],"names":[],"mappings":";;;AACA,mDAA6C;AAQ7C,SAAgB,SAAS,CAAC,CAAS;IACjC,OAAO;QACL,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1C,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,CAAC;KACzC,CAAA;AACH,CAAC;AALD,8BAKC;AAED,SAAgB,gBAAgB,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACzE,OAAO,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,EAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAA;AACzE,CAAC;AAFD,4CAEC;AAED,SAAgB,eAAe,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACxE,OAAO,IAAA,WAAC,EAAA,UAAU,CAAC,eAAe,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,CAAA,GAAG,CAAA;AAC/D,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts deleted file mode 100644 index c56246b7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Vocabulary } from "../../types"; -import { JTDTypeError } from "./type"; -import { JTDEnumError } from "./enum"; -import { JTDElementsError } from "./elements"; -import { JTDPropertiesError } from "./properties"; -import { JTDDiscriminatorError } from "./discriminator"; -import { JTDValuesError } from "./values"; -declare const jtdVocabulary: Vocabulary; -export default jtdVocabulary; -export type JTDErrorObject = JTDTypeError | JTDEnumError | JTDElementsError | JTDPropertiesError | JTDDiscriminatorError | JTDValuesError; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js deleted file mode 100644 index 18f40ab7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ref_1 = require("./ref"); -const type_1 = require("./type"); -const enum_1 = require("./enum"); -const elements_1 = require("./elements"); -const properties_1 = require("./properties"); -const optionalProperties_1 = require("./optionalProperties"); -const discriminator_1 = require("./discriminator"); -const values_1 = require("./values"); -const union_1 = require("./union"); -const metadata_1 = require("./metadata"); -const jtdVocabulary = [ - "definitions", - ref_1.default, - type_1.default, - enum_1.default, - elements_1.default, - properties_1.default, - optionalProperties_1.default, - discriminator_1.default, - values_1.default, - union_1.default, - metadata_1.default, - { keyword: "additionalProperties", schemaType: "boolean" }, - { keyword: "nullable", schemaType: "boolean" }, -]; -exports.default = jtdVocabulary; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map deleted file mode 100644 index 713a1875..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/index.ts"],"names":[],"mappings":";;AACA,+BAA8B;AAC9B,iCAAgD;AAChD,iCAAgD;AAChD,yCAAqD;AACrD,6CAA2D;AAC3D,6DAAqD;AACrD,mDAAoE;AACpE,qCAA+C;AAC/C,mCAA2B;AAC3B,yCAAiC;AAEjC,MAAM,aAAa,GAAe;IAChC,aAAa;IACb,aAAU;IACV,cAAW;IACX,cAAW;IACX,kBAAQ;IACR,oBAAU;IACV,4BAAkB;IAClB,uBAAa;IACb,gBAAM;IACN,eAAK;IACL,kBAAQ;IACR,EAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,SAAS,EAAC;IACxD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;CAC7C,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts deleted file mode 100644 index 86e15a8e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { KeywordCxt } from "../../ajv"; -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function checkMetadata({ it, keyword }: KeywordCxt, metadata?: boolean): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js deleted file mode 100644 index eeb3c91c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkMetadata = void 0; -const util_1 = require("../../compile/util"); -const def = { - keyword: "metadata", - schemaType: "object", - code(cxt) { - checkMetadata(cxt); - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - cxt.subschema({ keyword: "metadata", jtdMetadata: true }, valid); - cxt.ok(valid); - }, -}; -function checkMetadata({ it, keyword }, metadata) { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`); - } -} -exports.checkMetadata = checkMetadata; -exports.default = def; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map deleted file mode 100644 index 2fea91ce..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/metadata.ts"],"names":[],"mappings":";;;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,aAAa,CAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;QAC9D,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,SAAgB,aAAa,CAAC,EAAC,EAAE,EAAE,OAAO,EAAa,EAAE,QAAkB;IACzE,IAAI,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,0CAA0C,CAAC,CAAA;IAC7E,CAAC;AACH,CAAC;AAJD,sCAIC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts deleted file mode 100644 index 254f7602..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { KeywordCxt } from "../../compile/validate"; -import { Code, Name } from "../../compile/codegen"; -export declare function checkNullable({ gen, data, parentSchema }: KeywordCxt, cond?: Code): [Name, Code]; -export declare function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code]; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js deleted file mode 100644 index 8c92d2cd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkNullableObject = exports.checkNullable = void 0; -const codegen_1 = require("../../compile/codegen"); -function checkNullable({ gen, data, parentSchema }, cond = codegen_1.nil) { - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.let(valid, (0, codegen_1._) `${data} === null`); - cond = (0, codegen_1.not)(valid); - } - else { - gen.let(valid, false); - } - return [valid, cond]; -} -exports.checkNullable = checkNullable; -function checkNullableObject(cxt, cond) { - const [valid, cond_] = checkNullable(cxt, cond); - return [valid, (0, codegen_1._) `${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`]; -} -exports.checkNullableObject = checkNullableObject; -//# sourceMappingURL=nullable.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map deleted file mode 100644 index 7d7a3f19..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/nullable.ts"],"names":[],"mappings":";;;AACA,mDAA6D;AAE7D,SAAgB,aAAa,CAC3B,EAAC,GAAG,EAAE,IAAI,EAAE,YAAY,EAAa,EACrC,OAAa,aAAG;IAEhB,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;QAC1B,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,CAAC,CAAA;QACnC,IAAI,GAAG,IAAA,aAAG,EAAC,KAAK,CAAC,CAAA;IACnB,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IACvB,CAAC;IACD,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAZD,sCAYC;AAED,SAAgB,mBAAmB,CAAC,GAAe,EAAE,IAAU;IAC7D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC/C,OAAO,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,KAAK,cAAc,GAAG,CAAC,IAAI,kCAAkC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAA;AAC9F,CAAC;AAHD,kDAGC"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js deleted file mode 100644 index fe272758..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const properties_1 = require("./properties"); -const def = { - keyword: "optionalProperties", - schemaType: "object", - error: properties_1.error, - code(cxt) { - if (cxt.parentSchema.properties) - return; - (0, properties_1.validateProperties)(cxt); - }, -}; -exports.default = def; -//# sourceMappingURL=optionalProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map deleted file mode 100644 index 21e5f0d4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/optionalProperties.ts"],"names":[],"mappings":";;AAEA,6CAAsD;AAEtD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,oBAAoB;IAC7B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,kBAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAI,GAAG,CAAC,YAAY,CAAC,UAAU;YAAE,OAAM;QACvC,IAAA,+BAAkB,EAAC,GAAG,CAAC,CAAA;IACzB,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts deleted file mode 100644 index 54e3b347..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { _JTDTypeError } from "./error"; -declare enum PropError { - Additional = "additional", - Missing = "missing" -} -type PropKeyword = "properties" | "optionalProperties"; -type PropSchema = { - [P in string]?: SchemaObject; -}; -export type JTDPropertiesError = _JTDTypeError | ErrorObject | ErrorObject; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validateProperties(cxt: KeywordCxt): void; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js deleted file mode 100644 index f4e9de45..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js +++ /dev/null @@ -1,149 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateProperties = exports.error = void 0; -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -var PropError; -(function (PropError) { - PropError["Additional"] = "additional"; - PropError["Missing"] = "missing"; -})(PropError || (PropError = {})); -exports.error = { - message: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? (0, codegen_1._) `{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : (0, codegen_1._) `{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "properties", - schemaType: "object", - error: exports.error, - code: validateProperties, -}; -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } -function validateProperties(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, parentSchema, it } = cxt; - const { additionalProperties, nullable } = parentSchema; - if (it.jtdDiscriminator && nullable) - throw new Error("JTD: nullable inside discriminator mapping"); - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members"); - } - const [allProps, properties] = schemaProperties("properties"); - const [allOptProps, optProperties] = schemaProperties("optionalProperties"); - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return; - } - const [valid, cond] = it.jtdDiscriminator === undefined - ? (0, nullable_1.checkNullableObject)(cxt, data) - : [gen.let("valid", false), true]; - gen.if(cond, () => gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true); - validateProps(optProperties, "optionalProperties"); - if (!additionalProperties) - validateAdditional(); - })); - cxt.pass(valid); - function commonProperties() { - const props = parentSchema.properties; - const optProps = parentSchema.optionalProperties; - if (!(props && optProps)) - return false; - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) - return true; - } - return false; - } - function schemaProperties(keyword) { - const schema = parentSchema[keyword]; - const allPs = schema ? (0, code_1.allSchemaProperties)(schema) : []; - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`); - } - const ps = allPs.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - return [allPs, ps]; - } - function validateProps(props, keyword, required) { - const _valid = gen.var("valid"); - for (const prop of props) { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => applyPropertySchema(prop, keyword, _valid), () => missingProperty(prop)); - cxt.ok(_valid); - } - function missingProperty(prop) { - if (required) { - gen.assign(_valid, false); - cxt.error(false, { propError: PropError.Missing, missingProperty: prop }, { schemaPath: prop }); - } - else { - gen.assign(_valid, true); - } - } - } - function applyPropertySchema(prop, keyword, _valid) { - cxt.subschema({ - keyword, - schemaProp: prop, - dataProp: prop, - }, _valid); - } - function validateAdditional() { - gen.forIn("key", data, (key) => { - const addProp = isAdditional(key, allProps, "properties", it.jtdDiscriminator); - const addOptProp = isAdditional(key, allOptProps, "optionalProperties"); - const extra = addProp === true ? addOptProp : addOptProp === true ? addProp : (0, codegen_1.and)(addProp, addOptProp); - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - else { - cxt.error(false, { propError: PropError.Additional, additionalProperty: key }, { instancePath: key, parentSchema: true }); - if (!it.opts.allErrors) - gen.break(); - } - }); - }); - } - function isAdditional(key, props, keyword, jtdDiscriminator) { - let additional; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema[keyword], keyword); - additional = (0, codegen_1.not)((0, code_1.isOwnProperty)(gen, propsSchema, key)); - if (jtdDiscriminator !== undefined) { - additional = (0, codegen_1.and)(additional, (0, codegen_1._) `${key} !== ${jtdDiscriminator}`); - } - } - else if (props.length || jtdDiscriminator !== undefined) { - const ps = jtdDiscriminator === undefined ? props : [jtdDiscriminator].concat(props); - additional = (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)); - } - else { - additional = true; - } - return additional; - } -} -exports.validateProperties = validateProperties; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map deleted file mode 100644 index 184111e0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/properties.ts"],"names":[],"mappings":";;;AAOA,kCAA0E;AAC1E,6CAAoE;AACpE,mDAA6D;AAC7D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AAExE,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,sCAAyB,CAAA;IACzB,gCAAmB,CAAA;AACrB,CAAC,EAHI,SAAS,KAAT,SAAS,QAGb;AAWY,QAAA,KAAK,GAA2B;IAC3C,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,MAAM,EAAC,MAAM,EAAC,GAAG,GAAG,CAAA;QACpB,OAAO,MAAM,CAAC,SAAS;YACrB,CAAC,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,UAAU;gBACzC,CAAC,CAAC,qCAAqC;gBACvC,CAAC,CAAC,uBAAuB,MAAM,CAAC,eAAe,GAAG;YACpD,CAAC,CAAC,IAAA,wBAAgB,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IACrC,CAAC;IACD,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE;QACd,MAAM,EAAC,MAAM,EAAC,GAAG,GAAG,CAAA;QACpB,OAAO,MAAM,CAAC,SAAS;YACrB,CAAC,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,UAAU;gBACzC,CAAC,CAAC,IAAA,WAAC,EAAA,WAAW,MAAM,CAAC,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,EACT,KAAe,EACf,OAAe,EACf,gBAAyB;QAEzB,IAAI,UAA0B,CAAA;QAC9B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,gDAAgD;YAChD,MAAM,WAAW,GAAG,IAAA,qBAAc,EAAC,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;YACtE,UAAU,GAAG,IAAA,aAAG,EAAC,IAAA,oBAAa,EAAC,GAAG,EAAE,WAAmB,EAAE,GAAG,CAAC,CAAC,CAAA;YAC9D,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACnC,UAAU,GAAG,IAAA,aAAG,EAAC,UAAU,EAAE,IAAA,WAAC,EAAA,GAAG,GAAG,QAAQ,gBAAgB,EAAE,CAAC,CAAA;YACjE,CAAC;QACH,CAAC;aAAM,IAAI,KAAK,CAAC,MAAM,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;YAC1D,MAAM,EAAE,GAAG,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACpF,UAAU,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAA;QACxD,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAA;QACnB,CAAC;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;AACH,CAAC;AA1HD,gDA0HC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts deleted file mode 100644 index ccdf84c0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, AnySchemaObject } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function hasRef(schema: AnySchemaObject): boolean; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js deleted file mode 100644 index b7c6b02d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hasRef = void 0; -const compile_1 = require("../../compile"); -const codegen_1 = require("../../compile/codegen"); -const ref_error_1 = require("../../compile/ref_error"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const metadata_1 = require("./metadata"); -const def = { - keyword: "ref", - schemaType: "string", - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema: ref, parentSchema, it } = cxt; - const { schemaEnv: { root }, } = it; - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.var(valid, (0, codegen_1._) `${data} === null`); - gen.if((0, codegen_1.not)(valid), validateJtdRef); - } - else { - gen.var(valid, false); - validateJtdRef(); - } - cxt.ok(valid); - function validateJtdRef() { - var _a; - const refSchema = (_a = root.schema.definitions) === null || _a === void 0 ? void 0 : _a[ref]; - if (!refSchema) { - throw new ref_error_1.default(it.opts.uriResolver, "", ref, `No definition ${ref}`); - } - if (hasRef(refSchema) || !it.opts.inlineRefs) - callValidate(refSchema); - else - inlineRefSchema(refSchema); - } - function callValidate(schema) { - const sch = compile_1.compileSchema.call(it.self, new compile_1.SchemaEnv({ schema, root, schemaPath: `/definitions/${ref}` })); - const v = (0, ref_1.getValidate)(cxt, sch); - const errsCount = gen.const("_errs", names_1.default.errors); - (0, ref_1.callRef)(cxt, v, sch, sch.$async); - gen.assign(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - } - function inlineRefSchema(schema) { - const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: (0, codegen_1.stringify)(schema) } : { ref: schema }); - cxt.subschema({ - schema, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, valid); - } - }, -}; -function hasRef(schema) { - for (const key in schema) { - let sch; - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) - return true; - } - return false; -} -exports.hasRef = hasRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map deleted file mode 100644 index c15dbf94..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/ref.ts"],"names":[],"mappings":";;;AAEA,2CAAsD;AACtD,mDAA4D;AAC5D,uDAAqD;AACrD,+CAAmC;AACnC,qCAAgD;AAChD,yCAAwC;AAExC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtD,MAAM,EACJ,SAAS,EAAE,EAAC,IAAI,EAAC,GAClB,GAAG,EAAE,CAAA;QACN,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,IAAI,YAAY,C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GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;YAChC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,SAAS,QAAQ,eAAC,CAAC,MAAM,EAAE,CAAC,CAAA;QACpD,CAAC;QAED,SAAS,eAAe,CAAC,MAAuB;YAC9C,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAC5B,QAAQ,EACR,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAA,mBAAS,EAAC,MAAM,CAAC,EAAC,CAAC,CAAC,CAAC,EAAC,GAAG,EAAE,MAAM,EAAC,CACtF,CAAA;YACD,GAAG,CAAC,SAAS,CACX;gBACE,MAAM;gBACN,SAAS,EAAE,EAAE;gBACb,UAAU,EAAE,aAAG;gBACf,YAAY,EAAE,OAAO;gBACrB,aAAa,EAAE,gBAAgB,GAAG,EAAE;aACrC,EACD,KAAK,CACN,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,SAAgB,MAAM,CAAC,MAAuB;IAC5C,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,IAAI,GAAoB,CAAA;QACxB,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;YAAE,OAAO,IAAI,CAAA;IAC3F,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAND,wBAMC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts deleted file mode 100644 index a115c7da..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -export type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType>; -export type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -export declare const intRange: { - [T in IntType]: [number, number, number]; -}; -export type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js deleted file mode 100644 index 17a0b510..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intRange = void 0; -const codegen_1 = require("../../compile/codegen"); -const timestamp_1 = require("../../runtime/timestamp"); -const util_1 = require("../../compile/util"); -const metadata_1 = require("./metadata"); -const error_1 = require("./error"); -exports.intRange = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -}; -const error = { - message: (cxt) => (0, error_1.typeErrorMessage)(cxt, cxt.schema), - params: (cxt) => (0, error_1.typeErrorParams)(cxt, cxt.schema), -}; -function timestampCode(cxt) { - const { gen, data, it } = cxt; - const { timestamp, allowDate } = it.opts; - if (timestamp === "date") - return (0, codegen_1._) `${data} instanceof Date `; - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const allowDateArg = allowDate ? (0, codegen_1._) `, true` : codegen_1.nil; - const validString = (0, codegen_1._) `typeof ${data} == "string" && ${vts}(${data}${allowDateArg})`; - return timestamp === "string" ? validString : (0, codegen_1.or)((0, codegen_1._) `${data} instanceof Date`, validString); -} -const def = { - keyword: "type", - schemaType: "string", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { data, schema, parentSchema, it } = cxt; - let cond; - switch (schema) { - case "boolean": - case "string": - cond = (0, codegen_1._) `typeof ${data} == ${schema}`; - break; - case "timestamp": { - cond = timestampCode(cxt); - break; - } - case "float32": - case "float64": - cond = (0, codegen_1._) `typeof ${data} == "number"`; - break; - default: { - const sch = schema; - cond = (0, codegen_1._) `typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)`; - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") - cond = (0, codegen_1._) `${cond} && ${data} >= 0`; - } - else { - const [min, max] = exports.intRange[sch]; - cond = (0, codegen_1._) `${cond} && ${data} >= ${min} && ${data} <= ${max}`; - } - } - } - cxt.pass(parentSchema.nullable ? (0, codegen_1.or)((0, codegen_1._) `${data} === null`, cond) : cond); - }, -}; -exports.default = def; -//# sourceMappingURL=type.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map deleted file mode 100644 index cf538ed0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/type.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;AACtD,uDAAoD;AACpD,6CAA0C;AAC1C,yCAAwC;AACxC,mCAAwE;AAM3D,QAAA,QAAQ,GAA+C;IAClE,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACzB,MA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QAAQ,CAAC,CAAC,CAAC,IAAA,YAAE,EAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js deleted file mode 100644 index 01a94399..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in union" }, -}; -exports.default = def; -//# sourceMappingURL=union.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map deleted file mode 100644 index 4d6eb411..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"union.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/union.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts deleted file mode 100644 index 1eaa884a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js deleted file mode 100644 index 3c2c95f5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "values", - schemaType: "object", - error: (0, error_1.typeError)("object"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - if ((0, util_1.alwaysValidSchema)(it, schema)) { - gen.if((0, codegen_1.not)((0, codegen_1.or)(cond, valid)), () => cxt.error()); - } - else { - gen.if(cond); - gen.assign(valid, validateMap()); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - } - cxt.ok(valid); - function validateMap() { - const _valid = gen.name("valid"); - if (it.allErrors) { - const validMap = gen.let("valid", true); - validateValues(() => gen.assign(validMap, false)); - return validMap; - } - gen.var(_valid, true); - validateValues(() => gen.break()); - return _valid; - function validateValues(notValid) { - gen.forIn("key", data, (key) => { - cxt.subschema({ - keyword: "values", - dataProp: key, - dataPropType: util_1.Type.Str, - }, _valid); - gen.if((0, codegen_1.not)(_valid), notValid); - }); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=values.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map deleted file mode 100644 index 8a1a5c23..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/values.ts"],"names":[],"mappings":";;AAEA,6CAA0D;AAC1D,mDAAmD;AACnD,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,QAAQ,CAAC;IAC1B,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,IAAA,8BAAmB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QACpD,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;YAClC,GAAG,CAAC,EAAE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BACD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAA;gBAC/B,CAAC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts deleted file mode 100644 index df9cc07c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -export declare const metadataVocabulary: Vocabulary; -export declare const contentVocabulary: Vocabulary; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js deleted file mode 100644 index f07bf28b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.contentVocabulary = exports.metadataVocabulary = void 0; -exports.metadataVocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -]; -exports.contentVocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -]; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map deleted file mode 100644 index 0d61f083..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../lib/vocabularies/metadata.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAe;IAC5C,OAAO;IACP,aAAa;IACb,SAAS;IACT,YAAY;IACZ,UAAU;IACV,WAAW;IACX,UAAU;CACX,CAAA;AAEY,QAAA,iBAAiB,GAAe;IAC3C,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;CAChB,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.d.ts deleted file mode 100644 index 7fd5c644..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const next: Vocabulary; -export default next; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js deleted file mode 100644 index c861b324..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependentRequired_1 = require("./validation/dependentRequired"); -const dependentSchemas_1 = require("./applicator/dependentSchemas"); -const limitContains_1 = require("./validation/limitContains"); -const next = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default]; -exports.default = next; -//# sourceMappingURL=next.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js.map deleted file mode 100644 index 474a6d4e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/next.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"next.js","sourceRoot":"","sources":["../../lib/vocabularies/next.ts"],"names":[],"mappings":";;AACA,sEAA8D;AAC9D,oEAA4D;AAC5D,8DAAsD;AAEtD,MAAM,IAAI,GAAe,CAAC,2BAAiB,EAAE,0BAAgB,EAAE,uBAAa,CAAC,CAAA;AAE7E,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts deleted file mode 100644 index ec67e63e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const unevaluated: Vocabulary; -export default unevaluated; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js deleted file mode 100644 index 30e31674..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const unevaluatedProperties_1 = require("./unevaluatedProperties"); -const unevaluatedItems_1 = require("./unevaluatedItems"); -const unevaluated = [unevaluatedProperties_1.default, unevaluatedItems_1.default]; -exports.default = unevaluated; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map deleted file mode 100644 index a4872ea4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/index.ts"],"names":[],"mappings":";;AACA,mEAA2D;AAC3D,yDAAiD;AAEjD,MAAM,WAAW,GAAe,CAAC,+BAAqB,EAAE,0BAAgB,CAAC,CAAA;AAEzE,kBAAe,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts deleted file mode 100644 index 06f02392..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js deleted file mode 100644 index 0a0cd3aa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - const items = it.items || 0; - if (items === true) - return; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items }); - cxt.fail((0, codegen_1._) `${len} > ${items}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items}`); - gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items)); - cxt.ok(valid); - } - it.items = true; - function validateItems(valid, from) { - gen.forRange("i", from, len, (i) => { - cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedItems.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map deleted file mode 100644 index b91f86e2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedItems.ts"],"names":[],"mappings":";;AAOA,mDAAuD;AACvD,6CAA0D;AAI1D,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CA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C,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;YAC1D,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts deleted file mode 100644 index ba63f62e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export type UnevaluatedPropertiesError = ErrorObject<"unevaluatedProperties", { - unevaluatedProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js deleted file mode 100644 index ad298499..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const names_1 = require("../../compile/names"); -const error = { - message: "must NOT have unevaluated properties", - params: ({ params }) => (0, codegen_1._) `{unevaluatedProperty: ${params.unevaluatedProperty}}`, -}; -const def = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const { gen, schema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, props } = it; - if (props instanceof codegen_1.Name) { - gen.if((0, codegen_1._) `${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)))); - } - else if (props !== true) { - gen.forIn("key", data, (key) => props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key))); - } - it.props = true; - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function unevaluatedPropCode(key) { - if (schema === false) { - cxt.setParams({ unevaluatedProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (!(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - function unevaluatedDynamic(evaluatedProps, key) { - return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`; - } - function unevaluatedStatic(evaluatedProps, key) { - const ps = []; - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) - ps.push((0, codegen_1._) `${key} !== ${p}`); - } - return (0, codegen_1.and)(...ps); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map deleted file mode 100644 index f83022eb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedProperties.ts"],"names":[],"mappings":";;AAMA,mDAA6D;AAC7D,6CAA0D;AAC1D,+CAA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E,CAAC;gBAC/B,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI;oBAAE,EAAE,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;YAC7D,CAAC;YACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;QACnB,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts deleted file mode 100644 index af91a900..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type ConstError = ErrorObject<"const", { - allowedValue: any; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js deleted file mode 100644 index 9564496a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to constant", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`, -}; -const def = { - keyword: "const", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schemaCode, schema } = cxt; - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); - } - else { - cxt.fail((0, codegen_1._) `${schema} !== ${data}`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=const.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map deleted file mode 100644 index 63cfe60d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/const.ts"],"names":[],"mappings":";;AAEA,mDAAuC;AACvC,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,kBAAkB,UAAU,GAAG;CAC3D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAC,GAAG,GAAG,CAAA;QAClD,IAAI,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,IAAI,QAAQ,CAAC,EAAE,CAAC;YACnD,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,IAAA,cAAO,EAAC,GAAG,EAAE,eAAK,CAAC,IAAI,IAAI,KAAK,UAAU,GAAG,CAAC,CAAA;QACnE,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,QAAQ,IAAI,EAAE,CAAC,CAAA;QACpC,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts deleted file mode 100644 index 00f0d370..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -import { DependenciesErrorParams, PropertyDependencies } from "../applicator/dependencies"; -export type DependentRequiredError = ErrorObject<"dependentRequired", DependenciesErrorParams, PropertyDependencies>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js deleted file mode 100644 index 09e59639..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("../applicator/dependencies"); -const def = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error: dependencies_1.error, - code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentRequired.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map deleted file mode 100644 index c7e88f88..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentRequired.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/dependentRequired.ts"],"names":[],"mappings":";;AACA,6DAKmC;AAQnC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,oBAAK;IACL,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,mCAAoB,EAAC,GAAG,CAAC;CACzC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts deleted file mode 100644 index 6231082f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type EnumError = ErrorObject<"enum", { - allowedValues: any[]; -}, any[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js deleted file mode 100644 index eab6487e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - if (!$data && schema.length === 0) - throw new Error("enum must have non-empty array"); - const useLoop = schema.length >= it.opts.loopEnum; - let eql; - const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default))); - let valid; - if (useLoop || $data) { - valid = gen.let("valid"); - cxt.block$data(valid, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const vSchema = gen.const("vSchema", schemaCode); - valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i))); - } - cxt.pass(valid); - function loopEnum() { - gen.assign(valid, false); - gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())); - } - function equalCode(vSchema, i) { - const sch = schema[i]; - return typeof sch === "object" && sch !== null - ? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])` - : (0, codegen_1._) `${data} === ${sch}`; - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map deleted file mode 100644 index 33afdcf0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/enum.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAA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M,EAAE,IAAI,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAC7E,CAAA;QACH,CAAC;QAED,SAAS,SAAS,CAAC,OAAa,EAAE,CAAS;YACzC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACrB,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;gBAC5C,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,EAAE,IAAI,IAAI,KAAK,OAAO,IAAI,CAAC,IAAI;gBAC3C,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,QAAQ,GAAG,EAAE,CAAA;QAC3B,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.d.ts deleted file mode 100644 index a078be55..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ErrorObject, Vocabulary } from "../../types"; -import { LimitNumberError } from "./limitNumber"; -import { MultipleOfError } from "./multipleOf"; -import { PatternError } from "./pattern"; -import { RequiredError } from "./required"; -import { UniqueItemsError } from "./uniqueItems"; -import { ConstError } from "./const"; -import { EnumError } from "./enum"; -declare const validation: Vocabulary; -export default validation; -type LimitError = ErrorObject<"maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", { - limit: number; -}, number | { - $data: string; -}>; -export type ValidationKeywordError = LimitError | LimitNumberError | MultipleOfError | PatternError | RequiredError | UniqueItemsError | ConstError | EnumError; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js deleted file mode 100644 index 7b56b4e4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const limitNumber_1 = require("./limitNumber"); -const multipleOf_1 = require("./multipleOf"); -const limitLength_1 = require("./limitLength"); -const pattern_1 = require("./pattern"); -const limitProperties_1 = require("./limitProperties"); -const required_1 = require("./required"); -const limitItems_1 = require("./limitItems"); -const uniqueItems_1 = require("./uniqueItems"); -const const_1 = require("./const"); -const enum_1 = require("./enum"); -const validation = [ - // number - limitNumber_1.default, - multipleOf_1.default, - // string - limitLength_1.default, - pattern_1.default, - // object - limitProperties_1.default, - required_1.default, - // array - limitItems_1.default, - uniqueItems_1.default, - // any - { keyword: "type", schemaType: ["string", "array"] }, - { keyword: "nullable", schemaType: "boolean" }, - const_1.default, - enum_1.default, -]; -exports.default = validation; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map deleted file mode 100644 index 69436fb3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/index.ts"],"names":[],"mappings":";;AACA,+CAA2D;AAC3D,6CAAwD;AACxD,+CAAuC;AACvC,uCAA+C;AAC/C,uDAA+C;AAC/C,yCAAkD;AAClD,6CAAqC;AACrC,+CAA2D;AAC3D,mCAAgD;AAChD,iCAA6C;AAE7C,MAAM,UAAU,GAAe;IAC7B,SAAS;IACT,qBAAW;IACX,oBAAU;IACV,SAAS;IACT,qBAAW;IACX,iBAAO;IACP,SAAS;IACT,yBAAe;IACf,kBAAQ;IACR,QAAQ;IACR,oBAAU;IACV,qBAAW;IACX,MAAM;IACN,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC;IAClD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;IAC5C,eAAY;IACZ,cAAW;CACZ,CAAA;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js deleted file mode 100644 index c884dae4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({ keyword, parentSchema, it }) { - if (parentSchema.contains === undefined) { - (0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=limitContains.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map deleted file mode 100644 index 084ee2cd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitContains.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitContains.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACxC,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,iCAAiC,CAAC,CAAA;QACnE,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js deleted file mode 100644 index e1386f88..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxItems" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitItems.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map deleted file mode 100644 index 690c7345..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitItems.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACtD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,QAAQ,CAAA;IAC5D,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;IACjC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAC/D,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACtD,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js deleted file mode 100644 index 6ae5f92e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const ucs2length_1 = require("../../runtime/ucs2length"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxLength" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode, it } = cxt; - const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT; - const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`; - cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitLength.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map deleted file mode 100644 index f09c35e5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitLength.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitLength.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,yDAAiD;AAEjD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACvD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC3C,MAAM,EAAE,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAChE,MAAM,GAAG,GACP,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAA,cAAO,EAAC,GAAG,CAAC,GAAG,EAAE,oBAAU,CAAC,IAAI,IAAI,GAAG,CAAA;QAC7F,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts deleted file mode 100644 index 7b35096d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"; -type Comparison = "<=" | ">=" | "<" | ">"; -export type LimitNumberError = ErrorObject; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js deleted file mode 100644 index a97c0eb9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const ops = codegen_1.operators; -const KWDs = { - maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }, -}; -const error = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`, -}; -const def = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitNumber.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map deleted file mode 100644 index 18a36533..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitNumber.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitNumber.ts"],"names":[],"mappings":";;AAEA,mDAA6D;AAE7D,MAAM,GAAG,GAAG,mBAAS,CAAA;AAMrB,MAAM,IAAI,GAA4D;IACpE,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;IACzD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;CAC1D,CAAA;AAQD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,WAAW,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,IAAI,UAAU,EAAE;IAC5F,MAAM,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAChC,IAAA,WAAC,EAAA,gBAAgB,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,YAAY,UAAU,GAAG;CACvE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,IAAI,IAAI,CAAC,OAAc,CAAC,CAAC,IAAI,IAAI,UAAU,aAAa,IAAI,GAAG,CAAC,CAAA;IACxF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js deleted file mode 100644 index e6fc40cc..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxProperties" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitProperties.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map deleted file mode 100644 index a695943a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitProperties.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QAC3D,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QACpE,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,eAAe,IAAI,YAAY,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts deleted file mode 100644 index 67685dcd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type MultipleOfError = ErrorObject<"multipleOf", { - multipleOf: number; -}, number | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js deleted file mode 100644 index 43cf67b7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`, - params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`, -}; -const def = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { gen, data, schemaCode, it } = cxt; - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision; - const res = gen.let("res"); - const invalid = prec - ? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : (0, codegen_1._) `${res} !== parseInt(${res})`; - cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`); - }, -}; -exports.default = def; -//# sourceMappingURL=multipleOf.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map deleted file mode 100644 index 9ef825b7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/multipleOf.ts"],"names":[],"mappings":";;AAEA,mDAA4C;AAQ5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,EAAE;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,gBAAgB,UAAU,GAAG;CACzD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACvC,sEAAsE;QACtE,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAA;QACxC,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAC1B,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,IAAA,WAAC,EAAA,uBAAuB,GAAG,OAAO,GAAG,UAAU,IAAI,EAAE;YACvD,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,iBAAiB,GAAG,GAAG,CAAA;QAClC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,UAAU,cAAc,GAAG,MAAM,IAAI,IAAI,UAAU,KAAK,OAAO,IAAI,CAAC,CAAA;IACzF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts deleted file mode 100644 index 7edbfda9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type PatternError = ErrorObject<"pattern", { - pattern: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js deleted file mode 100644 index f8ccdf29..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`, -}; -const def = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt) { - const { data, $data, schema, schemaCode, it } = cxt; - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : ""; - const regExp = $data ? (0, codegen_1._) `(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema); - cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=pattern.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map deleted file mode 100644 index 82fa5d74..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/pattern.ts"],"names":[],"mappings":";;AAEA,kCAAkC;AAClC,mDAA4C;AAI5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,GAAG;IAClE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,aAAa,UAAU,GAAG;CACtD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,8CAA8C;QAC9C,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,eAAe,UAAU,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,iBAAU,EAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QACrF,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,MAAM,SAAS,IAAI,GAAG,CAAC,CAAA;IAC5C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts deleted file mode 100644 index c9cffda1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type RequiredError = ErrorObject<"required", { - missingProperty: string; -}, string[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js deleted file mode 100644 index 1d8e2926..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`, - params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`, -}; -const def = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, schema, schemaCode, data, $data, it } = cxt; - const { opts } = it; - if (!$data && schema.length === 0) - return; - const useLoop = schema.length >= opts.loopRequired; - if (it.allErrors) - allErrorsMode(); - else - exitOnErrorMode(); - if (opts.strictRequired) { - const props = cxt.parentSchema.properties; - const { definedProperties } = cxt.it; - for (const requiredKey of schema) { - if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired); - } - } - } - function allErrorsMode() { - if (useLoop || $data) { - cxt.block$data(codegen_1.nil, loopAllRequired); - } - else { - for (const prop of schema) { - (0, code_1.checkReportMissingProp)(cxt, prop); - } - } - } - function exitOnErrorMode() { - const missing = gen.let("missing"); - if (useLoop || $data) { - const valid = gen.let("valid", true); - cxt.block$data(valid, () => loopUntilMissing(missing, valid)); - cxt.ok(valid); - } - else { - gen.if((0, code_1.checkMissingProp)(cxt, schema, missing)); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - function loopAllRequired() { - gen.forOf("prop", schemaCode, (prop) => { - cxt.setParams({ missingProperty: prop }); - gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error()); - }); - } - function loopUntilMissing(missing, valid) { - cxt.setParams({ missingProperty: missing }); - gen.forOf(missing, schemaCode, () => { - gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties)); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(); - gen.break(); - }); - }, codegen_1.nil); - } - }, -}; -exports.default = def; -//# sourceMappingURL=required.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map deleted file mode 100644 index 9ec186fa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"required.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/required.ts"],"names":[],"mappings":";;AAEA,kCAMgB;AAChB,mDAAkE;AAClE,6CAAkD;AAQlD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,eAAe,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,gCAAgC,eAAe,GAAG;IAC/F,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,eAAe,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,qBAAqB,eAAe,GAAG;CAClF,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAC,GAAG,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AE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;gBACzE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;oBACtB,GAAG,CAAC,KAAK,EAAE,CAAA;oBACX,GAAG,CAAC,KAAK,EAAE,CAAA;gBACb,CAAC,CAAC,CAAA;YACJ,CAAC,EACD,aAAG,CACJ,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts deleted file mode 100644 index e7c241b9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export type UniqueItemsError = ErrorObject<"uniqueItems", { - i: number; - j: number; -}, boolean | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js deleted file mode 100644 index cdbecea1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dataType_1 = require("../../compile/validate/dataType"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`, -}; -const def = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt; - if (!$data && !schema) - return; - const valid = gen.let("valid"); - const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : []; - cxt.block$data(valid, validateUniqueItems, (0, codegen_1._) `${schemaCode} === false`); - cxt.ok(valid); - function validateUniqueItems() { - const i = gen.let("i", (0, codegen_1._) `${data}.length`); - const j = gen.let("j"); - cxt.setParams({ i, j }); - gen.assign(valid, true); - gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)); - } - function canOptimize() { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array"); - } - function loopN(i, j) { - const item = gen.name("item"); - const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong); - const indices = gen.const("indices", (0, codegen_1._) `{}`); - gen.for((0, codegen_1._) `;${i}--;`, () => { - gen.let(item, (0, codegen_1._) `${data}[${i}]`); - gen.if(wrongType, (0, codegen_1._) `continue`); - if (itemTypes.length > 1) - gen.if((0, codegen_1._) `typeof ${item} == "string"`, (0, codegen_1._) `${item} += "_"`); - gen - .if((0, codegen_1._) `typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, (0, codegen_1._) `${indices}[${item}]`); - cxt.error(); - gen.assign(valid, false).break(); - }) - .code((0, codegen_1._) `${indices}[${item}] = ${i}`); - }); - } - function loopN2(i, j) { - const eql = (0, util_1.useFunc)(gen, equal_1.default); - const outer = gen.name("outer"); - gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error(); - gen.assign(valid, false).break(outer); - }))); - } - }, -}; -exports.default = def; -//# sourceMappingURL=uniqueItems.js.map \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map deleted file mode 100644 index 46eb7a2a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/uniqueItems.ts"],"names":[],"mappings":";;AAEA,8DAAwF;AACxF,mDAAkD;AAClD,6CAA0C;AAC1C,+CAAuC;AAQvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAC5B,IAAA,aAAG,EAAA,2CAA2C,CAAC,QAAQ,CAAC,iBAAiB;IAC3E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,OAAO,CAAC,QAAQ,CAAC,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACpE,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM;YAAE,OAAM;QAC7B,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAC9B,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,yBAAc,EAAC,YAAY,CAAC,KAAK,CAAC,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GAAG,CAAC,GAAG,CAAC,IAAA,WAAC,EAAA,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CACpC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;gBACnD,GAAG,CAAC,KAAK,EAAE,CAAA;gBACX,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACvC,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2019.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2019.ts deleted file mode 100644 index 3f7194f1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2019.ts +++ /dev/null @@ -1,81 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft7Vocabularies from "./vocabularies/draft7" -import dynamicVocabulary from "./vocabularies/dynamic" -import nextVocabulary from "./vocabularies/next" -import unevaluatedVocabulary from "./vocabularies/unevaluated" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2019 from "./refs/json-schema-2019-09" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema" - -export class Ajv2019 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(dynamicVocabulary) - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - this.addVocabulary(nextVocabulary) - this.addVocabulary(unevaluatedVocabulary) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2019.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2019 -module.exports.Ajv2019 = Ajv2019 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2019 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" -export {default as ValidationError} from "./runtime/validation_error" -export {default as MissingRefError} from "./compile/ref_error" diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2020.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2020.ts deleted file mode 100644 index cfb36af9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/2020.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft2020Vocabularies from "./vocabularies/draft2020" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2020 from "./refs/json-schema-2020-12" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema" - -export class Ajv2020 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - draft2020Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2020.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2020 -module.exports.Ajv2020 = Ajv2020 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2020 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" -export {default as ValidationError} from "./runtime/validation_error" -export {default as MissingRefError} from "./compile/ref_error" diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/ajv.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/ajv.ts deleted file mode 100644 index 8275b93a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/ajv.ts +++ /dev/null @@ -1,70 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore from "./core" -import draft7Vocabularies from "./vocabularies/draft7" -import discriminator from "./vocabularies/discriminator" -import * as draft7MetaSchema from "./refs/json-schema-draft-07.json" - -const META_SUPPORT_DATA = ["/properties"] - -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema" - -export class Ajv extends AjvCore { - _addVocabularies(): void { - super._addVocabularies() - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv -module.exports.Ajv = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - SchemaValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" -export {default as ValidationError} from "./runtime/validation_error" -export {default as MissingRefError} from "./compile/ref_error" diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/code.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/code.ts deleted file mode 100644 index b1770197..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -export abstract class _CodeOrName { - abstract readonly str: string - abstract readonly names: UsedNames - abstract toString(): string - abstract emptyStr(): boolean -} - -export const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i - -export class Name extends _CodeOrName { - readonly str: string - constructor(s: string) { - super() - if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier") - this.str = s - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - return false - } - - get names(): UsedNames { - return {[this.str]: 1} - } -} - -export class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[] - private _str?: string - private _names?: UsedNames - - constructor(code: string | readonly CodeItem[]) { - super() - this._items = typeof code === "string" ? [code] : code - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - if (this._items.length > 1) return false - const item = this._items[0] - return item === "" || item === '""' - } - - get str(): string { - return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, "")) - } - - get names(): UsedNames { - return (this._names ??= this._items.reduce((names: UsedNames, c) => { - if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1 - return names - }, {})) - } -} - -export type CodeItem = Name | string | number | boolean | null - -export type UsedNames = Record - -export type Code = _Code | Name - -export type SafeExpr = Code | number | boolean | null - -export const nil = new _Code("") - -type CodeArg = SafeExpr | string | undefined - -export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code { - const code: CodeItem[] = [strs[0]] - let i = 0 - while (i < args.length) { - addCodeArg(code, args[i]) - code.push(strs[++i]) - } - return new _Code(code) -} - -const plus = new _Code("+") - -export function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code { - const expr: CodeItem[] = [safeStringify(strs[0])] - let i = 0 - while (i < args.length) { - expr.push(plus) - addCodeArg(expr, args[i]) - expr.push(plus, safeStringify(strs[++i])) - } - optimize(expr) - return new _Code(expr) -} - -export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void { - if (arg instanceof _Code) code.push(...arg._items) - else if (arg instanceof Name) code.push(arg) - else code.push(interpolate(arg)) -} - -function optimize(expr: CodeItem[]): void { - let i = 1 - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]) - if (res !== undefined) { - expr.splice(i - 1, 3, res) - continue - } - expr[i++] = "+" - } - i++ - } -} - -function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined { - if (b === '""') return a - if (a === '""') return b - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') return - if (typeof b != "string") return `${a.slice(0, -1)}${b}"` - if (b[0] === '"') return a.slice(0, -1) + b.slice(1) - return - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) return `"${a}${b.slice(1)}` - return -} - -export function strConcat(c1: Code, c2: Code): Code { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}` -} - -// TODO do not allow arrays here -function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x) -} - -export function stringify(x: unknown): Code { - return new _Code(safeStringify(x)) -} - -export function safeStringify(x: unknown): string { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029") -} - -export function getProperty(key: Code | string | number): Code { - return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]` -} - -//Does best effort to format the name properly -export function getEsmExportName(key: Code | string | number): Code { - if (typeof key == "string" && IDENTIFIER.test(key)) { - return new _Code(`${key}`) - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`) -} - -export function regexpCode(rx: RegExp): Code { - return new _Code(rx.toString()) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/index.ts deleted file mode 100644 index 5a6d1ee5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/index.ts +++ /dev/null @@ -1,852 +0,0 @@ -import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from "./scope" -import {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from "./code" -import {Scope, varKinds} from "./scope" - -export {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from "./code" -export {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from "./scope" - -// type for expressions that can be safely inserted in code without quotes -export type SafeExpr = Code | number | boolean | null - -// type that is either Code of function that adds code to CodeGen instance using its methods -export type Block = Code | (() => void) - -export const operators = { - GT: new _Code(">"), - GTE: new _Code(">="), - LT: new _Code("<"), - LTE: new _Code("<="), - EQ: new _Code("==="), - NEQ: new _Code("!=="), - NOT: new _Code("!"), - OR: new _Code("||"), - AND: new _Code("&&"), - ADD: new _Code("+"), -} - -abstract class Node { - abstract readonly names: UsedNames - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - return this - } - - optimizeNames(_names: UsedNames, _constants: Constants): this | undefined { - return this - } - - // get count(): number { - // return 1 - // } -} - -class Def extends Node { - constructor( - private readonly varKind: Name, - private readonly name: Name, - private rhs?: SafeExpr - ) { - super() - } - - render({es5, _n}: CGOptions): string { - const varKind = es5 ? varKinds.var : this.varKind - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}` - return `${varKind} ${this.name}${rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!names[this.name.str]) return - if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - return this.rhs instanceof _CodeOrName ? this.rhs.names : {} - } -} - -class Assign extends Node { - constructor( - readonly lhs: Code, - public rhs: SafeExpr, - private readonly sideEffects?: boolean - ) { - super() - } - - render({_n}: CGOptions): string { - return `${this.lhs} = ${this.rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return - this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - const names = this.lhs instanceof Name ? {} : {...this.lhs.names} - return addExprNames(names, this.rhs) - } -} - -class AssignOp extends Assign { - constructor( - lhs: Code, - private readonly op: Code, - rhs: SafeExpr, - sideEffects?: boolean - ) { - super(lhs, rhs, sideEffects) - } - - render({_n}: CGOptions): string { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n - } -} - -class Label extends Node { - readonly names: UsedNames = {} - constructor(readonly label: Name) { - super() - } - - render({_n}: CGOptions): string { - return `${this.label}:` + _n - } -} - -class Break extends Node { - readonly names: UsedNames = {} - constructor(readonly label?: Code) { - super() - } - - render({_n}: CGOptions): string { - const label = this.label ? ` ${this.label}` : "" - return `break${label};` + _n - } -} - -class Throw extends Node { - constructor(readonly error: Code) { - super() - } - - render({_n}: CGOptions): string { - return `throw ${this.error};` + _n - } - - get names(): UsedNames { - return this.error.names - } -} - -class AnyCode extends Node { - constructor(private code: SafeExpr) { - super() - } - - render({_n}: CGOptions): string { - return `${this.code};` + _n - } - - optimizeNodes(): this | undefined { - return `${this.code}` ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this { - this.code = optimizeExpr(this.code, names, constants) - return this - } - - get names(): UsedNames { - return this.code instanceof _CodeOrName ? this.code.names : {} - } -} - -abstract class ParentNode extends Node { - constructor(readonly nodes: ChildNode[] = []) { - super() - } - - render(opts: CGOptions): string { - return this.nodes.reduce((code, n) => code + n.render(opts), "") - } - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - const n = nodes[i].optimizeNodes() - if (Array.isArray(n)) nodes.splice(i, 1, ...n) - else if (n) nodes[i] = n - else nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i] - if (n.optimizeNames(names, constants)) continue - subtractNames(names, n.names) - nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - get names(): UsedNames { - return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {}) - } - - // get count(): number { - // return this.nodes.reduce((c, n) => c + n.count, 1) - // } -} - -abstract class BlockNode extends ParentNode { - render(opts: CGOptions): string { - return "{" + opts._n + super.render(opts) + "}" + opts._n - } -} - -class Root extends ParentNode {} - -class Else extends BlockNode { - static readonly kind = "else" -} - -class If extends BlockNode { - static readonly kind = "if" - else?: If | Else - constructor( - private condition: Code | boolean, - nodes?: ChildNode[] - ) { - super(nodes) - } - - render(opts: CGOptions): string { - let code = `if(${this.condition})` + super.render(opts) - if (this.else) code += "else " + this.else.render(opts) - return code - } - - optimizeNodes(): If | ChildNode[] | undefined { - super.optimizeNodes() - const cond = this.condition - if (cond === true) return this.nodes // else is ignored here - let e = this.else - if (e) { - const ns = e.optimizeNodes() - e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined) - } - if (e) { - if (cond === false) return e instanceof If ? e : e.nodes - if (this.nodes.length) return this - return new If(not(cond), e instanceof If ? [e] : e.nodes) - } - if (cond === false || !this.nodes.length) return undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - this.else = this.else?.optimizeNames(names, constants) - if (!(super.optimizeNames(names, constants) || this.else)) return - this.condition = optimizeExpr(this.condition, names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - addExprNames(names, this.condition) - if (this.else) addNames(names, this.else.names) - return names - } - - // get count(): number { - // return super.count + (this.else?.count || 0) - // } -} - -abstract class For extends BlockNode { - static readonly kind = "for" -} - -class ForLoop extends For { - constructor(private iteration: Code) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.iteration})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iteration = optimizeExpr(this.iteration, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iteration.names) - } -} - -class ForRange extends For { - constructor( - private readonly varKind: Name, - private readonly name: Name, - private readonly from: SafeExpr, - private readonly to: SafeExpr - ) { - super() - } - - render(opts: CGOptions): string { - const varKind = opts.es5 ? varKinds.var : this.varKind - const {name, from, to} = this - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts) - } - - get names(): UsedNames { - const names = addExprNames(super.names, this.from) - return addExprNames(names, this.to) - } -} - -class ForIter extends For { - constructor( - private readonly loop: "of" | "in", - private readonly varKind: Name, - private readonly name: Name, - private iterable: Code - ) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iterable = optimizeExpr(this.iterable, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iterable.names) - } -} - -class Func extends BlockNode { - static readonly kind = "func" - constructor( - public name: Name, - public args: Code, - public async?: boolean - ) { - super() - } - - render(opts: CGOptions): string { - const _async = this.async ? "async " : "" - return `${_async}function ${this.name}(${this.args})` + super.render(opts) - } -} - -class Return extends ParentNode { - static readonly kind = "return" - - render(opts: CGOptions): string { - return "return " + super.render(opts) - } -} - -class Try extends BlockNode { - catch?: Catch - finally?: Finally - - render(opts: CGOptions): string { - let code = "try" + super.render(opts) - if (this.catch) code += this.catch.render(opts) - if (this.finally) code += this.finally.render(opts) - return code - } - - optimizeNodes(): this { - super.optimizeNodes() - this.catch?.optimizeNodes() as Catch | undefined - this.finally?.optimizeNodes() as Finally | undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this { - super.optimizeNames(names, constants) - this.catch?.optimizeNames(names, constants) - this.finally?.optimizeNames(names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - if (this.catch) addNames(names, this.catch.names) - if (this.finally) addNames(names, this.finally.names) - return names - } - - // get count(): number { - // return super.count + (this.catch?.count || 0) + (this.finally?.count || 0) - // } -} - -class Catch extends BlockNode { - static readonly kind = "catch" - constructor(readonly error: Name) { - super() - } - - render(opts: CGOptions): string { - return `catch(${this.error})` + super.render(opts) - } -} - -class Finally extends BlockNode { - static readonly kind = "finally" - render(opts: CGOptions): string { - return "finally" + super.render(opts) - } -} - -type StartBlockNode = If | For | Func | Return | Try - -type LeafNode = Def | Assign | Label | Break | Throw | AnyCode - -type ChildNode = StartBlockNode | LeafNode - -type EndBlockNodeType = - | typeof If - | typeof Else - | typeof For - | typeof Func - | typeof Return - | typeof Catch - | typeof Finally - -type Constants = Record - -export interface CodeGenOptions { - es5?: boolean - lines?: boolean - ownProperties?: boolean -} - -interface CGOptions extends CodeGenOptions { - _n: "\n" | "" -} - -export class CodeGen { - readonly _scope: Scope - readonly _extScope: ValueScope - readonly _values: ScopeValueSets = {} - private readonly _nodes: ParentNode[] - private readonly _blockStarts: number[] = [] - private readonly _constants: Constants = {} - private readonly opts: CGOptions - - constructor(extScope: ValueScope, opts: CodeGenOptions = {}) { - this.opts = {...opts, _n: opts.lines ? "\n" : ""} - this._extScope = extScope - this._scope = new Scope({parent: extScope}) - this._nodes = [new Root()] - } - - toString(): string { - return this._root.render(this.opts) - } - - // returns unique name in the internal scope - name(prefix: string): Name { - return this._scope.name(prefix) - } - - // reserves unique name in the external scope - scopeName(prefix: string): ValueScopeName { - return this._extScope.name(prefix) - } - - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name { - const name = this._extScope.value(prefixOrName, value) - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()) - vs.add(name) - return name - } - - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - return this._extScope.getValue(prefix, keyOrRef) - } - - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName: Name): Code { - return this._extScope.scopeRefs(scopeName, this._values) - } - - scopeCode(): Code { - return this._extScope.scopeCode(this._values) - } - - private _def( - varKind: Name, - nameOrPrefix: Name | string, - rhs?: SafeExpr, - constant?: boolean - ): Name { - const name = this._scope.toName(nameOrPrefix) - if (rhs !== undefined && constant) this._constants[name.str] = rhs - this._leafNode(new Def(varKind, name, rhs)) - return name - } - - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.const, nameOrPrefix, rhs, _constant) - } - - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.let, nameOrPrefix, rhs, _constant) - } - - // `var` declaration with optional assignment - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.var, nameOrPrefix, rhs, _constant) - } - - // assignment code - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen { - return this._leafNode(new Assign(lhs, rhs, sideEffects)) - } - - // `+=` code - add(lhs: Code, rhs: SafeExpr): CodeGen { - return this._leafNode(new AssignOp(lhs, operators.ADD, rhs)) - } - - // appends passed SafeExpr to code or executes Block - code(c: Block | SafeExpr): CodeGen { - if (typeof c == "function") c() - else if (c !== nil) this._leafNode(new AnyCode(c)) - return this - } - - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues: [Name | string, SafeExpr | string][]): _Code { - const code: CodeItem[] = ["{"] - for (const [key, value] of keyValues) { - if (code.length > 1) code.push(",") - code.push(key) - if (key !== value || this.opts.es5) { - code.push(":") - addCodeArg(code, value) - } - } - code.push("}") - return new _Code(code) - } - - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen { - this._blockNode(new If(condition)) - - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf() - } else if (thenBody) { - this.code(thenBody).endIf() - } else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body') - } - return this - } - - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition: Code | boolean): CodeGen { - return this._elseNode(new If(condition)) - } - - // `else` clause - only valid after `if` or `else if` clauses - else(): CodeGen { - return this._elseNode(new Else()) - } - - // end `if` statement (needed if gen.if was used only with condition) - endIf(): CodeGen { - return this._endBlockNode(If, Else) - } - - private _for(node: For, forBody?: Block): CodeGen { - this._blockNode(node) - if (forBody) this.code(forBody).endFor() - return this - } - - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration: Code, forBody?: Block): CodeGen { - return this._for(new ForLoop(iteration), forBody) - } - - // `for` statement for a range of values - forRange( - nameOrPrefix: Name | string, - from: SafeExpr, - to: SafeExpr, - forBody: (index: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)) - } - - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf( - nameOrPrefix: Name | string, - iterable: Code, - forBody: (item: Name) => void, - varKind: Code = varKinds.const - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - if (this.opts.es5) { - const arr = iterable instanceof Name ? iterable : this.var("_arr", iterable) - return this.forRange("_i", 0, _`${arr}.length`, (i) => { - this.var(name, _`${arr}[${i}]`) - forBody(name) - }) - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)) - } - - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn( - nameOrPrefix: Name | string, - obj: Code, - forBody: (item: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const - ): CodeGen { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody) - } - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)) - } - - // end `for` loop - endFor(): CodeGen { - return this._endBlockNode(For) - } - - // `label` statement - label(label: Name): CodeGen { - return this._leafNode(new Label(label)) - } - - // `break` statement - break(label?: Code): CodeGen { - return this._leafNode(new Break(label)) - } - - // `return` statement - return(value: Block | SafeExpr): CodeGen { - const node = new Return() - this._blockNode(node) - this.code(value) - if (node.nodes.length !== 1) throw new Error('CodeGen: "return" should have one node') - return this._endBlockNode(Return) - } - - // `try` statement - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen { - if (!catchCode && !finallyCode) throw new Error('CodeGen: "try" without "catch" and "finally"') - const node = new Try() - this._blockNode(node) - this.code(tryBody) - if (catchCode) { - const error = this.name("e") - this._currNode = node.catch = new Catch(error) - catchCode(error) - } - if (finallyCode) { - this._currNode = node.finally = new Finally() - this.code(finallyCode) - } - return this._endBlockNode(Catch, Finally) - } - - // `throw` statement - throw(error: Code): CodeGen { - return this._leafNode(new Throw(error)) - } - - // start self-balancing block - block(body?: Block, nodeCount?: number): CodeGen { - this._blockStarts.push(this._nodes.length) - if (body) this.code(body).endBlock(nodeCount) - return this - } - - // end the current self-balancing block - endBlock(nodeCount?: number): CodeGen { - const len = this._blockStarts.pop() - if (len === undefined) throw new Error("CodeGen: not in self-balancing block") - const toClose = this._nodes.length - len - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`) - } - this._nodes.length = len - return this - } - - // `function` heading (or definition if funcBody is passed) - func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen { - this._blockNode(new Func(name, args, async)) - if (funcBody) this.code(funcBody).endFunc() - return this - } - - // end function definition - endFunc(): CodeGen { - return this._endBlockNode(Func) - } - - optimize(n = 1): void { - while (n-- > 0) { - this._root.optimizeNodes() - this._root.optimizeNames(this._root.names, this._constants) - } - } - - private _leafNode(node: LeafNode): CodeGen { - this._currNode.nodes.push(node) - return this - } - - private _blockNode(node: StartBlockNode): void { - this._currNode.nodes.push(node) - this._nodes.push(node) - } - - private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen { - const n = this._currNode - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop() - return this - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`) - } - - private _elseNode(node: If | Else): CodeGen { - const n = this._currNode - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"') - } - this._currNode = n.else = node - return this - } - - private get _root(): Root { - return this._nodes[0] as Root - } - - private get _currNode(): ParentNode { - const ns = this._nodes - return ns[ns.length - 1] - } - - private set _currNode(node: ParentNode) { - const ns = this._nodes - ns[ns.length - 1] = node - } - - // get nodeCount(): number { - // return this._root.count - // } -} - -function addNames(names: UsedNames, from: UsedNames): UsedNames { - for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0) - return names -} - -function addExprNames(names: UsedNames, from: SafeExpr): UsedNames { - return from instanceof _CodeOrName ? addNames(names, from.names) : names -} - -function optimizeExpr(expr: T, names: UsedNames, constants: Constants): T -function optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr { - if (expr instanceof Name) return replaceName(expr) - if (!canOptimize(expr)) return expr - return new _Code( - expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => { - if (c instanceof Name) c = replaceName(c) - if (c instanceof _Code) items.push(...c._items) - else items.push(c) - return items - }, []) - ) - - function replaceName(n: Name): SafeExpr { - const c = constants[n.str] - if (c === undefined || names[n.str] !== 1) return n - delete names[n.str] - return c - } - - function canOptimize(e: SafeExpr): e is _Code { - return ( - e instanceof _Code && - e._items.some( - (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined - ) - ) - } -} - -function subtractNames(names: UsedNames, from: UsedNames): void { - for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0) -} - -export function not(x: T): T -export function not(x: Code | SafeExpr): Code | SafeExpr { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : _`!${par(x)}` -} - -const andCode = mappend(operators.AND) - -// boolean AND (&&) expression with the passed arguments -export function and(...args: Code[]): Code { - return args.reduce(andCode) -} - -const orCode = mappend(operators.OR) - -// boolean OR (||) expression with the passed arguments -export function or(...args: Code[]): Code { - return args.reduce(orCode) -} - -type MAppend = (x: Code, y: Code) => Code - -function mappend(op: Code): MAppend { - return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`) -} - -function par(x: Code): Code { - return x instanceof Name ? x : _`(${x})` -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/scope.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/scope.ts deleted file mode 100644 index 51199229..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/codegen/scope.ts +++ /dev/null @@ -1,215 +0,0 @@ -import {_, nil, Code, Name} from "./code" - -interface NameGroup { - prefix: string - index: number -} - -export interface NameValue { - ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure - key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used - code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`) -} - -export type ValueReference = unknown // possibly make CodeGen parameterized type on this type - -class ValueError extends Error { - readonly value?: NameValue - constructor(name: ValueScopeName) { - super(`CodeGen: "code" for ${name} not defined`) - this.value = name.value - } -} - -interface ScopeOptions { - prefixes?: Set - parent?: Scope -} - -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore - es5?: boolean - lines?: boolean -} - -export type ScopeStore = Record - -type ScopeValues = { - [Prefix in string]?: Map -} - -export type ScopeValueSets = { - [Prefix in string]?: Set -} - -export enum UsedValueState { - Started, - Completed, -} - -export type UsedScopeValues = { - [Prefix in string]?: Map -} - -export const varKinds = { - const: new Name("const"), - let: new Name("let"), - var: new Name("var"), -} - -export class Scope { - protected readonly _names: {[Prefix in string]?: NameGroup} = {} - protected readonly _prefixes?: Set - protected readonly _parent?: Scope - - constructor({prefixes, parent}: ScopeOptions = {}) { - this._prefixes = prefixes - this._parent = parent - } - - toName(nameOrPrefix: Name | string): Name { - return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix) - } - - name(prefix: string): Name { - return new Name(this._newName(prefix)) - } - - protected _newName(prefix: string): string { - const ng = this._names[prefix] || this._nameGroup(prefix) - return `${prefix}${ng.index++}` - } - - private _nameGroup(prefix: string): NameGroup { - if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`) - } - return (this._names[prefix] = {prefix, index: 0}) - } -} - -interface ScopePath { - property: string - itemIndex: number -} - -export class ValueScopeName extends Name { - readonly prefix: string - value?: NameValue - scopePath?: Code - - constructor(prefix: string, nameStr: string) { - super(nameStr) - this.prefix = prefix - } - - setValue(value: NameValue, {property, itemIndex}: ScopePath): void { - this.value = value - this.scopePath = _`.${new Name(property)}[${itemIndex}]` - } -} - -interface VSOptions extends ValueScopeOptions { - _n: Code -} - -const line = _`\n` - -export class ValueScope extends Scope { - protected readonly _values: ScopeValues = {} - protected readonly _scope: ScopeStore - readonly opts: VSOptions - - constructor(opts: ValueScopeOptions) { - super(opts) - this._scope = opts.scope - this.opts = {...opts, _n: opts.lines ? line : nil} - } - - get(): ScopeStore { - return this._scope - } - - name(prefix: string): ValueScopeName { - return new ValueScopeName(prefix, this._newName(prefix)) - } - - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName { - if (value.ref === undefined) throw new Error("CodeGen: ref must be passed in value") - const name = this.toName(nameOrPrefix) as ValueScopeName - const {prefix} = name - const valueKey = value.key ?? value.ref - let vs = this._values[prefix] - if (vs) { - const _name = vs.get(valueKey) - if (_name) return _name - } else { - vs = this._values[prefix] = new Map() - } - vs.set(valueKey, name) - - const s = this._scope[prefix] || (this._scope[prefix] = []) - const itemIndex = s.length - s[itemIndex] = value.ref - name.setValue(value, {property: prefix, itemIndex}) - return name - } - - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - const vs = this._values[prefix] - if (!vs) return - return vs.get(keyOrRef) - } - - scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code { - return this._reduceValues(values, (name: ValueScopeName) => { - if (name.scopePath === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return _`${scopeName}${name.scopePath}` - }) - } - - scopeCode( - values: ScopeValues | ScopeValueSets = this._values, - usedValues?: UsedScopeValues, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - return this._reduceValues( - values, - (name: ValueScopeName) => { - if (name.value === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return name.value.code - }, - usedValues, - getCode - ) - } - - private _reduceValues( - values: ScopeValues | ScopeValueSets, - valueCode: (n: ValueScopeName) => Code | undefined, - usedValues: UsedScopeValues = {}, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - let code: Code = nil - for (const prefix in values) { - const vs = values[prefix] - if (!vs) continue - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()) - vs.forEach((name: ValueScopeName) => { - if (nameSet.has(name)) return - nameSet.set(name, UsedValueState.Started) - let c = valueCode(name) - if (c) { - const def = this.opts.es5 ? varKinds.var : varKinds.const - code = _`${code}${def} ${name} = ${c};${this.opts._n}` - } else if ((c = getCode?.(name))) { - code = _`${code}${c}${this.opts._n}` - } else { - throw new ValueError(name) - } - nameSet.set(name, UsedValueState.Completed) - }) - } - return code - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/errors.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/errors.ts deleted file mode 100644 index 18424a0f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/errors.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type {KeywordErrorCxt, KeywordErrorDefinition} from "../types" -import type {SchemaCxt} from "./index" -import {CodeGen, _, str, strConcat, Code, Name} from "./codegen" -import {SafeExpr} from "./codegen/code" -import {getErrorPath, Type} from "./util" -import N from "./names" - -export const keywordError: KeywordErrorDefinition = { - message: ({keyword}) => str`must pass "${keyword}" keyword validation`, -} - -export const keyword$DataError: KeywordErrorDefinition = { - message: ({keyword, schemaType}) => - schemaType - ? str`"${keyword}" keyword must be ${schemaType} ($data)` - : str`"${keyword}" keyword is invalid ($data)`, -} - -export interface ErrorPaths { - instancePath?: Code - schemaPath?: string - parentSchema?: boolean -} - -export function reportError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths, - overrideAllErrors?: boolean -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - if (overrideAllErrors ?? (compositeRule || allErrors)) { - addError(gen, errObj) - } else { - returnErrors(it, _`[${errObj}]`) - } -} - -export function reportExtraError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - addError(gen, errObj) - if (!(compositeRule || allErrors)) { - returnErrors(it, N.vErrors) - } -} - -export function resetErrorsCount(gen: CodeGen, errsCount: Name): void { - gen.assign(N.errors, errsCount) - gen.if(_`${N.vErrors} !== null`, () => - gen.if( - errsCount, - () => gen.assign(_`${N.vErrors}.length`, errsCount), - () => gen.assign(N.vErrors, null) - ) - ) -} - -export function extendErrors({ - gen, - keyword, - schemaValue, - data, - errsCount, - it, -}: KeywordErrorCxt): void { - /* istanbul ignore if */ - if (errsCount === undefined) throw new Error("ajv implementation error") - const err = gen.name("err") - gen.forRange("i", errsCount, N.errors, (i) => { - gen.const(err, _`${N.vErrors}[${i}]`) - gen.if(_`${err}.instancePath === undefined`, () => - gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath)) - ) - gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`) - if (it.opts.verbose) { - gen.assign(_`${err}.schema`, schemaValue) - gen.assign(_`${err}.data`, data) - } - }) -} - -function addError(gen: CodeGen, errObj: Code): void { - const err = gen.const("err", errObj) - gen.if( - _`${N.vErrors} === null`, - () => gen.assign(N.vErrors, _`[${err}]`), - _`${N.vErrors}.push(${err})` - ) - gen.code(_`${N.errors}++`) -} - -function returnErrors(it: SchemaCxt, errs: Code): void { - const {gen, validateName, schemaEnv} = it - if (schemaEnv.$async) { - gen.throw(_`new ${it.ValidationError as Name}(${errs})`) - } else { - gen.assign(_`${validateName}.errors`, errs) - gen.return(false) - } -} - -const E = { - keyword: new Name("keyword"), - schemaPath: new Name("schemaPath"), // also used in JTD errors - params: new Name("params"), - propertyName: new Name("propertyName"), - message: new Name("message"), - schema: new Name("schema"), - parentSchema: new Name("parentSchema"), -} - -function errorObjectCode( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths?: ErrorPaths -): Code { - const {createErrors} = cxt.it - if (createErrors === false) return _`{}` - return errorObject(cxt, error, errorPaths) -} - -function errorObject( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths: ErrorPaths = {} -): Code { - const {gen, it} = cxt - const keyValues: [Name, SafeExpr | string][] = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ] - extraErrorProps(cxt, error, keyValues) - return gen.object(...keyValues) -} - -function errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] { - const instPath = instancePath - ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}` - : errorPath - return [N.instancePath, strConcat(N.instancePath, instPath)] -} - -function errorSchemaPath( - {keyword, it: {errSchemaPath}}: KeywordErrorCxt, - {schemaPath, parentSchema}: ErrorPaths -): [Name, string | Code] { - let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}` - if (schemaPath) { - schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}` - } - return [E.schemaPath, schPath] -} - -function extraErrorProps( - cxt: KeywordErrorCxt, - {params, message}: KeywordErrorDefinition, - keyValues: [Name, SafeExpr | string][] -): void { - const {keyword, data, schemaValue, it} = cxt - const {opts, propertyName, topSchemaRef, schemaPath} = it - keyValues.push( - [E.keyword, keyword], - [E.params, typeof params == "function" ? params(cxt) : params || _`{}`] - ) - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]) - } - if (opts.verbose) { - keyValues.push( - [E.schema, schemaValue], - [E.parentSchema, _`${topSchemaRef}${schemaPath}`], - [N.data, data] - ) - } - if (propertyName) keyValues.push([E.propertyName, propertyName]) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/index.ts deleted file mode 100644 index 3dac2699..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/index.ts +++ /dev/null @@ -1,324 +0,0 @@ -import type { - AnySchema, - AnySchemaObject, - AnyValidateFunction, - AsyncValidateFunction, - EvaluatedProperties, - EvaluatedItems, -} from "../types" -import type Ajv from "../core" -import type {InstanceOptions} from "../core" -import {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from "./codegen" -import ValidationError from "../runtime/validation_error" -import N from "./names" -import {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from "./resolve" -import {schemaHasRulesButRef, unescapeFragment} from "./util" -import {validateFunctionCode} from "./validate" -import * as URI from "uri-js" -import {JSONType} from "./rules" - -export type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema -} - -export interface SchemaCxt { - readonly gen: CodeGen - readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error - readonly data: Name // Name with reference to the current part of data instance - readonly parentData: Name // should be used in keywords modifying data - readonly parentDataProperty: Code | number // should be used in keywords modifying data - readonly dataNames: Name[] - readonly dataPathArr: (Code | number)[] - readonly dataLevel: number // the level of the currently validated data, - // it can be used to access both the property names and the data on all levels from the top. - dataTypes: JSONType[] // data types applied to the current part of data instance - definedProperties: Set // set of properties to keep track of for required checks - readonly topSchemaRef: Code - readonly validateName: Name - evaluated?: Name - readonly ValidationError?: Name - readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt - readonly schemaEnv: SchemaEnv - readonly rootId: string - baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\$ref) - readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema - readonly errSchemaPath: string // this is actual string, should not be changed to Code - readonly errorPath: Code - readonly propertyName?: Name - readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword, - // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`). - // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true. - // You only need to use it if you have many steps in your keywords and potentially can define multiple errors. - props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function - items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function - jtdDiscriminator?: string - jtdMetadata?: boolean - readonly createErrors?: boolean - readonly opts: InstanceOptions // Ajv instance option. - readonly self: Ajv // current Ajv instance -} - -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject -} -interface SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root?: SchemaEnv - readonly baseId?: string - readonly schemaPath?: string - readonly localRefs?: LocalRefs - readonly meta?: boolean -} - -export class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root: SchemaEnv - baseId: string // TODO possibly, it should be readonly - schemaPath?: string - localRefs?: LocalRefs - readonly meta?: boolean - readonly $async?: boolean // true if the current schema is asynchronous. - readonly refs: SchemaRefs = {} - readonly dynamicAnchors: {[Ref in string]?: true} = {} - validate?: AnyValidateFunction - validateName?: ValueScopeName - serialize?: (data: unknown) => string - serializeName?: ValueScopeName - parse?: (data: string) => unknown - parseName?: ValueScopeName - - constructor(env: SchemaEnvArgs) { - let schema: AnySchemaObject | undefined - if (typeof env.schema == "object") schema = env.schema - this.schema = env.schema - this.schemaId = env.schemaId - this.root = env.root || this - this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || "$id"]) - this.schemaPath = env.schemaPath - this.localRefs = env.localRefs - this.meta = env.meta - this.$async = schema?.$async - this.refs = {} - } -} - -// let codeSize = 0 -// let nodeCount = 0 - -// Compiles schema in SchemaEnv -export function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - let _ValidationError - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: ValidationError, - code: _`require("ajv/dist/runtime/validation_error").default`, - }) - } - - const validateName = gen.scopeName("validate") - sch.validateName = validateName - - const schemaCxt: SchemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: N.data, - parentData: N.parentData, - parentDataProperty: N.parentDataProperty, - dataNames: [N.data], - dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed? - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue( - "schema", - this.opts.code.source === true - ? {ref: sch.schema, code: stringify(sch.schema)} - : {ref: sch.schema} - ), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: _`""`, - opts: this.opts, - self: this, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - validateFunctionCode(schemaCxt) - gen.optimize(this.opts.code.optimize) - // gen.optimize(1) - const validateCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}` - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch) - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode) - const validate: AnyValidateFunction = makeValidate(this, this.scope.get()) - this.scope.value(validateName, {ref: validate}) - - validate.errors = null - validate.schema = sch.schema - validate.schemaEnv = sch - if (sch.$async) (validate as AsyncValidateFunction).$async = true - if (this.opts.code.source === true) { - validate.source = {validateName, validateCode, scopeValues: gen._values} - } - if (this.opts.unevaluated) { - const {props, items} = schemaCxt - validate.evaluated = { - props: props instanceof Name ? undefined : props, - items: items instanceof Name ? undefined : items, - dynamicProps: props instanceof Name, - dynamicItems: items instanceof Name, - } - if (validate.source) validate.source.evaluated = stringify(validate.evaluated) - } - sch.validate = validate - return sch - } catch (e) { - delete sch.validate - delete sch.validateName - if (sourceCode) this.logger.error("Error compiling schema, function code:", sourceCode) - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e - } finally { - this._compilations.delete(sch) - } -} - -export function resolveRef( - this: Ajv, - root: SchemaEnv, - baseId: string, - ref: string -): AnySchema | SchemaEnv | undefined { - ref = resolveUrl(this.opts.uriResolver, baseId, ref) - const schOrFunc = root.refs[ref] - if (schOrFunc) return schOrFunc - - let _sch = resolve.call(this, root, ref) - if (_sch === undefined) { - const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv - const {schemaId} = this.opts - if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId}) - } - - if (_sch === undefined) return - return (root.refs[ref] = inlineOrCompile.call(this, _sch)) -} - -function inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv { - if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema - return sch.validate ? sch : compileSchema.call(this, sch) -} - -// Index of schema compilation in the currently compiled list -export function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) return sch - } -} - -function sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId -} - -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve( - this: Ajv, - root: SchemaEnv, // information about the root schema for the current schema - ref: string // reference to resolve -): SchemaEnv | undefined { - let sch - while (typeof (sch = this.refs[ref]) == "string") ref = sch - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref) -} - -// Resolve schema, its root and baseId -export function resolveSchema( - this: Ajv, - root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it - ref: string // reference to resolve -): SchemaEnv | undefined { - const p = this.opts.uriResolver.parse(ref) - const refPath = _getFullPath(this.opts.uriResolver, p) - let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined) - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root) - } - - const id = normalizeId(refPath) - const schOrRef = this.refs[id] || this.schemas[id] - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef) - if (typeof sch?.schema !== "object") return - return getJsonPointer.call(this, p, sch) - } - - if (typeof schOrRef?.schema !== "object") return - if (!schOrRef.validate) compileSchema.call(this, schOrRef) - if (id === normalizeId(ref)) { - const {schema} = schOrRef - const {schemaId} = this.opts - const schId = schema[schemaId] - if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - return new SchemaEnv({schema, schemaId, root, baseId}) - } - return getJsonPointer.call(this, p, schOrRef) -} - -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]) - -function getJsonPointer( - this: Ajv, - parsedRef: URI.URIComponents, - {baseId, schema, root}: SchemaEnv -): SchemaEnv | undefined { - if (parsedRef.fragment?.[0] !== "/") return - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") return - const partSchema = schema[unescapeFragment(part)] - if (partSchema === undefined) return - schema = partSchema - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId] - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - } - } - let env: SchemaEnv | undefined - if (typeof schema != "boolean" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) { - const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref) - env = resolveSchema.call(this, root, $ref) - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const {schemaId} = this.opts - env = env || new SchemaEnv({schema, schemaId, root, baseId}) - if (env.schema !== env.root.schema) return env - return undefined -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/parse.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/parse.ts deleted file mode 100644 index a0141c77..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/parse.ts +++ /dev/null @@ -1,411 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, or, nil, not, CodeGen, Code, Name, SafeExpr} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {hasPropFunc} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {intRange, IntType} from "../../vocabularies/jtd/type" -import {parseJson, parseJsonNumber, parseJsonString} from "../../runtime/parseJson" -import {useFunc} from "../util" -import validTimestamp from "../../runtime/timestamp" - -type GenParse = (cxt: ParseCxt) => void - -const genParse: {[F in JTDForm]: GenParse} = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -} - -interface ParseCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code - parseName: Name - char: Name -} - -export default function compileParser( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const parseName = gen.scopeName("parse") - const cxt: ParseCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - parseName, - char: gen.name("c"), - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.parseName = parseName - parserFunction(cxt) - gen.optimize(this.opts.code.optimize) - const parseFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${parseFuncCode}` - const makeParse = new Function(`${N.scope}`, sourceCode) - const parse: (json: string) => unknown = makeParse(this.scope.get()) - this.scope.value(parseName, {ref: parse}) - sch.parse = parse - } catch (e) { - if (sourceCode) this.logger.error("Error compiling parser, function code:", sourceCode) - delete sch.parse - delete sch.parseName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -const undef = _`undefined` - -function parserFunction(cxt: ParseCxt): void { - const {gen, parseName, char} = cxt - gen.func(parseName, _`${N.json}, ${N.jsonPos}, ${N.jsonPart}`, false, () => { - gen.let(N.data) - gen.let(char) - gen.assign(_`${parseName}.message`, undef) - gen.assign(_`${parseName}.position`, undef) - gen.assign(N.jsonPos, _`${N.jsonPos} || 0`) - gen.const(N.jsonLen, _`${N.json}.length`) - parseCode(cxt) - skipWhitespace(cxt) - gen.if(N.jsonPart, () => { - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(N.data) - }) - gen.if(_`${N.jsonPos} === ${N.jsonLen}`, () => gen.return(N.data)) - jsonSyntaxError(cxt) - }) -} - -function parseCode(cxt: ParseCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - if (form) parseNullable(cxt, genParse[form]) - else parseEmpty(cxt) -} - -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)) - -function parseNullable(cxt: ParseCxt, parseForm: GenParse): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return parseForm(cxt) - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)) -} - -function parseElements(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "[") - const ix = gen.let("i", 0) - gen.assign(data, _`[]`) - parseItems(cxt, "]", () => { - const el = gen.let("el") - parseCode({...cxt, schema: schema.elements, data: el}) - gen.assign(_`${data}[${ix}++]`, el) - }) -} - -function parseValues(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)) -} - -function parseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - tryParseItems(cxt, endToken, block) - parseToken(cxt, endToken) -} - -function tryParseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - const {gen} = cxt - gen.for(_`;${N.jsonPos}<${N.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block() - tryParseToken(cxt, ",", () => gen.break(), hasItem) - }) - - function hasItem(): void { - tryParseToken(cxt, endToken, () => {}, jsonSyntaxError) - } -} - -function parseKeyValue(cxt: ParseCxt, schema: SchemaObject): void { - const {gen} = cxt - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - parsePropertyValue(cxt, key, schema) -} - -function parseDiscriminator(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const {discriminator, mapping} = schema - parseToken(cxt, "{") - gen.assign(data, _`{}`) - const startPos = gen.const("pos", N.jsonPos) - const value = gen.let("value") - const tag = gen.let("tag") - tryParseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if( - _`${key} === ${discriminator}`, - () => { - parseString({...cxt, data: tag}) - gen.assign(_`${data}[${key}]`, tag) - gen.break() - }, - () => parseEmpty({...cxt, data: value}) // can be discarded/skipped - ) - }) - gen.assign(N.jsonPos, startPos) - gen.if(_`${tag} === undefined`) - parsingError(cxt, str`discriminator tag not found`) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - parseSchemaProperties({...cxt, schema: mapping[tagValue]}, discriminator) - } - gen.else() - parsingError(cxt, str`discriminator value not in schema`) - gen.endIf() -} - -function parseProperties(cxt: ParseCxt): void { - const {gen, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseSchemaProperties(cxt) -} - -function parseSchemaProperties(cxt: ParseCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties, additionalProperties} = schema - parseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if(false) - parseDefinedProperty(cxt, key, properties) - parseDefinedProperty(cxt, key, optionalProperties) - if (discriminator) { - gen.elseIf(_`${key} === ${discriminator}`) - const tag = gen.let("tag") - parseString({...cxt, data: tag}) // can be discarded, it is already assigned - } - gen.else() - if (additionalProperties) { - parseEmpty({...cxt, data: _`${data}[${key}]`}) - } else { - parsingError(cxt, str`property ${key} not allowed`) - } - gen.endIf() - }) - if (properties) { - const hasProp = hasPropFunc(gen) - const allProps: Code = and( - ...Object.keys(properties).map((p): Code => _`${hasProp}.call(${data}, ${p})`) - ) - gen.if(not(allProps), () => parsingError(cxt, str`missing required properties`)) - } -} - -function parseDefinedProperty(cxt: ParseCxt, key: Name, schemas: SchemaObjectMap = {}): void { - const {gen} = cxt - for (const prop in schemas) { - gen.elseIf(_`${key} === ${prop}`) - parsePropertyValue(cxt, key, schemas[prop] as SchemaObject) - } -} - -function parsePropertyValue(cxt: ParseCxt, key: Name, schema: SchemaObject): void { - parseCode({...cxt, schema, data: _`${cxt.data}[${key}]`}) -} - -function parseType(cxt: ParseCxt): void { - const {gen, schema, data, self} = cxt - switch (schema.type) { - case "boolean": - parseBoolean(cxt) - break - case "string": - parseString(cxt) - break - case "timestamp": { - parseString(cxt) - const vts = useFunc(gen, validTimestamp) - const {allowDate, parseDate} = self.opts - const notValid = allowDate ? _`!${vts}(${data}, true)` : _`!${vts}(${data})` - const fail: Code = parseDate - ? or(notValid, _`(${data} = new Date(${data}), false)`, _`isNaN(${data}.valueOf())`) - : notValid - gen.if(fail, () => parsingError(cxt, str`invalid timestamp`)) - break - } - case "float32": - case "float64": - parseNumber(cxt) - break - default: { - const t = schema.type as IntType - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16) // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if(_`${data} < 0`, () => parsingError(cxt, str`integer out of range`)) - } - } else { - const [min, max, maxDigits] = intRange[t] - parseNumber(cxt, maxDigits) - gen.if(_`${data} < ${min} || ${data} > ${max}`, () => - parsingError(cxt, str`integer out of range`) - ) - } - } - } -} - -function parseString(cxt: ParseCxt): void { - parseToken(cxt, '"') - parseWith(cxt, parseJsonString) -} - -function parseEnum(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const enumSch = schema.enum - parseToken(cxt, '"') - // TODO loopEnum - gen.if(false) - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1) // remove starting quote - gen.elseIf(_`${jsonSlice(valueStr.length)} === ${valueStr}`) - gen.assign(data, str`${value}`) - gen.add(N.jsonPos, valueStr.length) - } - gen.else() - jsonSyntaxError(cxt) - gen.endIf() -} - -function parseNumber(cxt: ParseCxt, maxDigits?: number): void { - const {gen} = cxt - skipWhitespace(cxt) - gen.if( - _`"-0123456789".indexOf(${jsonSlice(1)}) < 0`, - () => jsonSyntaxError(cxt), - () => parseWith(cxt, parseJsonNumber, maxDigits) - ) -} - -function parseBooleanToken(bool: boolean, fail: GenParse): GenParse { - return (cxt) => { - const {gen, data} = cxt - tryParseToken( - cxt, - `${bool}`, - () => fail(cxt), - () => gen.assign(data, bool) - ) - } -} - -function parseRef(cxt: ParseCxt): void { - const {gen, self, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return parseCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileParser.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - partialParse(cxt, getParser(gen, sch), true) -} - -function getParser(gen: CodeGen, sch: SchemaEnv): Code { - return sch.parse - ? gen.scopeValue("parse", {ref: sch.parse}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.parse` -} - -function parseEmpty(cxt: ParseCxt): void { - parseWith(cxt, parseJson) -} - -function parseWith(cxt: ParseCxt, parseFunc: {code: string}, args?: SafeExpr): void { - partialParse(cxt, useFunc(cxt.gen, parseFunc), args) -} - -function partialParse(cxt: ParseCxt, parseFunc: Name, args?: SafeExpr): void { - const {gen, data} = cxt - gen.assign(data, _`${parseFunc}(${N.json}, ${N.jsonPos}${args ? _`, ${args}` : nil})`) - gen.assign(N.jsonPos, _`${parseFunc}.position`) - gen.if(_`${data} === undefined`, () => parsingError(cxt, _`${parseFunc}.message`)) -} - -function parseToken(cxt: ParseCxt, tok: string): void { - tryParseToken(cxt, tok, jsonSyntaxError) -} - -function tryParseToken(cxt: ParseCxt, tok: string, fail: GenParse, success?: GenParse): void { - const {gen} = cxt - const n = tok.length - skipWhitespace(cxt) - gen.if( - _`${jsonSlice(n)} === ${tok}`, - () => { - gen.add(N.jsonPos, n) - success?.(cxt) - }, - () => fail(cxt) - ) -} - -function skipWhitespace({gen, char: c}: ParseCxt): void { - gen.code( - _`while((${c}=${N.json}[${N.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${N.jsonPos}++;` - ) -} - -function jsonSlice(len: number | Name): Code { - return len === 1 - ? _`${N.json}[${N.jsonPos}]` - : _`${N.json}.slice(${N.jsonPos}, ${N.jsonPos}+${len})` -} - -function jsonSyntaxError(cxt: ParseCxt): void { - parsingError(cxt, _`"unexpected token " + ${N.json}[${N.jsonPos}]`) -} - -function parsingError({gen, parseName}: ParseCxt, msg: Code): void { - gen.assign(_`${parseName}.message`, msg) - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(undef) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts deleted file mode 100644 index 1d228826..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts +++ /dev/null @@ -1,266 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, getProperty, CodeGen, Code, Name} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {isOwnProperty} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {useFunc} from "../util" -import quote from "../../runtime/quote" - -const genSerialize: {[F in JTDForm]: (cxt: SerializeCxt) => void} = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -} - -interface SerializeCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code -} - -export default function compileSerializer( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const serializeName = gen.scopeName("serialize") - const cxt: SerializeCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.serializeName = serializeName - gen.func(serializeName, N.data, false, () => { - gen.let(N.json, str``) - serializeCode(cxt) - gen.return(N.json) - }) - gen.optimize(this.opts.code.optimize) - const serializeFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${serializeFuncCode}` - const makeSerialize = new Function(`${N.scope}`, sourceCode) - const serialize: (data: unknown) => string = makeSerialize(this.scope.get()) - this.scope.value(serializeName, {ref: serialize}) - sch.serialize = serialize - } catch (e) { - if (sourceCode) this.logger.error("Error compiling serializer, function code:", sourceCode) - delete sch.serialize - delete sch.serializeName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -function serializeCode(cxt: SerializeCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty) -} - -function serializeNullable(cxt: SerializeCxt, serializeForm: (_cxt: SerializeCxt) => void): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return serializeForm(cxt) - gen.if( - _`${data} === undefined || ${data} === null`, - () => gen.add(N.json, _`"null"`), - () => serializeForm(cxt) - ) -} - -function serializeElements(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`[`) - const first = gen.let("first", true) - gen.forOf("el", data, (el) => { - addComma(cxt, first) - serializeCode({...cxt, schema: schema.elements, data: el}) - }) - gen.add(N.json, str`]`) -} - -function serializeValues(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`{`) - const first = gen.let("first", true) - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)) - gen.add(N.json, str`}`) -} - -function serializeKeyValue(cxt: SerializeCxt, key: Name, schema: SchemaObject, first?: Name): void { - const {gen, data} = cxt - addComma(cxt, first) - serializeString({...cxt, data: key}) - gen.add(N.json, str`:`) - const value = gen.const("value", _`${data}${getProperty(key)}`) - serializeCode({...cxt, schema, data: value}) -} - -function serializeDiscriminator(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - const {discriminator} = schema - gen.add(N.json, str`{${JSON.stringify(discriminator)}:`) - const tag = gen.const("tag", _`${data}${getProperty(discriminator)}`) - serializeString({...cxt, data: tag}) - gen.if(false) - for (const tagValue in schema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - const sch = schema.mapping[tagValue] - serializeSchemaProperties({...cxt, schema: sch}, discriminator) - } - gen.endIf() - gen.add(N.json, str`}`) -} - -function serializeProperties(cxt: SerializeCxt): void { - const {gen} = cxt - gen.add(N.json, str`{`) - serializeSchemaProperties(cxt) - gen.add(N.json, str`}`) -} - -function serializeSchemaProperties(cxt: SerializeCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties} = schema - const props = keys(properties) - const optProps = keys(optionalProperties) - const allProps = allProperties(props.concat(optProps)) - let first = !discriminator - let firstProp: Name | undefined - - for (const key of props) { - if (first) first = false - else gen.add(N.json, str`,`) - serializeProperty(key, properties[key], keyValue(key)) - } - if (first) firstProp = gen.let("first", true) - for (const key of optProps) { - const value = keyValue(key) - gen.if(and(_`${value} !== undefined`, isOwnProperty(gen, data, key)), () => { - addComma(cxt, firstProp) - serializeProperty(key, optionalProperties[key], value) - }) - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => - gen.if(isAdditional(key, allProps), () => serializeKeyValue(cxt, key, {}, firstProp)) - ) - } - - function keys(ps?: SchemaObjectMap): string[] { - return ps ? Object.keys(ps) : [] - } - - function allProperties(ps: string[]): string[] { - if (discriminator) ps.push(discriminator) - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap") - } - return ps - } - - function keyValue(key: string): Name { - return gen.const("value", _`${data}${getProperty(key)}`) - } - - function serializeProperty(key: string, propSchema: SchemaObject, value: Name): void { - gen.add(N.json, str`${JSON.stringify(key)}:`) - serializeCode({...cxt, schema: propSchema, data: value}) - } - - function isAdditional(key: Name, ps: string[]): Code | true { - return ps.length ? and(...ps.map((p) => _`${key} !== ${p}`)) : true - } -} - -function serializeType(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - switch (schema.type) { - case "boolean": - gen.add(N.json, _`${data} ? "true" : "false"`) - break - case "string": - serializeString(cxt) - break - case "timestamp": - gen.if( - _`${data} instanceof Date`, - () => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`), - () => serializeString(cxt) - ) - break - default: - serializeNumber(cxt) - } -} - -function serializeString({gen, data}: SerializeCxt): void { - gen.add(N.json, _`${useFunc(gen, quote)}(${data})`) -} - -function serializeNumber({gen, data}: SerializeCxt): void { - gen.add(N.json, _`"" + ${data}`) -} - -function serializeRef(cxt: SerializeCxt): void { - const {gen, self, data, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return serializeCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileSerializer.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - gen.add(N.json, _`${getSerialize(gen, sch)}(${data})`) -} - -function getSerialize(gen: CodeGen, sch: SchemaEnv): Code { - return sch.serialize - ? gen.scopeValue("serialize", {ref: sch.serialize}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.serialize` -} - -function serializeEmpty({gen, data}: SerializeCxt): void { - gen.add(N.json, _`JSON.stringify(${data})`) -} - -function addComma({gen}: SerializeCxt, first?: Name): void { - if (first) { - gen.if( - first, - () => gen.assign(first, false), - () => gen.add(N.json, str`,`) - ) - } else { - gen.add(N.json, str`,`) - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/types.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/types.ts deleted file mode 100644 index 1258050f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/jtd/types.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {SchemaObject} from "../../types" - -export type SchemaObjectMap = {[Ref in string]?: SchemaObject} - -export const jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -] as const - -export type JTDForm = (typeof jtdForms)[number] diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/names.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/names.ts deleted file mode 100644 index b4b242e1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/names.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {Name} from "./codegen" - -const names = { - // validation function arguments - data: new Name("data"), // data passed to validation function - // args passed from referencing schema - valCxt: new Name("valCxt"), // validation/data context - should not be used directly, it is destructured to the names below - instancePath: new Name("instancePath"), - parentData: new Name("parentData"), - parentDataProperty: new Name("parentDataProperty"), - rootData: new Name("rootData"), // root data - same as the data passed to the first/top validation function - dynamicAnchors: new Name("dynamicAnchors"), // used to support recursiveRef and dynamicRef - // function scoped variables - vErrors: new Name("vErrors"), // null or array of validation errors - errors: new Name("errors"), // counter of validation errors - this: new Name("this"), - // "globals" - self: new Name("self"), - scope: new Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new Name("json"), - jsonPos: new Name("jsonPos"), - jsonLen: new Name("jsonLen"), - jsonPart: new Name("jsonPart"), -} - -export default names diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/ref_error.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/ref_error.ts deleted file mode 100644 index 386bf049..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/ref_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {resolveUrl, normalizeId, getFullPath} from "./resolve" -import type {UriResolver} from "../types" - -export default class MissingRefError extends Error { - readonly missingRef: string - readonly missingSchema: string - - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`) - this.missingRef = resolveUrl(resolver, baseId, ref) - this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef)) - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/resolve.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/resolve.ts deleted file mode 100644 index be283866..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/resolve.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type {AnySchema, AnySchemaObject, UriResolver} from "../types" -import type Ajv from "../ajv" -import type {URIComponents} from "uri-js" -import {eachItem} from "./util" -import * as equal from "fast-deep-equal" -import * as traverse from "json-schema-traverse" - -// the hash of local references inside the schema (created by getSchemaRefs), used for inline resolution -export type LocalRefs = {[Ref in string]?: AnySchemaObject} - -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]) - -export function inlineRef(schema: AnySchema, limit: boolean | number = true): boolean { - if (typeof schema == "boolean") return true - if (limit === true) return !hasRef(schema) - if (!limit) return false - return countKeys(schema) <= limit -} - -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]) - -function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) return true - const sch = schema[key] - if (Array.isArray(sch) && sch.some(hasRef)) return true - if (typeof sch == "object" && hasRef(sch)) return true - } - return false -} - -function countKeys(schema: AnySchemaObject): number { - let count = 0 - for (const key in schema) { - if (key === "$ref") return Infinity - count++ - if (SIMPLE_INLINED.has(key)) continue - if (typeof schema[key] == "object") { - eachItem(schema[key], (sch) => (count += countKeys(sch))) - } - if (count === Infinity) return Infinity - } - return count -} - -export function getFullPath(resolver: UriResolver, id = "", normalize?: boolean): string { - if (normalize !== false) id = normalizeId(id) - const p = resolver.parse(id) - return _getFullPath(resolver, p) -} - -export function _getFullPath(resolver: UriResolver, p: URIComponents): string { - const serialized = resolver.serialize(p) - return serialized.split("#")[0] + "#" -} - -const TRAILING_SLASH_HASH = /#\/?$/ -export function normalizeId(id: string | undefined): string { - return id ? id.replace(TRAILING_SLASH_HASH, "") : "" -} - -export function resolveUrl(resolver: UriResolver, baseId: string, id: string): string { - id = normalizeId(id) - return resolver.resolve(baseId, id) -} - -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i - -export function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs { - if (typeof schema == "boolean") return {} - const {schemaId, uriResolver} = this.opts - const schId = normalizeId(schema[schemaId] || baseId) - const baseIds: {[JsonPtr in string]?: string} = {"": schId} - const pathPrefix = getFullPath(uriResolver, schId, false) - const localRefs: LocalRefs = {} - const schemaRefs: Set = new Set() - - traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) return - const fullPath = pathPrefix + jsonPtr - let innerBaseId = baseIds[parentJsonPtr] - if (typeof sch[schemaId] == "string") innerBaseId = addRef.call(this, sch[schemaId]) - addAnchor.call(this, sch.$anchor) - addAnchor.call(this, sch.$dynamicAnchor) - baseIds[jsonPtr] = innerBaseId - - function addRef(this: Ajv, ref: string): string { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve - ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref) - if (schemaRefs.has(ref)) throw ambiguos(ref) - schemaRefs.add(ref) - let schOrRef = this.refs[ref] - if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef] - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref) - } else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref) - localRefs[ref] = sch - } else { - this.refs[ref] = fullPath - } - } - return ref - } - - function addAnchor(this: Ajv, anchor: unknown): void { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor "${anchor}"`) - addRef.call(this, `#${anchor}`) - } - } - }) - - return localRefs - - function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void { - if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref) - } - - function ambiguos(ref: string): Error { - return new Error(`reference "${ref}" resolves to more than one schema`) - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/rules.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/rules.ts deleted file mode 100644 index 7dbf7ab9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/rules.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type {AddedKeywordDefinition} from "../types" - -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"] as const - -export type JSONType = (typeof _jsonTypes)[number] - -const jsonTypes: Set = new Set(_jsonTypes) - -export function isJSONType(x: unknown): x is JSONType { - return typeof x == "string" && jsonTypes.has(x) -} - -type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined -} - -export interface ValidationRules { - rules: RuleGroup[] - post: RuleGroup - all: {[Key in string]?: boolean | Rule} // rules that have to be validated - keywords: {[Key in string]?: boolean} // all known keywords (superset of "all") - types: ValidationTypes -} - -export interface RuleGroup { - type?: JSONType - rules: Rule[] -} - -// This interface wraps KeywordDefinition because definition can have multiple keywords -export interface Rule { - keyword: string - definition: AddedKeywordDefinition -} - -export function getRules(): ValidationRules { - const groups: Record<"number" | "string" | "array" | "object", RuleGroup> = { - number: {type: "number", rules: []}, - string: {type: "string", rules: []}, - array: {type: "array", rules: []}, - object: {type: "object", rules: []}, - } - return { - types: {...groups, integer: true, boolean: true, null: true}, - rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object], - post: {rules: []}, - all: {}, - keywords: {}, - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/util.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/util.ts deleted file mode 100644 index cefae51c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/util.ts +++ /dev/null @@ -1,213 +0,0 @@ -import type {AnySchema, EvaluatedProperties, EvaluatedItems} from "../types" -import type {SchemaCxt, SchemaObjCxt} from "." -import {_, getProperty, Code, Name, CodeGen} from "./codegen" -import {_Code} from "./codegen/code" -import type {Rule, ValidationRules} from "./rules" - -// TODO refactor to use Set -export function toHash(arr: T[]): {[K in T]?: true} { - const hash: {[K in T]?: true} = {} - for (const item of arr) hash[item] = true - return hash -} - -export function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void { - if (typeof schema == "boolean") return schema - if (Object.keys(schema).length === 0) return true - checkUnknownRules(it, schema) - return !schemaHasRules(schema, it.self.RULES.all) -} - -export function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void { - const {opts, self} = it - if (!opts.strictSchema) return - if (typeof schema === "boolean") return - const rules = self.RULES.keywords - for (const key in schema) { - if (!rules[key]) checkStrictMode(it, `unknown keyword: "${key}"`) - } -} - -export function schemaHasRules( - schema: AnySchema, - rules: {[Key in string]?: boolean | Rule} -): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (rules[key]) return true - return false -} - -export function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (key !== "$ref" && RULES.all[key]) return true - return false -} - -export function schemaRefOrVal( - {topSchemaRef, schemaPath}: SchemaObjCxt, - schema: unknown, - keyword: string, - $data?: string | false -): Code | number | boolean { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") return schema - if (typeof schema == "string") return _`${schema}` - } - return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}` -} - -export function unescapeFragment(str: string): string { - return unescapeJsonPointer(decodeURIComponent(str)) -} - -export function escapeFragment(str: string | number): string { - return encodeURIComponent(escapeJsonPointer(str)) -} - -export function escapeJsonPointer(str: string | number): string { - if (typeof str == "number") return `${str}` - return str.replace(/~/g, "~0").replace(/\//g, "~1") -} - -export function unescapeJsonPointer(str: string): string { - return str.replace(/~1/g, "/").replace(/~0/g, "~") -} - -export function eachItem(xs: T | T[], f: (x: T) => void): void { - if (Array.isArray(xs)) { - for (const x of xs) f(x) - } else { - f(xs) - } -} - -type SomeEvaluated = EvaluatedProperties | EvaluatedItems - -type MergeEvaluatedFunc = ( - gen: CodeGen, - from: Name | T, - to: Name | Exclude | undefined, - toName?: typeof Name -) => Name | T - -interface MakeMergeFuncArgs { - mergeNames: (gen: CodeGen, from: Name, to: Name) => void - mergeToName: (gen: CodeGen, from: T, to: Name) => void - mergeValues: (from: T, to: Exclude) => T - resultToName: (gen: CodeGen, res?: T) => Name -} - -function makeMergeEvaluated({ - mergeNames, - mergeToName, - mergeValues, - resultToName, -}: MakeMergeFuncArgs): MergeEvaluatedFunc { - return (gen, from, to, toName) => { - const res = - to === undefined - ? from - : to instanceof Name - ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to) - return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res - } -} - -interface MergeEvaluated { - props: MergeEvaluatedFunc - items: MergeEvaluatedFunc -} - -export const mergeEvaluated: MergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => { - gen.if( - _`${from} === true`, - () => gen.assign(to, true), - () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`) - ) - }), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => { - if (from === true) { - gen.assign(to, true) - } else { - gen.assign(to, _`${to} || {}`) - setEvaluated(gen, to, from) - } - }), - mergeValues: (from, to) => (from === true ? true : {...from, ...to}), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => - gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`) - ), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => - gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`) - ), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -} - -export function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name { - if (ps === true) return gen.var("props", true) - const props = gen.var("props", _`{}`) - if (ps !== undefined) setEvaluated(gen, props, ps) - return props -} - -export function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void { - Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true)) -} - -const snippets: {[S in string]?: _Code} = {} - -export function useFunc(gen: CodeGen, f: {code: string}): Name { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)), - }) -} - -export enum Type { - Num, - Str, -} - -export function getErrorPath( - dataProp: Name | string | number, - dataPropType?: Type, - jsPropertySyntax?: boolean -): Code | string { - // let path - if (dataProp instanceof Name) { - const isNumber = dataPropType === Type.Num - return jsPropertySyntax - ? isNumber - ? _`"[" + ${dataProp} + "]"` - : _`"['" + ${dataProp} + "']"` - : isNumber - ? _`"/" + ${dataProp}` - : _`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")` // TODO maybe use global escapePointer - } - return jsPropertySyntax ? getProperty(dataProp).toString() : "/" + escapeJsonPointer(dataProp) -} - -export function checkStrictMode( - it: SchemaCxt, - msg: string, - mode: boolean | "log" = it.opts.strictSchema -): void { - if (!mode) return - msg = `strict mode: ${msg}` - if (mode === true) throw new Error(msg) - it.self.logger.warn(msg) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/applicability.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/applicability.ts deleted file mode 100644 index 478b704a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/applicability.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {AnySchemaObject} from "../../types" -import type {SchemaObjCxt} from ".." -import type {JSONType, RuleGroup, Rule} from "../rules" - -export function schemaHasRulesForType( - {schema, self}: SchemaObjCxt, - type: JSONType -): boolean | undefined { - const group = self.RULES.types[type] - return group && group !== true && shouldUseGroup(schema, group) -} - -export function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean { - return group.rules.some((rule) => shouldUseRule(schema, rule)) -} - -export function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined { - return ( - schema[rule.keyword] !== undefined || - rule.definition.implements?.some((kwd) => schema[kwd] !== undefined) - ) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts deleted file mode 100644 index 15635501..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt} from "../../types" -import type {SchemaCxt} from ".." -import {reportError} from "../errors" -import {_, Name} from "../codegen" -import N from "../names" - -const boolError: KeywordErrorDefinition = { - message: "boolean schema is false", -} - -export function topBoolOrEmptySchema(it: SchemaCxt): void { - const {gen, schema, validateName} = it - if (schema === false) { - falseSchemaError(it, false) - } else if (typeof schema == "object" && schema.$async === true) { - gen.return(N.data) - } else { - gen.assign(_`${validateName}.errors`, null) - gen.return(true) - } -} - -export function boolOrEmptySchema(it: SchemaCxt, valid: Name): void { - const {gen, schema} = it - if (schema === false) { - gen.var(valid, false) // TODO var - falseSchemaError(it) - } else { - gen.var(valid, true) // TODO var - } -} - -function falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void { - const {gen, data} = it - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt: KeywordErrorCxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - } - reportError(cxt, boolError, undefined, overrideAllErrors) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/dataType.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/dataType.ts deleted file mode 100644 index d8142b3e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/dataType.ts +++ /dev/null @@ -1,230 +0,0 @@ -import type { - KeywordErrorDefinition, - KeywordErrorCxt, - ErrorObject, - AnySchemaObject, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {isJSONType, JSONType} from "../rules" -import {schemaHasRulesForType} from "./applicability" -import {reportError} from "../errors" -import {_, nil, and, not, operators, Code, Name} from "../codegen" -import {toHash, schemaRefOrVal} from "../util" - -export enum DataType { - Correct, - Wrong, -} - -export function getSchemaTypes(schema: AnySchemaObject): JSONType[] { - const types = getJSONTypes(schema.type) - const hasNull = types.includes("null") - if (hasNull) { - if (schema.nullable === false) throw new Error("type: null contradicts nullable: false") - } else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"') - } - if (schema.nullable === true) types.push("null") - } - return types -} - -// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -export function getJSONTypes(ts: unknown | unknown[]): JSONType[] { - const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : [] - if (types.every(isJSONType)) return types - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")) -} - -export function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean { - const {gen, data, opts} = it - const coerceTo = coerceToTypes(types, opts.coerceTypes) - const checkTypes = - types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0])) - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong) - gen.if(wrongType, () => { - if (coerceTo.length) coerceData(it, types, coerceTo) - else reportTypeError(it) - }) - } - return checkTypes -} - -const COERCIBLE: Set = new Set(["string", "number", "integer", "boolean", "null"]) -function coerceToTypes(types: JSONType[], coerceTypes?: boolean | "array"): JSONType[] { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : [] -} - -function coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void { - const {gen, data, opts} = it - const dataType = gen.let("dataType", _`typeof ${data}`) - const coerced = gen.let("coerced", _`undefined`) - if (opts.coerceTypes === "array") { - gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => - gen - .assign(data, _`${data}[0]`) - .assign(dataType, _`typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)) - ) - } - gen.if(_`${coerced} !== undefined`) - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t) - } - } - gen.else() - reportTypeError(it) - gen.endIf() - - gen.if(_`${coerced} !== undefined`, () => { - gen.assign(data, coerced) - assignParentData(it, coerced) - }) - - function coerceSpecificType(t: string): void { - switch (t) { - case "string": - gen - .elseIf(_`${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, _`"" + ${data}`) - .elseIf(_`${data} === null`) - .assign(coerced, _`""`) - return - case "number": - gen - .elseIf( - _`${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})` - ) - .assign(coerced, _`+${data}`) - return - case "integer": - gen - .elseIf( - _`${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))` - ) - .assign(coerced, _`+${data}`) - return - case "boolean": - gen - .elseIf(_`${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf(_`${data} === "true" || ${data} === 1`) - .assign(coerced, true) - return - case "null": - gen.elseIf(_`${data} === "" || ${data} === 0 || ${data} === false`) - gen.assign(coerced, null) - return - - case "array": - gen - .elseIf( - _`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null` - ) - .assign(coerced, _`[${data}]`) - } - } -} - -function assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void { - // TODO use gen.property - gen.if(_`${parentData} !== undefined`, () => - gen.assign(_`${parentData}[${parentDataProperty}]`, expr) - ) -} - -export function checkDataType( - dataType: JSONType, - data: Name, - strictNums?: boolean | "log", - correct = DataType.Correct -): Code { - const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ - let cond: Code - switch (dataType) { - case "null": - return _`${data} ${EQ} null` - case "array": - cond = _`Array.isArray(${data})` - break - case "object": - cond = _`${data} && typeof ${data} == "object" && !Array.isArray(${data})` - break - case "integer": - cond = numCond(_`!(${data} % 1) && !isNaN(${data})`) - break - case "number": - cond = numCond() - break - default: - return _`typeof ${data} ${EQ} ${dataType}` - } - return correct === DataType.Correct ? cond : not(cond) - - function numCond(_cond: Code = nil): Code { - return and(_`typeof ${data} == "number"`, _cond, strictNums ? _`isFinite(${data})` : nil) - } -} - -export function checkDataTypes( - dataTypes: JSONType[], - data: Name, - strictNums?: boolean | "log", - correct?: DataType -): Code { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct) - } - let cond: Code - const types = toHash(dataTypes) - if (types.array && types.object) { - const notObj = _`typeof ${data} != "object"` - cond = types.null ? notObj : _`!${data} || ${notObj}` - delete types.null - delete types.array - delete types.object - } else { - cond = nil - } - if (types.number) delete types.integer - for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct)) - return cond -} - -export type TypeError = ErrorObject<"type", {type: string}> - -const typeError: KeywordErrorDefinition = { - message: ({schema}) => `must be ${schema}`, - params: ({schema, schemaValue}) => - typeof schema == "string" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`, -} - -export function reportTypeError(it: SchemaObjCxt): void { - const cxt = getTypeErrorContext(it) - reportError(cxt, typeError) -} - -function getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt { - const {gen, data, schema} = it - const schemaCode = schemaRefOrVal(it, schema, "type") - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/defaults.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/defaults.ts deleted file mode 100644 index 2ad3d4df..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/defaults.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {SchemaObjCxt} from ".." -import {_, getProperty, stringify} from "../codegen" -import {checkStrictMode} from "../util" - -export function assignDefaults(it: SchemaObjCxt, ty?: string): void { - const {properties, items} = it.schema - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default) - } - } else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i: number) => assignDefault(it, i, sch.default)) - } -} - -function assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void { - const {gen, compositeRule, data, opts} = it - if (defaultValue === undefined) return - const childData = _`${data}${getProperty(prop)}` - if (compositeRule) { - checkStrictMode(it, `default is ignored for: ${childData}`) - return - } - - let condition = _`${childData} === undefined` - if (opts.useDefaults === "empty") { - condition = _`${condition} || ${childData} === null || ${childData} === ""` - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, _`${childData} = ${stringify(defaultValue)}`) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/index.ts deleted file mode 100644 index 15ecabd8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/index.ts +++ /dev/null @@ -1,582 +0,0 @@ -import type { - AddedKeywordDefinition, - AnySchema, - AnySchemaObject, - KeywordErrorCxt, - KeywordCxtParams, -} from "../../types" -import type {SchemaCxt, SchemaObjCxt} from ".." -import type {InstanceOptions} from "../../core" -import {boolOrEmptySchema, topBoolOrEmptySchema} from "./boolSchema" -import {coerceAndCheckDataType, getSchemaTypes} from "./dataType" -import {shouldUseGroup, shouldUseRule} from "./applicability" -import {checkDataType, checkDataTypes, reportTypeError, DataType} from "./dataType" -import {assignDefaults} from "./defaults" -import {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from "./keyword" -import {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from "./subschema" -import {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import {resolveUrl} from "../resolve" -import { - schemaRefOrVal, - schemaHasRulesButRef, - checkUnknownRules, - checkStrictMode, - unescapeJsonPointer, - mergeEvaluated, -} from "../util" -import type {JSONType, Rule, RuleGroup} from "../rules" -import { - ErrorPaths, - reportError, - reportExtraError, - resetErrorsCount, - keyword$DataError, -} from "../errors" - -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -export function validateFunctionCode(it: SchemaCxt): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it) - return - } - } - validateFunction(it, () => topBoolOrEmptySchema(it)) -} - -function validateFunction( - {gen, validateName, schema, schemaEnv, opts}: SchemaCxt, - body: Block -): void { - if (opts.code.es5) { - gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => { - gen.code(_`"use strict"; ${funcSourceUrl(schema, opts)}`) - destructureValCxtES5(gen, opts) - gen.code(body) - }) - } else { - gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => - gen.code(funcSourceUrl(schema, opts)).code(body) - ) - } -} - -function destructureValCxt(opts: InstanceOptions): Code { - return _`{${N.instancePath}="", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${ - N.data - }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}` -} - -function destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void { - gen.if( - N.valCxt, - () => { - gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`) - gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`) - gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`) - gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`) - }, - () => { - gen.var(N.instancePath, _`""`) - gen.var(N.parentData, _`undefined`) - gen.var(N.parentDataProperty, _`undefined`) - gen.var(N.rootData, N.data) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`) - } - ) -} - -function topSchemaObjCode(it: SchemaObjCxt): void { - const {schema, opts, gen} = it - validateFunction(it, () => { - if (opts.$comment && schema.$comment) commentKeyword(it) - checkNoDefault(it) - gen.let(N.vErrors, null) - gen.let(N.errors, 0) - if (opts.unevaluated) resetEvaluated(it) - typeAndKeywords(it) - returnResults(it) - }) - return -} - -function resetEvaluated(it: SchemaObjCxt): void { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const {gen, validateName} = it - it.evaluated = gen.const("evaluated", _`${validateName}.evaluated`) - gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`)) - gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`)) -} - -function funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code { - const schId = typeof schema == "object" && schema[opts.schemaId] - return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil -} - -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it: SchemaCxt, valid: Name): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid) - return - } - } - boolOrEmptySchema(it, valid) -} - -function schemaCxtHasRules({schema, self}: SchemaCxt): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (self.RULES.all[key]) return true - return false -} - -function isSchemaObj(it: SchemaCxt): it is SchemaObjCxt { - return typeof it.schema != "boolean" -} - -function subSchemaObjCode(it: SchemaObjCxt, valid: Name): void { - const {schema, gen, opts} = it - if (opts.$comment && schema.$comment) commentKeyword(it) - updateContext(it) - checkAsyncSchema(it) - const errsCount = gen.const("_errs", N.errors) - typeAndKeywords(it, errsCount) - // TODO var - gen.var(valid, _`${errsCount} === ${N.errors}`) -} - -function checkKeywords(it: SchemaObjCxt): void { - checkUnknownRules(it) - checkRefsAndKeywords(it) -} - -function typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void { - if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount) - const types = getSchemaTypes(it.schema) - const checkedTypes = coerceAndCheckDataType(it, types) - schemaKeywords(it, types, !checkedTypes, errsCount) -} - -function checkRefsAndKeywords(it: SchemaObjCxt): void { - const {schema, errSchemaPath, opts, self} = it - if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`) - } -} - -function checkNoDefault(it: SchemaObjCxt): void { - const {schema, opts} = it - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - checkStrictMode(it, "default is ignored in the schema root") - } -} - -function updateContext(it: SchemaObjCxt): void { - const schId = it.schema[it.opts.schemaId] - if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId) -} - -function checkAsyncSchema(it: SchemaObjCxt): void { - if (it.schema.$async && !it.schemaEnv.$async) throw new Error("async schema in sync schema") -} - -function commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void { - const msg = schema.$comment - if (opts.$comment === true) { - gen.code(_`${N.self}.logger.log(${msg})`) - } else if (typeof opts.$comment == "function") { - const schemaPath = str`${errSchemaPath}/$comment` - const rootName = gen.scopeValue("root", {ref: schemaEnv.root}) - gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`) - } -} - -function returnResults(it: SchemaCxt): void { - const {gen, schemaEnv, validateName, ValidationError, opts} = it - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if( - _`${N.errors} === 0`, - () => gen.return(N.data), - () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`) - ) - } else { - gen.assign(_`${validateName}.errors`, N.vErrors) - if (opts.unevaluated) assignEvaluated(it) - gen.return(_`${N.errors} === 0`) - } -} - -function assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void { - if (props instanceof Name) gen.assign(_`${evaluated}.props`, props) - if (items instanceof Name) gen.assign(_`${evaluated}.items`, items) -} - -function schemaKeywords( - it: SchemaObjCxt, - types: JSONType[], - typeErrors: boolean, - errsCount?: Name -): void { - const {gen, schema, data, allErrors, opts, self} = it - const {RULES} = self - if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", (RULES.all.$ref as Rule).definition)) // TODO typecast - return - } - if (!opts.jtd) checkStrictTypes(it, types) - gen.block(() => { - for (const group of RULES.rules) groupKeywords(group) - groupKeywords(RULES.post) - }) - - function groupKeywords(group: RuleGroup): void { - if (!shouldUseGroup(schema, group)) return - if (group.type) { - gen.if(checkDataType(group.type, data, opts.strictNumbers)) - iterateKeywords(it, group) - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else() - reportTypeError(it) - } - gen.endIf() - } else { - iterateKeywords(it, group) - } - // TODO make it "ok" call? - if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`) - } -} - -function iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void { - const { - gen, - schema, - opts: {useDefaults}, - } = it - if (useDefaults) assignDefaults(it, group.type) - gen.block(() => { - for (const rule of group.rules) { - if (shouldUseRule(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type) - } - } - }) -} - -function checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (it.schemaEnv.meta || !it.opts.strictTypes) return - checkContextTypes(it, types) - if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types) - checkKeywordTypes(it, it.dataTypes) -} - -function checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (!types.length) return - if (!it.dataTypes.length) { - it.dataTypes = types - return - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`) - } - }) - narrowSchemaTypes(it, types) -} - -function checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword") - } -} - -function checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void { - const rules = it.self.RULES.all - for (const keyword in rules) { - const rule = rules[keyword] - if (typeof rule == "object" && shouldUseRule(it.schema, rule)) { - const {type} = rule.definition - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`) - } - } - } -} - -function hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")) -} - -function includesType(ts: JSONType[], t: JSONType): boolean { - return ts.includes(t) || (t === "integer" && ts.includes("number")) -} - -function narrowSchemaTypes(it: SchemaObjCxt, withTypes: JSONType[]): void { - const ts: JSONType[] = [] - for (const t of it.dataTypes) { - if (includesType(withTypes, t)) ts.push(t) - else if (withTypes.includes("integer") && t === "number") ts.push("integer") - } - it.dataTypes = ts -} - -function strictTypesError(it: SchemaObjCxt, msg: string): void { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - msg += ` at "${schemaPath}" (strictTypes)` - checkStrictMode(it, msg, it.opts.strictTypes) -} - -export class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen - readonly allErrors?: boolean - readonly keyword: string - readonly data: Name // Name referencing the current level of the data instance - readonly $data?: string | false - schema: any // keyword value in the schema - readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value - readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data) - readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema - readonly parentSchema: AnySchemaObject - readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword, - // requires option trackErrors in keyword definition - params: KeywordCxtParams // object to pass parameters to error messages from keyword code - readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean) - readonly def: AddedKeywordDefinition - - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) { - validateKeywordUsage(it, def, keyword) - this.gen = it.gen - this.allErrors = it.allErrors - this.keyword = keyword - this.data = it.data - this.schema = it.schema[keyword] - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data - this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data) - this.schemaType = def.schemaType - this.parentSchema = it.schema - this.params = {} - this.it = it - this.def = def - - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)) - } else { - this.schemaCode = this.schemaValue - if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`) - } - } - - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", N.errors) - } - } - - result(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.failResult(not(condition), successAction, failAction) - } - - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.gen.if(condition) - if (failAction) failAction() - else this.error() - if (successAction) { - this.gen.else() - successAction() - if (this.allErrors) this.gen.endIf() - } else { - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - } - - pass(condition: Code, failAction?: () => void): void { - this.failResult(not(condition), undefined, failAction) - } - - fail(condition?: Code): void { - if (condition === undefined) { - this.error() - if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize - return - } - this.gen.if(condition) - this.error() - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - - fail$data(condition: Code): void { - if (!this.$data) return this.fail(condition) - const {schemaCode} = this - this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`) - } - - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void { - if (errorParams) { - this.setParams(errorParams) - this._error(append, errorPaths) - this.setParams({}) - return - } - this._error(append, errorPaths) - } - - private _error(append?: boolean, errorPaths?: ErrorPaths): void { - ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths) - } - - $dataError(): void { - reportError(this, this.def.$dataError || keyword$DataError) - } - - reset(): void { - if (this.errsCount === undefined) throw new Error('add "trackErrors" to keyword definition') - resetErrorsCount(this.gen, this.errsCount) - } - - ok(cond: Code | boolean): void { - if (!this.allErrors) this.gen.if(cond) - } - - setParams(obj: KeywordCxtParams, assign?: true): void { - if (assign) Object.assign(this.params, obj) - else this.params = obj - } - - block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void { - this.gen.block(() => { - this.check$data(valid, $dataValid) - codeBlock() - }) - } - - check$data(valid: Name = nil, $dataValid: Code = nil): void { - if (!this.$data) return - const {gen, schemaCode, schemaType, def} = this - gen.if(or(_`${schemaCode} === undefined`, $dataValid)) - if (valid !== nil) gen.assign(valid, true) - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()) - this.$dataError() - if (valid !== nil) gen.assign(valid, false) - } - gen.else() - } - - invalid$data(): Code { - const {gen, schemaCode, schemaType, def, it} = this - return or(wrong$DataType(), invalid$DataSchema()) - - function wrong$DataType(): Code { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof Name)) throw new Error("ajv implementation error") - const st = Array.isArray(schemaType) ? schemaType : [schemaType] - return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}` - } - return nil - } - - function invalid$DataSchema(): Code { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", {ref: def.validateSchema}) // TODO value.code for standalone - return _`!${validateSchemaRef}(${schemaCode})` - } - return nil - } - } - - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt { - const subschema = getSubschema(this.it, appl) - extendSubschemaData(subschema, this.it, appl) - extendSubschemaMode(subschema, appl) - const nextContext = {...this.it, ...subschema, items: undefined, props: undefined} - subschemaCode(nextContext, valid) - return nextContext - } - - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void { - const {it, gen} = this - if (!it.opts.unevaluated) return - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName) - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName) - } - } - - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void { - const {it, gen} = this - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name)) - return true - } - } -} - -function keywordCode( - it: SchemaObjCxt, - keyword: string, - def: AddedKeywordDefinition, - ruleType?: JSONType -): void { - const cxt = new KeywordCxt(it, def, keyword) - if ("code" in def) { - def.code(cxt, ruleType) - } else if (cxt.$data && def.validate) { - funcKeywordCode(cxt, def) - } else if ("macro" in def) { - macroKeywordCode(cxt, def) - } else if (def.compile || def.validate) { - funcKeywordCode(cxt, def) - } -} - -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/ -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/ -export function getData( - $data: string, - {dataLevel, dataNames, dataPathArr}: SchemaCxt -): Code | number { - let jsonPointer - let data: Code - if ($data === "") return N.rootData - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`) - jsonPointer = $data - data = N.rootData - } else { - const matches = RELATIVE_JSON_POINTER.exec($data) - if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`) - const up: number = +matches[1] - jsonPointer = matches[2] - if (jsonPointer === "#") { - if (up >= dataLevel) throw new Error(errorMsg("property/index", up)) - return dataPathArr[dataLevel - up] - } - if (up > dataLevel) throw new Error(errorMsg("data", up)) - data = dataNames[dataLevel - up] - if (!jsonPointer) return data - } - - let expr = data - const segments = jsonPointer.split("/") - for (const segment of segments) { - if (segment) { - data = _`${data}${getProperty(unescapeJsonPointer(segment))}` - expr = _`${expr} && ${data}` - } - } - return expr - - function errorMsg(pointerType: string, up: number): string { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}` - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/keyword.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/keyword.ts deleted file mode 100644 index f854aa71..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/keyword.ts +++ /dev/null @@ -1,171 +0,0 @@ -import type {KeywordCxt} from "." -import type { - AnySchema, - SchemaValidateFunction, - AnyValidateFunction, - AddedKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, nil, not, stringify, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import type {JSONType} from "../rules" -import {callValidateCode} from "../../vocabularies/code" -import {extendErrors} from "../errors" - -type KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction - -export function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, it} = cxt - const macroSchema = def.macro.call(it.self, schema, parentSchema, it) - const schemaRef = useKeyword(gen, keyword, macroSchema) - if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true) - - const valid = gen.name("valid") - cxt.subschema( - { - schema: macroSchema, - schemaPath: nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, - valid - ) - cxt.pass(valid, () => cxt.error(true)) -} - -export function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, $data, it} = cxt - checkAsyncKeyword(it, def) - const validate = - !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate - const validateRef = useKeyword(gen, keyword, validate) - const valid = gen.let("valid") - cxt.block$data(valid, validateKeyword) - cxt.ok(def.valid ?? valid) - - function validateKeyword(): void { - if (def.errors === false) { - assignValid() - if (def.modifying) modifyData(cxt) - reportErrs(() => cxt.error()) - } else { - const ruleErrs = def.async ? validateAsync() : validateSync() - if (def.modifying) modifyData(cxt) - reportErrs(() => addErrs(cxt, ruleErrs)) - } - } - - function validateAsync(): Name { - const ruleErrs = gen.let("ruleErrs", null) - gen.try( - () => assignValid(_`await `), - (e) => - gen.assign(valid, false).if( - _`${e} instanceof ${it.ValidationError as Name}`, - () => gen.assign(ruleErrs, _`${e}.errors`), - () => gen.throw(e) - ) - ) - return ruleErrs - } - - function validateSync(): Code { - const validateErrs = _`${validateRef}.errors` - gen.assign(validateErrs, null) - assignValid(nil) - return validateErrs - } - - function assignValid(_await: Code = def.async ? _`await ` : nil): void { - const passCxt = it.opts.passContext ? N.this : N.self - const passSchema = !(("compile" in def && !$data) || def.schema === false) - gen.assign( - valid, - _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`, - def.modifying - ) - } - - function reportErrs(errors: () => void): void { - gen.if(not(def.valid ?? valid), errors) - } -} - -function modifyData(cxt: KeywordCxt): void { - const {gen, data, it} = cxt - gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`)) -} - -function addErrs(cxt: KeywordCxt, errs: Code): void { - const {gen} = cxt - gen.if( - _`Array.isArray(${errs})`, - () => { - gen - .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) - .assign(N.errors, _`${N.vErrors}.length`) - extendErrors(cxt) - }, - () => cxt.error() - ) -} - -function checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void { - if (def.async && !schemaEnv.$async) throw new Error("async keyword in sync schema") -} - -function useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name { - if (result === undefined) throw new Error(`keyword "${keyword}" failed to compile`) - return gen.scopeValue( - "keyword", - typeof result == "function" ? {ref: result} : {ref: result, code: stringify(result)} - ) -} - -export function validSchemaType( - schema: unknown, - schemaType: JSONType[], - allowUndefined = false -): boolean { - // TODO add tests - return ( - !schemaType.length || - schemaType.some((st) => - st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined") - ) - ) -} - -export function validateKeywordUsage( - {schema, opts, self, errSchemaPath}: SchemaObjCxt, - def: AddedKeywordDefinition, - keyword: string -): void { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error") - } - - const deps = def.dependencies - if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`) - } - - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]) - if (!valid) { - const msg = - `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors) - if (opts.validateSchema === "log") self.logger.error(msg) - else throw new Error(msg) - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/subschema.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/subschema.ts deleted file mode 100644 index 9072ed77..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/compile/validate/subschema.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type {AnySchema} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, str, getProperty, Code, Name} from "../codegen" -import {escapeFragment, getErrorPath, Type} from "../util" -import type {JSONType} from "../rules" - -export interface SubschemaContext { - // TODO use Optional? align with SchemCxt property types - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef?: Code - errorPath?: Code - dataLevel?: number - dataTypes?: JSONType[] - data?: Name - parentData?: Name - parentDataProperty?: Code | number - dataNames?: Name[] - dataPathArr?: (Code | number)[] - propertyName?: Name - jtdDiscriminator?: string - jtdMetadata?: boolean - compositeRule?: true - createErrors?: boolean - allErrors?: boolean -} - -export type SubschemaArgs = Partial<{ - keyword: string - schemaProp: string | number - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef: Code - data: Name | Code - dataProp: Code | string | number - dataTypes: JSONType[] - definedProperties: Set - propertyName: Name - dataPropType: Type - jtdDiscriminator: string - jtdMetadata: boolean - compositeRule: true - createErrors: boolean - allErrors: boolean -}> - -export function getSubschema( - it: SchemaObjCxt, - {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs -): SubschemaContext { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed') - } - - if (keyword !== undefined) { - const sch = it.schema[keyword] - return schemaProp === undefined - ? { - schema: sch, - schemaPath: _`${it.schemaPath}${getProperty(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`, - } - } - - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"') - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - } - } - - throw new Error('either "keyword" or "schema" must be passed') -} - -export function extendSubschemaData( - subschema: SubschemaContext, - it: SchemaObjCxt, - {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs -): void { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed') - } - - const {gen} = it - - if (dataProp !== undefined) { - const {errorPath, dataPathArr, opts} = it - const nextData = gen.let("data", _`${it.data}${getProperty(dataProp)}`, true) - dataContextProps(nextData) - subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}` - subschema.parentDataProperty = _`${dataProp}` - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty] - } - - if (data !== undefined) { - const nextData = data instanceof Name ? data : gen.let("data", data, true) // replaceable if used once? - dataContextProps(nextData) - if (propertyName !== undefined) subschema.propertyName = propertyName - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - - if (dataTypes) subschema.dataTypes = dataTypes - - function dataContextProps(_nextData: Name): void { - subschema.data = _nextData - subschema.dataLevel = it.dataLevel + 1 - subschema.dataTypes = [] - it.definedProperties = new Set() - subschema.parentData = it.data - subschema.dataNames = [...it.dataNames, _nextData] - } -} - -export function extendSubschemaMode( - subschema: SubschemaContext, - {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs -): void { - if (compositeRule !== undefined) subschema.compositeRule = compositeRule - if (createErrors !== undefined) subschema.createErrors = createErrors - if (allErrors !== undefined) subschema.allErrors = allErrors - subschema.jtdDiscriminator = jtdDiscriminator // not inherited - subschema.jtdMetadata = jtdMetadata // not inherited -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/core.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/core.ts deleted file mode 100644 index e41ca3e2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/core.ts +++ /dev/null @@ -1,891 +0,0 @@ -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - AnyValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {SchemaCxt, SchemaObjCxt} from "./compile" -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv - [prop: string]: any -} - -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -import type { - Schema, - AnySchema, - AnySchemaObject, - SchemaObject, - AsyncSchema, - Vocabulary, - KeywordDefinition, - AddedKeywordDefinition, - AnyValidateFunction, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - Format, - AddedFormat, - RegExpEngine, - UriResolver, -} from "./types" -import type {JSONSchemaType} from "./types/json-schema" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import ValidationError from "./runtime/validation_error" -import MissingRefError from "./compile/ref_error" -import {getRules, ValidationRules, Rule, RuleGroup, JSONType} from "./compile/rules" -import {SchemaEnv, compileSchema, resolveSchema} from "./compile" -import {Code, ValueScope} from "./compile/codegen" -import {normalizeId, getSchemaRefs} from "./compile/resolve" -import {getJSONTypes} from "./compile/validate/dataType" -import {eachItem} from "./compile/util" -import * as $dataRefSchema from "./refs/data.json" - -import DefaultUriResolver from "./runtime/uri" - -const defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags) -defaultRegExp.code = "new RegExp" - -const META_IGNORE_OPTIONS: (keyof Options)[] = ["removeAdditional", "useDefaults", "coerceTypes"] -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]) - -export type Options = CurrentOptions & DeprecatedOptions - -export interface CurrentOptions { - // strict mode options (NEW) - strict?: boolean | "log" - strictSchema?: boolean | "log" - strictNumbers?: boolean | "log" - strictTypes?: boolean | "log" - strictTuples?: boolean | "log" - strictRequired?: boolean | "log" - allowMatchingProperties?: boolean // disables a strict mode restriction - allowUnionTypes?: boolean - validateFormats?: boolean - // validation and reporting options: - $data?: boolean - allErrors?: boolean - verbose?: boolean - discriminator?: boolean - unicodeRegExp?: boolean - timestamp?: "string" | "date" // JTD only - parseDate?: boolean // JTD only - allowDate?: boolean // JTD only - $comment?: - | true - | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown) - formats?: {[Name in string]?: Format} - keywords?: Vocabulary - schemas?: AnySchema[] | {[Key in string]?: AnySchema} - logger?: Logger | false - loadSchema?: (uri: string) => Promise - // options to modify validated data: - removeAdditional?: boolean | "all" | "failing" - useDefaults?: boolean | "empty" - coerceTypes?: boolean | "array" - // advanced options: - next?: boolean // NEW - unevaluated?: boolean // NEW - dynamicRef?: boolean // NEW - schemaId?: "id" | "$id" - jtd?: boolean // NEW - meta?: SchemaObject | boolean - defaultMeta?: string | AnySchemaObject - validateSchema?: boolean | "log" - addUsedSchema?: boolean - inlineRefs?: boolean | number - passContext?: boolean - loopRequired?: number - loopEnum?: number // NEW - ownProperties?: boolean - multipleOfPrecision?: number - int32range?: boolean // JTD only - messages?: boolean - code?: CodeOptions // NEW - uriResolver?: UriResolver -} - -export interface CodeOptions { - es5?: boolean - esm?: boolean - lines?: boolean - optimize?: boolean | number - formats?: Code // code to require (or construct) map of available formats - for standalone code - source?: boolean - process?: (code: string, schema?: SchemaEnv) => string - regExp?: RegExpEngine -} - -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine - optimize: number -} - -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean - /** @deprecated */ - jsPropertySyntax?: boolean // added instead of jsonPointers - /** @deprecated */ - unicode?: boolean -} - -interface RemovedOptions { - format?: boolean - errorDataPath?: "object" | "property" - nullable?: boolean // "nullable" keyword is supported by default - jsonPointers?: boolean - extendRefs?: true | "ignore" | "fail" - missingRefs?: true | "ignore" | "fail" - processCode?: (code: string, schema?: SchemaEnv) => string - sourceCode?: boolean - strictDefaults?: boolean - strictKeywords?: boolean - uniqueItems?: boolean - unknownFormats?: true | string[] | "ignore" - cache?: any - serialize?: (schema: AnySchema) => unknown - ajvErrors?: boolean -} - -type OptionsInfo = { - [K in keyof T]-?: string | undefined -} - -const removedOptions: OptionsInfo = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -} - -const deprecatedOptions: OptionsInfo = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -} - -type RequiredInstanceOptions = { - [K in - | "strictSchema" - | "strictNumbers" - | "strictTypes" - | "strictTuples" - | "strictRequired" - | "inlineRefs" - | "loopRequired" - | "loopEnum" - | "meta" - | "messages" - | "schemaId" - | "addUsedSchema" - | "validateSchema" - | "validateFormats" - | "int32range" - | "unicodeRegExp" - | "uriResolver"]: NonNullable -} & {code: InstanceCodeOptions} - -export type InstanceOptions = Options & RequiredInstanceOptions - -const MAX_EXPRESSION = 200 - -// eslint-disable-next-line complexity -function requiredOptions(o: Options): RequiredInstanceOptions { - const s = o.strict - const _optz = o.code?.optimize - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0 - const regExp = o.code?.regExp ?? defaultRegExp - const uriResolver = o.uriResolver ?? DefaultUriResolver - return { - strictSchema: o.strictSchema ?? s ?? true, - strictNumbers: o.strictNumbers ?? s ?? true, - strictTypes: o.strictTypes ?? s ?? "log", - strictTuples: o.strictTuples ?? s ?? "log", - strictRequired: o.strictRequired ?? s ?? false, - code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp}, - loopRequired: o.loopRequired ?? MAX_EXPRESSION, - loopEnum: o.loopEnum ?? MAX_EXPRESSION, - meta: o.meta ?? true, - messages: o.messages ?? true, - inlineRefs: o.inlineRefs ?? true, - schemaId: o.schemaId ?? "$id", - addUsedSchema: o.addUsedSchema ?? true, - validateSchema: o.validateSchema ?? true, - validateFormats: o.validateFormats ?? true, - unicodeRegExp: o.unicodeRegExp ?? true, - int32range: o.int32range ?? true, - uriResolver: uriResolver, - } -} - -export interface Logger { - log(...args: unknown[]): unknown - warn(...args: unknown[]): unknown - error(...args: unknown[]): unknown -} - -export default class Ajv { - opts: InstanceOptions - errors?: ErrorObject[] | null // errors from the last validation - logger: Logger - // shared external scope values for compiled functions - readonly scope: ValueScope - readonly schemas: {[Key in string]?: SchemaEnv} = {} - readonly refs: {[Ref in string]?: SchemaEnv | string} = {} - readonly formats: {[Name in string]?: AddedFormat} = {} - readonly RULES: ValidationRules - readonly _compilations: Set = new Set() - private readonly _loading: {[Ref in string]?: Promise} = {} - private readonly _cache: Map = new Map() - private readonly _metaOpts: InstanceOptions - - static ValidationError = ValidationError - static MissingRefError = MissingRefError - - constructor(opts: Options = {}) { - opts = this.opts = {...opts, ...requiredOptions(opts)} - const {es5, lines} = this.opts.code - - this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines}) - this.logger = getLogger(opts.logger) - const formatOpt = opts.validateFormats - opts.validateFormats = false - - this.RULES = getRules() - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED") - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn") - this._metaOpts = getMetaSchemaOptions.call(this) - - if (opts.formats) addInitialFormats.call(this) - this._addVocabularies() - this._addDefaultMetaSchema() - if (opts.keywords) addInitialKeywords.call(this, opts.keywords) - if (typeof opts.meta == "object") this.addMetaSchema(opts.meta) - addInitialSchemas.call(this) - opts.validateFormats = formatOpt - } - - _addVocabularies(): void { - this.addKeyword("$async") - } - - _addDefaultMetaSchema(): void { - const {$data, meta, schemaId} = this.opts - let _dataRefSchema: SchemaObject = $dataRefSchema - if (schemaId === "id") { - _dataRefSchema = {...$dataRefSchema} - _dataRefSchema.id = _dataRefSchema.$id - delete _dataRefSchema.$id - } - if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - const {meta, schemaId} = this.opts - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined) - } - - // Validate data using schema - // AnySchema will be compiled and cached using schema itself as a key for Map - validate(schema: Schema | string, data: unknown): boolean - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - validate(schema: JTDSchemaType, data: unknown): data is T - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - // eslint-disable-next-line @typescript-eslint/no-unused-vars - validate( - schema: T, - data: unknown - ): data is JTDDataType - // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents - validate(schema: AsyncSchema, data: unknown | T): Promise - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise - validate( - schemaKeyRef: AnySchema | string, // key, ref or schema object - // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents - data: unknown | T // to be validated - ): boolean | Promise { - let v: AnyValidateFunction | undefined - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef) - if (!v) throw new Error(`no schema with key or ref "${schemaKeyRef}"`) - } else { - v = this.compile(schemaKeyRef) - } - - const valid = v(data) - if (!("$async" in v)) this.errors = v.errors - return valid - } - - // Create validation function for passed schema - // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords. - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - // eslint-disable-next-line @typescript-eslint/no-unused-vars - compile( - schema: T, - _meta?: boolean - ): ValidateFunction> - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction { - const sch = this._addSchema(schema, _meta) - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction - } - - // Creates validating function for passed schema with asynchronous loading of missing schemas. - // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema. - // TODO allow passing schema URI - // meta - optional true to compile meta-schema - compileAsync( - schema: SchemaObject | JSONSchemaType, - _meta?: boolean - ): Promise> - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise> - compileAsync(schema: AsyncSchema, meta?: boolean): Promise> - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function") - } - const {loadSchema} = this.opts - return runCompileAsync.call(this, schema, meta) - - async function runCompileAsync( - this: Ajv, - _schema: AnySchemaObject, - _meta?: boolean - ): Promise { - await loadMetaSchema.call(this, _schema.$schema) - const sch = this._addSchema(_schema, _meta) - return sch.validate || _compileAsync.call(this, sch) - } - - async function loadMetaSchema(this: Ajv, $ref?: string): Promise { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, {$ref}, true) - } - } - - async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise { - try { - return this._compileSchemaEnv(sch) - } catch (e) { - if (!(e instanceof MissingRefError)) throw e - checkLoaded.call(this, e) - await loadMissingSchema.call(this, e.missingSchema) - return _compileAsync.call(this, sch) - } - } - - function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`) - } - } - - async function loadMissingSchema(this: Ajv, ref: string): Promise { - const _schema = await _loadSchema.call(this, ref) - if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema) - if (!this.refs[ref]) this.addSchema(_schema, ref, meta) - } - - async function _loadSchema(this: Ajv, ref: string): Promise { - const p = this._loading[ref] - if (p) return p - try { - return await (this._loading[ref] = loadSchema(ref)) - } finally { - delete this._loading[ref] - } - } - } - - // Adds schema to the instance - addSchema( - schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ): Ajv { - if (Array.isArray(schema)) { - for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema) - return this - } - let id: string | undefined - if (typeof schema === "object") { - const {schemaId} = this.opts - id = schema[schemaId] - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`) - } - } - key = normalizeId(key || id) - this._checkUnique(key) - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true) - return this - } - - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema( - schema: AnySchemaObject, - key?: string, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ): Ajv { - this.addSchema(schema, key, true, _validateSchema) - return this - } - - // Validate schema against its meta-schema - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise { - if (typeof schema == "boolean") return true - let $schema: string | AnySchemaObject | undefined - $schema = schema.$schema - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string") - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta() - if (!$schema) { - this.logger.warn("meta-schema not available") - this.errors = null - return true - } - const valid = this.validate($schema, schema) - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText() - if (this.opts.validateSchema === "log") this.logger.error(message) - else throw new Error(message) - } - return valid - } - - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef: string): AnyValidateFunction | undefined { - let sch - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") keyRef = sch - if (sch === undefined) { - const {schemaId} = this.opts - const root = new SchemaEnv({schema: {}, schemaId}) - sch = resolveSchema.call(this, root, keyRef) - if (!sch) return - this.refs[keyRef] = sch - } - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction | undefined - } - - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef) - this._removeAllSchemas(this.refs, schemaKeyRef) - return this - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas) - this._removeAllSchemas(this.refs) - this._cache.clear() - return this - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef) - if (typeof sch == "object") this._cache.delete(sch.schema) - delete this.schemas[schemaKeyRef] - delete this.refs[schemaKeyRef] - return this - } - case "object": { - const cacheKey = schemaKeyRef - this._cache.delete(cacheKey) - let id = schemaKeyRef[this.opts.schemaId] - if (id) { - id = normalizeId(id) - delete this.schemas[id] - delete this.refs[id] - } - return this - } - default: - throw new Error("ajv.removeSchema: invalid parameter") - } - } - - // add "vocabulary" - a collection of keywords - addVocabulary(definitions: Vocabulary): Ajv { - for (const def of definitions) this.addKeyword(def) - return this - } - - addKeyword( - kwdOrDef: string | KeywordDefinition, - def?: KeywordDefinition // deprecated - ): Ajv { - let keyword: string | string[] - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword") - def.keyword = keyword - } - } else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef - keyword = def.keyword - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array") - } - } else { - throw new Error("invalid addKeywords parameters") - } - - checkKeyword.call(this, keyword, def) - if (!def) { - eachItem(keyword, (kwd) => addRule.call(this, kwd)) - return this - } - keywordMetaschema.call(this, def) - const definition: AddedKeywordDefinition = { - ...def, - type: getJSONTypes(def.type), - schemaType: getJSONTypes(def.schemaType), - } - eachItem( - keyword, - definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)) - ) - return this - } - - getKeyword(keyword: string): AddedKeywordDefinition | boolean { - const rule = this.RULES.all[keyword] - return typeof rule == "object" ? rule.definition : !!rule - } - - // Remove keyword - removeKeyword(keyword: string): Ajv { - // TODO return type should be Ajv - const {RULES} = this - delete RULES.keywords[keyword] - delete RULES.all[keyword] - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword) - if (i >= 0) group.rules.splice(i, 1) - } - return this - } - - // Add format - addFormat(name: string, format: Format): Ajv { - if (typeof format == "string") format = new RegExp(format) - this.formats[name] = format - return this - } - - errorsText( - errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors - {separator = ", ", dataVar = "data"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar` - ): string { - if (!errors || errors.length === 0) return "No errors" - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg) - } - - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject { - const rules = this.RULES.all - metaSchema = JSON.parse(JSON.stringify(metaSchema)) - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1) // first segment is an empty string - let keywords = metaSchema - for (const seg of segments) keywords = keywords[seg] as AnySchemaObject - - for (const key in rules) { - const rule = rules[key] - if (typeof rule != "object") continue - const {$data} = rule.definition - const schema = keywords[key] as AnySchemaObject | undefined - if ($data && schema) keywords[key] = schemaOrData(schema) - } - } - - return metaSchema - } - - private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void { - for (const keyRef in schemas) { - const sch = schemas[keyRef] - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef] - } else if (sch && !sch.meta) { - this._cache.delete(sch.schema) - delete schemas[keyRef] - } - } - } - } - - _addSchema( - schema: AnySchema, - meta?: boolean, - baseId?: string, - validateSchema = this.opts.validateSchema, - addSchema = this.opts.addUsedSchema - ): SchemaEnv { - let id: string | undefined - const {schemaId} = this.opts - if (typeof schema == "object") { - id = schema[schemaId] - } else { - if (this.opts.jtd) throw new Error("schema must be object") - else if (typeof schema != "boolean") throw new Error("schema must be object or boolean") - } - let sch = this._cache.get(schema) - if (sch !== undefined) return sch - - baseId = normalizeId(id || baseId) - const localRefs = getSchemaRefs.call(this, schema, baseId) - sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs}) - this._cache.set(sch.schema, sch) - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) this._checkUnique(baseId) - this.refs[baseId] = sch - } - if (validateSchema) this.validateSchema(schema, true) - return sch - } - - private _checkUnique(id: string): void { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`) - } - } - - private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction { - if (sch.meta) this._compileMetaSchema(sch) - else compileSchema.call(this, sch) - - /* istanbul ignore if */ - if (!sch.validate) throw new Error("ajv implementation error") - return sch.validate - } - - private _compileMetaSchema(sch: SchemaEnv): void { - const currentOpts = this.opts - this.opts = this._metaOpts - try { - compileSchema.call(this, sch) - } finally { - this.opts = currentOpts - } - } -} - -export interface ErrorsTextOptions { - separator?: string - dataVar?: string -} - -function checkOptions( - this: Ajv, - checkOpts: OptionsInfo, - options: Options & RemovedOptions, - msg: string, - log: "warn" | "error" = "error" -): void { - for (const key in checkOpts) { - const opt = key as keyof typeof checkOpts - if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`) - } -} - -function getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined { - keyRef = normalizeId(keyRef) // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef] -} - -function addInitialSchemas(this: Ajv): void { - const optsSchemas = this.opts.schemas - if (!optsSchemas) return - if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas) - else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key) -} - -function addInitialFormats(this: Ajv): void { - for (const name in this.opts.formats) { - const format = this.opts.formats[name] - if (format) this.addFormat(name, format) - } -} - -function addInitialKeywords( - this: Ajv, - defs: Vocabulary | {[K in string]?: KeywordDefinition} -): void { - if (Array.isArray(defs)) { - this.addVocabulary(defs) - return - } - this.logger.warn("keywords option as map is deprecated, pass array") - for (const keyword in defs) { - const def = defs[keyword] as KeywordDefinition - if (!def.keyword) def.keyword = keyword - this.addKeyword(def) - } -} - -function getMetaSchemaOptions(this: Ajv): InstanceOptions { - const metaOpts = {...this.opts} - for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt] - return metaOpts -} - -const noLogs = {log() {}, warn() {}, error() {}} - -function getLogger(logger?: Partial | false): Logger { - if (logger === false) return noLogs - if (logger === undefined) return console - if (logger.log && logger.warn && logger.error) return logger as Logger - throw new Error("logger must implement log, warn and error methods") -} - -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i - -function checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void { - const {RULES} = this - eachItem(keyword, (kwd) => { - if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`) - if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`) - }) - if (!def) return - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function') - } -} - -function addRule( - this: Ajv, - keyword: string, - definition?: AddedKeywordDefinition, - dataType?: JSONType -): void { - const post = definition?.post - if (dataType && post) throw new Error('keyword with "post" flag cannot have "type"') - const {RULES} = this - let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType) - if (!ruleGroup) { - ruleGroup = {type: dataType, rules: []} - RULES.rules.push(ruleGroup) - } - RULES.keywords[keyword] = true - if (!definition) return - - const rule: Rule = { - keyword, - definition: { - ...definition, - type: getJSONTypes(definition.type), - schemaType: getJSONTypes(definition.schemaType), - }, - } - if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before) - else ruleGroup.rules.push(rule) - RULES.all[keyword] = rule - definition.implements?.forEach((kwd) => this.addKeyword(kwd)) -} - -function addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before) - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule) - } else { - ruleGroup.rules.push(rule) - this.logger.warn(`rule ${before} is not defined`) - } -} - -function keywordMetaschema(this: Ajv, def: KeywordDefinition): void { - let {metaSchema} = def - if (metaSchema === undefined) return - if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema) - def.validateSchema = this.compile(metaSchema, true) -} - -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -} - -function schemaOrData(schema: AnySchema): AnySchemaObject { - return {anyOf: [schema, $dataRef]} -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/jtd.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/jtd.ts deleted file mode 100644 index a7e7bce3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/jtd.ts +++ /dev/null @@ -1,132 +0,0 @@ -import type {AnySchemaObject, SchemaObject, JTDParser} from "./types" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import AjvCore, {CurrentOptions} from "./core" -import jtdVocabulary from "./vocabularies/jtd" -import jtdMetaSchema from "./refs/jtd-schema" -import compileSerializer from "./compile/jtd/serialize" -import compileParser from "./compile/jtd/parse" -import {SchemaEnv} from "./compile" - -const META_SCHEMA_ID = "JTD-meta-schema" - -type JTDOptions = CurrentOptions & { - // strict mode options not supported with JTD: - strict?: never - allowMatchingProperties?: never - allowUnionTypes?: never - validateFormats?: never - // validation and reporting options not supported with JTD: - $data?: never - verbose?: boolean - $comment?: never - formats?: never - loadSchema?: never - // options to modify validated data: - useDefaults?: never - coerceTypes?: never - // advanced options: - next?: never - unevaluated?: never - dynamicRef?: never - meta?: boolean - defaultMeta?: never - inlineRefs?: boolean - loopRequired?: never - multipleOfPrecision?: never -} - -export class Ajv extends AjvCore { - constructor(opts: JTDOptions = {}) { - super({ - ...opts, - jtd: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(jtdVocabulary) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - this.addMetaSchema(jtdMetaSchema, META_SCHEMA_ID, false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } - - compileSerializer(schema: SchemaObject): (data: T) => string - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileSerializer(schema: JTDSchemaType): (data: T) => string - compileSerializer(schema: SchemaObject): (data: T) => string { - const sch = this._addSchema(schema) - return sch.serialize || this._compileSerializer(sch) - } - - compileParser(schema: SchemaObject): JTDParser - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileParser(schema: JTDSchemaType): JTDParser - compileParser(schema: SchemaObject): JTDParser { - const sch = this._addSchema(schema) - return (sch.parse || this._compileParser(sch)) as JTDParser - } - - private _compileSerializer(sch: SchemaEnv): (data: T) => string { - compileSerializer.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.serialize) throw new Error("ajv implementation error") - return sch.serialize - } - - private _compileParser(sch: SchemaEnv): JTDParser { - compileParser.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.parse) throw new Error("ajv implementation error") - return sch.parse - } -} - -module.exports = exports = Ajv -module.exports.Ajv = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, - JTDParser, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {JTDErrorObject} from "./vocabularies/jtd" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} -export {JTDOptions} -export {default as ValidationError} from "./runtime/validation_error" -export {default as MissingRefError} from "./compile/ref_error" diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts deleted file mode 100644 index b6ea7195..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts deleted file mode 100644 index 8e850d08..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as unevaluated from "./meta/unevaluated.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format-annotation.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-secure.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/jtd-schema.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/jtd-schema.ts deleted file mode 100644 index c0198128..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/refs/jtd-schema.ts +++ /dev/null @@ -1,130 +0,0 @@ -import {SchemaObject} from "../types" - -type MetaSchema = (root: boolean) => SchemaObject - -const shared: MetaSchema = (root) => { - const sch: SchemaObject = { - nullable: {type: "boolean"}, - metadata: { - optionalProperties: { - union: {elements: {ref: "schema"}}, - }, - additionalProperties: true, - }, - } - if (root) sch.definitions = {values: {ref: "schema"}} - return sch -} - -const emptyForm: MetaSchema = (root) => ({ - optionalProperties: shared(root), -}) - -const refForm: MetaSchema = (root) => ({ - properties: { - ref: {type: "string"}, - }, - optionalProperties: shared(root), -}) - -const typeForm: MetaSchema = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}) - -const enumForm: MetaSchema = (root) => ({ - properties: { - enum: {elements: {type: "string"}}, - }, - optionalProperties: shared(root), -}) - -const elementsForm: MetaSchema = (root) => ({ - properties: { - elements: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const propertiesForm: MetaSchema = (root) => ({ - properties: { - properties: {values: {ref: "schema"}}, - }, - optionalProperties: { - optionalProperties: {values: {ref: "schema"}}, - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const optionalPropertiesForm: MetaSchema = (root) => ({ - properties: { - optionalProperties: {values: {ref: "schema"}}, - }, - optionalProperties: { - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const discriminatorForm: MetaSchema = (root) => ({ - properties: { - discriminator: {type: "string"}, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}) - -const valuesForm: MetaSchema = (root) => ({ - properties: { - values: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const schema: MetaSchema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}) - -const jtdMetaSchema: SchemaObject = { - definitions: { - schema: schema(false), - }, - ...schema(true), -} - -export default jtdMetaSchema diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/equal.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/equal.ts deleted file mode 100644 index 3cb00631..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/equal.ts +++ /dev/null @@ -1,7 +0,0 @@ -// https://github.com/ajv-validator/ajv/issues/889 -import * as equal from "fast-deep-equal" - -type Equal = typeof equal & {code: string} -;(equal as Equal).code = 'require("ajv/dist/runtime/equal").default' - -export default equal as Equal diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/parseJson.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/parseJson.ts deleted file mode 100644 index 472e5e50..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/parseJson.ts +++ /dev/null @@ -1,177 +0,0 @@ -const rxParseJson = /position\s(\d+)(?: \(line \d+ column \d+\))?$/ - -export function parseJson(s: string, pos: number): unknown { - let endPos: number | undefined - parseJson.message = undefined - let matches: RegExpExecArray | null - if (pos) s = s.slice(pos) - try { - parseJson.position = pos + s.length - return JSON.parse(s) - } catch (e) { - matches = rxParseJson.exec((e as Error).message) - if (!matches) { - parseJson.message = "unexpected end" - return undefined - } - endPos = +matches[1] - const c = s[endPos] - s = s.slice(0, endPos) - parseJson.position = pos + endPos - try { - return JSON.parse(s) - } catch (e1) { - parseJson.message = `unexpected token ${c}` - return undefined - } - } -} - -parseJson.message = undefined as string | undefined -parseJson.position = 0 as number -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson' - -export function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined { - let numStr = "" - let c: string - parseJsonNumber.message = undefined - if (s[pos] === "-") { - numStr += "-" - pos++ - } - if (s[pos] === "0") { - numStr += "0" - pos++ - } else { - if (!parseDigits(maxDigits)) { - errorMessage() - return undefined - } - } - if (maxDigits) { - parseJsonNumber.position = pos - return +numStr - } - if (s[pos] === ".") { - numStr += "." - pos++ - if (!parseDigits()) { - errorMessage() - return undefined - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e" - pos++ - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c - pos++ - } - if (!parseDigits()) { - errorMessage() - return undefined - } - } - parseJsonNumber.position = pos - return +numStr - - function parseDigits(maxLen?: number): boolean { - let digit = false - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true - numStr += c - pos++ - } - return digit - } - - function errorMessage(): void { - parseJsonNumber.position = pos - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end" - } -} - -parseJsonNumber.message = undefined as string | undefined -parseJsonNumber.position = 0 as number -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber' - -const escapedChars: {[X in string]?: string} = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -} - -const CODE_A: number = "a".charCodeAt(0) -const CODE_0: number = "0".charCodeAt(0) - -export function parseJsonString(s: string, pos: number): string | undefined { - let str = "" - let c: string | undefined - parseJsonString.message = undefined - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++] - if (c === '"') break - if (c === "\\") { - c = s[pos] - if (c in escapedChars) { - str += escapedChars[c] - pos++ - } else if (c === "u") { - pos++ - let count = 4 - let code = 0 - while (count--) { - code <<= 4 - c = s[pos] - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (c === undefined) { - errorMessage("unexpected end") - return undefined - } - c = c.toLowerCase() - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10 - } else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0 - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - pos++ - } - str += String.fromCharCode(code) - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } else if (c === undefined) { - errorMessage("unexpected end") - return undefined - } else { - if (c.charCodeAt(0) >= 0x20) { - str += c - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - } - } - parseJsonString.position = pos - return str - - function errorMessage(msg: string): void { - parseJsonString.position = pos - parseJsonString.message = msg - } -} - -parseJsonString.message = undefined as string | undefined -parseJsonString.position = 0 as number -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString' diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/quote.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/quote.ts deleted file mode 100644 index 1160e6a2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/quote.ts +++ /dev/null @@ -1,31 +0,0 @@ -const rxEscapable = - // eslint-disable-next-line no-control-regex, no-misleading-character-class - /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g - -const escaped: {[K in string]?: string} = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -} - -export default function quote(s: string): string { - rxEscapable.lastIndex = 0 - return ( - '"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a] - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) - }) - : s) + - '"' - ) -} - -quote.code = 'require("ajv/dist/runtime/quote").default' diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/re2.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/re2.ts deleted file mode 100644 index 0c769bc7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/re2.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2" - -type Re2 = typeof re2 & {code: string} -;(re2 as Re2).code = 'require("ajv/dist/runtime/re2").default' - -export default re2 as Re2 diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/timestamp.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/timestamp.ts deleted file mode 100644 index 1625f9a4..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/timestamp.ts +++ /dev/null @@ -1,46 +0,0 @@ -const DT_SEPARATOR = /t|\s/i -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/ -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - -export default function validTimestamp(str: string, allowDate: boolean): boolean { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt: string[] = str.split(DT_SEPARATOR) - return ( - (dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0])) - ) -} - -function validDate(str: string): boolean { - const matches: string[] | null = DATE.exec(str) - if (!matches) return false - const y: number = +matches[1] - const m: number = +matches[2] - const d: number = +matches[3] - return ( - m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0))) - ) -} - -function validTime(str: string): boolean { - const matches: string[] | null = TIME.exec(str) - if (!matches) return false - const hr: number = +matches[1] - const min: number = +matches[2] - const sec: number = +matches[3] - const tzH: number = +(matches[4] || 0) - const tzM: number = +(matches[5] || 0) - return ( - (hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60) - ) -} - -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default' diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/ucs2length.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/ucs2length.ts deleted file mode 100644 index 47d8292b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/ucs2length.ts +++ /dev/null @@ -1,20 +0,0 @@ -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -export default function ucs2length(str: string): number { - const len = str.length - let length = 0 - let pos = 0 - let value: number - while (pos < len) { - length++ - value = str.charCodeAt(pos++) - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos) - if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate - } - } - return length -} - -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default' diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/uri.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/uri.ts deleted file mode 100644 index 7dd35f9d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/uri.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js" - -type URI = typeof uri & {code: string} -;(uri as URI).code = 'require("ajv/dist/runtime/uri").default' - -export default uri as URI diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/validation_error.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/validation_error.ts deleted file mode 100644 index 2d19a46a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/runtime/validation_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {ErrorObject} from "../types" - -export default class ValidationError extends Error { - readonly errors: Partial[] - readonly ajv: true - readonly validation: true - - constructor(errors: Partial[]) { - super("validation failed") - this.errors = errors - this.ajv = this.validation = true - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/index.ts deleted file mode 100644 index b6129ce9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/index.ts +++ /dev/null @@ -1,100 +0,0 @@ -import type AjvCore from "../core" -import type {AnyValidateFunction, SourceCode} from "../types" -import type {SchemaEnv} from "../compile" -import {UsedScopeValues, UsedValueState, ValueScopeName, varKinds} from "../compile/codegen/scope" -import {_, nil, _Code, Code, getProperty, getEsmExportName} from "../compile/codegen/code" - -function standaloneCode( - ajv: AjvCore, - refsOrFunc?: {[K in string]?: string} | AnyValidateFunction -): string { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option") - } - const {_n} = ajv.scope.opts - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => - sch.meta ? undefined : ajv.compile(sch.schema) - ) - - function getValidate(id: string): AnyValidateFunction { - const v = ajv.getSchema(id) - if (!v) throw new Error(`moduleCode: no schema with id ${id}`) - return v - } - - function funcExportCode(source?: SourceCode): string { - const usedValues: UsedScopeValues = {} - const n = source?.validateName - const vCode = validateCode(usedValues, source) - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}` - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}` - } - - function multiExportsCode( - schemas: {[K in string]?: T}, - getValidateFunc: (schOrId: T) => AnyValidateFunction | undefined - ): string { - const usedValues: UsedScopeValues = {} - let code = _`"use strict";` - for (const name in schemas) { - const v = getValidateFunc(schemas[name] as T) - if (v) { - const vCode = validateCode(usedValues, v.source) - const exportSyntax = ajv.opts.code.esm - ? _`export const ${getEsmExportName(name)}` - : _`exports${getProperty(name)}` - code = _`${code}${_n}${exportSyntax} = ${v.source?.validateName};${_n}${vCode}` - } - } - return `${code}` - } - - function validateCode(usedValues: UsedScopeValues, s?: SourceCode): Code { - if (!s) throw new Error('moduleCode: function does not have "source" property') - if (usedState(s.validateName) === UsedValueState.Completed) return nil - setUsedState(s.validateName, UsedValueState.Started) - - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode) - const code = new _Code(`${scopeCode}${_n}${s.validateCode}`) - return s.evaluated ? _`${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code - - function refValidateCode(n: ValueScopeName): Code | undefined { - const vRef = n.value?.ref - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef as AnyValidateFunction - return validateCode(usedValues, v.source) - } else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const {validate, validateName} = vRef as SchemaEnv - if (!validateName) throw new Error("ajv internal error") - const def = ajv.opts.code.es5 ? varKinds.var : varKinds.const - const wrapper = _`${def} ${n} = {validate: ${validateName}};` - if (usedState(validateName) === UsedValueState.Started) return wrapper - const vCode = validateCode(usedValues, validate?.source) - return _`${wrapper}${_n}${vCode}` - } - return undefined - } - - function usedState(name: ValueScopeName): UsedValueState | undefined { - return usedValues[name.prefix]?.get(name) - } - - function setUsedState(name: ValueScopeName, state: UsedValueState): void { - const {prefix} = name - const names = (usedValues[prefix] = usedValues[prefix] || new Map()) - names.set(name, state) - } - } -} - -module.exports = exports = standaloneCode -Object.defineProperty(exports, "__esModule", {value: true}) - -export default standaloneCode diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/instance.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/instance.ts deleted file mode 100644 index c4b2c30b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/standalone/instance.ts +++ /dev/null @@ -1,36 +0,0 @@ -import Ajv, {AnySchema, AnyValidateFunction, ErrorObject} from "../core" -import standaloneCode from "." -import * as requireFromString from "require-from-string" - -export default class AjvPack { - errors?: ErrorObject[] | null // errors from the last validation - constructor(readonly ajv: Ajv) {} - - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise { - return Ajv.prototype.validate.call(this, schemaKeyRef, data) - } - - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction { - return this.getStandalone(this.ajv.compile(schema, meta)) - } - - getSchema(keyRef: string): AnyValidateFunction | undefined { - const v = this.ajv.getSchema(keyRef) - if (!v) return undefined - return this.getStandalone(v) - } - - private getStandalone(v: AnyValidateFunction): AnyValidateFunction { - return requireFromString(standaloneCode(this.ajv, v)) as AnyValidateFunction - } - - addSchema(...args: Parameters): AjvPack { - this.ajv.addSchema.call(this.ajv, ...args) - return this - } - - addKeyword(...args: Parameters): AjvPack { - this.ajv.addKeyword.call(this.ajv, ...args) - return this - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/index.ts deleted file mode 100644 index b5ef53ee..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/index.ts +++ /dev/null @@ -1,244 +0,0 @@ -import * as URI from "uri-js" -import type {CodeGen, Code, Name, ScopeValueSets, ValueScopeName} from "../compile/codegen" -import type {SchemaEnv, SchemaCxt, SchemaObjCxt} from "../compile" -import type {JSONType} from "../compile/rules" -import type {KeywordCxt} from "../compile/validate" -import type Ajv from "../core" - -interface _SchemaObject { - id?: string - $id?: string - $schema?: string - [x: string]: any // TODO -} - -export interface SchemaObject extends _SchemaObject { - id?: string - $id?: string - $schema?: string - $async?: false - [x: string]: any // TODO -} - -export interface AsyncSchema extends _SchemaObject { - $async: true -} - -export type AnySchemaObject = SchemaObject | AsyncSchema - -export type Schema = SchemaObject | boolean - -export type AnySchema = Schema | AsyncSchema - -export type SchemaMap = {[Key in string]?: AnySchema} - -export interface SourceCode { - validateName: ValueScopeName - validateCode: string - scopeValues: ScopeValueSets - evaluated?: Code -} - -export interface DataValidationCxt { - instancePath: string - parentData: {[K in T]: any} // object or array - parentDataProperty: T // string or number - rootData: Record | any[] - dynamicAnchors: {[Ref in string]?: ValidateFunction} -} - -export interface ValidateFunction { - // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T - errors?: null | ErrorObject[] - evaluated?: Evaluated - schema: AnySchema - schemaEnv: SchemaEnv - source?: SourceCode -} - -export interface JTDParser { - (json: string): T | undefined - message?: string - position?: number -} - -export type EvaluatedProperties = {[K in string]?: true} | true - -export type EvaluatedItems = number | true - -export interface Evaluated { - // determined at compile time if staticProps/Items is true - props?: EvaluatedProperties - items?: EvaluatedItems - // whether props/items determined at compile time - dynamicProps: boolean - dynamicItems: boolean -} - -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise - $async: true -} - -export type AnyValidateFunction = ValidateFunction | AsyncValidateFunction - -export interface ErrorObject, S = unknown> { - keyword: K - instancePath: string - schemaPath: string - params: P - // Added to validation errors of "propertyNames" keyword schema - propertyName?: string - // Excluded if option `messages` set to false. - message?: string - // These are added with the `verbose` option. - schema?: S - parentSchema?: AnySchemaObject - data?: unknown -} - -export type ErrorNoParams = ErrorObject, S> - -interface _KeywordDef { - keyword: string | string[] - type?: JSONType | JSONType[] // data types that keyword applies to - schemaType?: JSONType | JSONType[] // allowed type(s) of keyword value in the schema - allowUndefined?: boolean // used for keywords that can be invoked by other keywords, not being present in the schema - $data?: boolean // keyword supports [$data reference](../../docs/guide/combining-schemas.md#data-reference) - implements?: string[] // other schema keywords that this keyword implements - before?: string // keyword should be executed before this keyword (should be applicable to the same type) - post?: boolean // keyword should be executed after other keywords without post flag - metaSchema?: AnySchemaObject // meta-schema for keyword schema value - it is better to use schemaType where applicable - validateSchema?: AnyValidateFunction // compiled keyword metaSchema - should not be passed - dependencies?: string[] // keywords that must be present in the same schema - error?: KeywordErrorDefinition - $dataError?: KeywordErrorDefinition -} - -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void - trackErrors?: boolean -} - -export type MacroKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaCxt -) => AnySchema - -export type CompileKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaObjCxt -) => DataValidateFunction - -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise - errors?: Partial[] -} - -export interface SchemaValidateFunction { - ( - schema: any, - data: any, - parentSchema?: AnySchemaObject, - dataCxt?: DataValidationCxt - ): boolean | Promise - errors?: Partial[] -} - -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction - compile?: CompileKeywordFunc - // schema: false makes validate not to expect schema (DataValidateFunction) - schema?: boolean // requires "validate" - modifying?: boolean - async?: boolean - valid?: boolean - errors?: boolean | "full" -} - -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc -} - -export type KeywordDefinition = - | CodeKeywordDefinition - | FuncKeywordDefinition - | MacroKeywordDefinition - -export type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[] - schemaType: JSONType[] -} - -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code) - params?: Code | ((cxt: KeywordErrorCxt) => Code) -} - -export type Vocabulary = (KeywordDefinition | string)[] - -export interface KeywordErrorCxt { - gen: CodeGen - keyword: string - data: Name - $data?: string | false - schema: any // TODO - parentSchema?: AnySchemaObject - schemaCode: Code | number | boolean - schemaValue: Code | number | boolean - schemaType?: JSONType[] - errsCount?: Name - params: KeywordCxtParams - it: SchemaCxt -} - -export type KeywordCxtParams = {[P in string]?: Code | string | number} - -export type FormatValidator = (data: T) => boolean - -export type FormatCompare = (data1: T, data2: T) => number | undefined - -export type AsyncFormatValidator = (data: T) => Promise - -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: FormatValidator | (T extends string ? string | RegExp : never) - async?: false | undefined - compare?: FormatCompare -} - -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: AsyncFormatValidator - async: true - compare?: FormatCompare -} - -export type AddedFormat = - | true - | RegExp - | FormatValidator - | FormatDefinition - | FormatDefinition - | AsyncFormatDefinition - | AsyncFormatDefinition - -export type Format = AddedFormat | string - -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike - code: string -} - -export interface RegExpLike { - test: (s: string) => boolean -} - -export interface UriResolver { - parse(uri: string): URI.URIComponents - resolve(base: string, path: string): string - serialize(component: URI.URIComponents): string -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/json-schema.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/json-schema.ts deleted file mode 100644 index 281a38bd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/json-schema.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* eslint-disable @typescript-eslint/no-empty-interface */ -type StrictNullChecksWrapper = undefined extends null - ? `strictNullChecks must be true in tsconfig to use ${Name}` - : Type - -type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void - ? I - : never - -export type SomeJSONSchema = UncheckedJSONSchemaType - -type UncheckedPartialSchema = Partial> - -export type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema> - -type JSONType = IsPartial extends true - ? T | undefined - : T - -interface NumberKeywords { - minimum?: number - maximum?: number - exclusiveMinimum?: number - exclusiveMaximum?: number - multipleOf?: number - format?: string -} - -interface StringKeywords { - minLength?: number - maxLength?: number - pattern?: string - format?: string -} - -type UncheckedJSONSchemaType = ( - | // these two unions allow arbitrary unions of types - { - anyOf: readonly UncheckedJSONSchemaType[] - } - | { - oneOf: readonly UncheckedJSONSchemaType[] - } - // this union allows for { type: (primitive)[] } style schemas - | ({ - type: readonly (T extends number - ? JSONType<"number" | "integer", IsPartial> - : T extends string - ? JSONType<"string", IsPartial> - : T extends boolean - ? JSONType<"boolean", IsPartial> - : never)[] - } & UnionToIntersection< - T extends number - ? NumberKeywords - : T extends string - ? StringKeywords - : T extends boolean - ? // eslint-disable-next-line @typescript-eslint/ban-types - {} - : never - >) - // this covers "normal" types; it's last so typescript looks to it first for errors - | ((T extends number - ? { - type: JSONType<"number" | "integer", IsPartial> - } & NumberKeywords - : T extends string - ? { - type: JSONType<"string", IsPartial> - } & StringKeywords - : T extends boolean - ? { - type: JSONType<"boolean", IsPartial> - } - : T extends readonly [any, ...any[]] - ? { - // JSON AnySchema for tuple - type: JSONType<"array", IsPartial> - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable - } & {length: T["length"]} - minItems: T["length"] - } & ({maxItems: T["length"]} | {additionalItems: false}) - : T extends readonly any[] - ? { - type: JSONType<"array", IsPartial> - items: UncheckedJSONSchemaType - contains?: UncheckedPartialSchema - minItems?: number - maxItems?: number - minContains?: number - maxContains?: number - uniqueItems?: true - additionalItems?: never - } - : T extends Record - ? { - // JSON AnySchema for records and dictionaries - // "required" is not optional because it is often forgotten - // "properties" are optional for more concise dictionary schemas - // "patternProperties" and can be only used with interfaces that have string index - type: JSONType<"object", IsPartial> - additionalProperties?: boolean | UncheckedJSONSchemaType - unevaluatedProperties?: boolean | UncheckedJSONSchemaType - properties?: IsPartial extends true - ? Partial> - : UncheckedPropertiesSchema - patternProperties?: Record> - propertyNames?: Omit, "type"> & {type?: "string"} - dependencies?: {[K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema} - dependentRequired?: {[K in keyof T]?: Readonly<(keyof T)[]>} - dependentSchemas?: {[K in keyof T]?: UncheckedPartialSchema} - minProperties?: number - maxProperties?: number - } & (IsPartial extends true // "required" is not necessary if it's a non-partial type with no required keys // are listed it only asserts that optional cannot be listed. // "required" type does not guarantee that all required properties - ? {required: Readonly<(keyof T)[]>} - : [UncheckedRequiredMembers] extends [never] - ? {required?: Readonly[]>} - : {required: Readonly[]>}) - : T extends null - ? { - type: JSONType<"null", IsPartial> - nullable: true - } - : never) & { - allOf?: Readonly[]> - anyOf?: Readonly[]> - oneOf?: Readonly[]> - if?: UncheckedPartialSchema - then?: UncheckedPartialSchema - else?: UncheckedPartialSchema - not?: UncheckedPartialSchema - }) -) & { - [keyword: string]: any - $id?: string - $ref?: string - $defs?: Record> - definitions?: Record> -} - -export type JSONSchemaType = StrictNullChecksWrapper< - "JSONSchemaType", - UncheckedJSONSchemaType -> - -type Known = - | {[key: string]: Known} - | [Known, ...Known[]] - | Known[] - | number - | string - | boolean - | null - -type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | {$ref: string} -} - -export type PropertiesSchema = StrictNullChecksWrapper< - "PropertiesSchema", - UncheckedPropertiesSchema -> - -type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -export type RequiredMembers = StrictNullChecksWrapper< - "RequiredMembers", - UncheckedRequiredMembers -> - -type Nullable = undefined extends T - ? { - nullable: true - const?: null // any non-null value would fail `const: null`, `null` would fail any other value in const - enum?: Readonly<(T | null)[]> // `null` must be explicitly included in "enum" for `null` to pass - default?: T | null - } - : { - nullable?: false - const?: T - enum?: Readonly - default?: T - } diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/jtd-schema.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/jtd-schema.ts deleted file mode 100644 index 61b2bde8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/types/jtd-schema.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** numeric strings */ -type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -/** string strings */ -type StringType = "string" | "timestamp" - -/** Generic JTD Schema without inference of the represented type */ -export type SomeJTDSchemaType = ( - | // ref - {ref: string} - // primitives - | {type: NumberType | StringType | "boolean"} - // enum - | {enum: string[]} - // elements - | {elements: SomeJTDSchemaType} - // values - | {values: SomeJTDSchemaType} - // properties - | { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - | { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - // discriminator - | {discriminator: string; mapping: Record} - // empty - // NOTE see the end of - // https://github.com/typescript-eslint/typescript-eslint/issues/2063#issuecomment-675156492 - // eslint-disable-next-line @typescript-eslint/ban-types - | {} -) & { - nullable?: boolean - metadata?: Record - definitions?: Record -} - -/** required keys of an object, not undefined */ -type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -/** optional or undifined-able keys of an object */ -type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never -}[keyof T] - -/** type is true if T is a union type */ -type IsUnion_ = false extends ( - T extends unknown ? ([U] extends [T] ? false : true) : never -) - ? false - : true -type IsUnion = IsUnion_ - -/** type is true if T is identically E */ -type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false - -/** type is true if T or null is identically E or null*/ -type NullTypeEquality = TypeEquality - -/** gets only the string literals of a type or null if a type isn't a string literal */ -type EnumString = [T] extends [never] - ? null - : T extends string - ? string extends T - ? null - : T - : null - -/** true if type is a union of string literals */ -type IsEnum = null extends EnumString ? false : true - -/** true only if all types are array types (not tuples) */ -// NOTE relies on the fact that tuples don't have an index at 0.5, but arrays -// have an index at every number -type IsElements = false extends IsUnion - ? [T] extends [readonly unknown[]] - ? undefined extends T[0.5] - ? false - : true - : false - : false - -/** true if the the type is a values type */ -type IsValues = false extends IsUnion ? TypeEquality : false - -/** true if type is a properties type and Union is false, or type is a discriminator type and Union is true */ -type IsRecord = Union extends IsUnion - ? null extends EnumString - ? false - : true - : false - -/** true if type represents an empty record */ -type IsEmptyRecord = [T] extends [Record] - ? [T] extends [never] - ? false - : true - : false - -/** actual schema */ -export type JTDSchemaType = Record> = ( - | // refs - where null wasn't specified, must match exactly - (null extends EnumString - ? never - : - | ({[K in keyof D]: [T] extends [D[K]] ? {ref: K} : never}[keyof D] & {nullable?: false}) - // nulled refs - if ref is nullable and nullable is specified, then it can - // match either null or non-null definitions - | (null extends T - ? { - [K in keyof D]: [Exclude] extends [Exclude] - ? {ref: K} - : never - }[keyof D] & {nullable: true} - : never)) - // empty - empty schemas also treat nullable differently in that it's now fully ignored - | (unknown extends T ? {nullable?: boolean} : never) - // all other types // numbers - only accepts the type number - | ((true extends NullTypeEquality - ? {type: NumberType} - : // booleans - accepts the type boolean - true extends NullTypeEquality - ? {type: "boolean"} - : // strings - only accepts the type string - true extends NullTypeEquality - ? {type: StringType} - : // strings - only accepts the type Date - true extends NullTypeEquality - ? {type: "timestamp"} - : // enums - only accepts union of string literals - // TODO we can't actually check that everything in the union was specified - true extends IsEnum> - ? {enum: EnumString>[]} - : // arrays - only accepts arrays, could be array of unions to be resolved later - true extends IsElements> - ? T extends readonly (infer E)[] - ? { - elements: JTDSchemaType - } - : never - : // empty properties - true extends IsEmptyRecord> - ? - | {properties: Record; optionalProperties?: Record} - | {optionalProperties: Record} - : // values - true extends IsValues> - ? T extends Record - ? { - values: JTDSchemaType - } - : never - : // properties - true extends IsRecord, false> - ? ([RequiredKeys>] extends [never] - ? { - properties?: Record - } - : { - properties: {[K in RequiredKeys]: JTDSchemaType} - }) & - ([OptionalKeys>] extends [never] - ? { - optionalProperties?: Record - } - : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D> - } - }) & { - additionalProperties?: boolean - } - : // discriminator - true extends IsRecord, true> - ? { - [K in keyof Exclude]-?: Exclude[K] extends string - ? { - discriminator: K - mapping: { - // TODO currently allows descriminator to be present in schema - [M in Exclude[K]]: JTDSchemaType< - Omit ? T : never, K>, - D - > - } - } - : never - }[keyof Exclude] - : never) & - (null extends T - ? { - nullable: true - } - : {nullable?: false})) -) & { - // extra properties - metadata?: Record - // TODO these should only be allowed at the top level - definitions?: {[K in keyof D]: JTDSchemaType} -} - -type JTDDataDef> = - | // ref - (S extends {ref: string} - ? D extends {[K in S["ref"]]: infer V} - ? JTDDataDef - : never - : // type - S extends {type: NumberType} - ? number - : S extends {type: "boolean"} - ? boolean - : S extends {type: "string"} - ? string - : S extends {type: "timestamp"} - ? string | Date - : // enum - S extends {enum: readonly (infer E)[]} - ? string extends E - ? never - : [E] extends [string] - ? E - : never - : // elements - S extends {elements: infer E} - ? JTDDataDef[] - : // properties - S extends { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : S extends { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : // values - S extends {values: infer V} - ? Record> - : // discriminator - S extends {discriminator: infer M; mapping: Record} - ? [M] extends [string] - ? { - [K in keyof S["mapping"]]: JTDDataDef & {[KM in M]: K} - }[keyof S["mapping"]] - : never - : // empty - unknown) - | (S extends {nullable: true} ? null : never) - -export type JTDDataType = S extends {definitions: Record} - ? JTDDataDef - : JTDDataDef> diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts deleted file mode 100644 index 755e5b3d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type AdditionalItemsError = ErrorObject<"additionalItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "additionalItems" as const, - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {parentSchema, it} = cxt - const {items} = parentSchema - if (!Array.isArray(items)) { - checkStrictMode(it, '"additionalItems" is ignored when "items" is not an array of schemas') - return - } - validateAdditionalItems(cxt, items) - }, -} - -export function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void { - const {gen, schema, data, keyword, it} = cxt - it.items = true - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items.length}) - cxt.pass(_`${len} <= ${items.length}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items.length}`) // TODO var - gen.if(not(valid), () => validateItems(valid)) - cxt.ok(valid) - } - - function validateItems(valid: Name): void { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts deleted file mode 100644 index bfb511ce..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +++ /dev/null @@ -1,118 +0,0 @@ -import type { - CodeKeywordDefinition, - AddedKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import {allSchemaProperties, usePattern, isOwnProperty} from "../code" -import {_, nil, or, not, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import type {SubschemaArgs} from "../../compile/validate/subschema" -import {alwaysValidSchema, schemaRefOrVal, Type} from "../../compile/util" - -export type AdditionalPropertiesError = ErrorObject< - "additionalProperties", - {additionalProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have additional properties", - params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -} - -const def: CodeKeywordDefinition & AddedKeywordDefinition = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const {gen, schema, parentSchema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, opts} = it - it.props = true - if (opts.removeAdditional !== "all" && alwaysValidSchema(it, schema)) return - const props = allSchemaProperties(parentSchema.properties) - const patProps = allSchemaProperties(parentSchema.patternProperties) - checkAdditionalProperties() - cxt.ok(_`${errsCount} === ${N.errors}`) - - function checkAdditionalProperties(): void { - gen.forIn("key", data, (key: Name) => { - if (!props.length && !patProps.length) additionalPropertyCode(key) - else gen.if(isAdditional(key), () => additionalPropertyCode(key)) - }) - } - - function isAdditional(key: Name): Code { - let definedProp: Code - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema.properties, "properties") - definedProp = isOwnProperty(gen, propsSchema as Code, key) - } else if (props.length) { - definedProp = or(...props.map((p) => _`${key} === ${p}`)) - } else { - definedProp = nil - } - if (patProps.length) { - definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`)) - } - return not(definedProp) - } - - function deleteAdditional(key: Name): void { - gen.code(_`delete ${data}[${key}]`) - } - - function additionalPropertyCode(key: Name): void { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key) - return - } - - if (schema === false) { - cxt.setParams({additionalProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false) - gen.if(not(valid), () => { - cxt.reset() - deleteAdditional(key) - }) - } else { - applyAdditionalSchema(key, valid) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - } - - function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void { - const subschema: SubschemaArgs = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: Type.Str, - } - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }) - } - cxt.subschema(subschema, valid) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts deleted file mode 100644 index cdfa86ff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "allOf", - schemaType: "array", - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const valid = gen.name("valid") - schema.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - const schCxt = cxt.subschema({keyword: "allOf", schemaProp: i}, valid) - cxt.ok(valid) - cxt.mergeEvaluated(schCxt) - }) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts deleted file mode 100644 index bd331b5a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import {validateUnion} from "../code" - -export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]> - -const def: CodeKeywordDefinition = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in anyOf"}, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts deleted file mode 100644 index d88675c6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type ContainsError = ErrorObject< - "contains", - {minContains: number; maxContains?: number}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: ({params: {min, max}}) => - max === undefined - ? str`must contain at least ${min} valid item(s)` - : str`must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({params: {min, max}}) => - max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - let min: number - let max: number | undefined - const {minContains, maxContains} = parentSchema - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains - max = maxContains - } else { - min = 1 - } - const len = gen.const("len", _`${data}.length`) - cxt.setParams({min, max}) - if (max === undefined && min === 0) { - checkStrictMode(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`) - return - } - if (max !== undefined && min > max) { - checkStrictMode(it, `"minContains" > "maxContains" is always invalid`) - cxt.fail() - return - } - if (alwaysValidSchema(it, schema)) { - let cond = _`${len} >= ${min}` - if (max !== undefined) cond = _`${cond} && ${len} <= ${max}` - cxt.pass(cond) - return - } - - it.items = true - const valid = gen.name("valid") - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())) - } else if (min === 0) { - gen.let(valid, true) - if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount) - } else { - gen.let(valid, false) - validateItemsWithCount() - } - cxt.result(valid, () => cxt.reset()) - - function validateItemsWithCount(): void { - const schValid = gen.name("_valid") - const count = gen.let("count", 0) - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))) - } - - function validateItems(_valid: Name, block: () => void): void { - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword: "contains", - dataProp: i, - dataPropType: Type.Num, - compositeRule: true, - }, - _valid - ) - block() - }) - } - - function checkLimits(count: Name): void { - gen.code(_`${count}++`) - if (max === undefined) { - gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break()) - } else { - gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break()) - if (min === 1) gen.assign(valid, true) - else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true)) - } - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts deleted file mode 100644 index f6761128..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +++ /dev/null @@ -1,112 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaMap, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from "../code" - -export type PropertyDependencies = {[K in string]?: string[]} - -export interface DependenciesErrorParams { - property: string - missingProperty: string - depsCount: number - deps: string // TODO change to string[] -} - -type SchemaDependencies = SchemaMap - -export type DependenciesError = ErrorObject< - "dependencies", - DependenciesErrorParams, - {[K in string]?: string[] | AnySchema} -> - -export const error: KeywordErrorDefinition = { - message: ({params: {property, depsCount, deps}}) => { - const property_ies = depsCount === 1 ? "property" : "properties" - return str`must have ${property_ies} ${deps} when property ${property} is present` - }, - params: ({params: {property, depsCount, deps, missingProperty}}) => - _`{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -} - -const def: CodeKeywordDefinition = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const [propDeps, schDeps] = splitDependencies(cxt) - validatePropertyDeps(cxt, propDeps) - validateSchemaDeps(cxt, schDeps) - }, -} - -function splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] { - const propertyDeps: PropertyDependencies = {} - const schemaDeps: SchemaDependencies = {} - for (const key in schema) { - if (key === "__proto__") continue - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps - deps[key] = schema[key] - } - return [propertyDeps, schemaDeps] -} - -export function validatePropertyDeps( - cxt: KeywordCxt, - propertyDeps: {[K in string]?: string[]} = cxt.schema -): void { - const {gen, data, it} = cxt - if (Object.keys(propertyDeps).length === 0) return - const missing = gen.let("missing") - for (const prop in propertyDeps) { - const deps = propertyDeps[prop] as string[] - if (deps.length === 0) continue - const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties) - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }) - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - checkReportMissingProp(cxt, depProp) - } - }) - } else { - gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`) - reportMissingProp(cxt, missing) - gen.else() - } - } -} - -export function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - for (const prop in schemaDeps) { - if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => { - const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid) - cxt.mergeValidEvaluated(schCxt, valid) - }, - () => gen.var(valid, true) // TODO var - ) - cxt.ok(valid) - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts deleted file mode 100644 index dbd3ae45..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateSchemaDeps} from "./dependencies" - -const def: CodeKeywordDefinition = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => validateSchemaDeps(cxt), -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts deleted file mode 100644 index 5a40d5e3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {SchemaObjCxt} from "../../compile" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" - -export type IfKeywordError = ErrorObject<"if", {failingKeyword: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params}) => str`must match "${params.ifClause}" schema`, - params: ({params}) => _`{failingKeyword: ${params.ifClause}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, parentSchema, it} = cxt - if (parentSchema.then === undefined && parentSchema.else === undefined) { - checkStrictMode(it, '"if" without "then" and "else" is ignored') - } - const hasThen = hasSchema(it, "then") - const hasElse = hasSchema(it, "else") - if (!hasThen && !hasElse) return - - const valid = gen.let("valid", true) - const schValid = gen.name("_valid") - validateIf() - cxt.reset() - - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause") - cxt.setParams({ifClause}) - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)) - } else if (hasThen) { - gen.if(schValid, validateClause("then")) - } else { - gen.if(not(schValid), validateClause("else")) - } - - cxt.pass(valid, () => cxt.error(true)) - - function validateIf(): void { - const schCxt = cxt.subschema( - { - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - schValid - ) - cxt.mergeEvaluated(schCxt) - } - - function validateClause(keyword: string, ifClause?: Name): () => void { - return () => { - const schCxt = cxt.subschema({keyword}, schValid) - gen.assign(valid, schValid) - cxt.mergeValidEvaluated(schCxt, valid) - if (ifClause) gen.assign(ifClause, _`${keyword}`) - else cxt.setParams({ifClause: keyword}) - } - } - }, -} - -function hasSchema(it: SchemaObjCxt, keyword: string): boolean { - const schema = it.schema[keyword] - return schema !== undefined && !alwaysValidSchema(it, schema) -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts deleted file mode 100644 index fc527169..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type {ErrorNoParams, Vocabulary} from "../../types" -import additionalItems, {AdditionalItemsError} from "./additionalItems" -import prefixItems from "./prefixItems" -import items from "./items" -import items2020, {ItemsError} from "./items2020" -import contains, {ContainsError} from "./contains" -import dependencies, {DependenciesError} from "./dependencies" -import propertyNames, {PropertyNamesError} from "./propertyNames" -import additionalProperties, {AdditionalPropertiesError} from "./additionalProperties" -import properties from "./properties" -import patternProperties from "./patternProperties" -import notKeyword, {NotKeywordError} from "./not" -import anyOf, {AnyOfError} from "./anyOf" -import oneOf, {OneOfError} from "./oneOf" -import allOf from "./allOf" -import ifKeyword, {IfKeywordError} from "./if" -import thenElse from "./thenElse" - -export default function getApplicator(draft2020 = false): Vocabulary { - const applicator = [ - // any - notKeyword, - anyOf, - oneOf, - allOf, - ifKeyword, - thenElse, - // object - propertyNames, - additionalProperties, - dependencies, - properties, - patternProperties, - ] - // array - if (draft2020) applicator.push(prefixItems, items2020) - else applicator.push(additionalItems, items) - applicator.push(contains) - return applicator -} - -export type ApplicatorKeywordError = - | ErrorNoParams<"false schema"> - | AdditionalItemsError - | ItemsError - | ContainsError - | AdditionalPropertiesError - | DependenciesError - | IfKeywordError - | AnyOfError - | OneOfError - | NotKeywordError - | PropertyNamesError diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts deleted file mode 100644 index 033cb397..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {alwaysValidSchema, mergeEvaluated, checkStrictMode} from "../../compile/util" -import {validateArray} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt: KeywordCxt) { - const {schema, it} = cxt - if (Array.isArray(schema)) return validateTuple(cxt, "additionalItems", schema) - it.items = true - if (alwaysValidSchema(it, schema)) return - cxt.ok(validateArray(cxt)) - }, -} - -export function validateTuple( - cxt: KeywordCxt, - extraItems: string, - schArr: AnySchema[] = cxt.schema -): void { - const {gen, parentSchema, data, keyword, it} = cxt - checkStrictTuple(parentSchema) - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = mergeEvaluated.items(gen, schArr.length, it.items) - } - const valid = gen.name("valid") - const len = gen.const("len", _`${data}.length`) - schArr.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - gen.if(_`${len} > ${i}`, () => - cxt.subschema( - { - keyword, - schemaProp: i, - dataProp: i, - }, - valid - ) - ) - cxt.ok(valid) - }) - - function checkStrictTuple(sch: AnySchemaObject): void { - const {opts, errSchemaPath} = it - const l = schArr.length - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false) - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"` - checkStrictMode(it, msg, opts.strictTuples) - } - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts deleted file mode 100644 index 2a99b08d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {validateAdditionalItems} from "./additionalItems" - -export type ItemsError = ErrorObject<"items", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {schema, parentSchema, it} = cxt - const {prefixItems} = parentSchema - it.items = true - if (alwaysValidSchema(it, schema)) return - if (prefixItems) validateAdditionalItems(cxt, prefixItems) - else cxt.ok(validateArray(cxt)) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts deleted file mode 100644 index 8691db0b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -export type NotKeywordError = ErrorNoParams<"not", AnySchema> - -const def: CodeKeywordDefinition = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) { - cxt.fail() - return - } - - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - valid - ) - - cxt.failResult( - valid, - () => cxt.reset(), - () => cxt.error() - ) - }, - error: {message: "must NOT be valid"}, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts deleted file mode 100644 index c25353ff..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, Name} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {SchemaCxt} from "../../compile" - -export type OneOfError = ErrorObject< - "oneOf", - {passingSchemas: [number, number] | null}, - AnySchema[] -> - -const error: KeywordErrorDefinition = { - message: "must match exactly one schema in oneOf", - params: ({params}) => _`{passingSchemas: ${params.passing}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - if (it.opts.discriminator && parentSchema.discriminator) return - const schArr: AnySchema[] = schema - const valid = gen.let("valid", false) - const passing = gen.let("passing", null) - const schValid = gen.name("_valid") - cxt.setParams({passing}) - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - - gen.block(validateOneOf) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) - - function validateOneOf(): void { - schArr.forEach((sch: AnySchema, i: number) => { - let schCxt: SchemaCxt | undefined - if (alwaysValidSchema(it, sch)) { - gen.var(schValid, true) - } else { - schCxt = cxt.subschema( - { - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, - schValid - ) - } - - if (i > 0) { - gen - .if(_`${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, _`[${passing}, ${i}]`) - .else() - } - - gen.if(schValid, () => { - gen.assign(valid, true) - gen.assign(passing, i) - if (schCxt) cxt.mergeEvaluated(schCxt, Name) - }) - }) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts deleted file mode 100644 index ea624e23..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {allSchemaProperties, usePattern} from "../code" -import {_, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" -import {evaluatedPropsToName, Type} from "../../compile/util" -import {AnySchema} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, data, parentSchema, it} = cxt - const {opts} = it - const patterns = allSchemaProperties(schema) - const alwaysValidPatterns = patterns.filter((p) => - alwaysValidSchema(it, schema[p] as AnySchema) - ) - - if ( - patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true)) - ) { - return - } - - const checkProperties = - opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties - const valid = gen.name("valid") - if (it.props !== true && !(it.props instanceof Name)) { - it.props = evaluatedPropsToName(gen, it.props) - } - const {props} = it - validatePatternProperties() - - function validatePatternProperties(): void { - for (const pat of patterns) { - if (checkProperties) checkMatchingProperties(pat) - if (it.allErrors) { - validateProperties(pat) - } else { - gen.var(valid, true) // TODO var - validateProperties(pat) - gen.if(valid) - } - } - } - - function checkMatchingProperties(pat: string): void { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - checkStrictMode( - it, - `property ${prop} matches pattern ${pat} (use allowMatchingProperties)` - ) - } - } - } - - function validateProperties(pat: string): void { - gen.forIn("key", data, (key) => { - gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat) - if (!alwaysValid) { - cxt.subschema( - { - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - } - - if (it.opts.unevaluated && props !== true) { - gen.assign(_`${props}[${key}]`, true) - } else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if(not(valid), () => gen.break()) - } - }) - }) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts deleted file mode 100644 index 008fb2db..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateTuple} from "./items" - -const def: CodeKeywordDefinition = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => validateTuple(cxt, "items"), -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts deleted file mode 100644 index a55b19ce..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties} from "../code" -import {alwaysValidSchema, toHash, mergeEvaluated} from "../../compile/util" -import apDef from "./additionalProperties" - -const def: CodeKeywordDefinition = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - apDef.code(new KeywordCxt(it, apDef, "additionalProperties")) - } - const allProps = allSchemaProperties(schema) - for (const prop of allProps) { - it.definedProperties.add(prop) - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = mergeEvaluated.props(gen, toHash(allProps), it.props) - } - const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p])) - if (properties.length === 0) return - const valid = gen.name("valid") - - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop) - } else { - gen.if(propertyInData(gen, data, prop, it.opts.ownProperties)) - applyPropertySchema(prop) - if (!it.allErrors) gen.else().var(valid, true) - gen.endIf() - } - cxt.it.definedProperties.add(prop) - cxt.ok(valid) - } - - function hasDefault(prop: string): boolean | undefined { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined - } - - function applyPropertySchema(prop: string): void { - cxt.subschema( - { - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, - valid - ) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts deleted file mode 100644 index 1c54d605..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" - -export type PropertyNamesError = ErrorObject<"propertyNames", {propertyName: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: "property name must be valid", - params: ({params}) => _`{propertyName: ${params.propertyName}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - - gen.forIn("key", data, (key) => { - cxt.setParams({propertyName: key}) - cxt.subschema( - { - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, - valid - ) - gen.if(not(valid), () => { - cxt.error(true) - if (!it.allErrors) gen.break() - }) - }) - - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts deleted file mode 100644 index 5055182e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.if === undefined) checkStrictMode(it, `"${keyword}" without "if" is ignored`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/code.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/code.ts deleted file mode 100644 index 92cdd5b0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -import type {AnySchema, SchemaMap} from "../types" -import type {SchemaCxt} from "../compile" -import type {KeywordCxt} from "../compile/validate" -import {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from "../compile/codegen" -import {alwaysValidSchema, Type} from "../compile/util" -import N from "../compile/names" -import {useFunc} from "../compile/util" -export function checkReportMissingProp(cxt: KeywordCxt, prop: string): void { - const {gen, data, it} = cxt - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({missingProperty: _`${prop}`}, true) - cxt.error() - }) -} - -export function checkMissingProp( - {gen, data, it: {opts}}: KeywordCxt, - properties: string[], - missing: Name -): Code { - return or( - ...properties.map((prop) => - and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`) - ) - ) -} - -export function reportMissingProp(cxt: KeywordCxt, missing: Name): void { - cxt.setParams({missingProperty: missing}, true) - cxt.error() -} - -export function hasPropFunc(gen: CodeGen): Name { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: _`Object.prototype.hasOwnProperty`, - }) -} - -export function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code { - return _`${hasPropFunc(gen)}.call(${data}, ${property})` -} - -export function propertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} !== undefined` - return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond -} - -export function noPropertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} === undefined` - return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond -} - -export function allSchemaProperties(schemaMap?: SchemaMap): string[] { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [] -} - -export function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] { - return allSchemaProperties(schemaMap).filter( - (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema) - ) -} - -export function callValidateCode( - {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt, - func: Code, - context: Code, - passSchema?: boolean -): Code { - const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data - const valCxt: [Name, Code | number][] = [ - [N.instancePath, strConcat(N.instancePath, errorPath)], - [N.parentData, it.parentData], - [N.parentDataProperty, it.parentDataProperty], - [N.rootData, N.rootData], - ] - if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors]) - const args = _`${dataAndSchema}, ${gen.object(...valCxt)}` - return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})` -} - -const newRegExp = _`new RegExp` - -export function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name { - const u = opts.unicodeRegExp ? "u" : "" - const {regExp} = opts.code - const rx = regExp(pattern, u) - - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: _`${regExp.code === "new RegExp" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`, - }) -} - -export function validateArray(cxt: KeywordCxt): Name { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - if (it.allErrors) { - const validArr = gen.let("valid", true) - validateItems(() => gen.assign(validArr, false)) - return validArr - } - gen.var(valid, true) - validateItems(() => gen.break()) - return valid - - function validateItems(notValid: () => void): void { - const len = gen.const("len", _`${data}.length`) - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword, - dataProp: i, - dataPropType: Type.Num, - }, - valid - ) - gen.if(not(valid), notValid) - }) - } -} - -export function validateUnion(cxt: KeywordCxt): void { - const {gen, schema, keyword, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch)) - if (alwaysValid && !it.opts.unevaluated) return - - const valid = gen.let("valid", false) - const schValid = gen.name("_valid") - - gen.block(() => - schema.forEach((_sch: AnySchema, i: number) => { - const schCxt = cxt.subschema( - { - keyword, - schemaProp: i, - compositeRule: true, - }, - schValid - ) - gen.assign(valid, _`${valid} || ${schValid}`) - const merged = cxt.mergeValidEvaluated(schCxt, schValid) - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) gen.if(not(valid)) - }) - ) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/id.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/id.ts deleted file mode 100644 index aa36c4bb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/id.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID') - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/index.ts deleted file mode 100644 index e63e2895..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {Vocabulary} from "../../types" -import idKeyword from "./id" -import refKeyword from "./ref" - -const core: Vocabulary = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - {keyword: "$comment"}, - "definitions", - idKeyword, - refKeyword, -] - -export default core diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts deleted file mode 100644 index 5d59fbcb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import MissingRefError from "../../compile/ref_error" -import {callValidateCode} from "../code" -import {_, nil, stringify, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, resolveRef} from "../../compile" -import {mergeEvaluated} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$ref", - schemaType: "string", - code(cxt: KeywordCxt): void { - const {gen, schema: $ref, it} = cxt - const {baseId, schemaEnv: env, validateName, opts, self} = it - const {root} = env - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef() - const schOrEnv = resolveRef.call(self, root, baseId, $ref) - if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref) - if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv) - return inlineRefSchema(schOrEnv) - - function callRootRef(): void { - if (env === root) return callRef(cxt, validateName, env, env.$async) - const rootName = gen.scopeValue("root", {ref: root}) - return callRef(cxt, _`${rootName}.validate`, root, root.$async) - } - - function callValidate(sch: SchemaEnv): void { - const v = getValidate(cxt, sch) - callRef(cxt, v, sch, sch.$async) - } - - function inlineRefSchema(sch: AnySchema): void { - const schName = gen.scopeValue( - "schema", - opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch} - ) - const valid = gen.name("valid") - const schCxt = cxt.subschema( - { - schema: sch, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, - valid - ) - cxt.mergeEvaluated(schCxt) - cxt.ok(valid) - } - }, -} - -export function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code { - const {gen} = cxt - return sch.validate - ? gen.scopeValue("validate", {ref: sch.validate}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.validate` -} - -export function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void { - const {gen, it} = cxt - const {allErrors, schemaEnv: env, opts} = it - const passCxt = opts.passContext ? N.this : nil - if ($async) callAsyncRef() - else callSyncRef() - - function callAsyncRef(): void { - if (!env.$async) throw new Error("async schema referenced by sync schema") - const valid = gen.let("valid") - gen.try( - () => { - gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`) - addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result - if (!allErrors) gen.assign(valid, true) - }, - (e) => { - gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e)) - addErrorsFrom(e) - if (!allErrors) gen.assign(valid, false) - } - ) - cxt.ok(valid) - } - - function callSyncRef(): void { - cxt.result( - callValidateCode(cxt, v, passCxt), - () => addEvaluatedFrom(v), - () => addErrorsFrom(v) - ) - } - - function addErrorsFrom(source: Code): void { - const errs = _`${source}.errors` - gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged - gen.assign(N.errors, _`${N.vErrors}.length`) - } - - function addEvaluatedFrom(source: Code): void { - if (!it.opts.unevaluated) return - const schEvaluated = sch?.validate?.evaluated - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props) - } - } else { - const props = gen.var("props", _`${source}.evaluated.props`) - it.props = mergeEvaluated.props(gen, props, it.props, Name) - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items) - } - } else { - const items = gen.var("items", _`${source}.evaluated.items`) - it.items = mergeEvaluated.items(gen, items, it.items, Name) - } - } - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts deleted file mode 100644 index 98f0f8cf..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Name} from "../../compile/codegen" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" -import {resolveRef, SchemaEnv} from "../../compile" -import {schemaHasRulesButRef} from "../../compile/util" - -export type DiscriminatorError = DiscrErrorObj | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: ({params: {discrError, tagName}}) => - discrError === DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({params: {discrError, tag, tagName}}) => - _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const {gen, data, schema, parentSchema, it} = cxt - const {oneOf} = parentSchema - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option") - } - const tagName = schema.propertyName - if (typeof tagName != "string") throw new Error("discriminator: requires propertyName") - if (schema.mapping) throw new Error("discriminator: mapping is not supported") - if (!oneOf) throw new Error("discriminator: requires oneOf keyword") - const valid = gen.let("valid", false) - const tag = gen.const("tag", _`${data}${getProperty(tagName)}`) - gen.if( - _`typeof ${tag} == "string"`, - () => validateMapping(), - () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName}) - ) - cxt.ok(valid) - - function validateMapping(): void { - const mapping = getMapping() - gen.if(false) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(mapping[tagValue])) - } - gen.else() - cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName}) - gen.endIf() - } - - function applyTagSchema(schemaProp?: number): Name { - const _valid = gen.name("valid") - const schCxt = cxt.subschema({keyword: "oneOf", schemaProp}, _valid) - cxt.mergeEvaluated(schCxt, Name) - return _valid - } - - function getMapping(): {[T in string]?: number} { - const oneOfMapping: {[T in string]?: number} = {} - const topRequired = hasRequired(parentSchema) - let tagRequired = true - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i] - if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) { - sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch?.$ref) - if (sch instanceof SchemaEnv) sch = sch.schema - } - const propSch = sch?.properties?.[tagName] - if (typeof propSch != "object") { - throw new Error( - `discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"` - ) - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)) - addMappings(propSch, i) - } - if (!tagRequired) throw new Error(`discriminator: "${tagName}" must be required`) - return oneOfMapping - - function hasRequired({required}: AnySchemaObject): boolean { - return Array.isArray(required) && required.includes(tagName) - } - - function addMappings(sch: AnySchemaObject, i: number): void { - if (sch.const) { - addMapping(sch.const, i) - } else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i) - } - } else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`) - } - } - - function addMapping(tagValue: unknown, i: number): void { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`) - } - oneOfMapping[tagValue] = i - } - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts deleted file mode 100644 index bee5a278..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {ErrorObject} from "../../types" - -export enum DiscrError { - Tag = "tag", - Mapping = "mapping", -} - -export type DiscrErrorObj = ErrorObject< - "discriminator", - {error: E; tag: string; tagValue: unknown}, - string -> diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts deleted file mode 100644 index 47fbf0ee..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import dynamicVocabulary from "./dynamic" -import nextVocabulary from "./next" -import unevaluatedVocabulary from "./unevaluated" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft2020Vocabularies: Vocabulary[] = [ - dynamicVocabulary, - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(true), - formatVocabulary, - metadataVocabulary, - contentVocabulary, - nextVocabulary, - unevaluatedVocabulary, -] - -export default draft2020Vocabularies diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft7.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft7.ts deleted file mode 100644 index 226a644a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/draft7.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft7Vocabularies: Vocabulary[] = [ - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(), - formatVocabulary, - metadataVocabulary, - contentVocabulary, -] - -export default draft7Vocabularies diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts deleted file mode 100644 index ca1adb91..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, compileSchema} from "../../compile" -import {getValidate} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -} - -export function dynamicAnchor(cxt: KeywordCxt, anchor: string): void { - const {gen, it} = cxt - it.schemaEnv.root.dynamicAnchors[anchor] = true - const v = _`${N.dynamicAnchors}${getProperty(anchor)}` - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt) - gen.if(_`!${v}`, () => gen.assign(v, validate)) -} - -function _getValidate(cxt: KeywordCxt): Code { - const {schemaEnv, schema, self} = cxt.it - const {root, baseId, localRefs, meta} = schemaEnv.root - const {schemaId} = self.opts - const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta}) - compileSchema.call(self, sch) - return getValidate(cxt, sch) -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts deleted file mode 100644 index 6a573f33..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {callRef} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export function dynamicRef(cxt: KeywordCxt, ref: string): void { - const {gen, keyword, it} = cxt - if (ref[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`) - const anchor = ref.slice(1) - if (it.allErrors) { - _dynamicRef() - } else { - const valid = gen.let("valid", false) - _dynamicRef(valid) - cxt.ok(valid) - } - - function _dynamicRef(valid?: Name): void { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", _`${N.dynamicAnchors}${getProperty(anchor)}`) - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)) - } else { - _callRef(it.validateName, valid)() - } - } - - function _callRef(validate: Code, valid?: Name): () => void { - return valid - ? () => - gen.block(() => { - callRef(cxt, validate) - gen.let(valid, true) - }) - : () => callRef(cxt, validate) - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts deleted file mode 100644 index 6d521db6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type {Vocabulary} from "../../types" -import dynamicAnchor from "./dynamicAnchor" -import dynamicRef from "./dynamicRef" -import recursiveAnchor from "./recursiveAnchor" -import recursiveRef from "./recursiveRef" - -const dynamic: Vocabulary = [dynamicAnchor, dynamicRef, recursiveAnchor, recursiveRef] - -export default dynamic diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts deleted file mode 100644 index 25f3db96..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicAnchor} from "./dynamicAnchor" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) dynamicAnchor(cxt, "") - else checkStrictMode(cxt.it, "$recursiveAnchor: false is ignored") - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts deleted file mode 100644 index c84af0f0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicRef} from "./dynamicRef" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/errors.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/errors.ts deleted file mode 100644 index c9ca3f02..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/errors.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type {TypeError} from "../compile/validate/dataType" -import type {ApplicatorKeywordError} from "./applicator" -import type {ValidationKeywordError} from "./validation" -import type {FormatError} from "./format/format" -import type {UnevaluatedPropertiesError} from "./unevaluated/unevaluatedProperties" -import type {UnevaluatedItemsError} from "./unevaluated/unevaluatedItems" -import type {DependentRequiredError} from "./validation/dependentRequired" -import type {DiscriminatorError} from "./discriminator" - -export type DefinedError = - | TypeError - | ApplicatorKeywordError - | ValidationKeywordError - | FormatError - | UnevaluatedPropertiesError - | UnevaluatedItemsError - | DependentRequiredError - | DiscriminatorError diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/format.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/format.ts deleted file mode 100644 index 4b1c13e7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/format.ts +++ /dev/null @@ -1,120 +0,0 @@ -import type { - AddedFormat, - FormatValidator, - AsyncFormatValidator, - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, nil, or, Code, getProperty, regexpCode} from "../../compile/codegen" - -type FormatValidate = - | FormatValidator - | FormatValidator - | AsyncFormatValidator - | AsyncFormatValidator - | RegExp - | string - | true - -export type FormatError = ErrorObject<"format", {format: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match format "${schemaCode}"`, - params: ({schemaCode}) => _`{format: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt, ruleType?: string) { - const {gen, data, $data, schema, schemaCode, it} = cxt - const {opts, errSchemaPath, schemaEnv, self} = it - if (!opts.validateFormats) return - - if ($data) validate$DataFormat() - else validateFormat() - - function validate$DataFormat(): void { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }) - const fDef = gen.const("fDef", _`${fmts}[${schemaCode}]`) - const fType = gen.let("fType") - const format = gen.let("format") - // TODO simplify - gen.if( - _`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, - () => gen.assign(fType, _`${fDef}.type || "string"`).assign(format, _`${fDef}.validate`), - () => gen.assign(fType, _`"string"`).assign(format, fDef) - ) - cxt.fail$data(or(unknownFmt(), invalidFmt())) - - function unknownFmt(): Code { - if (opts.strictSchema === false) return nil - return _`${schemaCode} && !${format}` - } - - function invalidFmt(): Code { - const callFormat = schemaEnv.$async - ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : _`${format}(${data})` - const validData = _`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))` - return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}` - } - } - - function validateFormat(): void { - const formatDef: AddedFormat | undefined = self.formats[schema] - if (!formatDef) { - unknownFormat() - return - } - if (formatDef === true) return - const [fmtType, format, fmtRef] = getFormat(formatDef) - if (fmtType === ruleType) cxt.pass(validCondition()) - - function unknownFormat(): void { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()) - return - } - throw new Error(unknownMsg()) - - function unknownMsg(): string { - return `unknown format "${schema as string}" ignored in schema at path "${errSchemaPath}"` - } - } - - function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] { - const code = - fmtDef instanceof RegExp - ? regexpCode(fmtDef) - : opts.code.formats - ? _`${opts.code.formats}${getProperty(schema)}` - : undefined - const fmt = gen.scopeValue("formats", {key: schema, ref: fmtDef, code}) - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, _`${fmt}.validate`] - } - - return ["string", fmtDef, fmt] - } - - function validCondition(): Code { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) throw new Error("async format in sync schema") - return _`await ${fmtRef}(${data})` - } - return typeof format == "function" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})` - } - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/index.ts deleted file mode 100644 index bca2f5b3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/format/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type {Vocabulary} from "../../types" -import formatKeyword from "./format" - -const format: Vocabulary = [formatKeyword] - -export default format diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts deleted file mode 100644 index f487c97f..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not, getProperty, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" - -export type JTDDiscriminatorError = - | _JTDTypeError<"discriminator", "object", string> - | DiscrErrorObj - | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? params.discrError === DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? _`{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, parentSchema} = cxt - const [valid, cond] = checkNullableObject(cxt, data) - - gen.if(cond) - validateDiscriminator() - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - cxt.ok(valid) - - function validateDiscriminator(): void { - const tag = gen.const("tag", _`${data}${getProperty(schema)}`) - gen.if(_`${tag} === undefined`) - cxt.error(false, {discrError: DiscrError.Tag, tag}) - gen.elseIf(_`typeof ${tag} == "string"`) - validateMapping(tag) - gen.else() - cxt.error(false, {discrError: DiscrError.Tag, tag}, {instancePath: schema}) - gen.endIf() - } - - function validateMapping(tag: Name): void { - gen.if(false) - for (const tagValue in parentSchema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(tagValue)) - } - gen.else() - cxt.error( - false, - {discrError: DiscrError.Mapping, tag}, - {instancePath: schema, schemaPath: "mapping", parentSchema: true} - ) - gen.endIf() - } - - function applyTagSchema(schemaProp: string): Name { - const _valid = gen.name("valid") - cxt.subschema( - { - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, - _valid - ) - return _valid - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts deleted file mode 100644 index 983af7c0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {_, not} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "elements", - schemaType: "object", - error: typeError("array"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const [valid] = checkNullable(cxt) - gen.if(not(valid), () => - gen.if( - _`Array.isArray(${data})`, - () => gen.assign(valid, validateArray(cxt)), - () => cxt.error() - ) - ) - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts deleted file mode 100644 index 75464ff8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition, ErrorObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, and, Code} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" - -export type JTDEnumError = ErrorObject<"enum", {allowedValues: string[]}, string[]> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, schemaValue, parentSchema, it} = cxt - if (schema.length === 0) throw new Error("enum must have non-empty array") - if (schema.length !== new Set(schema).size) throw new Error("enum items must be unique") - let valid: Code - const isString = _`typeof ${data} == "string"` - if (schema.length >= it.opts.loopEnum) { - let cond: Code - ;[valid, cond] = checkNullable(cxt, isString) - gen.if(cond, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - valid = and(isString, or(...schema.map((value: string) => _`${data} === ${value}`))) - if (parentSchema.nullable) valid = or(_`${data} === null`, valid) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.forOf("v", schemaValue as Code, (v) => - gen.if(_`${valid} = ${data} === ${v}`, () => gen.break()) - ) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts deleted file mode 100644 index 50693225..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt, ErrorObject} from "../../types" -import {_, Code} from "../../compile/codegen" - -export type _JTDTypeError = ErrorObject< - K, - {type: T; nullable: boolean}, - S -> - -export function typeError(t: string): KeywordErrorDefinition { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - } -} - -export function typeErrorMessage({parentSchema}: KeywordErrorCxt, t: string): string { - return parentSchema?.nullable ? `must be ${t} or null` : `must be ${t}` -} - -export function typeErrorParams({parentSchema}: KeywordErrorCxt, t: string): Code { - return _`{type: ${t}, nullable: ${!!parentSchema?.nullable}}` -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts deleted file mode 100644 index f7baebc3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type {Vocabulary} from "../../types" -import refKeyword from "./ref" -import typeKeyword, {JTDTypeError} from "./type" -import enumKeyword, {JTDEnumError} from "./enum" -import elements, {JTDElementsError} from "./elements" -import properties, {JTDPropertiesError} from "./properties" -import optionalProperties from "./optionalProperties" -import discriminator, {JTDDiscriminatorError} from "./discriminator" -import values, {JTDValuesError} from "./values" -import union from "./union" -import metadata from "./metadata" - -const jtdVocabulary: Vocabulary = [ - "definitions", - refKeyword, - typeKeyword, - enumKeyword, - elements, - properties, - optionalProperties, - discriminator, - values, - union, - metadata, - {keyword: "additionalProperties", schemaType: "boolean"}, - {keyword: "nullable", schemaType: "boolean"}, -] - -export default jtdVocabulary - -export type JTDErrorObject = - | JTDTypeError - | JTDEnumError - | JTDElementsError - | JTDPropertiesError - | JTDDiscriminatorError - | JTDValuesError diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts deleted file mode 100644 index 19eeb8c7..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {KeywordCxt} from "../../ajv" -import type {CodeKeywordDefinition} from "../../types" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "metadata", - schemaType: "object", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - cxt.subschema({keyword: "metadata", jtdMetadata: true}, valid) - cxt.ok(valid) - }, -} - -export function checkMetadata({it, keyword}: KeywordCxt, metadata?: boolean): void { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`) - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts deleted file mode 100644 index c74b05da..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type {KeywordCxt} from "../../compile/validate" -import {_, not, nil, Code, Name} from "../../compile/codegen" - -export function checkNullable( - {gen, data, parentSchema}: KeywordCxt, - cond: Code = nil -): [Name, Code] { - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.let(valid, _`${data} === null`) - cond = not(valid) - } else { - gen.let(valid, false) - } - return [valid, cond] -} - -export function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code] { - const [valid, cond_] = checkNullable(cxt, cond) - return [valid, _`${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`] -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts deleted file mode 100644 index 8e91c8d9..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {validateProperties, error} from "./properties" - -const def: CodeKeywordDefinition = { - keyword: "optionalProperties", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - if (cxt.parentSchema.properties) return - validateProperties(cxt) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts deleted file mode 100644 index 9dd24c5c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties, isOwnProperty} from "../code" -import {alwaysValidSchema, schemaRefOrVal} from "../../compile/util" -import {_, and, not, Code, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -enum PropError { - Additional = "additional", - Missing = "missing", -} - -type PropKeyword = "properties" | "optionalProperties" - -type PropSchema = {[P in string]?: SchemaObject} - -export type JTDPropertiesError = - | _JTDTypeError - | ErrorObject - | ErrorObject - -export const error: KeywordErrorDefinition = { - message: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? _`{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : _`{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "properties", - schemaType: "object", - error, - code: validateProperties, -} - -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } - -export function validateProperties(cxt: KeywordCxt): void { - checkMetadata(cxt) - const {gen, data, parentSchema, it} = cxt - const {additionalProperties, nullable} = parentSchema - if (it.jtdDiscriminator && nullable) throw new Error("JTD: nullable inside discriminator mapping") - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members") - } - const [allProps, properties] = schemaProperties("properties") - const [allOptProps, optProperties] = schemaProperties("optionalProperties") - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return - } - - const [valid, cond] = - it.jtdDiscriminator === undefined - ? checkNullableObject(cxt, data) - : [gen.let("valid", false), true] - gen.if(cond, () => - gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true) - validateProps(optProperties, "optionalProperties") - if (!additionalProperties) validateAdditional() - }) - ) - cxt.pass(valid) - - function commonProperties(): boolean { - const props = parentSchema.properties as Record | undefined - const optProps = parentSchema.optionalProperties as Record | undefined - if (!(props && optProps)) return false - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) return true - } - return false - } - - function schemaProperties(keyword: string): [string[], string[]] { - const schema = parentSchema[keyword] - const allPs = schema ? allSchemaProperties(schema) : [] - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`) - } - const ps = allPs.filter((p) => !alwaysValidSchema(it, schema[p])) - return [allPs, ps] - } - - function validateProps(props: string[], keyword: string, required?: boolean): void { - const _valid = gen.var("valid") - for (const prop of props) { - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => applyPropertySchema(prop, keyword, _valid), - () => missingProperty(prop) - ) - cxt.ok(_valid) - } - - function missingProperty(prop: string): void { - if (required) { - gen.assign(_valid, false) - cxt.error(false, {propError: PropError.Missing, missingProperty: prop}, {schemaPath: prop}) - } else { - gen.assign(_valid, true) - } - } - } - - function applyPropertySchema(prop: string, keyword: string, _valid: Name): void { - cxt.subschema( - { - keyword, - schemaProp: prop, - dataProp: prop, - }, - _valid - ) - } - - function validateAdditional(): void { - gen.forIn("key", data, (key: Name) => { - const addProp = isAdditional(key, allProps, "properties", it.jtdDiscriminator) - const addOptProp = isAdditional(key, allOptProps, "optionalProperties") - const extra = - addProp === true ? addOptProp : addOptProp === true ? addProp : and(addProp, addOptProp) - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code(_`delete ${data}[${key}]`) - } else { - cxt.error( - false, - {propError: PropError.Additional, additionalProperty: key}, - {instancePath: key, parentSchema: true} - ) - if (!it.opts.allErrors) gen.break() - } - }) - }) - } - - function isAdditional( - key: Name, - props: string[], - keyword: string, - jtdDiscriminator?: string - ): Code | true { - let additional: Code | boolean - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema[keyword], keyword) - additional = not(isOwnProperty(gen, propsSchema as Code, key)) - if (jtdDiscriminator !== undefined) { - additional = and(additional, _`${key} !== ${jtdDiscriminator}`) - } - } else if (props.length || jtdDiscriminator !== undefined) { - const ps = jtdDiscriminator === undefined ? props : [jtdDiscriminator].concat(props) - additional = and(...ps.map((p) => _`${key} !== ${p}`)) - } else { - additional = true - } - return additional - } -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts deleted file mode 100644 index 97646ee1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {compileSchema, SchemaEnv} from "../../compile" -import {_, not, nil, stringify} from "../../compile/codegen" -import MissingRefError from "../../compile/ref_error" -import N from "../../compile/names" -import {getValidate, callRef} from "../core/ref" -import {checkMetadata} from "./metadata" - -const def: CodeKeywordDefinition = { - keyword: "ref", - schemaType: "string", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema: ref, parentSchema, it} = cxt - const { - schemaEnv: {root}, - } = it - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.var(valid, _`${data} === null`) - gen.if(not(valid), validateJtdRef) - } else { - gen.var(valid, false) - validateJtdRef() - } - cxt.ok(valid) - - function validateJtdRef(): void { - const refSchema = (root.schema as AnySchemaObject).definitions?.[ref] - if (!refSchema) { - throw new MissingRefError(it.opts.uriResolver, "", ref, `No definition ${ref}`) - } - if (hasRef(refSchema) || !it.opts.inlineRefs) callValidate(refSchema) - else inlineRefSchema(refSchema) - } - - function callValidate(schema: AnySchemaObject): void { - const sch = compileSchema.call( - it.self, - new SchemaEnv({schema, root, schemaPath: `/definitions/${ref}`}) - ) - const v = getValidate(cxt, sch) - const errsCount = gen.const("_errs", N.errors) - callRef(cxt, v, sch, sch.$async) - gen.assign(valid, _`${errsCount} === ${N.errors}`) - } - - function inlineRefSchema(schema: AnySchemaObject): void { - const schName = gen.scopeValue( - "schema", - it.opts.code.source === true ? {ref: schema, code: stringify(schema)} : {ref: schema} - ) - cxt.subschema( - { - schema, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, - valid - ) - } - }, -} - -export function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - let sch: AnySchemaObject - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) return true - } - return false -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts deleted file mode 100644 index 17274300..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, nil, or, Code} from "../../compile/codegen" -import validTimestamp from "../../runtime/timestamp" -import {useFunc} from "../../compile/util" -import {checkMetadata} from "./metadata" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -export type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType> - -export type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -export const intRange: {[T in IntType]: [number, number, number]} = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -} - -export type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType - -const error: KeywordErrorDefinition = { - message: (cxt) => typeErrorMessage(cxt, cxt.schema), - params: (cxt) => typeErrorParams(cxt, cxt.schema), -} - -function timestampCode(cxt: KeywordCxt): Code { - const {gen, data, it} = cxt - const {timestamp, allowDate} = it.opts - if (timestamp === "date") return _`${data} instanceof Date ` - const vts = useFunc(gen, validTimestamp) - const allowDateArg = allowDate ? _`, true` : nil - const validString = _`typeof ${data} == "string" && ${vts}(${data}${allowDateArg})` - return timestamp === "string" ? validString : or(_`${data} instanceof Date`, validString) -} - -const def: CodeKeywordDefinition = { - keyword: "type", - schemaType: "string", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {data, schema, parentSchema, it} = cxt - let cond: Code - switch (schema) { - case "boolean": - case "string": - cond = _`typeof ${data} == ${schema}` - break - case "timestamp": { - cond = timestampCode(cxt) - break - } - case "float32": - case "float64": - cond = _`typeof ${data} == "number"` - break - default: { - const sch = schema as IntType - cond = _`typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)` - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") cond = _`${cond} && ${data} >= 0` - } else { - const [min, max] = intRange[sch] - cond = _`${cond} && ${data} >= ${min} && ${data} <= ${max}` - } - } - } - cxt.pass(parentSchema.nullable ? or(_`${data} === null`, cond) : cond) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts deleted file mode 100644 index 588f07ab..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateUnion} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in union"}, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts deleted file mode 100644 index e6494507..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema, Type} from "../../compile/util" -import {not, or, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "values", - schemaType: "object", - error: typeError("object"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - const [valid, cond] = checkNullableObject(cxt, data) - if (alwaysValidSchema(it, schema)) { - gen.if(not(or(cond, valid)), () => cxt.error()) - } else { - gen.if(cond) - gen.assign(valid, validateMap()) - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - } - cxt.ok(valid) - - function validateMap(): Name | boolean { - const _valid = gen.name("valid") - if (it.allErrors) { - const validMap = gen.let("valid", true) - validateValues(() => gen.assign(validMap, false)) - return validMap - } - gen.var(_valid, true) - validateValues(() => gen.break()) - return _valid - - function validateValues(notValid: () => void): void { - gen.forIn("key", data, (key) => { - cxt.subschema( - { - keyword: "values", - dataProp: key, - dataPropType: Type.Str, - }, - _valid - ) - gen.if(not(_valid), notValid) - }) - } - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/metadata.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/metadata.ts deleted file mode 100644 index b9d5af85..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/metadata.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" - -export const metadataVocabulary: Vocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -] - -export const contentVocabulary: Vocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -] diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/next.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/next.ts deleted file mode 100644 index 1e987ad2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/next.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {Vocabulary} from "../types" -import dependentRequired from "./validation/dependentRequired" -import dependentSchemas from "./applicator/dependentSchemas" -import limitContains from "./validation/limitContains" - -const next: Vocabulary = [dependentRequired, dependentSchemas, limitContains] - -export default next diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts deleted file mode 100644 index f7f0815d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Vocabulary} from "../../types" -import unevaluatedProperties from "./unevaluatedProperties" -import unevaluatedItems from "./unevaluatedItems" - -const unevaluated: Vocabulary = [unevaluatedProperties, unevaluatedItems] - -export default unevaluated diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts deleted file mode 100644 index 50bf0e7c..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" - -export type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - const items = it.items || 0 - if (items === true) return - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items}) - cxt.fail(_`${len} > ${items}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items}`) - gen.if(not(valid), () => validateItems(valid, items)) - cxt.ok(valid) - } - it.items = true - - function validateItems(valid: Name, from: Name | number): void { - gen.forRange("i", from, len, (i) => { - cxt.subschema({keyword: "unevaluatedItems", dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts deleted file mode 100644 index 0e6868fa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +++ /dev/null @@ -1,85 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import {_, not, and, Name, Code} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" -import N from "../../compile/names" - -export type UnevaluatedPropertiesError = ErrorObject< - "unevaluatedProperties", - {unevaluatedProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have unevaluated properties", - params: ({params}) => _`{unevaluatedProperty: ${params.unevaluatedProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const {gen, schema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, props} = it - if (props instanceof Name) { - gen.if(_`${props} !== true`, () => - gen.forIn("key", data, (key: Name) => - gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)) - ) - ) - } else if (props !== true) { - gen.forIn("key", data, (key: Name) => - props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)) - ) - } - it.props = true - cxt.ok(_`${errsCount} === ${N.errors}`) - - function unevaluatedPropCode(key: Name): void { - if (schema === false) { - cxt.setParams({unevaluatedProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (!alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - - function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code { - return _`!${evaluatedProps} || !${evaluatedProps}[${key}]` - } - - function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code { - const ps: Code[] = [] - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`) - } - return and(...ps) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts deleted file mode 100644 index a3b94a5d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type ConstError = ErrorObject<"const", {allowedValue: any}> - -const error: KeywordErrorDefinition = { - message: "must be equal to constant", - params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "const", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schemaCode, schema} = cxt - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`) - } else { - cxt.fail(_`${schema} !== ${data}`) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts deleted file mode 100644 index 4c616cfa..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject} from "../../types" -import { - validatePropertyDeps, - error, - DependenciesErrorParams, - PropertyDependencies, -} from "../applicator/dependencies" - -export type DependentRequiredError = ErrorObject< - "dependentRequired", - DependenciesErrorParams, - PropertyDependencies -> - -const def: CodeKeywordDefinition = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error, - code: (cxt) => validatePropertyDeps(cxt), -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts deleted file mode 100644 index 76377fb0..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, Name, Code} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type EnumError = ErrorObject<"enum", {allowedValues: any[]}, any[] | {$data: string}> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, schemaCode, it} = cxt - if (!$data && schema.length === 0) throw new Error("enum must have non-empty array") - const useLoop = schema.length >= it.opts.loopEnum - let eql: Name | undefined - const getEql = (): Name => (eql ??= useFunc(gen, equal)) - - let valid: Code - if (useLoop || $data) { - valid = gen.let("valid") - cxt.block$data(valid, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const vSchema = gen.const("vSchema", schemaCode) - valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i))) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.assign(valid, false) - gen.forOf("v", schemaCode as Code, (v) => - gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()) - ) - } - - function equalCode(vSchema: Name, i: number): Code { - const sch = schema[i] - return typeof sch === "object" && sch !== null - ? _`${getEql()}(${data}, ${vSchema}[${i}])` - : _`${data} === ${sch}` - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts deleted file mode 100644 index 3531b196..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type {ErrorObject, Vocabulary} from "../../types" -import limitNumber, {LimitNumberError} from "./limitNumber" -import multipleOf, {MultipleOfError} from "./multipleOf" -import limitLength from "./limitLength" -import pattern, {PatternError} from "./pattern" -import limitProperties from "./limitProperties" -import required, {RequiredError} from "./required" -import limitItems from "./limitItems" -import uniqueItems, {UniqueItemsError} from "./uniqueItems" -import constKeyword, {ConstError} from "./const" -import enumKeyword, {EnumError} from "./enum" - -const validation: Vocabulary = [ - // number - limitNumber, - multipleOf, - // string - limitLength, - pattern, - // object - limitProperties, - required, - // array - limitItems, - uniqueItems, - // any - {keyword: "type", schemaType: ["string", "array"]}, - {keyword: "nullable", schemaType: "boolean"}, - constKeyword, - enumKeyword, -] - -export default validation - -type LimitError = ErrorObject< - "maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", - {limit: number}, - number | {$data: string} -> - -export type ValidationKeywordError = - | LimitError - | LimitNumberError - | MultipleOfError - | PatternError - | RequiredError - | UniqueItemsError - | ConstError - | EnumError diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts deleted file mode 100644 index 8bb43c1a..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.contains === undefined) { - checkStrictMode(it, `"${keyword}" without "contains" is ignored`) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts deleted file mode 100644 index 566de858..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxItems" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} items` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxItems" ? operators.GT : operators.LT - cxt.fail$data(_`${data}.length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts deleted file mode 100644 index f4f94725..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import ucs2length from "../../runtime/ucs2length" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxLength" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} characters` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode, it} = cxt - const op = keyword === "maxLength" ? operators.GT : operators.LT - const len = - it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})` - cxt.fail$data(_`${len} ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts deleted file mode 100644 index 5499202e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators, Code} from "../../compile/codegen" - -const ops = operators - -type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum" - -type Comparison = "<=" | ">=" | "<" | ">" - -const KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = { - maximum: {okStr: "<=", ok: ops.LTE, fail: ops.GT}, - minimum: {okStr: ">=", ok: ops.GTE, fail: ops.LT}, - exclusiveMaximum: {okStr: "<", ok: ops.LT, fail: ops.GTE}, - exclusiveMinimum: {okStr: ">", ok: ops.GT, fail: ops.LTE}, -} - -export type LimitNumberError = ErrorObject< - Kwd, - {limit: number; comparison: Comparison}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`, - params: ({keyword, schemaCode}) => - _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts deleted file mode 100644 index 07fffa8b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxProperties" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} properties` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxProperties" ? operators.GT : operators.LT - cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts deleted file mode 100644 index 1fd79abb..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" - -export type MultipleOfError = ErrorObject< - "multipleOf", - {multipleOf: number}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must be multiple of ${schemaCode}`, - params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, schemaCode, it} = cxt - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision - const res = gen.let("res") - const invalid = prec - ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : _`${res} !== parseInt(${res})` - cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts deleted file mode 100644 index 7b27b7d3..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {usePattern} from "../code" -import {_, str} from "../../compile/codegen" - -export type PatternError = ErrorObject<"pattern", {pattern: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match pattern "${schemaCode}"`, - params: ({schemaCode}) => _`{pattern: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt) { - const {data, $data, schema, schemaCode, it} = cxt - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : "" - const regExp = $data ? _`(new RegExp(${schemaCode}, ${u}))` : usePattern(cxt, schema) - cxt.fail$data(_`!${regExp}.test(${data})`) - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts deleted file mode 100644 index fea7367e..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import { - checkReportMissingProp, - checkMissingProp, - reportMissingProp, - propertyInData, - noPropertyInData, -} from "../code" -import {_, str, nil, not, Name, Code} from "../../compile/codegen" -import {checkStrictMode} from "../../compile/util" - -export type RequiredError = ErrorObject< - "required", - {missingProperty: string}, - string[] | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`, - params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, schemaCode, data, $data, it} = cxt - const {opts} = it - if (!$data && schema.length === 0) return - const useLoop = schema.length >= opts.loopRequired - if (it.allErrors) allErrorsMode() - else exitOnErrorMode() - - if (opts.strictRequired) { - const props = cxt.parentSchema.properties - const {definedProperties} = cxt.it - for (const requiredKey of schema) { - if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)` - checkStrictMode(it, msg, it.opts.strictRequired) - } - } - } - - function allErrorsMode(): void { - if (useLoop || $data) { - cxt.block$data(nil, loopAllRequired) - } else { - for (const prop of schema) { - checkReportMissingProp(cxt, prop) - } - } - } - - function exitOnErrorMode(): void { - const missing = gen.let("missing") - if (useLoop || $data) { - const valid = gen.let("valid", true) - cxt.block$data(valid, () => loopUntilMissing(missing, valid)) - cxt.ok(valid) - } else { - gen.if(checkMissingProp(cxt, schema, missing)) - reportMissingProp(cxt, missing) - gen.else() - } - } - - function loopAllRequired(): void { - gen.forOf("prop", schemaCode as Code, (prop) => { - cxt.setParams({missingProperty: prop}) - gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error()) - }) - } - - function loopUntilMissing(missing: Name, valid: Name): void { - cxt.setParams({missingProperty: missing}) - gen.forOf( - missing, - schemaCode as Code, - () => { - gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties)) - gen.if(not(valid), () => { - cxt.error() - gen.break() - }) - }, - nil - ) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts deleted file mode 100644 index 765c4d04..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkDataTypes, getSchemaTypes, DataType} from "../../compile/validate/dataType" -import {_, str, Name} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type UniqueItemsError = ErrorObject< - "uniqueItems", - {i: number; j: number}, - boolean | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {i, j}}) => - str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt - if (!$data && !schema) return - const valid = gen.let("valid") - const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : [] - cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`) - cxt.ok(valid) - - function validateUniqueItems(): void { - const i = gen.let("i", _`${data}.length`) - const j = gen.let("j") - cxt.setParams({i, j}) - gen.assign(valid, true) - gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)) - } - - function canOptimize(): boolean { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array") - } - - function loopN(i: Name, j: Name): void { - const item = gen.name("item") - const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong) - const indices = gen.const("indices", _`{}`) - gen.for(_`;${i}--;`, () => { - gen.let(item, _`${data}[${i}]`) - gen.if(wrongType, _`continue`) - if (itemTypes.length > 1) gen.if(_`typeof ${item} == "string"`, _`${item} += "_"`) - gen - .if(_`typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, _`${indices}[${item}]`) - cxt.error() - gen.assign(valid, false).break() - }) - .code(_`${indices}[${item}] = ${i}`) - }) - } - - function loopN2(i: Name, j: Name): void { - const eql = useFunc(gen, equal) - const outer = gen.name("outer") - gen.label(outer).for(_`;${i}--;`, () => - gen.for(_`${j} = ${i}; ${j}--;`, () => - gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error() - gen.assign(valid, false).break(outer) - }) - ) - ) - } - }, -} - -export default def diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/package.json b/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/package.json deleted file mode 100644 index 21ac5eed..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/ajv/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "name": "ajv", - "version": "8.13.0", - "description": "Another JSON Schema Validator", - "main": "dist/ajv.js", - "types": "dist/ajv.d.ts", - "files": [ - "lib/", - "dist/", - ".runkit_example.js" - ], - "scripts": { - "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite", - "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"", - "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"", - "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot", - "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec", - "test-debug": "npm run test-spec -- --inspect-brk", - "test-cov": "nyc npm run test-spec", - "rollup": "rm -rf bundle && rollup -c", - "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD", - "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts", - "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests", - "test-karma": "karma start", - "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start", - "test-all": "npm run test-cov && if-node-version 12 npm run test-browser", - "test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov", - "test-ci": "AJV_FULL_TEST=true npm test", - "prepublish": "npm run build", - "benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd", - "docs:dev": "./scripts/prepare-site && vuepress dev docs", - "docs:build": "./scripts/prepare-site && vuepress build docs" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "repository": "ajv-validator/ajv", - "keywords": [ - "JSON", - "schema", - "validator", - "validation", - "jsonschema", - "json-schema", - "json-schema-validator", - "json-schema-validation" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": "https://github.com/ajv-validator/ajv/issues", - "homepage": "https://ajv.js.org", - "runkitExampleFilename": ".runkit_example.js", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "devDependencies": { - "@ajv-validator/config": "^0.5.0", - "@rollup/plugin-commonjs": "^25.0.7", - "@rollup/plugin-json": "^6.1.0", - "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-typescript": "^11.1.6", - "@types/chai": "^4.3.11", - "@types/mocha": "^10.0.6", - "@types/node": "^20.11.30", - "@types/require-from-string": "^1.2.3", - "@typescript-eslint/eslint-plugin": "^7.3.1", - "@typescript-eslint/parser": "^7.3.1", - "ajv-formats": "^3.0.1", - "browserify": "^17.0.0", - "chai": "^4.4.1", - "cross-env": "^7.0.3", - "dayjs": "^1.11.10", - "dayjs-plugin-utc": "^0.1.2", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "fast-uri": "^2.3.0", - "glob": "^10.3.10", - "husky": "^9.0.11", - "if-node-version": "^1.1.1", - "jimp": "^0.22.10", - "js-beautify": "^1.15.1", - "json-schema-test": "^2.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "lint-staged": "^15.2.2", - "mocha": "^10.3.0", - "module-from-string": "^3.3.0", - "node-fetch": "^3.3.2", - "nyc": "^15.1.0", - "prettier": "3.0.3", - "re2": "^1.20.9", - "rollup": "^2.79.1", - "rollup-plugin-terser": "^7.0.2", - "ts-node": "^10.9.2", - "tsify": "^5.0.4", - "typescript": "5.3.3" - }, - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/ajv" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - }, - "prettier": "@ajv-validator/config/prettierrc.json", - "husky": { - "hooks": { - "pre-commit": "lint-staged && npm test" - } - }, - "lint-staged": { - "*.{json,yaml,js,ts}": "prettier --write" - } -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.eslintrc.yml b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index 618559ab..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 15] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml deleted file mode 100644 index 44f80f41..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: epoberezkin -tidelift: "npm/json-schema-traverse" diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml deleted file mode 100644 index f8ef5ba8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: build - -on: - push: - branches: [master] - pull_request: - branches: ["*"] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml deleted file mode 100644 index 924825b1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish - -on: - release: - types: [published] - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm test - - name: Publish beta version to npm - if: "github.event.release.prerelease" - run: npm publish --tag beta - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish to npm - if: "!github.event.release.prerelease" - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/LICENSE b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/README.md b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/README.md deleted file mode 100644 index f3e60073..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse) -[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## Enterprise support - -json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.d.ts deleted file mode 100644 index 0772daed..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -declare function traverse( - schema: traverse.SchemaObject, - opts: traverse.Options, - cb?: traverse.Callback -): void; - -declare function traverse( - schema: traverse.SchemaObject, - cb: traverse.Callback -): void; - -declare namespace traverse { - interface SchemaObject { - $id?: string; - $schema?: string; - [x: string]: any; - } - - type Callback = ( - schema: SchemaObject, - jsonPtr: string, - rootSchema: SchemaObject, - parentJsonPtr?: string, - parentKeyword?: string, - parentSchema?: SchemaObject, - keyIndex?: string | number - ) => void; - - interface Options { - allKeys?: boolean; - cb?: - | Callback - | { - pre?: Callback; - post?: Callback; - }; - } -} - -export = traverse; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.js deleted file mode 100644 index e521bfa8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i - - - - - - - - -[![npm][npm]][npm-url] -[![node][node]][node-url] -[![tests][tests]][tests-url] -[![coverage][cover]][cover-url] -[![GitHub Discussions][discussion]][discussion-url] -[![size][size]][size-url] - -# schema-utils - -Package for validate options in loaders and plugins. - -## Getting Started - -To begin, you'll need to install `schema-utils`: - -```console -npm install schema-utils -``` - -## API - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "option": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { option: true }; -const configuration = { name: "Loader Name/Plugin Name/Name" }; - -validate(schema, options, configuration); -``` - -### `schema` - -Type: `String` - -JSON schema. - -Simple example of schema: - -```json -{ - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -### `options` - -Type: `Object` - -Object with options. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, { name: 123 }, { name: "MyPlugin" }); -``` - -### `configuration` - -Allow to configure validator. - -There is an alternative method to configure the `name` and`baseDataPath` options via the `title` property in the schema. -For example: - -```json -{ - "title": "My Loader options", - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -The last word used for the `baseDataPath` option, other words used for the `name` option. -Based on the example above the `name` option equals `My Loader`, the `baseDataPath` option equals `options`. - -#### `name` - -Type: `Object` -Default: `"Object"` - -Allow to setup name in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin" }); -``` - -```shell -Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema. - - configuration.optionName should be a integer. -``` - -#### `baseDataPath` - -Type: `String` -Default: `"configuration"` - -Allow to setup base data path in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin", baseDataPath: "options" }); -``` - -```shell -Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. - - options.optionName should be a integer. -``` - -#### `postFormatter` - -Type: `Function` -Default: `undefined` - -Allow to reformat errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { - name: "MyPlugin", - postFormatter: (formattedError, error) => { - if (error.keyword === "type") { - return `${formattedError}\nAdditional Information.`; - } - - return formattedError; - }, -}); -``` - -```shell -Invalid options object. MyPlugin has been initialized using an options object that does not match the API schema. - - options.optionName should be a integer. - Additional Information. -``` - -## Examples - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "test": { - "anyOf": [ - { "type": "array" }, - { "type": "string" }, - { "instanceof": "RegExp" } - ] - }, - "transform": { - "instanceof": "Function" - }, - "sourceMap": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -### `Loader` - -```js -import { getOptions } from "loader-utils"; -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -function loader(src, map) { - const options = getOptions(this); - - validate(schema, options, { - name: "Loader Name", - baseDataPath: "options", - }); - - // Code... -} - -export default loader; -``` - -### `Plugin` - -```js -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -class Plugin { - constructor(options) { - validate(schema, options, { - name: "Plugin Name", - baseDataPath: "options", - }); - - this.options = options; - } - - apply(compiler) { - // Code... - } -} - -export default Plugin; -``` - -### Allow to disable and enable validation (the `validate` function do nothing) - -This can be useful when you don't want to do validation for `production` builds. - -```js -import { disableValidation, enableValidation, validate } from "schema-utils"; - -// Disable validation -disableValidation(); -// Do nothing -validate(schema, options); - -// Enable validation -enableValidation(); -// Will throw an error if schema is not valid -validate(schema, options); - -// Allow to undestand do you need validation or not -const need = needValidate(); - -console.log(need); -``` - -Also you can enable/disable validation using the `process.env.SKIP_VALIDATION` env variable. - -Supported values (case insensitive): - -- `yes`/`y`/`true`/`1`/`on` -- `no`/`n`/`false`/`0`/`off` - -## Contributing - -Please take a moment to read our contributing guidelines if you haven't yet done so. - -[CONTRIBUTING](./.github/CONTRIBUTING.md) - -## License - -[MIT](./LICENSE) - -[npm]: https://img.shields.io/npm/v/schema-utils.svg -[npm-url]: https://npmjs.com/package/schema-utils -[node]: https://img.shields.io/node/v/schema-utils.svg -[node-url]: https://nodejs.org -[tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg -[tests-url]: https://github.com/webpack/schema-utils/actions -[cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg -[cover-url]: https://codecov.io/gh/webpack/schema-utils -[discussion]: https://img.shields.io/github/discussions/webpack/webpack -[discussion-url]: https://github.com/webpack/webpack/discussions -[size]: https://packagephobia.com/badge?p=schema-utils -[size-url]: https://packagephobia.com/result?p=schema-utils diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts deleted file mode 100644 index 55a8a9a1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -export default ValidationError; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type Schema = import("./validate").Schema; -export type ValidationErrorConfiguration = - import("./validate").ValidationErrorConfiguration; -export type PostFormatter = import("./validate").PostFormatter; -export type SchemaUtilErrorObject = import("./validate").SchemaUtilErrorObject; -declare class ValidationError extends Error { - /** - * @param {Array} errors - * @param {Schema} schema - * @param {ValidationErrorConfiguration} configuration - */ - constructor( - errors: Array, - schema: Schema, - configuration?: ValidationErrorConfiguration - ); - /** @type {Array} */ - errors: Array; - /** @type {Schema} */ - schema: Schema; - /** @type {string} */ - headerName: string; - /** @type {string} */ - baseDataPath: string; - /** @type {PostFormatter | null} */ - postFormatter: PostFormatter | null; - /** - * @param {string} path - * @returns {Schema} - */ - getSchemaPart(path: string): Schema; - /** - * @param {Schema} schema - * @param {boolean} logic - * @param {Array} prevSchemas - * @returns {string} - */ - formatSchema( - schema: Schema, - logic?: boolean, - prevSchemas?: Array - ): string; - /** - * @param {Schema=} schemaPart - * @param {(boolean | Array)=} additionalPath - * @param {boolean=} needDot - * @param {boolean=} logic - * @returns {string} - */ - getSchemaPartText( - schemaPart?: Schema | undefined, - additionalPath?: (boolean | Array) | undefined, - needDot?: boolean | undefined, - logic?: boolean | undefined - ): string; - /** - * @param {Schema=} schemaPart - * @returns {string} - */ - getSchemaPartDescription(schemaPart?: Schema | undefined): string; - /** - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - formatValidationError(error: SchemaUtilErrorObject): string; - /** - * @param {Array} errors - * @returns {string} - */ - formatValidationErrors(errors: Array): string; -} diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/index.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/index.d.ts deleted file mode 100644 index def01ba8..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { validate } from "./validate"; -import { ValidationError } from "./validate"; -import { enableValidation } from "./validate"; -import { disableValidation } from "./validate"; -import { needValidate } from "./validate"; -export { - validate, - ValidationError, - enableValidation, - disableValidation, - needValidate, -}; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts deleted file mode 100644 index 41a54c08..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default addAbsolutePathKeyword; -export type Ajv = import("ajv").default; -export type SchemaValidateFunction = import("ajv").SchemaValidateFunction; -export type AnySchemaObject = import("ajv").AnySchemaObject; -export type SchemaUtilErrorObject = import("../validate").SchemaUtilErrorObject; -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ -declare function addAbsolutePathKeyword(ajv: Ajv): Ajv; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/Range.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/Range.d.ts deleted file mode 100644 index 2ba97fc1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/Range.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -export = Range; -/** - * @typedef {[number, boolean]} RangeValue - */ -/** - * @callback RangeValueCallback - * @param {RangeValue} rangeValue - * @returns {boolean} - */ -declare class Range { - /** - * @param {"left" | "right"} side - * @param {boolean} exclusive - * @returns {">" | ">=" | "<" | "<="} - */ - static getOperator( - side: "left" | "right", - exclusive: boolean - ): ">" | ">=" | "<" | "<="; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatRight(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatLeft(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} start left side value - * @param {number} end right side value - * @param {boolean} startExclusive is range exclusive from left side - * @param {boolean} endExclusive is range exclusive from right side - * @param {boolean} logic is not logic applied - * @returns {string} - */ - static formatRange( - start: number, - end: number, - startExclusive: boolean, - endExclusive: boolean, - logic: boolean - ): string; - /** - * @param {Array} values - * @param {boolean} logic is not logic applied - * @return {RangeValue} computed value and it's exclusive flag - */ - static getRangeValue(values: Array, logic: boolean): RangeValue; - /** @type {Array} */ - _left: Array; - /** @type {Array} */ - _right: Array; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - left(value: number, exclusive?: boolean | undefined): void; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - right(value: number, exclusive?: boolean | undefined): void; - /** - * @param {boolean} logic is not logic applied - * @return {string} "smart" range string representation - */ - format(logic?: boolean): string; -} -declare namespace Range { - export { RangeValue, RangeValueCallback }; -} -type RangeValue = [number, boolean]; -type RangeValueCallback = (rangeValue: RangeValue) => boolean; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/hints.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/hints.d.ts deleted file mode 100644 index e43e32a2..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/util/hints.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function stringHints(schema: Schema, logic: boolean): string[]; -export function numberHints(schema: Schema, logic: boolean): string[]; -export type Schema = import("../validate").Schema; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/validate.d.ts b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/validate.d.ts deleted file mode 100644 index fc5d2ff1..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/declarations/validate.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export type JSONSchema4 = import("json-schema").JSONSchema4; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type ErrorObject = import("ajv").ErrorObject; -export type Extend = { - formatMinimum?: string | undefined; - formatMaximum?: string | undefined; - formatExclusiveMinimum?: string | undefined; - formatExclusiveMaximum?: string | undefined; - link?: string | undefined; - undefinedAsNull?: boolean | undefined; -}; -export type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend; -export type SchemaUtilErrorObject = ErrorObject & { - children?: Array; -}; -export type PostFormatter = ( - formattedError: string, - error: SchemaUtilErrorObject -) => string; -export type ValidationErrorConfiguration = { - name?: string | undefined; - baseDataPath?: string | undefined; - postFormatter?: PostFormatter | undefined; -}; -/** - * @param {Schema} schema - * @param {Array | object} options - * @param {ValidationErrorConfiguration=} configuration - * @returns {void} - */ -export function validate( - schema: Schema, - options: Array | object, - configuration?: ValidationErrorConfiguration | undefined -): void; -export function enableValidation(): void; -export function disableValidation(): void; -export function needValidate(): boolean; -import ValidationError from "./ValidationError"; -export { ValidationError }; diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/ValidationError.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/ValidationError.js deleted file mode 100644 index 32fbd689..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/ValidationError.js +++ /dev/null @@ -1,1067 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _memorize = _interopRequireDefault(require("./util/memorize")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ -/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ - -/** @typedef {import("./validate").Schema} Schema */ -/** @typedef {import("./validate").ValidationErrorConfiguration} ValidationErrorConfiguration */ -/** @typedef {import("./validate").PostFormatter} PostFormatter */ -/** @typedef {import("./validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ -/** @enum {number} */ -const SPECIFICITY = { - type: 1, - not: 1, - oneOf: 1, - anyOf: 1, - if: 1, - enum: 1, - const: 1, - instanceof: 1, - required: 2, - pattern: 2, - patternRequired: 2, - format: 2, - formatMinimum: 2, - formatMaximum: 2, - minimum: 2, - exclusiveMinimum: 2, - maximum: 2, - exclusiveMaximum: 2, - multipleOf: 2, - uniqueItems: 2, - contains: 2, - minLength: 2, - maxLength: 2, - minItems: 2, - maxItems: 2, - minProperties: 2, - maxProperties: 2, - dependencies: 2, - propertyNames: 2, - additionalItems: 2, - additionalProperties: 2, - absolutePath: 2 -}; - -/** - * @param {string} value - * @returns {value is number} - */ -function isNumeric(value) { - return /^-?\d+$/.test(value); -} - -/** - * - * @param {Array} array - * @param {(item: SchemaUtilErrorObject) => number} fn - * @returns {Array} - */ -function filterMax(array, fn) { - const evaluatedMax = array.reduce((max, item) => Math.max(max, fn(item)), 0); - return array.filter(item => fn(item) === evaluatedMax); -} - -/** - * - * @param {Array} children - * @returns {Array} - */ -function filterChildren(children) { - let newChildren = children; - newChildren = filterMax(newChildren, - /** - * - * @param {SchemaUtilErrorObject} error - * @returns {number} - */ - error => error.instancePath ? error.instancePath.length : 0); - newChildren = filterMax(newChildren, - /** - * @param {SchemaUtilErrorObject} error - * @returns {number} - */ - error => SPECIFICITY[/** @type {keyof typeof SPECIFICITY} */error.keyword] || 2); - return newChildren; -} - -/** - * Find all children errors - * @param {Array} children - * @param {Array} schemaPaths - * @return {number} returns index of first child - */ -function findAllChildren(children, schemaPaths) { - let i = children.length - 1; - const predicate = - /** - * @param {string} schemaPath - * @returns {boolean} - */ - schemaPath => children[i].schemaPath.indexOf(schemaPath) !== 0; - while (i > -1 && !schemaPaths.every(predicate)) { - if (children[i].keyword === "anyOf" || children[i].keyword === "oneOf") { - const refs = extractRefs(children[i]); - const childrenStart = findAllChildren(children.slice(0, i), refs.concat(children[i].schemaPath)); - i = childrenStart - 1; - } else { - i -= 1; - } - } - return i + 1; -} - -/** - * Extracts all refs from schema - * @param {SchemaUtilErrorObject} error - * @return {Array} - */ -function extractRefs(error) { - const { - schema - } = error; - if (!Array.isArray(schema)) { - return []; - } - return schema.map(({ - $ref - }) => $ref).filter(s => s); -} - -/** - * Groups children by their first level parent (assuming that error is root) - * @param {Array} children - * @return {Array} - */ -function groupChildrenByFirstChild(children) { - const result = []; - let i = children.length - 1; - while (i > 0) { - const child = children[i]; - if (child.keyword === "anyOf" || child.keyword === "oneOf") { - const refs = extractRefs(child); - const childrenStart = findAllChildren(children.slice(0, i), refs.concat(child.schemaPath)); - if (childrenStart !== i) { - result.push(Object.assign({}, child, { - children: children.slice(childrenStart, i) - })); - i = childrenStart; - } else { - result.push(child); - } - } else { - result.push(child); - } - i -= 1; - } - if (i === 0) { - result.push(children[i]); - } - return result.reverse(); -} - -/** - * @param {string} str - * @param {string} prefix - * @returns {string} - */ -function indent(str, prefix) { - return str.replace(/\n(?!$)/g, `\n${prefix}`); -} - -/** - * @param {Schema} schema - * @returns {schema is (Schema & {not: Schema})} - */ -function hasNotInSchema(schema) { - return !!schema.not; -} - -/** - * @param {Schema} schema - * @return {Schema} - */ -function findFirstTypedSchema(schema) { - if (hasNotInSchema(schema)) { - return findFirstTypedSchema(schema.not); - } - return schema; -} - -/** - * @param {Schema} schema - * @return {boolean} - */ -function canApplyNot(schema) { - const typedSchema = findFirstTypedSchema(schema); - return likeNumber(typedSchema) || likeInteger(typedSchema) || likeString(typedSchema) || likeNull(typedSchema) || likeBoolean(typedSchema); -} - -/** - * @param {any} maybeObj - * @returns {boolean} - */ -function isObject(maybeObj) { - return typeof maybeObj === "object" && maybeObj !== null; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeNumber(schema) { - return schema.type === "number" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeInteger(schema) { - return schema.type === "integer" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeString(schema) { - return schema.type === "string" || typeof schema.minLength !== "undefined" || typeof schema.maxLength !== "undefined" || typeof schema.pattern !== "undefined" || typeof schema.format !== "undefined" || typeof schema.formatMinimum !== "undefined" || typeof schema.formatMaximum !== "undefined"; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeBoolean(schema) { - return schema.type === "boolean"; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeArray(schema) { - return schema.type === "array" || typeof schema.minItems === "number" || typeof schema.maxItems === "number" || typeof schema.uniqueItems !== "undefined" || typeof schema.items !== "undefined" || typeof schema.additionalItems !== "undefined" || typeof schema.contains !== "undefined"; -} - -/** - * @param {Schema & {patternRequired?: Array}} schema - * @returns {boolean} - */ -function likeObject(schema) { - return schema.type === "object" || typeof schema.minProperties !== "undefined" || typeof schema.maxProperties !== "undefined" || typeof schema.required !== "undefined" || typeof schema.properties !== "undefined" || typeof schema.patternProperties !== "undefined" || typeof schema.additionalProperties !== "undefined" || typeof schema.dependencies !== "undefined" || typeof schema.propertyNames !== "undefined" || typeof schema.patternRequired !== "undefined"; -} - -/** - * @param {Schema} schema - * @returns {boolean} - */ -function likeNull(schema) { - return schema.type === "null"; -} - -/** - * @param {string} type - * @returns {string} - */ -function getArticle(type) { - if (/^[aeiou]/i.test(type)) { - return "an"; - } - return "a"; -} - -/** - * @param {Schema=} schema - * @returns {string} - */ -function getSchemaNonTypes(schema) { - if (!schema) { - return ""; - } - if (!schema.type) { - if (likeNumber(schema) || likeInteger(schema)) { - return " | should be any non-number"; - } - if (likeString(schema)) { - return " | should be any non-string"; - } - if (likeArray(schema)) { - return " | should be any non-array"; - } - if (likeObject(schema)) { - return " | should be any non-object"; - } - } - return ""; -} - -/** - * @param {Array} hints - * @returns {string} - */ -function formatHints(hints) { - return hints.length > 0 ? `(${hints.join(", ")})` : ""; -} -const getUtilHints = (0, _memorize.default)(() => -// eslint-disable-next-line global-require -require("./util/hints")); - -/** - * @param {Schema} schema - * @param {boolean} logic - * @returns {string[]} - */ -function getHints(schema, logic) { - if (likeNumber(schema) || likeInteger(schema)) { - const util = getUtilHints(); - return util.numberHints(schema, logic); - } else if (likeString(schema)) { - const util = getUtilHints(); - return util.stringHints(schema, logic); - } - return []; -} -class ValidationError extends Error { - /** - * @param {Array} errors - * @param {Schema} schema - * @param {ValidationErrorConfiguration} configuration - */ - constructor(errors, schema, configuration = {}) { - super(); - - /** @type {string} */ - this.name = "ValidationError"; - /** @type {Array} */ - this.errors = errors; - /** @type {Schema} */ - this.schema = schema; - let headerNameFromSchema; - let baseDataPathFromSchema; - if (schema.title && (!configuration.name || !configuration.baseDataPath)) { - const splittedTitleFromSchema = schema.title.match(/^(.+) (.+)$/); - if (splittedTitleFromSchema) { - if (!configuration.name) { - [, headerNameFromSchema] = splittedTitleFromSchema; - } - if (!configuration.baseDataPath) { - [,, baseDataPathFromSchema] = splittedTitleFromSchema; - } - } - } - - /** @type {string} */ - this.headerName = configuration.name || headerNameFromSchema || "Object"; - /** @type {string} */ - this.baseDataPath = configuration.baseDataPath || baseDataPathFromSchema || "configuration"; - - /** @type {PostFormatter | null} */ - this.postFormatter = configuration.postFormatter || null; - const header = `Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`; - - /** @type {string} */ - this.message = `${header}${this.formatValidationErrors(errors)}`; - Error.captureStackTrace(this, this.constructor); - } - - /** - * @param {string} path - * @returns {Schema} - */ - getSchemaPart(path) { - const newPath = path.split("/"); - let schemaPart = this.schema; - for (let i = 1; i < newPath.length; i++) { - const inner = schemaPart[/** @type {keyof Schema} */newPath[i]]; - if (!inner) { - break; - } - schemaPart = inner; - } - return schemaPart; - } - - /** - * @param {Schema} schema - * @param {boolean} logic - * @param {Array} prevSchemas - * @returns {string} - */ - formatSchema(schema, logic = true, prevSchemas = []) { - let newLogic = logic; - const formatInnerSchema = - /** - * - * @param {Object} innerSchema - * @param {boolean=} addSelf - * @returns {string} - */ - (innerSchema, addSelf) => { - if (!addSelf) { - return this.formatSchema(innerSchema, newLogic, prevSchemas); - } - if (prevSchemas.includes(innerSchema)) { - return "(recursive)"; - } - return this.formatSchema(innerSchema, newLogic, prevSchemas.concat(schema)); - }; - if (hasNotInSchema(schema) && !likeObject(schema)) { - if (canApplyNot(schema.not)) { - newLogic = !logic; - return formatInnerSchema(schema.not); - } - const needApplyLogicHere = !schema.not.not; - const prefix = logic ? "" : "non "; - newLogic = !logic; - return needApplyLogicHere ? prefix + formatInnerSchema(schema.not) : formatInnerSchema(schema.not); - } - if ( /** @type {Schema & {instanceof: string | Array}} */schema.instanceof) { - const { - instanceof: value - } = /** @type {Schema & {instanceof: string | Array}} */schema; - const values = !Array.isArray(value) ? [value] : value; - return values.map( - /** - * @param {string} item - * @returns {string} - */ - item => item === "Function" ? "function" : item).join(" | "); - } - if (schema.enum) { - const enumValues = /** @type {Array} */schema.enum.map(item => { - if (item === null && schema.undefinedAsNull) { - return `${JSON.stringify(item)} | undefined`; - } - return JSON.stringify(item); - }).join(" | "); - return `${enumValues}`; - } - if (typeof schema.const !== "undefined") { - return JSON.stringify(schema.const); - } - if (schema.oneOf) { - return (/** @type {Array} */schema.oneOf.map(item => formatInnerSchema(item, true)).join(" | ") - ); - } - if (schema.anyOf) { - return (/** @type {Array} */schema.anyOf.map(item => formatInnerSchema(item, true)).join(" | ") - ); - } - if (schema.allOf) { - return (/** @type {Array} */schema.allOf.map(item => formatInnerSchema(item, true)).join(" & ") - ); - } - if ( /** @type {JSONSchema7} */schema.if) { - const { - if: ifValue, - then: thenValue, - else: elseValue - } = /** @type {JSONSchema7} */schema; - return `${ifValue ? `if ${formatInnerSchema(ifValue)}` : ""}${thenValue ? ` then ${formatInnerSchema(thenValue)}` : ""}${elseValue ? ` else ${formatInnerSchema(elseValue)}` : ""}`; - } - if (schema.$ref) { - return formatInnerSchema(this.getSchemaPart(schema.$ref), true); - } - if (likeNumber(schema) || likeInteger(schema)) { - const [type, ...hints] = getHints(schema, logic); - const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; - return logic ? str : hints.length > 0 ? `non-${type} | ${str}` : `non-${type}`; - } - if (likeString(schema)) { - const [type, ...hints] = getHints(schema, logic); - const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; - return logic ? str : str === "string" ? "non-string" : `non-string | ${str}`; - } - if (likeBoolean(schema)) { - return `${logic ? "" : "non-"}boolean`; - } - if (likeArray(schema)) { - // not logic already applied in formatValidationError - newLogic = true; - const hints = []; - if (typeof schema.minItems === "number") { - hints.push(`should not have fewer than ${schema.minItems} item${schema.minItems > 1 ? "s" : ""}`); - } - if (typeof schema.maxItems === "number") { - hints.push(`should not have more than ${schema.maxItems} item${schema.maxItems > 1 ? "s" : ""}`); - } - if (schema.uniqueItems) { - hints.push("should not have duplicate items"); - } - const hasAdditionalItems = typeof schema.additionalItems === "undefined" || Boolean(schema.additionalItems); - let items = ""; - if (schema.items) { - if (Array.isArray(schema.items) && schema.items.length > 0) { - items = `${ - /** @type {Array} */schema.items.map(item => formatInnerSchema(item)).join(", ")}`; - if (hasAdditionalItems) { - if (schema.additionalItems && isObject(schema.additionalItems) && Object.keys(schema.additionalItems).length > 0) { - hints.push(`additional items should be ${formatInnerSchema(schema.additionalItems)}`); - } - } - } else if (schema.items && Object.keys(schema.items).length > 0) { - // "additionalItems" is ignored - items = `${formatInnerSchema(schema.items)}`; - } else { - // Fallback for empty `items` value - items = "any"; - } - } else { - // "additionalItems" is ignored - items = "any"; - } - if (schema.contains && Object.keys(schema.contains).length > 0) { - hints.push(`should contains at least one ${this.formatSchema(schema.contains)} item`); - } - return `[${items}${hasAdditionalItems ? ", ..." : ""}]${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; - } - if (likeObject(schema)) { - // not logic already applied in formatValidationError - newLogic = true; - const hints = []; - if (typeof schema.minProperties === "number") { - hints.push(`should not have fewer than ${schema.minProperties} ${schema.minProperties > 1 ? "properties" : "property"}`); - } - if (typeof schema.maxProperties === "number") { - hints.push(`should not have more than ${schema.maxProperties} ${schema.minProperties && schema.minProperties > 1 ? "properties" : "property"}`); - } - if (schema.patternProperties && Object.keys(schema.patternProperties).length > 0) { - const patternProperties = Object.keys(schema.patternProperties); - hints.push(`additional property names should match pattern${patternProperties.length > 1 ? "s" : ""} ${patternProperties.map(pattern => JSON.stringify(pattern)).join(" | ")}`); - } - const properties = schema.properties ? Object.keys(schema.properties) : []; - /** @type {Array} */ - // @ts-ignore - const required = schema.required ? schema.required : []; - const allProperties = [...new Set( /** @type {Array} */[].concat(required).concat(properties))]; - const objectStructure = allProperties.map(property => { - const isRequired = required.includes(property); - - // Some properties need quotes, maybe we should add check - // Maybe we should output type of property (`foo: string`), but it is looks very unreadable - return `${property}${isRequired ? "" : "?"}`; - }).concat(typeof schema.additionalProperties === "undefined" || Boolean(schema.additionalProperties) ? schema.additionalProperties && isObject(schema.additionalProperties) ? [`: ${formatInnerSchema(schema.additionalProperties)}`] : ["…"] : []).join(", "); - const { - dependencies, - propertyNames, - patternRequired - } = /** @type {Schema & {patternRequired?: Array;}} */schema; - if (dependencies) { - Object.keys(dependencies).forEach(dependencyName => { - const dependency = dependencies[dependencyName]; - if (Array.isArray(dependency)) { - hints.push(`should have ${dependency.length > 1 ? "properties" : "property"} ${dependency.map(dep => `'${dep}'`).join(", ")} when property '${dependencyName}' is present`); - } else { - hints.push(`should be valid according to the schema ${formatInnerSchema(dependency)} when property '${dependencyName}' is present`); - } - }); - } - if (propertyNames && Object.keys(propertyNames).length > 0) { - hints.push(`each property name should match format ${JSON.stringify(schema.propertyNames.format)}`); - } - if (patternRequired && patternRequired.length > 0) { - hints.push(`should have property matching pattern ${patternRequired.map( - /** - * @param {string} item - * @returns {string} - */ - item => JSON.stringify(item))}`); - } - return `object {${objectStructure ? ` ${objectStructure} ` : ""}}${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; - } - if (likeNull(schema)) { - return `${logic ? "" : "non-"}null`; - } - if (Array.isArray(schema.type)) { - // not logic already applied in formatValidationError - return `${schema.type.join(" | ")}`; - } - - // Fallback for unknown keywords - // not logic already applied in formatValidationError - /* istanbul ignore next */ - return JSON.stringify(schema, null, 2); - } - - /** - * @param {Schema=} schemaPart - * @param {(boolean | Array)=} additionalPath - * @param {boolean=} needDot - * @param {boolean=} logic - * @returns {string} - */ - getSchemaPartText(schemaPart, additionalPath, needDot = false, logic = true) { - if (!schemaPart) { - return ""; - } - if (Array.isArray(additionalPath)) { - for (let i = 0; i < additionalPath.length; i++) { - /** @type {Schema | undefined} */ - const inner = schemaPart[/** @type {keyof Schema} */additionalPath[i]]; - if (inner) { - // eslint-disable-next-line no-param-reassign - schemaPart = inner; - } else { - break; - } - } - } - while (schemaPart.$ref) { - // eslint-disable-next-line no-param-reassign - schemaPart = this.getSchemaPart(schemaPart.$ref); - } - let schemaText = `${this.formatSchema(schemaPart, logic)}${needDot ? "." : ""}`; - if (schemaPart.description) { - schemaText += `\n-> ${schemaPart.description}`; - } - if (schemaPart.link) { - schemaText += `\n-> Read more at ${schemaPart.link}`; - } - return schemaText; - } - - /** - * @param {Schema=} schemaPart - * @returns {string} - */ - getSchemaPartDescription(schemaPart) { - if (!schemaPart) { - return ""; - } - while (schemaPart.$ref) { - // eslint-disable-next-line no-param-reassign - schemaPart = this.getSchemaPart(schemaPart.$ref); - } - let schemaText = ""; - if (schemaPart.description) { - schemaText += `\n-> ${schemaPart.description}`; - } - if (schemaPart.link) { - schemaText += `\n-> Read more at ${schemaPart.link}`; - } - return schemaText; - } - - /** - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - formatValidationError(error) { - const { - keyword, - instancePath: errorInstancePath - } = error; - const splittedInstancePath = errorInstancePath.split("/"); - /** - * @type {Array} - */ - const defaultValue = []; - const prettyInstancePath = splittedInstancePath.reduce((acc, val) => { - if (val.length > 0) { - if (isNumeric(val)) { - acc.push(`[${val}]`); - } else if (/^\[/.test(val)) { - acc.push(val); - } else { - acc.push(`.${val}`); - } - } - return acc; - }, defaultValue).join(""); - const instancePath = `${this.baseDataPath}${prettyInstancePath}`; - - // const { keyword, instancePath: errorInstancePath } = error; - // const instancePath = `${this.baseDataPath}${errorInstancePath.replace(/\//g, '.')}`; - - switch (keyword) { - case "type": - { - const { - parentSchema, - params - } = error; - switch (params.type) { - case "number": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - case "integer": - return `${instancePath} should be an ${this.getSchemaPartText(parentSchema, false, true)}`; - case "string": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - case "boolean": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - case "array": - return `${instancePath} should be an array:\n${this.getSchemaPartText(parentSchema)}`; - case "object": - return `${instancePath} should be an object:\n${this.getSchemaPartText(parentSchema)}`; - case "null": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - default: - return `${instancePath} should be:\n${this.getSchemaPartText(parentSchema)}`; - } - } - case "instanceof": - { - const { - parentSchema - } = error; - return `${instancePath} should be an instance of ${this.getSchemaPartText(parentSchema, false, true)}`; - } - case "pattern": - { - const { - params, - parentSchema - } = error; - const { - pattern - } = params; - return `${instancePath} should match pattern ${JSON.stringify(pattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "format": - { - const { - params, - parentSchema - } = error; - const { - format - } = params; - return `${instancePath} should match format ${JSON.stringify(format)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "formatMinimum": - case "formatExclusiveMinimum": - case "formatMaximum": - case "formatExclusiveMaximum": - { - const { - params, - parentSchema - } = error; - const { - comparison, - limit - } = params; - return `${instancePath} should be ${comparison} ${JSON.stringify(limit)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "minimum": - case "maximum": - case "exclusiveMinimum": - case "exclusiveMaximum": - { - const { - parentSchema, - params - } = error; - const { - comparison, - limit - } = params; - const [, ...hints] = getHints( /** @type {Schema} */parentSchema, true); - if (hints.length === 0) { - hints.push(`should be ${comparison} ${limit}`); - } - return `${instancePath} ${hints.join(" ")}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "multipleOf": - { - const { - params, - parentSchema - } = error; - const { - multipleOf - } = params; - return `${instancePath} should be multiple of ${multipleOf}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "patternRequired": - { - const { - params, - parentSchema - } = error; - const { - missingPattern - } = params; - return `${instancePath} should have property matching pattern ${JSON.stringify(missingPattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "minLength": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - if (limit === 1) { - return `${instancePath} should be a non-empty string${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - const length = limit - 1; - return `${instancePath} should be longer than ${length} character${length > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "minItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - if (limit === 1) { - return `${instancePath} should be a non-empty array${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - return `${instancePath} should not have fewer than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "minProperties": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - if (limit === 1) { - return `${instancePath} should be a non-empty object${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - return `${instancePath} should not have fewer than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "maxLength": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - const max = limit + 1; - return `${instancePath} should be shorter than ${max} character${max > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "maxItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "maxProperties": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "uniqueItems": - { - const { - params, - parentSchema - } = error; - const { - i - } = params; - return `${instancePath} should not contain the item '${ - /** @type {{ data: Array }} **/error.data[i]}' twice${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "additionalItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}. These items are valid:\n${this.getSchemaPartText(parentSchema)}`; - } - case "contains": - { - const { - parentSchema - } = error; - return `${instancePath} should contains at least one ${this.getSchemaPartText(parentSchema, ["contains"])} item${getSchemaNonTypes(parentSchema)}.`; - } - case "required": - { - const { - parentSchema, - params - } = error; - const missingProperty = params.missingProperty.replace(/^\./, ""); - const hasProperty = parentSchema && Boolean( /** @type {Schema} */ - parentSchema.properties && /** @type {Schema} */ - parentSchema.properties[missingProperty]); - return `${instancePath} misses the property '${missingProperty}'${getSchemaNonTypes(parentSchema)}.${hasProperty ? ` Should be:\n${this.getSchemaPartText(parentSchema, ["properties", missingProperty])}` : this.getSchemaPartDescription(parentSchema)}`; - } - case "additionalProperties": - { - const { - params, - parentSchema - } = error; - const { - additionalProperty - } = params; - return `${instancePath} has an unknown property '${additionalProperty}'${getSchemaNonTypes(parentSchema)}. These properties are valid:\n${this.getSchemaPartText(parentSchema)}`; - } - case "dependencies": - { - const { - params, - parentSchema - } = error; - const { - property, - deps - } = params; - const dependencies = deps.split(",").map( - /** - * @param {string} dep - * @returns {string} - */ - dep => `'${dep.trim()}'`).join(", "); - return `${instancePath} should have properties ${dependencies} when property '${property}' is present${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "propertyNames": - { - const { - params, - parentSchema, - schema - } = error; - const { - propertyName - } = params; - return `${instancePath} property name '${propertyName}' is invalid${getSchemaNonTypes(parentSchema)}. Property names should be match format ${JSON.stringify(schema.format)}.${this.getSchemaPartDescription(parentSchema)}`; - } - case "enum": - { - const { - parentSchema - } = error; - if (parentSchema && /** @type {Schema} */ - parentSchema.enum && /** @type {Schema} */ - parentSchema.enum.length === 1) { - return `${instancePath} should be ${this.getSchemaPartText(parentSchema, false, true)}`; - } - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; - } - case "const": - { - const { - parentSchema - } = error; - return `${instancePath} should be equal to constant ${this.getSchemaPartText(parentSchema, false, true)}`; - } - case "not": - { - const postfix = likeObject( /** @type {Schema} */error.parentSchema) ? `\n${this.getSchemaPartText(error.parentSchema)}` : ""; - const schemaOutput = this.getSchemaPartText(error.schema, false, false, false); - if (canApplyNot(error.schema)) { - return `${instancePath} should be any ${schemaOutput}${postfix}.`; - } - const { - schema, - parentSchema - } = error; - return `${instancePath} should not be ${this.getSchemaPartText(schema, false, true)}${parentSchema && likeObject(parentSchema) ? `\n${this.getSchemaPartText(parentSchema)}` : ""}`; - } - case "oneOf": - case "anyOf": - { - const { - parentSchema, - children - } = error; - if (children && children.length > 0) { - if (error.schema.length === 1) { - const lastChild = children[children.length - 1]; - const remainingChildren = children.slice(0, children.length - 1); - return this.formatValidationError(Object.assign({}, lastChild, { - children: remainingChildren, - parentSchema: Object.assign({}, parentSchema, lastChild.parentSchema) - })); - } - let filteredChildren = filterChildren(children); - if (filteredChildren.length === 1) { - return this.formatValidationError(filteredChildren[0]); - } - filteredChildren = groupChildrenByFirstChild(filteredChildren); - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}\nDetails:\n${filteredChildren.map( - /** - * @param {SchemaUtilErrorObject} nestedError - * @returns {string} - */ - nestedError => ` * ${indent(this.formatValidationError(nestedError), " ")}`).join("\n")}`; - } - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; - } - case "if": - { - const { - params, - parentSchema - } = error; - const { - failingKeyword - } = params; - return `${instancePath} should match "${failingKeyword}" schema:\n${this.getSchemaPartText(parentSchema, [failingKeyword])}`; - } - case "absolutePath": - { - const { - message, - parentSchema - } = error; - return `${instancePath}: ${message}${this.getSchemaPartDescription(parentSchema)}`; - } - /* istanbul ignore next */ - default: - { - const { - message, - parentSchema - } = error; - const ErrorInJSON = JSON.stringify(error, null, 2); - - // For `custom`, `false schema`, `$ref` keywords - // Fallback for unknown keywords - return `${instancePath} ${message} (${ErrorInJSON}).\n${this.getSchemaPartText(parentSchema, false)}`; - } - } - } - - /** - * @param {Array} errors - * @returns {string} - */ - formatValidationErrors(errors) { - return errors.map(error => { - let formattedError = this.formatValidationError(error); - if (this.postFormatter) { - formattedError = this.postFormatter(formattedError, error); - } - return ` - ${indent(formattedError, " ")}`; - }).join("\n"); - } -} -var _default = ValidationError; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/index.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/index.js deleted file mode 100644 index 4574912d..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -const { - validate, - ValidationError, - enableValidation, - disableValidation, - needValidate -} = require("./validate"); -module.exports = { - validate, - ValidationError, - enableValidation, - disableValidation, - needValidate -}; \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js deleted file mode 100644 index 349f6b92..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -/** @typedef {import("ajv").default} Ajv */ -/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */ -/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */ -/** @typedef {import("../validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ - -/** - * @param {string} message - * @param {object} schema - * @param {string} data - * @returns {SchemaUtilErrorObject} - */ -function errorMessage(message, schema, data) { - return { - // @ts-ignore - // eslint-disable-next-line no-undefined - dataPath: undefined, - // @ts-ignore - // eslint-disable-next-line no-undefined - schemaPath: undefined, - keyword: "absolutePath", - params: { - absolutePath: data - }, - message, - parentSchema: schema - }; -} - -/** - * @param {boolean} shouldBeAbsolute - * @param {object} schema - * @param {string} data - * @returns {SchemaUtilErrorObject} - */ -function getErrorFor(shouldBeAbsolute, schema, data) { - const message = shouldBeAbsolute ? `The provided value ${JSON.stringify(data)} is not an absolute path!` : `A relative path is expected. However, the provided value ${JSON.stringify(data)} is an absolute path!`; - return errorMessage(message, schema, data); -} - -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ -function addAbsolutePathKeyword(ajv) { - ajv.addKeyword({ - keyword: "absolutePath", - type: "string", - errors: true, - /** - * @param {boolean} schema - * @param {AnySchemaObject} parentSchema - * @returns {SchemaValidateFunction} - */ - compile(schema, parentSchema) { - /** @type {SchemaValidateFunction} */ - const callback = data => { - let passes = true; - const isExclamationMarkPresent = data.includes("!"); - if (isExclamationMarkPresent) { - callback.errors = [errorMessage(`The provided value ${JSON.stringify(data)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`, parentSchema, data)]; - passes = false; - } - - // ?:[A-Za-z]:\\ - Windows absolute path - // \\\\ - Windows network absolute path - // \/ - Unix-like OS absolute path - const isCorrectAbsolutePath = schema === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data); - if (!isCorrectAbsolutePath) { - callback.errors = [getErrorFor(schema, parentSchema, data)]; - passes = false; - } - return passes; - }; - callback.errors = []; - return callback; - } - }); - return ajv; -} -var _default = addAbsolutePathKeyword; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/Range.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/Range.js deleted file mode 100644 index 318ebabd..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/Range.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; - -/** - * @typedef {[number, boolean]} RangeValue - */ - -/** - * @callback RangeValueCallback - * @param {RangeValue} rangeValue - * @returns {boolean} - */ - -class Range { - /** - * @param {"left" | "right"} side - * @param {boolean} exclusive - * @returns {">" | ">=" | "<" | "<="} - */ - static getOperator(side, exclusive) { - if (side === "left") { - return exclusive ? ">" : ">="; - } - return exclusive ? "<" : "<="; - } - - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatRight(value, logic, exclusive) { - if (logic === false) { - return Range.formatLeft(value, !logic, !exclusive); - } - return `should be ${Range.getOperator("right", exclusive)} ${value}`; - } - - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatLeft(value, logic, exclusive) { - if (logic === false) { - return Range.formatRight(value, !logic, !exclusive); - } - return `should be ${Range.getOperator("left", exclusive)} ${value}`; - } - - /** - * @param {number} start left side value - * @param {number} end right side value - * @param {boolean} startExclusive is range exclusive from left side - * @param {boolean} endExclusive is range exclusive from right side - * @param {boolean} logic is not logic applied - * @returns {string} - */ - static formatRange(start, end, startExclusive, endExclusive, logic) { - let result = "should be"; - result += ` ${Range.getOperator(logic ? "left" : "right", logic ? startExclusive : !startExclusive)} ${start} `; - result += logic ? "and" : "or"; - result += ` ${Range.getOperator(logic ? "right" : "left", logic ? endExclusive : !endExclusive)} ${end}`; - return result; - } - - /** - * @param {Array} values - * @param {boolean} logic is not logic applied - * @return {RangeValue} computed value and it's exclusive flag - */ - static getRangeValue(values, logic) { - let minMax = logic ? Infinity : -Infinity; - let j = -1; - const predicate = logic ? /** @type {RangeValueCallback} */ - ([value]) => value <= minMax : /** @type {RangeValueCallback} */ - ([value]) => value >= minMax; - for (let i = 0; i < values.length; i++) { - if (predicate(values[i])) { - [minMax] = values[i]; - j = i; - } - } - if (j > -1) { - return values[j]; - } - return [Infinity, true]; - } - constructor() { - /** @type {Array} */ - this._left = []; - /** @type {Array} */ - this._right = []; - } - - /** - * @param {number} value - * @param {boolean=} exclusive - */ - left(value, exclusive = false) { - this._left.push([value, exclusive]); - } - - /** - * @param {number} value - * @param {boolean=} exclusive - */ - right(value, exclusive = false) { - this._right.push([value, exclusive]); - } - - /** - * @param {boolean} logic is not logic applied - * @return {string} "smart" range string representation - */ - format(logic = true) { - const [start, leftExclusive] = Range.getRangeValue(this._left, logic); - const [end, rightExclusive] = Range.getRangeValue(this._right, !logic); - if (!Number.isFinite(start) && !Number.isFinite(end)) { - return ""; - } - const realStart = leftExclusive ? start + 1 : start; - const realEnd = rightExclusive ? end - 1 : end; - - // e.g. 5 < x < 7, 5 < x <= 6, 6 <= x <= 6 - if (realStart === realEnd) { - return `should be ${logic ? "" : "!"}= ${realStart}`; - } - - // e.g. 4 < x < ∞ - if (Number.isFinite(start) && !Number.isFinite(end)) { - return Range.formatLeft(start, logic, leftExclusive); - } - - // e.g. ∞ < x < 4 - if (!Number.isFinite(start) && Number.isFinite(end)) { - return Range.formatRight(end, logic, rightExclusive); - } - return Range.formatRange(start, end, leftExclusive, rightExclusive, logic); - } -} -module.exports = Range; \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/hints.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/hints.js deleted file mode 100644 index 53783d11..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/util/hints.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; - -const Range = require("./Range"); - -/** @typedef {import("../validate").Schema} Schema */ - -/** - * @param {Schema} schema - * @param {boolean} logic - * @return {string[]} - */ -module.exports.stringHints = function stringHints(schema, logic) { - const hints = []; - let type = "string"; - const currentSchema = { - ...schema - }; - if (!logic) { - const tmpLength = currentSchema.minLength; - const tmpFormat = currentSchema.formatMinimum; - currentSchema.minLength = currentSchema.maxLength; - currentSchema.maxLength = tmpLength; - currentSchema.formatMinimum = currentSchema.formatMaximum; - currentSchema.formatMaximum = tmpFormat; - } - if (typeof currentSchema.minLength === "number") { - if (currentSchema.minLength === 1) { - type = "non-empty string"; - } else { - const length = Math.max(currentSchema.minLength - 1, 0); - hints.push(`should be longer than ${length} character${length > 1 ? "s" : ""}`); - } - } - if (typeof currentSchema.maxLength === "number") { - if (currentSchema.maxLength === 0) { - type = "empty string"; - } else { - const length = currentSchema.maxLength + 1; - hints.push(`should be shorter than ${length} character${length > 1 ? "s" : ""}`); - } - } - if (currentSchema.pattern) { - hints.push(`should${logic ? "" : " not"} match pattern ${JSON.stringify(currentSchema.pattern)}`); - } - if (currentSchema.format) { - hints.push(`should${logic ? "" : " not"} match format ${JSON.stringify(currentSchema.format)}`); - } - if (currentSchema.formatMinimum) { - hints.push(`should be ${currentSchema.formatExclusiveMinimum ? ">" : ">="} ${JSON.stringify(currentSchema.formatMinimum)}`); - } - if (currentSchema.formatMaximum) { - hints.push(`should be ${currentSchema.formatExclusiveMaximum ? "<" : "<="} ${JSON.stringify(currentSchema.formatMaximum)}`); - } - return [type].concat(hints); -}; - -/** - * @param {Schema} schema - * @param {boolean} logic - * @return {string[]} - */ -module.exports.numberHints = function numberHints(schema, logic) { - const hints = [schema.type === "integer" ? "integer" : "number"]; - const range = new Range(); - if (typeof schema.minimum === "number") { - range.left(schema.minimum); - } - if (typeof schema.exclusiveMinimum === "number") { - range.left(schema.exclusiveMinimum, true); - } - if (typeof schema.maximum === "number") { - range.right(schema.maximum); - } - if (typeof schema.exclusiveMaximum === "number") { - range.right(schema.exclusiveMaximum, true); - } - const rangeFormat = range.format(logic); - if (rangeFormat) { - hints.push(rangeFormat); - } - if (typeof schema.multipleOf === "number") { - hints.push(`should${logic ? "" : " not"} be multiple of ${schema.multipleOf}`); - } - return hints; -}; \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/validate.js b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/validate.js deleted file mode 100644 index 3abc3bf6..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/dist/validate.js +++ /dev/null @@ -1,207 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "ValidationError", { - enumerable: true, - get: function () { - return _ValidationError.default; - } -}); -exports.disableValidation = disableValidation; -exports.enableValidation = enableValidation; -exports.needValidate = needValidate; -exports.validate = validate; -var _ValidationError = _interopRequireDefault(require("./ValidationError")); -var _memorize = _interopRequireDefault(require("./util/memorize")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -const getAjv = (0, _memorize.default)(() => { - // Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110). - // eslint-disable-next-line global-require - const Ajv = require("ajv").default; - // eslint-disable-next-line global-require - const ajvKeywords = require("ajv-keywords").default; - // eslint-disable-next-line global-require - const addFormats = require("ajv-formats").default; - - /** - * @type {Ajv} - */ - const ajv = new Ajv({ - strict: false, - allErrors: true, - verbose: true, - $data: true - }); - ajvKeywords(ajv, ["instanceof", "patternRequired"]); - addFormats(ajv, { - keywords: true - }); - - // Custom keywords - // eslint-disable-next-line global-require - const addAbsolutePathKeyword = require("./keywords/absolutePath").default; - addAbsolutePathKeyword(ajv); - const addUndefinedAsNullKeyword = - // eslint-disable-next-line global-require - require("./keywords/undefinedAsNull").default; - addUndefinedAsNullKeyword(ajv); - return ajv; -}); - -/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */ -/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ -/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ -/** @typedef {import("ajv").ErrorObject} ErrorObject */ - -/** - * @typedef {Object} Extend - * @property {string=} formatMinimum - * @property {string=} formatMaximum - * @property {string=} formatExclusiveMinimum - * @property {string=} formatExclusiveMaximum - * @property {string=} link - * @property {boolean=} undefinedAsNull - */ - -/** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend} Schema */ - -/** @typedef {ErrorObject & { children?: Array }} SchemaUtilErrorObject */ - -/** - * @callback PostFormatter - * @param {string} formattedError - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - -/** - * @typedef {Object} ValidationErrorConfiguration - * @property {string=} name - * @property {string=} baseDataPath - * @property {PostFormatter=} postFormatter - */ - -/** - * @param {SchemaUtilErrorObject} error - * @param {number} idx - * @returns {SchemaUtilErrorObject} - */ -function applyPrefix(error, idx) { - // eslint-disable-next-line no-param-reassign - error.instancePath = `[${idx}]${error.instancePath}`; - if (error.children) { - error.children.forEach(err => applyPrefix(err, idx)); - } - return error; -} -let skipValidation = false; - -// We use `process.env.SKIP_VALIDATION` because you can have multiple `schema-utils` with different version, -// so we want to disable it globally, `process.env` doesn't supported by browsers, so we have the local `skipValidation` variables - -// Enable validation -function enableValidation() { - skipValidation = false; - - // Disable validation for any versions - if (process && process.env) { - process.env.SKIP_VALIDATION = "n"; - } -} - -// Disable validation -function disableValidation() { - skipValidation = true; - if (process && process.env) { - process.env.SKIP_VALIDATION = "y"; - } -} - -// Check if we need to confirm -function needValidate() { - if (skipValidation) { - return false; - } - if (process && process.env && process.env.SKIP_VALIDATION) { - const value = process.env.SKIP_VALIDATION.trim(); - if (/^(?:y|yes|true|1|on)$/i.test(value)) { - return false; - } - if (/^(?:n|no|false|0|off)$/i.test(value)) { - return true; - } - } - return true; -} - -/** - * @param {Schema} schema - * @param {Array | object} options - * @param {ValidationErrorConfiguration=} configuration - * @returns {void} - */ -function validate(schema, options, configuration) { - if (!needValidate()) { - return; - } - let errors = []; - if (Array.isArray(options)) { - for (let i = 0; i <= options.length - 1; i++) { - errors.push(...validateObject(schema, options[i]).map(err => applyPrefix(err, i))); - } - } else { - errors = validateObject(schema, options); - } - if (errors.length > 0) { - throw new _ValidationError.default(errors, schema, configuration); - } -} - -/** - * @param {Schema} schema - * @param {Array | object} options - * @returns {Array} - */ -function validateObject(schema, options) { - // Not need to cache, because `ajv@8` has built-in cache - const compiledSchema = getAjv().compile(schema); - const valid = compiledSchema(options); - if (valid) return []; - return compiledSchema.errors ? filterErrors(compiledSchema.errors) : []; -} - -/** - * @param {Array} errors - * @returns {Array} - */ -function filterErrors(errors) { - /** @type {Array} */ - let newErrors = []; - for (const error of /** @type {Array} */errors) { - const { - instancePath - } = error; - /** @type {Array} */ - let children = []; - newErrors = newErrors.filter(oldError => { - if (oldError.instancePath.includes(instancePath)) { - if (oldError.children) { - children = children.concat(oldError.children.slice(0)); - } - - // eslint-disable-next-line no-undefined, no-param-reassign - oldError.children = undefined; - children.push(oldError); - return false; - } - return true; - }); - if (children.length) { - error.children = children; - } - newErrors.push(error); - } - return newErrors; -} \ No newline at end of file diff --git a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/package.json b/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/package.json deleted file mode 100644 index e119e72b..00000000 --- a/node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "schema-utils", - "version": "4.2.0", - "description": "webpack Validation Utils", - "license": "MIT", - "repository": "webpack/schema-utils", - "author": "webpack Contrib (https://github.com/webpack-contrib)", - "homepage": "https://github.com/webpack/schema-utils", - "bugs": "https://github.com/webpack/schema-utils/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "main": "dist/index.js", - "types": "declarations/index.d.ts", - "engines": { - "node": ">= 12.13.0" - }, - "scripts": { - "start": "npm run build -- -w", - "clean": "del-cli dist declarations", - "prebuild": "npm run clean", - "build:types": "tsc --declaration --emitDeclarationOnly --outDir declarations && prettier \"declarations/**/*.ts\" --write", - "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", - "build": "npm-run-all -p \"build:**\"", - "commitlint": "commitlint --from=master", - "security": "npm audit --production", - "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different", - "lint:js": "eslint --cache .", - "lint:types": "tsc --pretty --noEmit", - "lint": "npm-run-all lint:js lint:types fmt:check", - "fmt": "npm run fmt:check -- --write", - "fix:js": "npm run lint:js -- --fix", - "fix": "npm-run-all fix:js fmt", - "test:only": "cross-env NODE_ENV=test jest", - "test:watch": "npm run test:only -- --watch", - "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", - "pretest": "npm run lint", - "test": "npm run test:coverage", - "prepare": "npm run build && husky install", - "release": "standard-version" - }, - "files": [ - "dist", - "declarations" - ], - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "devDependencies": { - "@babel/cli": "^7.17.0", - "@babel/core": "^7.17.0", - "@babel/preset-env": "^7.16.11", - "@commitlint/cli": "^17.6.1", - "@commitlint/config-conventional": "^16.0.0", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^27.4.6", - "cross-env": "^7.0.3", - "del": "^6.0.0", - "del-cli": "^4.0.1", - "eslint": "^8.8.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.25.4", - "husky": "^7.0.4", - "jest": "^27.4.7", - "lint-staged": "^13.2.1", - "npm-run-all": "^4.1.5", - "prettier": "^2.5.1", - "standard-version": "^9.3.2", - "typescript": "^4.9.5", - "webpack": "^5.68.0" - }, - "keywords": [ - "webpack" - ] -} diff --git a/node_modules/css-what/.DS_Store b/node_modules/css-what/.DS_Store deleted file mode 100644 index e620127c..00000000 Binary files a/node_modules/css-what/.DS_Store and /dev/null differ diff --git a/node_modules/css-what/lib/.DS_Store b/node_modules/css-what/lib/.DS_Store deleted file mode 100644 index aa4e0d5a..00000000 Binary files a/node_modules/css-what/lib/.DS_Store and /dev/null differ diff --git a/node_modules/cssesc/.DS_Store b/node_modules/cssesc/.DS_Store deleted file mode 100644 index 18521181..00000000 Binary files a/node_modules/cssesc/.DS_Store and /dev/null differ diff --git a/node_modules/delayed-stream/.npmignore b/node_modules/delayed-stream/.npmignore deleted file mode 100644 index 9daeafb9..00000000 --- a/node_modules/delayed-stream/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test diff --git a/node_modules/delayed-stream/License b/node_modules/delayed-stream/License deleted file mode 100644 index 4804b7ab..00000000 --- a/node_modules/delayed-stream/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Debuggable Limited - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/delayed-stream/Makefile b/node_modules/delayed-stream/Makefile deleted file mode 100644 index b4ff85a3..00000000 --- a/node_modules/delayed-stream/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -SHELL := /bin/bash - -test: - @./test/run.js - -.PHONY: test - diff --git a/node_modules/delayed-stream/Readme.md b/node_modules/delayed-stream/Readme.md deleted file mode 100644 index aca36f9f..00000000 --- a/node_modules/delayed-stream/Readme.md +++ /dev/null @@ -1,141 +0,0 @@ -# delayed-stream - -Buffers events from a stream until you are ready to handle them. - -## Installation - -``` bash -npm install delayed-stream -``` - -## Usage - -The following example shows how to write a http echo server that delays its -response by 1000 ms. - -``` javascript -var DelayedStream = require('delayed-stream'); -var http = require('http'); - -http.createServer(function(req, res) { - var delayed = DelayedStream.create(req); - - setTimeout(function() { - res.writeHead(200); - delayed.pipe(res); - }, 1000); -}); -``` - -If you are not using `Stream#pipe`, you can also manually release the buffered -events by calling `delayedStream.resume()`: - -``` javascript -var delayed = DelayedStream.create(req); - -setTimeout(function() { - // Emit all buffered events and resume underlaying source - delayed.resume(); -}, 1000); -``` - -## Implementation - -In order to use this meta stream properly, here are a few things you should -know about the implementation. - -### Event Buffering / Proxying - -All events of the `source` stream are hijacked by overwriting the `source.emit` -method. Until node implements a catch-all event listener, this is the only way. - -However, delayed-stream still continues to emit all events it captures on the -`source`, regardless of whether you have released the delayed stream yet or -not. - -Upon creation, delayed-stream captures all `source` events and stores them in -an internal event buffer. Once `delayedStream.release()` is called, all -buffered events are emitted on the `delayedStream`, and the event buffer is -cleared. After that, delayed-stream merely acts as a proxy for the underlaying -source. - -### Error handling - -Error events on `source` are buffered / proxied just like any other events. -However, `delayedStream.create` attaches a no-op `'error'` listener to the -`source`. This way you only have to handle errors on the `delayedStream` -object, rather than in two places. - -### Buffer limits - -delayed-stream provides a `maxDataSize` property that can be used to limit -the amount of data being buffered. In order to protect you from bad `source` -streams that don't react to `source.pause()`, this feature is enabled by -default. - -## API - -### DelayedStream.create(source, [options]) - -Returns a new `delayedStream`. Available options are: - -* `pauseStream` -* `maxDataSize` - -The description for those properties can be found below. - -### delayedStream.source - -The `source` stream managed by this object. This is useful if you are -passing your `delayedStream` around, and you still want to access properties -on the `source` object. - -### delayedStream.pauseStream = true - -Whether to pause the underlaying `source` when calling -`DelayedStream.create()`. Modifying this property afterwards has no effect. - -### delayedStream.maxDataSize = 1024 * 1024 - -The amount of data to buffer before emitting an `error`. - -If the underlaying source is emitting `Buffer` objects, the `maxDataSize` -refers to bytes. - -If the underlaying source is emitting JavaScript strings, the size refers to -characters. - -If you know what you are doing, you can set this property to `Infinity` to -disable this feature. You can also modify this property during runtime. - -### delayedStream.dataSize = 0 - -The amount of data buffered so far. - -### delayedStream.readable - -An ECMA5 getter that returns the value of `source.readable`. - -### delayedStream.resume() - -If the `delayedStream` has not been released so far, `delayedStream.release()` -is called. - -In either case, `source.resume()` is called. - -### delayedStream.pause() - -Calls `source.pause()`. - -### delayedStream.pipe(dest) - -Calls `delayedStream.resume()` and then proxies the arguments to `source.pipe`. - -### delayedStream.release() - -Emits and clears all events that have been buffered up so far. This does not -resume the underlaying source, use `delayedStream.resume()` instead. - -## License - -delayed-stream is licensed under the MIT license. diff --git a/node_modules/delayed-stream/lib/delayed_stream.js b/node_modules/delayed-stream/lib/delayed_stream.js deleted file mode 100644 index b38fc85f..00000000 --- a/node_modules/delayed-stream/lib/delayed_stream.js +++ /dev/null @@ -1,107 +0,0 @@ -var Stream = require('stream').Stream; -var util = require('util'); - -module.exports = DelayedStream; -function DelayedStream() { - this.source = null; - this.dataSize = 0; - this.maxDataSize = 1024 * 1024; - this.pauseStream = true; - - this._maxDataSizeExceeded = false; - this._released = false; - this._bufferedEvents = []; -} -util.inherits(DelayedStream, Stream); - -DelayedStream.create = function(source, options) { - var delayedStream = new this(); - - options = options || {}; - for (var option in options) { - delayedStream[option] = options[option]; - } - - delayedStream.source = source; - - var realEmit = source.emit; - source.emit = function() { - delayedStream._handleEmit(arguments); - return realEmit.apply(source, arguments); - }; - - source.on('error', function() {}); - if (delayedStream.pauseStream) { - source.pause(); - } - - return delayedStream; -}; - -Object.defineProperty(DelayedStream.prototype, 'readable', { - configurable: true, - enumerable: true, - get: function() { - return this.source.readable; - } -}); - -DelayedStream.prototype.setEncoding = function() { - return this.source.setEncoding.apply(this.source, arguments); -}; - -DelayedStream.prototype.resume = function() { - if (!this._released) { - this.release(); - } - - this.source.resume(); -}; - -DelayedStream.prototype.pause = function() { - this.source.pause(); -}; - -DelayedStream.prototype.release = function() { - this._released = true; - - this._bufferedEvents.forEach(function(args) { - this.emit.apply(this, args); - }.bind(this)); - this._bufferedEvents = []; -}; - -DelayedStream.prototype.pipe = function() { - var r = Stream.prototype.pipe.apply(this, arguments); - this.resume(); - return r; -}; - -DelayedStream.prototype._handleEmit = function(args) { - if (this._released) { - this.emit.apply(this, args); - return; - } - - if (args[0] === 'data') { - this.dataSize += args[1].length; - this._checkIfMaxDataSizeExceeded(); - } - - this._bufferedEvents.push(args); -}; - -DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { - if (this._maxDataSizeExceeded) { - return; - } - - if (this.dataSize <= this.maxDataSize) { - return; - } - - this._maxDataSizeExceeded = true; - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' - this.emit('error', new Error(message)); -}; diff --git a/node_modules/delayed-stream/package.json b/node_modules/delayed-stream/package.json deleted file mode 100644 index eea3291c..00000000 --- a/node_modules/delayed-stream/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "author": "Felix Geisendörfer (http://debuggable.com/)", - "contributors": [ - "Mike Atkins " - ], - "name": "delayed-stream", - "description": "Buffers events from a stream until you are ready to handle them.", - "license": "MIT", - "version": "1.0.0", - "homepage": "https://github.com/felixge/node-delayed-stream", - "repository": { - "type": "git", - "url": "git://github.com/felixge/node-delayed-stream.git" - }, - "main": "./lib/delayed_stream", - "engines": { - "node": ">=0.4.0" - }, - "scripts": { - "test": "make test" - }, - "dependencies": {}, - "devDependencies": { - "fake": "0.2.0", - "far": "0.0.1" - } -} diff --git a/node_modules/estree-walker/.DS_Store b/node_modules/estree-walker/.DS_Store deleted file mode 100644 index cb4b640b..00000000 Binary files a/node_modules/estree-walker/.DS_Store and /dev/null differ diff --git a/node_modules/estree-walker/dist/.DS_Store b/node_modules/estree-walker/dist/.DS_Store deleted file mode 100644 index ad7dfc59..00000000 Binary files a/node_modules/estree-walker/dist/.DS_Store and /dev/null differ diff --git a/node_modules/events/.DS_Store b/node_modules/events/.DS_Store deleted file mode 100644 index 73f581c7..00000000 Binary files a/node_modules/events/.DS_Store and /dev/null differ diff --git a/node_modules/express/node_modules/array-flatten/LICENSE b/node_modules/express/node_modules/array-flatten/LICENSE deleted file mode 100644 index 983fbe8a..00000000 --- a/node_modules/express/node_modules/array-flatten/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/express/node_modules/array-flatten/README.md b/node_modules/express/node_modules/array-flatten/README.md deleted file mode 100644 index 91fa5b63..00000000 --- a/node_modules/express/node_modules/array-flatten/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# Array Flatten - -[![NPM version][npm-image]][npm-url] -[![NPM downloads][downloads-image]][downloads-url] -[![Build status][travis-image]][travis-url] -[![Test coverage][coveralls-image]][coveralls-url] - -> Flatten an array of nested arrays into a single flat array. Accepts an optional depth. - -## Installation - -``` -npm install array-flatten --save -``` - -## Usage - -```javascript -var flatten = require('array-flatten') - -flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]) -//=> [1, 2, 3, 4, 5, 6, 7, 8, 9] - -flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2) -//=> [1, 2, 3, [4, [5], 6], 7, 8, 9] - -(function () { - flatten(arguments) //=> [1, 2, 3] -})(1, [2, 3]) -``` - -## License - -MIT - -[npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat -[npm-url]: https://npmjs.org/package/array-flatten -[downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat -[downloads-url]: https://npmjs.org/package/array-flatten -[travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat -[travis-url]: https://travis-ci.org/blakeembrey/array-flatten -[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat -[coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master diff --git a/node_modules/express/node_modules/array-flatten/array-flatten.js b/node_modules/express/node_modules/array-flatten/array-flatten.js deleted file mode 100644 index 089117b3..00000000 --- a/node_modules/express/node_modules/array-flatten/array-flatten.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict' - -/** - * Expose `arrayFlatten`. - */ -module.exports = arrayFlatten - -/** - * Recursive flatten function with depth. - * - * @param {Array} array - * @param {Array} result - * @param {Number} depth - * @return {Array} - */ -function flattenWithDepth (array, result, depth) { - for (var i = 0; i < array.length; i++) { - var value = array[i] - - if (depth > 0 && Array.isArray(value)) { - flattenWithDepth(value, result, depth - 1) - } else { - result.push(value) - } - } - - return result -} - -/** - * Recursive flatten function. Omitting depth is slightly faster. - * - * @param {Array} array - * @param {Array} result - * @return {Array} - */ -function flattenForever (array, result) { - for (var i = 0; i < array.length; i++) { - var value = array[i] - - if (Array.isArray(value)) { - flattenForever(value, result) - } else { - result.push(value) - } - } - - return result -} - -/** - * Flatten an array, with the ability to define a depth. - * - * @param {Array} array - * @param {Number} depth - * @return {Array} - */ -function arrayFlatten (array, depth) { - if (depth == null) { - return flattenForever(array, []) - } - - return flattenWithDepth(array, [], depth) -} diff --git a/node_modules/express/node_modules/array-flatten/package.json b/node_modules/express/node_modules/array-flatten/package.json deleted file mode 100644 index 1a24e2a1..00000000 --- a/node_modules/express/node_modules/array-flatten/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "array-flatten", - "version": "1.1.1", - "description": "Flatten an array of nested arrays into a single flat array", - "main": "array-flatten.js", - "files": [ - "array-flatten.js", - "LICENSE" - ], - "scripts": { - "test": "istanbul cover _mocha -- -R spec" - }, - "repository": { - "type": "git", - "url": "git://github.com/blakeembrey/array-flatten.git" - }, - "keywords": [ - "array", - "flatten", - "arguments", - "depth" - ], - "author": { - "name": "Blake Embrey", - "email": "hello@blakeembrey.com", - "url": "http://blakeembrey.me" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/blakeembrey/array-flatten/issues" - }, - "homepage": "https://github.com/blakeembrey/array-flatten", - "devDependencies": { - "istanbul": "^0.3.13", - "mocha": "^2.2.4", - "pre-commit": "^1.0.7", - "standard": "^3.7.3" - } -} diff --git a/node_modules/fast-copy/.release-it.beta.json b/node_modules/fast-copy/.release-it.beta.json deleted file mode 100644 index 9088fa8e..00000000 --- a/node_modules/fast-copy/.release-it.beta.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "github": { - "release": true - }, - "npm": { - "tag": "next" - }, - "preReleaseId": "beta" -} diff --git a/node_modules/fast-copy/.release-it.json b/node_modules/fast-copy/.release-it.json deleted file mode 100644 index 1acdb0b7..00000000 --- a/node_modules/fast-copy/.release-it.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "github": { - "release": true, - "tagName": "v${version}" - } -} diff --git a/node_modules/fast-copy/CHANGELOG.md b/node_modules/fast-copy/CHANGELOG.md deleted file mode 100644 index 1ecb69d4..00000000 --- a/node_modules/fast-copy/CHANGELOG.md +++ /dev/null @@ -1,135 +0,0 @@ -# fast-copy CHANGELOG - -## 3.0.1 - -- [#78](https://github.com/planttheidea/fast-copy/pull/78) - Work when running Node process with `--disable-proto=throw` (thanks [@castarco](https://github.com/castarco)) - -## 3.0.0 - -**Breaking changes** - -- Exports are now always named, so the `.default` suffix is required when accessing - - CommonJS in Node => `const copy = require('fast-copy').default;` - - UMD global via CDN => `const copy = globalThis['fast-copy'].default;` -- `copy.strict` is no longer available; it is now available as the explicit `copyStrict` named import -- Options have been removed - - `isStrict` option has been replaced with importing the separate `copyStrict` method - - `realm` has been removed entirely, as `instanceof` is no longer used internally -- The `FastCopy` namespace in typings has been removed in favor of explicit import of available types - -**Enhancements** - -- Support `exports` option, to have bettern handling for different environments (ESM vs CJS vs UMD) and improve tree-shaking when supported -- Can now create a custom copier (either standard or strict), allowing maximum performance for specific use-cases -- Small speed improvements when handling certain object types - -**Bug fixes** - -- Correctly handle primitive wrappers, e.g. `new String('foo')` - -## 2.1.7 - -- Republish of [`2.1.6`](#216), as the release process failed mid-publish - -## 2.1.6 - -- Revert [#69](https://github.com/planttheidea/fast-copy/pull/69) and [#71](https://github.com/planttheidea/fast-copy/pull/71), as they broke the package for NodeJS consumption (will be reintroduced in v3, as breaking changes are required) - -## 2.1.5 - DO NOT USE - -- Ensure `"type": "module"` is set to allow ESM in NodeJS to work [#71](https://github.com/planttheidea/fast-copy/pull/71) - -## 2.1.4 - DO NOT USE - -- Provide `"exports"` definition in `package.json` [#69](https://github.com/planttheidea/fast-copy/pull/69) (thanks [@liteoood](https://github.com/ilteoood)) - -## 2.1.3 - -- Fix source maps not referencing source code [#65](https://github.com/planttheidea/fast-copy/pull/65) - -## 2.1.2 - -- Support `constructor` property override on object [#60](https://github.com/planttheidea/fast-copy/pull/60) -- Provide better support for `constructor` override on non-plain object types [#61](https://github.com/planttheidea/fast-copy/pull/61) -- Remove `tslint` in favor of `@typescript-eslint` [#62](https://github.com/planttheidea/fast-copy/pull/62) - -## 2.1.1 - -- Fix ESM-to-CommonJS issue when using TSC to consume [#37](https://github.com/planttheidea/fast-copy/issues/37) -- Modify `Blob` cloning to use `blob.slice()` instead of `new Blob()` for speed - -## 2.1.0 - -- Support cloning `Blob` [#31](https://github.com/planttheidea/fast-copy/pull/31) (thanks [@fratzigner](https://github.com/fratzinger)) -- Fix cloning descriptors that only are getters / setters in strict mode -- Handle errors when defining properties in strict mode - -## 2.0.5 - -- Fix issue copying objects referenced multiple times in source [#28](https://github.com/planttheidea/fast-copy/pull/28) (thanks [@darkowic](https://github.com/darkowic)) - -## 2.0.4 - -- Cache length of arrays for faster iteration [#22](https://github.com/planttheidea/fast-copy/pull/22) -- Update dev dependencies and types - -## 2.0.3 - -- Add safety to constructing native objects (fixes #19) - -## 2.0.2 - -- Manually coalesce options instead of use destructuring (performance) - -## 2.0.1 - -- Fix typings declarations - [#17](https://github.com/planttheidea/fast-copy/pull/17) - -## 2.0.0 - -- Rewrite in TypeScript -- Add strict mode (for more accurate and thorough copying, at the expense of less performance) - -#### BREAKING CHANGES - -- Second parameter is now an object of [options](README.md#options) - -## 1.2.4 - -- Ensure `Date` copy uses realm-specific constructor - -## 1.2.3 - -- Support custom prototype applied to plain object via `Object.create()` - -## 1.2.2 - -- Support copy of extensions of native `Array` with alternative `push()` method - -## 1.2.1 - -- Under-the-hood optimizations per recommendations from #7 - -## 1.2.0 - -- Add support for multiple realms - -## 1.1.2 - -- Optimize order of operations for common use cases - -## 1.1.1 - -- Fix cache using `WeakSet` when there was support for `WeakMap`s instead of `WeakSet`s (in case one was polyfilled but not the other) - -## 1.1.0 - -- Add TypeScript and FlowType bindings - -## 1.0.1 - -- Activate tree-shaking - -## 1.0.0 - -- Initial release diff --git a/node_modules/fast-copy/LICENSE b/node_modules/fast-copy/LICENSE deleted file mode 100644 index 63cea3f8..00000000 --- a/node_modules/fast-copy/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Tony Quetano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/fast-copy/README.md b/node_modules/fast-copy/README.md deleted file mode 100644 index d08a6f76..00000000 --- a/node_modules/fast-copy/README.md +++ /dev/null @@ -1,395 +0,0 @@ -# fast-copy - - - - - -A [blazing fast](#benchmarks) deep object copier - -## Table of contents - -- [fast-copy](#fast-copy) - - [Table of contents](#table-of-contents) - - [Usage](#usage) - - [API](#api) - - [`copy`](#copy) - - [`copyStrict`](#copystrict) - - [`createCopier`](#createcopier) - - [Copier methods](#copier-methods) - - [Copier state](#copier-state) - - [`cache`](#cache) - - [`copier`](#copier) - - [`Constructor` / `prototype`](#constructor--prototype) - - [`createStrictCopier`](#createstrictcopier) - - [Types supported](#types-supported) - - [Aspects of default copiers](#aspects-of-default-copiers) - - [Error references are copied directly, instead of creating a new `*Error` object](#error-references-are-copied-directly-instead-of-creating-a-new-error-object) - - [The constructor of the original object is used, instead of using known globals](#the-constructor-of-the-original-object-is-used-instead-of-using-known-globals) - - [Generator objects are copied, but still reference the original generator's state](#generator-objects-are-copied-but-still-reference-the-original-generators-state) - - [Benchmarks](#benchmarks) - - [Simple objects](#simple-objects) - - [Complex objects](#complex-objects) - - [Big data](#big-data) - - [Circular objects](#circular-objects) - - [Special objects](#special-objects) - - [Development](#development) - -## Usage - -```js -import copy from 'fast-copy'; -import { deepEqual } from 'fast-equals'; - -const object = { - array: [123, { deep: 'value' }], - map: new Map([ - ['foo', {}], - [{ bar: 'baz' }, 'quz'], - ]), -}; - -const copiedObject = copy(object); - -console.log(copiedObject === object); // false -console.log(deepEqual(copiedObject, object)); // true -``` - -## API - -### `copy` - -Deeply copy the object passed. - -```js -import copy from 'fast-copy'; - -const copied = copy({ foo: 'bar' }); -``` - -### `copyStrict` - -Deeply copy the object passed, but with additional strictness when replicating the original object: - -- Properties retain their original property descriptor -- Non-enumerable keys are copied -- Non-standard properties (e.g., keys on arrays / maps / sets) are copied - -```js -import { copyStrict } from 'fast-copy'; - -const object = { foo: 'bar' }; -object.nonEnumerable = Object.defineProperty(object, 'bar', { - enumerable: false, - value: 'baz', -}); - -const copied = copy(object); -``` - -**NOTE**: This method is significantly slower than [`copy`](#copy), so it is recommended to only use this when you have specific use-cases that require it. - -### `createCopier` - -Create a custom copier based on the type-specific methods passed. This is useful if you want to squeeze out maximum performance, or perform something other than a standard deep copy. - -```js -import { createCopier } from 'fast-copy'; - -const copyShallow = createCopier({ - array: (array) => [...array], - map: (map) => new Map(map.entries()), - object: (object) => ({ ...object }), - set: (set) => new Set(set.values()), -}); -``` - -Each internal copier method has the following contract: - -```js -type InternalCopier = (value: Value, state: State) => Value; - -interface State { - Constructor: any; - cache: WeakMap; - copier: InternalCopier; - prototype: any; -} -``` - -Any method overriding the defaults must maintain this contract. - -#### Copier methods - -- `array` => `Array` -- `arrayBuffer`=> `ArrayBuffer`, `Float32Array`, `Float64Array`, `Int8Array`, `Int16Array`, `Int32Array`, `Uint8Array`, `Uint8ClampedArray`, `Uint16Array`, `Uint32Array`, `Uint64Array` -- `blob` => `Blob` -- `dataView` => `DataView` -- `date` => `Date` -- `error` => `Error`, `AggregateError`, `EvalError`, `RangeError`, `ReferenceError`, `SyntaxError`, `TypeError`, `URIError` -- `map` => `Map` -- `object` => `Object`, or any custom constructor -- `regExp` => `RegExp` -- `set` => `Set` - -#### Copier state - -##### `cache` - -If you want to maintain circular reference handling, then you'll need the methods to handle cache population for future lookups: - -```js -function shallowlyCloneArray( - value: Value, - state: State -): Value { - const clone = [...value]; - - state.cache.set(value, clone); - - return clone; -} -``` - -##### `copier` - -`copier` is provided for recursive calls with deeply-nested objects. - -```js -function deeplyCloneArray( - value: Value, - state: State -): Value { - const clone = []; - - state.cache.set(value, clone); - - value.forEach((item) => state.copier(item, state)); - - return clone; -} -``` - -Note above I am using `forEach` instead of a simple `map`. This is because it is highly recommended to store the clone in [`cache`](#cache) eagerly when deeply copying, so that nested circular references are handled correctly. - -##### `Constructor` / `prototype` - -Both `Constructor` and `prototype` properties are only populated with complex objects that are not standard objects or arrays. This is mainly useful for custom subclasses of these globals, or maintaining custom prototypes of objects. - -```js -function deeplyCloneSubclassArray( - value: Value, - state: State -): Value { - const clone = new state.Constructor(); - - state.cache.set(value, clone); - - value.forEach((item) => clone.push(item)); - - return clone; -} - -function deeplyCloneCustomObject( - value: Value, - state: State -): Value { - const clone = Object.create(state.prototype); - - state.cache.set(value, clone); - - Object.entries(value).forEach(([k, v]) => (clone[k] = v)); - - return clone; -} -``` - -### `createStrictCopier` - -Create a custom copier based on the type-specific methods passed, but defaulting to the same functions normally used for `copyStrict`. This is useful if you want to squeeze out better performance while maintaining strict requirements, or perform something other than a strict deep copy. - -```js -const createStrictClone = (value, clone) => - Object.getOwnPropertyNames(value).reduce( - (clone, property) => - Object.defineProperty( - clone, - property, - Object.getOwnPropertyDescriptor(value, property) || { - configurable: true, - enumerable: true, - value: clone[property], - writable: true, - } - ), - clone - ); - -const copyStrictShallow = createStrictCopier({ - array: (array) => createStrictClone(array, []), - map: (map) => createStrictClone(map, new Map(map.entries())), - object: (object) => createStrictClone(object, {}), - set: (set) => createStrictClone(set, new Set(set.values())), -}); -``` - -**NOTE**: This method creates a copier that is significantly slower than [`copy`](#copy), as well as likely a copier created by [`createCopier`](#createcopier), so it is recommended to only use this when you have specific use-cases that require it. - -## Types supported - -The following object types are deeply cloned when they are either properties on the object passed, or the object itself: - -- `Array` -- `ArrayBuffer` -- `Boolean` primitive wrappers (e.g., `new Boolean(true)`) -- `Blob` -- `Buffer` -- `DataView` -- `Date` -- `Float32Array` -- `Float64Array` -- `Int8Array` -- `Int16Array` -- `Int32Array` -- `Map` -- `Number` primitive wrappers (e.g., `new Number(123)`) -- `Object` -- `RegExp` -- `Set` -- `String` primitive wrappers (e.g., `new String('foo')`) -- `Uint8Array` -- `Uint8ClampedArray` -- `Uint16Array` -- `Uint32Array` -- `React` components -- Custom constructors - -The following object types are copied directly, as they are either primitives, cannot be cloned, or the common use-case implementation does not expect cloning: - -- `AsyncFunction` -- `Boolean` primitives -- `Error` -- `Function` -- `GeneratorFunction` -- `Number` primitives -- `Null` -- `Promise` -- `String` primitives -- `Symbol` -- `Undefined` -- `WeakMap` -- `WeakSet` - -Circular objects are supported out of the box. By default, a cache based on `WeakSet` is used, but if `WeakSet` is not available then a fallback is used. The benchmarks quoted below are based on use of `WeakSet`. - -## Aspects of default copiers - -Inherently, what is considered a valid copy is subjective because of different requirements and use-cases. For this library, some decisions were explicitly made for the default copiers of specific object types, and those decisions are detailed below. If your use-cases require different handling, you can always create your own custom copier with [`createCopier`](#createcopier) or [`createStrictCopier`](#createstrictcopier). - -### Error references are copied directly, instead of creating a new `*Error` object - -While it would be relatively trivial to copy over the message and stack to a new object of the same `Error` subclass, it is a common practice to "override" the message or stack, and copies would not retain this mutation. As such, the original reference is copied. - -### The constructor of the original object is used, instead of using known globals - -Starting in ES2015, native globals can be subclassed like any custom class. When copying, we explicitly reuse the constructor of the original object. However, the expectation is that these subclasses would have the same constructur signature as their native base class. This is a common community practice, but there is the possibility of inaccuracy if the contract differs. - -### Generator objects are copied, but still reference the original generator's state - -[Generator objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) are specific types of iterators, but appear like standard objects that just have a few methods (`next`, `throw`, `return`). These methods are bound to the internal state of the generator, which cannot be copied effectively. Normally this would be treated like other "uncopiable" objects and simply pass the reference through, however the "validation" of whether it is a generator object or a standard object is not guaranteed (duck-typing) and there is a runtime cost associated with. Therefore, the simplest path of treating it like a standard object (copying methods to a new object) was taken. - -## Benchmarks - -#### Simple objects - -_Small number of properties, all values are primitives_ - -| | Operations / second | -| ------------------ | ------------------- | -| **fast-copy** | **5,880,312** | -| lodash.cloneDeep | 2,706,261 | -| clone | 2,207,231 | -| deepclone | 1,274,810 | -| fast-clone | 1,239,952 | -| ramda | 1,146,152 | -| fast-copy (strict) | 852,382 | - -#### Complex objects - -_Large number of properties, values are a combination of primitives and complex objects_ - -| | Operations / second | -| ------------------ | ------------------- | -| **fast-copy** | **162,858** | -| ramda | 142,104 | -| deepclone | 133,607 | -| fast-clone | 101,143 | -| clone | 70,872 | -| fast-copy (strict) | 62,961 | -| lodash.cloneDeep | 62,060 | - -#### Big data - -_Very large number of properties with high amount of nesting, mainly objects and arrays_ - -| | Operations / second | -| ------------------ | ------------------- | -| **fast-copy** | **303** | -| fast-clone | 245 | -| deepclone | 151 | -| lodash.cloneDeep | 150 | -| clone | 93 | -| fast-copy (strict) | 90 | -| ramda | 42 | - -#### Circular objects - -_Objects that deeply reference themselves_ - -| | Operations / second | -| ------------------ | ------------------- | -| **fast-copy** | **2,420,466** | -| deepclone | 1,386,896 | -| ramda | 1,024,108 | -| lodash.cloneDeep | 989,796 | -| clone | 987,721 | -| fast-copy (strict) | 617,602 | -| fast-clone | 0 (not supported) | - -#### Special objects - -_Custom constructors, React components, etc_ - -| | Operations / second | -| ------------------ | ------------------- | -| **fast-copy** | **152,792** | -| clone | 74,347 | -| fast-clone | 66,576 | -| lodash.cloneDeep | 64,760 | -| ramda | 53,542 | -| deepclone | 28,823 | -| fast-copy (strict) | 21,362 | - -## Development - -Standard practice, clone the repo and `yarn` (or `npm i`) to get the dependencies. The following npm scripts are available: - -- benchmark => run benchmark tests against other equality libraries -- build => run `build:esm`, `build:cjs`, `build:umd`, and `build:min` scripts -- build:cjs => build CJS files and types -- build:esm => build ESM files and types -- build:min => build minified files and types -- build:umd => build UMD files and types -- clean => run `rimraf` on the `dist` folder -- dev => start webpack playground App -- dist => run `clean` and `build` scripts -- lint => run ESLint on all files in `src` folder (also runs on `dev` script) -- lint:fix => run `lint` script, but with auto-fixer -- prepublishOnly => run `lint`, `test:coverage`, and `dist` scripts -- release => run `prepublishOnly` and release with new version -- release:beta => run `prepublishOnly` and release with new beta version -- release:dry => run `prepublishOnly` and simulate a new release -- start => run `dev` -- test => run AVA with NODE_ENV=test on all files in `test` folder -- test:coverage => run same script as `test` with code coverage calculation via `nyc` -- test:watch => run same script as `test` but keep persistent watcher -- typecheck => run `tsc` on the codebase diff --git a/node_modules/fast-copy/flow-typed/fast-copy.js b/node_modules/fast-copy/flow-typed/fast-copy.js deleted file mode 100644 index 5831a4b2..00000000 --- a/node_modules/fast-copy/flow-typed/fast-copy.js +++ /dev/null @@ -1,7 +0,0 @@ -declare module "fast-copy" { - declare export default { - (object: T, options?: O): T, - - strict(object: T, options?: O): T - }; -} diff --git a/node_modules/fast-copy/index.d.ts b/node_modules/fast-copy/index.d.ts deleted file mode 100644 index b06f3f47..00000000 --- a/node_modules/fast-copy/index.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -interface Cache { - _keys?: any[]; - _values?: any[]; - has: (value: any) => boolean; - set: (key: any, value: any) => void; - get: (key: any) => any; -} - -export interface CreateCopierOptions { - array?: InternalCopier; - arrayBuffer?: InternalCopier; - blob?: InternalCopier; - dataView?: InternalCopier; - date?: InternalCopier; - map?: InternalCopier>; - object?: InternalCopier>; - regExp?: InternalCopier; - set?: InternalCopier>; -} - -type InternalCopier = (value: Value, state: State) => Value; - -export interface State { - Constructor: any; - cache: Cache; - copier: InternalCopier; - prototype: any; -} - -/** - * Copy an value deeply as much as possible. - */ -export default function copy(value: Value): Value; - -/** - * Copy an value deeply as much as possible, where strict recreation of object properties - * are maintained. All properties (including non-enumerable ones) are copied with their - * original property descriptors on both objects and arrays. - */ -export function copyStrict(value: Value): Value; - -/** - * Create a custom copier based on the object-specific copy methods passed. - */ -export function createCopier( - options: CreateCopierOptions -): (value: Value) => Value; - -/** - * Create a custom copier based on the object-specific copy methods passed, defaulting to the - * same internals as `copyStrict`. - */ -export function createStrictCopier( - options: CreateCopierOptions -): (value: Value) => Value; diff --git a/node_modules/fast-copy/package.json b/node_modules/fast-copy/package.json deleted file mode 100644 index e0b87bb8..00000000 --- a/node_modules/fast-copy/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "author": "tony_quetano@planttheidea.com", - "contributors": [ - "Dariusz Rzepka " - ], - "browser": "dist/umd/index.js", - "bugs": { - "url": "https://github.com/planttheidea/fast-copy/issues" - }, - "description": "A blazing fast deep object copier", - "devDependencies": { - "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-typescript": "^11.0.0", - "@types/eslint": "^8.21.1", - "@types/jest": "^29.4.0", - "@types/lodash": "^4.14.191", - "@types/node": "^18.14.0", - "@types/ramda": "^0.28.23", - "@types/react": "^18.0.28", - "@typescript-eslint/eslint-plugin": "^5.52.0", - "@typescript-eslint/parser": "^5.52.0", - "benchee": "^1.0.3", - "cli-table3": "^0.6.3", - "clone": "^2.1.2", - "deepclone": "^1.0.2", - "eslint": "^8.34.0", - "eslint-webpack-plugin": "^4.0.0", - "fast-clone": "^1.5.3", - "html-webpack-plugin": "^5.5.0", - "in-publish": "^2.0.1", - "jest": "^29.4.3", - "lodash": "^4.17.11", - "nyc": "^15.1.0", - "ramda": "^0.28.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "release-it": "15.6.0", - "rollup": "^3.16.0", - "rollup-plugin-terser": "^7.0.2", - "ts-jest": "^29.0.5", - "ts-loader": "^9.4.2", - "typescript": "^4.9.5", - "webpack": "^5.75.0", - "webpack-cli": "^5.0.1", - "webpack-dev-server": "^4.11.1" - }, - "exports": { - ".": { - "import": { - "types": "./dist/esm/types/index.d.ts", - "default": "./dist/esm/index.mjs" - }, - "require": { - "types": "./dist/cjs/types/index.d.ts", - "default": "./dist/cjs/index.cjs" - }, - "default": { - "types": "./dist/umd/types/index.d.ts", - "default": "./dist/umd/index.js" - } - } - }, - "homepage": "https://github.com/planttheidea/fast-copy#readme", - "keywords": [ - "clone", - "deep", - "copy", - "fast" - ], - "license": "MIT", - "main": "dist/cjs/index.cjs", - "module": "dist/esm/index.mjs", - "name": "fast-copy", - "repository": { - "type": "git", - "url": "git+https://github.com/planttheidea/fast-copy.git" - }, - "scripts": { - "benchmark": "npm run clean && npm run build:cjs && node benchmark/index.cjs", - "build": "npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:min", - "build:cjs": "NODE_ENV=production rollup -c rollup/config.cjs.js && tsc -p ./tsconfig/cjs.json", - "build:esm": "NODE_ENV=production rollup -c rollup/config.esm.js && tsc -p ./tsconfig/esm.json", - "build:min": "NODE_ENV=production rollup -c rollup/config.min.js && tsc -p ./tsconfig/min.json", - "build:umd": "NODE_ENV=production rollup -c rollup/config.umd.js && tsc -p ./tsconfig/umd.json", - "clean": "rimraf dist", - "dev": "NODE_ENV=development webpack-dev-server --config=webpack/webpack.config.js", - "dist": "npm run clean && npm run build", - "lint": "eslint 'src/*.ts' '__tests__/*.ts' 'DEV_ONLY/*.ts'", - "lint:fix": "npm run lint -- --fix", - "prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run dist", - "release": "release-it", - "release:beta": "release-it --config=.release-it.beta.json", - "release:dry": "release-it --dry-run", - "start": "npm run dev", - "test": "NODE_PATH=. jest", - "test:coverage": "npm run test -- --coverage", - "test:watch": "npm run test -- --watch", - "typecheck": "tsc --noEmit" - }, - "type": "module", - "types": "index.d.ts", - "version": "3.0.2" -} diff --git a/node_modules/fast-json-stable-stringify/.DS_Store b/node_modules/fast-json-stable-stringify/.DS_Store deleted file mode 100644 index bd671a82..00000000 Binary files a/node_modules/fast-json-stable-stringify/.DS_Store and /dev/null differ diff --git a/node_modules/fastest-levenshtein/.eslintrc.js b/node_modules/fastest-levenshtein/.eslintrc.js deleted file mode 100644 index 7238c86a..00000000 --- a/node_modules/fastest-levenshtein/.eslintrc.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -module.exports = { - env: { - browser: true, - commonjs: true, - es2020: true, - }, - extends: ["eslint:all", "prettier", "plugin:node/recommended"], - parserOptions: { - ecmaVersion: 11, - }, - rules: { - camelcase: "off", - "capitalized-comments": "off", - curly: ["error", "all"], - "id-length": "off", - "max-lines-per-function": "off", - "max-statements": "off", - "multiline-comment-style": "off", - "no-bitwise": "off", - "no-magic-numbers": "off", - "no-param-reassign": "off", - "no-plusplus": "off", - "one-var": "off", - "padded-blocks": "off", - }, -}; diff --git a/node_modules/fastest-levenshtein/.travis.yml b/node_modules/fastest-levenshtein/.travis.yml index dc940172..7b2f12d1 100644 --- a/node_modules/fastest-levenshtein/.travis.yml +++ b/node_modules/fastest-levenshtein/.travis.yml @@ -10,7 +10,11 @@ os: arch: amd64 node_js: - - node + - 14 + - 13 + - 12 + - 11 + - 10 script: - npm test diff --git a/node_modules/fastest-levenshtein/README.md b/node_modules/fastest-levenshtein/README.md index 020ec88f..4d19e880 100644 --- a/node_modules/fastest-levenshtein/README.md +++ b/node_modules/fastest-levenshtein/README.md @@ -1,10 +1,12 @@ # fastest-levenshtein :rocket: -> Fastest JS implemenation of [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance).
+> Fastest JS/TS implemenation of [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance).
> Measure the difference between two strings. -[![Build Status](https://travis-ci.org/ka-weihe/node-levenshtein.svg?branch=master)](https://travis-ci.org/ka-weihe/node-levenshtein) +[![Build Status](https://travis-ci.org/ka-weihe/fastest-levenshtein.svg?branch=master)](https://travis-ci.org/ka-weihe/fastest-levenshtein) [![Coverage Status](https://coveralls.io/repos/github/ka-weihe/node-levenshtein/badge.svg?branch=master)](https://coveralls.io/github/ka-weihe/node-levenshtein?branch=master) -``` +[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/ka-weihe/fastest-levenshtein.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ka-weihe/fastest-levenshtein/context:javascript) +![npm](https://img.shields.io/npm/dm/fastest-levenshtein) +```bash $ npm i fastest-levenshtein ``` @@ -36,7 +38,7 @@ console.log(closest('fast', ['slow', 'faster', 'fastest'])) ``` ## Benchmark -I generated 500 pairs of strings with length N. I measured the ops/sec each library achieves to process all the given pairs. Higher is better. `fastest-levenshtein` is a lot faster in all cases. +I generated 500 pairs of strings with length N. I measured the ops/sec each library achieves to process all the given pairs. Higher is better. | Test Target | N=4 | N=8 | N=16 | N=32 | N=64 | N=128 | N=256 | N=512 | N=1024 | |---------------------------|-------|-------|-------|------|-------|-------|-------|-------|--------| @@ -47,7 +49,7 @@ I generated 500 pairs of strings with length N. I measured the ops/sec each libr | levenshtein-edit-distance | 22968 | 7445 | 1493 | 409 | 109 | 28.07 | 7.095 | 1.789 | 0.445 | ### Relative Performance -This image shows the relative performance between `fastest-levenshtein` and `js-levenshtein` (the 2nd fastest). `fastest-levenshtein` is always a lot faster. x-axis shows "times faster". +This image shows the relative performance between `fastest-levenshtein` and `js-levenshtein` (the 2nd fastest). `fastest-levenshtein` is always a lot faster. y-axis shows "times faster". ![Benchmark](/images/relaperf.png) diff --git a/node_modules/fastest-levenshtein/index.d.ts b/node_modules/fastest-levenshtein/index.d.ts deleted file mode 100644 index bdc2bb1c..00000000 --- a/node_modules/fastest-levenshtein/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function distance(a: string, b: string): number; -export function closest(str: string, arr: string[]): string; \ No newline at end of file diff --git a/node_modules/fastest-levenshtein/index.js b/node_modules/fastest-levenshtein/index.js deleted file mode 100644 index 437bdebf..00000000 --- a/node_modules/fastest-levenshtein/index.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -const peq = new Uint32Array(0x10000); -const myers_32 = (a, b) => { - const n = a.length; - const m = b.length; - const lst = 1 << (n - 1); - let pv = -1; - let mv = 0; - let sc = n; - let i = n; - while (i--) { - peq[a.charCodeAt(i)] |= 1 << i; - } - for (i = 0; i < m; i++) { - let eq = peq[b.charCodeAt(i)]; - const xv = eq | mv; - eq |= ((eq & pv) + pv) ^ pv; - mv |= ~(eq | pv); - pv &= eq; - if (mv & lst) { - sc++; - } - if (pv & lst) { - sc--; - } - mv = (mv << 1) | 1; - pv = (pv << 1) | ~(xv | mv); - mv &= xv; - } - i = n; - while (i--) { - peq[a.charCodeAt(i)] = 0; - } - return sc; -}; - -const myers_x = (a, b) => { - const n = a.length; - const m = b.length; - const mhc = []; - const phc = []; - const hsize = Math.ceil(n / 32); - const vsize = Math.ceil(m / 32); - let score = m; - for (let i = 0; i < hsize; i++) { - phc[i] = -1; - mhc[i] = 0; - } - let j = 0; - for (; j < vsize - 1; j++) { - let mv = 0; - let pv = -1; - const start = j * 32; - const end = Math.min(32, m) + start; - for (let k = start; k < end; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - score = m; - for (let i = 0; i < n; i++) { - const eq = peq[a.charCodeAt(i)]; - const pb = (phc[(i / 32) | 0] >>> i) & 1; - const mb = (mhc[(i / 32) | 0] >>> i) & 1; - const xv = eq | mv; - const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb; - let ph = mv | ~(xh | pv); - let mh = pv & xh; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv = mh | ~(xv | ph); - mv = ph & xv; - } - for (let k = start; k < end; k++) { - peq[b.charCodeAt(k)] = 0; - } - } - let mv = 0; - let pv = -1; - const start = j * 32; - const end = Math.min(32, m - start) + start; - for (let k = start; k < end; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - score = m; - for (let i = 0; i < n; i++) { - const eq = peq[a.charCodeAt(i)]; - const pb = (phc[(i / 32) | 0] >>> i) & 1; - const mb = (mhc[(i / 32) | 0] >>> i) & 1; - const xv = eq | mv; - const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb; - let ph = mv | ~(xh | pv); - let mh = pv & xh; - score += (ph >>> (m - 1)) & 1; - score -= (mh >>> (m - 1)) & 1; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv = mh | ~(xv | ph); - mv = ph & xv; - } - for (let k = start; k < end; k++) { - peq[b.charCodeAt(k)] = 0; - } - return score; -}; - -const distance = (a, b) => { - if (a.length > b.length) { - const tmp = b; - b = a; - a = tmp; - } - if (a.length === 0) { - return b.length; - } - if (a.length <= 32) { - return myers_32(a, b); - } - return myers_x(a, b); -}; - -const closest = (str, arr) => { - let min_distance = Infinity; - let min_index = 0; - for (let i = 0; i < arr.length; i++) { - const dist = distance(str, arr[i]); - if (dist < min_distance) { - min_distance = dist; - min_index = i; - } - } - return arr[min_index]; -}; - -module.exports = { - closest, distance -} diff --git a/node_modules/fastest-levenshtein/package.json b/node_modules/fastest-levenshtein/package.json index 4d3ca34c..c395b852 100644 --- a/node_modules/fastest-levenshtein/package.json +++ b/node_modules/fastest-levenshtein/package.json @@ -1,8 +1,10 @@ { "name": "fastest-levenshtein", - "version": "1.0.12", + "version": "1.0.16", "description": "Fastest Levenshtein distance implementation in JS.", - "main": "index.js", + "main": "mod.js", + "types": "mod.d.ts", + "module": "./esm/mod.js", "repository": { "type": "git", "url": "git+https://github.com/ka-weihe/fastest-levenshtein.git" @@ -33,31 +35,38 @@ }, "homepage": "https://github.com/ka-weihe/fastest-levenshtein#README", "scripts": { - "test": "jest", - "test:coverage": "jest --coverage", - "test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls" + "build": "tsc mod.ts --declaration", + "build:esm": "tsc --declaration -p tsconfig.esm.json", + "prepare": "npm run build && npm run build:esm", + "bench": "npm run build && tsc bench.ts && node bench.js", + "test": "npm run build && tsc test.ts && jest test.js", + "test:coverage": "npm run build && jest --coverage", + "test:coveralls": "npm run build && jest --coverage --coverageReporters=text-lcov | coveralls" }, "devDependencies": { + "@types/benchmark": "^1.0.33", + "@types/jest": "^26.0.15", + "@typescript-eslint/eslint-plugin": "^4.7.0", + "@typescript-eslint/parser": "^4.7.0", "benchmark": "^2.1.4", "coveralls": "^3.1.0", - "eslint": "^7.5.0", - "eslint-config-airbnb": "^18.2.0", - "eslint-config-airbnb-base": "^14.2.0", + "eslint": "^7.13.0", "eslint-config-node": "^4.1.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-import": "^2.22.0", - "eslint-plugin-jsx-a11y": "^6.3.1", + "eslint-config-prettier": "^6.15.0", + "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.1.4", - "eslint-plugin-react": "^7.20.3", - "eslint-plugin-react-hooks": "^4.0.0", "fast-levenshtein": "^2.0.6", - "jest": "^26.1.0", + "jest": "^26.6.3", "js-levenshtein": "^1.1.6", "leven": "^3.1.0", + "levenshtein-edit-distance": "^2.0.5", "natural": "^2.1.5", - "prettier": "^2.0.5", - "talisman": "^1.1.2", - "levenshtein-edit-distance": "^2.0.5" + "prettier": "^2.1.2", + "talisman": "^1.1.3", + "typescript": "^4.0.5" + }, + "engines": { + "node": ">= 4.9.1" } } diff --git a/node_modules/fastest-levenshtein/test.js b/node_modules/fastest-levenshtein/test.js index 4b5d6eca..47506339 100644 --- a/node_modules/fastest-levenshtein/test.js +++ b/node_modules/fastest-levenshtein/test.js @@ -1,64 +1,55 @@ -const {distance, closest} = require("./index.js"); - -const levenshtein = (a, b) => { - if (a.length === 0) return b.length; - if (b.length === 0) return a.length; - - if (a.length > b.length) { - const tmp = a; - a = b; - b = tmp; - } - - const row = []; - for (let i = 0; i <= a.length; i++) { - row[i] = i; - } - - for (let i = 1; i <= b.length; i++) { - let prev = i; - for (let j = 1; j <= a.length; j++) { - let val; - if (b.charAt(i - 1) === a.charAt(j - 1)) { - val = row[j - 1]; - } else { - val = Math.min(row[j - 1] + 1, prev + 1, row[j] + 1); - } - row[j - 1] = prev; - prev = val; +var _a = require("./mod.js"), closest = _a.closest, distance = _a.distance; +var levenshtein = function (a, b) { + if (a.length === 0) { + return b.length; } - row[a.length] = prev; - } - - return row[a.length]; + if (b.length === 0) { + return a.length; + } + if (a.length > b.length) { + var tmp = a; + a = b; + b = tmp; + } + var row = []; + for (var i = 0; i <= a.length; i++) { + row[i] = i; + } + for (var i = 1; i <= b.length; i++) { + var prev = i; + for (var j = 1; j <= a.length; j++) { + var val = 0; + if (b.charAt(i - 1) === a.charAt(j - 1)) { + val = row[j - 1]; + } + else { + val = Math.min(row[j - 1] + 1, prev + 1, row[j] + 1); + } + row[j - 1] = prev; + prev = val; + } + row[a.length] = prev; + } + return row[a.length]; }; - -function makeid(length) { - let result = ""; - const characters = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - const charactersLength = characters.length; - for (let i = 0; i < length; i++) { - result += characters.charAt(Math.floor(Math.random() * charactersLength)); - } - return result; +var makeid = function (length) { + var result = ""; + var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; + var charactersLength = characters.length; + for (var i = 0; i < length; i++) { + result += characters.charAt(Math.floor(Math.random() * charactersLength)); + } + return result; +}; +for (var i = 0; i < 10000; i++) { + var rnd_num1 = (Math.random() * 1000) | 0; + var rnd_num2 = (Math.random() * 1000) | 0; + var rnd_string1 = makeid(rnd_num1); + var rnd_string2 = makeid(rnd_num2); + var actual = distance(rnd_string1, rnd_string2); + var expected = levenshtein(rnd_string1, rnd_string2); + console.log(i); + if (actual !== expected) { + console.log("fail"); + } } - -test("test compare", () => { - const errors = 0; - for (let i = 0; i < 1000; i++) { - const rnd_num1 = (Math.random() * 1000) | 0; - const rnd_num2 = (Math.random() * 1000) | 0; - const rnd_string1 = makeid(rnd_num1); - const rnd_string2 = makeid(rnd_num2); - const actual = distance(rnd_string1, rnd_string2); - const expected = levenshtein(rnd_string1, rnd_string2); - expect(actual).toBe(expected); - } -}); - -test("test find", () => { - const actual = closest("fast", ["slow", "faster", "fastest"]); - const expected = "faster"; - expect(actual).toBe(expected); -}); diff --git a/node_modules/form-data/License b/node_modules/form-data/License deleted file mode 100644 index c7ff12a2..00000000 --- a/node_modules/form-data/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. diff --git a/node_modules/form-data/README.md.bak b/node_modules/form-data/README.md.bak deleted file mode 100644 index 298a1a24..00000000 --- a/node_modules/form-data/README.md.bak +++ /dev/null @@ -1,358 +0,0 @@ -# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data) - -A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications. - -The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd]. - -[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface - -[![Linux Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data) -[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data) -[![Windows Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data) - -[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v4.0.0.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master) -[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data) - -## Install - -``` -npm install --save form-data -``` - -## Usage - -In this example we are constructing a form with 3 fields that contain a string, -a buffer and a file stream. - -``` javascript -var FormData = require('form-data'); -var fs = require('fs'); - -var form = new FormData(); -form.append('my_field', 'my value'); -form.append('my_buffer', new Buffer(10)); -form.append('my_file', fs.createReadStream('/foo/bar.jpg')); -``` - -Also you can use http-response stream: - -``` javascript -var FormData = require('form-data'); -var http = require('http'); - -var form = new FormData(); - -http.request('http://nodejs.org/images/logo.png', function(response) { - form.append('my_field', 'my value'); - form.append('my_buffer', new Buffer(10)); - form.append('my_logo', response); -}); -``` - -Or @mikeal's [request](https://github.com/request/request) stream: - -``` javascript -var FormData = require('form-data'); -var request = require('request'); - -var form = new FormData(); - -form.append('my_field', 'my value'); -form.append('my_buffer', new Buffer(10)); -form.append('my_logo', request('http://nodejs.org/images/logo.png')); -``` - -In order to submit this form to a web application, call ```submit(url, [callback])``` method: - -``` javascript -form.submit('http://example.org/', function(err, res) { - // res – response object (http.IncomingMessage) // - res.resume(); -}); - -``` - -For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods. - -### Custom options - -You can provide custom options, such as `maxDataSize`: - -``` javascript -var FormData = require('form-data'); - -var form = new FormData({ maxDataSize: 20971520 }); -form.append('my_field', 'my value'); -form.append('my_buffer', /* something big */); -``` - -List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15) - -### Alternative submission methods - -You can use node's http client interface: - -``` javascript -var http = require('http'); - -var request = http.request({ - method: 'post', - host: 'example.org', - path: '/upload', - headers: form.getHeaders() -}); - -form.pipe(request); - -request.on('response', function(res) { - console.log(res.statusCode); -}); -``` - -Or if you would prefer the `'Content-Length'` header to be set for you: - -``` javascript -form.submit('example.org/upload', function(err, res) { - console.log(res.statusCode); -}); -``` - -To use custom headers and pre-known length in parts: - -``` javascript -var CRLF = '\r\n'; -var form = new FormData(); - -var options = { - header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF, - knownLength: 1 -}; - -form.append('my_buffer', buffer, options); - -form.submit('http://example.com/', function(err, res) { - if (err) throw err; - console.log('Done'); -}); -``` - -Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually: - -``` javascript -someModule.stream(function(err, stdout, stderr) { - if (err) throw err; - - var form = new FormData(); - - form.append('file', stdout, { - filename: 'unicycle.jpg', // ... or: - filepath: 'photos/toys/unicycle.jpg', - contentType: 'image/jpeg', - knownLength: 19806 - }); - - form.submit('http://example.com/', function(err, res) { - if (err) throw err; - console.log('Done'); - }); -}); -``` - -The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory). - -For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter: - -``` javascript -form.submit({ - host: 'example.com', - path: '/probably.php?extra=params', - auth: 'username:password' -}, function(err, res) { - console.log(res.statusCode); -}); -``` - -In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`: - -``` javascript -form.submit({ - host: 'example.com', - path: '/surelynot.php', - headers: {'x-test-header': 'test-header-value'} -}, function(err, res) { - console.log(res.statusCode); -}); -``` - -### Methods - -- [_Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )](https://github.com/form-data/form-data#void-append-string-field-mixed-value--mixed-options-). -- [_Headers_ getHeaders( [**Headers** _userHeaders_] )](https://github.com/form-data/form-data#array-getheaders-array-userheaders-) -- [_String_ getBoundary()](https://github.com/form-data/form-data#string-getboundary) -- [_Void_ setBoundary()](https://github.com/form-data/form-data#void-setboundary) -- [_Buffer_ getBuffer()](https://github.com/form-data/form-data#buffer-getbuffer) -- [_Integer_ getLengthSync()](https://github.com/form-data/form-data#integer-getlengthsync) -- [_Integer_ getLength( **function** _callback_ )](https://github.com/form-data/form-data#integer-getlength-function-callback-) -- [_Boolean_ hasKnownLength()](https://github.com/form-data/form-data#boolean-hasknownlength) -- [_Request_ submit( _params_, **function** _callback_ )](https://github.com/form-data/form-data#request-submit-params-function-callback-) -- [_String_ toString()](https://github.com/form-data/form-data#string-tostring) - -#### _Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] ) -Append data to the form. You can submit about any format (string, integer, boolean, buffer, etc.). However, Arrays are not supported and need to be turned into strings by the user. -```javascript -var form = new FormData(); -form.append( 'my_string', 'my value' ); -form.append( 'my_integer', 1 ); -form.append( 'my_boolean', true ); -form.append( 'my_buffer', new Buffer(10) ); -form.append( 'my_array_as_json', JSON.stringify( ['bird','cute'] ) ) -``` - -You may provide a string for options, or an object. -```javascript -// Set filename by providing a string for options -form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' ); - -// provide an object. -form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', contentType: 'image/jpeg', knownLength: 19806} ); -``` - -#### _Headers_ getHeaders( [**Headers** _userHeaders_] ) -This method adds the correct `content-type` header to the provided array of `userHeaders`. - -#### _String_ getBoundary() -Return the boundary of the formData. By default, the boundary consists of 26 `-` followed by 24 numbers -for example: -```javascript ---------------------------515890814546601021194782 -``` - -#### _Void_ setBoundary(String _boundary_) -Set the boundary string, overriding the default behavior described above. - -_Note: The boundary must be unique and may not appear in the data._ - -#### _Buffer_ getBuffer() -Return the full formdata request package, as a Buffer. You can insert this Buffer in e.g. Axios to send multipart data. -```javascript -var form = new FormData(); -form.append( 'my_buffer', Buffer.from([0x4a,0x42,0x20,0x52,0x6f,0x63,0x6b,0x73]) ); -form.append( 'my_file', fs.readFileSync('/foo/bar.jpg') ); - -axios.post( 'https://example.com/path/to/api', - form.getBuffer(), - form.getHeaders() - ) -``` -**Note:** Because the output is of type Buffer, you can only append types that are accepted by Buffer: *string, Buffer, ArrayBuffer, Array, or Array-like Object*. A ReadStream for example will result in an error. - -#### _Integer_ getLengthSync() -Same as `getLength` but synchronous. - -_Note: getLengthSync __doesn't__ calculate streams length._ - -#### _Integer_ getLength( **function** _callback_ ) -Returns the `Content-Length` async. The callback is used to handle errors and continue once the length has been calculated -```javascript -this.getLength(function(err, length) { - if (err) { - this._error(err); - return; - } - - // add content length - request.setHeader('Content-Length', length); - - ... -}.bind(this)); -``` - -#### _Boolean_ hasKnownLength() -Checks if the length of added values is known. - -#### _Request_ submit( _params_, **function** _callback_ ) -Submit the form to a web application. -```javascript -var form = new FormData(); -form.append( 'my_string', 'Hello World' ); - -form.submit( 'http://example.com/', function(err, res) { - // res – response object (http.IncomingMessage) // - res.resume(); -} ); -``` - -#### _String_ toString() -Returns the form data as a string. Don't use this if you are sending files or buffers, use `getBuffer()` instead. - -### Integration with other libraries - -#### Request - -Form submission using [request](https://github.com/request/request): - -```javascript -var formData = { - my_field: 'my_value', - my_file: fs.createReadStream(__dirname + '/unicycle.jpg'), -}; - -request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) { - if (err) { - return console.error('upload failed:', err); - } - console.log('Upload successful! Server responded with:', body); -}); -``` - -For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads). - -#### node-fetch - -You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch): - -```javascript -var form = new FormData(); - -form.append('a', 1); - -fetch('http://example.com', { method: 'POST', body: form }) - .then(function(res) { - return res.json(); - }).then(function(json) { - console.log(json); - }); -``` - -#### axios - -In Node.js you can post a file using [axios](https://github.com/axios/axios): -```javascript -const form = new FormData(); -const stream = fs.createReadStream(PATH_TO_FILE); - -form.append('image', stream); - -// In Node.js environment you need to set boundary in the header field 'Content-Type' by calling method `getHeaders` -const formHeaders = form.getHeaders(); - -axios.post('http://example.com', form, { - headers: { - ...formHeaders, - }, -}) -.then(response => response) -.catch(error => error) -``` - -## Notes - -- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround. -- ```getLength(cb)``` will send an error as first parameter of callback if stream length cannot be calculated (e.g. send in custom streams w/o using ```knownLength```). -- ```submit``` will not add `content-length` if form length is unknown or not calculable. -- Starting version `2.x` FormData has dropped support for `node@0.10.x`. -- Starting version `3.x` FormData has dropped support for `node@4.x`. - -## License - -Form-Data is released under the [MIT](License) license. diff --git a/node_modules/form-data/Readme.md b/node_modules/form-data/Readme.md deleted file mode 100644 index 298a1a24..00000000 --- a/node_modules/form-data/Readme.md +++ /dev/null @@ -1,358 +0,0 @@ -# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data) - -A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications. - -The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd]. - -[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface - -[![Linux Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data) -[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data) -[![Windows Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data) - -[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v4.0.0.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master) -[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data) - -## Install - -``` -npm install --save form-data -``` - -## Usage - -In this example we are constructing a form with 3 fields that contain a string, -a buffer and a file stream. - -``` javascript -var FormData = require('form-data'); -var fs = require('fs'); - -var form = new FormData(); -form.append('my_field', 'my value'); -form.append('my_buffer', new Buffer(10)); -form.append('my_file', fs.createReadStream('/foo/bar.jpg')); -``` - -Also you can use http-response stream: - -``` javascript -var FormData = require('form-data'); -var http = require('http'); - -var form = new FormData(); - -http.request('http://nodejs.org/images/logo.png', function(response) { - form.append('my_field', 'my value'); - form.append('my_buffer', new Buffer(10)); - form.append('my_logo', response); -}); -``` - -Or @mikeal's [request](https://github.com/request/request) stream: - -``` javascript -var FormData = require('form-data'); -var request = require('request'); - -var form = new FormData(); - -form.append('my_field', 'my value'); -form.append('my_buffer', new Buffer(10)); -form.append('my_logo', request('http://nodejs.org/images/logo.png')); -``` - -In order to submit this form to a web application, call ```submit(url, [callback])``` method: - -``` javascript -form.submit('http://example.org/', function(err, res) { - // res – response object (http.IncomingMessage) // - res.resume(); -}); - -``` - -For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods. - -### Custom options - -You can provide custom options, such as `maxDataSize`: - -``` javascript -var FormData = require('form-data'); - -var form = new FormData({ maxDataSize: 20971520 }); -form.append('my_field', 'my value'); -form.append('my_buffer', /* something big */); -``` - -List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15) - -### Alternative submission methods - -You can use node's http client interface: - -``` javascript -var http = require('http'); - -var request = http.request({ - method: 'post', - host: 'example.org', - path: '/upload', - headers: form.getHeaders() -}); - -form.pipe(request); - -request.on('response', function(res) { - console.log(res.statusCode); -}); -``` - -Or if you would prefer the `'Content-Length'` header to be set for you: - -``` javascript -form.submit('example.org/upload', function(err, res) { - console.log(res.statusCode); -}); -``` - -To use custom headers and pre-known length in parts: - -``` javascript -var CRLF = '\r\n'; -var form = new FormData(); - -var options = { - header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF, - knownLength: 1 -}; - -form.append('my_buffer', buffer, options); - -form.submit('http://example.com/', function(err, res) { - if (err) throw err; - console.log('Done'); -}); -``` - -Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually: - -``` javascript -someModule.stream(function(err, stdout, stderr) { - if (err) throw err; - - var form = new FormData(); - - form.append('file', stdout, { - filename: 'unicycle.jpg', // ... or: - filepath: 'photos/toys/unicycle.jpg', - contentType: 'image/jpeg', - knownLength: 19806 - }); - - form.submit('http://example.com/', function(err, res) { - if (err) throw err; - console.log('Done'); - }); -}); -``` - -The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory). - -For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter: - -``` javascript -form.submit({ - host: 'example.com', - path: '/probably.php?extra=params', - auth: 'username:password' -}, function(err, res) { - console.log(res.statusCode); -}); -``` - -In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`: - -``` javascript -form.submit({ - host: 'example.com', - path: '/surelynot.php', - headers: {'x-test-header': 'test-header-value'} -}, function(err, res) { - console.log(res.statusCode); -}); -``` - -### Methods - -- [_Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )](https://github.com/form-data/form-data#void-append-string-field-mixed-value--mixed-options-). -- [_Headers_ getHeaders( [**Headers** _userHeaders_] )](https://github.com/form-data/form-data#array-getheaders-array-userheaders-) -- [_String_ getBoundary()](https://github.com/form-data/form-data#string-getboundary) -- [_Void_ setBoundary()](https://github.com/form-data/form-data#void-setboundary) -- [_Buffer_ getBuffer()](https://github.com/form-data/form-data#buffer-getbuffer) -- [_Integer_ getLengthSync()](https://github.com/form-data/form-data#integer-getlengthsync) -- [_Integer_ getLength( **function** _callback_ )](https://github.com/form-data/form-data#integer-getlength-function-callback-) -- [_Boolean_ hasKnownLength()](https://github.com/form-data/form-data#boolean-hasknownlength) -- [_Request_ submit( _params_, **function** _callback_ )](https://github.com/form-data/form-data#request-submit-params-function-callback-) -- [_String_ toString()](https://github.com/form-data/form-data#string-tostring) - -#### _Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] ) -Append data to the form. You can submit about any format (string, integer, boolean, buffer, etc.). However, Arrays are not supported and need to be turned into strings by the user. -```javascript -var form = new FormData(); -form.append( 'my_string', 'my value' ); -form.append( 'my_integer', 1 ); -form.append( 'my_boolean', true ); -form.append( 'my_buffer', new Buffer(10) ); -form.append( 'my_array_as_json', JSON.stringify( ['bird','cute'] ) ) -``` - -You may provide a string for options, or an object. -```javascript -// Set filename by providing a string for options -form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' ); - -// provide an object. -form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', contentType: 'image/jpeg', knownLength: 19806} ); -``` - -#### _Headers_ getHeaders( [**Headers** _userHeaders_] ) -This method adds the correct `content-type` header to the provided array of `userHeaders`. - -#### _String_ getBoundary() -Return the boundary of the formData. By default, the boundary consists of 26 `-` followed by 24 numbers -for example: -```javascript ---------------------------515890814546601021194782 -``` - -#### _Void_ setBoundary(String _boundary_) -Set the boundary string, overriding the default behavior described above. - -_Note: The boundary must be unique and may not appear in the data._ - -#### _Buffer_ getBuffer() -Return the full formdata request package, as a Buffer. You can insert this Buffer in e.g. Axios to send multipart data. -```javascript -var form = new FormData(); -form.append( 'my_buffer', Buffer.from([0x4a,0x42,0x20,0x52,0x6f,0x63,0x6b,0x73]) ); -form.append( 'my_file', fs.readFileSync('/foo/bar.jpg') ); - -axios.post( 'https://example.com/path/to/api', - form.getBuffer(), - form.getHeaders() - ) -``` -**Note:** Because the output is of type Buffer, you can only append types that are accepted by Buffer: *string, Buffer, ArrayBuffer, Array, or Array-like Object*. A ReadStream for example will result in an error. - -#### _Integer_ getLengthSync() -Same as `getLength` but synchronous. - -_Note: getLengthSync __doesn't__ calculate streams length._ - -#### _Integer_ getLength( **function** _callback_ ) -Returns the `Content-Length` async. The callback is used to handle errors and continue once the length has been calculated -```javascript -this.getLength(function(err, length) { - if (err) { - this._error(err); - return; - } - - // add content length - request.setHeader('Content-Length', length); - - ... -}.bind(this)); -``` - -#### _Boolean_ hasKnownLength() -Checks if the length of added values is known. - -#### _Request_ submit( _params_, **function** _callback_ ) -Submit the form to a web application. -```javascript -var form = new FormData(); -form.append( 'my_string', 'Hello World' ); - -form.submit( 'http://example.com/', function(err, res) { - // res – response object (http.IncomingMessage) // - res.resume(); -} ); -``` - -#### _String_ toString() -Returns the form data as a string. Don't use this if you are sending files or buffers, use `getBuffer()` instead. - -### Integration with other libraries - -#### Request - -Form submission using [request](https://github.com/request/request): - -```javascript -var formData = { - my_field: 'my_value', - my_file: fs.createReadStream(__dirname + '/unicycle.jpg'), -}; - -request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) { - if (err) { - return console.error('upload failed:', err); - } - console.log('Upload successful! Server responded with:', body); -}); -``` - -For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads). - -#### node-fetch - -You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch): - -```javascript -var form = new FormData(); - -form.append('a', 1); - -fetch('http://example.com', { method: 'POST', body: form }) - .then(function(res) { - return res.json(); - }).then(function(json) { - console.log(json); - }); -``` - -#### axios - -In Node.js you can post a file using [axios](https://github.com/axios/axios): -```javascript -const form = new FormData(); -const stream = fs.createReadStream(PATH_TO_FILE); - -form.append('image', stream); - -// In Node.js environment you need to set boundary in the header field 'Content-Type' by calling method `getHeaders` -const formHeaders = form.getHeaders(); - -axios.post('http://example.com', form, { - headers: { - ...formHeaders, - }, -}) -.then(response => response) -.catch(error => error) -``` - -## Notes - -- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround. -- ```getLength(cb)``` will send an error as first parameter of callback if stream length cannot be calculated (e.g. send in custom streams w/o using ```knownLength```). -- ```submit``` will not add `content-length` if form length is unknown or not calculable. -- Starting version `2.x` FormData has dropped support for `node@0.10.x`. -- Starting version `3.x` FormData has dropped support for `node@4.x`. - -## License - -Form-Data is released under the [MIT](License) license. diff --git a/node_modules/form-data/index.d.ts b/node_modules/form-data/index.d.ts deleted file mode 100644 index 295e9e9b..00000000 --- a/node_modules/form-data/index.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Definitions by: Carlos Ballesteros Velasco -// Leon Yu -// BendingBender -// Maple Miao - -/// -import * as stream from 'stream'; -import * as http from 'http'; - -export = FormData; - -// Extracted because @types/node doesn't export interfaces. -interface ReadableOptions { - highWaterMark?: number; - encoding?: string; - objectMode?: boolean; - read?(this: stream.Readable, size: number): void; - destroy?(this: stream.Readable, error: Error | null, callback: (error: Error | null) => void): void; - autoDestroy?: boolean; -} - -interface Options extends ReadableOptions { - writable?: boolean; - readable?: boolean; - dataSize?: number; - maxDataSize?: number; - pauseStreams?: boolean; -} - -declare class FormData extends stream.Readable { - constructor(options?: Options); - append(key: string, value: any, options?: FormData.AppendOptions | string): void; - getHeaders(userHeaders?: FormData.Headers): FormData.Headers; - submit( - params: string | FormData.SubmitOptions, - callback?: (error: Error | null, response: http.IncomingMessage) => void - ): http.ClientRequest; - getBuffer(): Buffer; - setBoundary(boundary: string): void; - getBoundary(): string; - getLength(callback: (err: Error | null, length: number) => void): void; - getLengthSync(): number; - hasKnownLength(): boolean; -} - -declare namespace FormData { - interface Headers { - [key: string]: any; - } - - interface AppendOptions { - header?: string | Headers; - knownLength?: number; - filename?: string; - filepath?: string; - contentType?: string; - } - - interface SubmitOptions extends http.RequestOptions { - protocol?: 'https:' | 'http:'; - } -} diff --git a/node_modules/form-data/lib/browser.js b/node_modules/form-data/lib/browser.js deleted file mode 100644 index 09e7c70e..00000000 --- a/node_modules/form-data/lib/browser.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-env browser */ -module.exports = typeof self == 'object' ? self.FormData : window.FormData; diff --git a/node_modules/form-data/lib/form_data.js b/node_modules/form-data/lib/form_data.js deleted file mode 100644 index 18dc819c..00000000 --- a/node_modules/form-data/lib/form_data.js +++ /dev/null @@ -1,501 +0,0 @@ -var CombinedStream = require('combined-stream'); -var util = require('util'); -var path = require('path'); -var http = require('http'); -var https = require('https'); -var parseUrl = require('url').parse; -var fs = require('fs'); -var Stream = require('stream').Stream; -var mime = require('mime-types'); -var asynckit = require('asynckit'); -var populate = require('./populate.js'); - -// Public API -module.exports = FormData; - -// make it a Stream -util.inherits(FormData, CombinedStream); - -/** - * Create readable "multipart/form-data" streams. - * Can be used to submit forms - * and file uploads to other web applications. - * - * @constructor - * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream - */ -function FormData(options) { - if (!(this instanceof FormData)) { - return new FormData(options); - } - - this._overheadLength = 0; - this._valueLength = 0; - this._valuesToMeasure = []; - - CombinedStream.call(this); - - options = options || {}; - for (var option in options) { - this[option] = options[option]; - } -} - -FormData.LINE_BREAK = '\r\n'; -FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; - -FormData.prototype.append = function(field, value, options) { - - options = options || {}; - - // allow filename as single option - if (typeof options == 'string') { - options = {filename: options}; - } - - var append = CombinedStream.prototype.append.bind(this); - - // all that streamy business can't handle numbers - if (typeof value == 'number') { - value = '' + value; - } - - // https://github.com/felixge/node-form-data/issues/38 - if (util.isArray(value)) { - // Please convert your array into string - // the way web server expects it - this._error(new Error('Arrays are not supported.')); - return; - } - - var header = this._multiPartHeader(field, value, options); - var footer = this._multiPartFooter(); - - append(header); - append(value); - append(footer); - - // pass along options.knownLength - this._trackLength(header, value, options); -}; - -FormData.prototype._trackLength = function(header, value, options) { - var valueLength = 0; - - // used w/ getLengthSync(), when length is known. - // e.g. for streaming directly from a remote server, - // w/ a known file a size, and not wanting to wait for - // incoming file to finish to get its size. - if (options.knownLength != null) { - valueLength += +options.knownLength; - } else if (Buffer.isBuffer(value)) { - valueLength = value.length; - } else if (typeof value === 'string') { - valueLength = Buffer.byteLength(value); - } - - this._valueLength += valueLength; - - // @check why add CRLF? does this account for custom/multiple CRLFs? - this._overheadLength += - Buffer.byteLength(header) + - FormData.LINE_BREAK.length; - - // empty or either doesn't have path or not an http response or not a stream - if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) { - return; - } - - // no need to bother with the length - if (!options.knownLength) { - this._valuesToMeasure.push(value); - } -}; - -FormData.prototype._lengthRetriever = function(value, callback) { - - if (value.hasOwnProperty('fd')) { - - // take read range into a account - // `end` = Infinity –> read file till the end - // - // TODO: Looks like there is bug in Node fs.createReadStream - // it doesn't respect `end` options without `start` options - // Fix it when node fixes it. - // https://github.com/joyent/node/issues/7819 - if (value.end != undefined && value.end != Infinity && value.start != undefined) { - - // when end specified - // no need to calculate range - // inclusive, starts with 0 - callback(null, value.end + 1 - (value.start ? value.start : 0)); - - // not that fast snoopy - } else { - // still need to fetch file size from fs - fs.stat(value.path, function(err, stat) { - - var fileSize; - - if (err) { - callback(err); - return; - } - - // update final size based on the range options - fileSize = stat.size - (value.start ? value.start : 0); - callback(null, fileSize); - }); - } - - // or http response - } else if (value.hasOwnProperty('httpVersion')) { - callback(null, +value.headers['content-length']); - - // or request stream http://github.com/mikeal/request - } else if (value.hasOwnProperty('httpModule')) { - // wait till response come back - value.on('response', function(response) { - value.pause(); - callback(null, +response.headers['content-length']); - }); - value.resume(); - - // something else - } else { - callback('Unknown stream'); - } -}; - -FormData.prototype._multiPartHeader = function(field, value, options) { - // custom header specified (as string)? - // it becomes responsible for boundary - // (e.g. to handle extra CRLFs on .NET servers) - if (typeof options.header == 'string') { - return options.header; - } - - var contentDisposition = this._getContentDisposition(value, options); - var contentType = this._getContentType(value, options); - - var contents = ''; - var headers = { - // add custom disposition as third element or keep it two elements if not - 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), - // if no content type. allow it to be empty array - 'Content-Type': [].concat(contentType || []) - }; - - // allow custom headers. - if (typeof options.header == 'object') { - populate(headers, options.header); - } - - var header; - for (var prop in headers) { - if (!headers.hasOwnProperty(prop)) continue; - header = headers[prop]; - - // skip nullish headers. - if (header == null) { - continue; - } - - // convert all headers to arrays. - if (!Array.isArray(header)) { - header = [header]; - } - - // add non-empty headers. - if (header.length) { - contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; - } - } - - return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; -}; - -FormData.prototype._getContentDisposition = function(value, options) { - - var filename - , contentDisposition - ; - - if (typeof options.filepath === 'string') { - // custom filepath for relative paths - filename = path.normalize(options.filepath).replace(/\\/g, '/'); - } else if (options.filename || value.name || value.path) { - // custom filename take precedence - // formidable and the browser add a name property - // fs- and request- streams have path property - filename = path.basename(options.filename || value.name || value.path); - } else if (value.readable && value.hasOwnProperty('httpVersion')) { - // or try http response - filename = path.basename(value.client._httpMessage.path || ''); - } - - if (filename) { - contentDisposition = 'filename="' + filename + '"'; - } - - return contentDisposition; -}; - -FormData.prototype._getContentType = function(value, options) { - - // use custom content-type above all - var contentType = options.contentType; - - // or try `name` from formidable, browser - if (!contentType && value.name) { - contentType = mime.lookup(value.name); - } - - // or try `path` from fs-, request- streams - if (!contentType && value.path) { - contentType = mime.lookup(value.path); - } - - // or if it's http-reponse - if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) { - contentType = value.headers['content-type']; - } - - // or guess it from the filepath or filename - if (!contentType && (options.filepath || options.filename)) { - contentType = mime.lookup(options.filepath || options.filename); - } - - // fallback to the default content type if `value` is not simple value - if (!contentType && typeof value == 'object') { - contentType = FormData.DEFAULT_CONTENT_TYPE; - } - - return contentType; -}; - -FormData.prototype._multiPartFooter = function() { - return function(next) { - var footer = FormData.LINE_BREAK; - - var lastPart = (this._streams.length === 0); - if (lastPart) { - footer += this._lastBoundary(); - } - - next(footer); - }.bind(this); -}; - -FormData.prototype._lastBoundary = function() { - return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; -}; - -FormData.prototype.getHeaders = function(userHeaders) { - var header; - var formHeaders = { - 'content-type': 'multipart/form-data; boundary=' + this.getBoundary() - }; - - for (header in userHeaders) { - if (userHeaders.hasOwnProperty(header)) { - formHeaders[header.toLowerCase()] = userHeaders[header]; - } - } - - return formHeaders; -}; - -FormData.prototype.setBoundary = function(boundary) { - this._boundary = boundary; -}; - -FormData.prototype.getBoundary = function() { - if (!this._boundary) { - this._generateBoundary(); - } - - return this._boundary; -}; - -FormData.prototype.getBuffer = function() { - var dataBuffer = new Buffer.alloc( 0 ); - var boundary = this.getBoundary(); - - // Create the form content. Add Line breaks to the end of data. - for (var i = 0, len = this._streams.length; i < len; i++) { - if (typeof this._streams[i] !== 'function') { - - // Add content to the buffer. - if(Buffer.isBuffer(this._streams[i])) { - dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]); - }else { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]); - } - - // Add break after content. - if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] ); - } - } - } - - // Add the footer and return the Buffer object. - return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] ); -}; - -FormData.prototype._generateBoundary = function() { - // This generates a 50 character boundary similar to those used by Firefox. - // They are optimized for boyer-moore parsing. - var boundary = '--------------------------'; - for (var i = 0; i < 24; i++) { - boundary += Math.floor(Math.random() * 10).toString(16); - } - - this._boundary = boundary; -}; - -// Note: getLengthSync DOESN'T calculate streams length -// As workaround one can calculate file size manually -// and add it as knownLength option -FormData.prototype.getLengthSync = function() { - var knownLength = this._overheadLength + this._valueLength; - - // Don't get confused, there are 3 "internal" streams for each keyval pair - // so it basically checks if there is any value added to the form - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } - - // https://github.com/form-data/form-data/issues/40 - if (!this.hasKnownLength()) { - // Some async length retrievers are present - // therefore synchronous length calculation is false. - // Please use getLength(callback) to get proper length - this._error(new Error('Cannot calculate proper length in synchronous way.')); - } - - return knownLength; -}; - -// Public API to check if length of added values is known -// https://github.com/form-data/form-data/issues/196 -// https://github.com/form-data/form-data/issues/262 -FormData.prototype.hasKnownLength = function() { - var hasKnownLength = true; - - if (this._valuesToMeasure.length) { - hasKnownLength = false; - } - - return hasKnownLength; -}; - -FormData.prototype.getLength = function(cb) { - var knownLength = this._overheadLength + this._valueLength; - - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } - - if (!this._valuesToMeasure.length) { - process.nextTick(cb.bind(this, null, knownLength)); - return; - } - - asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) { - if (err) { - cb(err); - return; - } - - values.forEach(function(length) { - knownLength += length; - }); - - cb(null, knownLength); - }); -}; - -FormData.prototype.submit = function(params, cb) { - var request - , options - , defaults = {method: 'post'} - ; - - // parse provided url if it's string - // or treat it as options object - if (typeof params == 'string') { - - params = parseUrl(params); - options = populate({ - port: params.port, - path: params.pathname, - host: params.hostname, - protocol: params.protocol - }, defaults); - - // use custom params - } else { - - options = populate(params, defaults); - // if no port provided use default one - if (!options.port) { - options.port = options.protocol == 'https:' ? 443 : 80; - } - } - - // put that good code in getHeaders to some use - options.headers = this.getHeaders(params.headers); - - // https if specified, fallback to http in any other case - if (options.protocol == 'https:') { - request = https.request(options); - } else { - request = http.request(options); - } - - // get content length and fire away - this.getLength(function(err, length) { - if (err && err !== 'Unknown stream') { - this._error(err); - return; - } - - // add content length - if (length) { - request.setHeader('Content-Length', length); - } - - this.pipe(request); - if (cb) { - var onResponse; - - var callback = function (error, responce) { - request.removeListener('error', callback); - request.removeListener('response', onResponse); - - return cb.call(this, error, responce); - }; - - onResponse = callback.bind(this, null); - - request.on('error', callback); - request.on('response', onResponse); - } - }.bind(this)); - - return request; -}; - -FormData.prototype._error = function(err) { - if (!this.error) { - this.error = err; - this.pause(); - this.emit('error', err); - } -}; - -FormData.prototype.toString = function () { - return '[object FormData]'; -}; diff --git a/node_modules/form-data/lib/populate.js b/node_modules/form-data/lib/populate.js deleted file mode 100644 index 4d35738d..00000000 --- a/node_modules/form-data/lib/populate.js +++ /dev/null @@ -1,10 +0,0 @@ -// populates missing values -module.exports = function(dst, src) { - - Object.keys(src).forEach(function(prop) - { - dst[prop] = dst[prop] || src[prop]; - }); - - return dst; -}; diff --git a/node_modules/form-data/package.json b/node_modules/form-data/package.json deleted file mode 100644 index 0f20240b..00000000 --- a/node_modules/form-data/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "author": "Felix Geisendörfer (http://debuggable.com/)", - "name": "form-data", - "description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.", - "version": "4.0.0", - "repository": { - "type": "git", - "url": "git://github.com/form-data/form-data.git" - }, - "main": "./lib/form_data", - "browser": "./lib/browser", - "typings": "./index.d.ts", - "scripts": { - "pretest": "rimraf coverage test/tmp", - "test": "istanbul cover test/run.js", - "posttest": "istanbul report lcov text", - "lint": "eslint lib/*.js test/*.js test/integration/*.js", - "report": "istanbul report lcov text", - "ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8", - "ci-test": "npm run test && npm run browser && npm run report", - "predebug": "rimraf coverage test/tmp", - "debug": "verbose=1 ./test/run.js", - "browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage", - "check": "istanbul check-coverage coverage/coverage*.json", - "files": "pkgfiles --sort=name", - "get-version": "node -e \"console.log(require('./package.json').version)\"", - "update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md", - "restore-readme": "mv README.md.bak README.md", - "prepublish": "in-publish && npm run update-readme || not-in-publish", - "postpublish": "npm run restore-readme" - }, - "pre-commit": [ - "lint", - "ci-test", - "check" - ], - "engines": { - "node": ">= 6" - }, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "devDependencies": { - "@types/node": "^12.0.10", - "browserify": "^13.1.1", - "browserify-istanbul": "^2.0.0", - "coveralls": "^3.0.4", - "cross-spawn": "^6.0.5", - "eslint": "^6.0.1", - "fake": "^0.2.2", - "far": "^0.0.7", - "formidable": "^1.0.17", - "in-publish": "^2.0.0", - "is-node-modern": "^1.0.0", - "istanbul": "^0.4.5", - "obake": "^0.1.2", - "puppeteer": "^1.19.0", - "pkgfiles": "^2.3.0", - "pre-commit": "^1.1.3", - "request": "^2.88.0", - "rimraf": "^2.7.1", - "tape": "^4.6.2", - "typescript": "^3.5.2" - }, - "license": "MIT" -} diff --git a/node_modules/handle-thing/.DS_Store b/node_modules/handle-thing/.DS_Store deleted file mode 100644 index 4bca873a..00000000 Binary files a/node_modules/handle-thing/.DS_Store and /dev/null differ diff --git a/node_modules/has-symbols/.DS_Store b/node_modules/has-symbols/.DS_Store deleted file mode 100644 index 22e35b6f..00000000 Binary files a/node_modules/has-symbols/.DS_Store and /dev/null differ diff --git a/node_modules/hpack.js/.DS_Store b/node_modules/hpack.js/.DS_Store deleted file mode 100644 index 9941e9be..00000000 Binary files a/node_modules/hpack.js/.DS_Store and /dev/null differ diff --git a/node_modules/hpack.js/node_modules/.DS_Store b/node_modules/hpack.js/node_modules/.DS_Store deleted file mode 100644 index 0fa08e00..00000000 Binary files a/node_modules/hpack.js/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/hpack.js/node_modules/readable-stream/README.md b/node_modules/hpack.js/node_modules/readable-stream/README.md index 23fe3f3e..f1c5a931 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/README.md +++ b/node_modules/hpack.js/node_modules/readable-stream/README.md @@ -1,6 +1,6 @@ # readable-stream -***Node-core v8.11.1 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream) +***Node-core v8.17.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream) [![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) @@ -18,7 +18,7 @@ npm install --save readable-stream This package is a mirror of the Streams2 and Streams3 implementations in Node-core. -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.11.1/docs/api/stream.html). +Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.17.0/docs/api/stream.html). If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). diff --git a/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_readable.js index 0f807646..3af95cb2 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_readable.js +++ b/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_readable.js @@ -53,7 +53,7 @@ var Stream = require('./internal/streams/stream'); /**/ var Buffer = require('safe-buffer').Buffer; -var OurUint8Array = global.Uint8Array || function () {}; +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } @@ -623,8 +623,8 @@ Readable.prototype.pipe = function (dest, pipeOpts) { // also returned false. // => Check whether `dest` is still a piping destination. if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', src._readableState.awaitDrain); - src._readableState.awaitDrain++; + debug('false write response, pause', state.awaitDrain); + state.awaitDrain++; increasedAwaitDrain = true; } src.pause(); @@ -718,7 +718,7 @@ Readable.prototype.unpipe = function (dest) { state.flowing = false; for (var i = 0; i < len; i++) { - dests[i].emit('unpipe', this, unpipeInfo); + dests[i].emit('unpipe', this, { hasUnpiped: false }); }return this; } diff --git a/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_writable.js index b0b02200..e1e897ff 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_writable.js +++ b/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_writable.js @@ -81,7 +81,7 @@ var Stream = require('./internal/streams/stream'); /**/ var Buffer = require('safe-buffer').Buffer; -var OurUint8Array = global.Uint8Array || function () {}; +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } @@ -349,7 +349,7 @@ Writable.prototype.uncork = function () { if (state.corked) { state.corked--; - if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; @@ -591,7 +591,7 @@ Writable.prototype.end = function (chunk, encoding, cb) { } // ignore unnecessary end() calls. - if (!state.ending && !state.finished) endWritable(this, state, cb); + if (!state.ending) endWritable(this, state, cb); }; function needFinish(state) { @@ -652,11 +652,9 @@ function onCorkedFinish(corkReq, state, err) { cb(err); entry = entry.next; } - if (state.corkedRequestsFree) { - state.corkedRequestsFree.next = corkReq; - } else { - state.corkedRequestsFree = corkReq; - } + + // reuse the free corkReq. + state.corkedRequestsFree.next = corkReq; } Object.defineProperty(Writable.prototype, 'destroyed', { diff --git a/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/BufferList.js index aefc68bd..5e080976 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/BufferList.js +++ b/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/BufferList.js @@ -56,7 +56,6 @@ module.exports = function () { BufferList.prototype.concat = function concat(n) { if (this.length === 0) return Buffer.alloc(0); - if (this.length === 1) return this.head.data; var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; diff --git a/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/destroy.js b/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/destroy.js index 5a0a0d88..85a82140 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/destroy.js +++ b/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/destroy.js @@ -15,9 +15,15 @@ function destroy(err, cb) { if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); - } else if (err && (!this._writableState || !this._writableState.errorEmitted)) { - pna.nextTick(emitErrorNT, this, err); + } else if (err) { + if (!this._writableState) { + pna.nextTick(emitErrorNT, this, err); + } else if (!this._writableState.errorEmitted) { + this._writableState.errorEmitted = true; + pna.nextTick(emitErrorNT, this, err); + } } + return this; } @@ -35,9 +41,11 @@ function destroy(err, cb) { this._destroy(err || null, function (err) { if (!cb && err) { - pna.nextTick(emitErrorNT, _this, err); - if (_this._writableState) { + if (!_this._writableState) { + pna.nextTick(emitErrorNT, _this, err); + } else if (!_this._writableState.errorEmitted) { _this._writableState.errorEmitted = true; + pna.nextTick(emitErrorNT, _this, err); } } else if (cb) { cb(err); @@ -59,6 +67,8 @@ function undestroy() { this._writableState.destroyed = false; this._writableState.ended = false; this._writableState.ending = false; + this._writableState.finalCalled = false; + this._writableState.prefinished = false; this._writableState.finished = false; this._writableState.errorEmitted = false; } diff --git a/node_modules/hpack.js/node_modules/readable-stream/package.json b/node_modules/hpack.js/node_modules/readable-stream/package.json index 2afa6fbd..514c178e 100644 --- a/node_modules/hpack.js/node_modules/readable-stream/package.json +++ b/node_modules/hpack.js/node_modules/readable-stream/package.json @@ -1,6 +1,6 @@ { "name": "readable-stream", - "version": "2.3.7", + "version": "2.3.8", "description": "Streams3, a user-land copy of the stream library from Node.js", "main": "readable.js", "dependencies": { diff --git a/node_modules/http-deceiver/.DS_Store b/node_modules/http-deceiver/.DS_Store deleted file mode 100644 index 20ff95b3..00000000 Binary files a/node_modules/http-deceiver/.DS_Store and /dev/null differ diff --git a/node_modules/http-parser-js/http-parser.d.ts b/node_modules/http-parser-js/http-parser.d.ts index 8e9ee336..6a50c971 100644 --- a/node_modules/http-parser-js/http-parser.d.ts +++ b/node_modules/http-parser-js/http-parser.d.ts @@ -48,14 +48,14 @@ type StateFinishAllowedKey = | 'RESPONSE_LINE' | 'BODY_RAW' -type HeaderObject = Record +type HeaderObject = Array type noop = ()=> T type HeaderInfo
= { versionMajor: number versionMinor: number headers: HEADER - method: RequestMethod + method: number url: string statusCode: number statusMessage: string @@ -68,7 +68,7 @@ export type OnHeadersCompleteParser
HTTPParser.maxHeaderSize) { + if (this.headerSize > (this.maxHeaderSize||HTTPParser.maxHeaderSize)) { return new Error('max header size exceeded'); } } diff --git a/node_modules/http-parser-js/package.json b/node_modules/http-parser-js/package.json index 1aaa9089..d90bb630 100644 --- a/node_modules/http-parser-js/package.json +++ b/node_modules/http-parser-js/package.json @@ -1,8 +1,9 @@ { "name": "http-parser-js", - "version": "0.5.6", + "version": "0.5.8", "description": "A pure JS HTTP parser for node.", "main": "http-parser.js", + "types": "http-parser.d.ts", "scripts": { "test": "python tests/test.py && node tests/iojs/test-http-parser-durability.js", "testv12": "python tests/test.py --node-args=\"--http-parser=legacy\" && node --http-parser=legacy tests/iojs/test-http-parser-durability.js" diff --git a/node_modules/iconv-lite/.DS_Store b/node_modules/iconv-lite/.DS_Store deleted file mode 100644 index 88b517ba..00000000 Binary files a/node_modules/iconv-lite/.DS_Store and /dev/null differ diff --git a/node_modules/ipaddr.js/README.md b/node_modules/ipaddr.js/README.md index c17a459f..f57725b0 100644 --- a/node_modules/ipaddr.js/README.md +++ b/node_modules/ipaddr.js/README.md @@ -1,6 +1,4 @@ -# ipaddr.js — an IPv6 and IPv4 address manipulation library - -[![Build Status](https://github.com/whitequark/ipaddr.js/workflows/CI%20Tests/badge.svg)](https://github.com/whitequark/ipaddr.js/actions?query=workflow%3A%22CI+Tests%22) +# ipaddr.js — an IPv6 and IPv4 address manipulation library [![Build Status](https://travis-ci.org/whitequark/ipaddr.js.svg)](https://travis-ci.org/whitequark/ipaddr.js) ipaddr.js is a small (1.9K minified and gzipped) library for manipulating IP addresses in JavaScript environments. It runs on both CommonJS runtimes @@ -21,34 +19,25 @@ or `bower install ipaddr.js` -## Older Node support - -Use 2.x release for nodejs versions 10+. -Use the 1.x release for versions of nodejs older than 10. - ## API ipaddr.js defines one object in the global scope: `ipaddr`. In CommonJS, it is exported from the module: ```js -const ipaddr = require('ipaddr.js'); +var ipaddr = require('ipaddr.js'); ``` The API consists of several global methods and two classes: ipaddr.IPv6 and ipaddr.IPv4. ### Global methods -There are four global methods defined: `ipaddr.isValid`, `ipaddr.isValidCIDR`, -`ipaddr.parse`, and `ipaddr.process`. All of them receive a string as a single -parameter. +There are three global methods defined: `ipaddr.isValid`, `ipaddr.parse` and +`ipaddr.process`. All of them receive a string as a single parameter. The `ipaddr.isValid` method returns `true` if the address is a valid IPv4 or IPv6 address, and `false` otherwise. It does not throw any exceptions. -The `ipaddr.isValidCIDR` method returns `true` if the address is a valid IPv4 or -IPv6 address in CIDR notation, and `false` otherwise. It does not throw any exceptions. - The `ipaddr.parse` method returns an object representing the IP address, or throws an `Error` if the passed string is not a valid representation of an IP address. @@ -78,34 +67,40 @@ Note that this method: * returns a compact representation (when it is applicable) A `match(range, bits)` method can be used to check if the address falls into a -certain CIDR range. Note that an address can be (obviously) matched only against an address of the same type. +certain CIDR range. +Note that an address can be (obviously) matched only against an address of the same type. For example: ```js -const addr = ipaddr.parse('2001:db8:1234::1'); -const range = ipaddr.parse('2001:db8::'); +var addr = ipaddr.parse("2001:db8:1234::1"); +var range = ipaddr.parse("2001:db8::"); addr.match(range, 32); // => true ``` -Alternatively, `match` can also be called as `match([range, bits])`. In this way, it can be used together with the `parseCIDR(string)` method, which parses an IP address together with a CIDR range. +Alternatively, `match` can also be called as `match([range, bits])`. In this way, +it can be used together with the `parseCIDR(string)` method, which parses an IP +address together with a CIDR range. For example: ```js -const addr = ipaddr.parse('2001:db8:1234::1'); +var addr = ipaddr.parse("2001:db8:1234::1"); -addr.match(ipaddr.parseCIDR('2001:db8::/32')); // => true +addr.match(ipaddr.parseCIDR("2001:db8::/32")); // => true ``` -A `range()` method returns one of predefined names for several special ranges defined by IP protocols. The exact names (and their respective CIDR ranges) can be looked up in the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `"unicast"` (the default one) and `"reserved"`. +A `range()` method returns one of predefined names for several special ranges defined +by IP protocols. The exact names (and their respective CIDR ranges) can be looked up +in the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `"unicast"` +(the default one) and `"reserved"`. You can match against your own range list by using `ipaddr.subnetMatch(address, rangeList, defaultName)` method. It can work with a mix of IPv6 or IPv4 addresses, and accepts a name-to-subnet map as the range list. For example: ```js -const rangeList = { +var rangeList = { documentationOnly: [ ipaddr.parse('2001:db8::'), 32 ], tunnelProviders: [ [ ipaddr.parse('2001:470::'), 32 ], // he.net @@ -115,32 +110,38 @@ const rangeList = { ipaddr.subnetMatch(ipaddr.parse('2001:470:8:66::1'), rangeList, 'unknown'); // => "tunnelProviders" ``` -The addresses can be converted to their byte representation with `toByteArray()`. (Actually, JavaScript mostly does not know about byte buffers. They are emulated with arrays of numbers, each in range of 0..255.) +The addresses can be converted to their byte representation with `toByteArray()`. +(Actually, JavaScript mostly does not know about byte buffers. They are emulated with +arrays of numbers, each in range of 0..255.) ```js -const bytes = ipaddr.parse('2a00:1450:8007::68').toByteArray(); // ipv6.google.com +var bytes = ipaddr.parse('2a00:1450:8007::68').toByteArray(); // ipv6.google.com bytes // => [42, 0x00, 0x14, 0x50, 0x80, 0x07, 0x00, , 0x00, 0x68 ] ``` -The `ipaddr.IPv4` and `ipaddr.IPv6` objects have some methods defined, too. All of them have the same interface for both protocols, and are similar to global methods. +The `ipaddr.IPv4` and `ipaddr.IPv6` objects have some methods defined, too. All of them +have the same interface for both protocols, and are similar to global methods. -`ipaddr.IPvX.isValid(string)` can be used to check if the string is a valid address for particular protocol, and `ipaddr.IPvX.parse(string)` is the error-throwing parser. +`ipaddr.IPvX.isValid(string)` can be used to check if the string is a valid address +for particular protocol, and `ipaddr.IPvX.parse(string)` is the error-throwing parser. `ipaddr.IPvX.isValid(string)` uses the same format for parsing as the POSIX `inet_ntoa` function, which accepts unusual formats like `0xc0.168.1.1` or `0x10000000`. The function `ipaddr.IPv4.isValidFourPartDecimal(string)` validates the IPv4 address and also ensures that it is written in four-part decimal format. -[IPv6 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/lib/ipaddr.js#L530 -[IPv4 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/lib/ipaddr.js#L182 +[IPv6 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L186 +[IPv4 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L71 #### IPv6 properties -Sometimes you will want to convert IPv6 not to a compact string representation (with the `::` substitution); the `toNormalizedString()` method will return an address where all zeroes are explicit. +Sometimes you will want to convert IPv6 not to a compact string representation (with +the `::` substitution); the `toNormalizedString()` method will return an address where +all zeroes are explicit. For example: ```js -const addr = ipaddr.parse('2001:0db8::0001'); -addr.toString(); // => '2001:db8::1' -addr.toNormalizedString(); // => '2001:db8:0:0:0:0:0:1' +var addr = ipaddr.parse("2001:0db8::0001"); +addr.toString(); // => "2001:db8::1" +addr.toNormalizedString(); // => "2001:db8:0:0:0:0:0:1" ``` The `isIPv4MappedAddress()` method will return `true` if this address is an IPv4-mapped @@ -149,14 +150,14 @@ one, and `toIPv4Address()` will return an IPv4 object address. To access the underlying binary representation of the address, use `addr.parts`. ```js -const addr = ipaddr.parse('2001:db8:10::1234:DEAD'); +var addr = ipaddr.parse("2001:db8:10::1234:DEAD"); addr.parts // => [0x2001, 0xdb8, 0x10, 0, 0, 0, 0x1234, 0xdead] ``` A IPv6 zone index can be accessed via `addr.zoneId`: ```js -const addr = ipaddr.parse('2001:db8::%eth0'); +var addr = ipaddr.parse("2001:db8::%eth0"); addr.zoneId // => 'eth0' ``` @@ -167,7 +168,7 @@ addr.zoneId // => 'eth0' To access the underlying representation of the address, use `addr.octets`. ```js -const addr = ipaddr.parse('192.168.1.1'); +var addr = ipaddr.parse("192.168.1.1"); addr.octets // => [192, 168, 1, 1] ``` @@ -182,17 +183,17 @@ ipaddr.IPv4.parse('255.192.164.0').prefixLengthFromSubnetMask() == null `subnetMaskFromPrefixLength()` will return an IPv4 netmask for a valid CIDR prefix length. ```js -ipaddr.IPv4.subnetMaskFromPrefixLength(24) == '255.255.255.0' -ipaddr.IPv4.subnetMaskFromPrefixLength(29) == '255.255.255.248' +ipaddr.IPv4.subnetMaskFromPrefixLength(24) == "255.255.255.0" +ipaddr.IPv4.subnetMaskFromPrefixLength(29) == "255.255.255.248" ``` `broadcastAddressFromCIDR()` will return the broadcast address for a given IPv4 interface and netmask in CIDR notation. ```js -ipaddr.IPv4.broadcastAddressFromCIDR('172.0.0.1/24') == '172.0.0.255' +ipaddr.IPv4.broadcastAddressFromCIDR("172.0.0.1/24") == "172.0.0.255" ``` `networkAddressFromCIDR()` will return the network address for a given IPv4 interface and netmask in CIDR notation. ```js -ipaddr.IPv4.networkAddressFromCIDR('172.0.0.1/24') == '172.0.0.0' +ipaddr.IPv4.networkAddressFromCIDR("172.0.0.1/24") == "172.0.0.0" ``` #### Conversion @@ -205,28 +206,28 @@ while for IPv6 it has to be an array of sixteen 8-bit values. For example: ```js -const addr = ipaddr.fromByteArray([0x7f, 0, 0, 1]); -addr.toString(); // => '127.0.0.1' +var addr = ipaddr.fromByteArray([0x7f, 0, 0, 1]); +addr.toString(); // => "127.0.0.1" ``` or ```js -const addr = ipaddr.fromByteArray([0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) -addr.toString(); // => '2001:db8::1' +var addr = ipaddr.fromByteArray([0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) +addr.toString(); // => "2001:db8::1" ``` Both objects also offer a `toByteArray()` method, which returns an array in network byte order (MSB). For example: ```js -const addr = ipaddr.parse('127.0.0.1'); +var addr = ipaddr.parse("127.0.0.1"); addr.toByteArray(); // => [0x7f, 0, 0, 1] ``` or ```js -const addr = ipaddr.parse('2001:db8::1'); +var addr = ipaddr.parse("2001:db8::1"); addr.toByteArray(); // => [0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] ``` diff --git a/node_modules/ipaddr.js/ipaddr.min.js b/node_modules/ipaddr.js/ipaddr.min.js index bd03676b..b54a7cc4 100644 --- a/node_modules/ipaddr.js/ipaddr.min.js +++ b/node_modules/ipaddr.js/ipaddr.min.js @@ -1 +1 @@ -!function(t){!function(t){"use strict";const r="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},n=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),o="(?:[0-9a-f]+::?)+",s={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(%[0-9a-z]{1,})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${r}\\.${r}\\.${r}\\.${r}(%[0-9a-z]{1,})?$`,"i")};function a(t,r){if(t.indexOf("::")!==t.lastIndexOf("::"))return null;let e,n,i=0,o=-1,a=(t.match(s.zoneIndex)||[])[0];for(a&&(a=a.substring(1),t=t.replace(/%.+$/,""));(o=t.indexOf(":",o+1))>=0;)i++;if("::"===t.substr(0,2)&&i--,"::"===t.substr(-2,2)&&i--,i>r)return null;for(n=r-i,e=":";n--;)e+="0:";return":"===(t=t.replace("::",e))[0]&&(t=t.slice(1)),":"===t[t.length-1]&&(t=t.slice(0,-1)),{parts:r=function(){const r=t.split(":"),e=[];for(let t=0;t0;){if((i=e-n)<0&&(i=0),t[o]>>i!=r[o]>>i)return!1;n-=e,o+=1}return!0}function u(t){if(i.test(t))return parseInt(t,16);if("0"===t[0]&&!isNaN(parseInt(t[1],10))){if(n.test(t))return parseInt(t,8);throw new Error(`ipaddr: cannot parse ${t} as octal`)}return parseInt(t,10)}function d(t,r){for(;t.length=0;n-=1){if(!((i=this.octets[n])in e))return null;if(o=e[i],r&&0!==o)return null;8!==o&&(r=!0),t+=o}return 32-t},t.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){return this.octets.slice(0)},t.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},t.prototype.toNormalizedString=function(){return this.toString()},t.prototype.toString=function(){return this.octets.join(".")},t}(),h.IPv4.broadcastAddressFromCIDR=function(t){try{const r=this.parseCIDR(t),e=r[0].toByteArray(),n=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[];let o=0;for(;o<4;)i.push(parseInt(e[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(t){return null!==this.parser(t)},h.IPv4.isValid=function(t){try{return new this(this.parser(t)),!0}catch(t){return!1}},h.IPv4.isValidCIDR=function(t){try{return this.parseCIDR(t),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(t){return!(!h.IPv4.isValid(t)||!t.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(t){let r,e,n,i,o;try{for(n=(r=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[],e=0;e<4;)i.push(parseInt(n[e],10)&parseInt(o[e],10)),e++;return new this(i)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(t){const r=this.parser(t);if(null===r)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(r)},h.IPv4.parseCIDR=function(t){let r;if(r=t.match(/^(.+)\/(\d+)$/)){const t=parseInt(r[2]);if(t>=0&&t<=32){const e=[this.parse(r[1]),t];return Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(t){let r,n,i;if(r=t.match(e.fourOctet))return function(){const t=r.slice(1,6),e=[];for(let r=0;r4294967295||i<0)throw new Error("ipaddr: address outside defined range");return function(){const t=[];let r;for(r=0;r<=24;r+=8)t.push(i>>r&255);return t}().reverse()}return(r=t.match(e.twoOctet))?function(){const t=r.slice(1,4),e=[];if((i=u(t[1]))>16777215||i<0)throw new Error("ipaddr: address outside defined range");return e.push(u(t[0])),e.push(i>>16&255),e.push(i>>8&255),e.push(255&i),e}():(r=t.match(e.threeOctet))?function(){const t=r.slice(1,5),e=[];if((i=u(t[2]))>65535||i<0)throw new Error("ipaddr: address outside defined range");return e.push(u(t[0])),e.push(u(t[1])),e.push(i>>8&255),e.push(255&i),e}():null},h.IPv4.subnetMaskFromPrefixLength=function(t){if((t=parseInt(t))<0||t>32)throw new Error("ipaddr: invalid IPv4 prefix length");const r=[0,0,0,0];let e=0;const n=Math.floor(t/8);for(;e=0;o-=1){if(!((n=this.parts[o])in e))return null;if(i=e[n],r&&0!==i)return null;16!==i&&(r=!0),t+=i}return 128-t},t.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){let t;const r=[],e=this.parts;for(let n=0;n>8),r.push(255&t);return r},t.prototype.toFixedLengthString=function(){const t=function(){const t=[];for(let r=0;r>8,255&r,e>>8,255&e])},t.prototype.toNormalizedString=function(){const t=function(){const t=[];for(let r=0;ri&&(n=e.index,i=e[0].length);return i<0?r:`${r.substring(0,n)}::${r.substring(n+i)}`},t.prototype.toString=function(){return this.toRFC5952String()},t}(),h.IPv6.broadcastAddressFromCIDR=function(t){try{const r=this.parseCIDR(t),e=r[0].toByteArray(),n=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[];let o=0;for(;o<16;)i.push(parseInt(e[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.isIPv6=function(t){return null!==this.parser(t)},h.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{const r=this.parser(t);return new this(r.parts,r.zoneId),!0}catch(t){return!1}},h.IPv6.isValidCIDR=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{return this.parseCIDR(t),!0}catch(t){return!1}},h.IPv6.networkAddressFromCIDR=function(t){let r,e,n,i,o;try{for(n=(r=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[],e=0;e<16;)i.push(parseInt(n[e],10)&parseInt(o[e],10)),e++;return new this(i)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.parse=function(t){const r=this.parser(t);if(null===r.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(r.parts,r.zoneId)},h.IPv6.parseCIDR=function(t){let r,e,n;if((e=t.match(/^(.+)\/(\d+)$/))&&(r=parseInt(e[2]))>=0&&r<=128)return n=[this.parse(e[1]),r],Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(t){let r,e,n,i,o,p;if(n=t.match(s.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(s.native.test(t))return a(t,8);if((n=t.match(s.transitional))&&(p=n[6]||"",r=n[1],n[1].endsWith("::")||(r=r.slice(0,-1)),(r=a(r+p,6)).parts)){for(o=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])],e=0;e128)throw new Error("ipaddr: invalid IPv6 prefix length");const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let e=0;const n=Math.floor(t/8);for(;e0;){if((o=n-e)<0&&(o=0),r[i]>>o!=t[i]>>o)return!1;e-=n,i+=1}return!0},t.subnetMatch=function(r,t,n){var e,i,o,a,s;null==n&&(n="unicast");for(o in t)for(!(a=t[o])[0]||a[0]instanceof Array||(a=[a]),e=0,i=a.length;e=0;t=n+=-1){if(!((e=this.octets[t])in a))return null;if(o=a[e],i&&0!==o)return null;8!==o&&(i=!0),r+=o}return 32-r},r}(),n="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},t.IPv4.parser=function(r){var t,n,i,o,a;if(n=function(r){return"0"===r[0]&&"x"!==r[1]?parseInt(r,8):parseInt(r)},t=r.match(e.fourOctet))return function(){var r,e,o,a;for(a=[],r=0,e=(o=t.slice(1,6)).length;r4294967295||a<0)throw new Error("ipaddr: address outside defined range");return function(){var r,t;for(t=[],o=r=0;r<=24;o=r+=8)t.push(a>>o&255);return t}().reverse()}return null},t.IPv6=function(){function r(r,t){var n,e,i,o,a,s;if(16===r.length)for(this.parts=[],n=e=0;e<=14;n=e+=2)this.parts.push(r[n]<<8|r[n+1]);else{if(8!==r.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=r}for(i=0,o=(s=this.parts).length;it&&(r=n.index,t=n[0].length);return t<0?i:i.substring(0,r)+"::"+i.substring(r+t)},r.prototype.toByteArray=function(){var r,t,n,e,i;for(r=[],t=0,n=(i=this.parts).length;t>8),r.push(255&e);return r},r.prototype.toNormalizedString=function(){var r,t,n;return r=function(){var r,n,e,i;for(i=[],r=0,n=(e=this.parts).length;r>8,255&r,n>>8,255&n])},r.prototype.prefixLengthFromSubnetMask=function(){var r,t,n,e,i,o,a;for(a={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r=0,i=!1,t=n=7;n>=0;t=n+=-1){if(!((e=this.parts[t])in a))return null;if(o=a[e],i&&0!==o)return null;16!==o&&(i=!0),r+=o}return 128-r},r}(),i="(?:[0-9a-f]+::?)+",o={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+n+"\\."+n+"\\."+n+"\\."+n+"(%[0-9a-z]{1,})?$","i")},r=function(r,t){var n,e,i,a,s,p;if(r.indexOf("::")!==r.lastIndexOf("::"))return null;for((p=(r.match(o.zoneIndex)||[])[0])&&(p=p.substring(1),r=r.replace(/%.+$/,"")),n=0,e=-1;(e=r.indexOf(":",e+1))>=0;)n++;if("::"===r.substr(0,2)&&n--,"::"===r.substr(-2,2)&&n--,n>t)return null;for(s=t-n,a=":";s--;)a+="0:";return":"===(r=r.replace("::",a))[0]&&(r=r.slice(1)),":"===r[r.length-1]&&(r=r.slice(0,-1)),t=function(){var t,n,e,o;for(o=[],t=0,n=(e=r.split(":")).length;t=0&&t<=32)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},t.IPv4.subnetMaskFromPrefixLength=function(r){var t,n,e;if((r=parseInt(r))<0||r>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(e=[0,0,0,0],n=0,t=Math.floor(r/8);n=0&&t<=128)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},t.isValid=function(r){return t.IPv6.isValid(r)||t.IPv4.isValid(r)},t.parse=function(r){if(t.IPv6.isValid(r))return t.IPv6.parse(r);if(t.IPv4.isValid(r))return t.IPv4.parse(r);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},t.parseCIDR=function(r){try{return t.IPv6.parseCIDR(r)}catch(n){n;try{return t.IPv4.parseCIDR(r)}catch(r){throw r,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},t.fromByteArray=function(r){var n;if(4===(n=r.length))return new t.IPv4(r);if(16===n)return new t.IPv6(r);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},t.process=function(r){var t;return t=this.parse(r),"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}).call(this); \ No newline at end of file diff --git a/node_modules/ipaddr.js/lib/ipaddr.js b/node_modules/ipaddr.js/lib/ipaddr.js index da1ba92f..18bd93b5 100644 --- a/node_modules/ipaddr.js/lib/ipaddr.js +++ b/node_modules/ipaddr.js/lib/ipaddr.js @@ -1,1056 +1,673 @@ -(function (root) { - 'use strict'; - // A list of regular expressions that match arbitrary IPv4 addresses, - // for which a number of weird notations exist. - // Note that an address like 0010.0xa5.1.1 is considered legal. - const ipv4Part = '(0?\\d+|0x[a-f0-9]+)'; - const ipv4Regexes = { - fourOctet: new RegExp(`^${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}$`, 'i'), - threeOctet: new RegExp(`^${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}$`, 'i'), - twoOctet: new RegExp(`^${ipv4Part}\\.${ipv4Part}$`, 'i'), - longValue: new RegExp(`^${ipv4Part}$`, 'i') - }; - - // Regular Expression for checking Octal numbers - const octalRegex = new RegExp(`^0[0-7]+$`, 'i'); - const hexRegex = new RegExp(`^0x[a-f0-9]+$`, 'i'); - - const zoneIndex = '%[0-9a-z]{1,}'; - - // IPv6-matching regular expressions. - // For IPv6, the task is simpler: it is enough to match the colon-delimited - // hexadecimal IPv6 and a transitional variant with dotted-decimal IPv4 at - // the end. - const ipv6Part = '(?:[0-9a-f]+::?)+'; - const ipv6Regexes = { - zoneIndex: new RegExp(zoneIndex, 'i'), - 'native': new RegExp(`^(::)?(${ipv6Part})?([0-9a-f]+)?(::)?(${zoneIndex})?$`, 'i'), - deprecatedTransitional: new RegExp(`^(?:::)(${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}(${zoneIndex})?)$`, 'i'), - transitional: new RegExp(`^((?:${ipv6Part})|(?:::)(?:${ipv6Part})?)${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}\\.${ipv4Part}(${zoneIndex})?$`, 'i') - }; - - // Expand :: in an IPv6 address or address part consisting of `parts` groups. - function expandIPv6 (string, parts) { - // More than one '::' means invalid adddress - if (string.indexOf('::') !== string.lastIndexOf('::')) { - return null; - } - - let colonCount = 0; - let lastColon = -1; - let zoneId = (string.match(ipv6Regexes.zoneIndex) || [])[0]; - let replacement, replacementCount; - - // Remove zone index and save it for later - if (zoneId) { - zoneId = zoneId.substring(1); - string = string.replace(/%.+$/, ''); - } - - // How many parts do we already have? - while ((lastColon = string.indexOf(':', lastColon + 1)) >= 0) { - colonCount++; - } - - // 0::0 is two parts more than :: - if (string.substr(0, 2) === '::') { - colonCount--; - } - - if (string.substr(-2, 2) === '::') { - colonCount--; - } - - // The following loop would hang if colonCount > parts - if (colonCount > parts) { - return null; - } - - // replacement = ':' + '0:' * (parts - colonCount) - replacementCount = parts - colonCount; - replacement = ':'; - while (replacementCount--) { - replacement += '0:'; - } - - // Insert the missing zeroes - string = string.replace('::', replacement); - - // Trim any garbage which may be hanging around if :: was at the edge in - // the source strin - if (string[0] === ':') { - string = string.slice(1); - } - - if (string[string.length - 1] === ':') { - string = string.slice(0, -1); - } +(function() { + var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex; - parts = (function () { - const ref = string.split(':'); - const results = []; + ipaddr = {}; - for (let i = 0; i < ref.length; i++) { - results.push(parseInt(ref[i], 16)); - } + root = this; - return results; - })(); + if ((typeof module !== "undefined" && module !== null) && module.exports) { + module.exports = ipaddr; + } else { + root['ipaddr'] = ipaddr; + } - return { - parts: parts, - zoneId: zoneId - }; + matchCIDR = function(first, second, partSize, cidrBits) { + var part, shift; + if (first.length !== second.length) { + throw new Error("ipaddr: cannot match CIDR for objects with different lengths"); } - - // A generic CIDR (Classless Inter-Domain Routing) RFC1518 range matcher. - function matchCIDR (first, second, partSize, cidrBits) { - if (first.length !== second.length) { - throw new Error('ipaddr: cannot match CIDR for objects with different lengths'); - } - - let part = 0; - let shift; - - while (cidrBits > 0) { - shift = partSize - cidrBits; - if (shift < 0) { - shift = 0; - } - - if (first[part] >> shift !== second[part] >> shift) { - return false; - } - - cidrBits -= partSize; - part += 1; - } - - return true; + part = 0; + while (cidrBits > 0) { + shift = partSize - cidrBits; + if (shift < 0) { + shift = 0; + } + if (first[part] >> shift !== second[part] >> shift) { + return false; + } + cidrBits -= partSize; + part += 1; } + return true; + }; - function parseIntAuto (string) { - // Hexadedimal base 16 (0x#) - if (hexRegex.test(string)) { - return parseInt(string, 16); - } - // While octal representation is discouraged by ECMAScript 3 - // and forbidden by ECMAScript 5, we silently allow it to - // work only if the rest of the string has numbers less than 8. - if (string[0] === '0' && !isNaN(parseInt(string[1], 10))) { - if (octalRegex.test(string)) { - return parseInt(string, 8); - } - throw new Error(`ipaddr: cannot parse ${string} as octal`); - } - // Always include the base 10 radix! - return parseInt(string, 10); + ipaddr.subnetMatch = function(address, rangeList, defaultName) { + var k, len, rangeName, rangeSubnets, subnet; + if (defaultName == null) { + defaultName = 'unicast'; } - - function padPart (part, length) { - while (part.length < length) { - part = `0${part}`; - } - - return part; + for (rangeName in rangeList) { + rangeSubnets = rangeList[rangeName]; + if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) { + rangeSubnets = [rangeSubnets]; + } + for (k = 0, len = rangeSubnets.length; k < len; k++) { + subnet = rangeSubnets[k]; + if (address.kind() === subnet[0].kind()) { + if (address.match.apply(address, subnet)) { + return rangeName; + } + } + } + } + return defaultName; + }; + + ipaddr.IPv4 = (function() { + function IPv4(octets) { + var k, len, octet; + if (octets.length !== 4) { + throw new Error("ipaddr: ipv4 octet count should be 4"); + } + for (k = 0, len = octets.length; k < len; k++) { + octet = octets[k]; + if (!((0 <= octet && octet <= 255))) { + throw new Error("ipaddr: ipv4 octet should fit in 8 bits"); + } + } + this.octets = octets; } - const ipaddr = {}; - - // An IPv4 address (RFC791). - ipaddr.IPv4 = (function () { - // Constructs a new IPv4 address from an array of four octets - // in network order (MSB first) - // Verifies the input. - function IPv4 (octets) { - if (octets.length !== 4) { - throw new Error('ipaddr: ipv4 octet count should be 4'); - } - - let i, octet; - - for (i = 0; i < octets.length; i++) { - octet = octets[i]; - if (!((0 <= octet && octet <= 255))) { - throw new Error('ipaddr: ipv4 octet should fit in 8 bits'); - } - } - - this.octets = octets; - } - - // Special IPv4 address ranges. - // See also https://en.wikipedia.org/wiki/Reserved_IP_addresses - IPv4.prototype.SpecialRanges = { - unspecified: [[new IPv4([0, 0, 0, 0]), 8]], - broadcast: [[new IPv4([255, 255, 255, 255]), 32]], - // RFC3171 - multicast: [[new IPv4([224, 0, 0, 0]), 4]], - // RFC3927 - linkLocal: [[new IPv4([169, 254, 0, 0]), 16]], - // RFC5735 - loopback: [[new IPv4([127, 0, 0, 0]), 8]], - // RFC6598 - carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]], - // RFC1918 - 'private': [ - [new IPv4([10, 0, 0, 0]), 8], - [new IPv4([172, 16, 0, 0]), 12], - [new IPv4([192, 168, 0, 0]), 16] - ], - // Reserved and testing-only ranges; RFCs 5735, 5737, 2544, 1700 - reserved: [ - [new IPv4([192, 0, 0, 0]), 24], - [new IPv4([192, 0, 2, 0]), 24], - [new IPv4([192, 88, 99, 0]), 24], - [new IPv4([198, 18, 0, 0]), 15], - [new IPv4([198, 51, 100, 0]), 24], - [new IPv4([203, 0, 113, 0]), 24], - [new IPv4([240, 0, 0, 0]), 4] - ], - // RFC7534, RFC7535 - as112: [ - [new IPv4([192, 175, 48, 0]), 24], - [new IPv4([192, 31, 196, 0]), 24], - ], - // RFC7450 - amt: [ - [new IPv4([192, 52, 193, 0]), 24], - ], - }; - - // The 'kind' method exists on both IPv4 and IPv6 classes. - IPv4.prototype.kind = function () { - return 'ipv4'; - }; - - // Checks if this address matches other one within given CIDR range. - IPv4.prototype.match = function (other, cidrRange) { - let ref; - if (cidrRange === undefined) { - ref = other; - other = ref[0]; - cidrRange = ref[1]; - } - - if (other.kind() !== 'ipv4') { - throw new Error('ipaddr: cannot match ipv4 address with non-ipv4 one'); - } - - return matchCIDR(this.octets, other.octets, 8, cidrRange); - }; - - // returns a number of leading ones in IPv4 address, making sure that - // the rest is a solid sequence of 0's (valid netmask) - // returns either the CIDR length or null if mask is not valid - IPv4.prototype.prefixLengthFromSubnetMask = function () { - let cidr = 0; - // non-zero encountered stop scanning for zeroes - let stop = false; - // number of zeroes in octet - const zerotable = { - 0: 8, - 128: 7, - 192: 6, - 224: 5, - 240: 4, - 248: 3, - 252: 2, - 254: 1, - 255: 0 - }; - let i, octet, zeros; - - for (i = 3; i >= 0; i -= 1) { - octet = this.octets[i]; - if (octet in zerotable) { - zeros = zerotable[octet]; - if (stop && zeros !== 0) { - return null; - } - - if (zeros !== 8) { - stop = true; - } - - cidr += zeros; - } else { - return null; - } - } - - return 32 - cidr; - }; - - // Checks if the address corresponds to one of the special ranges. - IPv4.prototype.range = function () { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - // Returns an array of byte-sized values in network order (MSB first) - IPv4.prototype.toByteArray = function () { - return this.octets.slice(0); - }; - - // Converts this IPv4 address to an IPv4-mapped IPv6 address. - IPv4.prototype.toIPv4MappedAddress = function () { - return ipaddr.IPv6.parse(`::ffff:${this.toString()}`); - }; - - // Symmetrical method strictly for aligning with the IPv6 methods. - IPv4.prototype.toNormalizedString = function () { - return this.toString(); - }; - - // Returns the address in convenient, decimal-dotted format. - IPv4.prototype.toString = function () { - return this.octets.join('.'); - }; - - return IPv4; - })(); - - // A utility function to return broadcast address given the IPv4 interface and prefix length in CIDR notation - ipaddr.IPv4.broadcastAddressFromCIDR = function (string) { - - try { - const cidr = this.parseCIDR(string); - const ipInterfaceOctets = cidr[0].toByteArray(); - const subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - const octets = []; - let i = 0; - while (i < 4) { - // Broadcast address is bitwise OR between ip interface and inverted mask - octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); - i++; - } - - return new this(octets); - } catch (e) { - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } + IPv4.prototype.kind = function() { + return 'ipv4'; }; - // Checks if a given string is formatted like IPv4 address. - ipaddr.IPv4.isIPv4 = function (string) { - return this.parser(string) !== null; + IPv4.prototype.toString = function() { + return this.octets.join("."); }; - // Checks if a given string is a valid IPv4 address. - ipaddr.IPv4.isValid = function (string) { - try { - new this(this.parser(string)); - return true; - } catch (e) { - return false; - } + IPv4.prototype.toNormalizedString = function() { + return this.toString(); }; - // Checks if a given string is a valid IPv4 address in CIDR notation. - ipaddr.IPv4.isValidCIDR = function (string) { - try { - this.parseCIDR(string); - return true; - } catch (e) { - return false; - } + IPv4.prototype.toByteArray = function() { + return this.octets.slice(0); }; - // Checks if a given string is a full four-part IPv4 Address. - ipaddr.IPv4.isValidFourPartDecimal = function (string) { - if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) { - return true; - } else { - return false; - } + IPv4.prototype.match = function(other, cidrRange) { + var ref; + if (cidrRange === void 0) { + ref = other, other = ref[0], cidrRange = ref[1]; + } + if (other.kind() !== 'ipv4') { + throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one"); + } + return matchCIDR(this.octets, other.octets, 8, cidrRange); }; - // A utility function to return network address given the IPv4 interface and prefix length in CIDR notation - ipaddr.IPv4.networkAddressFromCIDR = function (string) { - let cidr, i, ipInterfaceOctets, octets, subnetMaskOctets; - - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - // Network address is bitwise AND between ip interface and mask - octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); - i++; - } - - return new this(octets); - } catch (e) { - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } + IPv4.prototype.SpecialRanges = { + unspecified: [[new IPv4([0, 0, 0, 0]), 8]], + broadcast: [[new IPv4([255, 255, 255, 255]), 32]], + multicast: [[new IPv4([224, 0, 0, 0]), 4]], + linkLocal: [[new IPv4([169, 254, 0, 0]), 16]], + loopback: [[new IPv4([127, 0, 0, 0]), 8]], + carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]], + "private": [[new IPv4([10, 0, 0, 0]), 8], [new IPv4([172, 16, 0, 0]), 12], [new IPv4([192, 168, 0, 0]), 16]], + reserved: [[new IPv4([192, 0, 0, 0]), 24], [new IPv4([192, 0, 2, 0]), 24], [new IPv4([192, 88, 99, 0]), 24], [new IPv4([198, 51, 100, 0]), 24], [new IPv4([203, 0, 113, 0]), 24], [new IPv4([240, 0, 0, 0]), 4]] }; - // Tries to parse and validate a string with IPv4 address. - // Throws an error if it fails. - ipaddr.IPv4.parse = function (string) { - const parts = this.parser(string); - - if (parts === null) { - throw new Error('ipaddr: string is not formatted like an IPv4 Address'); - } - - return new this(parts); + IPv4.prototype.range = function() { + return ipaddr.subnetMatch(this, this.SpecialRanges); }; - // Parses the string as an IPv4 Address with CIDR Notation. - ipaddr.IPv4.parseCIDR = function (string) { - let match; - - if ((match = string.match(/^(.+)\/(\d+)$/))) { - const maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 32) { - const parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function () { - return this.join('/'); - } - }); - return parsed; - } - } - - throw new Error('ipaddr: string is not formatted like an IPv4 CIDR range'); + IPv4.prototype.toIPv4MappedAddress = function() { + return ipaddr.IPv6.parse("::ffff:" + (this.toString())); }; - // Classful variants (like a.b, where a is an octet, and b is a 24-bit - // value representing last three octets; this corresponds to a class C - // address) are omitted due to classless nature of modern Internet. - ipaddr.IPv4.parser = function (string) { - let match, part, value; - - // parseInt recognizes all that octal & hexadecimal weirdness for us - if ((match = string.match(ipv4Regexes.fourOctet))) { - return (function () { - const ref = match.slice(1, 6); - const results = []; - - for (let i = 0; i < ref.length; i++) { - part = ref[i]; - results.push(parseIntAuto(part)); - } - - return results; - })(); - } else if ((match = string.match(ipv4Regexes.longValue))) { - value = parseIntAuto(match[1]); - if (value > 0xffffffff || value < 0) { - throw new Error('ipaddr: address outside defined range'); - } - - return ((function () { - const results = []; - let shift; - - for (shift = 0; shift <= 24; shift += 8) { - results.push((value >> shift) & 0xff); - } - - return results; - })()).reverse(); - } else if ((match = string.match(ipv4Regexes.twoOctet))) { - return (function () { - const ref = match.slice(1, 4); - const results = []; - - value = parseIntAuto(ref[1]); - if (value > 0xffffff || value < 0) { - throw new Error('ipaddr: address outside defined range'); - } - - results.push(parseIntAuto(ref[0])); - results.push((value >> 16) & 0xff); - results.push((value >> 8) & 0xff); - results.push( value & 0xff); - - return results; - })(); - } else if ((match = string.match(ipv4Regexes.threeOctet))) { - return (function () { - const ref = match.slice(1, 5); - const results = []; - - value = parseIntAuto(ref[2]); - if (value > 0xffff || value < 0) { - throw new Error('ipaddr: address outside defined range'); - } - - results.push(parseIntAuto(ref[0])); - results.push(parseIntAuto(ref[1])); - results.push((value >> 8) & 0xff); - results.push( value & 0xff); - - return results; - })(); - } else { + IPv4.prototype.prefixLengthFromSubnetMask = function() { + var cidr, i, k, octet, stop, zeros, zerotable; + zerotable = { + 0: 8, + 128: 7, + 192: 6, + 224: 5, + 240: 4, + 248: 3, + 252: 2, + 254: 1, + 255: 0 + }; + cidr = 0; + stop = false; + for (i = k = 3; k >= 0; i = k += -1) { + octet = this.octets[i]; + if (octet in zerotable) { + zeros = zerotable[octet]; + if (stop && zeros !== 0) { return null; + } + if (zeros !== 8) { + stop = true; + } + cidr += zeros; + } else { + return null; } + } + return 32 - cidr; }; - // A utility function to return subnet mask in IPv4 format given the prefix length - ipaddr.IPv4.subnetMaskFromPrefixLength = function (prefix) { - prefix = parseInt(prefix); - if (prefix < 0 || prefix > 32) { - throw new Error('ipaddr: invalid IPv4 prefix length'); - } + return IPv4; - const octets = [0, 0, 0, 0]; - let j = 0; - const filledOctetCount = Math.floor(prefix / 8); + })(); - while (j < filledOctetCount) { - octets[j] = 255; - j++; - } + ipv4Part = "(0?\\d+|0x[a-f0-9]+)"; - if (filledOctetCount < 4) { - octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8); - } + ipv4Regexes = { + fourOctet: new RegExp("^" + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "$", 'i'), + longValue: new RegExp("^" + ipv4Part + "$", 'i') + }; - return new this(octets); + ipaddr.IPv4.parser = function(string) { + var match, parseIntAuto, part, shift, value; + parseIntAuto = function(string) { + if (string[0] === "0" && string[1] !== "x") { + return parseInt(string, 8); + } else { + return parseInt(string); + } }; + if (match = string.match(ipv4Regexes.fourOctet)) { + return (function() { + var k, len, ref, results; + ref = match.slice(1, 6); + results = []; + for (k = 0, len = ref.length; k < len; k++) { + part = ref[k]; + results.push(parseIntAuto(part)); + } + return results; + })(); + } else if (match = string.match(ipv4Regexes.longValue)) { + value = parseIntAuto(match[1]); + if (value > 0xffffffff || value < 0) { + throw new Error("ipaddr: address outside defined range"); + } + return ((function() { + var k, results; + results = []; + for (shift = k = 0; k <= 24; shift = k += 8) { + results.push((value >> shift) & 0xff); + } + return results; + })()).reverse(); + } else { + return null; + } + }; + + ipaddr.IPv6 = (function() { + function IPv6(parts, zoneId) { + var i, k, l, len, part, ref; + if (parts.length === 16) { + this.parts = []; + for (i = k = 0; k <= 14; i = k += 2) { + this.parts.push((parts[i] << 8) | parts[i + 1]); + } + } else if (parts.length === 8) { + this.parts = parts; + } else { + throw new Error("ipaddr: ipv6 part count should be 8 or 16"); + } + ref = this.parts; + for (l = 0, len = ref.length; l < len; l++) { + part = ref[l]; + if (!((0 <= part && part <= 0xffff))) { + throw new Error("ipaddr: ipv6 part should fit in 16 bits"); + } + } + if (zoneId) { + this.zoneId = zoneId; + } + } - // An IPv6 address (RFC2460) - ipaddr.IPv6 = (function () { - // Constructs an IPv6 address from an array of eight 16 - bit parts - // or sixteen 8 - bit parts in network order(MSB first). - // Throws an error if the input is invalid. - function IPv6 (parts, zoneId) { - let i, part; - - if (parts.length === 16) { - this.parts = []; - for (i = 0; i <= 14; i += 2) { - this.parts.push((parts[i] << 8) | parts[i + 1]); - } - } else if (parts.length === 8) { - this.parts = parts; - } else { - throw new Error('ipaddr: ipv6 part count should be 8 or 16'); - } - - for (i = 0; i < this.parts.length; i++) { - part = this.parts[i]; - if (!((0 <= part && part <= 0xffff))) { - throw new Error('ipaddr: ipv6 part should fit in 16 bits'); - } - } - - if (zoneId) { - this.zoneId = zoneId; - } - } - - // Special IPv6 ranges - IPv6.prototype.SpecialRanges = { - // RFC4291, here and after - unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128], - linkLocal: [new IPv6([0xfe80, 0, 0, 0, 0, 0, 0, 0]), 10], - multicast: [new IPv6([0xff00, 0, 0, 0, 0, 0, 0, 0]), 8], - loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128], - uniqueLocal: [new IPv6([0xfc00, 0, 0, 0, 0, 0, 0, 0]), 7], - ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 0xffff, 0, 0]), 96], - // RFC6666 - discard: [new IPv6([0x100, 0, 0, 0, 0, 0, 0, 0]), 64], - // RFC6145 - rfc6145: [new IPv6([0, 0, 0, 0, 0xffff, 0, 0, 0]), 96], - // RFC6052 - rfc6052: [new IPv6([0x64, 0xff9b, 0, 0, 0, 0, 0, 0]), 96], - // RFC3056 - '6to4': [new IPv6([0x2002, 0, 0, 0, 0, 0, 0, 0]), 16], - // RFC6052, RFC6146 - teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32], - // RFC5180 - benchmarking: [new IPv6([0x2001, 0x2, 0, 0, 0, 0, 0, 0]), 48], - // RFC7450 - amt: [new IPv6([0x2001, 0x3, 0, 0, 0, 0, 0, 0]), 32], - as112v6: [ - [new IPv6([0x2001, 0x4, 0x112, 0, 0, 0, 0, 0]), 48], - [new IPv6([0x2620, 0x4f, 0x8000, 0, 0, 0, 0, 0]), 48], - ], - deprecated: [new IPv6([0x2001, 0x10, 0, 0, 0, 0, 0, 0]), 28], - orchid2: [new IPv6([0x2001, 0x20, 0, 0, 0, 0, 0, 0]), 28], - droneRemoteIdProtocolEntityTags: [new IPv6([0x2001, 0x30, 0, 0, 0, 0, 0, 0]), 28], - reserved: [ - // RFC3849 - [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 23], - // RFC2928 - [new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32], - ], - }; - - // Checks if this address is an IPv4-mapped IPv6 address. - IPv6.prototype.isIPv4MappedAddress = function () { - return this.range() === 'ipv4Mapped'; - }; - - // The 'kind' method exists on both IPv4 and IPv6 classes. - IPv6.prototype.kind = function () { - return 'ipv6'; - }; - - // Checks if this address matches other one within given CIDR range. - IPv6.prototype.match = function (other, cidrRange) { - let ref; - - if (cidrRange === undefined) { - ref = other; - other = ref[0]; - cidrRange = ref[1]; - } - - if (other.kind() !== 'ipv6') { - throw new Error('ipaddr: cannot match ipv6 address with non-ipv6 one'); - } - - return matchCIDR(this.parts, other.parts, 16, cidrRange); - }; - - // returns a number of leading ones in IPv6 address, making sure that - // the rest is a solid sequence of 0's (valid netmask) - // returns either the CIDR length or null if mask is not valid - IPv6.prototype.prefixLengthFromSubnetMask = function () { - let cidr = 0; - // non-zero encountered stop scanning for zeroes - let stop = false; - // number of zeroes in octet - const zerotable = { - 0: 16, - 32768: 15, - 49152: 14, - 57344: 13, - 61440: 12, - 63488: 11, - 64512: 10, - 65024: 9, - 65280: 8, - 65408: 7, - 65472: 6, - 65504: 5, - 65520: 4, - 65528: 3, - 65532: 2, - 65534: 1, - 65535: 0 - }; - let part, zeros; - - for (let i = 7; i >= 0; i -= 1) { - part = this.parts[i]; - if (part in zerotable) { - zeros = zerotable[part]; - if (stop && zeros !== 0) { - return null; - } - - if (zeros !== 16) { - stop = true; - } - - cidr += zeros; - } else { - return null; - } - } - - return 128 - cidr; - }; - - - // Checks if the address corresponds to one of the special ranges. - IPv6.prototype.range = function () { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - // Returns an array of byte-sized values in network order (MSB first) - IPv6.prototype.toByteArray = function () { - let part; - const bytes = []; - const ref = this.parts; - for (let i = 0; i < ref.length; i++) { - part = ref[i]; - bytes.push(part >> 8); - bytes.push(part & 0xff); - } - - return bytes; - }; - - // Returns the address in expanded format with all zeroes included, like - // 2001:0db8:0008:0066:0000:0000:0000:0001 - IPv6.prototype.toFixedLengthString = function () { - const addr = ((function () { - const results = []; - for (let i = 0; i < this.parts.length; i++) { - results.push(padPart(this.parts[i].toString(16), 4)); - } - - return results; - }).call(this)).join(':'); - - let suffix = ''; - - if (this.zoneId) { - suffix = `%${this.zoneId}`; - } - - return addr + suffix; - }; - - // Converts this address to IPv4 address if it is an IPv4-mapped IPv6 address. - // Throws an error otherwise. - IPv6.prototype.toIPv4Address = function () { - if (!this.isIPv4MappedAddress()) { - throw new Error('ipaddr: trying to convert a generic ipv6 address to ipv4'); - } - - const ref = this.parts.slice(-2); - const high = ref[0]; - const low = ref[1]; - - return new ipaddr.IPv4([high >> 8, high & 0xff, low >> 8, low & 0xff]); - }; - - // Returns the address in expanded format with all zeroes included, like - // 2001:db8:8:66:0:0:0:1 - // - // Deprecated: use toFixedLengthString() instead. - IPv6.prototype.toNormalizedString = function () { - const addr = ((function () { - const results = []; - - for (let i = 0; i < this.parts.length; i++) { - results.push(this.parts[i].toString(16)); - } - - return results; - }).call(this)).join(':'); - - let suffix = ''; - - if (this.zoneId) { - suffix = `%${this.zoneId}`; - } - - return addr + suffix; - }; - - // Returns the address in compact, human-readable format like - // 2001:db8:8:66::1 - // in line with RFC 5952 (see https://tools.ietf.org/html/rfc5952#section-4) - IPv6.prototype.toRFC5952String = function () { - const regex = /((^|:)(0(:|$)){2,})/g; - const string = this.toNormalizedString(); - let bestMatchIndex = 0; - let bestMatchLength = -1; - let match; - - while ((match = regex.exec(string))) { - if (match[0].length > bestMatchLength) { - bestMatchIndex = match.index; - bestMatchLength = match[0].length; - } - } - - if (bestMatchLength < 0) { - return string; - } - - return `${string.substring(0, bestMatchIndex)}::${string.substring(bestMatchIndex + bestMatchLength)}`; - }; - - // Returns the address in compact, human-readable format like - // 2001:db8:8:66::1 - // Calls toRFC5952String under the hood. - IPv6.prototype.toString = function () { - return this.toRFC5952String(); - }; - - return IPv6; - - })(); - - // A utility function to return broadcast address given the IPv6 interface and prefix length in CIDR notation - ipaddr.IPv6.broadcastAddressFromCIDR = function (string) { - try { - const cidr = this.parseCIDR(string); - const ipInterfaceOctets = cidr[0].toByteArray(); - const subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - const octets = []; - let i = 0; - while (i < 16) { - // Broadcast address is bitwise OR between ip interface and inverted mask - octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); - i++; - } - - return new this(octets); - } catch (e) { - throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`); - } + IPv6.prototype.kind = function() { + return 'ipv6'; }; - // Checks if a given string is formatted like IPv6 address. - ipaddr.IPv6.isIPv6 = function (string) { - return this.parser(string) !== null; + IPv6.prototype.toString = function() { + return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::'); }; - // Checks to see if string is a valid IPv6 Address - ipaddr.IPv6.isValid = function (string) { - - // Since IPv6.isValid is always called first, this shortcut - // provides a substantial performance gain. - if (typeof string === 'string' && string.indexOf(':') === -1) { - return false; - } - - try { - const addr = this.parser(string); - new this(addr.parts, addr.zoneId); - return true; - } catch (e) { - return false; - } + IPv6.prototype.toRFC5952String = function() { + var bestMatchIndex, bestMatchLength, match, regex, string; + regex = /((^|:)(0(:|$)){2,})/g; + string = this.toNormalizedString(); + bestMatchIndex = 0; + bestMatchLength = -1; + while ((match = regex.exec(string))) { + if (match[0].length > bestMatchLength) { + bestMatchIndex = match.index; + bestMatchLength = match[0].length; + } + } + if (bestMatchLength < 0) { + return string; + } + return string.substring(0, bestMatchIndex) + '::' + string.substring(bestMatchIndex + bestMatchLength); }; - // Checks if a given string is a valid IPv6 address in CIDR notation. - ipaddr.IPv6.isValidCIDR = function (string) { - - // See note in IPv6.isValid - if (typeof string === 'string' && string.indexOf(':') === -1) { - return false; - } - - try { - this.parseCIDR(string); - return true; - } catch (e) { - return false; - } + IPv6.prototype.toByteArray = function() { + var bytes, k, len, part, ref; + bytes = []; + ref = this.parts; + for (k = 0, len = ref.length; k < len; k++) { + part = ref[k]; + bytes.push(part >> 8); + bytes.push(part & 0xff); + } + return bytes; }; - // A utility function to return network address given the IPv6 interface and prefix length in CIDR notation - ipaddr.IPv6.networkAddressFromCIDR = function (string) { - let cidr, i, ipInterfaceOctets, octets, subnetMaskOctets; - - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 16) { - // Network address is bitwise AND between ip interface and mask - octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); - i++; - } - - return new this(octets); - } catch (e) { - throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`); - } + IPv6.prototype.toNormalizedString = function() { + var addr, part, suffix; + addr = ((function() { + var k, len, ref, results; + ref = this.parts; + results = []; + for (k = 0, len = ref.length; k < len; k++) { + part = ref[k]; + results.push(part.toString(16)); + } + return results; + }).call(this)).join(":"); + suffix = ''; + if (this.zoneId) { + suffix = '%' + this.zoneId; + } + return addr + suffix; }; - // Tries to parse and validate a string with IPv6 address. - // Throws an error if it fails. - ipaddr.IPv6.parse = function (string) { - const addr = this.parser(string); - - if (addr.parts === null) { - throw new Error('ipaddr: string is not formatted like an IPv6 Address'); - } - - return new this(addr.parts, addr.zoneId); - }; - - ipaddr.IPv6.parseCIDR = function (string) { - let maskLength, match, parsed; - - if ((match = string.match(/^(.+)\/(\d+)$/))) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 128) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function () { - return this.join('/'); - } - }); - return parsed; - } - } - - throw new Error('ipaddr: string is not formatted like an IPv6 CIDR range'); + IPv6.prototype.toFixedLengthString = function() { + var addr, part, suffix; + addr = ((function() { + var k, len, ref, results; + ref = this.parts; + results = []; + for (k = 0, len = ref.length; k < len; k++) { + part = ref[k]; + results.push(part.toString(16).padStart(4, '0')); + } + return results; + }).call(this)).join(":"); + suffix = ''; + if (this.zoneId) { + suffix = '%' + this.zoneId; + } + return addr + suffix; }; - // Parse an IPv6 address. - ipaddr.IPv6.parser = function (string) { - let addr, i, match, octet, octets, zoneId; - - if ((match = string.match(ipv6Regexes.deprecatedTransitional))) { - return this.parser(`::ffff:${match[1]}`); - } - if (ipv6Regexes.native.test(string)) { - return expandIPv6(string, 8); - } - if ((match = string.match(ipv6Regexes.transitional))) { - zoneId = match[6] || ''; - addr = match[1] - if (!match[1].endsWith('::')) { - addr = addr.slice(0, -1) - } - addr = expandIPv6(addr + zoneId, 6); - if (addr.parts) { - octets = [ - parseInt(match[2]), - parseInt(match[3]), - parseInt(match[4]), - parseInt(match[5]) - ]; - for (i = 0; i < octets.length; i++) { - octet = octets[i]; - if (!((0 <= octet && octet <= 255))) { - return null; - } - } - - addr.parts.push(octets[0] << 8 | octets[1]); - addr.parts.push(octets[2] << 8 | octets[3]); - return { - parts: addr.parts, - zoneId: addr.zoneId - }; - } - } - - return null; + IPv6.prototype.match = function(other, cidrRange) { + var ref; + if (cidrRange === void 0) { + ref = other, other = ref[0], cidrRange = ref[1]; + } + if (other.kind() !== 'ipv6') { + throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one"); + } + return matchCIDR(this.parts, other.parts, 16, cidrRange); }; - // A utility function to return subnet mask in IPv6 format given the prefix length - ipaddr.IPv6.subnetMaskFromPrefixLength = function (prefix) { - prefix = parseInt(prefix); - if (prefix < 0 || prefix > 128) { - throw new Error('ipaddr: invalid IPv6 prefix length'); - } - - const octets = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - let j = 0; - const filledOctetCount = Math.floor(prefix / 8); - - while (j < filledOctetCount) { - octets[j] = 255; - j++; - } - - if (filledOctetCount < 16) { - octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8); - } - - return new this(octets); + IPv6.prototype.SpecialRanges = { + unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128], + linkLocal: [new IPv6([0xfe80, 0, 0, 0, 0, 0, 0, 0]), 10], + multicast: [new IPv6([0xff00, 0, 0, 0, 0, 0, 0, 0]), 8], + loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128], + uniqueLocal: [new IPv6([0xfc00, 0, 0, 0, 0, 0, 0, 0]), 7], + ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 0xffff, 0, 0]), 96], + rfc6145: [new IPv6([0, 0, 0, 0, 0xffff, 0, 0, 0]), 96], + rfc6052: [new IPv6([0x64, 0xff9b, 0, 0, 0, 0, 0, 0]), 96], + '6to4': [new IPv6([0x2002, 0, 0, 0, 0, 0, 0, 0]), 16], + teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32], + reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]] }; - // Try to parse an array in network order (MSB first) for IPv4 and IPv6 - ipaddr.fromByteArray = function (bytes) { - const length = bytes.length; - - if (length === 4) { - return new ipaddr.IPv4(bytes); - } else if (length === 16) { - return new ipaddr.IPv6(bytes); - } else { - throw new Error('ipaddr: the binary input is neither an IPv6 nor IPv4 address'); - } + IPv6.prototype.range = function() { + return ipaddr.subnetMatch(this, this.SpecialRanges); }; - // Checks if the address is valid IP address - ipaddr.isValid = function (string) { - return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string); + IPv6.prototype.isIPv4MappedAddress = function() { + return this.range() === 'ipv4Mapped'; }; - // Checks if the address is valid IP address in CIDR notation - ipaddr.isValidCIDR = function (string) { - return ipaddr.IPv6.isValidCIDR(string) || ipaddr.IPv4.isValidCIDR(string); + IPv6.prototype.toIPv4Address = function() { + var high, low, ref; + if (!this.isIPv4MappedAddress()) { + throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4"); + } + ref = this.parts.slice(-2), high = ref[0], low = ref[1]; + return new ipaddr.IPv4([high >> 8, high & 0xff, low >> 8, low & 0xff]); }; - - // Attempts to parse an IP Address, first through IPv6 then IPv4. - // Throws an error if it could not be parsed. - ipaddr.parse = function (string) { - if (ipaddr.IPv6.isValid(string)) { - return ipaddr.IPv6.parse(string); - } else if (ipaddr.IPv4.isValid(string)) { - return ipaddr.IPv4.parse(string); + IPv6.prototype.prefixLengthFromSubnetMask = function() { + var cidr, i, k, part, stop, zeros, zerotable; + zerotable = { + 0: 16, + 32768: 15, + 49152: 14, + 57344: 13, + 61440: 12, + 63488: 11, + 64512: 10, + 65024: 9, + 65280: 8, + 65408: 7, + 65472: 6, + 65504: 5, + 65520: 4, + 65528: 3, + 65532: 2, + 65534: 1, + 65535: 0 + }; + cidr = 0; + stop = false; + for (i = k = 7; k >= 0; i = k += -1) { + part = this.parts[i]; + if (part in zerotable) { + zeros = zerotable[part]; + if (stop && zeros !== 0) { + return null; + } + if (zeros !== 16) { + stop = true; + } + cidr += zeros; } else { - throw new Error('ipaddr: the address has neither IPv6 nor IPv4 format'); + return null; } + } + return 128 - cidr; }; - // Attempt to parse CIDR notation, first through IPv6 then IPv4. - // Throws an error if it could not be parsed. - ipaddr.parseCIDR = function (string) { - try { - return ipaddr.IPv6.parseCIDR(string); - } catch (e) { - try { - return ipaddr.IPv4.parseCIDR(string); - } catch (e2) { - throw new Error('ipaddr: the address has neither IPv6 nor IPv4 CIDR format'); - } - } - }; + return IPv6; - // Parse an address and return plain IPv4 address if it is an IPv4-mapped address - ipaddr.process = function (string) { - const addr = this.parse(string); + })(); - if (addr.kind() === 'ipv6' && addr.isIPv4MappedAddress()) { - return addr.toIPv4Address(); - } else { - return addr; - } - }; + ipv6Part = "(?:[0-9a-f]+::?)+"; - // An utility function to ease named range matching. See examples below. - // rangeList can contain both IPv4 and IPv6 subnet entries and will not throw errors - // on matching IPv4 addresses to IPv6 ranges or vice versa. - ipaddr.subnetMatch = function (address, rangeList, defaultName) { - let i, rangeName, rangeSubnets, subnet; + zoneIndex = "%[0-9a-z]{1,}"; - if (defaultName === undefined || defaultName === null) { - defaultName = 'unicast'; - } - - for (rangeName in rangeList) { - if (Object.prototype.hasOwnProperty.call(rangeList, rangeName)) { - rangeSubnets = rangeList[rangeName]; - // ECMA5 Array.isArray isn't available everywhere - if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) { - rangeSubnets = [rangeSubnets]; - } + ipv6Regexes = { + zoneIndex: new RegExp(zoneIndex, 'i'), + "native": new RegExp("^(::)?(" + ipv6Part + ")?([0-9a-f]+)?(::)?(" + zoneIndex + ")?$", 'i'), + transitional: new RegExp(("^((?:" + ipv6Part + ")|(?:::)(?:" + ipv6Part + ")?)") + (ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part) + ("(" + zoneIndex + ")?$"), 'i') + }; - for (i = 0; i < rangeSubnets.length; i++) { - subnet = rangeSubnets[i]; - if (address.kind() === subnet[0].kind() && address.match.apply(address, subnet)) { - return rangeName; - } - } - } + expandIPv6 = function(string, parts) { + var colonCount, lastColon, part, replacement, replacementCount, zoneId; + if (string.indexOf('::') !== string.lastIndexOf('::')) { + return null; + } + zoneId = (string.match(ipv6Regexes['zoneIndex']) || [])[0]; + if (zoneId) { + zoneId = zoneId.substring(1); + string = string.replace(/%.+$/, ''); + } + colonCount = 0; + lastColon = -1; + while ((lastColon = string.indexOf(':', lastColon + 1)) >= 0) { + colonCount++; + } + if (string.substr(0, 2) === '::') { + colonCount--; + } + if (string.substr(-2, 2) === '::') { + colonCount--; + } + if (colonCount > parts) { + return null; + } + replacementCount = parts - colonCount; + replacement = ':'; + while (replacementCount--) { + replacement += '0:'; + } + string = string.replace('::', replacement); + if (string[0] === ':') { + string = string.slice(1); + } + if (string[string.length - 1] === ':') { + string = string.slice(0, -1); + } + parts = (function() { + var k, len, ref, results; + ref = string.split(":"); + results = []; + for (k = 0, len = ref.length; k < len; k++) { + part = ref[k]; + results.push(parseInt(part, 16)); + } + return results; + })(); + return { + parts: parts, + zoneId: zoneId + }; + }; + + ipaddr.IPv6.parser = function(string) { + var addr, k, len, match, octet, octets, zoneId; + if (ipv6Regexes['native'].test(string)) { + return expandIPv6(string, 8); + } else if (match = string.match(ipv6Regexes['transitional'])) { + zoneId = match[6] || ''; + addr = expandIPv6(match[1].slice(0, -1) + zoneId, 6); + if (addr.parts) { + octets = [parseInt(match[2]), parseInt(match[3]), parseInt(match[4]), parseInt(match[5])]; + for (k = 0, len = octets.length; k < len; k++) { + octet = octets[k]; + if (!((0 <= octet && octet <= 255))) { + return null; + } } + addr.parts.push(octets[0] << 8 | octets[1]); + addr.parts.push(octets[2] << 8 | octets[3]); + return { + parts: addr.parts, + zoneId: addr.zoneId + }; + } + } + return null; + }; + + ipaddr.IPv4.isIPv4 = ipaddr.IPv6.isIPv6 = function(string) { + return this.parser(string) !== null; + }; + + ipaddr.IPv4.isValid = function(string) { + var e; + try { + new this(this.parser(string)); + return true; + } catch (error1) { + e = error1; + return false; + } + }; - return defaultName; - }; + ipaddr.IPv4.isValidFourPartDecimal = function(string) { + if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) { + return true; + } else { + return false; + } + }; - // Export for both the CommonJS and browser-like environment - if (typeof module !== 'undefined' && module.exports) { - module.exports = ipaddr; + ipaddr.IPv6.isValid = function(string) { + var addr, e; + if (typeof string === "string" && string.indexOf(":") === -1) { + return false; + } + try { + addr = this.parser(string); + new this(addr.parts, addr.zoneId); + return true; + } catch (error1) { + e = error1; + return false; + } + }; + + ipaddr.IPv4.parse = function(string) { + var parts; + parts = this.parser(string); + if (parts === null) { + throw new Error("ipaddr: string is not formatted like ip address"); + } + return new this(parts); + }; + + ipaddr.IPv6.parse = function(string) { + var addr; + addr = this.parser(string); + if (addr.parts === null) { + throw new Error("ipaddr: string is not formatted like ip address"); + } + return new this(addr.parts, addr.zoneId); + }; + + ipaddr.IPv4.parseCIDR = function(string) { + var maskLength, match, parsed; + if (match = string.match(/^(.+)\/(\d+)$/)) { + maskLength = parseInt(match[2]); + if (maskLength >= 0 && maskLength <= 32) { + parsed = [this.parse(match[1]), maskLength]; + Object.defineProperty(parsed, 'toString', { + value: function() { + return this.join('/'); + } + }); + return parsed; + } + } + throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range"); + }; + + ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) { + var filledOctetCount, j, octets; + prefix = parseInt(prefix); + if (prefix < 0 || prefix > 32) { + throw new Error('ipaddr: invalid IPv4 prefix length'); + } + octets = [0, 0, 0, 0]; + j = 0; + filledOctetCount = Math.floor(prefix / 8); + while (j < filledOctetCount) { + octets[j] = 255; + j++; + } + if (filledOctetCount < 4) { + octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8); + } + return new this(octets); + }; + + ipaddr.IPv4.broadcastAddressFromCIDR = function(string) { + var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; + try { + cidr = this.parseCIDR(string); + ipInterfaceOctets = cidr[0].toByteArray(); + subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); + octets = []; + i = 0; + while (i < 4) { + octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); + i++; + } + return new this(octets); + } catch (error1) { + error = error1; + throw new Error('ipaddr: the address does not have IPv4 CIDR format'); + } + }; + + ipaddr.IPv4.networkAddressFromCIDR = function(string) { + var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; + try { + cidr = this.parseCIDR(string); + ipInterfaceOctets = cidr[0].toByteArray(); + subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); + octets = []; + i = 0; + while (i < 4) { + octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); + i++; + } + return new this(octets); + } catch (error1) { + error = error1; + throw new Error('ipaddr: the address does not have IPv4 CIDR format'); + } + }; + + ipaddr.IPv6.parseCIDR = function(string) { + var maskLength, match, parsed; + if (match = string.match(/^(.+)\/(\d+)$/)) { + maskLength = parseInt(match[2]); + if (maskLength >= 0 && maskLength <= 128) { + parsed = [this.parse(match[1]), maskLength]; + Object.defineProperty(parsed, 'toString', { + value: function() { + return this.join('/'); + } + }); + return parsed; + } + } + throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range"); + }; + + ipaddr.isValid = function(string) { + return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string); + }; + + ipaddr.parse = function(string) { + if (ipaddr.IPv6.isValid(string)) { + return ipaddr.IPv6.parse(string); + } else if (ipaddr.IPv4.isValid(string)) { + return ipaddr.IPv4.parse(string); + } else { + throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format"); + } + }; + + ipaddr.parseCIDR = function(string) { + var e; + try { + return ipaddr.IPv6.parseCIDR(string); + } catch (error1) { + e = error1; + try { + return ipaddr.IPv4.parseCIDR(string); + } catch (error1) { + e = error1; + throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format"); + } + } + }; + + ipaddr.fromByteArray = function(bytes) { + var length; + length = bytes.length; + if (length === 4) { + return new ipaddr.IPv4(bytes); + } else if (length === 16) { + return new ipaddr.IPv6(bytes); + } else { + throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address"); + } + }; + ipaddr.process = function(string) { + var addr; + addr = this.parse(string); + if (addr.kind() === 'ipv6' && addr.isIPv4MappedAddress()) { + return addr.toIPv4Address(); } else { - root.ipaddr = ipaddr; + return addr; } + }; -}(this)); +}).call(this); diff --git a/node_modules/ipaddr.js/lib/ipaddr.js.d.ts b/node_modules/ipaddr.js/lib/ipaddr.js.d.ts index 62afab33..52174b6b 100644 --- a/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +++ b/node_modules/ipaddr.js/lib/ipaddr.js.d.ts @@ -1,7 +1,6 @@ declare module "ipaddr.js" { - type IPvXRangeDefaults = 'unicast' | 'unspecified' | 'multicast' | 'linkLocal' | 'loopback' | 'reserved' | 'benchmarking' | 'amt'; - type IPv4Range = IPvXRangeDefaults | 'broadcast' | 'carrierGradeNat' | 'private' | 'as112'; - type IPv6Range = IPvXRangeDefaults | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'as112v6' | 'orchid2' | 'droneRemoteIdProtocolEntityTags'; + type IPv4Range = 'unicast' | 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved'; + type IPv6Range = 'unicast' | 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'reserved'; interface RangeList { [name: string]: [T, number] | [T, number][]; @@ -16,20 +15,19 @@ declare module "ipaddr.js" { } namespace Address { - export function fromByteArray(bytes: number[]): IPv4 | IPv6; export function isValid(addr: string): boolean; - export function isValidCIDR(addr: string): boolean; + export function fromByteArray(bytes: number[]): IPv4 | IPv6; export function parse(addr: string): IPv4 | IPv6; export function parseCIDR(mask: string): [IPv4 | IPv6, number]; export function process(addr: string): IPv4 | IPv6; - export function subnetMatch(addr: IPv4 | IPv6, rangeList: RangeList, defaultName?: string): string; + export function subnetMatch(addr: IPv4, rangeList: RangeList, defaultName?: string): string; + export function subnetMatch(addr: IPv6, rangeList: RangeList, defaultName?: string): string; export class IPv4 extends IP { static broadcastAddressFromCIDR(addr: string): IPv4; static isIPv4(addr: string): boolean; - static isValid(addr: string): boolean; - static isValidCIDR(addr: string): boolean; static isValidFourPartDecimal(addr: string): boolean; + static isValid(addr: string): boolean; static networkAddressFromCIDR(addr: string): IPv4; static parse(addr: string): IPv4; static parseCIDR(addr: string): [IPv4, number]; @@ -38,7 +36,8 @@ declare module "ipaddr.js" { octets: number[] kind(): 'ipv4'; - match(what: IPv4 | IPv6 | [IPv4 | IPv6, number], bits?: number): boolean; + match(addr: IPv4, bits: number): boolean; + match(mask: [IPv4, number]): boolean; range(): IPv4Range; subnetMatch(rangeList: RangeList, defaultName?: string): string; toIPv4MappedAddress(): IPv6; @@ -48,8 +47,6 @@ declare module "ipaddr.js" { static broadcastAddressFromCIDR(addr: string): IPv6; static isIPv6(addr: string): boolean; static isValid(addr: string): boolean; - static isValidCIDR(addr: string): boolean; - static networkAddressFromCIDR(addr: string): IPv6; static parse(addr: string): IPv6; static parseCIDR(addr: string): [IPv6, number]; static subnetMaskFromPrefixLength(prefix: number): IPv6; @@ -59,11 +56,11 @@ declare module "ipaddr.js" { isIPv4MappedAddress(): boolean; kind(): 'ipv6'; - match(what: IPv4 | IPv6 | [IPv4 | IPv6, number], bits?: number): boolean; + match(addr: IPv6, bits: number): boolean; + match(mask: [IPv6, number]): boolean; range(): IPv6Range; subnetMatch(rangeList: RangeList, defaultName?: string): string; toIPv4Address(): IPv4; - toRFC5952String(): string; } } diff --git a/node_modules/ipaddr.js/package.json b/node_modules/ipaddr.js/package.json index eea09c75..f4d35475 100644 --- a/node_modules/ipaddr.js/package.json +++ b/node_modules/ipaddr.js/package.json @@ -1,24 +1,22 @@ { "name": "ipaddr.js", "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.", - "version": "2.2.0", + "version": "1.9.1", "author": "whitequark ", "directories": { "lib": "./lib" }, "dependencies": {}, "devDependencies": { - "eslint": "^8.57.0", - "uglify-es": "*" + "coffee-script": "~1.12.6", + "nodeunit": "^0.11.3", + "uglify-js": "~3.0.19" }, "scripts": { - "lint": "npx eslint lib", - "lintfix": "npx eslint --fix lib test", - "build": "npx uglifyjs --compress --mangle --wrap=window -o ipaddr.min.js lib/ipaddr.js", - "test": "node --test" + "test": "cake build test" }, "files": [ - "lib", + "lib/", "LICENSE", "ipaddr.min.js" ], @@ -30,7 +28,7 @@ "repository": "git://github.com/whitequark/ipaddr.js", "main": "./lib/ipaddr.js", "engines": { - "node": ">= 10" + "node": ">= 0.10" }, "license": "MIT", "types": "./lib/ipaddr.js.d.ts" diff --git a/node_modules/jest-worker/.DS_Store b/node_modules/jest-worker/.DS_Store deleted file mode 100644 index 3fbb5b12..00000000 Binary files a/node_modules/jest-worker/.DS_Store and /dev/null differ diff --git a/node_modules/jest-worker/LICENSE b/node_modules/jest-worker/LICENSE index b96dcb04..b93be905 100644 --- a/node_modules/jest-worker/LICENSE +++ b/node_modules/jest-worker/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Facebook, Inc. and its affiliates. +Copyright (c) Meta Platforms, Inc. and affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/jest-worker/README.md b/node_modules/jest-worker/README.md index 0727a04b..f9e1131c 100644 --- a/node_modules/jest-worker/README.md +++ b/node_modules/jest-worker/README.md @@ -2,7 +2,7 @@ Module for executing heavy tasks under forked processes in parallel, by providing a `Promise` based interface, minimum overhead, and bound workers. -The module works by providing an absolute path of the module to be loaded in all forked processes. Files relative to a node module are also accepted. All methods are exposed on the parent process as promises, so they can be `await`'ed. Child (worker) methods can either be synchronous or asynchronous. +The module works by providing an absolute path of the module to be loaded in all forked processes. All methods are exposed on the parent process as promises, so they can be `await`'ed. Child (worker) methods can either be synchronous or asynchronous. The module also implements support for bound workers. Binding a worker means that, based on certain parameters, the same task will always be executed by the same worker. The way bound workers work is by using the returned string of the `computeWorkerKey` method. If the string was used before for a task, the call will be queued to the related worker that processed the task earlier; if not, it will be executed by the first available worker, then sticked to the worker that executed it; so the next time it will be processed by the same worker. If you have no preference on the worker executing the task, but you have defined a `computeWorkerKey` method because you want _some_ of the tasks to be sticked, you can return `null` from it. @@ -11,7 +11,7 @@ The list of exposed methods can be explicitly provided via the `exposedMethods` ## Install ```sh -$ yarn add jest-worker +yarn add jest-worker ``` ## Example @@ -20,11 +20,11 @@ This example covers the minimal usage: ### File `parent.js` -```javascript +```js import {Worker as JestWorker} from 'jest-worker'; async function main() { - const worker = new JestWorker(require.resolve('./Worker')); + const worker = new JestWorker(require.resolve('./worker')); const result = await worker.hello('Alice'); // "Hello, Alice" } @@ -33,65 +33,91 @@ main(); ### File `worker.js` -```javascript +```js export function hello(param) { - return 'Hello, ' + param; + return `Hello, ${param}`; } ``` ## Experimental worker -Node 10 shipped with [worker-threads](https://nodejs.org/api/worker_threads.html), a "threading API" that uses SharedArrayBuffers to communicate between the main process and its child threads. This experimental Node feature can significantly improve the communication time between parent and child processes in `jest-worker`. +Node shipped with [`worker_threads`](https://nodejs.org/api/worker_threads.html), a "threading API" that uses `SharedArrayBuffers` to communicate between the main process and its child threads. This feature can significantly improve the communication time between parent and child processes in `jest-worker`. -Since `worker_threads` are considered experimental in Node, you have to opt-in to this behavior by passing `enableWorkerThreads: true` when instantiating the worker. While the feature was unflagged in Node 11.7.0, you'll need to run the Node process with the `--experimental-worker` flag for Node 10. +To use `worker_threads` instead of default `child_process` you have to pass `enableWorkerThreads: true` when instantiating the worker. ## API The `Worker` export is a constructor that is initialized by passing the worker path, plus an options object. -### `workerPath: string` (required) +### `workerPath: string | URL` (required) -Node module name or absolute path of the file to be loaded in the child processes. Use `require.resolve` to transform a relative path into an absolute one. +Node module name or absolute path or file URL of the file to be loaded in the child processes. You can use `require.resolve` to transform a relative path into an absolute one. ### `options: Object` (optional) -#### `exposedMethods: $ReadOnlyArray` (optional) +#### `computeWorkerKey: (method: string, ...args: Array) => string | null` (optional) + +Every time a method exposed via the API is called, `computeWorkerKey` is also called in order to bound the call to a worker. This is useful for workers that are able to cache the result or part of it. You bound calls to a worker by making `computeWorkerKey` return the same identifier for all different calls. If you do not want to bind the call to any worker, return `null`. + +The callback you provide is called with the method name, plus all the rest of the arguments of the call. Thus, you have full control to decide what to return. Check a practical example on bound workers under the "bound worker usage" section. + +By default, no process is bound to any worker. + +#### `enableWorkerThreads: boolean` (optional) + +By default, `jest-worker` will use `child_process` threads to spawn new Node.js processes. If you prefer [`worker_threads`](https://nodejs.org/api/worker_threads.html) instead, pass `enableWorkerThreads: true`. + +#### `exposedMethods: ReadonlyArray` (optional) List of method names that can be called on the child processes from the parent process. You cannot expose any method named like a public `Worker` method, or starting with `_`. If you use method auto-discovery, then these methods will not be exposed, even if they exist. -#### `numWorkers: number` (optional) +#### `forkOptions: ForkOptions` (optional) -Amount of workers to spawn. Defaults to the number of CPUs minus 1. +Allow customizing all options passed to `child_process.fork`. By default, some values are set (`cwd`, `env`, `execArgv` and `serialization`), but you can override them and customize the rest. For a list of valid values, check [the Node documentation](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options). + +#### `idleMemoryLimit: number` (optional) + +Specifies the memory limit for workers before they are recycled and is primarily a work-around for [this issue](https://github.com/jestjs/jest/issues/11956); + +After the worker has executed a task the memory usage of it is checked. If it exceeds the value specified the worker is killed and restarted. If no limit is set this process does not occur. The limit can be specified in 2 ways: + +- `<= 1` - The value is assumed to be a percentage of system memory. So 0.5 sets the memory limit of the worker to half of the total system memory +- `\> 1` - Assumed to be a fixed byte value. Because of the previous rule if you wanted a value of 1 byte (I don't know why) you could use `1.1`. #### `maxRetries: number` (optional) Maximum amount of times that a dead child can be re-spawned, per call. Defaults to `3`, pass `Infinity` to allow endless retries. -#### `forkOptions: Object` (optional) +#### `numWorkers: number` (optional) + +Amount of workers to spawn. Defaults to the number of CPUs minus 1. -Allow customizing all options passed to `childProcess.fork`. By default, some values are set (`cwd`, `env` and `execArgv`), but you can override them and customize the rest. For a list of valid values, check [the Node documentation](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options). +#### `resourceLimits: ResourceLimits` (optional) -#### `computeWorkerKey: (method: string, ...args: Array) => ?string` (optional) +The `resourceLimits` option which will be passed to `worker_threads` workers. -Every time a method exposed via the API is called, `computeWorkerKey` is also called in order to bound the call to a worker. This is useful for workers that are able to cache the result or part of it. You bound calls to a worker by making `computeWorkerKey` return the same identifier for all different calls. If you do not want to bind the call to any worker, return `null`. +#### `silent: Boolean` (optional) -The callback you provide is called with the method name, plus all the rest of the arguments of the call. Thus, you have full control to decide what to return. Check a practical example on bound workers under the "bound worker usage" section. +Set to false for `stdout` and `stderr` to be logged to console. -By default, no process is bound to any worker. +By default this is true. -#### `setupArgs: Array` (optional) +#### `setupArgs: Array` (optional) The arguments that will be passed to the `setup` method during initialization. -#### `WorkerPool: (workerPath: string, options?: WorkerPoolOptions) => WorkerPoolInterface` (optional) +#### `taskQueue: TaskQueue` (optional) -Provide a custom worker pool to be used for spawning child processes. By default, Jest will use a node thread pool if available and fall back to child process threads. +The task queue defines in which order tasks (method calls) are processed by the workers. `jest-worker` ships with a `FifoQueue` and `PriorityQueue`: -#### `enableWorkerThreads: boolean` (optional) +- `FifoQueue` (default): Processes the method calls (tasks) in the call order. +- `PriorityQueue`: Processes the method calls by a computed priority in natural ordering (lower priorities first). Tasks with the same priority are processed in any order (FIFO not guaranteed). The constructor accepts a single argument, the function that is passed the name of the called function and the arguments and returns a numerical value for the priority: `new require('jest-worker').PriorityQueue((method, filename) => filename.length)`. + +#### `WorkerPool: new (workerPath: string, options?: WorkerPoolOptions) => WorkerPoolInterface` (optional) -`jest-worker` will automatically detect if `worker_threads` are available, but will not use them unless passed `enableWorkerThreads: true`. +Provide a custom WorkerPool class to be used for spawning child processes. -### `workerSchedulingPolicy: 'round-robin' | 'in-order'` (optional) +#### `workerSchedulingPolicy: 'round-robin' | 'in-order'` (optional) Specifies the policy how tasks are assigned to workers if multiple workers are _idle_: @@ -100,13 +126,6 @@ Specifies the policy how tasks are assigned to workers if multiple workers are _ Tasks are always assigned to the first free worker as soon as tasks start to queue up. The scheduling policy does not define the task scheduling which is always first-in, first-out. -### `taskQueue`: TaskQueue` (optional) - -The task queue defines in which order tasks (method calls) are processed by the workers. `jest-worker` ships with a `FifoQueue` and `PriorityQueue`: - -- `FifoQueue` (default): Processes the method calls (tasks) in the call order. -- `PriorityQueue`: Processes the method calls by a computed priority in natural ordering (lower priorities first). Tasks with the same priority are processed in any order (FIFO not guaranteed). The constructor accepts a single argument, the function that is passed the name of the called function and the arguments and returns a numerical value for the priority: `new require('jest-worker').PriorityQueue((method, filename) => filename.length)`. - ## JestWorker ### Methods @@ -121,11 +140,17 @@ Returns a `ReadableStream` where the standard output of all workers is piped. No Returns a `ReadableStream` where the standard error of all workers is piped. Note that the `silent` option of the child workers must be set to `true` to make it work. This is the default set by `jest-worker`, but keep it in mind when overriding options through `forkOptions`. +#### `start()` + +Starts up every worker and calls their `setup` function, if it exists. Returns a `Promise` which resolves when all workers are running and have completed their `setup`. + +This is useful if you want to start up all your workers eagerly before they are used to call any other functions. + #### `end()` Finishes the workers by killing all workers. No further calls can be done to the `Worker` instance. -Returns a Promise that resolves with `{ forceExited: boolean }` once all workers are dead. If `forceExited` is `true`, at least one of the workers did not exit gracefully, which likely happened because it executed a leaky task that left handles open. This should be avoided, force exiting workers is a last resort to prevent creating lots of orphans. +Returns a `Promise` that resolves with `{ forceExited: boolean }` once all workers are dead. If `forceExited` is `true`, at least one of the workers did not exit gracefully, which likely happened because it executed a leaky task that left handles open. This should be avoided, force exiting workers is a last resort to prevent creating lots of orphans. **Note:** @@ -135,7 +160,7 @@ Consider deliberately leaving this Promise floating (unhandled resolution). Afte ### Worker IDs -Each worker has a unique id (index that starts with `1`), which is available inside the worker as `process.env.JEST_WORKER_ID`. +Each worker has a unique id (index that starts with `'1'`), which is available inside the worker as `process.env.JEST_WORKER_ID`. ## Setting up and tearing down the child process @@ -152,11 +177,11 @@ This example covers the standard usage: ### File `parent.js` -```javascript +```js import {Worker as JestWorker} from 'jest-worker'; async function main() { - const myWorker = new JestWorker(require.resolve('./Worker'), { + const myWorker = new JestWorker(require.resolve('./worker'), { exposedMethods: ['foo', 'bar', 'getWorkerId'], numWorkers: 4, }); @@ -176,13 +201,13 @@ main(); ### File `worker.js` -```javascript +```js export function foo(param) { - return 'Hello from foo: ' + param; + return `Hello from foo: ${param}`; } export function bar(param) { - return 'Hello from bar: ' + param; + return `Hello from bar: ${param}`; } export function getWorkerId() { @@ -196,11 +221,11 @@ This example covers the usage with a `computeWorkerKey` method: ### File `parent.js` -```javascript +```js import {Worker as JestWorker} from 'jest-worker'; async function main() { - const myWorker = new JestWorker(require.resolve('./Worker'), { + const myWorker = new JestWorker(require.resolve('./worker'), { computeWorkerKey: (method, filename) => filename, }); @@ -226,7 +251,7 @@ main(); ### File `worker.js` -```javascript +```js import babel from '@babel/core'; const cache = Object.create(null); diff --git a/node_modules/jest-worker/build/.DS_Store b/node_modules/jest-worker/build/.DS_Store deleted file mode 100644 index 2ee44f92..00000000 Binary files a/node_modules/jest-worker/build/.DS_Store and /dev/null differ diff --git a/node_modules/jest-worker/build/Farm.d.ts b/node_modules/jest-worker/build/Farm.d.ts deleted file mode 100644 index 3fe79d01..00000000 --- a/node_modules/jest-worker/build/Farm.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -import { FarmOptions, PromiseWithCustomMessage, TaskQueue } from './types'; -export default class Farm { - private _numOfWorkers; - private _callback; - private readonly _computeWorkerKey; - private readonly _workerSchedulingPolicy; - private readonly _cacheKeys; - private readonly _locks; - private _offset; - private readonly _taskQueue; - constructor(_numOfWorkers: number, _callback: Function, options?: { - computeWorkerKey?: FarmOptions['computeWorkerKey']; - workerSchedulingPolicy?: FarmOptions['workerSchedulingPolicy']; - taskQueue?: TaskQueue; - }); - doWork(method: string, ...args: Array): PromiseWithCustomMessage; - private _process; - private _push; - private _getNextWorkerOffset; - private _lock; - private _unlock; - private _isLocked; -} diff --git a/node_modules/jest-worker/build/Farm.js b/node_modules/jest-worker/build/Farm.js index e29daf5e..bb9accf6 100644 --- a/node_modules/jest-worker/build/Farm.js +++ b/node_modules/jest-worker/build/Farm.js @@ -4,114 +4,78 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - var _FifoQueue = _interopRequireDefault(require('./FifoQueue')); - var _types = require('./types'); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ class Farm { + _computeWorkerKey; + _workerSchedulingPolicy; + _cacheKeys = Object.create(null); + _locks = []; + _offset = 0; + _taskQueue; constructor(_numOfWorkers, _callback, options = {}) { - var _options$workerSchedu, _options$taskQueue; - - _defineProperty(this, '_computeWorkerKey', void 0); - - _defineProperty(this, '_workerSchedulingPolicy', void 0); - - _defineProperty(this, '_cacheKeys', Object.create(null)); - - _defineProperty(this, '_locks', []); - - _defineProperty(this, '_offset', 0); - - _defineProperty(this, '_taskQueue', void 0); - this._numOfWorkers = _numOfWorkers; this._callback = _callback; this._computeWorkerKey = options.computeWorkerKey; this._workerSchedulingPolicy = - (_options$workerSchedu = options.workerSchedulingPolicy) !== null && - _options$workerSchedu !== void 0 - ? _options$workerSchedu - : 'round-robin'; - this._taskQueue = - (_options$taskQueue = options.taskQueue) !== null && - _options$taskQueue !== void 0 - ? _options$taskQueue - : new _FifoQueue.default(); + options.workerSchedulingPolicy ?? 'round-robin'; + this._taskQueue = options.taskQueue ?? new _FifoQueue.default(); } - doWork(method, ...args) { const customMessageListeners = new Set(); - const addCustomMessageListener = listener => { customMessageListeners.add(listener); return () => { customMessageListeners.delete(listener); }; }; - const onCustomMessage = message => { customMessageListeners.forEach(listener => listener(message)); }; - - const promise = new Promise( // Bind args to this function so it won't reference to the parent scope. + const promise = new Promise( + // Bind args to this function so it won't reference to the parent scope. // This prevents a memory leak in v8, because otherwise the function will - // retaine args for the closure. + // retain args for the closure. ((args, resolve, reject) => { const computeWorkerKey = this._computeWorkerKey; const request = [_types.CHILD_MESSAGE_CALL, false, method, args]; let worker = null; let hash = null; - if (computeWorkerKey) { hash = computeWorkerKey.call(this, method, ...args); worker = hash == null ? null : this._cacheKeys[hash]; } - const onStart = worker => { if (hash != null) { this._cacheKeys[hash] = worker; } }; - const onEnd = (error, result) => { customMessageListeners.clear(); - if (error) { reject(error); } else { resolve(result); } }; - const task = { onCustomMessage, onEnd, onStart, request }; - if (worker) { this._taskQueue.enqueue(task, worker.getWorkerId()); - this._process(worker.getWorkerId()); } else { this._push(task); @@ -121,38 +85,32 @@ class Farm { promise.UNSTABLE_onCustomMessage = addCustomMessageListener; return promise; } - _process(workerId) { if (this._isLocked(workerId)) { return this; } - const task = this._taskQueue.dequeue(workerId); - if (!task) { return this; } - if (task.request[1]) { throw new Error('Queue implementation returned processed task'); - } // Reference the task object outside so it won't be retained by onEnd, + } + + // Reference the task object outside so it won't be retained by onEnd, // and other properties of the task object, such as task.request can be // garbage collected. - - const taskOnEnd = task.onEnd; - + let taskOnEnd = task.onEnd; const onEnd = (error, result) => { - taskOnEnd(error, result); - + if (taskOnEnd) { + taskOnEnd(error, result); + } + taskOnEnd = null; this._unlock(workerId); - this._process(workerId); }; - task.request[1] = true; - this._lock(workerId); - this._callback( workerId, task.request, @@ -160,47 +118,35 @@ class Farm { onEnd, task.onCustomMessage ); - return this; } - _push(task) { this._taskQueue.enqueue(task); - const offset = this._getNextWorkerOffset(); - for (let i = 0; i < this._numOfWorkers; i++) { this._process((offset + i) % this._numOfWorkers); - if (task.request[1]) { break; } } - return this; } - _getNextWorkerOffset() { switch (this._workerSchedulingPolicy) { case 'in-order': return 0; - case 'round-robin': return this._offset++; } } - _lock(workerId) { this._locks[workerId] = true; } - _unlock(workerId) { this._locks[workerId] = false; } - _isLocked(workerId) { return this._locks[workerId]; } } - exports.default = Farm; diff --git a/node_modules/jest-worker/build/FifoQueue.d.ts b/node_modules/jest-worker/build/FifoQueue.d.ts deleted file mode 100644 index d78e9e2c..00000000 --- a/node_modules/jest-worker/build/FifoQueue.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -import type { QueueChildMessage, TaskQueue } from './types'; -/** - * First-in, First-out task queue that manages a dedicated pool - * for each worker as well as a shared queue. The FIFO ordering is guaranteed - * across the worker specific and shared queue. - */ -export default class FifoQueue implements TaskQueue { - private _workerQueues; - private _sharedQueue; - enqueue(task: QueueChildMessage, workerId?: number): void; - dequeue(workerId: number): QueueChildMessage | null; -} diff --git a/node_modules/jest-worker/build/FifoQueue.js b/node_modules/jest-worker/build/FifoQueue.js index bb52e077..1831e024 100644 --- a/node_modules/jest-worker/build/FifoQueue.js +++ b/node_modules/jest-worker/build/FifoQueue.js @@ -4,23 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -32,140 +17,73 @@ function _defineProperty(obj, key, value) { * across the worker specific and shared queue. */ class FifoQueue { - constructor() { - _defineProperty(this, '_workerQueues', []); - - _defineProperty(this, '_sharedQueue', new InternalQueue()); - } - + _workerQueues = []; + _sharedQueue = new InternalQueue(); enqueue(task, workerId) { if (workerId == null) { this._sharedQueue.enqueue(task); - return; } - let workerQueue = this._workerQueues[workerId]; - if (workerQueue == null) { workerQueue = this._workerQueues[workerId] = new InternalQueue(); } - const sharedTop = this._sharedQueue.peekLast(); - const item = { previousSharedTask: sharedTop, task }; workerQueue.enqueue(item); } - dequeue(workerId) { - var _this$_workerQueues$w, _workerTop$previousSh, _workerTop$previousSh2; - - const workerTop = - (_this$_workerQueues$w = this._workerQueues[workerId]) === null || - _this$_workerQueues$w === void 0 - ? void 0 - : _this$_workerQueues$w.peek(); + const workerTop = this._workerQueues[workerId]?.peek(); const sharedTaskIsProcessed = - (_workerTop$previousSh = - workerTop === null || workerTop === void 0 - ? void 0 - : (_workerTop$previousSh2 = workerTop.previousSharedTask) === null || - _workerTop$previousSh2 === void 0 - ? void 0 - : _workerTop$previousSh2.request[1]) !== null && - _workerTop$previousSh !== void 0 - ? _workerTop$previousSh - : true; // Process the top task from the shared queue if - // - there's no task in the worker specific queue or - // - if the non-worker-specific task after which this worker specifif task - // hasn been queued wasn't processed yet + workerTop?.previousSharedTask?.request[1] ?? true; + // Process the top task from the shared queue if + // - there's no task in the worker specific queue or + // - if the non-worker-specific task after which this worker specific task + // has been queued wasn't processed yet if (workerTop != null && sharedTaskIsProcessed) { - var _this$_workerQueues$w2, - _this$_workerQueues$w3, - _this$_workerQueues$w4; - - return (_this$_workerQueues$w2 = - (_this$_workerQueues$w3 = this._workerQueues[workerId]) === null || - _this$_workerQueues$w3 === void 0 - ? void 0 - : (_this$_workerQueues$w4 = _this$_workerQueues$w3.dequeue()) === - null || _this$_workerQueues$w4 === void 0 - ? void 0 - : _this$_workerQueues$w4.task) !== null && - _this$_workerQueues$w2 !== void 0 - ? _this$_workerQueues$w2 - : null; + return this._workerQueues[workerId]?.dequeue()?.task ?? null; } - return this._sharedQueue.dequeue(); } } - exports.default = FifoQueue; - /** * FIFO queue for a single worker / shared queue. */ class InternalQueue { - constructor() { - _defineProperty(this, '_head', null); - - _defineProperty(this, '_last', null); - } - + _head = null; + _last = null; enqueue(value) { const item = { next: null, value }; - if (this._last == null) { this._head = item; } else { this._last.next = item; } - this._last = item; } - dequeue() { if (this._head == null) { return null; } - const item = this._head; this._head = item.next; - if (this._head == null) { this._last = null; } - return item.value; } - peek() { - var _this$_head$value, _this$_head; - - return (_this$_head$value = - (_this$_head = this._head) === null || _this$_head === void 0 - ? void 0 - : _this$_head.value) !== null && _this$_head$value !== void 0 - ? _this$_head$value - : null; + return this._head?.value ?? null; } - peekLast() { - var _this$_last$value, _this$_last; - - return (_this$_last$value = - (_this$_last = this._last) === null || _this$_last === void 0 - ? void 0 - : _this$_last.value) !== null && _this$_last$value !== void 0 - ? _this$_last$value - : null; + return this._last?.value ?? null; } } diff --git a/node_modules/jest-worker/build/PriorityQueue.d.ts b/node_modules/jest-worker/build/PriorityQueue.d.ts deleted file mode 100644 index d6bcf4cf..00000000 --- a/node_modules/jest-worker/build/PriorityQueue.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -import type { QueueChildMessage, TaskQueue } from './types'; -export declare type ComputeTaskPriorityCallback = (method: string, ...args: Array) => number; -declare type QueueItem = { - task: QueueChildMessage; - priority: number; -}; -/** - * Priority queue that processes tasks in natural ordering (lower priority first) - * accoridng to the priority computed by the function passed in the constructor. - * - * FIFO ordering isn't guaranteed for tasks with the same priority. - * - * Worker specific tasks with the same priority as a non-worker specific task - * are always processed first. - */ -export default class PriorityQueue implements TaskQueue { - private _computePriority; - private _queue; - private _sharedQueue; - constructor(_computePriority: ComputeTaskPriorityCallback); - enqueue(task: QueueChildMessage, workerId?: number): void; - _enqueue(task: QueueChildMessage, queue: MinHeap): void; - dequeue(workerId: number): QueueChildMessage | null; - _getWorkerQueue(workerId: number): MinHeap; -} -declare type HeapItem = { - priority: number; -}; -declare class MinHeap { - private _heap; - peek(): TItem | null; - add(item: TItem): void; - poll(): TItem | null; -} -export {}; diff --git a/node_modules/jest-worker/build/PriorityQueue.js b/node_modules/jest-worker/build/PriorityQueue.js index 6a55b598..6218a8ea 100644 --- a/node_modules/jest-worker/build/PriorityQueue.js +++ b/node_modules/jest-worker/build/PriorityQueue.js @@ -4,23 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -28,7 +13,7 @@ function _defineProperty(obj, key, value) { /** * Priority queue that processes tasks in natural ordering (lower priority first) - * accoridng to the priority computed by the function passed in the constructor. + * according to the priority computed by the function passed in the constructor. * * FIFO ordering isn't guaranteed for tasks with the same priority. * @@ -36,24 +21,19 @@ function _defineProperty(obj, key, value) { * are always processed first. */ class PriorityQueue { + _queue = []; + _sharedQueue = new MinHeap(); constructor(_computePriority) { - _defineProperty(this, '_queue', []); - - _defineProperty(this, '_sharedQueue', new MinHeap()); - this._computePriority = _computePriority; } - enqueue(task, workerId) { if (workerId == null) { this._enqueue(task, this._sharedQueue); } else { const queue = this._getWorkerQueue(workerId); - this._enqueue(task, queue); } } - _enqueue(task, queue) { const item = { priority: this._computePriority(task.request[2], ...task.request[3]), @@ -61,128 +41,97 @@ class PriorityQueue { }; queue.add(item); } - dequeue(workerId) { const workerQueue = this._getWorkerQueue(workerId); - const workerTop = workerQueue.peek(); + const sharedTop = this._sharedQueue.peek(); - const sharedTop = this._sharedQueue.peek(); // use the task from the worker queue if there's no task in the shared queue + // use the task from the worker queue if there's no task in the shared queue // or if the priority of the worker queue is smaller or equal to the // priority of the top task in the shared queue. The tasks of the // worker specific queue are preferred because no other worker can pick this // specific task up. - if ( sharedTop == null || (workerTop != null && workerTop.priority <= sharedTop.priority) ) { - var _workerQueue$poll$tas, _workerQueue$poll; - - return (_workerQueue$poll$tas = - (_workerQueue$poll = workerQueue.poll()) === null || - _workerQueue$poll === void 0 - ? void 0 - : _workerQueue$poll.task) !== null && _workerQueue$poll$tas !== void 0 - ? _workerQueue$poll$tas - : null; + return workerQueue.poll()?.task ?? null; } - return this._sharedQueue.poll().task; } - _getWorkerQueue(workerId) { let queue = this._queue[workerId]; - if (queue == null) { queue = this._queue[workerId] = new MinHeap(); } - return queue; } } - exports.default = PriorityQueue; - class MinHeap { - constructor() { - _defineProperty(this, '_heap', []); - } - + _heap = []; peek() { - var _this$_heap$; - - return (_this$_heap$ = this._heap[0]) !== null && _this$_heap$ !== void 0 - ? _this$_heap$ - : null; + return this._heap[0] ?? null; } - add(item) { const nodes = this._heap; nodes.push(item); - if (nodes.length === 1) { return; } + let currentIndex = nodes.length - 1; - let currentIndex = nodes.length - 1; // Bubble up the added node as long as the parent is bigger - + // Bubble up the added node as long as the parent is bigger while (currentIndex > 0) { const parentIndex = Math.floor((currentIndex + 1) / 2) - 1; const parent = nodes[parentIndex]; - if (parent.priority <= item.priority) { break; } - nodes[currentIndex] = parent; nodes[parentIndex] = item; currentIndex = parentIndex; } } - poll() { const nodes = this._heap; const result = nodes[0]; - const lastElement = nodes.pop(); // heap was empty or removed the last element + const lastElement = nodes.pop(); + // heap was empty or removed the last element if (result == null || nodes.length === 0) { - return result !== null && result !== void 0 ? result : null; + return result ?? null; } - let index = 0; - nodes[0] = - lastElement !== null && lastElement !== void 0 ? lastElement : null; + nodes[0] = lastElement ?? null; const element = nodes[0]; - while (true) { let swapIndex = null; const rightChildIndex = (index + 1) * 2; const leftChildIndex = rightChildIndex - 1; const rightChild = nodes[rightChildIndex]; - const leftChild = nodes[leftChildIndex]; // if the left child is smaller, swap with the left + const leftChild = nodes[leftChildIndex]; + // if the left child is smaller, swap with the left if (leftChild != null && leftChild.priority < element.priority) { swapIndex = leftChildIndex; - } // If the right child is smaller or the right child is smaller than the left - // then swap with the right child + } + // If the right child is smaller or the right child is smaller than the left + // then swap with the right child if ( rightChild != null && rightChild.priority < (swapIndex == null ? element : leftChild).priority ) { swapIndex = rightChildIndex; } - if (swapIndex == null) { break; } - nodes[index] = nodes[swapIndex]; nodes[swapIndex] = element; index = swapIndex; } - return result; } } diff --git a/node_modules/jest-worker/build/WorkerPool.d.ts b/node_modules/jest-worker/build/WorkerPool.d.ts deleted file mode 100644 index 9f13ff7d..00000000 --- a/node_modules/jest-worker/build/WorkerPool.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -import BaseWorkerPool from './base/BaseWorkerPool'; -import type { ChildMessage, OnCustomMessage, OnEnd, OnStart, WorkerInterface, WorkerOptions, WorkerPoolInterface } from './types'; -declare class WorkerPool extends BaseWorkerPool implements WorkerPoolInterface { - send(workerId: number, request: ChildMessage, onStart: OnStart, onEnd: OnEnd, onCustomMessage: OnCustomMessage): void; - createWorker(workerOptions: WorkerOptions): WorkerInterface; -} -export default WorkerPool; diff --git a/node_modules/jest-worker/build/WorkerPool.js b/node_modules/jest-worker/build/WorkerPool.js index b19a679e..b1e439d2 100644 --- a/node_modules/jest-worker/build/WorkerPool.js +++ b/node_modules/jest-worker/build/WorkerPool.js @@ -4,46 +4,31 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - var _BaseWorkerPool = _interopRequireDefault(require('./base/BaseWorkerPool')); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -const canUseWorkerThreads = () => { - try { - require('worker_threads'); - - return true; - } catch { - return false; - } -}; class WorkerPool extends _BaseWorkerPool.default { send(workerId, request, onStart, onEnd, onCustomMessage) { + this.restartWorkerIfShutDown(workerId); this.getWorkerById(workerId).send(request, onStart, onEnd, onCustomMessage); } - createWorker(workerOptions) { let Worker; - - if (this._options.enableWorkerThreads && canUseWorkerThreads()) { + if (this._options.enableWorkerThreads) { Worker = require('./workers/NodeThreadsWorker').default; } else { Worker = require('./workers/ChildProcessWorker').default; } - return new Worker(workerOptions); } } - var _default = WorkerPool; exports.default = _default; diff --git a/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts b/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts deleted file mode 100644 index 311309e6..00000000 --- a/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/// -import { PoolExitResult, WorkerInterface, WorkerOptions, WorkerPoolOptions } from '../types'; -export default class BaseWorkerPool { - private readonly _stderr; - private readonly _stdout; - protected readonly _options: WorkerPoolOptions; - private readonly _workers; - constructor(workerPath: string, options: WorkerPoolOptions); - getStderr(): NodeJS.ReadableStream; - getStdout(): NodeJS.ReadableStream; - getWorkers(): Array; - getWorkerById(workerId: number): WorkerInterface; - createWorker(_workerOptions: WorkerOptions): WorkerInterface; - end(): Promise; -} diff --git a/node_modules/jest-worker/build/base/BaseWorkerPool.js b/node_modules/jest-worker/build/base/BaseWorkerPool.js index 491deb8b..b49d061d 100644 --- a/node_modules/jest-worker/build/base/BaseWorkerPool.js +++ b/node_modules/jest-worker/build/base/BaseWorkerPool.js @@ -4,120 +4,48 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - -function path() { - const data = _interopRequireWildcard(require('path')); - - path = function () { - return data; - }; - - return data; -} - function _mergeStream() { const data = _interopRequireDefault(require('merge-stream')); - _mergeStream = function () { return data; }; - return data; } - var _types = require('../types'); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - -function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== 'function') return null; - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function (nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); -} - -function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) { - return {default: obj}; - } - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = - Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor - ? Object.getOwnPropertyDescriptor(obj, key) - : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ // How long to wait for the child process to terminate // after CHILD_MESSAGE_END before sending force exiting. const FORCE_EXIT_DELAY = 500; -/* istanbul ignore next */ +/* istanbul ignore next */ +// eslint-disable-next-line @typescript-eslint/no-empty-function const emptyMethod = () => {}; - class BaseWorkerPool { + _stderr; + _stdout; + _options; + _workers; + _workerPath; constructor(workerPath, options) { - _defineProperty(this, '_stderr', void 0); - - _defineProperty(this, '_stdout', void 0); - - _defineProperty(this, '_options', void 0); - - _defineProperty(this, '_workers', void 0); - this._options = options; + this._workerPath = workerPath; this._workers = new Array(options.numWorkers); - - if (!path().isAbsolute(workerPath)) { - workerPath = require.resolve(workerPath); - } - const stdout = (0, _mergeStream().default)(); const stderr = (0, _mergeStream().default)(); const {forkOptions, maxRetries, resourceLimits, setupArgs} = options; - for (let i = 0; i < options.numWorkers; i++) { const workerOptions = { forkOptions, + idleMemoryLimit: this._options.idleMemoryLimit, maxRetries, resourceLimits, setupArgs, @@ -127,42 +55,70 @@ class BaseWorkerPool { const worker = this.createWorker(workerOptions); const workerStdout = worker.getStdout(); const workerStderr = worker.getStderr(); - if (workerStdout) { stdout.add(workerStdout); } - if (workerStderr) { stderr.add(workerStderr); } - this._workers[i] = worker; } - this._stdout = stdout; this._stderr = stderr; } - getStderr() { return this._stderr; } - getStdout() { return this._stdout; } - getWorkers() { return this._workers; } - getWorkerById(workerId) { return this._workers[workerId]; } - + restartWorkerIfShutDown(workerId) { + if (this._workers[workerId].state === _types.WorkerStates.SHUT_DOWN) { + const {forkOptions, maxRetries, resourceLimits, setupArgs} = + this._options; + const workerOptions = { + forkOptions, + idleMemoryLimit: this._options.idleMemoryLimit, + maxRetries, + resourceLimits, + setupArgs, + workerId, + workerPath: this._workerPath + }; + const worker = this.createWorker(workerOptions); + this._workers[workerId] = worker; + } + } createWorker(_workerOptions) { throw Error('Missing method createWorker in WorkerPool'); } - + async start() { + await Promise.all( + this._workers.map(async worker => { + await worker.waitForWorkerReady(); + await new Promise((resolve, reject) => { + worker.send( + [_types.CHILD_MESSAGE_CALL_SETUP], + emptyMethod, + error => { + if (error) { + reject(error); + } else { + resolve(); + } + }, + emptyMethod + ); + }); + }) + ); + } async end() { // We do not cache the request object here. If so, it would only be only // processed by one of the workers, and we want them all to close. @@ -172,20 +128,20 @@ class BaseWorkerPool { emptyMethod, emptyMethod, emptyMethod - ); // Schedule a force exit in case worker fails to exit gracefully so - // await worker.waitForExit() never takes longer than FORCE_EXIT_DELAY + ); + // Schedule a force exit in case worker fails to exit gracefully so + // await worker.waitForExit() never takes longer than FORCE_EXIT_DELAY let forceExited = false; const forceExitTimeout = setTimeout(() => { worker.forceExit(); forceExited = true; }, FORCE_EXIT_DELAY); - await worker.waitForExit(); // Worker ideally exited gracefully, don't send force exit then - + await worker.waitForExit(); + // Worker ideally exited gracefully, don't send force exit then clearTimeout(forceExitTimeout); return forceExited; }); - const workerExits = await Promise.all(workerExitPromises); return workerExits.reduce( (result, forceExited) => ({ @@ -197,5 +153,4 @@ class BaseWorkerPool { ); } } - exports.default = BaseWorkerPool; diff --git a/node_modules/jest-worker/build/index.d.ts b/node_modules/jest-worker/build/index.d.ts index 5908dbbd..8f253768 100644 --- a/node_modules/jest-worker/build/index.d.ts +++ b/node_modules/jest-worker/build/index.d.ts @@ -1,14 +1,179 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /// -import type { FarmOptions, PoolExitResult, PromiseWithCustomMessage, TaskQueue } from './types'; -export { default as PriorityQueue } from './PriorityQueue'; -export { default as FifoQueue } from './FifoQueue'; -export { default as messageParent } from './workers/messageParent'; + +import type {ForkOptions} from 'child_process'; +import type {ResourceLimits} from 'worker_threads'; + +declare const CHILD_MESSAGE_CALL = 1; + +declare const CHILD_MESSAGE_CALL_SETUP = 4; + +declare const CHILD_MESSAGE_END = 2; + +declare const CHILD_MESSAGE_INITIALIZE = 0; + +declare const CHILD_MESSAGE_MEM_USAGE = 3; + +declare type ChildMessage = + | ChildMessageInitialize + | ChildMessageCall + | ChildMessageEnd + | ChildMessageMemUsage + | ChildMessageCallSetup; + +declare type ChildMessageCall = [ + type: typeof CHILD_MESSAGE_CALL, + isProcessed: boolean, + methodName: string, + args: Array, +]; + +declare type ChildMessageCallSetup = [type: typeof CHILD_MESSAGE_CALL_SETUP]; + +declare type ChildMessageEnd = [ + type: typeof CHILD_MESSAGE_END, + isProcessed: boolean, +]; + +declare type ChildMessageInitialize = [ + type: typeof CHILD_MESSAGE_INITIALIZE, + isProcessed: boolean, + fileName: string, + setupArgs: Array, + workerId: string | undefined, +]; + +declare type ChildMessageMemUsage = [type: typeof CHILD_MESSAGE_MEM_USAGE]; + +declare type ComputeTaskPriorityCallback = ( + method: string, + ...args: Array +) => number; + +declare type ExcludeReservedKeys = Exclude; + +/** + * First-in, First-out task queue that manages a dedicated pool + * for each worker as well as a shared queue. The FIFO ordering is guaranteed + * across the worker specific and shared queue. + */ +export declare class FifoQueue implements TaskQueue { + private _workerQueues; + private readonly _sharedQueue; + enqueue(task: QueueChildMessage, workerId?: number): void; + dequeue(workerId: number): QueueChildMessage | null; +} + +declare type FunctionLike = (...args: any) => unknown; + +declare type HeapItem = { + priority: number; +}; + +export declare type JestWorkerFarm> = + Worker_2 & WorkerModule; + +export declare function messageParent( + message: unknown, + parentProcess?: NodeJS.Process, +): void; + +declare type MethodLikeKeys = { + [K in keyof T]: T[K] extends FunctionLike ? K : never; +}[keyof T]; + +declare class MinHeap { + private readonly _heap; + peek(): TItem | null; + add(item: TItem): void; + poll(): TItem | null; +} + +declare type OnCustomMessage = (message: Array | unknown) => void; + +declare type OnEnd = (err: Error | null, result: unknown) => void; + +declare type OnStart = (worker: WorkerInterface) => void; + +declare type OnStateChangeHandler = ( + state: WorkerStates, + oldState: WorkerStates, +) => void; + +declare type PoolExitResult = { + forceExited: boolean; +}; + +/** + * Priority queue that processes tasks in natural ordering (lower priority first) + * according to the priority computed by the function passed in the constructor. + * + * FIFO ordering isn't guaranteed for tasks with the same priority. + * + * Worker specific tasks with the same priority as a non-worker specific task + * are always processed first. + */ +export declare class PriorityQueue implements TaskQueue { + private readonly _computePriority; + private _queue; + private readonly _sharedQueue; + constructor(_computePriority: ComputeTaskPriorityCallback); + enqueue(task: QueueChildMessage, workerId?: number): void; + _enqueue(task: QueueChildMessage, queue: MinHeap): void; + dequeue(workerId: number): QueueChildMessage | null; + _getWorkerQueue(workerId: number): MinHeap; +} + +export declare interface PromiseWithCustomMessage extends Promise { + UNSTABLE_onCustomMessage?: (listener: OnCustomMessage) => () => void; +} + +declare type Promisify = ReturnType extends Promise< + infer R +> + ? (...args: Parameters) => Promise + : (...args: Parameters) => Promise>; + +declare type QueueChildMessage = { + request: ChildMessageCall; + onStart: OnStart; + onEnd: OnEnd; + onCustomMessage: OnCustomMessage; +}; + +declare type QueueItem = { + task: QueueChildMessage; + priority: number; +}; + +declare type ReservedKeys = + | 'end' + | 'getStderr' + | 'getStdout' + | 'setup' + | 'teardown'; + +export declare interface TaskQueue { + /** + * Enqueues the task in the queue for the specified worker or adds it to the + * queue shared by all workers + * @param task the task to queue + * @param workerId the id of the worker that should process this task or undefined + * if there's no preference. + */ + enqueue(task: QueueChildMessage, workerId?: number): void; + /** + * Dequeues the next item from the queue for the specified worker + * @param workerId the id of the worker for which the next task should be retrieved + */ + dequeue(workerId: number): QueueChildMessage | null; +} + /** * The Jest farm (publicly called "Worker") is a class that allows you to queue * methods across multiple child processes, in order to parallelize work. This @@ -34,16 +199,157 @@ export { default as messageParent } from './workers/messageParent'; * processed by the same worker. This is specially useful if your workers * are caching results. */ -export declare class Worker { - private _ending; - private _farm; - private _options; - private _workerPool; - constructor(workerPath: string, options?: FarmOptions); - private _bindExposedWorkerMethods; - private _callFunctionWithArgs; - getStderr(): NodeJS.ReadableStream; - getStdout(): NodeJS.ReadableStream; - end(): Promise; -} -export type { PromiseWithCustomMessage, TaskQueue }; +declare class Worker_2 { + private _ending; + private readonly _farm; + private readonly _options; + private readonly _workerPool; + constructor(workerPath: string | URL, options?: WorkerFarmOptions); + private _bindExposedWorkerMethods; + private _callFunctionWithArgs; + getStderr(): NodeJS.ReadableStream; + getStdout(): NodeJS.ReadableStream; + start(): Promise; + end(): Promise; +} +export {Worker_2 as Worker}; + +declare type WorkerCallback = ( + workerId: number, + request: ChildMessage, + onStart: OnStart, + onEnd: OnEnd, + onCustomMessage: OnCustomMessage, +) => void; + +declare enum WorkerEvents { + STATE_CHANGE = 'state-change', +} + +export declare type WorkerFarmOptions = { + computeWorkerKey?: (method: string, ...args: Array) => string | null; + enableWorkerThreads?: boolean; + exposedMethods?: ReadonlyArray; + forkOptions?: ForkOptions; + maxRetries?: number; + numWorkers?: number; + resourceLimits?: ResourceLimits; + setupArgs?: Array; + taskQueue?: TaskQueue; + WorkerPool?: new ( + workerPath: string, + options?: WorkerPoolOptions, + ) => WorkerPoolInterface; + workerSchedulingPolicy?: WorkerSchedulingPolicy; + idleMemoryLimit?: number; +}; + +declare interface WorkerInterface { + get state(): WorkerStates; + send( + request: ChildMessage, + onProcessStart: OnStart, + onProcessEnd: OnEnd, + onCustomMessage: OnCustomMessage, + ): void; + waitForExit(): Promise; + forceExit(): void; + getWorkerId(): number; + getStderr(): NodeJS.ReadableStream | null; + getStdout(): NodeJS.ReadableStream | null; + /** + * Some system level identifier for the worker. IE, process id, thread id, etc. + */ + getWorkerSystemId(): number; + getMemoryUsage(): Promise; + /** + * Checks to see if the child worker is actually running. + */ + isWorkerRunning(): boolean; + /** + * When the worker child is started and ready to start handling requests. + * + * @remarks + * This mostly exists to help with testing so that you don't check the status + * of things like isWorkerRunning before it actually is. + */ + waitForWorkerReady(): Promise; +} + +declare type WorkerModule = { + [K in keyof T as Extract< + ExcludeReservedKeys, + MethodLikeKeys + >]: T[K] extends FunctionLike ? Promisify : never; +}; + +declare type WorkerOptions_2 = { + forkOptions: ForkOptions; + resourceLimits: ResourceLimits; + setupArgs: Array; + maxRetries: number; + workerId: number; + workerData?: unknown; + workerPath: string; + /** + * After a job has executed the memory usage it should return to. + * + * @remarks + * Note this is different from ResourceLimits in that it checks at idle, after + * a job is complete. So you could have a resource limit of 500MB but an idle + * limit of 50MB. The latter will only trigger if after a job has completed the + * memory usage hasn't returned back down under 50MB. + */ + idleMemoryLimit?: number; + /** + * This mainly exists so the path can be changed during testing. + * https://github.com/jestjs/jest/issues/9543 + */ + childWorkerPath?: string; + /** + * This is useful for debugging individual tests allowing you to see + * the raw output of the worker. + */ + silent?: boolean; + /** + * Used to immediately bind event handlers. + */ + on?: { + [WorkerEvents.STATE_CHANGE]: + | OnStateChangeHandler + | ReadonlyArray; + }; +}; + +export declare interface WorkerPoolInterface { + getStderr(): NodeJS.ReadableStream; + getStdout(): NodeJS.ReadableStream; + getWorkers(): Array; + createWorker(options: WorkerOptions_2): WorkerInterface; + send: WorkerCallback; + start(): Promise; + end(): Promise; +} + +export declare type WorkerPoolOptions = { + setupArgs: Array; + forkOptions: ForkOptions; + resourceLimits: ResourceLimits; + maxRetries: number; + numWorkers: number; + enableWorkerThreads: boolean; + idleMemoryLimit?: number; +}; + +declare type WorkerSchedulingPolicy = 'round-robin' | 'in-order'; + +declare enum WorkerStates { + STARTING = 'starting', + OK = 'ok', + OUT_OF_MEMORY = 'oom', + RESTARTING = 'restarting', + SHUTTING_DOWN = 'shutting-down', + SHUT_DOWN = 'shut-down', +} + +export {}; diff --git a/node_modules/jest-worker/build/index.js b/node_modules/jest-worker/build/index.js index 5dac1836..6e840cc2 100644 --- a/node_modules/jest-worker/build/index.js +++ b/node_modules/jest-worker/build/index.js @@ -22,63 +22,63 @@ Object.defineProperty(exports, 'messageParent', { return _messageParent.default; } }); - function _os() { const data = require('os'); - _os = function () { return data; }; - return data; } - +function _path() { + const data = require('path'); + _path = function () { + return data; + }; + return data; +} +function _url() { + const data = require('url'); + _url = function () { + return data; + }; + return data; +} var _Farm = _interopRequireDefault(require('./Farm')); - var _WorkerPool = _interopRequireDefault(require('./WorkerPool')); - var _PriorityQueue = _interopRequireDefault(require('./PriorityQueue')); - var _FifoQueue = _interopRequireDefault(require('./FifoQueue')); - var _messageParent = _interopRequireDefault(require('./workers/messageParent')); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ function getExposedMethods(workerPath, options) { - let exposedMethods = options.exposedMethods; // If no methods list is given, try getting it by auto-requiring the module. + let exposedMethods = options.exposedMethods; + // If no methods list is given, try getting it by auto-requiring the module. if (!exposedMethods) { const module = require(workerPath); - exposedMethods = Object.keys(module).filter( - // @ts-expect-error: no index name => typeof module[name] === 'function' ); - if (typeof module === 'function') { exposedMethods = [...exposedMethods, 'default']; } } - return exposedMethods; } +function getNumberOfCpus() { + return typeof _os().availableParallelism === 'function' + ? (0, _os().availableParallelism)() + : (0, _os().cpus)().length; +} + /** * The Jest farm (publicly called "Worker") is a class that allows you to queue * methods across multiple child processes, in order to parallelize work. This @@ -104,61 +104,35 @@ function getExposedMethods(workerPath, options) { * processed by the same worker. This is specially useful if your workers * are caching results. */ - class Worker { + _ending; + _farm; + _options; + _workerPool; constructor(workerPath, options) { - var _this$_options$enable, - _this$_options$forkOp, - _this$_options$maxRet, - _this$_options$numWor, - _this$_options$resour, - _this$_options$setupA; - - _defineProperty(this, '_ending', void 0); - - _defineProperty(this, '_farm', void 0); - - _defineProperty(this, '_options', void 0); - - _defineProperty(this, '_workerPool', void 0); - - this._options = {...options}; + this._options = { + ...options + }; this._ending = false; + if (typeof workerPath !== 'string') { + workerPath = workerPath.href; + } + if (workerPath.startsWith('file:')) { + workerPath = (0, _url().fileURLToPath)(workerPath); + } else if (!(0, _path().isAbsolute)(workerPath)) { + throw new Error(`'workerPath' must be absolute, got '${workerPath}'`); + } const workerPoolOptions = { - enableWorkerThreads: - (_this$_options$enable = this._options.enableWorkerThreads) !== null && - _this$_options$enable !== void 0 - ? _this$_options$enable - : false, - forkOptions: - (_this$_options$forkOp = this._options.forkOptions) !== null && - _this$_options$forkOp !== void 0 - ? _this$_options$forkOp - : {}, - maxRetries: - (_this$_options$maxRet = this._options.maxRetries) !== null && - _this$_options$maxRet !== void 0 - ? _this$_options$maxRet - : 3, + enableWorkerThreads: this._options.enableWorkerThreads ?? false, + forkOptions: this._options.forkOptions ?? {}, + idleMemoryLimit: this._options.idleMemoryLimit, + maxRetries: this._options.maxRetries ?? 3, numWorkers: - (_this$_options$numWor = this._options.numWorkers) !== null && - _this$_options$numWor !== void 0 - ? _this$_options$numWor - : Math.max((0, _os().cpus)().length - 1, 1), - resourceLimits: - (_this$_options$resour = this._options.resourceLimits) !== null && - _this$_options$resour !== void 0 - ? _this$_options$resour - : {}, - setupArgs: - (_this$_options$setupA = this._options.setupArgs) !== null && - _this$_options$setupA !== void 0 - ? _this$_options$setupA - : [] + this._options.numWorkers ?? Math.max(getNumberOfCpus() - 1, 1), + resourceLimits: this._options.resourceLimits ?? {}, + setupArgs: this._options.setupArgs ?? [] }; - if (this._options.WorkerPool) { - // @ts-expect-error: constructor target any? this._workerPool = new this._options.WorkerPool( workerPath, workerPoolOptions @@ -166,7 +140,6 @@ class Worker { } else { this._workerPool = new _WorkerPool.default(workerPath, workerPoolOptions); } - this._farm = new _Farm.default( workerPoolOptions.numWorkers, this._workerPool.send.bind(this._workerPool), @@ -176,48 +149,44 @@ class Worker { workerSchedulingPolicy: this._options.workerSchedulingPolicy } ); - this._bindExposedWorkerMethods(workerPath, this._options); } - _bindExposedWorkerMethods(workerPath, options) { getExposedMethods(workerPath, options).forEach(name => { if (name.startsWith('_')) { return; } + // eslint-disable-next-line no-prototype-builtins if (this.constructor.prototype.hasOwnProperty(name)) { - throw new TypeError('Cannot define a method called ' + name); - } // @ts-expect-error: dynamic extension of the class instance is expected. + throw new TypeError(`Cannot define a method called ${name}`); + } + // @ts-expect-error: dynamic extension of the class instance is expected. this[name] = this._callFunctionWithArgs.bind(this, name); }); } - _callFunctionWithArgs(method, ...args) { if (this._ending) { throw new Error('Farm is ended, no more calls can be done to it'); } - return this._farm.doWork(method, ...args); } - getStderr() { return this._workerPool.getStderr(); } - getStdout() { return this._workerPool.getStdout(); } - + async start() { + await this._workerPool.start(); + } async end() { if (this._ending) { throw new Error('Farm is ended, no more calls can be done to it'); } - this._ending = true; return this._workerPool.end(); } } - exports.Worker = Worker; diff --git a/node_modules/jest-worker/build/types.d.ts b/node_modules/jest-worker/build/types.d.ts deleted file mode 100644 index be160f6f..00000000 --- a/node_modules/jest-worker/build/types.d.ts +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/// -import type { ForkOptions } from 'child_process'; -import type { EventEmitter } from 'events'; -export interface ResourceLimits { - maxYoungGenerationSizeMb?: number; - maxOldGenerationSizeMb?: number; - codeRangeSizeMb?: number; - stackSizeMb?: number; -} -export declare const CHILD_MESSAGE_INITIALIZE: 0; -export declare const CHILD_MESSAGE_CALL: 1; -export declare const CHILD_MESSAGE_END: 2; -export declare const PARENT_MESSAGE_OK: 0; -export declare const PARENT_MESSAGE_CLIENT_ERROR: 1; -export declare const PARENT_MESSAGE_SETUP_ERROR: 2; -export declare const PARENT_MESSAGE_CUSTOM: 3; -export declare type PARENT_MESSAGE_ERROR = typeof PARENT_MESSAGE_CLIENT_ERROR | typeof PARENT_MESSAGE_SETUP_ERROR; -export interface WorkerPoolInterface { - getStderr(): NodeJS.ReadableStream; - getStdout(): NodeJS.ReadableStream; - getWorkers(): Array; - createWorker(options: WorkerOptions): WorkerInterface; - send(workerId: number, request: ChildMessage, onStart: OnStart, onEnd: OnEnd, onCustomMessage: OnCustomMessage): void; - end(): Promise; -} -export interface WorkerInterface { - send(request: ChildMessage, onProcessStart: OnStart, onProcessEnd: OnEnd, onCustomMessage: OnCustomMessage): void; - waitForExit(): Promise; - forceExit(): void; - getWorkerId(): number; - getStderr(): NodeJS.ReadableStream | null; - getStdout(): NodeJS.ReadableStream | null; -} -export declare type PoolExitResult = { - forceExited: boolean; -}; -export interface PromiseWithCustomMessage extends Promise { - UNSTABLE_onCustomMessage?: (listener: OnCustomMessage) => () => void; -} -export type { ForkOptions }; -export interface TaskQueue { - /** - * Enqueues the task in the queue for the specified worker or adds it to the - * queue shared by all workers - * @param task the task to queue - * @param workerId the id of the worker that should process this task or undefined - * if there's no preference. - */ - enqueue(task: QueueChildMessage, workerId?: number): void; - /** - * Dequeues the next item from the queue for the speified worker - * @param workerId the id of the worker for which the next task should be retrieved - */ - dequeue(workerId: number): QueueChildMessage | null; -} -export declare type FarmOptions = { - computeWorkerKey?: (method: string, ...args: Array) => string | null; - exposedMethods?: ReadonlyArray; - forkOptions?: ForkOptions; - workerSchedulingPolicy?: 'round-robin' | 'in-order'; - resourceLimits?: ResourceLimits; - setupArgs?: Array; - maxRetries?: number; - numWorkers?: number; - taskQueue?: TaskQueue; - WorkerPool?: (workerPath: string, options?: WorkerPoolOptions) => WorkerPoolInterface; - enableWorkerThreads?: boolean; -}; -export declare type WorkerPoolOptions = { - setupArgs: Array; - forkOptions: ForkOptions; - resourceLimits: ResourceLimits; - maxRetries: number; - numWorkers: number; - enableWorkerThreads: boolean; -}; -export declare type WorkerOptions = { - forkOptions: ForkOptions; - resourceLimits: ResourceLimits; - setupArgs: Array; - maxRetries: number; - workerId: number; - workerData?: unknown; - workerPath: string; -}; -export declare type MessagePort = typeof EventEmitter & { - postMessage(message: unknown): void; -}; -export declare type MessageChannel = { - port1: MessagePort; - port2: MessagePort; -}; -export declare type ChildMessageInitialize = [ - typeof CHILD_MESSAGE_INITIALIZE, - boolean, - string, - // file - Array | undefined, - // setupArgs - MessagePort | undefined -]; -export declare type ChildMessageCall = [ - typeof CHILD_MESSAGE_CALL, - boolean, - string, - Array -]; -export declare type ChildMessageEnd = [ - typeof CHILD_MESSAGE_END, - boolean -]; -export declare type ChildMessage = ChildMessageInitialize | ChildMessageCall | ChildMessageEnd; -export declare type ParentMessageCustom = [ - typeof PARENT_MESSAGE_CUSTOM, - unknown -]; -export declare type ParentMessageOk = [ - typeof PARENT_MESSAGE_OK, - unknown -]; -export declare type ParentMessageError = [ - PARENT_MESSAGE_ERROR, - string, - string, - string, - unknown -]; -export declare type ParentMessage = ParentMessageOk | ParentMessageError | ParentMessageCustom; -export declare type OnStart = (worker: WorkerInterface) => void; -export declare type OnEnd = (err: Error | null, result: unknown) => void; -export declare type OnCustomMessage = (message: Array | unknown) => void; -export declare type QueueChildMessage = { - request: ChildMessageCall; - onStart: OnStart; - onEnd: OnEnd; - onCustomMessage: OnCustomMessage; -}; diff --git a/node_modules/jest-worker/build/types.js b/node_modules/jest-worker/build/types.js index 92b358ba..feedb0b7 100644 --- a/node_modules/jest-worker/build/types.js +++ b/node_modules/jest-worker/build/types.js @@ -3,32 +3,40 @@ Object.defineProperty(exports, '__esModule', { value: true }); -exports.PARENT_MESSAGE_SETUP_ERROR = +exports.WorkerStates = + exports.WorkerEvents = + exports.PARENT_MESSAGE_SETUP_ERROR = exports.PARENT_MESSAGE_OK = + exports.PARENT_MESSAGE_MEM_USAGE = exports.PARENT_MESSAGE_CUSTOM = exports.PARENT_MESSAGE_CLIENT_ERROR = + exports.CHILD_MESSAGE_MEM_USAGE = exports.CHILD_MESSAGE_INITIALIZE = exports.CHILD_MESSAGE_END = + exports.CHILD_MESSAGE_CALL_SETUP = exports.CHILD_MESSAGE_CALL = void 0; - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -// import type {ResourceLimits} from 'worker_threads'; -// This is not present in the Node 12 typings + // Because of the dynamic nature of a worker communication process, all messages // coming from any of the other processes cannot be typed. Thus, many types // include "unknown" as a TS type, which is (unfortunately) correct here. + const CHILD_MESSAGE_INITIALIZE = 0; exports.CHILD_MESSAGE_INITIALIZE = CHILD_MESSAGE_INITIALIZE; const CHILD_MESSAGE_CALL = 1; exports.CHILD_MESSAGE_CALL = CHILD_MESSAGE_CALL; const CHILD_MESSAGE_END = 2; exports.CHILD_MESSAGE_END = CHILD_MESSAGE_END; +const CHILD_MESSAGE_MEM_USAGE = 3; +exports.CHILD_MESSAGE_MEM_USAGE = CHILD_MESSAGE_MEM_USAGE; +const CHILD_MESSAGE_CALL_SETUP = 4; +exports.CHILD_MESSAGE_CALL_SETUP = CHILD_MESSAGE_CALL_SETUP; const PARENT_MESSAGE_OK = 0; exports.PARENT_MESSAGE_OK = PARENT_MESSAGE_OK; const PARENT_MESSAGE_CLIENT_ERROR = 1; @@ -37,3 +45,28 @@ const PARENT_MESSAGE_SETUP_ERROR = 2; exports.PARENT_MESSAGE_SETUP_ERROR = PARENT_MESSAGE_SETUP_ERROR; const PARENT_MESSAGE_CUSTOM = 3; exports.PARENT_MESSAGE_CUSTOM = PARENT_MESSAGE_CUSTOM; +const PARENT_MESSAGE_MEM_USAGE = 4; + +// Option objects. + +// Messages passed from the parent to the children. + +// Messages passed from the children to the parent. + +// Queue types. +exports.PARENT_MESSAGE_MEM_USAGE = PARENT_MESSAGE_MEM_USAGE; +let WorkerStates = /*#__PURE__*/ (function (WorkerStates) { + WorkerStates['STARTING'] = 'starting'; + WorkerStates['OK'] = 'ok'; + WorkerStates['OUT_OF_MEMORY'] = 'oom'; + WorkerStates['RESTARTING'] = 'restarting'; + WorkerStates['SHUTTING_DOWN'] = 'shutting-down'; + WorkerStates['SHUT_DOWN'] = 'shut-down'; + return WorkerStates; +})({}); +exports.WorkerStates = WorkerStates; +let WorkerEvents = /*#__PURE__*/ (function (WorkerEvents) { + WorkerEvents['STATE_CHANGE'] = 'state-change'; + return WorkerEvents; +})({}); +exports.WorkerEvents = WorkerEvents; diff --git a/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts b/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts deleted file mode 100644 index 4a8dcf12..00000000 --- a/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/// -import { ChildMessage, OnCustomMessage, OnEnd, OnStart, WorkerInterface, WorkerOptions } from '../types'; -/** - * This class wraps the child process and provides a nice interface to - * communicate with. It takes care of: - * - * - Re-spawning the process if it dies. - * - Queues calls while the worker is busy. - * - Re-sends the requests if the worker blew up. - * - * The reason for queueing them here (since childProcess.send also has an - * internal queue) is because the worker could be doing asynchronous work, and - * this would lead to the child process to read its receiving buffer and start a - * second call. By queueing calls here, we don't send the next call to the - * children until we receive the result of the previous one. - * - * As soon as a request starts to be processed by a worker, its "processed" - * field is changed to "true", so that other workers which might encounter the - * same call skip it. - */ -export default class ChildProcessWorker implements WorkerInterface { - private _child; - private _options; - private _request; - private _retries; - private _onProcessEnd; - private _onCustomMessage; - private _fakeStream; - private _stdout; - private _stderr; - private _exitPromise; - private _resolveExitPromise; - constructor(options: WorkerOptions); - initialize(): void; - private _shutdown; - private _onMessage; - private _onExit; - send(request: ChildMessage, onProcessStart: OnStart, onProcessEnd: OnEnd, onCustomMessage: OnCustomMessage): void; - waitForExit(): Promise; - forceExit(): void; - getWorkerId(): number; - getStdout(): NodeJS.ReadableStream | null; - getStderr(): NodeJS.ReadableStream | null; - private _getFakeStream; -} diff --git a/node_modules/jest-worker/build/workers/ChildProcessWorker.js b/node_modules/jest-worker/build/workers/ChildProcessWorker.js index f8a42c96..6a9d1f36 100644 --- a/node_modules/jest-worker/build/workers/ChildProcessWorker.js +++ b/node_modules/jest-worker/build/workers/ChildProcessWorker.js @@ -3,73 +3,54 @@ Object.defineProperty(exports, '__esModule', { value: true }); -exports.default = void 0; - +exports.default = exports.SIGKILL_DELAY = void 0; function _child_process() { const data = require('child_process'); - _child_process = function () { return data; }; - return data; } - -function _stream() { - const data = require('stream'); - - _stream = function () { +function _os() { + const data = require('os'); + _os = function () { return data; }; - return data; } - function _mergeStream() { const data = _interopRequireDefault(require('merge-stream')); - _mergeStream = function () { return data; }; - return data; } - function _supportsColor() { const data = require('supports-color'); - _supportsColor = function () { return data; }; - return data; } - var _types = require('../types'); - +var _WorkerAbstract = _interopRequireDefault(require('./WorkerAbstract')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ const SIGNAL_BASE_EXIT_CODE = 128; const SIGKILL_EXIT_CODE = SIGNAL_BASE_EXIT_CODE + 9; -const SIGTERM_EXIT_CODE = SIGNAL_BASE_EXIT_CODE + 15; // How long to wait after SIGTERM before sending SIGKILL +const SIGTERM_EXIT_CODE = SIGNAL_BASE_EXIT_CODE + 15; +// How long to wait after SIGTERM before sending SIGKILL const SIGKILL_DELAY = 500; + /** * This class wraps the child process and provides a nice interface to * communicate with. It takes care of: @@ -88,104 +69,118 @@ const SIGKILL_DELAY = 500; * field is changed to "true", so that other workers which might encounter the * same call skip it. */ - -class ChildProcessWorker { +exports.SIGKILL_DELAY = SIGKILL_DELAY; +class ChildProcessWorker extends _WorkerAbstract.default { + _child; + _options; + _request; + _retries; + _onProcessEnd; + _onCustomMessage; + _stdout; + _stderr; + _stderrBuffer = []; + _memoryUsagePromise; + _resolveMemoryUsage; + _childIdleMemoryUsage; + _childIdleMemoryUsageLimit; + _memoryUsageCheck = false; + _childWorkerPath; constructor(options) { - _defineProperty(this, '_child', void 0); - - _defineProperty(this, '_options', void 0); - - _defineProperty(this, '_request', void 0); - - _defineProperty(this, '_retries', void 0); - - _defineProperty(this, '_onProcessEnd', void 0); - - _defineProperty(this, '_onCustomMessage', void 0); - - _defineProperty(this, '_fakeStream', void 0); - - _defineProperty(this, '_stdout', void 0); - - _defineProperty(this, '_stderr', void 0); - - _defineProperty(this, '_exitPromise', void 0); - - _defineProperty(this, '_resolveExitPromise', void 0); - + super(options); this._options = options; this._request = null; - this._fakeStream = null; this._stdout = null; this._stderr = null; - this._exitPromise = new Promise(resolve => { - this._resolveExitPromise = resolve; - }); + this._childIdleMemoryUsage = null; + this._childIdleMemoryUsageLimit = options.idleMemoryLimit || null; + this._childWorkerPath = + options.childWorkerPath || require.resolve('./processChild'); + this.state = _types.WorkerStates.STARTING; this.initialize(); } - initialize() { + if ( + this.state === _types.WorkerStates.OUT_OF_MEMORY || + this.state === _types.WorkerStates.SHUTTING_DOWN || + this.state === _types.WorkerStates.SHUT_DOWN + ) { + return; + } + if (this._child && this._child.connected) { + this._child.kill('SIGKILL'); + } + this.state = _types.WorkerStates.STARTING; const forceColor = _supportsColor().stdout ? { FORCE_COLOR: '1' } : {}; - const child = (0, _child_process().fork)( - require.resolve('./processChild'), + const silent = this._options.silent ?? true; + if (!silent) { + // NOTE: Detecting an out of memory crash is independent of idle memory usage monitoring. We want to + // monitor for a crash occurring so that it can be handled as required and so we can tell the difference + // between an OOM crash and another kind of crash. We need to do this because if a worker crashes due to + // an OOM event sometimes it isn't seen by the worker pool and it just sits there waiting for the worker + // to respond and it never will. + console.warn('Unable to detect out of memory event if silent === false'); + } + this._stderrBuffer = []; + const options = { + cwd: process.cwd(), + env: { + ...process.env, + JEST_WORKER_ID: String(this._options.workerId + 1), + // 0-indexed workerId, 1-indexed JEST_WORKER_ID + ...forceColor + }, + // Suppress --debug / --inspect flags while preserving others (like --harmony). + execArgv: process.execArgv.filter(v => !/^--(debug|inspect)/.test(v)), + // default to advanced serialization in order to match worker threads + serialization: 'advanced', + silent, + ...this._options.forkOptions + }; + this._child = (0, _child_process().fork)( + this._childWorkerPath, [], - { - cwd: process.cwd(), - env: { - ...process.env, - JEST_WORKER_ID: String(this._options.workerId + 1), - // 0-indexed workerId, 1-indexed JEST_WORKER_ID - ...forceColor - }, - // Suppress --debug / --inspect flags while preserving others (like --harmony). - execArgv: process.execArgv.filter(v => !/^--(debug|inspect)/.test(v)), - silent: true, - ...this._options.forkOptions - } + options ); - - if (child.stdout) { + if (this._child.stdout) { if (!this._stdout) { // We need to add a permanent stream to the merged stream to prevent it // from ending when the subprocess stream ends this._stdout = (0, _mergeStream().default)(this._getFakeStream()); } - - this._stdout.add(child.stdout); + this._stdout.add(this._child.stdout); } - - if (child.stderr) { + if (this._child.stderr) { if (!this._stderr) { // We need to add a permanent stream to the merged stream to prevent it // from ending when the subprocess stream ends this._stderr = (0, _mergeStream().default)(this._getFakeStream()); } - - this._stderr.add(child.stderr); + this._stderr.add(this._child.stderr); + this._child.stderr.on('data', this.stderrDataHandler.bind(this)); } - - child.on('message', this._onMessage.bind(this)); - child.on('exit', this._onExit.bind(this)); - child.send([ + this._child.on('message', this._onMessage.bind(this)); + this._child.on('exit', this._onExit.bind(this)); + this._child.on('disconnect', this._onDisconnect.bind(this)); + this._child.send([ _types.CHILD_MESSAGE_INITIALIZE, false, this._options.workerPath, this._options.setupArgs ]); - this._child = child; - this._retries++; // If we exceeded the amount of retries, we will emulate an error reply + this._retries++; + + // If we exceeded the amount of retries, we will emulate an error reply // coming from the child. This avoids code duplication related with cleaning // the queue, and scheduling the next call. - if (this._retries > this._options.maxRetries) { const error = new Error( `Jest worker encountered ${this._retries} child process exceptions, exceeding retry limit` ); - this._onMessage([ _types.PARENT_MESSAGE_CLIENT_ERROR, error.name, @@ -195,139 +190,301 @@ class ChildProcessWorker { type: 'WorkerError' } ]); + + // Clear the request so we don't keep executing it. + this._request = null; + } + this.state = _types.WorkerStates.OK; + if (this._resolveWorkerReady) { + this._resolveWorkerReady(); } } - - _shutdown() { - // End the temporary streams so the merged streams end too - if (this._fakeStream) { - this._fakeStream.end(); - - this._fakeStream = null; + stderrDataHandler(chunk) { + if (chunk) { + this._stderrBuffer.push(Buffer.from(chunk)); + } + this._detectOutOfMemoryCrash(); + if (this.state === _types.WorkerStates.OUT_OF_MEMORY) { + this._workerReadyPromise = undefined; + this._resolveWorkerReady = undefined; + this.killChild(); + this._shutdown(); + } + } + _detectOutOfMemoryCrash() { + try { + const bufferStr = Buffer.concat(this._stderrBuffer).toString('utf8'); + if ( + bufferStr.includes('heap out of memory') || + bufferStr.includes('allocation failure;') || + bufferStr.includes('Last few GCs') + ) { + if ( + this.state === _types.WorkerStates.OK || + this.state === _types.WorkerStates.STARTING + ) { + this.state = _types.WorkerStates.OUT_OF_MEMORY; + } + } + } catch (err) { + console.error('Error looking for out of memory crash', err); + } + } + _onDisconnect() { + this._workerReadyPromise = undefined; + this._resolveWorkerReady = undefined; + this._detectOutOfMemoryCrash(); + if (this.state === _types.WorkerStates.OUT_OF_MEMORY) { + this.killChild(); + this._shutdown(); } - - this._resolveExitPromise(); } - _onMessage(response) { + // Ignore messages not intended for us + if (!Array.isArray(response)) return; + // TODO: Add appropriate type check let error; - switch (response[0]) { case _types.PARENT_MESSAGE_OK: this._onProcessEnd(null, response[1]); - break; - case _types.PARENT_MESSAGE_CLIENT_ERROR: error = response[4]; - if (error != null && typeof error === 'object') { - const extra = error; // @ts-expect-error: no index - - const NativeCtor = global[response[1]]; + const extra = error; + // @ts-expect-error: no index + const NativeCtor = globalThis[response[1]]; const Ctor = typeof NativeCtor === 'function' ? NativeCtor : Error; error = new Ctor(response[2]); error.type = response[1]; error.stack = response[3]; - for (const key in extra) { error[key] = extra[key]; } } - this._onProcessEnd(error, null); - break; - case _types.PARENT_MESSAGE_SETUP_ERROR: - error = new Error('Error when calling setup: ' + response[2]); + error = new Error(`Error when calling setup: ${response[2]}`); error.type = response[1]; error.stack = response[3]; - this._onProcessEnd(error, null); - break; - case _types.PARENT_MESSAGE_CUSTOM: this._onCustomMessage(response[1]); - break; - + case _types.PARENT_MESSAGE_MEM_USAGE: + this._childIdleMemoryUsage = response[1]; + if (this._resolveMemoryUsage) { + this._resolveMemoryUsage(response[1]); + this._resolveMemoryUsage = undefined; + this._memoryUsagePromise = undefined; + } + this._performRestartIfRequired(); + break; default: - throw new TypeError('Unexpected response from worker: ' + response[0]); + // Ignore messages not intended for us + break; } } - - _onExit(exitCode) { - if ( - exitCode !== 0 && - exitCode !== null && - exitCode !== SIGTERM_EXIT_CODE && - exitCode !== SIGKILL_EXIT_CODE + _performRestartIfRequired() { + if (this._memoryUsageCheck) { + this._memoryUsageCheck = false; + let limit = this._childIdleMemoryUsageLimit; + + // TODO: At some point it would make sense to make use of + // stringToBytes found in jest-config, however as this + // package does not have any dependencies on an other jest + // packages that can wait until some other time. + if (limit && limit > 0 && limit <= 1) { + limit = Math.floor((0, _os().totalmem)() * limit); + } else if (limit) { + limit = Math.floor(limit); + } + if ( + limit && + this._childIdleMemoryUsage && + this._childIdleMemoryUsage > limit + ) { + this.state = _types.WorkerStates.RESTARTING; + this.killChild(); + } + } + } + _onExit(exitCode, signal) { + this._workerReadyPromise = undefined; + this._resolveWorkerReady = undefined; + this._detectOutOfMemoryCrash(); + if (exitCode !== 0 && this.state === _types.WorkerStates.OUT_OF_MEMORY) { + this._onProcessEnd( + new Error('Jest worker ran out of memory and crashed'), + null + ); + this._shutdown(); + } else if ( + (exitCode !== 0 && + exitCode !== null && + exitCode !== SIGTERM_EXIT_CODE && + exitCode !== SIGKILL_EXIT_CODE && + this.state !== _types.WorkerStates.SHUTTING_DOWN) || + this.state === _types.WorkerStates.RESTARTING ) { + this.state = _types.WorkerStates.RESTARTING; this.initialize(); - if (this._request) { this._child.send(this._request); } } else { + // At this point, it's not clear why the child process exited. There could + // be several reasons: + // + // 1. The child process exited successfully after finishing its work. + // This is the most likely case. + // 2. The child process crashed in a manner that wasn't caught through + // any of the heuristic-based checks above. + // 3. The child process was killed by another process or daemon unrelated + // to Jest. For example, oom-killer on Linux may have picked the child + // process to kill because overall system memory is constrained. + // + // If there's a pending request to the child process in any of those + // situations, the request still needs to be handled in some manner before + // entering the shutdown phase. Otherwise the caller expecting a response + // from the worker will never receive indication that something unexpected + // happened and hang forever. + // + // In normal operation, the request is handled and cleared before the + // child process exits. If it's still present, it's not clear what + // happened and probably best to throw an error. In practice, this usually + // happens when the child process is killed externally. + // + // There's a reasonable argument that the child process should be retried + // with request re-sent in this scenario. However, if the problem was due + // to situations such as oom-killer attempting to free up system + // resources, retrying would exacerbate the problem. + const isRequestStillPending = !!this._request; + if (isRequestStillPending) { + // If a signal is present, we can be reasonably confident the process + // was killed externally. Log this fact so it's more clear to users that + // something went wrong externally, rather than a bug in Jest itself. + const error = new Error( + signal != null + ? `A jest worker process (pid=${this._child.pid}) was terminated by another process: signal=${signal}, exitCode=${exitCode}. Operating system logs may contain more information on why this occurred.` + : `A jest worker process (pid=${this._child.pid}) crashed for an unknown reason: exitCode=${exitCode}` + ); + this._onProcessEnd(error, null); + } this._shutdown(); } } - send(request, onProcessStart, onProcessEnd, onCustomMessage) { + this._stderrBuffer = []; onProcessStart(this); - this._onProcessEnd = (...args) => { + const hasRequest = !!this._request; + // Clean the request to avoid sending past requests to workers that fail // while waiting for a new request (timers, unhandled rejections...) this._request = null; + if ( + this._childIdleMemoryUsageLimit && + this._child.connected && + hasRequest + ) { + this.checkMemoryUsage(); + } return onProcessEnd(...args); }; - this._onCustomMessage = (...arg) => onCustomMessage(...arg); - this._request = request; this._retries = 0; - + // eslint-disable-next-line @typescript-eslint/no-empty-function this._child.send(request, () => {}); } - waitForExit() { return this._exitPromise; } - + killChild() { + // We store a reference so that there's no way we can accidentally + // kill a new worker that has been spawned. + const childToKill = this._child; + childToKill.kill('SIGTERM'); + return setTimeout(() => childToKill.kill('SIGKILL'), SIGKILL_DELAY); + } forceExit() { - this._child.kill('SIGTERM'); - - const sigkillTimeout = setTimeout( - () => this._child.kill('SIGKILL'), - SIGKILL_DELAY - ); - + this.state = _types.WorkerStates.SHUTTING_DOWN; + const sigkillTimeout = this.killChild(); this._exitPromise.then(() => clearTimeout(sigkillTimeout)); } - getWorkerId() { return this._options.workerId; } + /** + * Gets the process id of the worker. + * + * @returns Process id. + */ + getWorkerSystemId() { + return this._child.pid; + } getStdout() { return this._stdout; } - getStderr() { return this._stderr; } - _getFakeStream() { - if (!this._fakeStream) { - this._fakeStream = new (_stream().PassThrough)(); + /** + * Gets the last reported memory usage. + * + * @returns Memory usage in bytes. + */ + getMemoryUsage() { + if (!this._memoryUsagePromise) { + let rejectCallback; + const promise = new Promise((resolve, reject) => { + this._resolveMemoryUsage = resolve; + rejectCallback = reject; + }); + this._memoryUsagePromise = promise; + if (!this._child.connected && rejectCallback) { + rejectCallback(new Error('Child process is not running.')); + this._memoryUsagePromise = undefined; + this._resolveMemoryUsage = undefined; + return promise; + } + this._child.send([_types.CHILD_MESSAGE_MEM_USAGE], err => { + if (err && rejectCallback) { + this._memoryUsagePromise = undefined; + this._resolveMemoryUsage = undefined; + rejectCallback(err); + } + }); + return promise; } + return this._memoryUsagePromise; + } - return this._fakeStream; + /** + * Gets updated memory usage and restarts if required + */ + checkMemoryUsage() { + if (this._childIdleMemoryUsageLimit) { + this._memoryUsageCheck = true; + this._child.send([_types.CHILD_MESSAGE_MEM_USAGE], err => { + if (err) { + console.error('Unable to check memory usage', err); + } + }); + } else { + console.warn( + 'Memory usage of workers can only be checked if a limit is set' + ); + } + } + isWorkerRunning() { + return this._child.connected && !this._child.killed; } } - exports.default = ChildProcessWorker; diff --git a/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts b/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts deleted file mode 100644 index 4696ecc3..00000000 --- a/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/// -import { ChildMessage, OnCustomMessage, OnEnd, OnStart, WorkerInterface, WorkerOptions } from '../types'; -export default class ExperimentalWorker implements WorkerInterface { - private _worker; - private _options; - private _request; - private _retries; - private _onProcessEnd; - private _onCustomMessage; - private _fakeStream; - private _stdout; - private _stderr; - private _exitPromise; - private _resolveExitPromise; - private _forceExited; - constructor(options: WorkerOptions); - initialize(): void; - private _shutdown; - private _onMessage; - private _onExit; - waitForExit(): Promise; - forceExit(): void; - send(request: ChildMessage, onProcessStart: OnStart, onProcessEnd: OnEnd | null, onCustomMessage: OnCustomMessage): void; - getWorkerId(): number; - getStdout(): NodeJS.ReadableStream | null; - getStderr(): NodeJS.ReadableStream | null; - private _getFakeStream; -} diff --git a/node_modules/jest-worker/build/workers/NodeThreadsWorker.js b/node_modules/jest-worker/build/workers/NodeThreadsWorker.js index 21b7dd2a..e25247a6 100644 --- a/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +++ b/node_modules/jest-worker/build/workers/NodeThreadsWorker.js @@ -4,185 +4,114 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; - -function path() { - const data = _interopRequireWildcard(require('path')); - - path = function () { +function _os() { + const data = require('os'); + _os = function () { return data; }; - return data; } - -function _stream() { - const data = require('stream'); - - _stream = function () { - return data; - }; - - return data; -} - function _worker_threads() { const data = require('worker_threads'); - _worker_threads = function () { return data; }; - return data; } - function _mergeStream() { const data = _interopRequireDefault(require('merge-stream')); - _mergeStream = function () { return data; }; - return data; } - var _types = require('../types'); - +var _WorkerAbstract = _interopRequireDefault(require('./WorkerAbstract')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {default: obj}; } - -function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== 'function') return null; - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function (nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); -} - -function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) { - return {default: obj}; - } - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = - Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor - ? Object.getOwnPropertyDescriptor(obj, key) - : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} - -class ExperimentalWorker { +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +class ExperimentalWorker extends _WorkerAbstract.default { + _worker; + _options; + _request; + _retries; + _onProcessEnd; + _onCustomMessage; + _stdout; + _stderr; + _memoryUsagePromise; + _resolveMemoryUsage; + _childWorkerPath; + _childIdleMemoryUsage; + _childIdleMemoryUsageLimit; + _memoryUsageCheck = false; constructor(options) { - _defineProperty(this, '_worker', void 0); - - _defineProperty(this, '_options', void 0); - - _defineProperty(this, '_request', void 0); - - _defineProperty(this, '_retries', void 0); - - _defineProperty(this, '_onProcessEnd', void 0); - - _defineProperty(this, '_onCustomMessage', void 0); - - _defineProperty(this, '_fakeStream', void 0); - - _defineProperty(this, '_stdout', void 0); - - _defineProperty(this, '_stderr', void 0); - - _defineProperty(this, '_exitPromise', void 0); - - _defineProperty(this, '_resolveExitPromise', void 0); - - _defineProperty(this, '_forceExited', void 0); - + super(options); this._options = options; this._request = null; - this._fakeStream = null; this._stdout = null; this._stderr = null; - this._exitPromise = new Promise(resolve => { - this._resolveExitPromise = resolve; - }); - this._forceExited = false; + this._childWorkerPath = + options.childWorkerPath || require.resolve('./threadChild'); + this._childIdleMemoryUsage = null; + this._childIdleMemoryUsageLimit = options.idleMemoryLimit || null; this.initialize(); } - initialize() { - this._worker = new (_worker_threads().Worker)( - path().resolve(__dirname, './threadChild.js'), - { - eval: false, - // @ts-expect-error: added in newer versions - resourceLimits: this._options.resourceLimits, - stderr: true, - stdout: true, - workerData: this._options.workerData, - ...this._options.forkOptions - } - ); - + if ( + this.state === _types.WorkerStates.OUT_OF_MEMORY || + this.state === _types.WorkerStates.SHUTTING_DOWN || + this.state === _types.WorkerStates.SHUT_DOWN + ) { + return; + } + if (this._worker) { + this._worker.terminate(); + } + this.state = _types.WorkerStates.STARTING; + this._worker = new (_worker_threads().Worker)(this._childWorkerPath, { + eval: false, + resourceLimits: this._options.resourceLimits, + stderr: true, + stdout: true, + workerData: this._options.workerData, + ...this._options.forkOptions + }); if (this._worker.stdout) { if (!this._stdout) { // We need to add a permanent stream to the merged stream to prevent it // from ending when the subprocess stream ends this._stdout = (0, _mergeStream().default)(this._getFakeStream()); } - this._stdout.add(this._worker.stdout); } - if (this._worker.stderr) { if (!this._stderr) { // We need to add a permanent stream to the merged stream to prevent it // from ending when the subprocess stream ends this._stderr = (0, _mergeStream().default)(this._getFakeStream()); } - this._stderr.add(this._worker.stderr); } + // This can be useful for debugging. + if (!(this._options.silent ?? true)) { + this._worker.stdout.setEncoding('utf8'); + // eslint-disable-next-line no-console + this._worker.stdout.on('data', console.log); + this._worker.stderr.setEncoding('utf8'); + this._worker.stderr.on('data', console.error); + } this._worker.on('message', this._onMessage.bind(this)); - this._worker.on('exit', this._onExit.bind(this)); - + this._worker.on('error', this._onError.bind(this)); this._worker.postMessage([ _types.CHILD_MESSAGE_INITIALIZE, false, @@ -191,13 +120,13 @@ class ExperimentalWorker { String(this._options.workerId + 1) // 0-indexed workerId, 1-indexed JEST_WORKER_ID ]); - this._retries++; // If we exceeded the amount of retries, we will emulate an error reply + this._retries++; + + // If we exceeded the amount of retries, we will emulate an error reply // coming from the child. This avoids code duplication related with cleaning // the queue, and scheduling the next call. - if (this._retries > this._options.maxRetries) { const error = new Error('Call retries were exceeded'); - this._onMessage([ _types.PARENT_MESSAGE_CLIENT_ERROR, error.name, @@ -208,137 +137,223 @@ class ExperimentalWorker { } ]); } + this.state = _types.WorkerStates.OK; + if (this._resolveWorkerReady) { + this._resolveWorkerReady(); + } } - - _shutdown() { - // End the permanent stream so the merged stream end too - if (this._fakeStream) { - this._fakeStream.end(); - - this._fakeStream = null; + _onError(error) { + if (error.message.includes('heap out of memory')) { + this.state = _types.WorkerStates.OUT_OF_MEMORY; + + // Threads don't behave like processes, they don't crash when they run out of + // memory. But for consistency we want them to behave like processes so we call + // terminate to simulate a crash happening that was not planned + this._worker.terminate(); } - - this._resolveExitPromise(); } - _onMessage(response) { + // Ignore messages not intended for us + if (!Array.isArray(response)) return; let error; - switch (response[0]) { case _types.PARENT_MESSAGE_OK: this._onProcessEnd(null, response[1]); - break; - case _types.PARENT_MESSAGE_CLIENT_ERROR: error = response[4]; - if (error != null && typeof error === 'object') { - const extra = error; // @ts-expect-error: no index - - const NativeCtor = global[response[1]]; + const extra = error; + // @ts-expect-error: no index + const NativeCtor = globalThis[response[1]]; const Ctor = typeof NativeCtor === 'function' ? NativeCtor : Error; error = new Ctor(response[2]); error.type = response[1]; error.stack = response[3]; - for (const key in extra) { // @ts-expect-error: no index error[key] = extra[key]; } } - this._onProcessEnd(error, null); - break; - case _types.PARENT_MESSAGE_SETUP_ERROR: - error = new Error('Error when calling setup: ' + response[2]); // @ts-expect-error: adding custom properties to errors. + error = new Error(`Error when calling setup: ${response[2]}`); + // @ts-expect-error: adding custom properties to errors. error.type = response[1]; error.stack = response[3]; - this._onProcessEnd(error, null); - break; - case _types.PARENT_MESSAGE_CUSTOM: this._onCustomMessage(response[1]); - break; - + case _types.PARENT_MESSAGE_MEM_USAGE: + this._childIdleMemoryUsage = response[1]; + if (this._resolveMemoryUsage) { + this._resolveMemoryUsage(response[1]); + this._resolveMemoryUsage = undefined; + this._memoryUsagePromise = undefined; + } + this._performRestartIfRequired(); + break; default: - throw new TypeError('Unexpected response from worker: ' + response[0]); + // Ignore messages not intended for us + break; } } - _onExit(exitCode) { - if (exitCode !== 0 && !this._forceExited) { + this._workerReadyPromise = undefined; + this._resolveWorkerReady = undefined; + if (exitCode !== 0 && this.state === _types.WorkerStates.OUT_OF_MEMORY) { + this._onProcessEnd( + new Error('Jest worker ran out of memory and crashed'), + null + ); + this._shutdown(); + } else if ( + (exitCode !== 0 && + this.state !== _types.WorkerStates.SHUTTING_DOWN && + this.state !== _types.WorkerStates.SHUT_DOWN) || + this.state === _types.WorkerStates.RESTARTING + ) { this.initialize(); - if (this._request) { this._worker.postMessage(this._request); } } else { + // If the worker thread exits while a request is still pending, throw an + // error. This is unexpected and tests may not have run to completion. + const isRequestStillPending = !!this._request; + if (isRequestStillPending) { + this._onProcessEnd( + new Error( + 'A Jest worker thread exited unexpectedly before finishing tests for an unknown reason. One of the ways this can happen is if process.exit() was called in testing code.' + ), + null + ); + } this._shutdown(); } } - waitForExit() { return this._exitPromise; } - forceExit() { - this._forceExited = true; - + this.state = _types.WorkerStates.SHUTTING_DOWN; this._worker.terminate(); } - send(request, onProcessStart, onProcessEnd, onCustomMessage) { onProcessStart(this); - this._onProcessEnd = (...args) => { - var _onProcessEnd; + const hasRequest = !!this._request; // Clean the request to avoid sending past requests to workers that fail // while waiting for a new request (timers, unhandled rejections...) this._request = null; - const res = - (_onProcessEnd = onProcessEnd) === null || _onProcessEnd === void 0 - ? void 0 - : _onProcessEnd(...args); // Clean up the reference so related closures can be garbage collected. + if (this._childIdleMemoryUsageLimit && hasRequest) { + this.checkMemoryUsage(); + } + const res = onProcessEnd?.(...args); + // Clean up the reference so related closures can be garbage collected. onProcessEnd = null; return res; }; - this._onCustomMessage = (...arg) => onCustomMessage(...arg); - this._request = request; this._retries = 0; - this._worker.postMessage(request); } - getWorkerId() { return this._options.workerId; } - getStdout() { return this._stdout; } - getStderr() { return this._stderr; } + _performRestartIfRequired() { + if (this._memoryUsageCheck) { + this._memoryUsageCheck = false; + let limit = this._childIdleMemoryUsageLimit; + + // TODO: At some point it would make sense to make use of + // stringToBytes found in jest-config, however as this + // package does not have any dependencies on an other jest + // packages that can wait until some other time. + if (limit && limit > 0 && limit <= 1) { + limit = Math.floor((0, _os().totalmem)() * limit); + } else if (limit) { + limit = Math.floor(limit); + } + if ( + limit && + this._childIdleMemoryUsage && + this._childIdleMemoryUsage > limit + ) { + this.state = _types.WorkerStates.RESTARTING; + this._worker.terminate(); + } + } + } + + /** + * Gets the last reported memory usage. + * + * @returns Memory usage in bytes. + */ + getMemoryUsage() { + if (!this._memoryUsagePromise) { + let rejectCallback; + const promise = new Promise((resolve, reject) => { + this._resolveMemoryUsage = resolve; + rejectCallback = reject; + }); + this._memoryUsagePromise = promise; + if (!this._worker.threadId) { + rejectCallback(new Error('Child process is not running.')); + this._memoryUsagePromise = undefined; + this._resolveMemoryUsage = undefined; + return promise; + } + try { + this._worker.postMessage([_types.CHILD_MESSAGE_MEM_USAGE]); + } catch (err) { + this._memoryUsagePromise = undefined; + this._resolveMemoryUsage = undefined; + rejectCallback(err); + } + return promise; + } + return this._memoryUsagePromise; + } - _getFakeStream() { - if (!this._fakeStream) { - this._fakeStream = new (_stream().PassThrough)(); + /** + * Gets updated memory usage and restarts if required + */ + checkMemoryUsage() { + if (this._childIdleMemoryUsageLimit) { + this._memoryUsageCheck = true; + this._worker.postMessage([_types.CHILD_MESSAGE_MEM_USAGE]); + } else { + console.warn( + 'Memory usage of workers can only be checked if a limit is set' + ); } + } - return this._fakeStream; + /** + * Gets the thread id of the worker. + * + * @returns Thread id. + */ + getWorkerSystemId() { + return this._worker.threadId; + } + isWorkerRunning() { + return this._worker.threadId >= 0; } } - exports.default = ExperimentalWorker; diff --git a/node_modules/jest-worker/build/workers/messageParent.d.ts b/node_modules/jest-worker/build/workers/messageParent.d.ts deleted file mode 100644 index 795bb351..00000000 --- a/node_modules/jest-worker/build/workers/messageParent.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/// -export default function messageParent(message: unknown, parentProcess?: NodeJS.Process): void; diff --git a/node_modules/jest-worker/build/workers/messageParent.js b/node_modules/jest-worker/build/workers/messageParent.js index 51765ff3..62e2ccec 100644 --- a/node_modules/jest-worker/build/workers/messageParent.js +++ b/node_modules/jest-worker/build/workers/messageParent.js @@ -4,32 +4,27 @@ Object.defineProperty(exports, '__esModule', { value: true }); exports.default = messageParent; - +function _worker_threads() { + const data = require('worker_threads'); + _worker_threads = function () { + return data; + }; + return data; +} var _types = require('../types'); - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -const isWorkerThread = (() => { - try { - // `Require` here to support Node v10 - const {isMainThread, parentPort} = require('worker_threads'); - - return !isMainThread && parentPort != null; - } catch { - return false; - } -})(); function messageParent(message, parentProcess = process) { - if (isWorkerThread) { - // `Require` here to support Node v10 - const {parentPort} = require('worker_threads'); // ! is safe due to `null` check in `isWorkerThread` - - parentPort.postMessage([_types.PARENT_MESSAGE_CUSTOM, message]); + if (!_worker_threads().isMainThread && _worker_threads().parentPort != null) { + _worker_threads().parentPort.postMessage([ + _types.PARENT_MESSAGE_CUSTOM, + message + ]); } else if (typeof parentProcess.send === 'function') { parentProcess.send([_types.PARENT_MESSAGE_CUSTOM, message]); } else { diff --git a/node_modules/jest-worker/build/workers/processChild.d.ts b/node_modules/jest-worker/build/workers/processChild.d.ts deleted file mode 100644 index fac0c7e3..00000000 --- a/node_modules/jest-worker/build/workers/processChild.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -export {}; diff --git a/node_modules/jest-worker/build/workers/processChild.js b/node_modules/jest-worker/build/workers/processChild.js index fdf766ec..1a47f23c 100644 --- a/node_modules/jest-worker/build/workers/processChild.js +++ b/node_modules/jest-worker/build/workers/processChild.js @@ -1,16 +1,24 @@ 'use strict'; +function _jestUtil() { + const data = require('jest-util'); + _jestUtil = function () { + return data; + }; + return data; +} var _types = require('../types'); - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ + let file = null; let setupArgs = []; let initialized = false; + /** * This file is a small bootstrapper for workers. It sets up the communication * between the worker and the parent process, interpreting parent messages and @@ -24,123 +32,126 @@ let initialized = false; * If an invalid message is detected, the child will exit (by throwing) with a * non-zero exit code. */ - const messageListener = request => { switch (request[0]) { case _types.CHILD_MESSAGE_INITIALIZE: const init = request; file = init[2]; - setupArgs = request[3]; + setupArgs = init[3]; break; - case _types.CHILD_MESSAGE_CALL: const call = request; execMethod(call[2], call[3]); break; - case _types.CHILD_MESSAGE_END: end(); break; - + case _types.CHILD_MESSAGE_MEM_USAGE: + reportMemoryUsage(); + break; + case _types.CHILD_MESSAGE_CALL_SETUP: + if (initialized) { + reportSuccess(void 0); + } else { + const main = require(file); + initialized = true; + if (main.setup) { + execFunction( + main.setup, + main, + setupArgs, + reportSuccess, + reportInitializeError + ); + } else { + reportSuccess(void 0); + } + } + break; default: throw new TypeError( - 'Unexpected request from parent process: ' + request[0] + `Unexpected request from parent process: ${request[0]}` ); } }; - process.on('message', messageListener); - function reportSuccess(result) { if (!process || !process.send) { throw new Error('Child can only be used on a forked process'); } - process.send([_types.PARENT_MESSAGE_OK, result]); } - function reportClientError(error) { return reportError(error, _types.PARENT_MESSAGE_CLIENT_ERROR); } - function reportInitializeError(error) { return reportError(error, _types.PARENT_MESSAGE_SETUP_ERROR); } - +function reportMemoryUsage() { + if (!process || !process.send) { + throw new Error('Child can only be used on a forked process'); + } + const msg = [_types.PARENT_MESSAGE_MEM_USAGE, process.memoryUsage().heapUsed]; + process.send(msg); +} function reportError(error, type) { if (!process || !process.send) { throw new Error('Child can only be used on a forked process'); } - if (error == null) { error = new Error('"null" or "undefined" thrown'); } - process.send([ type, error.constructor && error.constructor.name, error.message, error.stack, - typeof error === 'object' ? {...error} : error + typeof error === 'object' + ? { + ...error + } + : error ]); } - function end() { const main = require(file); - if (!main.teardown) { exitProcess(); return; } - execFunction(main.teardown, main, [], exitProcess, exitProcess); } - function exitProcess() { // Clean up open handles so the process ideally exits gracefully process.removeListener('message', messageListener); } - function execMethod(method, args) { const main = require(file); - let fn; - if (method === 'default') { - fn = main.__esModule ? main['default'] : main; + fn = main.__esModule ? main.default : main; } else { fn = main[method]; } - function execHelper() { execFunction(fn, main, args, reportSuccess, reportClientError); } - if (initialized || !main.setup) { execHelper(); return; } - initialized = true; execFunction(main.setup, main, setupArgs, execHelper, reportInitializeError); } - -const isPromise = obj => - !!obj && - (typeof obj === 'object' || typeof obj === 'function') && - typeof obj.then === 'function'; - function execFunction(fn, ctx, args, onResult, onError) { let result; - try { result = fn.apply(ctx, args); } catch (err) { onError(err); return; } - - if (isPromise(result)) { + if ((0, _jestUtil().isPromise)(result)) { result.then(onResult, onError); } else { onResult(result); diff --git a/node_modules/jest-worker/build/workers/threadChild.d.ts b/node_modules/jest-worker/build/workers/threadChild.d.ts deleted file mode 100644 index fac0c7e3..00000000 --- a/node_modules/jest-worker/build/workers/threadChild.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -export {}; diff --git a/node_modules/jest-worker/build/workers/threadChild.js b/node_modules/jest-worker/build/workers/threadChild.js index dae1e649..16aca004 100644 --- a/node_modules/jest-worker/build/workers/threadChild.js +++ b/node_modules/jest-worker/build/workers/threadChild.js @@ -2,25 +2,30 @@ function _worker_threads() { const data = require('worker_threads'); - _worker_threads = function () { return data; }; - return data; } - +function _jestUtil() { + const data = require('jest-util'); + _jestUtil = function () { + return data; + }; + return data; +} var _types = require('../types'); - /** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ + let file = null; let setupArgs = []; let initialized = false; + /** * This file is a small bootstrapper for workers. It sets up the communication * between the worker and the parent process, interpreting parent messages and @@ -34,124 +39,137 @@ let initialized = false; * If an invalid message is detected, the child will exit (by throwing) with a * non-zero exit code. */ - const messageListener = request => { switch (request[0]) { case _types.CHILD_MESSAGE_INITIALIZE: const init = request; file = init[2]; - setupArgs = request[3]; - process.env.JEST_WORKER_ID = request[4]; + setupArgs = init[3]; + process.env.JEST_WORKER_ID = init[4]; break; - case _types.CHILD_MESSAGE_CALL: const call = request; execMethod(call[2], call[3]); break; - case _types.CHILD_MESSAGE_END: end(); break; - + case _types.CHILD_MESSAGE_MEM_USAGE: + reportMemoryUsage(); + break; + case _types.CHILD_MESSAGE_CALL_SETUP: + if (initialized) { + reportSuccess(void 0); + } else { + const main = require(file); + initialized = true; + if (main.setup) { + execFunction( + main.setup, + main, + setupArgs, + reportSuccess, + reportInitializeError + ); + } else { + reportSuccess(void 0); + } + } + break; default: throw new TypeError( - 'Unexpected request from parent process: ' + request[0] + `Unexpected request from parent process: ${request[0]}` ); } }; - _worker_threads().parentPort.on('message', messageListener); - +function reportMemoryUsage() { + if (_worker_threads().isMainThread) { + throw new Error('Child can only be used on a forked process'); + } + const msg = [_types.PARENT_MESSAGE_MEM_USAGE, process.memoryUsage().heapUsed]; + _worker_threads().parentPort.postMessage(msg); +} function reportSuccess(result) { if (_worker_threads().isMainThread) { throw new Error('Child can only be used on a forked process'); } - - _worker_threads().parentPort.postMessage([_types.PARENT_MESSAGE_OK, result]); + try { + _worker_threads().parentPort.postMessage([ + _types.PARENT_MESSAGE_OK, + result + ]); + } catch (err) { + // Handling it here to avoid unhandled `DataCloneError` rejection + // which is hard to distinguish on the parent side + // (such error doesn't have any message or stack trace) + reportClientError(err); + } } - function reportClientError(error) { return reportError(error, _types.PARENT_MESSAGE_CLIENT_ERROR); } - function reportInitializeError(error) { return reportError(error, _types.PARENT_MESSAGE_SETUP_ERROR); } - function reportError(error, type) { if (_worker_threads().isMainThread) { throw new Error('Child can only be used on a forked process'); } - if (error == null) { error = new Error('"null" or "undefined" thrown'); } - _worker_threads().parentPort.postMessage([ type, error.constructor && error.constructor.name, error.message, error.stack, - typeof error === 'object' ? {...error} : error + typeof error === 'object' + ? { + ...error + } + : error ]); } - function end() { const main = require(file); - if (!main.teardown) { exitProcess(); return; } - execFunction(main.teardown, main, [], exitProcess, exitProcess); } - function exitProcess() { // Clean up open handles so the worker ideally exits gracefully _worker_threads().parentPort.removeListener('message', messageListener); } - function execMethod(method, args) { const main = require(file); - let fn; - if (method === 'default') { - fn = main.__esModule ? main['default'] : main; + fn = main.__esModule ? main.default : main; } else { fn = main[method]; } - function execHelper() { execFunction(fn, main, args, reportSuccess, reportClientError); } - if (initialized || !main.setup) { execHelper(); return; } - initialized = true; execFunction(main.setup, main, setupArgs, execHelper, reportInitializeError); } - -const isPromise = obj => - !!obj && - (typeof obj === 'object' || typeof obj === 'function') && - typeof obj.then === 'function'; - function execFunction(fn, ctx, args, onResult, onError) { let result; - try { result = fn.apply(ctx, args); } catch (err) { onError(err); return; } - - if (isPromise(result)) { + if ((0, _jestUtil().isPromise)(result)) { result.then(onResult, onError); } else { onResult(result); diff --git a/node_modules/jest-worker/node_modules/supports-color/browser.js b/node_modules/jest-worker/node_modules/supports-color/browser.js deleted file mode 100644 index f097aecd..00000000 --- a/node_modules/jest-worker/node_modules/supports-color/browser.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-env browser */ -'use strict'; - -function getChromeVersion() { - const matches = /(Chrome|Chromium)\/(?\d+)\./.exec(navigator.userAgent); - - if (!matches) { - return; - } - - return Number.parseInt(matches.groups.chromeVersion, 10); -} - -const colorSupport = getChromeVersion() >= 69 ? { - level: 1, - hasBasic: true, - has256: false, - has16m: false -} : false; - -module.exports = { - stdout: colorSupport, - stderr: colorSupport -}; diff --git a/node_modules/jest-worker/node_modules/supports-color/index.js b/node_modules/jest-worker/node_modules/supports-color/index.js deleted file mode 100644 index 2dd2fcb0..00000000 --- a/node_modules/jest-worker/node_modules/supports-color/index.js +++ /dev/null @@ -1,152 +0,0 @@ -'use strict'; -const os = require('os'); -const tty = require('tty'); -const hasFlag = require('has-flag'); - -const {env} = process; - -let flagForceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false') || - hasFlag('color=never')) { - flagForceColor = 0; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - flagForceColor = 1; -} - -function envForceColor() { - if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - return 1; - } - - if (env.FORCE_COLOR === 'false') { - return 0; - } - - return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); - } -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) { - const noFlagForceColor = envForceColor(); - if (noFlagForceColor !== undefined) { - flagForceColor = noFlagForceColor; - } - - const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; - - if (forceColor === 0) { - return 0; - } - - if (sniffFlags) { - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - } - - if (haveStream && !streamIsTTY && forceColor === undefined) { - return 0; - } - - const min = forceColor || 0; - - if (env.TERM === 'dumb') { - return min; - } - - if (process.platform === 'win32') { - // Windows 10 build 10586 is the first Windows release that supports 256 colors. - // Windows 10 build 14931 is the first release that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - return min; -} - -function getSupportLevel(stream, options = {}) { - const level = supportsColor(stream, { - streamIsTTY: stream && stream.isTTY, - ...options - }); - - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel({isTTY: tty.isatty(1)}), - stderr: getSupportLevel({isTTY: tty.isatty(2)}) -}; diff --git a/node_modules/jest-worker/node_modules/supports-color/license b/node_modules/jest-worker/node_modules/supports-color/license deleted file mode 100644 index fa7ceba3..00000000 --- a/node_modules/jest-worker/node_modules/supports-color/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/jest-worker/node_modules/supports-color/package.json b/node_modules/jest-worker/node_modules/supports-color/package.json deleted file mode 100644 index a97bf2a1..00000000 --- a/node_modules/jest-worker/node_modules/supports-color/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "supports-color", - "version": "8.1.1", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "funding": "https://github.com/chalk/supports-color?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "exports": { - "node": "./index.js", - "default": "./browser.js" - }, - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "import-fresh": "^3.2.2", - "xo": "^0.35.0" - }, - "browser": "browser.js" -} diff --git a/node_modules/jest-worker/node_modules/supports-color/readme.md b/node_modules/jest-worker/node_modules/supports-color/readme.md deleted file mode 100644 index 3eedd1ca..00000000 --- a/node_modules/jest-worker/node_modules/supports-color/readme.md +++ /dev/null @@ -1,77 +0,0 @@ -# supports-color - -> Detect whether a terminal supports color - -## Install - -``` -$ npm install supports-color -``` - -## Usage - -```js -const supportsColor = require('supports-color'); - -if (supportsColor.stdout) { - console.log('Terminal stdout supports color'); -} - -if (supportsColor.stdout.has256) { - console.log('Terminal stdout supports 256 colors'); -} - -if (supportsColor.stderr.has16m) { - console.log('Terminal stderr supports 16 million colors (truecolor)'); -} -``` - -## API - -Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported. - -The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) - -### `require('supports-color').supportsColor(stream, options?)` - -Additionally, `supports-color` exposes the `.supportsColor()` function that takes an arbitrary write stream (e.g. `process.stdout`) and an optional options object to (re-)evaluate color support for an arbitrary stream. - -For example, `require('supports-color').stdout` is the equivalent of `require('supports-color').supportsColor(process.stdout)`. - -The options object supports a single boolean property `sniffFlags`. By default it is `true`, which instructs `supportsColor()` to sniff `process.argv` for the multitude of `--color` flags (see _Info_ below). If `false`, then `process.argv` is not considered when determining color support. - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks. - -Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- diff --git a/node_modules/jest-worker/package.json b/node_modules/jest-worker/package.json index 06280d1c..6975f972 100644 --- a/node_modules/jest-worker/package.json +++ b/node_modules/jest-worker/package.json @@ -1,9 +1,9 @@ { "name": "jest-worker", - "version": "27.5.1", + "version": "29.7.0", "repository": { "type": "git", - "url": "https://github.com/facebook/jest.git", + "url": "https://github.com/jestjs/jest.git", "directory": "packages/jest-worker" }, "license": "MIT", @@ -18,21 +18,25 @@ }, "dependencies": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "devDependencies": { + "@babel/core": "^7.11.6", + "@tsd/typescript": "^5.0.4", "@types/merge-stream": "^1.1.2", "@types/supports-color": "^8.1.0", "get-stream": "^6.0.0", - "jest-leak-detector": "^27.5.1", + "jest-leak-detector": "^29.7.0", + "tsd-lite": "^0.7.0", "worker-farm": "^1.6.0" }, "engines": { - "node": ">= 10.13.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "publishConfig": { "access": "public" }, - "gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850" + "gitHead": "4e56991693da7cd4c3730dc3579a1dd1403ee630" } diff --git a/node_modules/json-schema-traverse/.eslintrc.yml b/node_modules/json-schema-traverse/.eslintrc.yml index ab1762da..618559ab 100644 --- a/node_modules/json-schema-traverse/.eslintrc.yml +++ b/node_modules/json-schema-traverse/.eslintrc.yml @@ -4,7 +4,7 @@ env: browser: true rules: block-scoped-var: 2 - complexity: [2, 13] + complexity: [2, 15] curly: [2, multi-or-nest, consistent] dot-location: [2, property] dot-notation: 2 diff --git a/node_modules/json-schema-traverse/.travis.yml b/node_modules/json-schema-traverse/.travis.yml deleted file mode 100644 index 7ddce74b..00000000 --- a/node_modules/json-schema-traverse/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "4" - - "6" - - "7" - - "8" -after_script: - - coveralls < coverage/lcov.info diff --git a/node_modules/json-schema-traverse/README.md b/node_modules/json-schema-traverse/README.md index d5ccaf45..f3e60073 100644 --- a/node_modules/json-schema-traverse/README.md +++ b/node_modules/json-schema-traverse/README.md @@ -1,9 +1,9 @@ # json-schema-traverse Traverse JSON Schema passing each schema object to callback -[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse) -[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) +[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild) +[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse) +[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) ## Install @@ -78,6 +78,18 @@ traverse(schema, {allKeys: true, cb}); Without option `allKeys: true` callback will be called only with root schema. +## Enterprise support + +json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. + + +## Security contact + +To report a security vulnerability, please use the +[Tidelift security contact](https://tidelift.com/security). +Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. + + ## License [MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/node_modules/json-schema-traverse/index.js b/node_modules/json-schema-traverse/index.js index d4a18dfc..e521bfa8 100644 --- a/node_modules/json-schema-traverse/index.js +++ b/node_modules/json-schema-traverse/index.js @@ -21,7 +21,10 @@ traverse.keywords = { contains: true, additionalProperties: true, propertyNames: true, - not: true + not: true, + if: true, + then: true, + else: true }; traverse.arrayKeywords = { @@ -32,6 +35,7 @@ traverse.arrayKeywords = { }; traverse.propsKeywords = { + $defs: true, definitions: true, properties: true, patternProperties: true, diff --git a/node_modules/json-schema-traverse/package.json b/node_modules/json-schema-traverse/package.json index 15660632..e32dfbae 100644 --- a/node_modules/json-schema-traverse/package.json +++ b/node_modules/json-schema-traverse/package.json @@ -1,8 +1,9 @@ { "name": "json-schema-traverse", - "version": "0.4.1", + "version": "1.0.0", "description": "Traverse JSON Schema passing each schema object to callback", "main": "index.js", + "types": "index.d.ts", "scripts": { "eslint": "eslint index.js spec", "test-spec": "mocha spec -R spec", @@ -24,10 +25,9 @@ }, "homepage": "https://github.com/epoberezkin/json-schema-traverse#readme", "devDependencies": { - "coveralls": "^2.13.1", - "eslint": "^3.19.0", - "mocha": "^3.4.2", - "nyc": "^11.0.2", + "eslint": "^7.3.1", + "mocha": "^8.0.1", + "nyc": "^15.0.0", "pre-commit": "^1.2.2" }, "nyc": { diff --git a/node_modules/lodash.isplainobject/LICENSE b/node_modules/lodash.isplainobject/LICENSE deleted file mode 100644 index e0c69d56..00000000 --- a/node_modules/lodash.isplainobject/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/node_modules/lodash.isplainobject/README.md b/node_modules/lodash.isplainobject/README.md deleted file mode 100644 index aeefd74d..00000000 --- a/node_modules/lodash.isplainobject/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isplainobject v4.0.6 - -The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isplainobject -``` - -In Node.js: -```js -var isPlainObject = require('lodash.isplainobject'); -``` - -See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details. diff --git a/node_modules/lodash.isplainobject/index.js b/node_modules/lodash.isplainobject/index.js deleted file mode 100644 index 0f820ee7..00000000 --- a/node_modules/lodash.isplainobject/index.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** `Object#toString` result references. */ -var objectTag = '[object Object]'; - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -module.exports = isPlainObject; diff --git a/node_modules/lodash.isplainobject/package.json b/node_modules/lodash.isplainobject/package.json deleted file mode 100644 index 86f6a07e..00000000 --- a/node_modules/lodash.isplainobject/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "lodash.isplainobject", - "version": "4.0.6", - "description": "The lodash method `_.isPlainObject` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "keywords": "lodash-modularized, isplainobject", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Blaine Bublitz (https://github.com/phated)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/node_modules/lodash.isstring/LICENSE b/node_modules/lodash.isstring/LICENSE deleted file mode 100644 index b054ca5a..00000000 --- a/node_modules/lodash.isstring/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/lodash.isstring/README.md b/node_modules/lodash.isstring/README.md deleted file mode 100644 index f184029a..00000000 --- a/node_modules/lodash.isstring/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isstring v4.0.1 - -The [lodash](https://lodash.com/) method `_.isString` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isstring -``` - -In Node.js: -```js -var isString = require('lodash.isstring'); -``` - -See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.isstring) for more details. diff --git a/node_modules/lodash.isstring/index.js b/node_modules/lodash.isstring/index.js deleted file mode 100644 index 408225c5..00000000 --- a/node_modules/lodash.isstring/index.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * lodash 4.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var stringTag = '[object String]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} - -module.exports = isString; diff --git a/node_modules/lodash.isstring/package.json b/node_modules/lodash.isstring/package.json deleted file mode 100644 index 1331535d..00000000 --- a/node_modules/lodash.isstring/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "lodash.isstring", - "version": "4.0.1", - "description": "The lodash method `_.isString` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "keywords": "lodash-modularized, isstring", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Blaine Bublitz (https://github.com/phated)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/LICENSE b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/LICENSE deleted file mode 100644 index 90139aa7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/README.md b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/README.md deleted file mode 100644 index 63e784fa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/README.md +++ /dev/null @@ -1,745 +0,0 @@ -# ajv-keywords - -Custom JSON-Schema keywords for [Ajv](https://github.com/epoberezkin/ajv) validator - -[![build](https://github.com/ajv-validator/ajv-keywords/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv-keywords/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/ajv-keywords.svg)](https://www.npmjs.com/package/ajv-keywords) -[![npm downloads](https://img.shields.io/npm/dm/ajv-keywords.svg)](https://www.npmjs.com/package/ajv-keywords) -[![coverage](https://coveralls.io/repos/github/ajv-validator/ajv-keywords/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv-keywords?branch=master) -[![gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) - -**Please note**: This readme file is for [ajv-keywords v5.0.0](https://github.com/ajv-validator/ajv-keywords/releases/tag/v5.0.0) that should be used with [ajv v8](https://github.com/ajv-validator/ajv). - -[ajv-keywords v3](https://github.com/ajv-validator/ajv-keywords/tree/v3) should be used with [ajv v6](https://github.com/ajv-validator/ajv/tree/v6). - -## Contents - -- [Install](#install) -- [Usage](#usage) -- [Keywords](#keywords) - - [Types](#types) - - [typeof](#typeof) - - [instanceof](#instanceof)\+ - - [Keywords for numbers](#keywords-for-numbers) - - [range and exclusiveRange](#range-and-exclusiverange) - - [Keywords for strings](#keywords-for-strings) - - [regexp](#regexp) - - [transform](#transform)\* - - [Keywords for arrays](#keywords-for-arrays) - - [uniqueItemProperties](#uniqueitemproperties)\+ - - [Keywords for objects](#keywords-for-objects) - - [allRequired](#allrequired) - - [anyRequired](#anyrequired) - - [oneRequired](#onerequired) - - [patternRequired](#patternrequired) - - [prohibited](#prohibited) - - [deepProperties](#deepproperties) - - [deepRequired](#deeprequired) - - [dynamicDefaults](#dynamicdefaults)\*\+ - - [Keywords for all types](#keywords-for-all-types) - - [select/selectCases/selectDefault](#selectselectcasesselectdefault) -- [Security contact](#security-contact) -- [Open-source software support](#open-source-software-support) -- [License](#license) - -\* - keywords that modify data -\+ - keywords that are not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - -## Install - -To install version 4 to use with [Ajv v7](https://github.com/ajv-validator/ajv): - -``` -npm install ajv-keywords -``` - -## Usage - -To add all available keywords: - -```javascript -const Ajv = require("ajv") -const ajv = new Ajv() -require("ajv-keywords")(ajv) - -ajv.validate({instanceof: "RegExp"}, /.*/) // true -ajv.validate({instanceof: "RegExp"}, ".*") // false -``` - -To add a single keyword: - -```javascript -require("ajv-keywords")(ajv, "instanceof") -``` - -To add multiple keywords: - -```javascript -require("ajv-keywords")(ajv, ["typeof", "instanceof"]) -``` - -To add a single keyword directly (to avoid adding unused code): - -```javascript -require("ajv-keywords/dist/keywords/select")(ajv, opts) -``` - -To add all keywords via Ajv options: - -```javascript -const ajv = new Ajv({keywords: require("ajv-keywords/dist/definitions")(opts)}) -``` - -To add one or several keywords via options: - -```javascript -const ajv = new Ajv({ - keywords: [ - require("ajv-keywords/dist/definitions/typeof")(), - require("ajv-keywords/dist/definitions/instanceof")(), - // select exports an array of 3 definitions - see "select" in docs - ...require("ajv-keywords/dist/definitions/select")(opts), - ], -}) -``` - -`opts` is an optional object with a property `defaultMeta` - URI of meta-schema to use for keywords that use subschemas (`select` and `deepProperties`). The default is `"http://json-schema.org/schema"`. - -## Keywords - -### Types - -#### `typeof` - -Based on JavaScript `typeof` operation. - -The value of the keyword should be a string (`"undefined"`, `"string"`, `"number"`, `"object"`, `"function"`, `"boolean"` or `"symbol"`) or an array of strings. - -To pass validation the result of `typeof` operation on the value should be equal to the string (or one of the strings in the array). - -```javascript -ajv.validate({typeof: "undefined"}, undefined) // true -ajv.validate({typeof: "undefined"}, null) // false -ajv.validate({typeof: ["undefined", "object"]}, null) // true -``` - -#### `instanceof` - -Based on JavaScript `instanceof` operation. - -The value of the keyword should be a string (`"Object"`, `"Array"`, `"Function"`, `"Number"`, `"String"`, `"Date"`, `"RegExp"` or `"Promise"`) or an array of strings. - -To pass validation the result of `data instanceof ...` operation on the value should be true: - -```javascript -ajv.validate({instanceof: "Array"}, []) // true -ajv.validate({instanceof: "Array"}, {}) // false -ajv.validate({instanceof: ["Array", "Function"]}, function () {}) // true -``` - -You can add your own constructor function to be recognised by this keyword: - -```javascript -class MyClass {} -const instanceofDef = require("ajv-keywords/dist/definitions/instanceof") -instanceofDef.CONSTRUCTORS.MyClass = MyClass -ajv.validate({instanceof: "MyClass"}, new MyClass()) // true -``` - -**Please note**: currently `instanceof` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). - -### Keywords for numbers - -#### `range` and `exclusiveRange` - -Syntax sugar for the combination of minimum and maximum keywords (or exclusiveMinimum and exclusiveMaximum), also fails schema compilation if there are no numbers in the range. - -The value of these keywords must be an array consisting of two numbers, the second must be greater or equal than the first one. - -If the validated value is not a number the validation passes, otherwise to pass validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. - -```javascript -const schema = {type: "number", range: [1, 3]} -ajv.validate(schema, 1) // true -ajv.validate(schema, 2) // true -ajv.validate(schema, 3) // true -ajv.validate(schema, 0.99) // false -ajv.validate(schema, 3.01) // false - -const schema = {type: "number", exclusiveRange: [1, 3]} -ajv.validate(schema, 1.01) // true -ajv.validate(schema, 2) // true -ajv.validate(schema, 2.99) // true -ajv.validate(schema, 1) // false -ajv.validate(schema, 3) // false -``` - -### Keywords for strings - -#### `regexp` - -This keyword allows to use regular expressions with flags in schemas, and also without `"u"` flag when needed (the standard `pattern` keyword does not support flags and implies the presence of `"u"` flag). - -This keyword applies only to strings. If the data is not a string, the validation succeeds. - -The value of this keyword can be either a string (the result of `regexp.toString()`) or an object with the properties `pattern` and `flags` (the same strings that should be passed to RegExp constructor). - -```javascript -const schema = { - type: "object", - properties: { - foo: {type: "string", regexp: "/foo/i"}, - bar: {type: "string", regexp: {pattern: "bar", flags: "i"}}, - }, -} - -const validData = { - foo: "Food", - bar: "Barmen", -} - -const invalidData = { - foo: "fog", - bar: "bad", -} -``` - -#### `transform` - -This keyword allows a string to be modified during validation. - -This keyword applies only to strings. If the data is not a string, the `transform` keyword is ignored. - -A standalone string cannot be modified, i.e. `data = 'a'; ajv.validate(schema, data);`, because strings are passed by value - -**Supported transformations:** - -- `trim`: remove whitespace from start and end -- `trimStart`/`trimLeft`: remove whitespace from start -- `trimEnd`/`trimRight`: remove whitespace from end -- `toLowerCase`: convert to lower case -- `toUpperCase`: convert to upper case -- `toEnumCase`: change string case to be equal to one of `enum` values in the schema - -Transformations are applied in the order they are listed. - -Note: `toEnumCase` requires that all allowed values are unique when case insensitive. - -**Example: multiple transformations** - -```javascript -require("ajv-keywords")(ajv, "transform") - -const schema = { - type: "array", - items: { - type: "string", - transform: ["trim", "toLowerCase"], - }, -} - -const data = [" MixCase "] -ajv.validate(schema, data) -console.log(data) // ['mixcase'] -``` - -**Example: `enumcase`** - -```javascript -require("ajv-keywords")(ajv, ["transform"]) - -const schema = { - type: "array", - items: { - type: "string", - transform: ["trim", "toEnumCase"], - enum: ["pH"], - }, -} - -const data = ["ph", " Ph", "PH", "pH "] -ajv.validate(schema, data) -console.log(data) // ['pH','pH','pH','pH'] -``` - -### Keywords for arrays - -#### `uniqueItemProperties` - -The keyword allows to check that some properties in array items are unique. - -This keyword applies only to arrays. If the data is not an array, the validation succeeds. - -The value of this keyword must be an array of strings - property names that should have unique values across all items. - -```javascript -const schema = { - type: "array", - uniqueItemProperties: ["id", "name"], -} - -const validData = [{id: 1}, {id: 2}, {id: 3}] - -const invalidData1 = [ - {id: 1}, - {id: 1}, // duplicate "id" - {id: 3}, -] - -const invalidData2 = [ - {id: 1, name: "taco"}, - {id: 2, name: "taco"}, // duplicate "name" - {id: 3, name: "salsa"}, -] -``` - -This keyword is contributed by [@blainesch](https://github.com/blainesch). - -**Please note**: currently `uniqueItemProperties` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md) - it has to be implemented as [`code` keyword](https://github.com/ajv-validator/ajv/blob/master/docs/keywords.md#define-keyword-with-code-generation-function) to support it (PR is welcome). - -### Keywords for objects - -#### `allRequired` - -This keyword allows to require the presence of all properties used in `properties` keyword in the same schema object. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be boolean. - -If the value of the keyword is `false`, the validation succeeds. - -If the value of the keyword is `true`, the validation succeeds if the data contains all properties defined in `properties` keyword (in the same schema object). - -If the `properties` keyword is not present in the same schema object, schema compilation will throw exception. - -```javascript -const schema = { - type: "object", - properties: { - foo: {type: "number"}, - bar: {type: "number"}, - }, - allRequired: true, -} - -const validData = {foo: 1, bar: 2} -const alsoValidData = {foo: 1, bar: 2, baz: 3} - -const invalidDataList = [{}, {foo: 1}, {bar: 2}] -``` - -#### `anyRequired` - -This keyword allows to require the presence of any (at least one) property from the list. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be an array of strings, each string being a property name. For data object to be valid at least one of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - anyRequired: ["foo", "bar"], -} - -const validData = {foo: 1} -const alsoValidData = {foo: 1, bar: 2} - -const invalidDataList = [{}, {baz: 3}] -``` - -#### `oneRequired` - -This keyword allows to require the presence of only one property from the list. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword must be an array of strings, each string being a property name. For data object to be valid exactly one of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - oneRequired: ["foo", "bar"], -} - -const validData = {foo: 1} -const alsoValidData = {bar: 2, baz: 3} - -const invalidDataList = [{}, {baz: 3}, {foo: 1, bar: 2}] -``` - -#### `patternRequired` - -This keyword allows to require the presence of properties that match some pattern(s). - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword should be an array of strings, each string being a regular expression. For data object to be valid each regular expression in this array should match at least one property name in the data object. - -If the array contains multiple regular expressions, more than one expression can match the same property name. - -```javascript -const schema = { - type: "object", - patternRequired: ["f.*o", "b.*r"], -} - -const validData = {foo: 1, bar: 2} -const alsoValidData = {foobar: 3} - -const invalidDataList = [{}, {foo: 1}, {bar: 2}] -``` - -#### `prohibited` - -This keyword allows to prohibit that any of the properties in the list is present in the object. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value of this keyword should be an array of strings, each string being a property name. For data object to be valid none of the properties in this array should be present in the object. - -```javascript -const schema = { - type: "object", - prohibited: ["foo", "bar"], -} - -const validData = {baz: 1} -const alsoValidData = {} - -const invalidDataList = [{foo: 1}, {bar: 2}, {foo: 1, bar: 2}] -``` - -**Please note**: `{prohibited: ['foo', 'bar']}` is equivalent to `{not: {anyRequired: ['foo', 'bar']}}` (i.e. it has the same validation result for any data). - -#### `deepProperties` - -This keyword allows to validate deep properties (identified by JSON pointers). - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value should be an object, where keys are JSON pointers to the data, starting from the current position in data, and the values are JSON schemas. For data object to be valid the value of each JSON pointer should be valid according to the corresponding schema. - -```javascript -const schema = { - type: "object", - deepProperties: { - "/users/1/role": {enum: ["admin"]}, - }, -} - -const validData = { - users: [ - {}, - { - id: 123, - role: "admin", - }, - ], -} - -const alsoValidData = { - users: { - 1: { - id: 123, - role: "admin", - }, - }, -} - -const invalidData = { - users: [ - {}, - { - id: 123, - role: "user", - }, - ], -} - -const alsoInvalidData = { - users: { - 1: { - id: 123, - role: "user", - }, - }, -} -``` - -#### `deepRequired` - -This keyword allows to check that some deep properties (identified by JSON pointers) are available. - -This keyword applies only to objects. If the data is not an object, the validation succeeds. - -The value should be an array of JSON pointers to the data, starting from the current position in data. For data object to be valid each JSON pointer should be some existing part of the data. - -```javascript -const schema = { - type: "object", - deepRequired: ["/users/1/role"], -} - -const validData = { - users: [ - {}, - { - id: 123, - role: "admin", - }, - ], -} - -const invalidData = { - users: [ - {}, - { - id: 123, - }, - ], -} -``` - -See [json-schema-org/json-schema-spec#203](https://github.com/json-schema-org/json-schema-spec/issues/203#issue-197211916) for an example of the equivalent schema without `deepRequired` keyword. - -### Keywords for all types - -#### `select`/`selectCases`/`selectDefault` - -**Please note**: these keywords are deprecated. It is recommended to use OpenAPI [discriminator](https://ajv.js.org/json-schema.html#discriminator) keyword supported by Ajv v8 instead of `select`. - -These keywords allow to choose the schema to validate the data based on the value of some property in the validated data. - -These keywords must be present in the same schema object (`selectDefault` is optional). - -The value of `select` keyword should be a [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference) that points to any primitive JSON type (string, number, boolean or null) in the data that is validated. You can also use a constant of primitive type as the value of this keyword (e.g., for debugging purposes). - -The value of `selectCases` keyword must be an object where each property name is a possible string representation of the value of `select` keyword and each property value is a corresponding schema (from draft-06 it can be boolean) that must be used to validate the data. - -The value of `selectDefault` keyword is a schema (also can be boolean) that must be used to validate the data in case `selectCases` has no key equal to the stringified value of `select` keyword. - -The validation succeeds in one of the following cases: - -- the validation of data using selected schema succeeds, -- none of the schemas is selected for validation, -- the value of select is undefined (no property in the data that the data reference points to). - -If `select` value (in data) is not a primitive type the validation fails. - -This keyword correctly tracks evaluated properties and items to work with `unevaluatedProperties` and `unevaluatedItems` keywords - only properties and items from the subschema that was used (one of `selectCases` subschemas or `selectDefault` subschema) are marked as evaluated. - -**Please note**: these keywords require Ajv `$data` option to support [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference). - -```javascript -require("ajv-keywords")(ajv, "select") - -const schema = { - type: "object", - required: ["kind"], - properties: { - kind: {type: "string"}, - }, - select: {$data: "0/kind"}, - selectCases: { - foo: { - required: ["foo"], - properties: { - kind: {}, - foo: {type: "string"}, - }, - additionalProperties: false, - }, - bar: { - required: ["bar"], - properties: { - kind: {}, - bar: {type: "number"}, - }, - additionalProperties: false, - }, - }, - selectDefault: { - propertyNames: { - not: {enum: ["foo", "bar"]}, - }, - }, -} - -const validDataList = [ - {kind: "foo", foo: "any"}, - {kind: "bar", bar: 1}, - {kind: "anything_else", not_bar_or_foo: "any value"}, -] - -const invalidDataList = [ - {kind: "foo"}, // no property foo - {kind: "bar"}, // no property bar - {kind: "foo", foo: "any", another: "any value"}, // additional property - {kind: "bar", bar: 1, another: "any value"}, // additional property - {kind: "anything_else", foo: "any"}, // property foo not allowed - {kind: "anything_else", bar: 1}, // property bar not allowed -] -``` - -#### `dynamicDefaults` - -This keyword allows to assign dynamic defaults to properties, such as timestamps, unique IDs etc. - -This keyword only works if `useDefaults` options is used and not inside `anyOf` keywords etc., in the same way as [default keyword treated by Ajv](https://github.com/epoberezkin/ajv#assigning-defaults). - -The keyword should be added on the object level. Its value should be an object with each property corresponding to a property name, in the same way as in standard `properties` keyword. The value of each property can be: - -- an identifier of dynamic default function (a string) -- an object with properties `func` (an identifier) and `args` (an object with parameters that will be passed to this function during schema compilation - see examples). - -The properties used in `dynamicDefaults` should not be added to `required` keyword in the same schema (or validation will fail), because unlike `default` this keyword is processed after validation. - -There are several predefined dynamic default functions: - -- `"timestamp"` - current timestamp in milliseconds -- `"datetime"` - current date and time as string (ISO, valid according to `date-time` format) -- `"date"` - current date as string (ISO, valid according to `date` format) -- `"time"` - current time as string (ISO, valid according to `time` format) -- `"random"` - pseudo-random number in [0, 1) interval -- `"randomint"` - pseudo-random integer number. If string is used as a property value, the function will randomly return 0 or 1. If object `{ func: 'randomint', args: { max: N } }` is used then the default will be an integer number in [0, N) interval. -- `"seq"` - sequential integer number starting from 0. If string is used as a property value, the default sequence will be used. If object `{ func: 'seq', args: { name: 'foo'} }` is used then the sequence with name `"foo"` will be used. Sequences are global, even if different ajv instances are used. - -```javascript -const schema = { - type: "object", - dynamicDefaults: { - ts: "datetime", - r: {func: "randomint", args: {max: 100}}, - id: {func: "seq", args: {name: "id"}}, - }, - properties: { - ts: { - type: "string", - format: "date-time", - }, - r: { - type: "integer", - minimum: 0, - exclusiveMaximum: 100, - }, - id: { - type: "integer", - minimum: 0, - }, - }, -} - -const data = {} -ajv.validate(data) // true -data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } - -const data1 = {} -ajv.validate(data1) // true -data1 // { ts: '2016-12-01T22:07:29.832Z', r: 68, id: 1 } - -ajv.validate(data1) // true -data1 // didn't change, as all properties were defined -``` - -When using the `useDefaults` option value `"empty"`, properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. Use `allOf` [compound keyword](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) to execute `dynamicDefaults` before validation. - -```javascript -const schema = { - type: "object", - allOf: [ - { - dynamicDefaults: { - ts: "datetime", - r: {func: "randomint", args: {min: 5, max: 100}}, - id: {func: "seq", args: {name: "id"}}, - }, - }, - { - properties: { - ts: { - type: "string", - }, - r: { - type: "number", - minimum: 5, - exclusiveMaximum: 100, - }, - id: { - type: "integer", - minimum: 0, - }, - }, - }, - ], -} - -const data = {ts: "", r: null} -ajv.validate(data) // true -data // { ts: '2016-12-01T22:07:28.829Z', r: 25, id: 0 } -``` - -You can add your own dynamic default function to be recognised by this keyword: - -```javascript -const uuid = require("uuid") - -const def = require("ajv-keywords/dist/definitions/dynamicDefaults") -def.DEFAULTS.uuid = () => uuid.v4 - -const schema = { - dynamicDefaults: {id: "uuid"}, - properties: {id: {type: "string", format: "uuid"}}, -} - -const data = {} -ajv.validate(schema, data) // true -data // { id: 'a1183fbe-697b-4030-9bcc-cfeb282a9150' }; - -const data1 = {} -ajv.validate(schema, data1) // true -data1 // { id: '5b008de7-1669-467a-a5c6-70fa244d7209' } -``` - -You also can define dynamic default that accept parameters, e.g. version of uuid: - -```javascript -const uuid = require("uuid") - -function getUuid(args) { - const version = "v" + ((arvs && args.v) || "4") - return uuid[version] -} - -const def = require("ajv-keywords/dist/definitions/dynamicDefaults") -def.DEFAULTS.uuid = getUuid - -const schema = { - dynamicDefaults: { - id1: "uuid", // v4 - id2: {func: "uuid", v: 4}, // v4 - id3: {func: "uuid", v: 1}, // v1 - }, -} -``` - -**Please note**: dynamic default functions are differentiated by the number of parameters they have (`function.length`). Functions that do not expect default must have one non-optional argument so that `function.length` > 0. - -`dynamicDefaults` is not supported in [standalone validation code](https://github.com/ajv-validator/ajv/blob/master/docs/standalone.md). - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -Please do NOT report security vulnerabilities via GitHub issues. - -## Open-source software support - -Ajv-keywords is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv-keywords?utm_source=npm-ajv-keywords&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - -## License - -[MIT](https://github.com/epoberezkin/ajv-keywords/blob/master/LICENSE) diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts deleted file mode 100644 index f1066781..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare type RangeKwd = "range" | "exclusiveRange"; -export default function getRangeDef(keyword: RangeKwd): GetDefinition; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js deleted file mode 100644 index 21d4aa46..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getRangeDef(keyword) { - return () => ({ - keyword, - type: "number", - schemaType: "array", - macro: function ([min, max]) { - validateRangeSchema(min, max); - return keyword === "range" - ? { minimum: min, maximum: max } - : { exclusiveMinimum: min, exclusiveMaximum: max }; - }, - metaSchema: { - type: "array", - minItems: 2, - maxItems: 2, - items: { type: "number" }, - }, - }); - function validateRangeSchema(min, max) { - if (min > max || (keyword === "exclusiveRange" && min === max)) { - throw new Error("There are no numbers in range"); - } - } -} -exports.default = getRangeDef; -//# sourceMappingURL=_range.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map deleted file mode 100644 index 132c83d5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_range.js","sourceRoot":"","sources":["../../src/definitions/_range.ts"],"names":[],"mappings":";;AAKA,SAAwB,WAAW,CAAC,OAAiB;IACnD,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAAmB;YAC3C,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAC7B,OAAO,OAAO,KAAK,OAAO;gBACxB,CAAC,CAAC,EAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC;gBAC9B,CAAC,CAAC,EAAC,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAC,CAAA;QACpD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;IAEF,SAAS,mBAAmB,CAAC,GAAW,EAAE,GAAW;QACnD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;SACjD;IACH,CAAC;AACH,CAAC;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts deleted file mode 100644 index cac6e5eb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare type RequiredKwd = "anyRequired" | "oneRequired"; -export default function getRequiredDef(keyword: RequiredKwd): GetDefinition; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js deleted file mode 100644 index 27dd2ffb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getRequiredDef(keyword) { - return () => ({ - keyword, - type: "object", - schemaType: "array", - macro(schema) { - if (schema.length === 0) - return true; - if (schema.length === 1) - return { required: schema }; - const comb = keyword === "anyRequired" ? "anyOf" : "oneOf"; - return { [comb]: schema.map((p) => ({ required: [p] })) }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }); -} -exports.default = getRequiredDef; -//# sourceMappingURL=_required.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map deleted file mode 100644 index 94211e7a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_required.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_required.js","sourceRoot":"","sources":["../../src/definitions/_required.ts"],"names":[],"mappings":";;AAKA,SAAwB,cAAc,CACpC,OAAoB;IAEpB,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,CAAC,MAAgB;YACpB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAA;YAClD,MAAM,IAAI,GAAG,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;YAC1D,OAAO,EAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,CAAA;QACvD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;AACJ,CAAC;AAlBD,iCAkBC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts deleted file mode 100644 index 7c36a04c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { KeywordDefinition } from "ajv"; -export interface DefinitionOptions { - defaultMeta?: string | boolean; -} -export declare type GetDefinition = (opts?: DefinitionOptions) => T; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js deleted file mode 100644 index 6e5dd982..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=_types.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map deleted file mode 100644 index 31f2facc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../src/definitions/_types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts deleted file mode 100644 index b0d91dd2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { DefinitionOptions } from "./_types"; -import type { SchemaObject, KeywordCxt, Name } from "ajv"; -export declare function metaSchemaRef({ defaultMeta }?: DefinitionOptions): SchemaObject; -export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string, flags?: string): Name; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js deleted file mode 100644 index f8d1045c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.usePattern = exports.metaSchemaRef = void 0; -const codegen_1 = require("ajv/dist/compile/codegen"); -const META_SCHEMA_ID = "http://json-schema.org/schema"; -function metaSchemaRef({ defaultMeta } = {}) { - return defaultMeta === false ? {} : { $ref: defaultMeta || META_SCHEMA_ID }; -} -exports.metaSchemaRef = metaSchemaRef; -function usePattern({ gen, it: { opts } }, pattern, flags = opts.unicodeRegExp ? "u" : "") { - const rx = new RegExp(pattern, flags); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._) `new RegExp(${pattern}, ${flags})`, - }); -} -exports.usePattern = usePattern; -//# sourceMappingURL=_util.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map deleted file mode 100644 index c9e310bd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/_util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_util.js","sourceRoot":"","sources":["../../src/definitions/_util.ts"],"names":[],"mappings":";;;AAEA,sDAA0C;AAE1C,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAEtD,SAAgB,aAAa,CAAC,EAAC,WAAW,KAAuB,EAAE;IACjE,OAAO,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,WAAW,IAAI,cAAc,EAAC,CAAA;AAC3E,CAAC;AAFD,sCAEC;AAED,SAAgB,UAAU,CACxB,EAAC,GAAG,EAAE,EAAE,EAAE,EAAC,IAAI,EAAC,EAAa,EAC7B,OAAe,EACf,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;IAErC,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrC,OAAO,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE;QAC/B,GAAG,EAAE,EAAE,CAAC,QAAQ,EAAE;QAClB,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,IAAA,WAAC,EAAA,cAAc,OAAO,KAAK,KAAK,GAAG;KAC1C,CAAC,CAAA;AACJ,CAAC;AAXD,gCAWC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts deleted file mode 100644 index ac709be9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -export default function getDef(): MacroKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js deleted file mode 100644 index c2a6803f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getDef() { - return { - keyword: "allRequired", - type: "object", - schemaType: "boolean", - macro(schema, parentSchema) { - if (!schema) - return true; - const required = Object.keys(parentSchema.properties); - if (required.length === 0) - return true; - return { required }; - }, - dependencies: ["properties"], - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=allRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map deleted file mode 100644 index ff7006b3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/allRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allRequired.js","sourceRoot":"","sources":["../../src/definitions/allRequired.ts"],"names":[],"mappings":";;AAEA,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,SAAS;QACrB,KAAK,CAAC,MAAe,EAAE,YAAY;YACjC,IAAI,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAA;YACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YACrD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACtC,OAAO,EAAC,QAAQ,EAAC,CAAA;QACnB,CAAC;QACD,YAAY,EAAE,CAAC,YAAY,CAAC;KAC7B,CAAA;AACH,CAAC;AAbD,yBAaC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js deleted file mode 100644 index 0870ce39..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _required_1 = __importDefault(require("./_required")); -const getDef = (0, _required_1.default)("anyRequired"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=anyRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map deleted file mode 100644 index af1a67bf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyRequired.js","sourceRoot":"","sources":["../../src/definitions/anyRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts deleted file mode 100644 index ed185656..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { DefinitionOptions } from "./_types"; -export default function getDef(opts?: DefinitionOptions): MacroKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js deleted file mode 100644 index a567d7b9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _util_1 = require("./_util"); -function getDef(opts) { - return { - keyword: "deepProperties", - type: "object", - schemaType: "object", - macro: function (schema) { - const allOf = []; - for (const pointer in schema) - allOf.push(getSchema(pointer, schema[pointer])); - return { allOf }; - }, - metaSchema: { - type: "object", - propertyNames: { type: "string", format: "json-pointer" }, - additionalProperties: (0, _util_1.metaSchemaRef)(opts), - }, - }; -} -exports.default = getDef; -function getSchema(jsonPointer, schema) { - const segments = jsonPointer.split("/"); - const rootSchema = {}; - let pointerSchema = rootSchema; - for (let i = 1; i < segments.length; i++) { - let segment = segments[i]; - const isLast = i === segments.length - 1; - segment = unescapeJsonPointer(segment); - const properties = (pointerSchema.properties = {}); - let items; - if (/[0-9]+/.test(segment)) { - let count = +segment; - items = pointerSchema.items = []; - pointerSchema.type = ["object", "array"]; - while (count--) - items.push({}); - } - else { - pointerSchema.type = "object"; - } - pointerSchema = isLast ? schema : {}; - properties[segment] = pointerSchema; - if (items) - items.push(pointerSchema); - } - return rootSchema; -} -function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); -} -module.exports = getDef; -//# sourceMappingURL=deepProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map deleted file mode 100644 index 782bd04a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepProperties.js","sourceRoot":"","sources":["../../src/definitions/deepProperties.ts"],"names":[],"mappings":";;AAEA,mCAAqC;AAErC,SAAwB,MAAM,CAAC,IAAwB;IACrD,OAAO;QACL,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAU,MAAoC;YACnD,MAAM,KAAK,GAAG,EAAE,CAAA;YAChB,KAAK,MAAM,OAAO,IAAI,MAAM;gBAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;YAC7E,OAAO,EAAC,KAAK,EAAC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UAAU,CAAC,OAAO,CAAC,GAAG,aAAa,CAAA;QACnC,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;KACrC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAW;IACtC,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js deleted file mode 100644 index 2aa8bbfc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -function getDef() { - return { - keyword: "deepRequired", - type: "object", - schemaType: "array", - code(ctx) { - const { schema, data } = ctx; - const props = schema.map((jp) => (0, codegen_1._) `(${getData(jp)}) === undefined`); - ctx.fail((0, codegen_1.or)(...props)); - function getData(jsonPointer) { - if (jsonPointer === "") - throw new Error("empty JSON pointer not allowed"); - const segments = jsonPointer.split("/"); - let x = data; - const xs = segments.map((s, i) => i ? (x = (0, codegen_1._) `${x}${(0, codegen_1.getProperty)(unescapeJPSegment(s))}`) : x); - return (0, codegen_1.and)(...xs); - } - }, - metaSchema: { - type: "array", - items: { type: "string", format: "json-pointer" }, - }, - }; -} -exports.default = getDef; -function unescapeJPSegment(s) { - return s.replace(/~1/g, "/").replace(/~0/g, "~"); -} -module.exports = getDef; -//# sourceMappingURL=deepRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map deleted file mode 100644 index a632916c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepRequired.js","sourceRoot":"","sources":["../../src/definitions/deepRequired.ts"],"names":[],"mappings":";;AACA,sDAAsE;AAEtE,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,IAAI,CAAC,GAAe;YAClB,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAA;YAC1B,MAAM,KAAK,GAAI,MAAmB,CAAC,GAAG,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,OAAO,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAA;YACzF,GAAG,CAAC,IAAI,CAAC,IAAA,YAAE,EAAC,GAAG,KAAK,CAAC,CAAC,CAAA;YAEtB,SAAS,OAAO,CAAC,WAAmB;gBAClC,IAAI,WAAW,KAAK,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;gBACzE,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;gBACvC,IAAI,CAAC,GAAS,IAAI,CAAA;gBAClB,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAC/B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,CAAC,GAAG,IAAA,qBAAW,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1D,CAAA;gBACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;YACnB,CAAC;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC;SAChD;KACF,CAAA;AACH,CAAC;AAzBD,yBAyBC;AAED,SAAS,iBAAiB,CAAC,CAAS;IAClC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts deleted file mode 100644 index 702fb0ab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -export declare type DynamicDefaultFunc = (args?: Record) => () => any; -declare const DEFAULTS: Record; -declare const getDef: (() => FuncKeywordDefinition) & { - DEFAULTS: typeof DEFAULTS; -}; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js deleted file mode 100644 index eada65ef..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sequences = {}; -const DEFAULTS = { - timestamp: () => () => Date.now(), - datetime: () => () => new Date().toISOString(), - date: () => () => new Date().toISOString().slice(0, 10), - time: () => () => new Date().toISOString().slice(11), - random: () => () => Math.random(), - randomint: (args) => { - var _a; - const max = (_a = args === null || args === void 0 ? void 0 : args.max) !== null && _a !== void 0 ? _a : 2; - return () => Math.floor(Math.random() * max); - }, - seq: (args) => { - var _a; - const name = (_a = args === null || args === void 0 ? void 0 : args.name) !== null && _a !== void 0 ? _a : ""; - sequences[name] || (sequences[name] = 0); - return () => sequences[name]++; - }, -}; -const getDef = Object.assign(_getDef, { DEFAULTS }); -function _getDef() { - return { - keyword: "dynamicDefaults", - type: "object", - schemaType: ["string", "object"], - modifying: true, - valid: true, - compile(schema, _parentSchema, it) { - if (!it.opts.useDefaults || it.compositeRule) - return () => true; - const fs = {}; - for (const key in schema) - fs[key] = getDefault(schema[key]); - const empty = it.opts.useDefaults === "empty"; - return (data) => { - for (const prop in schema) { - if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) { - data[prop] = fs[prop](); - } - } - return true; - }; - }, - metaSchema: { - type: "object", - additionalProperties: { - anyOf: [ - { type: "string" }, - { - type: "object", - additionalProperties: false, - required: ["func", "args"], - properties: { - func: { type: "string" }, - args: { type: "object" }, - }, - }, - ], - }, - }, - }; -} -function getDefault(d) { - return typeof d == "object" ? getObjDefault(d) : getStrDefault(d); -} -function getObjDefault({ func, args }) { - const def = DEFAULTS[func]; - assertDefined(func, def); - return def(args); -} -function getStrDefault(d = "") { - const def = DEFAULTS[d]; - assertDefined(d, def); - return def(); -} -function assertDefined(name, def) { - if (!def) - throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=dynamicDefaults.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map deleted file mode 100644 index 95e8170e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicDefaults.js","sourceRoot":"","sources":["../../src/definitions/dynamicDefaults.ts"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAuC,EAAE,CAAA;AAIxD,MAAM,QAAQ,GAAmD;IAC/D,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;IACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IAC9C,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;IACvD,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;IACjC,SAAS,EAAE,CAAC,IAAqB,EAAE,EAAE;;QACnC,MAAM,GAAG,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,mCAAI,CAAC,CAAA;QAC1B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAA;IAC9C,CAAC;IACD,GAAG,EAAE,CAAC,IAAsB,EAAE,EAAE;;QAC9B,MAAM,IAAI,GAAG,MAAA,IAAI,aAAJ,IAAI,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/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js deleted file mode 100644 index cee3febb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _range_1 = __importDefault(require("./_range")); -const getDef = (0, _range_1.default)("exclusiveRange"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=exclusiveRange.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map deleted file mode 100644 index aa43025a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exclusiveRange.js","sourceRoot":"","sources":["../../src/definitions/exclusiveRange.ts"],"names":[],"mappings":";;;;;AAEA,sDAAkC;AAElC,MAAM,MAAM,GAA0C,IAAA,gBAAW,EAAC,gBAAgB,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts deleted file mode 100644 index 326d6847..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Vocabulary, ErrorNoParams } from "ajv"; -import type { DefinitionOptions } from "./_types"; -import { PatternRequiredError } from "./patternRequired"; -import { SelectError } from "./select"; -export default function ajvKeywords(opts?: DefinitionOptions): Vocabulary; -export declare type AjvKeywordsError = PatternRequiredError | SelectError | ErrorNoParams<"range" | "exclusiveRange" | "anyRequired" | "oneRequired" | "allRequired" | "deepProperties" | "deepRequired" | "dynamicDefaults" | "instanceof" | "prohibited" | "regexp" | "transform" | "uniqueItemProperties">; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js deleted file mode 100644 index 94ae44e8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("./typeof")); -const instanceof_1 = __importDefault(require("./instanceof")); -const range_1 = __importDefault(require("./range")); -const exclusiveRange_1 = __importDefault(require("./exclusiveRange")); -const regexp_1 = __importDefault(require("./regexp")); -const transform_1 = __importDefault(require("./transform")); -const uniqueItemProperties_1 = __importDefault(require("./uniqueItemProperties")); -const allRequired_1 = __importDefault(require("./allRequired")); -const anyRequired_1 = __importDefault(require("./anyRequired")); -const oneRequired_1 = __importDefault(require("./oneRequired")); -const patternRequired_1 = __importDefault(require("./patternRequired")); -const prohibited_1 = __importDefault(require("./prohibited")); -const deepProperties_1 = __importDefault(require("./deepProperties")); -const deepRequired_1 = __importDefault(require("./deepRequired")); -const dynamicDefaults_1 = __importDefault(require("./dynamicDefaults")); -const select_1 = __importDefault(require("./select")); -const definitions = [ - typeof_1.default, - instanceof_1.default, - range_1.default, - exclusiveRange_1.default, - regexp_1.default, - transform_1.default, - uniqueItemProperties_1.default, - allRequired_1.default, - anyRequired_1.default, - oneRequired_1.default, - patternRequired_1.default, - prohibited_1.default, - deepProperties_1.default, - deepRequired_1.default, - dynamicDefaults_1.default, -]; -function ajvKeywords(opts) { - return definitions.map((d) => d(opts)).concat((0, select_1.default)(opts)); -} -exports.default = ajvKeywords; -module.exports = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map deleted file mode 100644 index 07d35302..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;AAEA,sDAAgC;AAChC,8DAAwC;AACxC,oDAA2B;AAC3B,sEAA6C;AAC7C,sDAA6B;AAC7B,4DAAmC;AACnC,kFAAyD;AACzD,gEAAuC;AACvC,gEAAuC;AACvC,gEAAuC;AACvC,wEAAuE;AACvE,8DAAqC;AACrC,sEAA6C;AAC7C,kEAAyC;AACzC,wEAA+C;AAC/C,sDAA+C;AAE/C,MAAM,WAAW,GAAuC;IACtD,gBAAS;IACT,oBAAa;IACb,eAAK;IACL,wBAAc;IACd,gBAAM;IACN,mBAAS;IACT,8BAAoB;IACpB,qBAAW;IACX,qBAAW;IACX,qBAAW;IACX,yBAAe;IACf,oBAAU;IACV,wBAAc;IACd,sBAAY;IACZ,yBAAe;CAChB,CAAA;AAED,SAAwB,WAAW,CAAC,IAAwB;IAC1D,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,8BAEC;AAqBD,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts deleted file mode 100644 index 05726f1f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -declare type Constructor = new (...args: any[]) => any; -declare const CONSTRUCTORS: Record; -declare const getDef: (() => FuncKeywordDefinition) & { - CONSTRUCTORS: typeof CONSTRUCTORS; -}; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js deleted file mode 100644 index 034fb641..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const CONSTRUCTORS = { - Object, - Array, - Function, - Number, - String, - Date, - RegExp, -}; -/* istanbul ignore else */ -if (typeof Buffer != "undefined") - CONSTRUCTORS.Buffer = Buffer; -/* istanbul ignore else */ -if (typeof Promise != "undefined") - CONSTRUCTORS.Promise = Promise; -const getDef = Object.assign(_getDef, { CONSTRUCTORS }); -function _getDef() { - return { - keyword: "instanceof", - schemaType: ["string", "array"], - compile(schema) { - if (typeof schema == "string") { - const C = getConstructor(schema); - return (data) => data instanceof C; - } - if (Array.isArray(schema)) { - const constructors = schema.map(getConstructor); - return (data) => { - for (const C of constructors) { - if (data instanceof C) - return true; - } - return false; - }; - } - /* istanbul ignore next */ - throw new Error("ajv implementation error"); - }, - metaSchema: { - anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }], - }, - }; -} -function getConstructor(c) { - const C = CONSTRUCTORS[c]; - if (C) - return C; - throw new Error(`invalid "instanceof" keyword value ${c}`); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=instanceof.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map deleted file mode 100644 index d401cd77..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/instanceof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instanceof.js","sourceRoot":"","sources":["../../src/definitions/instanceof.ts"],"names":[],"mappings":";;AAIA,MAAM,YAAY,GAA4C;IAC5D,MAAM;IACN,KAAK;IACL,QAAQ;IACR,MAAM;IACN,MAAM;IACN,IAAI;IACJ,MAAM;CACP,CAAA;AAED,0BAA0B;AAC1B,IAAI,OAAO,MAAM,IAAI,WAAW;IAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAA;AAE9D,0BAA0B;AAC1B,IAAI,OAAO,OAAO,IAAI,WAAW;IAAE,YAAY,CAAC,OAAO,GAAG,OAAO,CAAA;AAEjE,MAAM,MAAM,GAER,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,YAAY,EAAC,CAAC,CAAA;AAE1C,SAAS,OAAO;IACd,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/B,OAAO,CAAC,MAAyB;YAC/B,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;gBAC7B,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;gBAChC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,CAAA;aACnC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACzB,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;gBAC/C,OAAO,CAAC,IAAI,EAAE,EAAE;oBACd,KAAK,MAAM,CAAC,IAAI,YAAY,EAAE;wBAC5B,IAAI,IAAI,YAAY,CAAC;4BAAE,OAAO,IAAI,CAAA;qBACnC;oBACD,OAAO,KAAK,CAAA;gBACd,CAAC,CAAA;aACF;YAED,0BAA0B;YAC1B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC7C,CAAC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAC,CAAC;SACpE;KACF,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,CAAS;IAC/B,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;IACzB,IAAI,CAAC;QAAE,OAAO,CAAC,CAAA;IACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,EAAE,CAAC,CAAA;AAC5D,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js deleted file mode 100644 index ae46c30c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _required_1 = __importDefault(require("./_required")); -const getDef = (0, _required_1.default)("oneRequired"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=oneRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map deleted file mode 100644 index 134a1d93..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/oneRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneRequired.js","sourceRoot":"","sources":["../../src/definitions/oneRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts deleted file mode 100644 index 95b8eb52..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "ajv"; -export declare type PatternRequiredError = ErrorObject<"patternRequired", { - missingPattern: string; -}>; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js deleted file mode 100644 index ca24e642..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const error = { - message: ({ params: { missingPattern } }) => (0, codegen_1.str) `should have property matching pattern '${missingPattern}'`, - params: ({ params: { missingPattern } }) => (0, codegen_1._) `{missingPattern: ${missingPattern}}`, -}; -function getDef() { - return { - keyword: "patternRequired", - type: "object", - schemaType: "array", - error, - code(cxt) { - const { gen, schema, data } = cxt; - if (schema.length === 0) - return; - const valid = gen.let("valid", true); - for (const pat of schema) - validateProperties(pat); - function validateProperties(pattern) { - const matched = gen.let("matched", false); - gen.forIn("key", data, (key) => { - gen.assign(matched, (0, codegen_1._) `${(0, _util_1.usePattern)(cxt, pattern)}.test(${key})`); - gen.if(matched, () => gen.break()); - }); - cxt.setParams({ missingPattern: pattern }); - gen.assign(valid, (0, codegen_1.and)(valid, matched)); - cxt.pass(valid); - } - }, - metaSchema: { - type: "array", - items: { type: "string", format: "regex" }, - uniqueItems: true, - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=patternRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map deleted file mode 100644 index 17b095f8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/patternRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternRequired.js","sour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,CAAC,CAAA;gBAEF,GAAG,CAAC,SAAS,CAAC,EAAC,cAAc,EAAE,OAAO,EAAC,CAAC,CAAA;gBACxC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,aAAG,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;gBACtC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAC;YACxC,WAAW,EAAE,IAAI;SAClB;KACF,CAAA;AACH,CAAC;AA/BD,yBA+BC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts deleted file mode 100644 index ac709be9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -export default function getDef(): MacroKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js deleted file mode 100644 index 9a497460..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getDef() { - return { - keyword: "prohibited", - type: "object", - schemaType: "array", - macro: function (schema) { - if (schema.length === 0) - return true; - if (schema.length === 1) - return { not: { required: schema } }; - return { not: { anyOf: schema.map((p) => ({ required: [p] })) } }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=prohibited.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map deleted file mode 100644 index 1a2deec1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/prohibited.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prohibited.js","sourceRoot":"","sources":["../../src/definitions/prohibited.ts"],"names":[],"mappings":";;AAEA,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,EAAE,UAAU,MAAgB;YAC/B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAC,GAAG,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAAC,CAAA;YACzD,OAAO,EAAC,GAAG,EAAE,EAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,EAAC,CAAA;QAC7D,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAA;AACH,CAAC;AAfD,yBAeC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts deleted file mode 100644 index a14c2cf7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { MacroKeywordDefinition } from "ajv"; -import type { GetDefinition } from "./_types"; -declare const getDef: GetDefinition; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js deleted file mode 100644 index aa75c51b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _range_1 = __importDefault(require("./_range")); -const getDef = (0, _range_1.default)("range"); -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map deleted file mode 100644 index 7d9dd587..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/definitions/range.ts"],"names":[],"mappings":";;;;;AAEA,sDAAkC;AAElC,MAAM,MAAM,GAA0C,IAAA,gBAAW,EAAC,OAAO,CAAC,CAAA;AAE1E,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js deleted file mode 100644 index b3c5a7cc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const regexpMetaSchema = { - type: "object", - properties: { - pattern: { type: "string" }, - flags: { type: "string", nullable: true }, - }, - required: ["pattern"], - additionalProperties: false, -}; -const metaRegexp = /^\/(.*)\/([gimuy]*)$/; -function getDef() { - return { - keyword: "regexp", - type: "string", - schemaType: ["string", "object"], - code(cxt) { - const { data, schema } = cxt; - const regx = getRegExp(schema); - cxt.pass((0, codegen_1._) `${regx}.test(${data})`); - function getRegExp(sch) { - if (typeof sch == "object") - return (0, _util_1.usePattern)(cxt, sch.pattern, sch.flags); - const rx = metaRegexp.exec(sch); - if (rx) - return (0, _util_1.usePattern)(cxt, rx[1], rx[2]); - throw new Error("cannot parse string into RegExp"); - } - }, - metaSchema: { - anyOf: [{ type: "string" }, regexpMetaSchema], - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=regexp.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map deleted file mode 100644 index d389e474..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexp.js","sourceRoot":"","sources":["../../src/definitions/regexp.ts"],"names":[],"mappings":";;AACA,sDAA0C;AAC1C,mCAAkC;AAOlC,MAAM,gBAAgB,G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;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts deleted file mode 100644 index d12fc65d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { KeywordDefinition, ErrorObject } from "ajv"; -import type { DefinitionOptions } from "./_types"; -export declare type SelectError = ErrorObject<"select", { - failingCase?: string; - failingDefault?: true; -}>; -export default function getDef(opts?: DefinitionOptions): KeywordDefinition[]; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js deleted file mode 100644 index bce677bf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const _util_1 = require("./_util"); -const error = { - message: ({ params: { schemaProp } }) => schemaProp - ? (0, codegen_1.str) `should match case "${schemaProp}" schema` - : (0, codegen_1.str) `should match default case schema`, - params: ({ params: { schemaProp } }) => schemaProp ? (0, codegen_1._) `{failingCase: ${schemaProp}}` : (0, codegen_1._) `{failingDefault: true}`, -}; -function getDef(opts) { - const metaSchema = (0, _util_1.metaSchemaRef)(opts); - return [ - { - keyword: "select", - schemaType: ["string", "number", "boolean", "null"], - $data: true, - error, - dependencies: ["selectCases"], - code(cxt) { - const { gen, schemaCode, parentSchema } = cxt; - cxt.block$data(codegen_1.nil, () => { - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - const value = gen.const("value", (0, codegen_1._) `${schemaCode} === null ? "null" : ${schemaCode}`); - gen.if(false); // optimizer should remove it from generated code - for (const schemaProp in parentSchema.selectCases) { - cxt.setParams({ schemaProp }); - gen.elseIf((0, codegen_1._) `"" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans - const schCxt = cxt.subschema({ keyword: "selectCases", schemaProp }, schValid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - gen.assign(valid, schValid); - } - gen.else(); - if (parentSchema.selectDefault !== undefined) { - cxt.setParams({ schemaProp: undefined }); - const schCxt = cxt.subschema({ keyword: "selectDefault" }, schValid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - gen.assign(valid, schValid); - } - gen.endIf(); - cxt.pass(valid); - }); - }, - }, - { - keyword: "selectCases", - dependencies: ["select"], - metaSchema: { - type: "object", - additionalProperties: metaSchema, - }, - }, - { - keyword: "selectDefault", - dependencies: ["select", "selectCases"], - metaSchema, - }, - ]; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=select.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map deleted file mode 100644 index 1e5a0355..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/select.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/definitions/select.ts"],"names":[],"mappings":";;AACA,sDAA0D;AAE1D,mCAAqC;AAIrC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAC,EAAC,EAAE,EAAE,CAClC,UAAU;QACR,CAAC,CAAC,IAAA,aAAG,EAAA,sBAAsB,UAAU,UAAU;QAC/C,CAAC,CAAC,IAAA,aAAG,EAAA,kCAAkC;IAC3C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAC,EAAC,EAAE,EAAE,CACjC,UAAU,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,UA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,CAAC,CAAA;wBAChC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;qBAC5B;oBACD,GAAG,CAAC,IAAI,EAAE,CAAA;oBACV,IAAI,YAAY,CAAC,aAAa,KAAK,SAAS,EAAE;wBAC5C,GAAG,CAAC,SAAS,CAAC,EAAC,UAAU,EAAE,SAAS,EAAC,CAAC,CAAA;wBACtC,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,eAAe,EAAC,EAAE,QAAQ,CAAC,CAAA;wBAClE,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;wBAChC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;qBAC5B;oBACD,GAAG,CAAC,KAAK,EAAE,CAAA;oBACX,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACjB,CAAC,CAAC,CAAA;YACJ,CAAC;SACF;QACD;YACE,OAAO,EAAE,aAAa;YACtB,YAAY,EAAE,CAAC,QAAQ,CAAC;YACxB,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,UAAU;aACjC;SACF;QACD;YACE,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;YACvC,UAAU;SACX;KACF,CAAA;AACH,CAAC;AAlDD,yBAkDC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts deleted file mode 100644 index 551c46ea..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -declare type TransformName = "trimStart" | "trimEnd" | "trimLeft" | "trimRight" | "trim" | "toLowerCase" | "toUpperCase" | "toEnumCase"; -interface TransformConfig { - hash: Record; -} -declare type Transform = (s: string, cfg?: TransformConfig) => string; -declare const transform: { - [key in TransformName]: Transform; -}; -declare const getDef: (() => CodeKeywordDefinition) & { - transform: typeof transform; -}; -export default getDef; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js deleted file mode 100644 index 17128de4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const transform = { - trimStart: (s) => s.trimStart(), - trimEnd: (s) => s.trimEnd(), - trimLeft: (s) => s.trimStart(), - trimRight: (s) => s.trimEnd(), - trim: (s) => s.trim(), - toLowerCase: (s) => s.toLowerCase(), - toUpperCase: (s) => s.toUpperCase(), - toEnumCase: (s, cfg) => (cfg === null || cfg === void 0 ? void 0 : cfg.hash[configKey(s)]) || s, -}; -const getDef = Object.assign(_getDef, { transform }); -function _getDef() { - return { - keyword: "transform", - schemaType: "array", - before: "enum", - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { parentData, parentDataProperty } = it; - const tNames = schema; - if (!tNames.length) - return; - let cfg; - if (tNames.includes("toEnumCase")) { - const config = getEnumCaseCfg(parentSchema); - cfg = gen.scopeValue("obj", { ref: config, code: (0, codegen_1.stringify)(config) }); - } - gen.if((0, codegen_1._) `typeof ${data} == "string" && ${parentData} !== undefined`, () => { - gen.assign(data, transformExpr(tNames.slice())); - gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, data); - }); - function transformExpr(ts) { - if (!ts.length) - return data; - const t = ts.pop(); - if (!(t in transform)) - throw new Error(`transform: unknown transformation ${t}`); - const func = gen.scopeValue("func", { - ref: transform[t], - code: (0, codegen_1._) `require("ajv-keywords/dist/definitions/transform").transform${(0, codegen_1.getProperty)(t)}`, - }); - const arg = transformExpr(ts); - return cfg && t === "toEnumCase" ? (0, codegen_1._) `${func}(${arg}, ${cfg})` : (0, codegen_1._) `${func}(${arg})`; - } - }, - metaSchema: { - type: "array", - items: { type: "string", enum: Object.keys(transform) }, - }, - }; -} -function getEnumCaseCfg(parentSchema) { - // build hash table to enum values - const cfg = { hash: {} }; - // requires `enum` in the same schema as transform - if (!parentSchema.enum) - throw new Error('transform: "toEnumCase" requires "enum"'); - for (const v of parentSchema.enum) { - if (typeof v !== "string") - continue; - const k = configKey(v); - // requires all `enum` values have unique keys - if (cfg.hash[k]) { - throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique'); - } - cfg.hash[k] = v; - } - return cfg; -} -function configKey(s) { - return s.toLowerCase(); -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=transform.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map deleted file mode 100644 index 82220dcf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/transform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/definitions/transform.ts"],"names":[],"mappings":";;AACA,sDAAkE;AAkBlE,MAAM,SAAS,GAAwC;IACrD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE;IAC7B,IAAI,EAAE,CAAC,C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C,kDAAkD;IAClD,IAAI,CAAC,YAAY,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAClF,KAAK,MAAM,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE;QACjC,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,SAAQ;QACnC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QACtB,8CAA8C;QAC9C,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAA;SAC9F;QACD,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;KAChB;IAED,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;AACxB,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts deleted file mode 100644 index 79993ed8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CodeKeywordDefinition } from "ajv"; -export default function getDef(): CodeKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js deleted file mode 100644 index 5bb2b020..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("ajv/dist/compile/codegen"); -const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"]; -function getDef() { - return { - keyword: "typeof", - schemaType: ["string", "array"], - code(cxt) { - const { data, schema, schemaValue } = cxt; - cxt.fail(typeof schema == "string" - ? (0, codegen_1._) `typeof ${data} != ${schema}` - : (0, codegen_1._) `${schemaValue}.indexOf(typeof ${data}) < 0`); - }, - metaSchema: { - anyOf: [ - { type: "string", enum: TYPES }, - { type: "array", items: { type: "string", enum: TYPES } }, - ], - }, - }; -} -exports.default = getDef; -module.exports = getDef; -//# sourceMappingURL=typeof.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map deleted file mode 100644 index 918d3ff1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeof.js","sourceRoot":"","sources":["../../src/definitions/typeof.ts"],"names":[],"mappings":";;AACA,sDAA0C;AAE1C,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAA;AAE1F,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/B,IAAI,CAAC,GAAe;YAClB,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAC,GAAG,GAAG,CAAA;YACvC,GAAG,CAAC,IAAI,CACN,OAAO,MAAM,IAAI,QAAQ;gBACvB,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,IAAI,OAAO,MAAM,EAAE;gBAChC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,WAAW,mBAAmB,IAAI,OAAO,CAClD,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC;gBAC7B,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAC;aACtD;SACF;KACF,CAAA;AACH,CAAC;AAnBD,yBAmBC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts deleted file mode 100644 index d8365595..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { FuncKeywordDefinition } from "ajv"; -export default function getDef(): FuncKeywordDefinition; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js deleted file mode 100644 index 1758209a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const equal = require("fast-deep-equal"); -const SCALAR_TYPES = ["number", "integer", "string", "boolean", "null"]; -function getDef() { - return { - keyword: "uniqueItemProperties", - type: "array", - schemaType: "array", - compile(keys, parentSchema) { - const scalar = getScalarKeys(keys, parentSchema); - return (data) => { - if (data.length <= 1) - return true; - for (let k = 0; k < keys.length; k++) { - const key = keys[k]; - if (scalar[k]) { - const hash = {}; - for (const x of data) { - if (!x || typeof x != "object") - continue; - let p = x[key]; - if (p && typeof p == "object") - continue; - if (typeof p == "string") - p = '"' + p; - if (hash[p]) - return false; - hash[p] = true; - } - } - else { - for (let i = data.length; i--;) { - const x = data[i]; - if (!x || typeof x != "object") - continue; - for (let j = i; j--;) { - const y = data[j]; - if (y && typeof y == "object" && equal(x[key], y[key])) - return false; - } - } - } - } - return true; - }; - }, - metaSchema: { - type: "array", - items: { type: "string" }, - }, - }; -} -exports.default = getDef; -function getScalarKeys(keys, schema) { - return keys.map((key) => { - var _a, _b, _c; - const t = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type; - return Array.isArray(t) - ? !t.includes("object") && !t.includes("array") - : SCALAR_TYPES.includes(t); - }); -} -module.exports = getDef; -//# sourceMappingURL=uniqueItemProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map deleted file mode 100644 index c0619c26..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItemProperties.js","sourceRoot":"","sources":["../../src/definitions/uniqueItemProperties.ts"],"names":[],"mappings":";;AACA,yCAAyC;AAEzC,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;AAEvE,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,OAAO;QACnB,OAAO,CAAC,IAAc,EAAE,YAA6B;YACnD,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;YAEhD,OAAO,CAAC,IAAI,EAAE,EAAE;gBACd,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC;oBAAE,OAAO,IAAI,CAAA;gBACjC,KAAK,I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V,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAA;AACH,CAAC;AAzCD,yBAyCC;AAED,SAAS,aAAa,CAAC,IAAc,EAAE,MAAuB;IAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;;QACtB,MAAM,CAAC,GAAG,MAAA,MAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,UAAU,0CAAG,GAAG,CAAC,0CAAE,IAAI,CAAA;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC/C,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9B,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.d.ts deleted file mode 100644 index fc5b7a94..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -export { AjvKeywordsError } from "./definitions"; -declare const ajvKeywords: Plugin; -export default ajvKeywords; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js deleted file mode 100644 index d0d3d8b2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const keywords_1 = __importDefault(require("./keywords")); -const ajvKeywords = (ajv, keyword) => { - if (Array.isArray(keyword)) { - for (const k of keyword) - get(k)(ajv); - return ajv; - } - if (keyword) { - get(keyword)(ajv); - return ajv; - } - for (keyword in keywords_1.default) - get(keyword)(ajv); - return ajv; -}; -ajvKeywords.get = get; -function get(keyword) { - const defFunc = keywords_1.default[keyword]; - if (!defFunc) - throw new Error("Unknown keyword " + keyword); - return defFunc; -} -exports.default = ajvKeywords; -module.exports = ajvKeywords; -// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -module.exports.default = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js.map deleted file mode 100644 index 2f472f1e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAEA,0DAAgC;AAIhC,MAAM,WAAW,GAA8B,CAAC,GAAQ,EAAE,OAA2B,EAAO,EAAE;IAC5F,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC1B,KAAK,MAAM,CAAC,IAAI,OAAO;YAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACpC,OAAO,GAAG,CAAA;KACX;IACD,IAAI,OAAO,EAAE;QACX,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAA;QACjB,OAAO,GAAG,CAAA;KACX;IACD,KAAK,OAAO,IAAI,kBAAO;QAAE,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAA;IAC1C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,WAAW,CAAC,GAAG,GAAG,GAAG,CAAA;AAErB,SAAS,GAAG,CAAC,OAAe;IAC1B,MAAM,OAAO,GAAG,kBAAO,CAAC,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,OAAO,CAAC,CAAA;IAC3D,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA;AAE5B,sEAAsE;AACtE,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts deleted file mode 100644 index 97dd1213..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const allRequired: Plugin; -export default allRequired; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js deleted file mode 100644 index aaf65637..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const allRequired_1 = __importDefault(require("../definitions/allRequired")); -const allRequired = (ajv) => ajv.addKeyword((0, allRequired_1.default)()); -exports.default = allRequired; -module.exports = allRequired; -//# sourceMappingURL=allRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map deleted file mode 100644 index e19effd3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/allRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allRequired.js","sourceRoot":"","sources":["../../src/keywords/allRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts deleted file mode 100644 index 55e0fb1f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const anyRequired: Plugin; -export default anyRequired; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js deleted file mode 100644 index 700dc0da..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const anyRequired_1 = __importDefault(require("../definitions/anyRequired")); -const anyRequired = (ajv) => ajv.addKeyword((0, anyRequired_1.default)()); -exports.default = anyRequired; -module.exports = anyRequired; -//# sourceMappingURL=anyRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map deleted file mode 100644 index e1986e05..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/anyRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyRequired.js","sourceRoot":"","sources":["../../src/keywords/anyRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts deleted file mode 100644 index b8209c8d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -import type { DefinitionOptions } from "../definitions/_types"; -declare const deepProperties: Plugin; -export default deepProperties; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js deleted file mode 100644 index bd207d8b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const deepProperties_1 = __importDefault(require("../definitions/deepProperties")); -const deepProperties = (ajv, opts) => ajv.addKeyword((0, deepProperties_1.default)(opts)); -exports.default = deepProperties; -module.exports = deepProperties; -//# sourceMappingURL=deepProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map deleted file mode 100644 index 23ee8f3d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepProperties.js","sourceRoot":"","sources":["../../src/keywords/deepProperties.ts"],"names":[],"mappings":";;;;;AACA,mFAAkD;AAGlD,MAAM,cAAc,GAA8B,CAAC,GAAG,EAAE,IAAwB,EAAE,EAAE,CAClF,GAAG,CAAC,UAAU,CAAC,IAAA,wBAAM,EAAC,IAAI,CAAC,CAAC,CAAA;AAE9B,kBAAe,cAAc,CAAA;AAC7B,MAAM,CAAC,OAAO,GAAG,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts deleted file mode 100644 index 113062ba..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const deepRequired: Plugin; -export default deepRequired; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js deleted file mode 100644 index 20778316..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const deepRequired_1 = __importDefault(require("../definitions/deepRequired")); -const deepRequired = (ajv) => ajv.addKeyword((0, deepRequired_1.default)()); -exports.default = deepRequired; -module.exports = deepRequired; -//# sourceMappingURL=deepRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map deleted file mode 100644 index 4b808c1c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/deepRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepRequired.js","sourceRoot":"","sources":["../../src/keywords/deepRequired.ts"],"names":[],"mappings":";;;;;AACA,+EAAgD;AAEhD,MAAM,YAAY,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,sBAAM,GAAE,CAAC,CAAA;AAEzE,kBAAe,YAAY,CAAA;AAC3B,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts deleted file mode 100644 index b5e84757..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const dynamicDefaults: Plugin; -export default dynamicDefaults; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js deleted file mode 100644 index 3df22076..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicDefaults_1 = __importDefault(require("../definitions/dynamicDefaults")); -const dynamicDefaults = (ajv) => ajv.addKeyword((0, dynamicDefaults_1.default)()); -exports.default = dynamicDefaults; -module.exports = dynamicDefaults; -//# sourceMappingURL=dynamicDefaults.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map deleted file mode 100644 index f87302ae..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicDefaults.js","sourceRoot":"","sources":["../../src/keywords/dynamicDefaults.ts"],"names":[],"mappings":";;;;;AACA,qFAAmD;AAEnD,MAAM,eAAe,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,yBAAM,GAAE,CAAC,CAAA;AAE5E,kBAAe,eAAe,CAAA;AAC9B,MAAM,CAAC,OAAO,GAAG,eAAe,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts deleted file mode 100644 index 23ca1acb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const exclusiveRange: Plugin; -export default exclusiveRange; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js deleted file mode 100644 index 5788996f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const exclusiveRange_1 = __importDefault(require("../definitions/exclusiveRange")); -const exclusiveRange = (ajv) => ajv.addKeyword((0, exclusiveRange_1.default)()); -exports.default = exclusiveRange; -module.exports = exclusiveRange; -//# sourceMappingURL=exclusiveRange.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map deleted file mode 100644 index a12321b7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exclusiveRange.js","sourceRoot":"","sources":["../../src/keywords/exclusiveRange.ts"],"names":[],"mappings":";;;;;AACA,mFAAkD;AAElD,MAAM,cAAc,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,wBAAM,GAAE,CAAC,CAAA;AAE3E,kBAAe,cAAc,CAAA;AAC7B,MAAM,CAAC,OAAO,GAAG,cAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts deleted file mode 100644 index 98fd14ec..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const ajvKeywords: Record | undefined>; -export default ajvKeywords; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js deleted file mode 100644 index d2b7d86a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("./typeof")); -const instanceof_1 = __importDefault(require("./instanceof")); -const range_1 = __importDefault(require("./range")); -const exclusiveRange_1 = __importDefault(require("./exclusiveRange")); -const regexp_1 = __importDefault(require("./regexp")); -const transform_1 = __importDefault(require("./transform")); -const uniqueItemProperties_1 = __importDefault(require("./uniqueItemProperties")); -const allRequired_1 = __importDefault(require("./allRequired")); -const anyRequired_1 = __importDefault(require("./anyRequired")); -const oneRequired_1 = __importDefault(require("./oneRequired")); -const patternRequired_1 = __importDefault(require("./patternRequired")); -const prohibited_1 = __importDefault(require("./prohibited")); -const deepProperties_1 = __importDefault(require("./deepProperties")); -const deepRequired_1 = __importDefault(require("./deepRequired")); -const dynamicDefaults_1 = __importDefault(require("./dynamicDefaults")); -const select_1 = __importDefault(require("./select")); -// TODO type -const ajvKeywords = { - typeof: typeof_1.default, - instanceof: instanceof_1.default, - range: range_1.default, - exclusiveRange: exclusiveRange_1.default, - regexp: regexp_1.default, - transform: transform_1.default, - uniqueItemProperties: uniqueItemProperties_1.default, - allRequired: allRequired_1.default, - anyRequired: anyRequired_1.default, - oneRequired: oneRequired_1.default, - patternRequired: patternRequired_1.default, - prohibited: prohibited_1.default, - deepProperties: deepProperties_1.default, - deepRequired: deepRequired_1.default, - dynamicDefaults: dynamicDefaults_1.default, - select: select_1.default, -}; -exports.default = ajvKeywords; -module.exports = ajvKeywords; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map deleted file mode 100644 index b91d99ec..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keywords/index.ts"],"names":[],"mappings":";;;;;AACA,sDAAmC;AACnC,8DAA2C;AAC3C,oDAA2B;AAC3B,sEAA6C;AAC7C,sDAA6B;AAC7B,4DAAmC;AACnC,kFAAyD;AACzD,gEAAuC;AACvC,gEAAuC;AACvC,gEAAuC;AACvC,wEAA+C;AAC/C,8DAAqC;AACrC,sEAA6C;AAC7C,kEAAyC;AACzC,wEAA+C;AAC/C,sDAA6B;AAE7B,YAAY;AACZ,MAAM,WAAW,GAA4C;IAC3D,MAAM,EAAE,gBAAY;IACpB,UAAU,EAAE,oBAAgB;IAC5B,KAAK,EAAL,eAAK;IACL,cAAc,EAAd,wBAAc;IACd,MAAM,EAAN,gBAAM;IACN,SAAS,EAAT,mBAAS;IACT,oBAAoB,EAApB,8BAAoB;IACpB,WAAW,EAAX,qBAAW;IACX,WAAW,EAAX,qBAAW;IACX,WAAW,EAAX,qBAAW;IACX,eAAe,EAAf,yBAAe;IACf,UAAU,EAAV,oBAAU;IACV,cAAc,EAAd,wBAAc;IACd,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,MAAM,EAAN,gBAAM;CACP,CAAA;AAED,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts deleted file mode 100644 index 2fa300cf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const instanceofPlugin: Plugin; -export default instanceofPlugin; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js deleted file mode 100644 index e5e2784d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const instanceof_1 = __importDefault(require("../definitions/instanceof")); -const instanceofPlugin = (ajv) => ajv.addKeyword((0, instanceof_1.default)()); -exports.default = instanceofPlugin; -module.exports = instanceofPlugin; -//# sourceMappingURL=instanceof.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map deleted file mode 100644 index b33b1154..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/instanceof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instanceof.js","sourceRoot":"","sources":["../../src/keywords/instanceof.ts"],"names":[],"mappings":";;;;;AACA,2EAA8C;AAE9C,MAAM,gBAAgB,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,oBAAM,GAAE,CAAC,CAAA;AAE7E,kBAAe,gBAAgB,CAAA;AAC/B,MAAM,CAAC,OAAO,GAAG,gBAAgB,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts deleted file mode 100644 index 2aaa0f56..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const oneRequired: Plugin; -export default oneRequired; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js deleted file mode 100644 index c62e1ebd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const oneRequired_1 = __importDefault(require("../definitions/oneRequired")); -const oneRequired = (ajv) => ajv.addKeyword((0, oneRequired_1.default)()); -exports.default = oneRequired; -module.exports = oneRequired; -//# sourceMappingURL=oneRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map deleted file mode 100644 index 9dc8aa0c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/oneRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneRequired.js","sourceRoot":"","sources":["../../src/keywords/oneRequired.ts"],"names":[],"mappings":";;;;;AACA,6EAA+C;AAE/C,MAAM,WAAW,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,qBAAM,GAAE,CAAC,CAAA;AAExE,kBAAe,WAAW,CAAA;AAC1B,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts deleted file mode 100644 index 565f5c09..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const patternRequired: Plugin; -export default patternRequired; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js deleted file mode 100644 index fc6a1ab6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const patternRequired_1 = __importDefault(require("../definitions/patternRequired")); -const patternRequired = (ajv) => ajv.addKeyword((0, patternRequired_1.default)()); -exports.default = patternRequired; -module.exports = patternRequired; -//# sourceMappingURL=patternRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map deleted file mode 100644 index c446c4dc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/patternRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternRequired.js","sourceRoot":"","sources":["../../src/keywords/patternRequired.ts"],"names":[],"mappings":";;;;;AACA,qFAAmD;AAEnD,MAAM,eAAe,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,yBAAM,GAAE,CAAC,CAAA;AAE5E,kBAAe,eAAe,CAAA;AAC9B,MAAM,CAAC,OAAO,GAAG,eAAe,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts deleted file mode 100644 index 19f2ccb1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const prohibited: Plugin; -export default prohibited; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js deleted file mode 100644 index 08414f91..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const prohibited_1 = __importDefault(require("../definitions/prohibited")); -const prohibited = (ajv) => ajv.addKeyword((0, prohibited_1.default)()); -exports.default = prohibited; -module.exports = prohibited; -//# sourceMappingURL=prohibited.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map deleted file mode 100644 index 5c2b190e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/prohibited.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prohibited.js","sourceRoot":"","sources":["../../src/keywords/prohibited.ts"],"names":[],"mappings":";;;;;AACA,2EAA8C;AAE9C,MAAM,UAAU,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,oBAAM,GAAE,CAAC,CAAA;AAEvE,kBAAe,UAAU,CAAA;AACzB,MAAM,CAAC,OAAO,GAAG,UAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts deleted file mode 100644 index 5e9bd230..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const range: Plugin; -export default range; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js deleted file mode 100644 index 915f28d9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const range_1 = __importDefault(require("../definitions/range")); -const range = (ajv) => ajv.addKeyword((0, range_1.default)()); -exports.default = range; -module.exports = range; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map deleted file mode 100644 index b07eb26b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/keywords/range.ts"],"names":[],"mappings":";;;;;AACA,iEAAyC;AAEzC,MAAM,KAAK,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,eAAM,GAAE,CAAC,CAAA;AAElE,kBAAe,KAAK,CAAA;AACpB,MAAM,CAAC,OAAO,GAAG,KAAK,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts deleted file mode 100644 index 4c64f089..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const regexp: Plugin; -export default regexp; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js deleted file mode 100644 index 7eb75832..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexp_1 = __importDefault(require("../definitions/regexp")); -const regexp = (ajv) => ajv.addKeyword((0, regexp_1.default)()); -exports.default = regexp; -module.exports = regexp; -//# sourceMappingURL=regexp.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map deleted file mode 100644 index a004f5e8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexp.js","sourceRoot":"","sources":["../../src/keywords/regexp.ts"],"names":[],"mappings":";;;;;AACA,mEAA0C;AAE1C,MAAM,MAAM,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAA;AAEnE,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts deleted file mode 100644 index f7f9abaa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from "ajv"; -import type { DefinitionOptions } from "../definitions/_types"; -declare const select: Plugin; -export default select; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js deleted file mode 100644 index eff7205c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const select_1 = __importDefault(require("../definitions/select")); -const select = (ajv, opts) => { - (0, select_1.default)(opts).forEach((d) => ajv.addKeyword(d)); - return ajv; -}; -exports.default = select; -module.exports = select; -//# sourceMappingURL=select.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map deleted file mode 100644 index 55b294c9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/select.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/keywords/select.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAG3C,MAAM,MAAM,GAA8B,CAAC,GAAG,EAAE,IAAwB,EAAE,EAAE;IAC1E,IAAA,gBAAO,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts deleted file mode 100644 index 8734ed08..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const transform: Plugin; -export default transform; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js deleted file mode 100644 index bdf9ef1d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const transform_1 = __importDefault(require("../definitions/transform")); -const transform = (ajv) => ajv.addKeyword((0, transform_1.default)()); -exports.default = transform; -module.exports = transform; -//# sourceMappingURL=transform.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map deleted file mode 100644 index ef0e6750..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/transform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/keywords/transform.ts"],"names":[],"mappings":";;;;;AACA,yEAA6C;AAE7C,MAAM,SAAS,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,mBAAM,GAAE,CAAC,CAAA;AAEtE,kBAAe,SAAS,CAAA;AACxB,MAAM,CAAC,OAAO,GAAG,SAAS,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts deleted file mode 100644 index 57aff4b9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const typeofPlugin: Plugin; -export default typeofPlugin; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js deleted file mode 100644 index 6cabc3af..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const typeof_1 = __importDefault(require("../definitions/typeof")); -const typeofPlugin = (ajv) => ajv.addKeyword((0, typeof_1.default)()); -exports.default = typeofPlugin; -module.exports = typeofPlugin; -//# sourceMappingURL=typeof.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map deleted file mode 100644 index ec706221..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeof.js","sourceRoot":"","sources":["../../src/keywords/typeof.ts"],"names":[],"mappings":";;;;;AACA,mEAA0C;AAE1C,MAAM,YAAY,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAA;AAEzE,kBAAe,YAAY,CAAA;AAC3B,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts deleted file mode 100644 index ff06feac..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from "ajv"; -declare const uniqueItemProperties: Plugin; -export default uniqueItemProperties; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js deleted file mode 100644 index a638fcc4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const uniqueItemProperties_1 = __importDefault(require("../definitions/uniqueItemProperties")); -const uniqueItemProperties = (ajv) => ajv.addKeyword((0, uniqueItemProperties_1.default)()); -exports.default = uniqueItemProperties; -module.exports = uniqueItemProperties; -//# sourceMappingURL=uniqueItemProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map deleted file mode 100644 index b62fdd2f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItemProperties.js","sourceRoot":"","sources":["../../src/keywords/uniqueItemProperties.ts"],"names":[],"mappings":";;;;;AACA,+FAAwD;AAExD,MAAM,oBAAoB,GAAsB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAA,8BAAM,GAAE,CAAC,CAAA;AAEjF,kBAAe,oBAAoB,CAAA;AACnC,MAAM,CAAC,OAAO,GAAG,oBAAoB,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/package.json b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/package.json deleted file mode 100644 index 515f5837..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "ajv-keywords", - "version": "5.1.0", - "description": "Additional JSON-Schema keywords for Ajv JSON validator", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "scripts": { - "build": "rm -rf dist && tsc", - "prepublish": "npm run build", - "prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"", - "prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"", - "test": "npm link && npm link ajv-keywords && npm run eslint && npm run test-cov", - "eslint": "eslint \"src/**/*.*s\" \"spec/**/*.*s\"", - "test-spec": "jest spec/*.ts", - "test-cov": "jest spec/*.ts --coverage" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/epoberezkin/ajv-keywords.git" - }, - "keywords": [ - "JSON-Schema", - "ajv", - "keywords" - ], - "files": [ - "src", - "dist", - "ajv-keywords.d.ts" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": { - "url": "https://github.com/epoberezkin/ajv-keywords/issues" - }, - "homepage": "https://github.com/epoberezkin/ajv-keywords#readme", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - }, - "devDependencies": { - "@ajv-validator/config": "^0.2.3", - "@types/chai": "^4.2.14", - "@types/jest": "^26.0.14", - "@types/node": "^16.4.10", - "@types/uuid": "^8.3.0", - "@typescript-eslint/eslint-plugin": "^4.4.1", - "@typescript-eslint/parser": "^4.4.1", - "ajv": "^8.8.2", - "ajv-formats": "^2.0.0", - "chai": "^4.2.0", - "eslint": "^7.2.0", - "eslint-config-prettier": "^7.0.0", - "husky": "^7.0.1", - "jest": "^26.5.3", - "json-schema-test": "^2.0.0", - "lint-staged": "^11.1.1", - "prettier": "^2.1.2", - "ts-jest": "^26.4.1", - "typescript": "^4.2.0", - "uuid": "^8.1.0" - }, - "prettier": "@ajv-validator/config/prettierrc.json", - "husky": { - "hooks": { - "pre-commit": "lint-staged && npm test" - } - }, - "lint-staged": { - "*.{md,json,yaml,js,ts}": "prettier --write" - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_range.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_range.ts deleted file mode 100644 index 38cb9a0d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_range.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" - -type RangeKwd = "range" | "exclusiveRange" - -export default function getRangeDef(keyword: RangeKwd): GetDefinition { - return () => ({ - keyword, - type: "number", - schemaType: "array", - macro: function ([min, max]: [number, number]) { - validateRangeSchema(min, max) - return keyword === "range" - ? {minimum: min, maximum: max} - : {exclusiveMinimum: min, exclusiveMaximum: max} - }, - metaSchema: { - type: "array", - minItems: 2, - maxItems: 2, - items: {type: "number"}, - }, - }) - - function validateRangeSchema(min: number, max: number): void { - if (min > max || (keyword === "exclusiveRange" && min === max)) { - throw new Error("There are no numbers in range") - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_required.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_required.ts deleted file mode 100644 index ddf93954..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_required.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" - -type RequiredKwd = "anyRequired" | "oneRequired" - -export default function getRequiredDef( - keyword: RequiredKwd -): GetDefinition { - return () => ({ - keyword, - type: "object", - schemaType: "array", - macro(schema: string[]) { - if (schema.length === 0) return true - if (schema.length === 1) return {required: schema} - const comb = keyword === "anyRequired" ? "anyOf" : "oneOf" - return {[comb]: schema.map((p) => ({required: [p]}))} - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - }) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_types.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_types.ts deleted file mode 100644 index c3f54248..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_types.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {KeywordDefinition} from "ajv" - -export interface DefinitionOptions { - defaultMeta?: string | boolean -} - -export type GetDefinition = (opts?: DefinitionOptions) => T diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_util.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_util.ts deleted file mode 100644 index 68bcc01b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/_util.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {DefinitionOptions} from "./_types" -import type {SchemaObject, KeywordCxt, Name} from "ajv" -import {_} from "ajv/dist/compile/codegen" - -const META_SCHEMA_ID = "http://json-schema.org/schema" - -export function metaSchemaRef({defaultMeta}: DefinitionOptions = {}): SchemaObject { - return defaultMeta === false ? {} : {$ref: defaultMeta || META_SCHEMA_ID} -} - -export function usePattern( - {gen, it: {opts}}: KeywordCxt, - pattern: string, - flags = opts.unicodeRegExp ? "u" : "" -): Name { - const rx = new RegExp(pattern, flags) - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: _`new RegExp(${pattern}, ${flags})`, - }) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts deleted file mode 100644 index 821558f2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/allRequired.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" - -export default function getDef(): MacroKeywordDefinition { - return { - keyword: "allRequired", - type: "object", - schemaType: "boolean", - macro(schema: boolean, parentSchema) { - if (!schema) return true - const required = Object.keys(parentSchema.properties) - if (required.length === 0) return true - return {required} - }, - dependencies: ["properties"], - } -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts deleted file mode 100644 index 7f715367..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/anyRequired.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRequiredDef from "./_required" - -const getDef: GetDefinition = getRequiredDef("anyRequired") - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts deleted file mode 100644 index be294106..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepProperties.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type {MacroKeywordDefinition, SchemaObject, Schema} from "ajv" -import type {DefinitionOptions} from "./_types" -import {metaSchemaRef} from "./_util" - -export default function getDef(opts?: DefinitionOptions): MacroKeywordDefinition { - return { - keyword: "deepProperties", - type: "object", - schemaType: "object", - macro: function (schema: Record) { - const allOf = [] - for (const pointer in schema) allOf.push(getSchema(pointer, schema[pointer])) - return {allOf} - }, - metaSchema: { - type: "object", - propertyNames: {type: "string", format: "json-pointer"}, - additionalProperties: metaSchemaRef(opts), - }, - } -} - -function getSchema(jsonPointer: string, schema: SchemaObject): SchemaObject { - const segments = jsonPointer.split("/") - const rootSchema: SchemaObject = {} - let pointerSchema: SchemaObject = rootSchema - for (let i = 1; i < segments.length; i++) { - let segment: string = segments[i] - const isLast = i === segments.length - 1 - segment = unescapeJsonPointer(segment) - const properties: Record = (pointerSchema.properties = {}) - let items: SchemaObject[] | undefined - if (/[0-9]+/.test(segment)) { - let count = +segment - items = pointerSchema.items = [] - pointerSchema.type = ["object", "array"] - while (count--) items.push({}) - } else { - pointerSchema.type = "object" - } - pointerSchema = isLast ? schema : {} - properties[segment] = pointerSchema - if (items) items.push(pointerSchema) - } - return rootSchema -} - -function unescapeJsonPointer(str: string): string { - return str.replace(/~1/g, "/").replace(/~0/g, "~") -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts deleted file mode 100644 index c01b7026..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/deepRequired.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt} from "ajv" -import {_, or, and, getProperty, Code} from "ajv/dist/compile/codegen" - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "deepRequired", - type: "object", - schemaType: "array", - code(ctx: KeywordCxt) { - const {schema, data} = ctx - const props = (schema as string[]).map((jp: string) => _`(${getData(jp)}) === undefined`) - ctx.fail(or(...props)) - - function getData(jsonPointer: string): Code { - if (jsonPointer === "") throw new Error("empty JSON pointer not allowed") - const segments = jsonPointer.split("/") - let x: Code = data - const xs = segments.map((s, i) => - i ? (x = _`${x}${getProperty(unescapeJPSegment(s))}`) : x - ) - return and(...xs) - } - }, - metaSchema: { - type: "array", - items: {type: "string", format: "json-pointer"}, - }, - } -} - -function unescapeJPSegment(s: string): string { - return s.replace(/~1/g, "/").replace(/~0/g, "~") -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts deleted file mode 100644 index 84cd0c37..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/dynamicDefaults.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {FuncKeywordDefinition, SchemaCxt} from "ajv" - -const sequences: Record = {} - -export type DynamicDefaultFunc = (args?: Record) => () => any - -const DEFAULTS: Record = { - timestamp: () => () => Date.now(), - datetime: () => () => new Date().toISOString(), - date: () => () => new Date().toISOString().slice(0, 10), - time: () => () => new Date().toISOString().slice(11), - random: () => () => Math.random(), - randomint: (args?: {max?: number}) => { - const max = args?.max ?? 2 - return () => Math.floor(Math.random() * max) - }, - seq: (args?: {name?: string}) => { - const name = args?.name ?? "" - sequences[name] ||= 0 - return () => (sequences[name] as number)++ - }, -} - -interface PropertyDefaultSchema { - func: string - args: Record -} - -type DefaultSchema = Record - -const getDef: (() => FuncKeywordDefinition) & { - DEFAULTS: typeof DEFAULTS -} = Object.assign(_getDef, {DEFAULTS}) - -function _getDef(): FuncKeywordDefinition { - return { - keyword: "dynamicDefaults", - type: "object", - schemaType: ["string", "object"], - modifying: true, - valid: true, - compile(schema: DefaultSchema, _parentSchema, it: SchemaCxt) { - if (!it.opts.useDefaults || it.compositeRule) return () => true - const fs: Record any> = {} - for (const key in schema) fs[key] = getDefault(schema[key]) - const empty = it.opts.useDefaults === "empty" - - return (data: Record) => { - for (const prop in schema) { - if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) { - data[prop] = fs[prop]() - } - } - return true - } - }, - metaSchema: { - type: "object", - additionalProperties: { - anyOf: [ - {type: "string"}, - { - type: "object", - additionalProperties: false, - required: ["func", "args"], - properties: { - func: {type: "string"}, - args: {type: "object"}, - }, - }, - ], - }, - }, - } -} - -function getDefault(d: string | PropertyDefaultSchema | undefined): () => any { - return typeof d == "object" ? getObjDefault(d) : getStrDefault(d) -} - -function getObjDefault({func, args}: PropertyDefaultSchema): () => any { - const def = DEFAULTS[func] - assertDefined(func, def) - return def(args) -} - -function getStrDefault(d = ""): () => any { - const def = DEFAULTS[d] - assertDefined(d, def) - return def() -} - -function assertDefined(name: string, def?: DynamicDefaultFunc): asserts def is DynamicDefaultFunc { - if (!def) throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`) -} - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts deleted file mode 100644 index 7a4f7361..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/exclusiveRange.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRangeDef from "./_range" - -const getDef: GetDefinition = getRangeDef("exclusiveRange") - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/index.ts deleted file mode 100644 index eb0a4af7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/index.ts +++ /dev/null @@ -1,61 +0,0 @@ -import type {Vocabulary, KeywordDefinition, ErrorNoParams} from "ajv" -import type {DefinitionOptions, GetDefinition} from "./_types" -import typeofDef from "./typeof" -import instanceofDef from "./instanceof" -import range from "./range" -import exclusiveRange from "./exclusiveRange" -import regexp from "./regexp" -import transform from "./transform" -import uniqueItemProperties from "./uniqueItemProperties" -import allRequired from "./allRequired" -import anyRequired from "./anyRequired" -import oneRequired from "./oneRequired" -import patternRequired, {PatternRequiredError} from "./patternRequired" -import prohibited from "./prohibited" -import deepProperties from "./deepProperties" -import deepRequired from "./deepRequired" -import dynamicDefaults from "./dynamicDefaults" -import selectDef, {SelectError} from "./select" - -const definitions: GetDefinition[] = [ - typeofDef, - instanceofDef, - range, - exclusiveRange, - regexp, - transform, - uniqueItemProperties, - allRequired, - anyRequired, - oneRequired, - patternRequired, - prohibited, - deepProperties, - deepRequired, - dynamicDefaults, -] - -export default function ajvKeywords(opts?: DefinitionOptions): Vocabulary { - return definitions.map((d) => d(opts)).concat(selectDef(opts)) -} - -export type AjvKeywordsError = - | PatternRequiredError - | SelectError - | ErrorNoParams< - | "range" - | "exclusiveRange" - | "anyRequired" - | "oneRequired" - | "allRequired" - | "deepProperties" - | "deepRequired" - | "dynamicDefaults" - | "instanceof" - | "prohibited" - | "regexp" - | "transform" - | "uniqueItemProperties" - > - -module.exports = ajvKeywords diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts deleted file mode 100644 index 2f1c54f5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/instanceof.ts +++ /dev/null @@ -1,61 +0,0 @@ -import type {FuncKeywordDefinition} from "ajv" - -type Constructor = new (...args: any[]) => any - -const CONSTRUCTORS: Record = { - Object, - Array, - Function, - Number, - String, - Date, - RegExp, -} - -/* istanbul ignore else */ -if (typeof Buffer != "undefined") CONSTRUCTORS.Buffer = Buffer - -/* istanbul ignore else */ -if (typeof Promise != "undefined") CONSTRUCTORS.Promise = Promise - -const getDef: (() => FuncKeywordDefinition) & { - CONSTRUCTORS: typeof CONSTRUCTORS -} = Object.assign(_getDef, {CONSTRUCTORS}) - -function _getDef(): FuncKeywordDefinition { - return { - keyword: "instanceof", - schemaType: ["string", "array"], - compile(schema: string | string[]) { - if (typeof schema == "string") { - const C = getConstructor(schema) - return (data) => data instanceof C - } - - if (Array.isArray(schema)) { - const constructors = schema.map(getConstructor) - return (data) => { - for (const C of constructors) { - if (data instanceof C) return true - } - return false - } - } - - /* istanbul ignore next */ - throw new Error("ajv implementation error") - }, - metaSchema: { - anyOf: [{type: "string"}, {type: "array", items: {type: "string"}}], - }, - } -} - -function getConstructor(c: string): Constructor { - const C = CONSTRUCTORS[c] - if (C) return C - throw new Error(`invalid "instanceof" keyword value ${c}`) -} - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts deleted file mode 100644 index 79c44c97..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/oneRequired.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRequiredDef from "./_required" - -const getDef: GetDefinition = getRequiredDef("oneRequired") - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts deleted file mode 100644 index 63235c52..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/patternRequired.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt, KeywordErrorDefinition, ErrorObject} from "ajv" -import {_, str, and} from "ajv/dist/compile/codegen" -import {usePattern} from "./_util" - -export type PatternRequiredError = ErrorObject<"patternRequired", {missingPattern: string}> - -const error: KeywordErrorDefinition = { - message: ({params: {missingPattern}}) => - str`should have property matching pattern '${missingPattern}'`, - params: ({params: {missingPattern}}) => _`{missingPattern: ${missingPattern}}`, -} - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "patternRequired", - type: "object", - schemaType: "array", - error, - code(cxt: KeywordCxt) { - const {gen, schema, data} = cxt - if (schema.length === 0) return - const valid = gen.let("valid", true) - for (const pat of schema) validateProperties(pat) - - function validateProperties(pattern: string): void { - const matched = gen.let("matched", false) - - gen.forIn("key", data, (key) => { - gen.assign(matched, _`${usePattern(cxt, pattern)}.test(${key})`) - gen.if(matched, () => gen.break()) - }) - - cxt.setParams({missingPattern: pattern}) - gen.assign(valid, and(valid, matched)) - cxt.pass(valid) - } - }, - metaSchema: { - type: "array", - items: {type: "string", format: "regex"}, - uniqueItems: true, - }, - } -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts deleted file mode 100644 index 659fdda1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/prohibited.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" - -export default function getDef(): MacroKeywordDefinition { - return { - keyword: "prohibited", - type: "object", - schemaType: "array", - macro: function (schema: string[]) { - if (schema.length === 0) return true - if (schema.length === 1) return {not: {required: schema}} - return {not: {anyOf: schema.map((p) => ({required: [p]}))}} - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - } -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/range.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/range.ts deleted file mode 100644 index c867b7d1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/range.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {MacroKeywordDefinition} from "ajv" -import type {GetDefinition} from "./_types" -import getRangeDef from "./_range" - -const getDef: GetDefinition = getRangeDef("range") - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts deleted file mode 100644 index 68ddef83..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/regexp.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt, JSONSchemaType, Name} from "ajv" -import {_} from "ajv/dist/compile/codegen" -import {usePattern} from "./_util" - -interface RegexpSchema { - pattern: string - flags?: string -} - -const regexpMetaSchema: JSONSchemaType = { - type: "object", - properties: { - pattern: {type: "string"}, - flags: {type: "string", nullable: true}, - }, - required: ["pattern"], - additionalProperties: false, -} - -const metaRegexp = /^\/(.*)\/([gimuy]*)$/ - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "regexp", - type: "string", - schemaType: ["string", "object"], - code(cxt: KeywordCxt) { - const {data, schema} = cxt - const regx = getRegExp(schema) - cxt.pass(_`${regx}.test(${data})`) - - function getRegExp(sch: string | RegexpSchema): Name { - if (typeof sch == "object") return usePattern(cxt, sch.pattern, sch.flags) - const rx = metaRegexp.exec(sch) - if (rx) return usePattern(cxt, rx[1], rx[2]) - throw new Error("cannot parse string into RegExp") - } - }, - metaSchema: { - anyOf: [{type: "string"}, regexpMetaSchema], - }, - } -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/select.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/select.ts deleted file mode 100644 index f5cc19f5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/select.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type {KeywordDefinition, KeywordErrorDefinition, KeywordCxt, ErrorObject} from "ajv" -import {_, str, nil, Name} from "ajv/dist/compile/codegen" -import type {DefinitionOptions} from "./_types" -import {metaSchemaRef} from "./_util" - -export type SelectError = ErrorObject<"select", {failingCase?: string; failingDefault?: true}> - -const error: KeywordErrorDefinition = { - message: ({params: {schemaProp}}) => - schemaProp - ? str`should match case "${schemaProp}" schema` - : str`should match default case schema`, - params: ({params: {schemaProp}}) => - schemaProp ? _`{failingCase: ${schemaProp}}` : _`{failingDefault: true}`, -} - -export default function getDef(opts?: DefinitionOptions): KeywordDefinition[] { - const metaSchema = metaSchemaRef(opts) - - return [ - { - keyword: "select", - schemaType: ["string", "number", "boolean", "null"], - $data: true, - error, - dependencies: ["selectCases"], - code(cxt: KeywordCxt) { - const {gen, schemaCode, parentSchema} = cxt - cxt.block$data(nil, () => { - const valid = gen.let("valid", true) - const schValid = gen.name("_valid") - const value = gen.const("value", _`${schemaCode} === null ? "null" : ${schemaCode}`) - gen.if(false) // optimizer should remove it from generated code - for (const schemaProp in parentSchema.selectCases) { - cxt.setParams({schemaProp}) - gen.elseIf(_`"" + ${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans - const schCxt = cxt.subschema({keyword: "selectCases", schemaProp}, schValid) - cxt.mergeEvaluated(schCxt, Name) - gen.assign(valid, schValid) - } - gen.else() - if (parentSchema.selectDefault !== undefined) { - cxt.setParams({schemaProp: undefined}) - const schCxt = cxt.subschema({keyword: "selectDefault"}, schValid) - cxt.mergeEvaluated(schCxt, Name) - gen.assign(valid, schValid) - } - gen.endIf() - cxt.pass(valid) - }) - }, - }, - { - keyword: "selectCases", - dependencies: ["select"], - metaSchema: { - type: "object", - additionalProperties: metaSchema, - }, - }, - { - keyword: "selectDefault", - dependencies: ["select", "selectCases"], - metaSchema, - }, - ] -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/transform.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/transform.ts deleted file mode 100644 index af4ae291..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/transform.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject, KeywordCxt, Code, Name} from "ajv" -import {_, stringify, getProperty} from "ajv/dist/compile/codegen" - -type TransformName = - | "trimStart" - | "trimEnd" - | "trimLeft" - | "trimRight" - | "trim" - | "toLowerCase" - | "toUpperCase" - | "toEnumCase" - -interface TransformConfig { - hash: Record -} - -type Transform = (s: string, cfg?: TransformConfig) => string - -const transform: {[key in TransformName]: Transform} = { - trimStart: (s) => s.trimStart(), - trimEnd: (s) => s.trimEnd(), - trimLeft: (s) => s.trimStart(), - trimRight: (s) => s.trimEnd(), - trim: (s) => s.trim(), - toLowerCase: (s) => s.toLowerCase(), - toUpperCase: (s) => s.toUpperCase(), - toEnumCase: (s, cfg) => cfg?.hash[configKey(s)] || s, -} - -const getDef: (() => CodeKeywordDefinition) & { - transform: typeof transform -} = Object.assign(_getDef, {transform}) - -function _getDef(): CodeKeywordDefinition { - return { - keyword: "transform", - schemaType: "array", - before: "enum", - code(cxt: KeywordCxt) { - const {gen, data, schema, parentSchema, it} = cxt - const {parentData, parentDataProperty} = it - const tNames: string[] = schema - if (!tNames.length) return - let cfg: Name | undefined - if (tNames.includes("toEnumCase")) { - const config = getEnumCaseCfg(parentSchema) - cfg = gen.scopeValue("obj", {ref: config, code: stringify(config)}) - } - gen.if(_`typeof ${data} == "string" && ${parentData} !== undefined`, () => { - gen.assign(data, transformExpr(tNames.slice())) - gen.assign(_`${parentData}[${parentDataProperty}]`, data) - }) - - function transformExpr(ts: string[]): Code { - if (!ts.length) return data - const t = ts.pop() as string - if (!(t in transform)) throw new Error(`transform: unknown transformation ${t}`) - const func = gen.scopeValue("func", { - ref: transform[t as TransformName], - code: _`require("ajv-keywords/dist/definitions/transform").transform${getProperty(t)}`, - }) - const arg = transformExpr(ts) - return cfg && t === "toEnumCase" ? _`${func}(${arg}, ${cfg})` : _`${func}(${arg})` - } - }, - metaSchema: { - type: "array", - items: {type: "string", enum: Object.keys(transform)}, - }, - } -} - -function getEnumCaseCfg(parentSchema: AnySchemaObject): TransformConfig { - // build hash table to enum values - const cfg: TransformConfig = {hash: {}} - - // requires `enum` in the same schema as transform - if (!parentSchema.enum) throw new Error('transform: "toEnumCase" requires "enum"') - for (const v of parentSchema.enum) { - if (typeof v !== "string") continue - const k = configKey(v) - // requires all `enum` values have unique keys - if (cfg.hash[k]) { - throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique') - } - cfg.hash[k] = v - } - - return cfg -} - -function configKey(s: string): string { - return s.toLowerCase() -} - -export default getDef -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts deleted file mode 100644 index a8b39fbf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/typeof.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type {CodeKeywordDefinition, KeywordCxt} from "ajv" -import {_} from "ajv/dist/compile/codegen" - -const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"] - -export default function getDef(): CodeKeywordDefinition { - return { - keyword: "typeof", - schemaType: ["string", "array"], - code(cxt: KeywordCxt) { - const {data, schema, schemaValue} = cxt - cxt.fail( - typeof schema == "string" - ? _`typeof ${data} != ${schema}` - : _`${schemaValue}.indexOf(typeof ${data}) < 0` - ) - }, - metaSchema: { - anyOf: [ - {type: "string", enum: TYPES}, - {type: "array", items: {type: "string", enum: TYPES}}, - ], - }, - } -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts deleted file mode 100644 index 8b2c6f94..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/definitions/uniqueItemProperties.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type {FuncKeywordDefinition, AnySchemaObject} from "ajv" -import equal = require("fast-deep-equal") - -const SCALAR_TYPES = ["number", "integer", "string", "boolean", "null"] - -export default function getDef(): FuncKeywordDefinition { - return { - keyword: "uniqueItemProperties", - type: "array", - schemaType: "array", - compile(keys: string[], parentSchema: AnySchemaObject) { - const scalar = getScalarKeys(keys, parentSchema) - - return (data) => { - if (data.length <= 1) return true - for (let k = 0; k < keys.length; k++) { - const key = keys[k] - if (scalar[k]) { - const hash: Record = {} - for (const x of data) { - if (!x || typeof x != "object") continue - let p = x[key] - if (p && typeof p == "object") continue - if (typeof p == "string") p = '"' + p - if (hash[p]) return false - hash[p] = true - } - } else { - for (let i = data.length; i--; ) { - const x = data[i] - if (!x || typeof x != "object") continue - for (let j = i; j--; ) { - const y = data[j] - if (y && typeof y == "object" && equal(x[key], y[key])) return false - } - } - } - } - return true - } - }, - metaSchema: { - type: "array", - items: {type: "string"}, - }, - } -} - -function getScalarKeys(keys: string[], schema: AnySchemaObject): boolean[] { - return keys.map((key) => { - const t = schema.items?.properties?.[key]?.type - return Array.isArray(t) - ? !t.includes("object") && !t.includes("array") - : SCALAR_TYPES.includes(t) - }) -} - -module.exports = getDef diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/index.ts deleted file mode 100644 index bb580fb3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/index.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type Ajv from "ajv" -import type {Plugin} from "ajv" -import plugins from "./keywords" - -export {AjvKeywordsError} from "./definitions" - -const ajvKeywords: Plugin = (ajv: Ajv, keyword?: string | string[]): Ajv => { - if (Array.isArray(keyword)) { - for (const k of keyword) get(k)(ajv) - return ajv - } - if (keyword) { - get(keyword)(ajv) - return ajv - } - for (keyword in plugins) get(keyword)(ajv) - return ajv -} - -ajvKeywords.get = get - -function get(keyword: string): Plugin { - const defFunc = plugins[keyword] - if (!defFunc) throw new Error("Unknown keyword " + keyword) - return defFunc -} - -export default ajvKeywords -module.exports = ajvKeywords - -// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -module.exports.default = ajvKeywords diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts deleted file mode 100644 index 30cce437..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/allRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/allRequired" - -const allRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default allRequired -module.exports = allRequired diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts deleted file mode 100644 index b55b817e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/anyRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/anyRequired" - -const anyRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default anyRequired -module.exports = anyRequired diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts deleted file mode 100644 index e035531e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepProperties.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/deepProperties" -import type {DefinitionOptions} from "../definitions/_types" - -const deepProperties: Plugin = (ajv, opts?: DefinitionOptions) => - ajv.addKeyword(getDef(opts)) - -export default deepProperties -module.exports = deepProperties diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts deleted file mode 100644 index 44b19ae2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/deepRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/deepRequired" - -const deepRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default deepRequired -module.exports = deepRequired diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts deleted file mode 100644 index f8f82053..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/dynamicDefaults.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/dynamicDefaults" - -const dynamicDefaults: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default dynamicDefaults -module.exports = dynamicDefaults diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts deleted file mode 100644 index 407a374e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/exclusiveRange.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/exclusiveRange" - -const exclusiveRange: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default exclusiveRange -module.exports = exclusiveRange diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/index.ts deleted file mode 100644 index edf99963..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type {Plugin} from "ajv" -import typeofPlugin from "./typeof" -import instanceofPlugin from "./instanceof" -import range from "./range" -import exclusiveRange from "./exclusiveRange" -import regexp from "./regexp" -import transform from "./transform" -import uniqueItemProperties from "./uniqueItemProperties" -import allRequired from "./allRequired" -import anyRequired from "./anyRequired" -import oneRequired from "./oneRequired" -import patternRequired from "./patternRequired" -import prohibited from "./prohibited" -import deepProperties from "./deepProperties" -import deepRequired from "./deepRequired" -import dynamicDefaults from "./dynamicDefaults" -import select from "./select" - -// TODO type -const ajvKeywords: Record | undefined> = { - typeof: typeofPlugin, - instanceof: instanceofPlugin, - range, - exclusiveRange, - regexp, - transform, - uniqueItemProperties, - allRequired, - anyRequired, - oneRequired, - patternRequired, - prohibited, - deepProperties, - deepRequired, - dynamicDefaults, - select, -} - -export default ajvKeywords -module.exports = ajvKeywords diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts deleted file mode 100644 index 98a2463d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/instanceof.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/instanceof" - -const instanceofPlugin: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default instanceofPlugin -module.exports = instanceofPlugin diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts deleted file mode 100644 index 452bb244..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/oneRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/oneRequired" - -const oneRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default oneRequired -module.exports = oneRequired diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts deleted file mode 100644 index f9e4e50c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/patternRequired.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/patternRequired" - -const patternRequired: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default patternRequired -module.exports = patternRequired diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts deleted file mode 100644 index c4f05764..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/prohibited.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/prohibited" - -const prohibited: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default prohibited -module.exports = prohibited diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/range.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/range.ts deleted file mode 100644 index 1fd28ce0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/range.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/range" - -const range: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default range -module.exports = range diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts deleted file mode 100644 index 48c461cb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/regexp.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/regexp" - -const regexp: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default regexp -module.exports = regexp diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/select.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/select.ts deleted file mode 100644 index dc3bd816..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/select.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {Plugin} from "ajv" -import getDefs from "../definitions/select" -import type {DefinitionOptions} from "../definitions/_types" - -const select: Plugin = (ajv, opts?: DefinitionOptions) => { - getDefs(opts).forEach((d) => ajv.addKeyword(d)) - return ajv -} - -export default select -module.exports = select diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/transform.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/transform.ts deleted file mode 100644 index d6335ec4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/transform.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/transform" - -const transform: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default transform -module.exports = transform diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts deleted file mode 100644 index a171c507..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/typeof.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/typeof" - -const typeofPlugin: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default typeofPlugin -module.exports = typeofPlugin diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts deleted file mode 100644 index 1dc5fe3e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/src/keywords/uniqueItemProperties.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Plugin} from "ajv" -import getDef from "../definitions/uniqueItemProperties" - -const uniqueItemProperties: Plugin = (ajv) => ajv.addKeyword(getDef()) - -export default uniqueItemProperties -module.exports = uniqueItemProperties diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/.runkit_example.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/.runkit_example.js deleted file mode 100644 index 0d578d5d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/.runkit_example.js +++ /dev/null @@ -1,23 +0,0 @@ -const Ajv = require("ajv") -const ajv = new Ajv({allErrors: true}) - -const schema = { - type: "object", - properties: { - foo: {type: "string"}, - bar: {type: "number", maximum: 3}, - }, - required: ["foo", "bar"], - additionalProperties: false, -} - -const validate = ajv.compile(schema) - -test({foo: "abc", bar: 2}) -test({foo: 2, bar: 4}) - -function test(data) { - const valid = validate(data) - if (valid) console.log("Valid!") - else console.log("Invalid: " + ajv.errorsText(validate.errors)) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/LICENSE b/node_modules/mini-css-extract-plugin/node_modules/ajv/LICENSE deleted file mode 100644 index 139162ad..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2021 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/README.md b/node_modules/mini-css-extract-plugin/node_modules/ajv/README.md deleted file mode 100644 index aa3baaab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/README.md +++ /dev/null @@ -1,193 +0,0 @@ -Ajv logo - -  - -# Ajv JSON schema validator - -The fastest JSON validator for Node.js and browser. - -Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). - -[![build](https://github.com/ajv-validator/ajv/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) -[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) -[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master) -[![SimpleX](https://img.shields.io/badge/chat-on%20SimpleX-%2307b4b9)](https://simplex.chat/contact#/?v=1&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqASV4yROM28Er0luVTx5X1CsMrU%3D%40smp4.simplex.im%2Fap4lMFzfXF8Hzmh-Vz0WNxp_1jKiOa-h%23MCowBQYDK2VuAyEAcdefddRvDfI8iAuBpztm_J3qFucj8MDZoVs_2EcMTzU%3D) -[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) -[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin) - -## Ajv sponsors - -[Mozilla](https://www.mozilla.org)[](https://opencollective.com/ajv) - -[Microsoft](https://opensource.microsoft.com)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) - -[Retool](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)[Tidelift](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)[SimpleX](https://github.com/simplex-chat/simplex-chat)[](https://opencollective.com/ajv) - -## Contributing - -More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation. - -Please review [Contributing guidelines](./CONTRIBUTING.md) and [Code components](https://ajv.js.org/components.html). - -## Documentation - -All documentation is available on the [Ajv website](https://ajv.js.org). - -Some useful site links: -- [Getting started](https://ajv.js.org/guide/getting-started.html) -- [JSON Schema vs JSON Type Definition](https://ajv.js.org/guide/schema-language.html) -- [API reference](https://ajv.js.org/api.html) -- [Strict mode](https://ajv.js.org/strict-mode.html) -- [Standalone validation code](https://ajv.js.org/standalone.html) -- [Security considerations](https://ajv.js.org/security.html) -- [Command line interface](https://ajv.js.org/packages/ajv-cli.html) -- [Frequently Asked Questions](https://ajv.js.org/faq.html) - -## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin) - -Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant! - -Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released. - -Please sponsor Ajv via: - -- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it) -- [Ajv Open Collective️](https://opencollective.com/ajv) - -Thank you. - -#### Open Collective sponsors - - - - - - - - - - - - - - - - -## Performance - -Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. - -Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: - -- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place -- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster -- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) -- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) - -Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): - -[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|ajv|@exodus/schemasafe|is-my-json-valid|djv|@cfworker/json-schema|jsonschema&chd=t:100,69.2,51.5,13.1,5.1,1.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) - -## Features - -- Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6): - - all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html)) - - [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions: - - NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator). - - keyword [nullable](https://ajv.js.org/json-schema.html#nullable). - - full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available) - - support of recursive references between schemas - - correct string lengths for strings with unicode pairs - - JSON Schema [formats](https://ajv.js.org/guide/formats.html) (with [ajv-formats](https://github.com/ajv-validator/ajv-formats) plugin). - - [validates schemas against meta-schema](https://ajv.js.org/api.html#api-validateschema) -- NEW: supports [JSON Type Definition](https://datatracker.ietf.org/doc/rfc8927/): - - all keywords (see [JSON Type Definition schema forms](https://ajv.js.org/json-type-definition.html)) - - meta-schema for JTD schemas - - "union" keyword and user-defined keywords (can be used inside "metadata" member of the schema) -- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 10.x - current -- [asynchronous loading](https://ajv.js.org/guide/managing-schemas.html#asynchronous-schema-loading) of referenced schemas during compilation -- "All errors" validation mode with [option allErrors](https://ajv.js.org/options.html#allerrors) -- [error messages with parameters](https://ajv.js.org/api.html#validation-errors) describing error reasons to allow error message generation -- i18n error messages support with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package -- [removing-additional-properties](https://ajv.js.org/guide/modifying-data.html#removing-additional-properties) -- [assigning defaults](https://ajv.js.org/guide/modifying-data.html#assigning-defaults) to missing properties and items -- [coercing data](https://ajv.js.org/guide/modifying-data.html#coercing-data-types) to the types specified in `type` keywords -- [user-defined keywords](https://ajv.js.org/guide/user-keywords.html) -- additional extension keywords with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package -- [\$data reference](https://ajv.js.org/guide/combining-schemas.html#data-reference) to use values from the validated data as values for the schema keywords -- [asynchronous validation](https://ajv.js.org/guide/async-validation.html) of user-defined formats and keywords - -## Install - -To install version 8: - -``` -npm install ajv -``` - -## Getting started - -Try it in the Node.js REPL: https://runkit.com/npm/ajv - -In JavaScript: - -```javascript -// or ESM/TypeScript import -import Ajv from "ajv" -// Node.js require: -const Ajv = require("ajv") - -const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} - -const schema = { - type: "object", - properties: { - foo: {type: "integer"}, - bar: {type: "string"} - }, - required: ["foo"], - additionalProperties: false, -} - -const data = { - foo: 1, - bar: "abc" -} - -const validate = ajv.compile(schema) -const valid = validate(data) -if (!valid) console.log(validate.errors) -``` - -Learn how to use Ajv and see more examples in the [Guide: getting started](https://ajv.js.org/guide/getting-started.html) - -## Changes history - -See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases) - -**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) - -[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) - -[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). - -## Code of conduct - -Please review and follow the [Code of conduct](./CODE_OF_CONDUCT.md). - -Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - -## Open-source software support - -Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - -## License - -[MIT](./LICENSE) diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.d.ts deleted file mode 100644 index 5a391dd6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -declare class Ajv2019 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2019; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js deleted file mode 100644 index 89d78532..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const dynamic_1 = require("./vocabularies/dynamic"); -const next_1 = require("./vocabularies/next"); -const unevaluated_1 = require("./vocabularies/unevaluated"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2019_09_1 = require("./refs/json-schema-2019-09"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema"; -class Ajv2019 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(dynamic_1.default); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - this.addVocabulary(next_1.default); - this.addVocabulary(unevaluated_1.default); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2019_09_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv2019; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2019; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=2019.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js.map deleted file mode 100644 index 8e4e87ca..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2019.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2019.js","sourceRoot":"","sources":["../lib/2019.ts"],"names":[],"mappings":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AAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.d.ts deleted file mode 100644 index 21bae8f6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore, { Options } from "./core"; -declare class Ajv2020 extends AjvCore { - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv2020; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js deleted file mode 100644 index bdd1dd69..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft2020_1 = require("./vocabularies/draft2020"); -const discriminator_1 = require("./vocabularies/discriminator"); -const json_schema_2020_12_1 = require("./refs/json-schema-2020-12"); -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema"; -class Ajv2020 extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - draft2020_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - const { $data, meta } = this.opts; - if (!meta) - return; - json_schema_2020_12_1.default.call(this, $data); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv2020; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv2020; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=2020.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js.map deleted file mode 100644 index 92239352..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2020.js","sourceRoot":"","sources":["../lib/2020.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AAEvC,wDAA4D;AAC5D,gEAAwD;AACxD,oEAA0D;AAE1D,MAAM,cAAc,GAAG,8CAA8C,CAAA;AAErE,MAAM,OAAQ,SAAQ,cAAO;IAC3B,YAAY,OAAgB,EAAE;QAC5B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,IAAI;SAClB,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,mBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3D,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,MAAM,EAAC,KAAK,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,OAAO,CAAA;AAyBtB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.d.ts deleted file mode 100644 index ce43bbf2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { AnySchemaObject } from "./types"; -import AjvCore from "./core"; -declare class Ajv extends AjvCore { - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, SchemaValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js deleted file mode 100644 index 219bcf0d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const draft7_1 = require("./vocabularies/draft7"); -const discriminator_1 = require("./vocabularies/discriminator"); -const draft7MetaSchema = require("./refs/json-schema-draft-07.json"); -const META_SUPPORT_DATA = ["/properties"]; -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"; -class Ajv extends core_1.default { - _addVocabularies() { - super._addVocabularies(); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema; - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } -} -module.exports = exports = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=ajv.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js.map deleted file mode 100644 index 18006d4b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/ajv.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv.js","sourceRoot":"","sources":["../lib/ajv.ts"],"names":[],"mappings":";;;AACA,iCAA4B;AAC5B,kDAAsD;AACtD,gEAAwD;AACxD,qEAAoE;AAEpE,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,MAAM,cAAc,GAAG,wCAAwC,CAAA;AAE/D,MAAM,GAAI,SAAQ,cAAO;IACvB,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,gBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QACxD,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,IAAI,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAA;IAC7D,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAM;QAC3B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK;YAChC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;YAC3D,CAAC,CAAC,gBAAgB,CAAA;QACpB,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;QACrD,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,cAAc,CAAA;IAC7D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,GAAG,CAAA;AAC9B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,GAAG,CAAA;AA0BlB,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAIlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts deleted file mode 100644 index 8023c181..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export declare abstract class _CodeOrName { - abstract readonly str: string; - abstract readonly names: UsedNames; - abstract toString(): string; - abstract emptyStr(): boolean; -} -export declare const IDENTIFIER: RegExp; -export declare class Name extends _CodeOrName { - readonly str: string; - constructor(s: string); - toString(): string; - emptyStr(): boolean; - get names(): UsedNames; -} -export declare class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[]; - private _str?; - private _names?; - constructor(code: string | readonly CodeItem[]); - toString(): string; - emptyStr(): boolean; - get str(): string; - get names(): UsedNames; -} -export declare type CodeItem = Name | string | number | boolean | null; -export declare type UsedNames = Record; -export declare type Code = _Code | Name; -export declare type SafeExpr = Code | number | boolean | null; -export declare const nil: _Code; -declare type CodeArg = SafeExpr | string | undefined; -export declare function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code; -export declare function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code; -export declare function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void; -export declare function strConcat(c1: Code, c2: Code): Code; -export declare function stringify(x: unknown): Code; -export declare function safeStringify(x: unknown): string; -export declare function getProperty(key: Code | string | number): Code; -export declare function getEsmExportName(key: Code | string | number): Code; -export declare function regexpCode(rx: RegExp): Code; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js deleted file mode 100644 index f8268838..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; -class _CodeOrName { -} -exports._CodeOrName = _CodeOrName; -exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; -class Name extends _CodeOrName { - constructor(s) { - super(); - if (!exports.IDENTIFIER.test(s)) - throw new Error("CodeGen: name must be a valid identifier"); - this.str = s; - } - toString() { - return this.str; - } - emptyStr() { - return false; - } - get names() { - return { [this.str]: 1 }; - } -} -exports.Name = Name; -class _Code extends _CodeOrName { - constructor(code) { - super(); - this._items = typeof code === "string" ? [code] : code; - } - toString() { - return this.str; - } - emptyStr() { - if (this._items.length > 1) - return false; - const item = this._items[0]; - return item === "" || item === '""'; - } - get str() { - var _a; - return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); - } - get names() { - var _a; - return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { - if (c instanceof Name) - names[c.str] = (names[c.str] || 0) + 1; - return names; - }, {}))); - } -} -exports._Code = _Code; -exports.nil = new _Code(""); -function _(strs, ...args) { - const code = [strs[0]]; - let i = 0; - while (i < args.length) { - addCodeArg(code, args[i]); - code.push(strs[++i]); - } - return new _Code(code); -} -exports._ = _; -const plus = new _Code("+"); -function str(strs, ...args) { - const expr = [safeStringify(strs[0])]; - let i = 0; - while (i < args.length) { - expr.push(plus); - addCodeArg(expr, args[i]); - expr.push(plus, safeStringify(strs[++i])); - } - optimize(expr); - return new _Code(expr); -} -exports.str = str; -function addCodeArg(code, arg) { - if (arg instanceof _Code) - code.push(...arg._items); - else if (arg instanceof Name) - code.push(arg); - else - code.push(interpolate(arg)); -} -exports.addCodeArg = addCodeArg; -function optimize(expr) { - let i = 1; - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]); - if (res !== undefined) { - expr.splice(i - 1, 3, res); - continue; - } - expr[i++] = "+"; - } - i++; - } -} -function mergeExprItems(a, b) { - if (b === '""') - return a; - if (a === '""') - return b; - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') - return; - if (typeof b != "string") - return `${a.slice(0, -1)}${b}"`; - if (b[0] === '"') - return a.slice(0, -1) + b.slice(1); - return; - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) - return `"${a}${b.slice(1)}`; - return; -} -function strConcat(c1, c2) { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; -} -exports.strConcat = strConcat; -// TODO do not allow arrays here -function interpolate(x) { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x); -} -function stringify(x) { - return new _Code(safeStringify(x)); -} -exports.stringify = stringify; -function safeStringify(x) { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029"); -} -exports.safeStringify = safeStringify; -function getProperty(key) { - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; -} -exports.getProperty = getProperty; -//Does best effort to format the name properly -function getEsmExportName(key) { - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { - return new _Code(`${key}`); - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); -} -exports.getEsmExportName = getEsmExportName; -function regexpCode(rx) { - return new _Code(rx.toString()); -} -exports.regexpCode = regexpCode; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js.map deleted file mode 100644 index c5c7a396..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../lib/compile/codegen/code.ts"],"names":[],"mappings":";;;AAAA,MAAsB,WAAW;CAKhC;AALD,kCAKC;AAEY,QAAA,UAAU,GAAG,uBAAuB,CAAA;AAEjD,MAAa,IAAK,SAAQ,WAAW;IAEnC,YAAY,CAAS;QACnB,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,kBAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QACpF,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aAAa,CAAC,CAAU;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC;SAC7B,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;AAClC,CAAC;AAJD,sCAIC;AAED,SAAgB,WAAW,CAAC,GAA2B;IACrD,OAAO,OAAO,GAAG,IAAI,QAAQ,IAAI,kBAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,IAAI,GAAG,GAAG,CAAA;AAC5F,CAAC;AAFD,kCAEC;AAED,8CAA8C;AAC9C,SAAgB,gBAAgB,CAAC,GAA2B;IAC1D,IAAI,OAAO,GAAG,IAAI,QAAQ,IAAI,kBAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAClD,OAAO,IAAI,KAAK,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;KAC3B;IACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,iCAAiC,CAAC,CAAA;AACxF,CAAC;AALD,4CAKC;AAED,SAAgB,UAAU,CAAC,EAAU;IACnC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;AACjC,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts deleted file mode 100644 index db9101dd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { ScopeValueSets, NameValue, ValueScope, ValueScopeName } from "./scope"; -import { _Code, Code, Name } from "./code"; -import { Scope } from "./scope"; -export { _, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code } from "./code"; -export { Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds } from "./scope"; -export declare type SafeExpr = Code | number | boolean | null; -export declare type Block = Code | (() => void); -export declare const operators: { - GT: _Code; - GTE: _Code; - LT: _Code; - LTE: _Code; - EQ: _Code; - NEQ: _Code; - NOT: _Code; - OR: _Code; - AND: _Code; - ADD: _Code; -}; -export interface CodeGenOptions { - es5?: boolean; - lines?: boolean; - ownProperties?: boolean; -} -export declare class CodeGen { - readonly _scope: Scope; - readonly _extScope: ValueScope; - readonly _values: ScopeValueSets; - private readonly _nodes; - private readonly _blockStarts; - private readonly _constants; - private readonly opts; - constructor(extScope: ValueScope, opts?: CodeGenOptions); - toString(): string; - name(prefix: string): Name; - scopeName(prefix: string): ValueScopeName; - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name; - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name): Code; - scopeCode(): Code; - private _def; - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name; - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name; - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen; - add(lhs: Code, rhs: SafeExpr): CodeGen; - code(c: Block | SafeExpr): CodeGen; - object(...keyValues: [Name | string, SafeExpr | string][]): _Code; - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen; - elseIf(condition: Code | boolean): CodeGen; - else(): CodeGen; - endIf(): CodeGen; - private _for; - for(iteration: Code, forBody?: Block): CodeGen; - forRange(nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void, varKind?: Code): CodeGen; - forOf(nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - forIn(nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen; - endFor(): CodeGen; - label(label: Name): CodeGen; - break(label?: Code): CodeGen; - return(value: Block | SafeExpr): CodeGen; - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen; - throw(error: Code): CodeGen; - block(body?: Block, nodeCount?: number): CodeGen; - endBlock(nodeCount?: number): CodeGen; - func(name: Name, args?: Code, async?: boolean, funcBody?: Block): CodeGen; - endFunc(): CodeGen; - optimize(n?: number): void; - private _leafNode; - private _blockNode; - private _endBlockNode; - private _elseNode; - private get _root(); - private get _currNode(); - private set _currNode(value); -} -export declare function not(x: T): T; -export declare function and(...args: Code[]): Code; -export declare function or(...args: Code[]): Code; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js deleted file mode 100644 index a6c805af..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js +++ /dev/null @@ -1,697 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; -const code_1 = require("./code"); -const scope_1 = require("./scope"); -var code_2 = require("./code"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return code_2._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return code_2.str; } }); -Object.defineProperty(exports, "strConcat", { enumerable: true, get: function () { return code_2.strConcat; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return code_2.nil; } }); -Object.defineProperty(exports, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return code_2.stringify; } }); -Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return code_2.Name; } }); -var scope_2 = require("./scope"); -Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } }); -Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function () { return scope_2.ValueScope; } }); -Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function () { return scope_2.ValueScopeName; } }); -Object.defineProperty(exports, "varKinds", { enumerable: true, get: function () { return scope_2.varKinds; } }); -exports.operators = { - GT: new code_1._Code(">"), - GTE: new code_1._Code(">="), - LT: new code_1._Code("<"), - LTE: new code_1._Code("<="), - EQ: new code_1._Code("==="), - NEQ: new code_1._Code("!=="), - NOT: new code_1._Code("!"), - OR: new code_1._Code("||"), - AND: new code_1._Code("&&"), - ADD: new code_1._Code("+"), -}; -class Node { - optimizeNodes() { - return this; - } - optimizeNames(_names, _constants) { - return this; - } -} -class Def extends Node { - constructor(varKind, name, rhs) { - super(); - this.varKind = varKind; - this.name = name; - this.rhs = rhs; - } - render({ es5, _n }) { - const varKind = es5 ? scope_1.varKinds.var : this.varKind; - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`; - return `${varKind} ${this.name}${rhs};` + _n; - } - optimizeNames(names, constants) { - if (!names[this.name.str]) - return; - if (this.rhs) - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {}; - } -} -class Assign extends Node { - constructor(lhs, rhs, sideEffects) { - super(); - this.lhs = lhs; - this.rhs = rhs; - this.sideEffects = sideEffects; - } - render({ _n }) { - return `${this.lhs} = ${this.rhs};` + _n; - } - optimizeNames(names, constants) { - if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) - return; - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names }; - return addExprNames(names, this.rhs); - } -} -class AssignOp extends Assign { - constructor(lhs, op, rhs, sideEffects) { - super(lhs, rhs, sideEffects); - this.op = op; - } - render({ _n }) { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n; - } -} -class Label extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - return `${this.label}:` + _n; - } -} -class Break extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - const label = this.label ? ` ${this.label}` : ""; - return `break${label};` + _n; - } -} -class Throw extends Node { - constructor(error) { - super(); - this.error = error; - } - render({ _n }) { - return `throw ${this.error};` + _n; - } - get names() { - return this.error.names; - } -} -class AnyCode extends Node { - constructor(code) { - super(); - this.code = code; - } - render({ _n }) { - return `${this.code};` + _n; - } - optimizeNodes() { - return `${this.code}` ? this : undefined; - } - optimizeNames(names, constants) { - this.code = optimizeExpr(this.code, names, constants); - return this; - } - get names() { - return this.code instanceof code_1._CodeOrName ? this.code.names : {}; - } -} -class ParentNode extends Node { - constructor(nodes = []) { - super(); - this.nodes = nodes; - } - render(opts) { - return this.nodes.reduce((code, n) => code + n.render(opts), ""); - } - optimizeNodes() { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i].optimizeNodes(); - if (Array.isArray(n)) - nodes.splice(i, 1, ...n); - else if (n) - nodes[i] = n; - else - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - optimizeNames(names, constants) { - const { nodes } = this; - let i = nodes.length; - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i]; - if (n.optimizeNames(names, constants)) - continue; - subtractNames(names, n.names); - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - get names() { - return this.nodes.reduce((names, n) => addNames(names, n.names), {}); - } -} -class BlockNode extends ParentNode { - render(opts) { - return "{" + opts._n + super.render(opts) + "}" + opts._n; - } -} -class Root extends ParentNode { -} -class Else extends BlockNode { -} -Else.kind = "else"; -class If extends BlockNode { - constructor(condition, nodes) { - super(nodes); - this.condition = condition; - } - render(opts) { - let code = `if(${this.condition})` + super.render(opts); - if (this.else) - code += "else " + this.else.render(opts); - return code; - } - optimizeNodes() { - super.optimizeNodes(); - const cond = this.condition; - if (cond === true) - return this.nodes; // else is ignored here - let e = this.else; - if (e) { - const ns = e.optimizeNodes(); - e = this.else = Array.isArray(ns) ? new Else(ns) : ns; - } - if (e) { - if (cond === false) - return e instanceof If ? e : e.nodes; - if (this.nodes.length) - return this; - return new If(not(cond), e instanceof If ? [e] : e.nodes); - } - if (cond === false || !this.nodes.length) - return undefined; - return this; - } - optimizeNames(names, constants) { - var _a; - this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - if (!(super.optimizeNames(names, constants) || this.else)) - return; - this.condition = optimizeExpr(this.condition, names, constants); - return this; - } - get names() { - const names = super.names; - addExprNames(names, this.condition); - if (this.else) - addNames(names, this.else.names); - return names; - } -} -If.kind = "if"; -class For extends BlockNode { -} -For.kind = "for"; -class ForLoop extends For { - constructor(iteration) { - super(); - this.iteration = iteration; - } - render(opts) { - return `for(${this.iteration})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iteration = optimizeExpr(this.iteration, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iteration.names); - } -} -class ForRange extends For { - constructor(varKind, name, from, to) { - super(); - this.varKind = varKind; - this.name = name; - this.from = from; - this.to = to; - } - render(opts) { - const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind; - const { name, from, to } = this; - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts); - } - get names() { - const names = addExprNames(super.names, this.from); - return addExprNames(names, this.to); - } -} -class ForIter extends For { - constructor(loop, varKind, name, iterable) { - super(); - this.loop = loop; - this.varKind = varKind; - this.name = name; - this.iterable = iterable; - } - render(opts) { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iterable = optimizeExpr(this.iterable, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iterable.names); - } -} -class Func extends BlockNode { - constructor(name, args, async) { - super(); - this.name = name; - this.args = args; - this.async = async; - } - render(opts) { - const _async = this.async ? "async " : ""; - return `${_async}function ${this.name}(${this.args})` + super.render(opts); - } -} -Func.kind = "func"; -class Return extends ParentNode { - render(opts) { - return "return " + super.render(opts); - } -} -Return.kind = "return"; -class Try extends BlockNode { - render(opts) { - let code = "try" + super.render(opts); - if (this.catch) - code += this.catch.render(opts); - if (this.finally) - code += this.finally.render(opts); - return code; - } - optimizeNodes() { - var _a, _b; - super.optimizeNodes(); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes(); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes(); - return this; - } - optimizeNames(names, constants) { - var _a, _b; - super.optimizeNames(names, constants); - (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants); - (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants); - return this; - } - get names() { - const names = super.names; - if (this.catch) - addNames(names, this.catch.names); - if (this.finally) - addNames(names, this.finally.names); - return names; - } -} -class Catch extends BlockNode { - constructor(error) { - super(); - this.error = error; - } - render(opts) { - return `catch(${this.error})` + super.render(opts); - } -} -Catch.kind = "catch"; -class Finally extends BlockNode { - render(opts) { - return "finally" + super.render(opts); - } -} -Finally.kind = "finally"; -class CodeGen { - constructor(extScope, opts = {}) { - this._values = {}; - this._blockStarts = []; - this._constants = {}; - this.opts = { ...opts, _n: opts.lines ? "\n" : "" }; - this._extScope = extScope; - this._scope = new scope_1.Scope({ parent: extScope }); - this._nodes = [new Root()]; - } - toString() { - return this._root.render(this.opts); - } - // returns unique name in the internal scope - name(prefix) { - return this._scope.name(prefix); - } - // reserves unique name in the external scope - scopeName(prefix) { - return this._extScope.name(prefix); - } - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName, value) { - const name = this._extScope.value(prefixOrName, value); - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()); - vs.add(name); - return name; - } - getScopeValue(prefix, keyOrRef) { - return this._extScope.getValue(prefix, keyOrRef); - } - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName) { - return this._extScope.scopeRefs(scopeName, this._values); - } - scopeCode() { - return this._extScope.scopeCode(this._values); - } - _def(varKind, nameOrPrefix, rhs, constant) { - const name = this._scope.toName(nameOrPrefix); - if (rhs !== undefined && constant) - this._constants[name.str] = rhs; - this._leafNode(new Def(varKind, name, rhs)); - return name; - } - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant); - } - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant); - } - // `var` declaration with optional assignment - var(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant); - } - // assignment code - assign(lhs, rhs, sideEffects) { - return this._leafNode(new Assign(lhs, rhs, sideEffects)); - } - // `+=` code - add(lhs, rhs) { - return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs)); - } - // appends passed SafeExpr to code or executes Block - code(c) { - if (typeof c == "function") - c(); - else if (c !== code_1.nil) - this._leafNode(new AnyCode(c)); - return this; - } - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues) { - const code = ["{"]; - for (const [key, value] of keyValues) { - if (code.length > 1) - code.push(","); - code.push(key); - if (key !== value || this.opts.es5) { - code.push(":"); - (0, code_1.addCodeArg)(code, value); - } - } - code.push("}"); - return new code_1._Code(code); - } - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition, thenBody, elseBody) { - this._blockNode(new If(condition)); - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf(); - } - else if (thenBody) { - this.code(thenBody).endIf(); - } - else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body'); - } - return this; - } - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition) { - return this._elseNode(new If(condition)); - } - // `else` clause - only valid after `if` or `else if` clauses - else() { - return this._elseNode(new Else()); - } - // end `if` statement (needed if gen.if was used only with condition) - endIf() { - return this._endBlockNode(If, Else); - } - _for(node, forBody) { - this._blockNode(node); - if (forBody) - this.code(forBody).endFor(); - return this; - } - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration, forBody) { - return this._for(new ForLoop(iteration), forBody); - } - // `for` statement for a range of values - forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) { - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)); - } - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) { - const name = this._scope.toName(nameOrPrefix); - if (this.opts.es5) { - const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, (0, code_1._) `${arr}.length`, (i) => { - this.var(name, (0, code_1._) `${arr}[${i}]`); - forBody(name); - }); - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)); - } - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody); - } - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); - } - // end `for` loop - endFor() { - return this._endBlockNode(For); - } - // `label` statement - label(label) { - return this._leafNode(new Label(label)); - } - // `break` statement - break(label) { - return this._leafNode(new Break(label)); - } - // `return` statement - return(value) { - const node = new Return(); - this._blockNode(node); - this.code(value); - if (node.nodes.length !== 1) - throw new Error('CodeGen: "return" should have one node'); - return this._endBlockNode(Return); - } - // `try` statement - try(tryBody, catchCode, finallyCode) { - if (!catchCode && !finallyCode) - throw new Error('CodeGen: "try" without "catch" and "finally"'); - const node = new Try(); - this._blockNode(node); - this.code(tryBody); - if (catchCode) { - const error = this.name("e"); - this._currNode = node.catch = new Catch(error); - catchCode(error); - } - if (finallyCode) { - this._currNode = node.finally = new Finally(); - this.code(finallyCode); - } - return this._endBlockNode(Catch, Finally); - } - // `throw` statement - throw(error) { - return this._leafNode(new Throw(error)); - } - // start self-balancing block - block(body, nodeCount) { - this._blockStarts.push(this._nodes.length); - if (body) - this.code(body).endBlock(nodeCount); - return this; - } - // end the current self-balancing block - endBlock(nodeCount) { - const len = this._blockStarts.pop(); - if (len === undefined) - throw new Error("CodeGen: not in self-balancing block"); - const toClose = this._nodes.length - len; - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`); - } - this._nodes.length = len; - return this; - } - // `function` heading (or definition if funcBody is passed) - func(name, args = code_1.nil, async, funcBody) { - this._blockNode(new Func(name, args, async)); - if (funcBody) - this.code(funcBody).endFunc(); - return this; - } - // end function definition - endFunc() { - return this._endBlockNode(Func); - } - optimize(n = 1) { - while (n-- > 0) { - this._root.optimizeNodes(); - this._root.optimizeNames(this._root.names, this._constants); - } - } - _leafNode(node) { - this._currNode.nodes.push(node); - return this; - } - _blockNode(node) { - this._currNode.nodes.push(node); - this._nodes.push(node); - } - _endBlockNode(N1, N2) { - const n = this._currNode; - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop(); - return this; - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`); - } - _elseNode(node) { - const n = this._currNode; - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"'); - } - this._currNode = n.else = node; - return this; - } - get _root() { - return this._nodes[0]; - } - get _currNode() { - const ns = this._nodes; - return ns[ns.length - 1]; - } - set _currNode(node) { - const ns = this._nodes; - ns[ns.length - 1] = node; - } -} -exports.CodeGen = CodeGen; -function addNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) + (from[n] || 0); - return names; -} -function addExprNames(names, from) { - return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names; -} -function optimizeExpr(expr, names, constants) { - if (expr instanceof code_1.Name) - return replaceName(expr); - if (!canOptimize(expr)) - return expr; - return new code_1._Code(expr._items.reduce((items, c) => { - if (c instanceof code_1.Name) - c = replaceName(c); - if (c instanceof code_1._Code) - items.push(...c._items); - else - items.push(c); - return items; - }, [])); - function replaceName(n) { - const c = constants[n.str]; - if (c === undefined || names[n.str] !== 1) - return n; - delete names[n.str]; - return c; - } - function canOptimize(e) { - return (e instanceof code_1._Code && - e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined)); - } -} -function subtractNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) - (from[n] || 0); -} -function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`; -} -exports.not = not; -const andCode = mappend(exports.operators.AND); -// boolean AND (&&) expression with the passed arguments -function and(...args) { - return args.reduce(andCode); -} -exports.and = and; -const orCode = mappend(exports.operators.OR); -// boolean OR (||) expression with the passed arguments -function or(...args) { - return args.reduce(orCode); -} -exports.or = or; -function mappend(op) { - return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`); -} -function par(x) { - return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js.map deleted file mode 100644 index f3826d28..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/codegen/index.ts"],"names":[],"mappings":";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O,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AAC7B,CAAC;AAFD,kBAEC;AAED,MAAM,MAAM,GAAG,OAAO,CAAC,iBAAS,CAAC,EAAE,CAAC,CAAA;AAEpC,uDAAuD;AACvD,SAAgB,EAAE,CAAC,GAAG,IAAY;IAChC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC5B,CAAC;AAFD,gBAEC;AAID,SAAS,OAAO,CAAC,EAAQ;IACvB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,UAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,UAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,QAAC,EAAA,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AACjF,CAAC;AAED,SAAS,GAAG,CAAC,CAAO;IAClB,OAAO,CAAC,YAAY,WAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,QAAC,EAAA,IAAI,CAAC,GAAG,CAAA;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts deleted file mode 100644 index 3c351bb6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Code, Name } from "./code"; -interface NameGroup { - prefix: string; - index: number; -} -export interface NameValue { - ref: ValueReference; - key?: unknown; - code?: Code; -} -export declare type ValueReference = unknown; -interface ScopeOptions { - prefixes?: Set; - parent?: Scope; -} -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore; - es5?: boolean; - lines?: boolean; -} -export declare type ScopeStore = Record; -declare type ScopeValues = { - [Prefix in string]?: Map; -}; -export declare type ScopeValueSets = { - [Prefix in string]?: Set; -}; -export declare enum UsedValueState { - Started = 0, - Completed = 1 -} -export declare type UsedScopeValues = { - [Prefix in string]?: Map; -}; -export declare const varKinds: { - const: Name; - let: Name; - var: Name; -}; -export declare class Scope { - protected readonly _names: { - [Prefix in string]?: NameGroup; - }; - protected readonly _prefixes?: Set; - protected readonly _parent?: Scope; - constructor({ prefixes, parent }?: ScopeOptions); - toName(nameOrPrefix: Name | string): Name; - name(prefix: string): Name; - protected _newName(prefix: string): string; - private _nameGroup; -} -interface ScopePath { - property: string; - itemIndex: number; -} -export declare class ValueScopeName extends Name { - readonly prefix: string; - value?: NameValue; - scopePath?: Code; - constructor(prefix: string, nameStr: string); - setValue(value: NameValue, { property, itemIndex }: ScopePath): void; -} -interface VSOptions extends ValueScopeOptions { - _n: Code; -} -export declare class ValueScope extends Scope { - protected readonly _values: ScopeValues; - protected readonly _scope: ScopeStore; - readonly opts: VSOptions; - constructor(opts: ValueScopeOptions); - get(): ScopeStore; - name(prefix: string): ValueScopeName; - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName; - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined; - scopeRefs(scopeName: Name, values?: ScopeValues | ScopeValueSets): Code; - scopeCode(values?: ScopeValues | ScopeValueSets, usedValues?: UsedScopeValues, getCode?: (n: ValueScopeName) => Code | undefined): Code; - private _reduceValues; -} -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js deleted file mode 100644 index acc5f762..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0; -const code_1 = require("./code"); -class ValueError extends Error { - constructor(name) { - super(`CodeGen: "code" for ${name} not defined`); - this.value = name.value; - } -} -var UsedValueState; -(function (UsedValueState) { - UsedValueState[UsedValueState["Started"] = 0] = "Started"; - UsedValueState[UsedValueState["Completed"] = 1] = "Completed"; -})(UsedValueState = exports.UsedValueState || (exports.UsedValueState = {})); -exports.varKinds = { - const: new code_1.Name("const"), - let: new code_1.Name("let"), - var: new code_1.Name("var"), -}; -class Scope { - constructor({ prefixes, parent } = {}) { - this._names = {}; - this._prefixes = prefixes; - this._parent = parent; - } - toName(nameOrPrefix) { - return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix); - } - name(prefix) { - return new code_1.Name(this._newName(prefix)); - } - _newName(prefix) { - const ng = this._names[prefix] || this._nameGroup(prefix); - return `${prefix}${ng.index++}`; - } - _nameGroup(prefix) { - var _a, _b; - if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`); - } - return (this._names[prefix] = { prefix, index: 0 }); - } -} -exports.Scope = Scope; -class ValueScopeName extends code_1.Name { - constructor(prefix, nameStr) { - super(nameStr); - this.prefix = prefix; - } - setValue(value, { property, itemIndex }) { - this.value = value; - this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`; - } -} -exports.ValueScopeName = ValueScopeName; -const line = (0, code_1._) `\n`; -class ValueScope extends Scope { - constructor(opts) { - super(opts); - this._values = {}; - this._scope = opts.scope; - this.opts = { ...opts, _n: opts.lines ? line : code_1.nil }; - } - get() { - return this._scope; - } - name(prefix) { - return new ValueScopeName(prefix, this._newName(prefix)); - } - value(nameOrPrefix, value) { - var _a; - if (value.ref === undefined) - throw new Error("CodeGen: ref must be passed in value"); - const name = this.toName(nameOrPrefix); - const { prefix } = name; - const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref; - let vs = this._values[prefix]; - if (vs) { - const _name = vs.get(valueKey); - if (_name) - return _name; - } - else { - vs = this._values[prefix] = new Map(); - } - vs.set(valueKey, name); - const s = this._scope[prefix] || (this._scope[prefix] = []); - const itemIndex = s.length; - s[itemIndex] = value.ref; - name.setValue(value, { property: prefix, itemIndex }); - return name; - } - getValue(prefix, keyOrRef) { - const vs = this._values[prefix]; - if (!vs) - return; - return vs.get(keyOrRef); - } - scopeRefs(scopeName, values = this._values) { - return this._reduceValues(values, (name) => { - if (name.scopePath === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return (0, code_1._) `${scopeName}${name.scopePath}`; - }); - } - scopeCode(values = this._values, usedValues, getCode) { - return this._reduceValues(values, (name) => { - if (name.value === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return name.value.code; - }, usedValues, getCode); - } - _reduceValues(values, valueCode, usedValues = {}, getCode) { - let code = code_1.nil; - for (const prefix in values) { - const vs = values[prefix]; - if (!vs) - continue; - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()); - vs.forEach((name) => { - if (nameSet.has(name)) - return; - nameSet.set(name, UsedValueState.Started); - let c = valueCode(name); - if (c) { - const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`; - } - else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) { - code = (0, code_1._) `${code}${c}${this.opts._n}`; - } - else { - throw new ValueError(name); - } - nameSet.set(name, UsedValueState.Completed); - }); - } - return code; - } -} -exports.ValueScope = ValueScope; -//# sourceMappingURL=scope.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map deleted file mode 100644 index 7afde106..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/codegen/scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version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M,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC,CAAA;YACtE,EAAE,CAAC,OAAO,CAAC,CAAC,IAAoB,EAAE,EAAE;gBAClC,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;oBAAE,OAAM;gBAC7B,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;gBACzC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;gBACvB,IAAI,CAAC,EAAE;oBACL,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAQ,CAAC,KAAK,CAAA;oBACzD,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;iBACvD;qBAAM,IAAI,CAAC,CAAC,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,CAAC,EAAE;oBAChC,IAAI,GAAG,IAAA,QAAC,EAAA,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAA;iBACrC;qBAAM;oBACL,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;iBAC3B;gBACD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;YAC7C,CAAC,CAAC,CAAA;SACH;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAjGD,gCAiGC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.d.ts deleted file mode 100644 index 74eef7e2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { KeywordErrorCxt, KeywordErrorDefinition } from "../types"; -import { CodeGen, Code, Name } from "./codegen"; -export declare const keywordError: KeywordErrorDefinition; -export declare const keyword$DataError: KeywordErrorDefinition; -export interface ErrorPaths { - instancePath?: Code; - schemaPath?: string; - parentSchema?: boolean; -} -export declare function reportError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths, overrideAllErrors?: boolean): void; -export declare function reportExtraError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths): void; -export declare function resetErrorsCount(gen: CodeGen, errsCount: Name): void; -export declare function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }: KeywordErrorCxt): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js deleted file mode 100644 index e2aca7b9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0; -const codegen_1 = require("./codegen"); -const util_1 = require("./util"); -const names_1 = require("./names"); -exports.keywordError = { - message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`, -}; -exports.keyword$DataError = { - message: ({ keyword, schemaType }) => schemaType - ? (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)` - : (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`, -}; -function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) { - addError(gen, errObj); - } - else { - returnErrors(it, (0, codegen_1._) `[${errObj}]`); - } -} -exports.reportError = reportError; -function reportExtraError(cxt, error = exports.keywordError, errorPaths) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error, errorPaths); - addError(gen, errObj); - if (!(compositeRule || allErrors)) { - returnErrors(it, names_1.default.vErrors); - } -} -exports.reportExtraError = reportExtraError; -function resetErrorsCount(gen, errsCount) { - gen.assign(names_1.default.errors, errsCount); - gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); -} -exports.resetErrorsCount = resetErrorsCount; -function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) { - /* istanbul ignore if */ - if (errsCount === undefined) - throw new Error("ajv implementation error"); - const err = gen.name("err"); - gen.forRange("i", errsCount, names_1.default.errors, (i) => { - gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`); - gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); - gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`); - if (it.opts.verbose) { - gen.assign((0, codegen_1._) `${err}.schema`, schemaValue); - gen.assign((0, codegen_1._) `${err}.data`, data); - } - }); -} -exports.extendErrors = extendErrors; -function addError(gen, errObj) { - const err = gen.const("err", errObj); - gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`); - gen.code((0, codegen_1._) `${names_1.default.errors}++`); -} -function returnErrors(it, errs) { - const { gen, validateName, schemaEnv } = it; - if (schemaEnv.$async) { - gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, errs); - gen.return(false); - } -} -const E = { - keyword: new codegen_1.Name("keyword"), - schemaPath: new codegen_1.Name("schemaPath"), - params: new codegen_1.Name("params"), - propertyName: new codegen_1.Name("propertyName"), - message: new codegen_1.Name("message"), - schema: new codegen_1.Name("schema"), - parentSchema: new codegen_1.Name("parentSchema"), -}; -function errorObjectCode(cxt, error, errorPaths) { - const { createErrors } = cxt.it; - if (createErrors === false) - return (0, codegen_1._) `{}`; - return errorObject(cxt, error, errorPaths); -} -function errorObject(cxt, error, errorPaths = {}) { - const { gen, it } = cxt; - const keyValues = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ]; - extraErrorProps(cxt, error, keyValues); - return gen.object(...keyValues); -} -function errorInstancePath({ errorPath }, { instancePath }) { - const instPath = instancePath - ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` - : errorPath; - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; -} -function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) { - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`; - if (schemaPath) { - schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; - } - return [E.schemaPath, schPath]; -} -function extraErrorProps(cxt, { params, message }, keyValues) { - const { keyword, data, schemaValue, it } = cxt; - const { opts, propertyName, topSchemaRef, schemaPath } = it; - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._) `{}`]); - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); - } - if (opts.verbose) { - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); - } - if (propertyName) - keyValues.push([E.propertyName, propertyName]); -} -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js.map deleted file mode 100644 index 66208910..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/compile/errors.ts"],"names":[],"mappings":";;;AAEA,uCAAgE;AAEhE,iCAAyC;AACzC,mCAAuB;AAEV,QAAA,YAAY,GAA2B;IAClD,OAAO,EAAE,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,cAAc,OAAO,sBAAsB;CACvE,CAAA;AAEY,QAAA,iBAAiB,GAA2B;IACvD,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CACjC,UAAU;QACR,CAAC,CAAC,IAAA,aAAG,EAAA,IAAI,OAAO,qBAAqB,UAAU,UAAU;QACzD,CAAC,CAAC,IAAA,aAAG,EAAA,IAAI,OAAO,8BAA8B;CACnD,CAAA;AAQD,SAAgB,WAAW,CACzB,GAAoB,EACpB,QAAgC,oBAAY,EAC5C,UAAuB,EACvB,iBAA2B;IAE3B,MAAM,EAAC,EAAE,EAAC,GAAG,GAAG,CAAA;IAChB,MAAM,EAAC,GAAG,EAAE,aAAa,EAAE,SAAS,EAAC,GAAG,EAAE,CAAA;IAC1C,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAA;IACtD,IAAI,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,CAAC,aAAa,IAAI,SAAS,CAAC,EAAE;QACrD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;KACtB;SAAM;QACL,YAAY,CAAC,EAAE,EAAE,IAAA,WAAC,EAAA,IAAI,MAAM,GAAG,CAAC,CAAA;KACjC;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Ae,CACtB,GAAoB,EACpB,EAAC,MAAM,EAAE,OAAO,EAAyB,EACzC,SAAsC;IAEtC,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IAC5C,MAAM,EAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAC,GAAG,EAAE,CAAA;IACzD,SAAS,CAAC,IAAI,CACZ,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EACpB,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,IAAA,WAAC,EAAA,IAAI,CAAC,CACxE,CAAA;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;KACnF;IACD,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,SAAS,CAAC,IAAI,CACZ,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,EACvB,CAAC,CAAC,CAAC,YAAY,EAAE,IAAA,WAAC,EAAA,GAAG,YAAY,GAAG,UAAU,EAAE,CAAC,EACjD,CAAC,eAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CACf,CAAA;KACF;IACD,IAAI,YAAY;QAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.d.ts deleted file mode 100644 index ca8920ab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { AnySchema, AnySchemaObject, AnyValidateFunction, EvaluatedProperties, EvaluatedItems } from "../types"; -import type Ajv from "../core"; -import type { InstanceOptions } from "../core"; -import { CodeGen, Name, Code, ValueScopeName } from "./codegen"; -import { LocalRefs } from "./resolve"; -import { JSONType } from "./rules"; -export declare type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema; -}; -export interface SchemaCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly data: Name; - readonly parentData: Name; - readonly parentDataProperty: Code | number; - readonly dataNames: Name[]; - readonly dataPathArr: (Code | number)[]; - readonly dataLevel: number; - dataTypes: JSONType[]; - definedProperties: Set; - readonly topSchemaRef: Code; - readonly validateName: Name; - evaluated?: Name; - readonly ValidationError?: Name; - readonly schema: AnySchema; - readonly schemaEnv: SchemaEnv; - readonly rootId: string; - baseId: string; - readonly schemaPath: Code; - readonly errSchemaPath: string; - readonly errorPath: Code; - readonly propertyName?: Name; - readonly compositeRule?: boolean; - props?: EvaluatedProperties | Name; - items?: EvaluatedItems | Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - readonly createErrors?: boolean; - readonly opts: InstanceOptions; - readonly self: Ajv; -} -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject; -} -interface SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root?: SchemaEnv; - readonly baseId?: string; - readonly schemaPath?: string; - readonly localRefs?: LocalRefs; - readonly meta?: boolean; -} -export declare class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema; - readonly schemaId?: "$id" | "id"; - readonly root: SchemaEnv; - baseId: string; - schemaPath?: string; - localRefs?: LocalRefs; - readonly meta?: boolean; - readonly $async?: boolean; - readonly refs: SchemaRefs; - readonly dynamicAnchors: { - [Ref in string]?: true; - }; - validate?: AnyValidateFunction; - validateName?: ValueScopeName; - serialize?: (data: unknown) => string; - serializeName?: ValueScopeName; - parse?: (data: string) => unknown; - parseName?: ValueScopeName; - constructor(env: SchemaEnvArgs); -} -export declare function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv; -export declare function resolveRef(this: Ajv, root: SchemaEnv, baseId: string, ref: string): AnySchema | SchemaEnv | undefined; -export declare function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void; -export declare function resolveSchema(this: Ajv, root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref: string): SchemaEnv | undefined; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js deleted file mode 100644 index b125ecd0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js +++ /dev/null @@ -1,242 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0; -const codegen_1 = require("./codegen"); -const validation_error_1 = require("../runtime/validation_error"); -const names_1 = require("./names"); -const resolve_1 = require("./resolve"); -const util_1 = require("./util"); -const validate_1 = require("./validate"); -class SchemaEnv { - constructor(env) { - var _a; - this.refs = {}; - this.dynamicAnchors = {}; - let schema; - if (typeof env.schema == "object") - schema = env.schema; - this.schema = env.schema; - this.schemaId = env.schemaId; - this.root = env.root || this; - this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || "$id"]); - this.schemaPath = env.schemaPath; - this.localRefs = env.localRefs; - this.meta = env.meta; - this.$async = schema === null || schema === void 0 ? void 0 : schema.$async; - this.refs = {}; - } -} -exports.SchemaEnv = SchemaEnv; -// let codeSize = 0 -// let nodeCount = 0 -// Compiles schema in SchemaEnv -function compileSchema(sch) { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - let _ValidationError; - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: validation_error_1.default, - code: (0, codegen_1._) `require("ajv/dist/runtime/validation_error").default`, - }); - } - const validateName = gen.scopeName("validate"); - sch.validateName = validateName; - const schemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: names_1.default.data, - parentData: names_1.default.parentData, - parentDataProperty: names_1.default.parentDataProperty, - dataNames: [names_1.default.data], - dataPathArr: [codegen_1.nil], - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue("schema", this.opts.code.source === true - ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) } - : { ref: sch.schema }), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: codegen_1.nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: (0, codegen_1._) `""`, - opts: this.opts, - self: this, - }; - let sourceCode; - try { - this._compilations.add(sch); - (0, validate_1.validateFunctionCode)(schemaCxt); - gen.optimize(this.opts.code.optimize); - // gen.optimize(1) - const validateCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`; - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) - sourceCode = this.opts.code.process(sourceCode, sch); - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); - const validate = makeValidate(this, this.scope.get()); - this.scope.value(validateName, { ref: validate }); - validate.errors = null; - validate.schema = sch.schema; - validate.schemaEnv = sch; - if (sch.$async) - validate.$async = true; - if (this.opts.code.source === true) { - validate.source = { validateName, validateCode, scopeValues: gen._values }; - } - if (this.opts.unevaluated) { - const { props, items } = schemaCxt; - validate.evaluated = { - props: props instanceof codegen_1.Name ? undefined : props, - items: items instanceof codegen_1.Name ? undefined : items, - dynamicProps: props instanceof codegen_1.Name, - dynamicItems: items instanceof codegen_1.Name, - }; - if (validate.source) - validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated); - } - sch.validate = validate; - return sch; - } - catch (e) { - delete sch.validate; - delete sch.validateName; - if (sourceCode) - this.logger.error("Error compiling schema, function code:", sourceCode); - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e; - } - finally { - this._compilations.delete(sch); - } -} -exports.compileSchema = compileSchema; -function resolveRef(root, baseId, ref) { - var _a; - ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref); - const schOrFunc = root.refs[ref]; - if (schOrFunc) - return schOrFunc; - let _sch = resolve.call(this, root, ref); - if (_sch === undefined) { - const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv - const { schemaId } = this.opts; - if (schema) - _sch = new SchemaEnv({ schema, schemaId, root, baseId }); - } - if (_sch === undefined) - return; - return (root.refs[ref] = inlineOrCompile.call(this, _sch)); -} -exports.resolveRef = resolveRef; -function inlineOrCompile(sch) { - if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs)) - return sch.schema; - return sch.validate ? sch : compileSchema.call(this, sch); -} -// Index of schema compilation in the currently compiled list -function getCompilingSchema(schEnv) { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) - return sch; - } -} -exports.getCompilingSchema = getCompilingSchema; -function sameSchemaEnv(s1, s2) { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId; -} -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve(root, // information about the root schema for the current schema -ref // reference to resolve -) { - let sch; - while (typeof (sch = this.refs[ref]) == "string") - ref = sch; - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref); -} -// Resolve schema, its root and baseId -function resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it -ref // reference to resolve -) { - const p = this.opts.uriResolver.parse(ref); - const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p); - let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined); - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root); - } - const id = (0, resolve_1.normalizeId)(refPath); - const schOrRef = this.refs[id] || this.schemas[id]; - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef); - if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== "object") - return; - return getJsonPointer.call(this, p, sch); - } - if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== "object") - return; - if (!schOrRef.validate) - compileSchema.call(this, schOrRef); - if (id === (0, resolve_1.normalizeId)(ref)) { - const { schema } = schOrRef; - const { schemaId } = this.opts; - const schId = schema[schemaId]; - if (schId) - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - return new SchemaEnv({ schema, schemaId, root, baseId }); - } - return getJsonPointer.call(this, p, schOrRef); -} -exports.resolveSchema = resolveSchema; -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]); -function getJsonPointer(parsedRef, { baseId, schema, root }) { - var _a; - if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== "/") - return; - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") - return; - const partSchema = schema[(0, util_1.unescapeFragment)(part)]; - if (partSchema === undefined) - return; - schema = partSchema; - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId]; - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - } - } - let env; - if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) { - const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref); - env = resolveSchema.call(this, root, $ref); - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const { schemaId } = this.opts; - env = env || new SchemaEnv({ schema, schemaId, root, baseId }); - if (env.schema !== env.root.schema) - return env; - return undefined; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js.map deleted file mode 100644 index 3fd890e6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/compile/index.ts"],"names":[],"mappings":";;;AAUA,uCAAgF;AAChF,kEAAyD;AACzD,mCAAuB;AACvB,uCAAkG;AAClG,iCAA6D;AAC7D,yCAA+C;AA0D/C,MAAa,SAAS;IAkBpB,YAAY,GAAkB;;QATrB,SAAI,GAAe,EAAE,CAAA;QACrB,mBAAc,GAA6B,EAAE,CAAA;QASpD,IAAI,MAAmC,CAAA;QACvC,IAAI,OAAO,GAAG,CAAC,MAAM,IAAI,QAAQ;YAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACtD,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,mCAAI,IAAA,qBAAW,EAAC,MAAM,aAAN,MAAM,uBA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AAG,IAAI,CAAC,IAAI,CAAA;IAC5B,GAAG,GAAG,GAAG,IAAI,IAAI,SAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC,CAAA;IAC5D,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM;QAAE,OAAO,GAAG,CAAA;IAC9C,OAAO,SAAS,CAAA;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts deleted file mode 100644 index 618c64ae..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileParser(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js deleted file mode 100644 index 8fc94fd0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js +++ /dev/null @@ -1,350 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const type_1 = require("../../vocabularies/jtd/type"); -const parseJson_1 = require("../../runtime/parseJson"); -const util_1 = require("../util"); -const timestamp_1 = require("../../runtime/timestamp"); -const genParse = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -}; -function compileParser(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const parseName = gen.scopeName("parse"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - parseName, - char: gen.name("c"), - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.parseName = parseName; - parserFunction(cxt); - gen.optimize(this.opts.code.optimize); - const parseFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${parseFuncCode}`; - const makeParse = new Function(`${names_1.default.scope}`, sourceCode); - const parse = makeParse(this.scope.get()); - this.scope.value(parseName, { ref: parse }); - sch.parse = parse; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling parser, function code:", sourceCode); - delete sch.parse; - delete sch.parseName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileParser; -const undef = (0, codegen_1._) `undefined`; -function parserFunction(cxt) { - const { gen, parseName, char } = cxt; - gen.func(parseName, (0, codegen_1._) `${names_1.default.json}, ${names_1.default.jsonPos}, ${names_1.default.jsonPart}`, false, () => { - gen.let(names_1.default.data); - gen.let(char); - gen.assign((0, codegen_1._) `${parseName}.message`, undef); - gen.assign((0, codegen_1._) `${parseName}.position`, undef); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${names_1.default.jsonPos} || 0`); - gen.const(names_1.default.jsonLen, (0, codegen_1._) `${names_1.default.json}.length`); - parseCode(cxt); - skipWhitespace(cxt); - gen.if(names_1.default.jsonPart, () => { - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(names_1.default.data); - }); - gen.if((0, codegen_1._) `${names_1.default.jsonPos} === ${names_1.default.jsonLen}`, () => gen.return(names_1.default.data)); - jsonSyntaxError(cxt); - }); -} -function parseCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - if (form) - parseNullable(cxt, genParse[form]); - else - parseEmpty(cxt); -} -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)); -function parseNullable(cxt, parseForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return parseForm(cxt); - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)); -} -function parseElements(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "["); - const ix = gen.let("i", 0); - gen.assign(data, (0, codegen_1._) `[]`); - parseItems(cxt, "]", () => { - const el = gen.let("el"); - parseCode({ ...cxt, schema: schema.elements, data: el }); - gen.assign((0, codegen_1._) `${data}[${ix}++]`, el); - }); -} -function parseValues(cxt) { - const { gen, schema, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)); -} -function parseItems(cxt, endToken, block) { - tryParseItems(cxt, endToken, block); - parseToken(cxt, endToken); -} -function tryParseItems(cxt, endToken, block) { - const { gen } = cxt; - gen.for((0, codegen_1._) `;${names_1.default.jsonPos}<${names_1.default.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block(); - tryParseToken(cxt, ",", () => gen.break(), hasItem); - }); - function hasItem() { - tryParseToken(cxt, endToken, () => { }, jsonSyntaxError); - } -} -function parseKeyValue(cxt, schema) { - const { gen } = cxt; - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - parsePropertyValue(cxt, key, schema); -} -function parseDiscriminator(cxt) { - const { gen, data, schema } = cxt; - const { discriminator, mapping } = schema; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - const startPos = gen.const("pos", names_1.default.jsonPos); - const value = gen.let("value"); - const tag = gen.let("tag"); - tryParseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if((0, codegen_1._) `${key} === ${discriminator}`, () => { - parseString({ ...cxt, data: tag }); - gen.assign((0, codegen_1._) `${data}[${key}]`, tag); - gen.break(); - }, () => parseEmpty({ ...cxt, data: value }) // can be discarded/skipped - ); - }); - gen.assign(names_1.default.jsonPos, startPos); - gen.if((0, codegen_1._) `${tag} === undefined`); - parsingError(cxt, (0, codegen_1.str) `discriminator tag not found`); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - parseSchemaProperties({ ...cxt, schema: mapping[tagValue] }, discriminator); - } - gen.else(); - parsingError(cxt, (0, codegen_1.str) `discriminator value not in schema`); - gen.endIf(); -} -function parseProperties(cxt) { - const { gen, data } = cxt; - parseToken(cxt, "{"); - gen.assign(data, (0, codegen_1._) `{}`); - parseSchemaProperties(cxt); -} -function parseSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties, additionalProperties } = schema; - parseItems(cxt, "}", () => { - const key = gen.let("key"); - parseString({ ...cxt, data: key }); - parseToken(cxt, ":"); - gen.if(false); - parseDefinedProperty(cxt, key, properties); - parseDefinedProperty(cxt, key, optionalProperties); - if (discriminator) { - gen.elseIf((0, codegen_1._) `${key} === ${discriminator}`); - const tag = gen.let("tag"); - parseString({ ...cxt, data: tag }); // can be discarded, it is already assigned - } - gen.else(); - if (additionalProperties) { - parseEmpty({ ...cxt, data: (0, codegen_1._) `${data}[${key}]` }); - } - else { - parsingError(cxt, (0, codegen_1.str) `property ${key} not allowed`); - } - gen.endIf(); - }); - if (properties) { - const hasProp = (0, code_1.hasPropFunc)(gen); - const allProps = (0, codegen_1.and)(...Object.keys(properties).map((p) => (0, codegen_1._) `${hasProp}.call(${data}, ${p})`)); - gen.if((0, codegen_1.not)(allProps), () => parsingError(cxt, (0, codegen_1.str) `missing required properties`)); - } -} -function parseDefinedProperty(cxt, key, schemas = {}) { - const { gen } = cxt; - for (const prop in schemas) { - gen.elseIf((0, codegen_1._) `${key} === ${prop}`); - parsePropertyValue(cxt, key, schemas[prop]); - } -} -function parsePropertyValue(cxt, key, schema) { - parseCode({ ...cxt, schema, data: (0, codegen_1._) `${cxt.data}[${key}]` }); -} -function parseType(cxt) { - const { gen, schema, data, self } = cxt; - switch (schema.type) { - case "boolean": - parseBoolean(cxt); - break; - case "string": - parseString(cxt); - break; - case "timestamp": { - parseString(cxt); - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const { allowDate, parseDate } = self.opts; - const notValid = allowDate ? (0, codegen_1._) `!${vts}(${data}, true)` : (0, codegen_1._) `!${vts}(${data})`; - const fail = parseDate - ? (0, codegen_1.or)(notValid, (0, codegen_1._) `(${data} = new Date(${data}), false)`, (0, codegen_1._) `isNaN(${data}.valueOf())`) - : notValid; - gen.if(fail, () => parsingError(cxt, (0, codegen_1.str) `invalid timestamp`)); - break; - } - case "float32": - case "float64": - parseNumber(cxt); - break; - default: { - const t = schema.type; - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16); // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if((0, codegen_1._) `${data} < 0`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - else { - const [min, max, maxDigits] = type_1.intRange[t]; - parseNumber(cxt, maxDigits); - gen.if((0, codegen_1._) `${data} < ${min} || ${data} > ${max}`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`)); - } - } - } -} -function parseString(cxt) { - parseToken(cxt, '"'); - parseWith(cxt, parseJson_1.parseJsonString); -} -function parseEnum(cxt) { - const { gen, data, schema } = cxt; - const enumSch = schema.enum; - parseToken(cxt, '"'); - // TODO loopEnum - gen.if(false); - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1); // remove starting quote - gen.elseIf((0, codegen_1._) `${jsonSlice(valueStr.length)} === ${valueStr}`); - gen.assign(data, (0, codegen_1.str) `${value}`); - gen.add(names_1.default.jsonPos, valueStr.length); - } - gen.else(); - jsonSyntaxError(cxt); - gen.endIf(); -} -function parseNumber(cxt, maxDigits) { - const { gen } = cxt; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `"-0123456789".indexOf(${jsonSlice(1)}) < 0`, () => jsonSyntaxError(cxt), () => parseWith(cxt, parseJson_1.parseJsonNumber, maxDigits)); -} -function parseBooleanToken(bool, fail) { - return (cxt) => { - const { gen, data } = cxt; - tryParseToken(cxt, `${bool}`, () => fail(cxt), () => gen.assign(data, bool)); - }; -} -function parseRef(cxt) { - const { gen, self, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return parseCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileParser.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - partialParse(cxt, getParser(gen, sch), true); -} -function getParser(gen, sch) { - return sch.parse - ? gen.scopeValue("parse", { ref: sch.parse }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.parse`; -} -function parseEmpty(cxt) { - parseWith(cxt, parseJson_1.parseJson); -} -function parseWith(cxt, parseFunc, args) { - partialParse(cxt, (0, util_1.useFunc)(cxt.gen, parseFunc), args); -} -function partialParse(cxt, parseFunc, args) { - const { gen, data } = cxt; - gen.assign(data, (0, codegen_1._) `${parseFunc}(${names_1.default.json}, ${names_1.default.jsonPos}${args ? (0, codegen_1._) `, ${args}` : codegen_1.nil})`); - gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${parseFunc}.position`); - gen.if((0, codegen_1._) `${data} === undefined`, () => parsingError(cxt, (0, codegen_1._) `${parseFunc}.message`)); -} -function parseToken(cxt, tok) { - tryParseToken(cxt, tok, jsonSyntaxError); -} -function tryParseToken(cxt, tok, fail, success) { - const { gen } = cxt; - const n = tok.length; - skipWhitespace(cxt); - gen.if((0, codegen_1._) `${jsonSlice(n)} === ${tok}`, () => { - gen.add(names_1.default.jsonPos, n); - success === null || success === void 0 ? void 0 : success(cxt); - }, () => fail(cxt)); -} -function skipWhitespace({ gen, char: c }) { - gen.code((0, codegen_1._) `while((${c}=${names_1.default.json}[${names_1.default.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${names_1.default.jsonPos}++;`); -} -function jsonSlice(len) { - return len === 1 - ? (0, codegen_1._) `${names_1.default.json}[${names_1.default.jsonPos}]` - : (0, codegen_1._) `${names_1.default.json}.slice(${names_1.default.jsonPos}, ${names_1.default.jsonPos}+${len})`; -} -function jsonSyntaxError(cxt) { - parsingError(cxt, (0, codegen_1._) `"unexpected token " + ${names_1.default.json}[${names_1.default.jsonPos}]`); -} -function parsingError({ gen, parseName }, msg) { - gen.assign((0, codegen_1._) `${parseName}.message`, msg); - gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos); - gen.return(undef); -} -//# sourceMappingURL=parse.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map deleted file mode 100644 index a1e86279..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/parse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../lib/compile/jtd/parse.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAmF;AACnF,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAmD;AACnD,oDAAiD;AACjD,sDAA6D;AAC7D,uDAAmF;AACnF,kCAA+B;AAC/B,uDAAoD;AAIpD,MAAM,QAAQ,GAA+B;IAC3C,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,kBAAkB;IACjC,UAAU,EAAE,eAAe;IAC3B,kBAAkB,EAAE,eAAe;IACnC,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,QAAQ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AAC,IAAI,IAAI,eAAC,CAAC,OAAO,GAAG;QAC5B,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,IAAI,UAAU,eAAC,CAAC,OAAO,KAAK,eAAC,CAAC,OAAO,IAAI,GAAG,GAAG,CAAA;AAC3D,CAAC;AAED,SAAS,eAAe,CAAC,GAAa;IACpC,YAAY,CAAC,GAAG,EAAE,IAAA,WAAC,EAAA,yBAAyB,eAAC,CAAC,IAAI,IAAI,eAAC,CAAC,OAAO,GAAG,CAAC,CAAA;AACrE,CAAC;AAED,SAAS,YAAY,CAAC,EAAC,GAAG,EAAE,SAAS,EAAW,EAAE,GAAS;IACzD,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,SAAS,UAAU,EAAE,GAAG,CAAC,CAAA;IACxC,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,SAAS,WAAW,EAAE,eAAC,CAAC,OAAO,CAAC,CAAA;IAC/C,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts deleted file mode 100644 index b0413d71..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Ajv from "../../core"; -import { SchemaObjectMap } from "./types"; -import { SchemaEnv } from ".."; -export default function compileSerializer(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js deleted file mode 100644 index 29bf234c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js +++ /dev/null @@ -1,218 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); -const __1 = require(".."); -const codegen_1 = require("../codegen"); -const ref_error_1 = require("../ref_error"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const ref_1 = require("../../vocabularies/jtd/ref"); -const util_1 = require("../util"); -const quote_1 = require("../../runtime/quote"); -const genSerialize = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -}; -function compileSerializer(sch, definitions) { - const _sch = __1.getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - const serializeName = gen.scopeName("serialize"); - const cxt = { - self: this, - gen, - schema: sch.schema, - schemaEnv: sch, - definitions, - data: names_1.default.data, - }; - let sourceCode; - try { - this._compilations.add(sch); - sch.serializeName = serializeName; - gen.func(serializeName, names_1.default.data, false, () => { - gen.let(names_1.default.json, (0, codegen_1.str) ``); - serializeCode(cxt); - gen.return(names_1.default.json); - }); - gen.optimize(this.opts.code.optimize); - const serializeFuncCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${serializeFuncCode}`; - const makeSerialize = new Function(`${names_1.default.scope}`, sourceCode); - const serialize = makeSerialize(this.scope.get()); - this.scope.value(serializeName, { ref: serialize }); - sch.serialize = serialize; - } - catch (e) { - if (sourceCode) - this.logger.error("Error compiling serializer, function code:", sourceCode); - delete sch.serialize; - delete sch.serializeName; - throw e; - } - finally { - this._compilations.delete(sch); - } - return sch; -} -exports.default = compileSerializer; -function serializeCode(cxt) { - let form; - for (const key of types_1.jtdForms) { - if (key in cxt.schema) { - form = key; - break; - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty); -} -function serializeNullable(cxt, serializeForm) { - const { gen, schema, data } = cxt; - if (!schema.nullable) - return serializeForm(cxt); - gen.if((0, codegen_1._) `${data} === undefined || ${data} === null`, () => gen.add(names_1.default.json, (0, codegen_1._) `"null"`), () => serializeForm(cxt)); -} -function serializeElements(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `[`); - const first = gen.let("first", true); - gen.forOf("el", data, (el) => { - addComma(cxt, first); - serializeCode({ ...cxt, schema: schema.elements, data: el }); - }); - gen.add(names_1.default.json, (0, codegen_1.str) `]`); -} -function serializeValues(cxt) { - const { gen, schema, data } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - const first = gen.let("first", true); - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeKeyValue(cxt, key, schema, first) { - const { gen, data } = cxt; - addComma(cxt, first); - serializeString({ ...cxt, data: key }); - gen.add(names_1.default.json, (0, codegen_1.str) `:`); - const value = gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - serializeCode({ ...cxt, schema, data: value }); -} -function serializeDiscriminator(cxt) { - const { gen, schema, data } = cxt; - const { discriminator } = schema; - gen.add(names_1.default.json, (0, codegen_1.str) `{${JSON.stringify(discriminator)}:`); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(discriminator)}`); - serializeString({ ...cxt, data: tag }); - gen.if(false); - for (const tagValue in schema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - const sch = schema.mapping[tagValue]; - serializeSchemaProperties({ ...cxt, schema: sch }, discriminator); - } - gen.endIf(); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeProperties(cxt) { - const { gen } = cxt; - gen.add(names_1.default.json, (0, codegen_1.str) `{`); - serializeSchemaProperties(cxt); - gen.add(names_1.default.json, (0, codegen_1.str) `}`); -} -function serializeSchemaProperties(cxt, discriminator) { - const { gen, schema, data } = cxt; - const { properties, optionalProperties } = schema; - const props = keys(properties); - const optProps = keys(optionalProperties); - const allProps = allProperties(props.concat(optProps)); - let first = !discriminator; - for (const key of props) { - serializeProperty(key, properties[key], keyValue(key)); - } - for (const key of optProps) { - const value = keyValue(key); - gen.if((0, codegen_1.and)((0, codegen_1._) `${value} !== undefined`, (0, code_1.isOwnProperty)(gen, data, key)), () => serializeProperty(key, optionalProperties[key], value)); - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => gen.if(isAdditional(key, allProps), () => serializeKeyValue(cxt, key, {}, gen.let("first", first)))); - } - function keys(ps) { - return ps ? Object.keys(ps) : []; - } - function allProperties(ps) { - if (discriminator) - ps.push(discriminator); - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap"); - } - return ps; - } - function keyValue(key) { - return gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); - } - function serializeProperty(key, propSchema, value) { - if (first) - first = false; - else - gen.add(names_1.default.json, (0, codegen_1.str) `,`); - gen.add(names_1.default.json, (0, codegen_1.str) `${JSON.stringify(key)}:`); - serializeCode({ ...cxt, schema: propSchema, data: value }); - } - function isAdditional(key, ps) { - return ps.length ? (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)) : true; - } -} -function serializeType(cxt) { - const { gen, schema, data } = cxt; - switch (schema.type) { - case "boolean": - gen.add(names_1.default.json, (0, codegen_1._) `${data} ? "true" : "false"`); - break; - case "string": - serializeString(cxt); - break; - case "timestamp": - gen.if((0, codegen_1._) `${data} instanceof Date`, () => gen.add(names_1.default.json, (0, codegen_1._) `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt)); - break; - default: - serializeNumber(cxt); - } -} -function serializeString({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `${(0, util_1.useFunc)(gen, quote_1.default)}(${data})`); -} -function serializeNumber({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `"" + ${data}`); -} -function serializeRef(cxt) { - const { gen, self, data, definitions, schema, schemaEnv } = cxt; - const { ref } = schema; - const refSchema = definitions[ref]; - if (!refSchema) - throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); - if (!(0, ref_1.hasRef)(refSchema)) - return serializeCode({ ...cxt, schema: refSchema }); - const { root } = schemaEnv; - const sch = compileSerializer.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions); - gen.add(names_1.default.json, (0, codegen_1._) `${getSerialize(gen, sch)}(${data})`); -} -function getSerialize(gen, sch) { - return sch.serialize - ? gen.scopeValue("serialize", { ref: sch.serialize }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.serialize`; -} -function serializeEmpty({ gen, data }) { - gen.add(names_1.default.json, (0, codegen_1._) `JSON.stringify(${data})`); -} -function addComma({ gen }, first) { - gen.if(first, () => gen.assign(first, false), () => gen.add(names_1.default.json, (0, codegen_1.str) `,`)); -} -//# sourceMappingURL=serialize.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map deleted file mode 100644 index 10c6ed12..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/serialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../lib/compile/jtd/serialize.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAwE;AACxE,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAqD;AACrD,oDAAiD;AACjD,kCAA+B;AAC/B,+CAAuC;AAEvC,MAAM,YAAY,GAAkD;IAClE,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,eAAe;IACvB,aAAa,EAAE,sBAAsB;IACrC,UAAU,EAAE,mBAAmB;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE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EACL,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAC9B,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts deleted file mode 100644 index 38c8bea7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { SchemaObject } from "../../types"; -export declare type SchemaObjectMap = { - [Ref in string]?: SchemaObject; -}; -export declare const jtdForms: readonly ["elements", "values", "discriminator", "properties", "optionalProperties", "enum", "type", "ref"]; -export declare type JTDForm = typeof jtdForms[number]; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js deleted file mode 100644 index b9c60a90..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.jtdForms = void 0; -exports.jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -]; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js.map deleted file mode 100644 index 53439e00..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/jtd/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/compile/jtd/types.ts"],"names":[],"mappings":";;;AAIa,QAAA,QAAQ,GAAG;IACtB,UAAU;IACV,QAAQ;IACR,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,MAAM;IACN,MAAM;IACN,KAAK;CACG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.d.ts deleted file mode 100644 index 5740e82c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Name } from "./codegen"; -declare const names: { - data: Name; - valCxt: Name; - instancePath: Name; - parentData: Name; - parentDataProperty: Name; - rootData: Name; - dynamicAnchors: Name; - vErrors: Name; - errors: Name; - this: Name; - self: Name; - scope: Name; - json: Name; - jsonPos: Name; - jsonLen: Name; - jsonPart: Name; -}; -export default names; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js deleted file mode 100644 index 015334bd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("./codegen"); -const names = { - // validation function arguments - data: new codegen_1.Name("data"), - // args passed from referencing schema - valCxt: new codegen_1.Name("valCxt"), - instancePath: new codegen_1.Name("instancePath"), - parentData: new codegen_1.Name("parentData"), - parentDataProperty: new codegen_1.Name("parentDataProperty"), - rootData: new codegen_1.Name("rootData"), - dynamicAnchors: new codegen_1.Name("dynamicAnchors"), - // function scoped variables - vErrors: new codegen_1.Name("vErrors"), - errors: new codegen_1.Name("errors"), - this: new codegen_1.Name("this"), - // "globals" - self: new codegen_1.Name("self"), - scope: new codegen_1.Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new codegen_1.Name("json"), - jsonPos: new codegen_1.Name("jsonPos"), - jsonLen: new codegen_1.Name("jsonLen"), - jsonPart: new codegen_1.Name("jsonPart"), -}; -exports.default = names; -//# sourceMappingURL=names.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js.map deleted file mode 100644 index 9bbe8e27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/names.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"names.js","sourceRoot":"","sources":["../../lib/compile/names.ts"],"names":[],"mappings":";;AAAA,uCAA8B;AAE9B,MAAM,KAAK,GAAG;IACZ,gCAAgC;IAChC,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,sCAAsC;IACtC,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC;IAC1B,YAAY,EAAE,IAAI,cAAI,CAAC,cAAc,CAAC;IACtC,UAAU,EAAE,IAAI,cAAI,CAAC,YAAY,CAAC;IAClC,kBAAkB,EAAE,IAAI,cAAI,CAAC,oBAAoB,CAAC;IAClD,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC;IAC9B,cAAc,EAAE,IAAI,cAAI,CAAC,gBAAgB,CAAC;IAC1C,4BAA4B;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,IAAI,cAAI,CAAC,QAAQ,CAAC;IAC1B,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,YAAY;IACZ,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,IAAI,cAAI,CAAC,OAAO,CAAC;IACxB,wDAAwD;IACxD,IAAI,EAAE,IAAI,cAAI,CAAC,MAAM,CAAC;IACtB,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,cAAI,CAAC,SAAS,CAAC;IAC5B,QAAQ,EAAE,IAAI,cAAI,CAAC,UAAU,CAAC;CAC/B,CAAA;AAED,kBAAe,KAAK,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.d.ts deleted file mode 100644 index 43374439..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { UriResolver } from "../types"; -export default class MissingRefError extends Error { - readonly missingRef: string; - readonly missingSchema: string; - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string); -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js deleted file mode 100644 index 3916dec8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const resolve_1 = require("./resolve"); -class MissingRefError extends Error { - constructor(resolver, baseId, ref, msg) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`); - this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref); - this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef)); - } -} -exports.default = MissingRefError; -//# sourceMappingURL=ref_error.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js.map deleted file mode 100644 index d13f5f2d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/ref_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref_error.js","sourceRoot":"","sources":["../../lib/compile/ref_error.ts"],"names":[],"mappings":";;AAAA,uCAA8D;AAG9D,MAAqB,eAAgB,SAAQ,KAAK;IAIhD,YAAY,QAAqB,EAAE,MAAc,EAAE,GAAW,EAAE,GAAY;QAC1E,KAAK,CAAC,GAAG,IAAI,2BAA2B,GAAG,YAAY,MAAM,EAAE,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,GAAG,IAAA,oBAAU,EAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;QACnD,IAAI,CAAC,aAAa,GAAG,IAAA,qBAAW,EAAC,IAAA,qBAAW,EAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;IAC1E,CAAC;CACF;AATD,kCASC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.d.ts deleted file mode 100644 index 745eaeb4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { AnySchema, AnySchemaObject, UriResolver } from "../types"; -import type Ajv from "../ajv"; -import type { URIComponents } from "uri-js"; -export declare type LocalRefs = { - [Ref in string]?: AnySchemaObject; -}; -export declare function inlineRef(schema: AnySchema, limit?: boolean | number): boolean; -export declare function getFullPath(resolver: UriResolver, id?: string, normalize?: boolean): string; -export declare function _getFullPath(resolver: UriResolver, p: URIComponents): string; -export declare function normalizeId(id: string | undefined): string; -export declare function resolveUrl(resolver: UriResolver, baseId: string, id: string): string; -export declare function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js deleted file mode 100644 index 8b51a20e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0; -const util_1 = require("./util"); -const equal = require("fast-deep-equal"); -const traverse = require("json-schema-traverse"); -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]); -function inlineRef(schema, limit = true) { - if (typeof schema == "boolean") - return true; - if (limit === true) - return !hasRef(schema); - if (!limit) - return false; - return countKeys(schema) <= limit; -} -exports.inlineRef = inlineRef; -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]); -function hasRef(schema) { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) - return true; - const sch = schema[key]; - if (Array.isArray(sch) && sch.some(hasRef)) - return true; - if (typeof sch == "object" && hasRef(sch)) - return true; - } - return false; -} -function countKeys(schema) { - let count = 0; - for (const key in schema) { - if (key === "$ref") - return Infinity; - count++; - if (SIMPLE_INLINED.has(key)) - continue; - if (typeof schema[key] == "object") { - (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch))); - } - if (count === Infinity) - return Infinity; - } - return count; -} -function getFullPath(resolver, id = "", normalize) { - if (normalize !== false) - id = normalizeId(id); - const p = resolver.parse(id); - return _getFullPath(resolver, p); -} -exports.getFullPath = getFullPath; -function _getFullPath(resolver, p) { - const serialized = resolver.serialize(p); - return serialized.split("#")[0] + "#"; -} -exports._getFullPath = _getFullPath; -const TRAILING_SLASH_HASH = /#\/?$/; -function normalizeId(id) { - return id ? id.replace(TRAILING_SLASH_HASH, "") : ""; -} -exports.normalizeId = normalizeId; -function resolveUrl(resolver, baseId, id) { - id = normalizeId(id); - return resolver.resolve(baseId, id); -} -exports.resolveUrl = resolveUrl; -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i; -function getSchemaRefs(schema, baseId) { - if (typeof schema == "boolean") - return {}; - const { schemaId, uriResolver } = this.opts; - const schId = normalizeId(schema[schemaId] || baseId); - const baseIds = { "": schId }; - const pathPrefix = getFullPath(uriResolver, schId, false); - const localRefs = {}; - const schemaRefs = new Set(); - traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) - return; - const fullPath = pathPrefix + jsonPtr; - let baseId = baseIds[parentJsonPtr]; - if (typeof sch[schemaId] == "string") - baseId = addRef.call(this, sch[schemaId]); - addAnchor.call(this, sch.$anchor); - addAnchor.call(this, sch.$dynamicAnchor); - baseIds[jsonPtr] = baseId; - function addRef(ref) { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve; - ref = normalizeId(baseId ? _resolve(baseId, ref) : ref); - if (schemaRefs.has(ref)) - throw ambiguos(ref); - schemaRefs.add(ref); - let schOrRef = this.refs[ref]; - if (typeof schOrRef == "string") - schOrRef = this.refs[schOrRef]; - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref); - } - else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref); - localRefs[ref] = sch; - } - else { - this.refs[ref] = fullPath; - } - } - return ref; - } - function addAnchor(anchor) { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) - throw new Error(`invalid anchor "${anchor}"`); - addRef.call(this, `#${anchor}`); - } - } - }); - return localRefs; - function checkAmbiguosRef(sch1, sch2, ref) { - if (sch2 !== undefined && !equal(sch1, sch2)) - throw ambiguos(ref); - } - function ambiguos(ref) { - return new Error(`reference "${ref}" resolves to more than one schema`); - } -} -exports.getSchemaRefs = getSchemaRefs; -//# sourceMappingURL=resolve.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js.map deleted file mode 100644 index 81f08b0c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/resolve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../lib/compile/resolve.ts"],"names":[],"mappings":";;;AAGA,iCAA+B;AAC/B,yCAAwC;AACxC,iDAAgD;AAKhD,2CAA2C;AAC3C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,MAAM;IACN,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,SAAS;IACT,SAAS;IACT,aAAa;IACb,YAAY;IACZ,UAAU;IACV,MAAM;IACN,OAAO;CACR,CAAC,CAAA;AAEF,SAAgB,SAAS,CAAC,MAAiB,EAAE,QAA0B,IAAI;IACzE,IAAI,OAAO,MAAM,IAAI,SAAS;QAAE,OAAO,IAAI,CAAA;IAC3C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC1C,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,CAAA;AACnC,CAAC;AALD,8BAKC;AAED,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,MAAM;IACN,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,gBAAgB;CACjB,CAAC,CAAA;AAEF,SAAS,MAAM,CAAC,MAAuB;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAA;QACtC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;QACvB,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE,OAAO,IAAI,CAAA;QACvD,IAAI,OAAO,GAA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,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAA;iBAC1B;aACF;YACD,OAAO,GAAG,CAAA;QACZ,CAAC;QAED,SAAS,SAAS,CAAY,MAAe;YAC3C,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;gBAC7B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,GAAG,CAAC,CAAA;gBACvE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,MAAM,EAAE,CAAC,CAAA;aAChC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,SAAS,CAAA;IAEhB,SAAS,gBAAgB,CAAC,IAAe,EAAE,IAA2B,EAAE,GAAW;QACjF,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;YAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAA;IACnE,CAAC;IAED,SAAS,QAAQ,CAAC,GAAW;QAC3B,OAAO,IAAI,KAAK,CAAC,cAAc,GAAG,oCAAoC,CAAC,CAAA;IACzE,CAAC;AACH,CAAC;AAxDD,sCAwDC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.d.ts deleted file mode 100644 index 7def4b5a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { AddedKeywordDefinition } from "../types"; -declare const _jsonTypes: readonly ["string", "number", "integer", "boolean", "null", "object", "array"]; -export declare type JSONType = typeof _jsonTypes[number]; -export declare function isJSONType(x: unknown): x is JSONType; -declare type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined; -}; -export interface ValidationRules { - rules: RuleGroup[]; - post: RuleGroup; - all: { - [Key in string]?: boolean | Rule; - }; - keywords: { - [Key in string]?: boolean; - }; - types: ValidationTypes; -} -export interface RuleGroup { - type?: JSONType; - rules: Rule[]; -} -export interface Rule { - keyword: string; - definition: AddedKeywordDefinition; -} -export declare function getRules(): ValidationRules; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js deleted file mode 100644 index 82a591ff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRules = exports.isJSONType = void 0; -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; -const jsonTypes = new Set(_jsonTypes); -function isJSONType(x) { - return typeof x == "string" && jsonTypes.has(x); -} -exports.isJSONType = isJSONType; -function getRules() { - const groups = { - number: { type: "number", rules: [] }, - string: { type: "string", rules: [] }, - array: { type: "array", rules: [] }, - object: { type: "object", rules: [] }, - }; - return { - types: { ...groups, integer: true, boolean: true, null: true }, - rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object], - post: { rules: [] }, - all: {}, - keywords: {}, - }; -} -exports.getRules = getRules; -//# sourceMappingURL=rules.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js.map deleted file mode 100644 index 084c70f8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/rules.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../lib/compile/rules.ts"],"names":[],"mappings":";;;AAEA,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;AAIjG,MAAM,SAAS,GAAgB,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;AAElD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,OAAO,CAAC,IAAI,QAAQ,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC;AAFD,gCAEC;AAyBD,SAAgB,QAAQ;IACtB,MAAM,MAAM,GAAgE;QAC1E,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;QACnC,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAC;QACjC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAC;KACpC,CAAA;IACD,OAAO;QACL,KAAK,EAAE,EAAC,GAAG,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;QAC5D,KAAK,EAAE,CAAC,EAAC,KAAK,EAAE,EAAE,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QAC/E,IAAI,EAAE,EAAC,KAAK,EAAE,EAAE,EAAC;QACjB,GAAG,EAAE,EAAE;QACP,QAAQ,EAAE,EAAE;KACb,CAAA;AACH,CAAC;AAdD,4BAcC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.d.ts deleted file mode 100644 index 17042cf0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { AnySchema, EvaluatedProperties, EvaluatedItems } from "../types"; -import type { SchemaCxt, SchemaObjCxt } from "."; -import { Code, Name, CodeGen } from "./codegen"; -import type { Rule, ValidationRules } from "./rules"; -export declare function toHash(arr: T[]): { - [K in T]?: true; -}; -export declare function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void; -export declare function checkUnknownRules(it: SchemaCxt, schema?: AnySchema): void; -export declare function schemaHasRules(schema: AnySchema, rules: { - [Key in string]?: boolean | Rule; -}): boolean; -export declare function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean; -export declare function schemaRefOrVal({ topSchemaRef, schemaPath }: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false): Code | number | boolean; -export declare function unescapeFragment(str: string): string; -export declare function escapeFragment(str: string | number): string; -export declare function escapeJsonPointer(str: string | number): string; -export declare function unescapeJsonPointer(str: string): string; -export declare function eachItem(xs: T | T[], f: (x: T) => void): void; -declare type SomeEvaluated = EvaluatedProperties | EvaluatedItems; -declare type MergeEvaluatedFunc = (gen: CodeGen, from: Name | T, to: Name | Exclude | undefined, toName?: typeof Name) => Name | T; -interface MergeEvaluated { - props: MergeEvaluatedFunc; - items: MergeEvaluatedFunc; -} -export declare const mergeEvaluated: MergeEvaluated; -export declare function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name; -export declare function setEvaluated(gen: CodeGen, props: Name, ps: { - [K in string]?: true; -}): void; -export declare function useFunc(gen: CodeGen, f: { - code: string; -}): Name; -export declare enum Type { - Num = 0, - Str = 1 -} -export declare function getErrorPath(dataProp: Name | string | number, dataPropType?: Type, jsPropertySyntax?: boolean): Code | string; -export declare function checkStrictMode(it: SchemaCxt, msg: string, mode?: boolean | "log"): void; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js deleted file mode 100644 index 091ad4c0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0; -const codegen_1 = require("./codegen"); -const code_1 = require("./codegen/code"); -// TODO refactor to use Set -function toHash(arr) { - const hash = {}; - for (const item of arr) - hash[item] = true; - return hash; -} -exports.toHash = toHash; -function alwaysValidSchema(it, schema) { - if (typeof schema == "boolean") - return schema; - if (Object.keys(schema).length === 0) - return true; - checkUnknownRules(it, schema); - return !schemaHasRules(schema, it.self.RULES.all); -} -exports.alwaysValidSchema = alwaysValidSchema; -function checkUnknownRules(it, schema = it.schema) { - const { opts, self } = it; - if (!opts.strictSchema) - return; - if (typeof schema === "boolean") - return; - const rules = self.RULES.keywords; - for (const key in schema) { - if (!rules[key]) - checkStrictMode(it, `unknown keyword: "${key}"`); - } -} -exports.checkUnknownRules = checkUnknownRules; -function schemaHasRules(schema, rules) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (rules[key]) - return true; - return false; -} -exports.schemaHasRules = schemaHasRules; -function schemaHasRulesButRef(schema, RULES) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (key !== "$ref" && RULES.all[key]) - return true; - return false; -} -exports.schemaHasRulesButRef = schemaHasRulesButRef; -function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") - return schema; - if (typeof schema == "string") - return (0, codegen_1._) `${schema}`; - } - return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`; -} -exports.schemaRefOrVal = schemaRefOrVal; -function unescapeFragment(str) { - return unescapeJsonPointer(decodeURIComponent(str)); -} -exports.unescapeFragment = unescapeFragment; -function escapeFragment(str) { - return encodeURIComponent(escapeJsonPointer(str)); -} -exports.escapeFragment = escapeFragment; -function escapeJsonPointer(str) { - if (typeof str == "number") - return `${str}`; - return str.replace(/~/g, "~0").replace(/\//g, "~1"); -} -exports.escapeJsonPointer = escapeJsonPointer; -function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); -} -exports.unescapeJsonPointer = unescapeJsonPointer; -function eachItem(xs, f) { - if (Array.isArray(xs)) { - for (const x of xs) - f(x); - } - else { - f(xs); - } -} -exports.eachItem = eachItem; -function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) { - return (gen, from, to, toName) => { - const res = to === undefined - ? from - : to instanceof codegen_1.Name - ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof codegen_1.Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to); - return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res; - }; -} -exports.mergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => { - gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`)); - }), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => { - if (from === true) { - gen.assign(to, true); - } - else { - gen.assign(to, (0, codegen_1._) `${to} || {}`); - setEvaluated(gen, to, from); - } - }), - mergeValues: (from, to) => (from === true ? true : { ...from, ...to }), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -}; -function evaluatedPropsToName(gen, ps) { - if (ps === true) - return gen.var("props", true); - const props = gen.var("props", (0, codegen_1._) `{}`); - if (ps !== undefined) - setEvaluated(gen, props, ps); - return props; -} -exports.evaluatedPropsToName = evaluatedPropsToName; -function setEvaluated(gen, props, ps) { - Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true)); -} -exports.setEvaluated = setEvaluated; -const snippets = {}; -function useFunc(gen, f) { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)), - }); -} -exports.useFunc = useFunc; -var Type; -(function (Type) { - Type[Type["Num"] = 0] = "Num"; - Type[Type["Str"] = 1] = "Str"; -})(Type = exports.Type || (exports.Type = {})); -function getErrorPath(dataProp, dataPropType, jsPropertySyntax) { - // let path - if (dataProp instanceof codegen_1.Name) { - const isNumber = dataPropType === Type.Num; - return jsPropertySyntax - ? isNumber - ? (0, codegen_1._) `"[" + ${dataProp} + "]"` - : (0, codegen_1._) `"['" + ${dataProp} + "']"` - : isNumber - ? (0, codegen_1._) `"/" + ${dataProp}` - : (0, codegen_1._) `"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; // TODO maybe use global escapePointer - } - return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp); -} -exports.getErrorPath = getErrorPath; -function checkStrictMode(it, msg, mode = it.opts.strictSchema) { - if (!mode) - return; - msg = `strict mode: ${msg}`; - if (mode === true) - throw new Error(msg); - it.self.logger.warn(msg); -} -exports.checkStrictMode = checkStrictMode; -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js.map deleted file mode 100644 index a2128fc3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../lib/compile/util.ts"],"names":[],"mappings":";;;AAEA,uCAA6D;AAC7D,yCAAoC;AAGpC,2BAA2B;AAC3B,SAAgB,MAAM,CAA4B,GAAQ;IACxD,MAAM,IAAI,GAAsB,EAAE,CAAA;IAClC,KAAK,MAAM,IAAI,IAAI,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzC,OAAO,IAAI,CAAA;AACb,CAAC;AAJD,wBAIC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,MAAiB;IAChE,IAAI,OAAO,MAAM,IAAI,SAAS;QAAE,OAAO,MAAM,CAAA;IAC7C,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IACjD,iBAAiB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AACnD,CAAC;AALD,8CAKC;AAED,SAAgB,iBAAiB,CAAC,EAAa,EAAE,SAAoB,EAAE,CAAC,MAAM;IAC5E,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;IACvB,IAAI,CAAC,IAAI,CAAC,YAAY;QAAE,OAAM;IAC9B,IAAI,OAAO,MAAM,KAAK,SAAS;QAAE,OAAM;IACvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAA;IACjC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;YAAE,eAAe,CAAC,EAAE,EAAE,qBAAqB,GAA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,CAC1B,QAAgC,EAChC,YAAmB,EACnB,gBAA0B;IAE1B,WAAW;IACX,IAAI,QAAQ,YAAY,cAAI,EAAE;QAC5B,MAAM,QAAQ,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,CAAA;QAC1C,OAAO,gBAAgB;YACrB,CAAC,CAAC,QAAQ;gBACR,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,QAAQ;gBAC5B,CAAC,CAAC,IAAA,WAAC,EAAA,UAAU,QAAQ,SAAS;YAChC,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,EAAE;gBACtB,CAAC,CAAC,IAAA,WAAC,EAAA,SAAS,QAAQ,4CAA4C,CAAA,CAAC,sCAAsC;KAC1G;IACD,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAA,qBAAW,EAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAA;AAChG,CAAC;AAjBD,oCAiBC;AAED,SAAgB,eAAe,CAC7B,EAAa,EACb,GAAW,EACX,OAAwB,EAAE,CAAC,IAAI,CAAC,YAAY;IAE5C,IAAI,CAAC,IAAI;QAAE,OAAM;IACjB,GAAG,GAAG,gBAAgB,GAAG,EAAE,CAAA;IAC3B,IAAI,IAAI,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;IACvC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC;AATD,0CASC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts deleted file mode 100644 index 165d375d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType, RuleGroup, Rule } from "../rules"; -export declare function schemaHasRulesForType({ schema, self }: SchemaObjCxt, type: JSONType): boolean | undefined; -export declare function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean; -export declare function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js deleted file mode 100644 index 6187dbbe..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0; -function schemaHasRulesForType({ schema, self }, type) { - const group = self.RULES.types[type]; - return group && group !== true && shouldUseGroup(schema, group); -} -exports.schemaHasRulesForType = schemaHasRulesForType; -function shouldUseGroup(schema, group) { - return group.rules.some((rule) => shouldUseRule(schema, rule)); -} -exports.shouldUseGroup = shouldUseGroup; -function shouldUseRule(schema, rule) { - var _a; - return (schema[rule.keyword] !== undefined || - ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); -} -exports.shouldUseRule = shouldUseRule; -//# sourceMappingURL=applicability.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map deleted file mode 100644 index 450cfe75..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/applicability.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applicability.js","sourceRoot":"","sources":["../../../lib/compile/validate/applicability.ts"],"names":[],"mappings":";;;AAIA,SAAgB,qBAAqB,CACnC,EAAC,MAAM,EAAE,IAAI,EAAe,EAC5B,IAAc;IAEd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACpC,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AACjE,CAAC;AAND,sDAMC;AAED,SAAgB,cAAc,CAAC,MAAuB,EAAE,KAAgB;IACtE,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAuB,EAAE,IAAU;;IAC/D,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS;SAClC,MAAA,IAAI,CAAC,UAAU,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAA,CACrE,CAAA;AACH,CAAC;AALD,sCAKC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts deleted file mode 100644 index 0ce79520..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { SchemaCxt } from ".."; -import { Name } from "../codegen"; -export declare function topBoolOrEmptySchema(it: SchemaCxt): void; -export declare function boolOrEmptySchema(it: SchemaCxt, valid: Name): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js deleted file mode 100644 index 8eeb7b5e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0; -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const boolError = { - message: "boolean schema is false", -}; -function topBoolOrEmptySchema(it) { - const { gen, schema, validateName } = it; - if (schema === false) { - falseSchemaError(it, false); - } - else if (typeof schema == "object" && schema.$async === true) { - gen.return(names_1.default.data); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, null); - gen.return(true); - } -} -exports.topBoolOrEmptySchema = topBoolOrEmptySchema; -function boolOrEmptySchema(it, valid) { - const { gen, schema } = it; - if (schema === false) { - gen.var(valid, false); // TODO var - falseSchemaError(it); - } - else { - gen.var(valid, true); // TODO var - } -} -exports.boolOrEmptySchema = boolOrEmptySchema; -function falseSchemaError(it, overrideAllErrors) { - const { gen, data } = it; - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - }; - (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors); -} -//# sourceMappingURL=boolSchema.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map deleted file mode 100644 index 4aa6c99a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/boolSchema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"boolSchema.js","sourceRoot":"","sources":["../../../lib/compile/validate/boolSchema.ts"],"names":[],"mappings":";;;AAEA,sCAAqC;AACrC,wCAAkC;AAClC,oCAAwB;AAExB,MAAM,SAAS,GAA2B;IACxC,OAAO,EAAE,yBAAyB;CACnC,CAAA;AAED,SAAgB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SAAS,EAAE,iBAAiB,CAAC,CAAA;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts deleted file mode 100644 index 65c1268e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { ErrorObject, AnySchemaObject } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { JSONType } from "../rules"; -import { Code, Name } from "../codegen"; -export declare enum DataType { - Correct = 0, - Wrong = 1 -} -export declare function getSchemaTypes(schema: AnySchemaObject): JSONType[]; -export declare function getJSONTypes(ts: unknown | unknown[]): JSONType[]; -export declare function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean; -export declare function checkDataType(dataType: JSONType, data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export declare function checkDataTypes(dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType): Code; -export declare type TypeError = ErrorObject<"type", { - type: string; -}>; -export declare function reportTypeError(it: SchemaObjCxt): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js deleted file mode 100644 index 1732d466..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js +++ /dev/null @@ -1,202 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0; -const rules_1 = require("../rules"); -const applicability_1 = require("./applicability"); -const errors_1 = require("../errors"); -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -var DataType; -(function (DataType) { - DataType[DataType["Correct"] = 0] = "Correct"; - DataType[DataType["Wrong"] = 1] = "Wrong"; -})(DataType = exports.DataType || (exports.DataType = {})); -function getSchemaTypes(schema) { - const types = getJSONTypes(schema.type); - const hasNull = types.includes("null"); - if (hasNull) { - if (schema.nullable === false) - throw new Error("type: null contradicts nullable: false"); - } - else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"'); - } - if (schema.nullable === true) - types.push("null"); - } - return types; -} -exports.getSchemaTypes = getSchemaTypes; -function getJSONTypes(ts) { - const types = Array.isArray(ts) ? ts : ts ? [ts] : []; - if (types.every(rules_1.isJSONType)) - return types; - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); -} -exports.getJSONTypes = getJSONTypes; -function coerceAndCheckDataType(it, types) { - const { gen, data, opts } = it; - const coerceTo = coerceToTypes(types, opts.coerceTypes); - const checkTypes = types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong); - gen.if(wrongType, () => { - if (coerceTo.length) - coerceData(it, types, coerceTo); - else - reportTypeError(it); - }); - } - return checkTypes; -} -exports.coerceAndCheckDataType = coerceAndCheckDataType; -const COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]); -function coerceToTypes(types, coerceTypes) { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : []; -} -function coerceData(it, types, coerceTo) { - const { gen, data, opts } = it; - const dataType = gen.let("dataType", (0, codegen_1._) `typeof ${data}`); - const coerced = gen.let("coerced", (0, codegen_1._) `undefined`); - if (opts.coerceTypes === "array") { - gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen - .assign(data, (0, codegen_1._) `${data}[0]`) - .assign(dataType, (0, codegen_1._) `typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))); - } - gen.if((0, codegen_1._) `${coerced} !== undefined`); - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t); - } - } - gen.else(); - reportTypeError(it); - gen.endIf(); - gen.if((0, codegen_1._) `${coerced} !== undefined`, () => { - gen.assign(data, coerced); - assignParentData(it, coerced); - }); - function coerceSpecificType(t) { - switch (t) { - case "string": - gen - .elseIf((0, codegen_1._) `${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, (0, codegen_1._) `"" + ${data}`) - .elseIf((0, codegen_1._) `${data} === null`) - .assign(coerced, (0, codegen_1._) `""`); - return; - case "number": - gen - .elseIf((0, codegen_1._) `${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "integer": - gen - .elseIf((0, codegen_1._) `${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`) - .assign(coerced, (0, codegen_1._) `+${data}`); - return; - case "boolean": - gen - .elseIf((0, codegen_1._) `${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf((0, codegen_1._) `${data} === "true" || ${data} === 1`) - .assign(coerced, true); - return; - case "null": - gen.elseIf((0, codegen_1._) `${data} === "" || ${data} === 0 || ${data} === false`); - gen.assign(coerced, null); - return; - case "array": - gen - .elseIf((0, codegen_1._) `${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`) - .assign(coerced, (0, codegen_1._) `[${data}]`); - } - } -} -function assignParentData({ gen, parentData, parentDataProperty }, expr) { - // TODO use gen.property - gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr)); -} -function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { - const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; - let cond; - switch (dataType) { - case "null": - return (0, codegen_1._) `${data} ${EQ} null`; - case "array": - cond = (0, codegen_1._) `Array.isArray(${data})`; - break; - case "object": - cond = (0, codegen_1._) `${data} && typeof ${data} == "object" && !Array.isArray(${data})`; - break; - case "integer": - cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`); - break; - case "number": - cond = numCond(); - break; - default: - return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`; - } - return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond); - function numCond(_cond = codegen_1.nil) { - return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil); - } -} -exports.checkDataType = checkDataType; -function checkDataTypes(dataTypes, data, strictNums, correct) { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct); - } - let cond; - const types = (0, util_1.toHash)(dataTypes); - if (types.array && types.object) { - const notObj = (0, codegen_1._) `typeof ${data} != "object"`; - cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`; - delete types.null; - delete types.array; - delete types.object; - } - else { - cond = codegen_1.nil; - } - if (types.number) - delete types.integer; - for (const t in types) - cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct)); - return cond; -} -exports.checkDataTypes = checkDataTypes; -const typeError = { - message: ({ schema }) => `must be ${schema}`, - params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`, -}; -function reportTypeError(it) { - const cxt = getTypeErrorContext(it); - (0, errors_1.reportError)(cxt, typeError); -} -exports.reportTypeError = reportTypeError; -function getTypeErrorContext(it) { - const { gen, data, schema } = it; - const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - }; -} -//# sourceMappingURL=dataType.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map deleted file mode 100644 index f19c40bc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/dataType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataType.js","sourceRoot":"","sources":["../../../lib/compile/validate/dataType.ts"],"names":[],"mappings":";;;AAOA,oCAA6C;AAC7C,mDAAqD;AACrD,sCAAqC;AACrC,wCAAkE;AAClE,kCAA8C;AAE9C,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,6CAAO,CAAA;IACP,yCAAK,CAAA;AACP,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED,SAAgB,cAAc,CAAC,MAAuB;IACpD,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACtC,IAAI,OAAO,EAAE;QACX,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;KACzF;SAAM;QACL,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAClD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;SAC5D;QACD,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;KACjD;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAZD,wCAYC;AAED,SAAgB,YAAY,CAAC,EAAuB;IAClD,MAAM,KAAK,GAAc,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE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EAAgB;IAC9C,MAAM,GAAG,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;IACnC,IAAA,oBAAW,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;AAC7B,CAAC;AAHD,0CAGC;AAED,SAAS,mBAAmB,CAAC,EAAgB;IAC3C,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,GAAG,EAAE,CAAA;IAC9B,MAAM,UAAU,GAAG,IAAA,qBAAc,EAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACrD,OAAO;QACL,GAAG;QACH,OAAO,EAAE,MAAM;QACf,IAAI;QACJ,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,UAAU;QACV,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,MAAM;QACpB,MAAM,EAAE,EAAE;QACV,EAAE;KACH,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts deleted file mode 100644 index 02ba453b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaObjCxt } from ".."; -export declare function assignDefaults(it: SchemaObjCxt, ty?: string): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js deleted file mode 100644 index cd9c42d9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assignDefaults = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function assignDefaults(it, ty) { - const { properties, items } = it.schema; - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default); - } - } - else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i) => assignDefault(it, i, sch.default)); - } -} -exports.assignDefaults = assignDefaults; -function assignDefault(it, prop, defaultValue) { - const { gen, compositeRule, data, opts } = it; - if (defaultValue === undefined) - return; - const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`; - if (compositeRule) { - (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`); - return; - } - let condition = (0, codegen_1._) `${childData} === undefined`; - if (opts.useDefaults === "empty") { - condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === ""`; - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`); -} -//# sourceMappingURL=defaults.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map deleted file mode 100644 index c435d057..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/defaults.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../lib/compile/validate/defaults.ts"],"names":[],"mappings":";;;AACA,wCAAoD;AACpD,kCAAuC;AAEvC,SAAgB,cAAc,CAAC,EAAgB,EAAE,EAAW;IAC1D,MAAM,EAAC,UAAU,EAAE,KAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAA;IACrC,IAAI,EAAE,KAAK,QAAQ,IAAI,UAAU,EAAE;QACjC,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;YAC5B,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAA;SAChD;KACF;SAAM,IAAI,EAAE,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;KACrE;AACH,CAAC;AATD,wCASC;AAED,SAAS,aAAa,CAAC,EAAgB,EAAE,IAAqB,EAAE,YAAqB;IACnF,MAAM,EAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;IAC3C,IAAI,YAAY,KAAK,SAAS;QAAE,OAAM;IACtC,MAAM,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,IAAI,GAAG,IAAA,qBAAW,EAAC,IAAI,CAAC,EAAE,CAAA;IAChD,IAAI,aAAa,EAAE;QACjB,IAAA,sBAAe,EAAC,EAAE,EAAE,2BAA2B,SAAS,EAAE,CAAC,CAAA;QAC3D,OAAM;KACP;IAED,IAAI,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,SAAS,gBAAgB,CAAA;IAC7C,IAAI,IAAI,CAAC,WAAW,KAAK,OAAO,EAAE;QAChC,SAAS,GAAG,IAAA,WAAC,EAAA,GAAG,SAAS,OAAO,SAAS,gBAAgB,SAAS,SAAS,CAAA;KAC5E;IACD,iCAAiC;IACjC,2FAA2F;IAC3F,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,IAAA,WAAC,EAAA,GAAG,SAAS,MAAM,IAAA,mBAAS,EAAC,YAAY,CAAC,EAAE,CAAC,CAAA;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.d.ts deleted file mode 100644 index 6c533ed7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AddedKeywordDefinition, AnySchemaObject, KeywordErrorCxt, KeywordCxtParams } from "../../types"; -import type { SchemaCxt, SchemaObjCxt } from ".."; -import { SubschemaArgs } from "./subschema"; -import { Code, Name, CodeGen } from "../codegen"; -import type { JSONType } from "../rules"; -import { ErrorPaths } from "../errors"; -export declare function validateFunctionCode(it: SchemaCxt): void; -export declare class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen; - readonly allErrors?: boolean; - readonly keyword: string; - readonly data: Name; - readonly $data?: string | false; - schema: any; - readonly schemaValue: Code | number | boolean; - readonly schemaCode: Code | number | boolean; - readonly schemaType: JSONType[]; - readonly parentSchema: AnySchemaObject; - readonly errsCount?: Name; - params: KeywordCxtParams; - readonly it: SchemaObjCxt; - readonly def: AddedKeywordDefinition; - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string); - result(condition: Code, successAction?: () => void, failAction?: () => void): void; - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void; - pass(condition: Code, failAction?: () => void): void; - fail(condition?: Code): void; - fail$data(condition: Code): void; - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void; - private _error; - $dataError(): void; - reset(): void; - ok(cond: Code | boolean): void; - setParams(obj: KeywordCxtParams, assign?: true): void; - block$data(valid: Name, codeBlock: () => void, $dataValid?: Code): void; - check$data(valid?: Name, $dataValid?: Code): void; - invalid$data(): Code; - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt; - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void; - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void; -} -export declare function getData($data: string, { dataLevel, dataNames, dataPathArr }: SchemaCxt): Code | number; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js deleted file mode 100644 index fffcd5f0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js +++ /dev/null @@ -1,510 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0; -const boolSchema_1 = require("./boolSchema"); -const dataType_1 = require("./dataType"); -const applicability_1 = require("./applicability"); -const dataType_2 = require("./dataType"); -const defaults_1 = require("./defaults"); -const keyword_1 = require("./keyword"); -const subschema_1 = require("./subschema"); -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const resolve_1 = require("../resolve"); -const util_1 = require("../util"); -const errors_1 = require("../errors"); -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -function validateFunctionCode(it) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it); - return; - } - } - validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); -} -exports.validateFunctionCode = validateFunctionCode; -function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { - if (opts.code.es5) { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { - gen.code((0, codegen_1._) `"use strict"; ${funcSourceUrl(schema, opts)}`); - destructureValCxtES5(gen, opts); - gen.code(body); - }); - } - else { - gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body)); - } -} -function destructureValCxt(opts) { - return (0, codegen_1._) `{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`; -} -function destructureValCxtES5(gen, opts) { - gen.if(names_1.default.valCxt, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`); - gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`); - gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`); - }, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._) `""`); - gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`); - gen.var(names_1.default.rootData, names_1.default.data); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`); - }); -} -function topSchemaObjCode(it) { - const { schema, opts, gen } = it; - validateFunction(it, () => { - if (opts.$comment && schema.$comment) - commentKeyword(it); - checkNoDefault(it); - gen.let(names_1.default.vErrors, null); - gen.let(names_1.default.errors, 0); - if (opts.unevaluated) - resetEvaluated(it); - typeAndKeywords(it); - returnResults(it); - }); - return; -} -function resetEvaluated(it) { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const { gen, validateName } = it; - it.evaluated = gen.const("evaluated", (0, codegen_1._) `${validateName}.evaluated`); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`)); - gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`)); -} -function funcSourceUrl(schema, opts) { - const schId = typeof schema == "object" && schema[opts.schemaId]; - return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil; -} -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it, valid) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid); - return; - } - } - (0, boolSchema_1.boolOrEmptySchema)(it, valid); -} -function schemaCxtHasRules({ schema, self }) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (self.RULES.all[key]) - return true; - return false; -} -function isSchemaObj(it) { - return typeof it.schema != "boolean"; -} -function subSchemaObjCode(it, valid) { - const { schema, gen, opts } = it; - if (opts.$comment && schema.$comment) - commentKeyword(it); - updateContext(it); - checkAsyncSchema(it); - const errsCount = gen.const("_errs", names_1.default.errors); - typeAndKeywords(it, errsCount); - // TODO var - gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); -} -function checkKeywords(it) { - (0, util_1.checkUnknownRules)(it); - checkRefsAndKeywords(it); -} -function typeAndKeywords(it, errsCount) { - if (it.opts.jtd) - return schemaKeywords(it, [], false, errsCount); - const types = (0, dataType_1.getSchemaTypes)(it.schema); - const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); - schemaKeywords(it, types, !checkedTypes, errsCount); -} -function checkRefsAndKeywords(it) { - const { schema, errSchemaPath, opts, self } = it; - if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); - } -} -function checkNoDefault(it) { - const { schema, opts } = it; - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); - } -} -function updateContext(it) { - const schId = it.schema[it.opts.schemaId]; - if (schId) - it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); -} -function checkAsyncSchema(it) { - if (it.schema.$async && !it.schemaEnv.$async) - throw new Error("async schema in sync schema"); -} -function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { - const msg = schema.$comment; - if (opts.$comment === true) { - gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`); - } - else if (typeof opts.$comment == "function") { - const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`; - const rootName = gen.scopeValue("root", { ref: schemaEnv.root }); - gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`); - } -} -function returnResults(it) { - const { gen, schemaEnv, validateName, ValidationError, opts } = it; - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`)); - } - else { - gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors); - if (opts.unevaluated) - assignEvaluated(it); - gen.return((0, codegen_1._) `${names_1.default.errors} === 0`); - } -} -function assignEvaluated({ gen, evaluated, props, items }) { - if (props instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.props`, props); - if (items instanceof codegen_1.Name) - gen.assign((0, codegen_1._) `${evaluated}.items`, items); -} -function schemaKeywords(it, types, typeErrors, errsCount) { - const { gen, schema, data, allErrors, opts, self } = it; - const { RULES } = self; - if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); // TODO typecast - return; - } - if (!opts.jtd) - checkStrictTypes(it, types); - gen.block(() => { - for (const group of RULES.rules) - groupKeywords(group); - groupKeywords(RULES.post); - }); - function groupKeywords(group) { - if (!(0, applicability_1.shouldUseGroup)(schema, group)) - return; - if (group.type) { - gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); - iterateKeywords(it, group); - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else(); - (0, dataType_2.reportTypeError)(it); - } - gen.endIf(); - } - else { - iterateKeywords(it, group); - } - // TODO make it "ok" call? - if (!allErrors) - gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`); - } -} -function iterateKeywords(it, group) { - const { gen, schema, opts: { useDefaults }, } = it; - if (useDefaults) - (0, defaults_1.assignDefaults)(it, group.type); - gen.block(() => { - for (const rule of group.rules) { - if ((0, applicability_1.shouldUseRule)(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type); - } - } - }); -} -function checkStrictTypes(it, types) { - if (it.schemaEnv.meta || !it.opts.strictTypes) - return; - checkContextTypes(it, types); - if (!it.opts.allowUnionTypes) - checkMultipleTypes(it, types); - checkKeywordTypes(it, it.dataTypes); -} -function checkContextTypes(it, types) { - if (!types.length) - return; - if (!it.dataTypes.length) { - it.dataTypes = types; - return; - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`); - } - }); - it.dataTypes = it.dataTypes.filter((t) => includesType(types, t)); -} -function checkMultipleTypes(it, ts) { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword"); - } -} -function checkKeywordTypes(it, ts) { - const rules = it.self.RULES.all; - for (const keyword in rules) { - const rule = rules[keyword]; - if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) { - const { type } = rule.definition; - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`); - } - } - } -} -function hasApplicableType(schTs, kwdT) { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")); -} -function includesType(ts, t) { - return ts.includes(t) || (t === "integer" && ts.includes("number")); -} -function strictTypesError(it, msg) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - msg += ` at "${schemaPath}" (strictTypes)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); -} -class KeywordCxt { - constructor(it, def, keyword) { - (0, keyword_1.validateKeywordUsage)(it, def, keyword); - this.gen = it.gen; - this.allErrors = it.allErrors; - this.keyword = keyword; - this.data = it.data; - this.schema = it.schema[keyword]; - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data; - this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data); - this.schemaType = def.schemaType; - this.parentSchema = it.schema; - this.params = {}; - this.it = it; - this.def = def; - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)); - } - else { - this.schemaCode = this.schemaValue; - if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`); - } - } - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", names_1.default.errors); - } - } - result(condition, successAction, failAction) { - this.failResult((0, codegen_1.not)(condition), successAction, failAction); - } - failResult(condition, successAction, failAction) { - this.gen.if(condition); - if (failAction) - failAction(); - else - this.error(); - if (successAction) { - this.gen.else(); - successAction(); - if (this.allErrors) - this.gen.endIf(); - } - else { - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - } - pass(condition, failAction) { - this.failResult((0, codegen_1.not)(condition), undefined, failAction); - } - fail(condition) { - if (condition === undefined) { - this.error(); - if (!this.allErrors) - this.gen.if(false); // this branch will be removed by gen.optimize - return; - } - this.gen.if(condition); - this.error(); - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - fail$data(condition) { - if (!this.$data) - return this.fail(condition); - const { schemaCode } = this; - this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`); - } - error(append, errorParams, errorPaths) { - if (errorParams) { - this.setParams(errorParams); - this._error(append, errorPaths); - this.setParams({}); - return; - } - this._error(append, errorPaths); - } - _error(append, errorPaths) { - ; - (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths); - } - $dataError() { - (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); - } - reset() { - if (this.errsCount === undefined) - throw new Error('add "trackErrors" to keyword definition'); - (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); - } - ok(cond) { - if (!this.allErrors) - this.gen.if(cond); - } - setParams(obj, assign) { - if (assign) - Object.assign(this.params, obj); - else - this.params = obj; - } - block$data(valid, codeBlock, $dataValid = codegen_1.nil) { - this.gen.block(() => { - this.check$data(valid, $dataValid); - codeBlock(); - }); - } - check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { - if (!this.$data) - return; - const { gen, schemaCode, schemaType, def } = this; - gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid)); - if (valid !== codegen_1.nil) - gen.assign(valid, true); - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()); - this.$dataError(); - if (valid !== codegen_1.nil) - gen.assign(valid, false); - } - gen.else(); - } - invalid$data() { - const { gen, schemaCode, schemaType, def, it } = this; - return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); - function wrong$DataType() { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof codegen_1.Name)) - throw new Error("ajv implementation error"); - const st = Array.isArray(schemaType) ? schemaType : [schemaType]; - return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`; - } - return codegen_1.nil; - } - function invalid$DataSchema() { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); // TODO value.code for standalone - return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`; - } - return codegen_1.nil; - } - } - subschema(appl, valid) { - const subschema = (0, subschema_1.getSubschema)(this.it, appl); - (0, subschema_1.extendSubschemaData)(subschema, this.it, appl); - (0, subschema_1.extendSubschemaMode)(subschema, appl); - const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined }; - subschemaCode(nextContext, valid); - return nextContext; - } - mergeEvaluated(schemaCxt, toName) { - const { it, gen } = this; - if (!it.opts.unevaluated) - return; - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName); - } - } - mergeValidEvaluated(schemaCxt, valid) { - const { it, gen } = this; - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); - return true; - } - } -} -exports.KeywordCxt = KeywordCxt; -function keywordCode(it, keyword, def, ruleType) { - const cxt = new KeywordCxt(it, def, keyword); - if ("code" in def) { - def.code(cxt, ruleType); - } - else if (cxt.$data && def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } - else if ("macro" in def) { - (0, keyword_1.macroKeywordCode)(cxt, def); - } - else if (def.compile || def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } -} -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/; -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; -function getData($data, { dataLevel, dataNames, dataPathArr }) { - let jsonPointer; - let data; - if ($data === "") - return names_1.default.rootData; - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) - throw new Error(`Invalid JSON-pointer: ${$data}`); - jsonPointer = $data; - data = names_1.default.rootData; - } - else { - const matches = RELATIVE_JSON_POINTER.exec($data); - if (!matches) - throw new Error(`Invalid JSON-pointer: ${$data}`); - const up = +matches[1]; - jsonPointer = matches[2]; - if (jsonPointer === "#") { - if (up >= dataLevel) - throw new Error(errorMsg("property/index", up)); - return dataPathArr[dataLevel - up]; - } - if (up > dataLevel) - throw new Error(errorMsg("data", up)); - data = dataNames[dataLevel - up]; - if (!jsonPointer) - return data; - } - let expr = data; - const segments = jsonPointer.split("/"); - for (const segment of segments) { - if (segment) { - data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`; - expr = (0, codegen_1._) `${expr} && ${data}`; - } - } - return expr; - function errorMsg(pointerType, up) { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; - } -} -exports.getData = getData; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js.map deleted file mode 100644 index b9ed9428..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/compile/validate/index.ts"],"names":[],"mappings":";;;AASA,6CAAoE;AACpE,yCAAiE;AACjE,mDAA6D;AAC7D,yCAAmF;AACnF,yCAAyC;AACzC,uCAAkG;AAClG,2CAAiG;AACjG,wCAAwF;AACxF,oCAAwB;AACxB,wCAAqC;AACrC,kCAOgB;AAEhB,sCAMkB;AAElB,mGAAmG;AACnG,SAAgB,oBAAoB,CAAC,EAAa;IAChD,IAAI,WAAW,CAAC,EAAE,CAAC,EAAE;QACnB,aAAa,CAAC,EAAE,CAAC,CAAA;QACjB,IAAI,iBAAiB,CAAC,EAAE,CAAC,EAAE;YACzB,gBAAgB,CAAC,EAAE,CAAC,CAAA;YACpB,OAAM;SACP;KACF;IACD,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,IAAA,iCAAoB,EAAC,EAAE,CAAC,CAAC,CAAA;AACtD,CAAC;AATD,oDASC;AAED,SAAS,gBAAgB,CACvB,EAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAY,EACvD,IAAW;IAEX,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;QACjB,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,IAAI,KAAK,eAAC,CAAC,MAAM,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE;YACvE,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,iBAAiB,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;YACzD,oBAAoB,CAAC,GAA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/validate/keyword.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.d.ts deleted file mode 100644 index d15cee87..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { KeywordCxt } from "."; -import type { AddedKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition } from "../../types"; -import type { SchemaObjCxt } from ".."; -import type { JSONType } from "../rules"; -export declare function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void; -export declare function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void; -export declare function validSchemaType(schema: unknown, schemaType: JSONType[], allowUndefined?: boolean): boolean; -export declare function validateKeywordUsage({ schema, opts, self, errSchemaPath }: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js deleted file mode 100644 index 1109d3a4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0; -const codegen_1 = require("../codegen"); -const names_1 = require("../names"); -const code_1 = require("../../vocabularies/code"); -const errors_1 = require("../errors"); -function macroKeywordCode(cxt, def) { - const { gen, keyword, schema, parentSchema, it } = cxt; - const macroSchema = def.macro.call(it.self, schema, parentSchema, it); - const schemaRef = useKeyword(gen, keyword, macroSchema); - if (it.opts.validateSchema !== false) - it.self.validateSchema(macroSchema, true); - const valid = gen.name("valid"); - cxt.subschema({ - schema: macroSchema, - schemaPath: codegen_1.nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, valid); - cxt.pass(valid, () => cxt.error(true)); -} -exports.macroKeywordCode = macroKeywordCode; -function funcKeywordCode(cxt, def) { - var _a; - const { gen, keyword, schema, parentSchema, $data, it } = cxt; - checkAsyncKeyword(it, def); - const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate; - const validateRef = useKeyword(gen, keyword, validate); - const valid = gen.let("valid"); - cxt.block$data(valid, validateKeyword); - cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid); - function validateKeyword() { - if (def.errors === false) { - assignValid(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => cxt.error()); - } - else { - const ruleErrs = def.async ? validateAsync() : validateSync(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => addErrs(cxt, ruleErrs)); - } - } - function validateAsync() { - const ruleErrs = gen.let("ruleErrs", null); - gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e))); - return ruleErrs; - } - function validateSync() { - const validateErrs = (0, codegen_1._) `${validateRef}.errors`; - gen.assign(validateErrs, null); - assignValid(codegen_1.nil); - return validateErrs; - } - function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) { - const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self; - const passSchema = !(("compile" in def && !$data) || def.schema === false); - gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying); - } - function reportErrs(errors) { - var _a; - gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors); - } -} -exports.funcKeywordCode = funcKeywordCode; -function modifyData(cxt) { - const { gen, data, it } = cxt; - gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`)); -} -function addErrs(cxt, errs) { - const { gen } = cxt; - gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => { - gen - .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`) - .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - (0, errors_1.extendErrors)(cxt); - }, () => cxt.error()); -} -function checkAsyncKeyword({ schemaEnv }, def) { - if (def.async && !schemaEnv.$async) - throw new Error("async keyword in sync schema"); -} -function useKeyword(gen, keyword, result) { - if (result === undefined) - throw new Error(`keyword "${keyword}" failed to compile`); - return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) }); -} -function validSchemaType(schema, schemaType, allowUndefined = false) { - // TODO add tests - return (!schemaType.length || - schemaType.some((st) => st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined"))); -} -exports.validSchemaType = validSchemaType; -function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error"); - } - const deps = def.dependencies; - if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`); - } - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]); - if (!valid) { - const msg = `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors); - if (opts.validateSchema === "log") - self.logger.error(msg); - else - throw new Error(msg); - } - } -} -exports.validateKeywordUsage = validateKeywordUsage; -//# sourceMappingURL=keyword.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map deleted file mode 100644 index 10d716d7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/keyword.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyword.js","sourceRoot":"","sources":["../../../lib/compile/validate/keyword.ts"],"names":[],"mappings":";;;AAUA,wCAAsE;AACtE,oCAAwB;AAExB,kDAAwD;AACxD,sCAAsC;AAItC,SAAgB,gBAAgB,CAAC,GAAe,EAAE,GAA2B;IAC3E,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACpD,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;IACrE,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,CAAA;IACvD,IAAI,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,KAAK;QAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IAE/E,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,GAAG,CAAC,SAAS,CACX;QACE,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,aAAG;QACf,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa,IAAI,OAAO,EAAE;QAC/C,YAAY,EAAE,SAAS;QACvB,aAAa,EAAE,IAAI;KACpB,EACD,KAAK,CACN,CAAA;IACD,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;AACxC,CAAC;AAlBD,4CAkBC;AAED,SAAgB,eAAe,CAAC,GAAe,EAAE,GAA0B;;IACzE,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,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AAO,KAAK,OAAO,EAAE;QACzF,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;KAC5C;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,CAAA;IAC7B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE;QAC3E,MAAM,IAAI,KAAK,CAAC,2CAA2C,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;KACzF;IAED,IAAI,GAAG,CAAC,cAAc,EAAE;QACtB,MAAM,KAAK,GAAG,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;QACjD,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,GAAG,GACP,YAAY,OAAO,+BAA+B,aAAa,KAAK;gBACpE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;YAC5C,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK;gBAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;;gBACpD,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;SAC1B;KACF;AACH,CAAC;AAzBD,oDAyBC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts deleted file mode 100644 index 8544271a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AnySchema } from "../../types"; -import type { SchemaObjCxt } from ".."; -import { Code, Name } from "../codegen"; -import { Type } from "../util"; -import type { JSONType } from "../rules"; -export interface SubschemaContext { - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef?: Code; - errorPath?: Code; - dataLevel?: number; - dataTypes?: JSONType[]; - data?: Name; - parentData?: Name; - parentDataProperty?: Code | number; - dataNames?: Name[]; - dataPathArr?: (Code | number)[]; - propertyName?: Name; - jtdDiscriminator?: string; - jtdMetadata?: boolean; - compositeRule?: true; - createErrors?: boolean; - allErrors?: boolean; -} -export declare type SubschemaArgs = Partial<{ - keyword: string; - schemaProp: string | number; - schema: AnySchema; - schemaPath: Code; - errSchemaPath: string; - topSchemaRef: Code; - data: Name | Code; - dataProp: Code | string | number; - dataTypes: JSONType[]; - definedProperties: Set; - propertyName: Name; - dataPropType: Type; - jtdDiscriminator: string; - jtdMetadata: boolean; - compositeRule: true; - createErrors: boolean; - allErrors: boolean; -}>; -export declare function getSubschema(it: SchemaObjCxt, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }: SubschemaArgs): SubschemaContext; -export declare function extendSubschemaData(subschema: SubschemaContext, it: SchemaObjCxt, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }: SubschemaArgs): void; -export declare function extendSubschemaMode(subschema: SubschemaContext, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }: SubschemaArgs): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js deleted file mode 100644 index 9de28286..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0; -const codegen_1 = require("../codegen"); -const util_1 = require("../util"); -function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed'); - } - if (keyword !== undefined) { - const sch = it.schema[keyword]; - return schemaProp === undefined - ? { - schema: sch, - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`, - }; - } - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - }; - } - throw new Error('either "keyword" or "schema" must be passed'); -} -exports.getSubschema = getSubschema; -function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed'); - } - const { gen } = it; - if (dataProp !== undefined) { - const { errorPath, dataPathArr, opts } = it; - const nextData = gen.let("data", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true); - dataContextProps(nextData); - subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`; - subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`; - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]; - } - if (data !== undefined) { - const nextData = data instanceof codegen_1.Name ? data : gen.let("data", data, true); // replaceable if used once? - dataContextProps(nextData); - if (propertyName !== undefined) - subschema.propertyName = propertyName; - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - if (dataTypes) - subschema.dataTypes = dataTypes; - function dataContextProps(_nextData) { - subschema.data = _nextData; - subschema.dataLevel = it.dataLevel + 1; - subschema.dataTypes = []; - it.definedProperties = new Set(); - subschema.parentData = it.data; - subschema.dataNames = [...it.dataNames, _nextData]; - } -} -exports.extendSubschemaData = extendSubschemaData; -function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) { - if (compositeRule !== undefined) - subschema.compositeRule = compositeRule; - if (createErrors !== undefined) - subschema.createErrors = createErrors; - if (allErrors !== undefined) - subschema.allErrors = allErrors; - subschema.jtdDiscriminator = jtdDiscriminator; // not inherited - subschema.jtdMetadata = jtdMetadata; // not inherited -} -exports.extendSubschemaMode = extendSubschemaMode; -//# sourceMappingURL=subschema.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map deleted file mode 100644 index a1b84d37..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/compile/validate/subschema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subschema.js","sourceRoot":"","sources":["../../../lib/compile/validate/subschema.ts"],"names":[],"mappings":";;;AAEA,wCAA0D;AAC1D,kCAA0D;AA6C1D,SAAgB,YAAY,CAC1B,EAAgB,EAChB,EAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAgB;IAErF,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;KACxE;IAED,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAC9B,OAAO,UAAU,KAAK,SAAS;YAC7B,CAAC,CAAC;gBACE,MAAM,EAAE,GAAG;gBACX,UAAU,EAAE,IAAA,WAAC,EAAA,GAAG,EAAE,CAAC,UAAU,GAAG,IAAA,qBAAW,EAAC,OAAO,CAAC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CD,kDAqCC;AAED,SAAgB,mBAAmB,CACjC,SAA2B,EAC3B,EAAC,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAgB;IAEtF,IAAI,aAAa,KAAK,SAAS;QAAE,SAAS,CAAC,aAAa,GAAG,aAAa,CAAA;IACxE,IAAI,YAAY,KAAK,SAAS;QAAE,SAAS,CAAC,YAAY,GAAG,YAAY,CAAA;IACrE,IAAI,SAAS,KAAK,SAAS;QAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5D,SAAS,CAAC,gBAAgB,GAAG,gBAAgB,CAAA,CAAC,gBAAgB;IAC9D,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA,CAAC,gBAAgB;AACtD,CAAC;AATD,kDASC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.d.ts deleted file mode 100644 index ac397992..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, AnyValidateFunction, ErrorObject, ErrorNoParams, } from "./types"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv; - [prop: string]: any; -} -export { KeywordCxt } from "./compile/validate"; -export { DefinedError } from "./vocabularies/errors"; -export { JSONType } from "./compile/rules"; -export { JSONSchemaType } from "./types/json-schema"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -import type { Schema, AnySchema, AnySchemaObject, SchemaObject, AsyncSchema, Vocabulary, KeywordDefinition, AddedKeywordDefinition, AnyValidateFunction, ValidateFunction, AsyncValidateFunction, ErrorObject, Format, AddedFormat, RegExpEngine, UriResolver } from "./types"; -import type { JSONSchemaType } from "./types/json-schema"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import ValidationError from "./runtime/validation_error"; -import MissingRefError from "./compile/ref_error"; -import { ValidationRules } from "./compile/rules"; -import { SchemaEnv } from "./compile"; -import { Code, ValueScope } from "./compile/codegen"; -export declare type Options = CurrentOptions & DeprecatedOptions; -export interface CurrentOptions { - strict?: boolean | "log"; - strictSchema?: boolean | "log"; - strictNumbers?: boolean | "log"; - strictTypes?: boolean | "log"; - strictTuples?: boolean | "log"; - strictRequired?: boolean | "log"; - allowMatchingProperties?: boolean; - allowUnionTypes?: boolean; - validateFormats?: boolean; - $data?: boolean; - allErrors?: boolean; - verbose?: boolean; - discriminator?: boolean; - unicodeRegExp?: boolean; - timestamp?: "string" | "date"; - parseDate?: boolean; - allowDate?: boolean; - $comment?: true | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown); - formats?: { - [Name in string]?: Format; - }; - keywords?: Vocabulary; - schemas?: AnySchema[] | { - [Key in string]?: AnySchema; - }; - logger?: Logger | false; - loadSchema?: (uri: string) => Promise; - removeAdditional?: boolean | "all" | "failing"; - useDefaults?: boolean | "empty"; - coerceTypes?: boolean | "array"; - next?: boolean; - unevaluated?: boolean; - dynamicRef?: boolean; - schemaId?: "id" | "$id"; - jtd?: boolean; - meta?: SchemaObject | boolean; - defaultMeta?: string | AnySchemaObject; - validateSchema?: boolean | "log"; - addUsedSchema?: boolean; - inlineRefs?: boolean | number; - passContext?: boolean; - loopRequired?: number; - loopEnum?: number; - ownProperties?: boolean; - multipleOfPrecision?: number; - int32range?: boolean; - messages?: boolean; - code?: CodeOptions; - uriResolver?: UriResolver; -} -export interface CodeOptions { - es5?: boolean; - esm?: boolean; - lines?: boolean; - optimize?: boolean | number; - formats?: Code; - source?: boolean; - process?: (code: string, schema?: SchemaEnv) => string; - regExp?: RegExpEngine; -} -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine; - optimize: number; -} -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean; - /** @deprecated */ - jsPropertySyntax?: boolean; - /** @deprecated */ - unicode?: boolean; -} -declare type RequiredInstanceOptions = { - [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "schemaId" | "addUsedSchema" | "validateSchema" | "validateFormats" | "int32range" | "unicodeRegExp" | "uriResolver"]: NonNullable; -} & { - code: InstanceCodeOptions; -}; -export declare type InstanceOptions = Options & RequiredInstanceOptions; -export interface Logger { - log(...args: unknown[]): unknown; - warn(...args: unknown[]): unknown; - error(...args: unknown[]): unknown; -} -export default class Ajv { - opts: InstanceOptions; - errors?: ErrorObject[] | null; - logger: Logger; - readonly scope: ValueScope; - readonly schemas: { - [Key in string]?: SchemaEnv; - }; - readonly refs: { - [Ref in string]?: SchemaEnv | string; - }; - readonly formats: { - [Name in string]?: AddedFormat; - }; - readonly RULES: ValidationRules; - readonly _compilations: Set; - private readonly _loading; - private readonly _cache; - private readonly _metaOpts; - static ValidationError: typeof ValidationError; - static MissingRefError: typeof MissingRefError; - constructor(opts?: Options); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - validate(schema: Schema | string, data: unknown): boolean; - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T; - validate(schema: JTDSchemaType, data: unknown): data is T; - validate(schema: T, data: unknown): data is JTDDataType; - validate(schema: AsyncSchema, data: unknown | T): Promise; - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise; - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction; - compile(schema: T, _meta?: boolean): ValidateFunction>; - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction; - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction; - compileAsync(schema: SchemaObject | JSONSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise>; - compileAsync(schema: AsyncSchema, meta?: boolean): Promise>; - compileAsync(schema: AnySchemaObject, meta?: boolean): Promise>; - addSchema(schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema?: boolean | "log"): Ajv; - addMetaSchema(schema: AnySchemaObject, key?: string, // schema key - _validateSchema?: boolean | "log"): Ajv; - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise; - getSchema(keyRef: string): AnyValidateFunction | undefined; - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv; - addVocabulary(definitions: Vocabulary): Ajv; - addKeyword(kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition): Ajv; - getKeyword(keyword: string): AddedKeywordDefinition | boolean; - removeKeyword(keyword: string): Ajv; - addFormat(name: string, format: Format): Ajv; - errorsText(errors?: ErrorObject[] | null | undefined, // optional array of validation errors - { separator, dataVar }?: ErrorsTextOptions): string; - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject; - private _removeAllSchemas; - _addSchema(schema: AnySchema, meta?: boolean, baseId?: string, validateSchema?: boolean | "log", addSchema?: boolean): SchemaEnv; - private _checkUnique; - private _compileSchemaEnv; - private _compileMetaSchema; -} -export interface ErrorsTextOptions { - separator?: string; - dataVar?: string; -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js deleted file mode 100644 index 84911161..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js +++ /dev/null @@ -1,617 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -const validation_error_1 = require("./runtime/validation_error"); -const ref_error_1 = require("./compile/ref_error"); -const rules_1 = require("./compile/rules"); -const compile_1 = require("./compile"); -const codegen_2 = require("./compile/codegen"); -const resolve_1 = require("./compile/resolve"); -const dataType_1 = require("./compile/validate/dataType"); -const util_1 = require("./compile/util"); -const $dataRefSchema = require("./refs/data.json"); -const uri_1 = require("./runtime/uri"); -const defaultRegExp = (str, flags) => new RegExp(str, flags); -defaultRegExp.code = "new RegExp"; -const META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"]; -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]); -const removedOptions = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -}; -const deprecatedOptions = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -}; -const MAX_EXPRESSION = 200; -// eslint-disable-next-line complexity -function requiredOptions(o) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; - const s = o.strict; - const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize; - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0; - const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp; - const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default; - return { - strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true, - strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true, - strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log", - strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log", - strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false, - code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp }, - loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION, - loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION, - meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true, - messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true, - inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true, - schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : "$id", - addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true, - validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true, - validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true, - unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true, - int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true, - uriResolver: uriResolver, - }; -} -class Ajv { - constructor(opts = {}) { - this.schemas = {}; - this.refs = {}; - this.formats = {}; - this._compilations = new Set(); - this._loading = {}; - this._cache = new Map(); - opts = this.opts = { ...opts, ...requiredOptions(opts) }; - const { es5, lines } = this.opts.code; - this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines }); - this.logger = getLogger(opts.logger); - const formatOpt = opts.validateFormats; - opts.validateFormats = false; - this.RULES = (0, rules_1.getRules)(); - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED"); - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn"); - this._metaOpts = getMetaSchemaOptions.call(this); - if (opts.formats) - addInitialFormats.call(this); - this._addVocabularies(); - this._addDefaultMetaSchema(); - if (opts.keywords) - addInitialKeywords.call(this, opts.keywords); - if (typeof opts.meta == "object") - this.addMetaSchema(opts.meta); - addInitialSchemas.call(this); - opts.validateFormats = formatOpt; - } - _addVocabularies() { - this.addKeyword("$async"); - } - _addDefaultMetaSchema() { - const { $data, meta, schemaId } = this.opts; - let _dataRefSchema = $dataRefSchema; - if (schemaId === "id") { - _dataRefSchema = { ...$dataRefSchema }; - _dataRefSchema.id = _dataRefSchema.$id; - delete _dataRefSchema.$id; - } - if (meta && $data) - this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false); - } - defaultMeta() { - const { meta, schemaId } = this.opts; - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined); - } - validate(schemaKeyRef, // key, ref or schema object - data // to be validated - ) { - let v; - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef); - if (!v) - throw new Error(`no schema with key or ref "${schemaKeyRef}"`); - } - else { - v = this.compile(schemaKeyRef); - } - const valid = v(data); - if (!("$async" in v)) - this.errors = v.errors; - return valid; - } - compile(schema, _meta) { - const sch = this._addSchema(schema, _meta); - return (sch.validate || this._compileSchemaEnv(sch)); - } - compileAsync(schema, meta) { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function"); - } - const { loadSchema } = this.opts; - return runCompileAsync.call(this, schema, meta); - async function runCompileAsync(_schema, _meta) { - await loadMetaSchema.call(this, _schema.$schema); - const sch = this._addSchema(_schema, _meta); - return sch.validate || _compileAsync.call(this, sch); - } - async function loadMetaSchema($ref) { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, { $ref }, true); - } - } - async function _compileAsync(sch) { - try { - return this._compileSchemaEnv(sch); - } - catch (e) { - if (!(e instanceof ref_error_1.default)) - throw e; - checkLoaded.call(this, e); - await loadMissingSchema.call(this, e.missingSchema); - return _compileAsync.call(this, sch); - } - } - function checkLoaded({ missingSchema: ref, missingRef }) { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`); - } - } - async function loadMissingSchema(ref) { - const _schema = await _loadSchema.call(this, ref); - if (!this.refs[ref]) - await loadMetaSchema.call(this, _schema.$schema); - if (!this.refs[ref]) - this.addSchema(_schema, ref, meta); - } - async function _loadSchema(ref) { - const p = this._loading[ref]; - if (p) - return p; - try { - return await (this._loading[ref] = loadSchema(ref)); - } - finally { - delete this._loading[ref]; - } - } - } - // Adds schema to the instance - addSchema(schema, // If array is passed, `key` will be ignored - key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ) { - if (Array.isArray(schema)) { - for (const sch of schema) - this.addSchema(sch, undefined, _meta, _validateSchema); - return this; - } - let id; - if (typeof schema === "object") { - const { schemaId } = this.opts; - id = schema[schemaId]; - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`); - } - } - key = (0, resolve_1.normalizeId)(key || id); - this._checkUnique(key); - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true); - return this; - } - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema(schema, key, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ) { - this.addSchema(schema, key, true, _validateSchema); - return this; - } - // Validate schema against its meta-schema - validateSchema(schema, throwOrLogError) { - if (typeof schema == "boolean") - return true; - let $schema; - $schema = schema.$schema; - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string"); - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta(); - if (!$schema) { - this.logger.warn("meta-schema not available"); - this.errors = null; - return true; - } - const valid = this.validate($schema, schema); - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText(); - if (this.opts.validateSchema === "log") - this.logger.error(message); - else - throw new Error(message); - } - return valid; - } - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef) { - let sch; - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") - keyRef = sch; - if (sch === undefined) { - const { schemaId } = this.opts; - const root = new compile_1.SchemaEnv({ schema: {}, schemaId }); - sch = compile_1.resolveSchema.call(this, root, keyRef); - if (!sch) - return; - this.refs[keyRef] = sch; - } - return (sch.validate || this._compileSchemaEnv(sch)); - } - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef) { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef); - this._removeAllSchemas(this.refs, schemaKeyRef); - return this; - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas); - this._removeAllSchemas(this.refs); - this._cache.clear(); - return this; - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef); - if (typeof sch == "object") - this._cache.delete(sch.schema); - delete this.schemas[schemaKeyRef]; - delete this.refs[schemaKeyRef]; - return this; - } - case "object": { - const cacheKey = schemaKeyRef; - this._cache.delete(cacheKey); - let id = schemaKeyRef[this.opts.schemaId]; - if (id) { - id = (0, resolve_1.normalizeId)(id); - delete this.schemas[id]; - delete this.refs[id]; - } - return this; - } - default: - throw new Error("ajv.removeSchema: invalid parameter"); - } - } - // add "vocabulary" - a collection of keywords - addVocabulary(definitions) { - for (const def of definitions) - this.addKeyword(def); - return this; - } - addKeyword(kwdOrDef, def // deprecated - ) { - let keyword; - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef; - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword"); - def.keyword = keyword; - } - } - else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef; - keyword = def.keyword; - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array"); - } - } - else { - throw new Error("invalid addKeywords parameters"); - } - checkKeyword.call(this, keyword, def); - if (!def) { - (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd)); - return this; - } - keywordMetaschema.call(this, def); - const definition = { - ...def, - type: (0, dataType_1.getJSONTypes)(def.type), - schemaType: (0, dataType_1.getJSONTypes)(def.schemaType), - }; - (0, util_1.eachItem)(keyword, definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))); - return this; - } - getKeyword(keyword) { - const rule = this.RULES.all[keyword]; - return typeof rule == "object" ? rule.definition : !!rule; - } - // Remove keyword - removeKeyword(keyword) { - // TODO return type should be Ajv - const { RULES } = this; - delete RULES.keywords[keyword]; - delete RULES.all[keyword]; - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword); - if (i >= 0) - group.rules.splice(i, 1); - } - return this; - } - // Add format - addFormat(name, format) { - if (typeof format == "string") - format = new RegExp(format); - this.formats[name] = format; - return this; - } - errorsText(errors = this.errors, // optional array of validation errors - { separator = ", ", dataVar = "data" } = {} // optional options with properties `separator` and `dataVar` - ) { - if (!errors || errors.length === 0) - return "No errors"; - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg); - } - $dataMetaSchema(metaSchema, keywordsJsonPointers) { - const rules = this.RULES.all; - metaSchema = JSON.parse(JSON.stringify(metaSchema)); - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1); // first segment is an empty string - let keywords = metaSchema; - for (const seg of segments) - keywords = keywords[seg]; - for (const key in rules) { - const rule = rules[key]; - if (typeof rule != "object") - continue; - const { $data } = rule.definition; - const schema = keywords[key]; - if ($data && schema) - keywords[key] = schemaOrData(schema); - } - } - return metaSchema; - } - _removeAllSchemas(schemas, regex) { - for (const keyRef in schemas) { - const sch = schemas[keyRef]; - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef]; - } - else if (sch && !sch.meta) { - this._cache.delete(sch.schema); - delete schemas[keyRef]; - } - } - } - } - _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) { - let id; - const { schemaId } = this.opts; - if (typeof schema == "object") { - id = schema[schemaId]; - } - else { - if (this.opts.jtd) - throw new Error("schema must be object"); - else if (typeof schema != "boolean") - throw new Error("schema must be object or boolean"); - } - let sch = this._cache.get(schema); - if (sch !== undefined) - return sch; - baseId = (0, resolve_1.normalizeId)(id || baseId); - const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId); - sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs }); - this._cache.set(sch.schema, sch); - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) - this._checkUnique(baseId); - this.refs[baseId] = sch; - } - if (validateSchema) - this.validateSchema(schema, true); - return sch; - } - _checkUnique(id) { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`); - } - } - _compileSchemaEnv(sch) { - if (sch.meta) - this._compileMetaSchema(sch); - else - compile_1.compileSchema.call(this, sch); - /* istanbul ignore if */ - if (!sch.validate) - throw new Error("ajv implementation error"); - return sch.validate; - } - _compileMetaSchema(sch) { - const currentOpts = this.opts; - this.opts = this._metaOpts; - try { - compile_1.compileSchema.call(this, sch); - } - finally { - this.opts = currentOpts; - } - } -} -exports.default = Ajv; -Ajv.ValidationError = validation_error_1.default; -Ajv.MissingRefError = ref_error_1.default; -function checkOptions(checkOpts, options, msg, log = "error") { - for (const key in checkOpts) { - const opt = key; - if (opt in options) - this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`); - } -} -function getSchEnv(keyRef) { - keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef]; -} -function addInitialSchemas() { - const optsSchemas = this.opts.schemas; - if (!optsSchemas) - return; - if (Array.isArray(optsSchemas)) - this.addSchema(optsSchemas); - else - for (const key in optsSchemas) - this.addSchema(optsSchemas[key], key); -} -function addInitialFormats() { - for (const name in this.opts.formats) { - const format = this.opts.formats[name]; - if (format) - this.addFormat(name, format); - } -} -function addInitialKeywords(defs) { - if (Array.isArray(defs)) { - this.addVocabulary(defs); - return; - } - this.logger.warn("keywords option as map is deprecated, pass array"); - for (const keyword in defs) { - const def = defs[keyword]; - if (!def.keyword) - def.keyword = keyword; - this.addKeyword(def); - } -} -function getMetaSchemaOptions() { - const metaOpts = { ...this.opts }; - for (const opt of META_IGNORE_OPTIONS) - delete metaOpts[opt]; - return metaOpts; -} -const noLogs = { log() { }, warn() { }, error() { } }; -function getLogger(logger) { - if (logger === false) - return noLogs; - if (logger === undefined) - return console; - if (logger.log && logger.warn && logger.error) - return logger; - throw new Error("logger must implement log, warn and error methods"); -} -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i; -function checkKeyword(keyword, def) { - const { RULES } = this; - (0, util_1.eachItem)(keyword, (kwd) => { - if (RULES.keywords[kwd]) - throw new Error(`Keyword ${kwd} is already defined`); - if (!KEYWORD_NAME.test(kwd)) - throw new Error(`Keyword ${kwd} has invalid name`); - }); - if (!def) - return; - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function'); - } -} -function addRule(keyword, definition, dataType) { - var _a; - const post = definition === null || definition === void 0 ? void 0 : definition.post; - if (dataType && post) - throw new Error('keyword with "post" flag cannot have "type"'); - const { RULES } = this; - let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType); - if (!ruleGroup) { - ruleGroup = { type: dataType, rules: [] }; - RULES.rules.push(ruleGroup); - } - RULES.keywords[keyword] = true; - if (!definition) - return; - const rule = { - keyword, - definition: { - ...definition, - type: (0, dataType_1.getJSONTypes)(definition.type), - schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType), - }, - }; - if (definition.before) - addBeforeRule.call(this, ruleGroup, rule, definition.before); - else - ruleGroup.rules.push(rule); - RULES.all[keyword] = rule; - (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd)); -} -function addBeforeRule(ruleGroup, rule, before) { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before); - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule); - } - else { - ruleGroup.rules.push(rule); - this.logger.warn(`rule ${before} is not defined`); - } -} -function keywordMetaschema(def) { - let { metaSchema } = def; - if (metaSchema === undefined) - return; - if (def.$data && this.opts.$data) - metaSchema = schemaOrData(metaSchema); - def.validateSchema = this.compile(metaSchema, true); -} -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -}; -function schemaOrData(schema) { - return { anyOf: [schema, $dataRef] }; -} -//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js.map deleted file mode 100644 index c39cd6b5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../lib/core.ts"],"names":[],"mappings":";;;AA4BA,+CAA6C;AAArC,sGAAA,UAAU,OAAA;AAKlB,6CAA6F;AAArF,4FAAA,CAAC,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAQ,kGAAA,OAAO,OAAA;AAsBnD,iEAAwD;AACxD,mDAAiD;AACjD,2CAAoF;AACpF,uCAAiE;AACjE,+CAAkD;AAClD,+CAA4D;AAC5D,0DAAwD;AACxD,yCAAuC;AACvC,mDAAkD;AAElD,uCAA8C;AAE9C,MAAM,aAAa,GAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAC1E,aAAa,CAAC,IAAI,GAAG,YAAY,CAAA;AAEjC,MAAM,mBAAmB,GAAsB,CAAC,kBAAkB,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;AACjG,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IAC9B,UAAU;IACV,WAAW;IACX,OAAO;IACP,SA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C,IAAI,CAAC,EAAE;QACV,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;KACnC;SAAM;QACL,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,MAAM,iBAAiB,CAAC,CAAA;KAClD;AACH,CAAC;AAED,SAAS,iBAAiB,CAAY,GAAsB;IAC1D,IAAI,EAAC,UAAU,EAAC,GAAG,GAAG,CAAA;IACtB,IAAI,UAAU,KAAK,SAAS;QAAE,OAAM;IACpC,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IACvE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,gFAAgF;CACvF,CAAA;AAED,SAAS,YAAY,CAAC,MAAiB;IACrC,OAAO,EAAC,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,CAAA;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.d.ts deleted file mode 100644 index 0caf84b6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { AnySchemaObject, SchemaObject, JTDParser } from "./types"; -import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; -import AjvCore, { CurrentOptions } from "./core"; -declare type JTDOptions = CurrentOptions & { - strict?: never; - allowMatchingProperties?: never; - allowUnionTypes?: never; - validateFormats?: never; - $data?: never; - verbose?: boolean; - $comment?: never; - formats?: never; - loadSchema?: never; - useDefaults?: never; - coerceTypes?: never; - next?: never; - unevaluated?: never; - dynamicRef?: never; - meta?: boolean; - defaultMeta?: never; - inlineRefs?: boolean; - loopRequired?: never; - multipleOfPrecision?: never; -}; -declare class Ajv extends AjvCore { - constructor(opts?: JTDOptions); - _addVocabularies(): void; - _addDefaultMetaSchema(): void; - defaultMeta(): string | AnySchemaObject | undefined; - compileSerializer(schema: SchemaObject): (data: T) => string; - compileSerializer(schema: JTDSchemaType): (data: T) => string; - compileParser(schema: SchemaObject): JTDParser; - compileParser(schema: JTDSchemaType): JTDParser; - private _compileSerializer; - private _compileParser; -} -export default Ajv; -export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, JTDParser, } from "./types"; -export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core"; -export { SchemaCxt, SchemaObjCxt } from "./compile"; -export { KeywordCxt } from "./compile/validate"; -export { JTDErrorObject } from "./vocabularies/jtd"; -export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -export { JTDSchemaType, SomeJTDSchemaType, JTDDataType }; -export { JTDOptions }; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js deleted file mode 100644 index dfb34ddd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0; -const core_1 = require("./core"); -const jtd_1 = require("./vocabularies/jtd"); -const jtd_schema_1 = require("./refs/jtd-schema"); -const serialize_1 = require("./compile/jtd/serialize"); -const parse_1 = require("./compile/jtd/parse"); -const META_SCHEMA_ID = "JTD-meta-schema"; -class Ajv extends core_1.default { - constructor(opts = {}) { - super({ - ...opts, - jtd: true, - }); - } - _addVocabularies() { - super._addVocabularies(); - this.addVocabulary(jtd_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - this.addMetaSchema(jtd_schema_1.default, META_SCHEMA_ID, false); - } - defaultMeta() { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)); - } - compileSerializer(schema) { - const sch = this._addSchema(schema); - return sch.serialize || this._compileSerializer(sch); - } - compileParser(schema) { - const sch = this._addSchema(schema); - return (sch.parse || this._compileParser(sch)); - } - _compileSerializer(sch) { - serialize_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.serialize) - throw new Error("ajv implementation error"); - return sch.serialize; - } - _compileParser(sch) { - parse_1.default.call(this, sch, sch.schema.definitions || {}); - /* istanbul ignore if */ - if (!sch.parse) - throw new Error("ajv implementation error"); - return sch.parse; - } -} -module.exports = exports = Ajv; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = Ajv; -var validate_1 = require("./compile/validate"); -Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } }); -var codegen_1 = require("./compile/codegen"); -Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } }); -Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } }); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } }); -Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } }); -Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } }); -Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } }); -//# sourceMappingURL=jtd.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js.map deleted file mode 100644 index 6f253789..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/jtd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd.js","sourceRoot":"","sources":["../lib/jtd.ts"],"names":[],"mappings":";;;AAEA,iCAA8C;AAC9C,4CAA8C;AAC9C,kDAA6C;AAC7C,uDAAuD;AACvD,+CAA+C;AAG/C,MAAM,cAAc,GAAG,iBAAiB,CAAA;AA4BxC,MAAM,GAAI,SAAQ,cAAO;IACvB,YAAY,OAAmB,EAAE;QAC/B,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,GAAG,EAAE,IAAI;SACV,CAAC,CAAA;IACJ,CAAC;IAED,gBAAgB;QACd,KAAK,CAAC,gBAAgB,EAAE,CAAA;QACxB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;IACnC,CAAC;IAED,qBAAqB;QACnB,KAAK,CAAC,qBAAqB,EAAE,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAM;QAC3B,IAAI,CAAC,aAAa,CAAC,oBAAa,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;IAC1D,CAAC;IAED,WAAW;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IACzF,CAAC;IAMD,iBAAiB,CAAc,MAAoB;QACjD,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QACnC,OAAO,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAA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data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts deleted file mode 100644 index cf008331..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js deleted file mode 100644 index e8649628..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2019($data) { - ; - [ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2019; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map deleted file mode 100644 index 9b8a36d6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2019-09/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,+CAA8C;AAC9C,yCAAwC;AACxC,6CAA4C;AAC5C,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAfD,oCAeC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts deleted file mode 100644 index c232ab05..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type Ajv from "../../core"; -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js deleted file mode 100644 index d9256756..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const metaSchema = require("./schema.json"); -const applicator = require("./meta/applicator.json"); -const unevaluated = require("./meta/unevaluated.json"); -const content = require("./meta/content.json"); -const core = require("./meta/core.json"); -const format = require("./meta/format-annotation.json"); -const metadata = require("./meta/meta-data.json"); -const validation = require("./meta/validation.json"); -const META_SUPPORT_DATA = ["/properties"]; -function addMetaSchema2020($data) { - ; - [ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)); - return this; - function with$data(ajv, sch) { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch; - } -} -exports.default = addMetaSchema2020; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map deleted file mode 100644 index eb90027d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2020-12/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,uDAAsD;AACtD,+CAA8C;AAC9C,yCAAwC;AACxC,wDAAuD;AACvD,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,WAAW;QACX,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAhBD,oCAgBC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-secure.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts deleted file mode 100644 index 932797a3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SchemaObject } from "../types"; -declare const jtdMetaSchema: SchemaObject; -export default jtdMetaSchema; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js deleted file mode 100644 index 1ee940af..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const shared = (root) => { - const sch = { - nullable: { type: "boolean" }, - metadata: { - optionalProperties: { - union: { elements: { ref: "schema" } }, - }, - additionalProperties: true, - }, - }; - if (root) - sch.definitions = { values: { ref: "schema" } }; - return sch; -}; -const emptyForm = (root) => ({ - optionalProperties: shared(root), -}); -const refForm = (root) => ({ - properties: { - ref: { type: "string" }, - }, - optionalProperties: shared(root), -}); -const typeForm = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}); -const enumForm = (root) => ({ - properties: { - enum: { elements: { type: "string" } }, - }, - optionalProperties: shared(root), -}); -const elementsForm = (root) => ({ - properties: { - elements: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const propertiesForm = (root) => ({ - properties: { - properties: { values: { ref: "schema" } }, - }, - optionalProperties: { - optionalProperties: { values: { ref: "schema" } }, - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const optionalPropertiesForm = (root) => ({ - properties: { - optionalProperties: { values: { ref: "schema" } }, - }, - optionalProperties: { - additionalProperties: { type: "boolean" }, - ...shared(root), - }, -}); -const discriminatorForm = (root) => ({ - properties: { - discriminator: { type: "string" }, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}); -const valuesForm = (root) => ({ - properties: { - values: { ref: "schema" }, - }, - optionalProperties: shared(root), -}); -const schema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}); -const jtdMetaSchema = { - definitions: { - schema: schema(false), - }, - ...schema(true), -}; -exports.default = jtdMetaSchema; -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map deleted file mode 100644 index d46755b2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/refs/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/refs/jtd-schema.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAe,CAAC,IAAI,EAAE,EAAE;IAClC,MAAM,GAAG,GAAiB;QACxB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,QAAQ,EAAE;YACR,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAC,QAAQ,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC,EAAC;aACnC;YACD,oBAAoB,EAAE,IAAI;SAC3B;KACF,CAAA;IACD,IAAI,IAAI;QAAE,GAAG,CAAC,WAAW,GAAG,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC,EAAC,CAAA;IACrD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,MAAM,SAAS,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACvC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC;CACjC,CAAC,CAAA;AAEF,MAAM,OAAO,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE;QACV,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KACtB;IACD,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC;CACjC,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACtC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,SAAS;gBACT,WAAW;gBACX,QAAQ;gBACR,SAAS;gBACT,SAAS;gBACT,MAAM;gBACN,OAAO;gBACP,OAAO;gBACP,QAAQ;gBACR,OAAO;gBACP,QAAQ;aACT;SACF;KACF;IACD,kBAAkB,E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AE,QAAQ,EAAC;QAC/B,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,QAAQ,EAAE;oBACR,KAAK,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;iBAC9D;aACF;SACF;KACF;IACD,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC;CACjC,CAAC,CAAA;AAEF,MAAM,UAAU,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC;KACxB;IACD,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC;CACjC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAe,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,SAAS;YACT,OAAO;YACP,QAAQ;YACR,QAAQ;YACR,YAAY;YACZ,cAAc;YACd,sBAAsB;YACtB,iBAAiB;YACjB,UAAU;SACX,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KACtB;CACF,CAAC,CAAA;AAEF,MAAM,aAAa,GAAiB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;KACtB;IACD,GAAG,MAAM,CAAC,IAAI,CAAC;CAChB,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.d.ts deleted file mode 100644 index 56149ea2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as equal from "fast-deep-equal"; -declare type Equal = typeof equal & { - code: string; -}; -declare const _default: Equal; -export default _default; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js deleted file mode 100644 index 774bba05..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://github.com/ajv-validator/ajv/issues/889 -const equal = require("fast-deep-equal"); -equal.code = 'require("ajv/dist/runtime/equal").default'; -exports.default = equal; -//# sourceMappingURL=equal.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js.map deleted file mode 100644 index 0e17901c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/equal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"equal.js","sourceRoot":"","sources":["../../lib/runtime/equal.ts"],"names":[],"mappings":";;AAAA,kDAAkD;AAClD,yCAAwC;AAGtC,KAAe,CAAC,IAAI,GAAG,2CAA2C,CAAA;AAEpE,kBAAe,KAAc,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts deleted file mode 100644 index 85f1d567..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare function parseJson(s: string, pos: number): unknown; -export declare namespace parseJson { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined; -export declare namespace parseJsonNumber { - var message: string | undefined; - var position: number; - var code: string; -} -export declare function parseJsonString(s: string, pos: number): string | undefined; -export declare namespace parseJsonString { - var message: string | undefined; - var position: number; - var code: string; -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js deleted file mode 100644 index 7ebbc1bf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js +++ /dev/null @@ -1,184 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseJsonString = exports.parseJsonNumber = exports.parseJson = void 0; -const rxParseJson = /position\s(\d+)$/; -function parseJson(s, pos) { - let endPos; - parseJson.message = undefined; - let matches; - if (pos) - s = s.slice(pos); - try { - parseJson.position = pos + s.length; - return JSON.parse(s); - } - catch (e) { - matches = rxParseJson.exec(e.message); - if (!matches) { - parseJson.message = "unexpected end"; - return undefined; - } - endPos = +matches[1]; - const c = s[endPos]; - s = s.slice(0, endPos); - parseJson.position = pos + endPos; - try { - return JSON.parse(s); - } - catch (e1) { - parseJson.message = `unexpected token ${c}`; - return undefined; - } - } -} -exports.parseJson = parseJson; -parseJson.message = undefined; -parseJson.position = 0; -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson'; -function parseJsonNumber(s, pos, maxDigits) { - let numStr = ""; - let c; - parseJsonNumber.message = undefined; - if (s[pos] === "-") { - numStr += "-"; - pos++; - } - if (s[pos] === "0") { - numStr += "0"; - pos++; - } - else { - if (!parseDigits(maxDigits)) { - errorMessage(); - return undefined; - } - } - if (maxDigits) { - parseJsonNumber.position = pos; - return +numStr; - } - if (s[pos] === ".") { - numStr += "."; - pos++; - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e"; - pos++; - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c; - pos++; - } - if (!parseDigits()) { - errorMessage(); - return undefined; - } - } - parseJsonNumber.position = pos; - return +numStr; - function parseDigits(maxLen) { - let digit = false; - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true; - numStr += c; - pos++; - } - return digit; - } - function errorMessage() { - parseJsonNumber.position = pos; - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end"; - } -} -exports.parseJsonNumber = parseJsonNumber; -parseJsonNumber.message = undefined; -parseJsonNumber.position = 0; -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber'; -const escapedChars = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -}; -const CODE_A = "a".charCodeAt(0); -const CODE_0 = "0".charCodeAt(0); -function parseJsonString(s, pos) { - let str = ""; - let c; - parseJsonString.message = undefined; - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++]; - if (c === '"') - break; - if (c === "\\") { - c = s[pos]; - if (c in escapedChars) { - str += escapedChars[c]; - pos++; - } - else if (c === "u") { - pos++; - let count = 4; - let code = 0; - while (count--) { - code <<= 4; - c = s[pos]; - if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - c = c.toLowerCase(); - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10; - } - else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - pos++; - } - str += String.fromCharCode(code); - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } - else if (c === undefined) { - errorMessage("unexpected end"); - return undefined; - } - else { - if (c.charCodeAt(0) >= 0x20) { - str += c; - } - else { - errorMessage(`unexpected token ${c}`); - return undefined; - } - } - } - parseJsonString.position = pos; - return str; - function errorMessage(msg) { - parseJsonString.position = pos; - parseJsonString.message = msg; - } -} -exports.parseJsonString = parseJsonString; -parseJsonString.message = undefined; -parseJsonString.position = 0; -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString'; -//# sourceMappingURL=parseJson.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js.map deleted file mode 100644 index 7f239fb7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/parseJson.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parseJson.js","sourceRoot":"","sources":["../../lib/runtime/parseJson.ts"],"names":[],"mappings":";;;AAAA,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAEtC,SAAgB,SAAS,CAAC,CAAS,EAAE,GAAW;IAC9C,IAAI,MAA0B,CAAA;IAC9B,SAAS,CAAC,OAAO,GAAG,SAAS,CAAA;IAC7B,IAAI,OAA+B,CAAA;IACnC,IAAI,GAAG;QAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACzB,IAAI;QACF,SAAS,CAAC,QAAQ,GAAG,GAAG,GAAG,CAAC,CAAC,MAAM,CAAA;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,GAAG,WAAW,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;QAChD,IAAI,CAAC,OAAO,EAAE;YACZ,SAAS,CAAC,OAAO,GAAG,gBAAgB,CAAA;YACpC,OAAO,SAAS,CAAA;SACjB;QACD,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;QACpB,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAA;QACnB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;QACtB,SAAS,CAAC,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAA;QACjC,IAAI;YACF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;SACrB;QAAC,OAAO,EAAE,EAAE;YACX,SAAS,CAAC,OAAO,GAAG,oBAAoB,CAAC,EAAE,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G,IAAI,CAAC,IAAI,GAAG,EAAE;wBAC/B,IAAI,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,MAAM,CAAA;qBACjC;yBAAM;wBACL,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;wBACrC,OAAO,SAAS,CAAA;qBACjB;oBACD,GAAG,EAAE,CAAA;iBACN;gBACD,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;aACjC;iBAAM;gBACL,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;gBACrC,OAAO,SAAS,CAAA;aACjB;YACD,uEAAuE;SACxE;aAAM,IAAI,CAAC,KAAK,SAAS,EAAE;YAC1B,YAAY,CAAC,gBAAgB,CAAC,CAAA;YAC9B,OAAO,SAAS,CAAA;SACjB;aAAM;YACL,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;gBAC3B,GAAG,IAAI,CAAC,CAAA;aACT;iBAAM;gBACL,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;gBACrC,OAAO,SAAS,CAAA;aACjB;SACF;KACF;IACD,eAAe,CAAC,QAAQ,GAAG,GAAG,CAAA;IAC9B,OAAO,GAAG,CAAA;IAEV,SAAS,YAAY,CAAC,GAAW;QAC/B,eAAe,CAAC,QAAQ,GAAG,GAAG,CAAA;QAC9B,eAAe,CAAC,OAAO,GAAG,GAAG,CAAA;IAC/B,CAAC;AACH,CAAC;AA5DD,0CA4DC;AAED,eAAe,CAAC,OAAO,GAAG,SAA+B,CAAA;AACzD,eAAe,CAAC,QAAQ,GAAG,CAAW,CAAA;AACtC,eAAe,CAAC,IAAI,GAAG,uDAAuD,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.d.ts deleted file mode 100644 index 0579dd3c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function quote(s: string): string; -declare namespace quote { - var code: string; -} -export default quote; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js deleted file mode 100644 index ebf78f70..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const rxEscapable = -// eslint-disable-next-line no-control-regex, no-misleading-character-class -/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -const escaped = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -}; -function quote(s) { - rxEscapable.lastIndex = 0; - return ('"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a]; - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4); - }) - : s) + - '"'); -} -exports.default = quote; -quote.code = 'require("ajv/dist/runtime/quote").default'; -//# sourceMappingURL=quote.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js.map deleted file mode 100644 index 4d226252..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/quote.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../lib/runtime/quote.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW;AACf,2EAA2E;AAC3E,iIAAiI,CAAA;AAEnI,MAAM,OAAO,GAA6B;IACxC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACb,CAAA;AAED,SAAwB,KAAK,CAAC,CAAS;IACrC,WAAW,CAAC,SAAS,GAAG,CAAC,CAAA;IACzB,OAAO,CACL,GAAG;QACH,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBAC3B,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;gBACpB,OAAO,OAAO,CAAC,KAAK,QAAQ;oBAC1B,CAAC,CAAC,CAAC;oBACH,CAAC,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;YAC/D,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC,CAAC;QACN,GAAG,CACJ,CAAA;AACH,CAAC;AAdD,wBAcC;AAED,KAAK,CAAC,IAAI,GAAG,2CAA2C,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.d.ts deleted file mode 100644 index b49306ff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2"; -declare type Re2 = typeof re2 & { - code: string; -}; -declare const _default: Re2; -export default _default; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js deleted file mode 100644 index 4b1ee253..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const re2 = require("re2"); -re2.code = 'require("ajv/dist/runtime/re2").default'; -exports.default = re2; -//# sourceMappingURL=re2.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js.map deleted file mode 100644 index bb938a2c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/re2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"re2.js","sourceRoot":"","sources":["../../lib/runtime/re2.ts"],"names":[],"mappings":";;AAAA,2BAA0B;AAGxB,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts deleted file mode 100644 index cd483268..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function validTimestamp(str: string, allowDate: boolean): boolean; -declare namespace validTimestamp { - var code: string; -} -export default validTimestamp; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js deleted file mode 100644 index 5e0f0656..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const DT_SEPARATOR = /t|\s/i; -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i; -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -function validTimestamp(str, allowDate) { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt = str.split(DT_SEPARATOR); - return ((dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0]))); -} -exports.default = validTimestamp; -function validDate(str) { - const matches = DATE.exec(str); - if (!matches) - return false; - const y = +matches[1]; - const m = +matches[2]; - const d = +matches[3]; - return (m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0)))); -} -function validTime(str) { - const matches = TIME.exec(str); - if (!matches) - return false; - const hr = +matches[1]; - const min = +matches[2]; - const sec = +matches[3]; - const tzH = +(matches[4] || 0); - const tzM = +(matches[5] || 0); - return ((hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60)); -} -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default'; -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js.map deleted file mode 100644 index 6b0eee03..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../lib/runtime/timestamp.ts"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,OAAO,CAAA;AAC5B,MAAM,IAAI,GAAG,4BAA4B,CAAA;AACzC,MAAM,IAAI,GAAG,gEAAgE,CAAA;AAC7E,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAA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1E,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,OAAO,GAAoB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/C,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAA;IAC1B,MAAM,EAAE,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC9B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,MAAM,GAAG,GAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,OAAO,CACL,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;QACpC,cAAc;QACd,CAAC,EAAE,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,GAAG,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CACpD,CAAA;AACH,CAAC;AAED,cAAc,CAAC,IAAI,GAAG,+CAA+C,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts deleted file mode 100644 index ecbee69c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function ucs2length(str: string): number; -declare namespace ucs2length { - var code: string; -} -export default ucs2length; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js deleted file mode 100644 index 92ea0c08..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -function ucs2length(str) { - const len = str.length; - let length = 0; - let pos = 0; - let value; - while (pos < len) { - length++; - value = str.charCodeAt(pos++); - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos); - if ((value & 0xfc00) === 0xdc00) - pos++; // low surrogate - } - } - return length; -} -exports.default = ucs2length; -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default'; -//# sourceMappingURL=ucs2length.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map deleted file mode 100644 index 7c7f7886..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/ucs2length.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ucs2length.js","sourceRoot":"","sources":["../../lib/runtime/ucs2length.ts"],"names":[],"mappings":";;AAAA,qDAAqD;AACrD,iEAAiE;AACjE,SAAwB,UAAU,CAAC,GAAW;IAC5C,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAA;IACtB,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,IAAI,GAAG,GAAG,CAAC,CAAA;IACX,IAAI,KAAa,CAAA;IACjB,OAAO,GAAG,GAAG,GAAG,EAAE;QAChB,MAAM,EAAE,CAAA;QACR,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;QAC7B,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,IAAI,GAAG,GAAG,GAAG,EAAE;YACnD,gDAAgD;YAChD,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM;gBAAE,GAAG,EAAE,CAAA,CAAC,gBAAgB;SACxD;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAfD,6BAeC;AAED,UAAU,CAAC,IAAI,GAAG,gDAAgD,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.d.ts deleted file mode 100644 index 83b169f6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js"; -declare type URI = typeof uri & { - code: string; -}; -declare const _default: URI; -export default _default; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js deleted file mode 100644 index fbd38151..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const uri = require("uri-js"); -uri.code = 'require("ajv/dist/runtime/uri").default'; -exports.default = uri; -//# sourceMappingURL=uri.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js.map deleted file mode 100644 index 701bed95..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/uri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../lib/runtime/uri.ts"],"names":[],"mappings":";;AAAA,8BAA6B;AAG3B,GAAW,CAAC,IAAI,GAAG,yCAAyC,CAAA;AAE9D,kBAAe,GAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts deleted file mode 100644 index b0ee9698..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ErrorObject } from "../types"; -export default class ValidationError extends Error { - readonly errors: Partial[]; - readonly ajv: true; - readonly validation: true; - constructor(errors: Partial[]); -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js deleted file mode 100644 index 353502c0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class ValidationError extends Error { - constructor(errors) { - super("validation failed"); - this.errors = errors; - this.ajv = this.validation = true; - } -} -exports.default = ValidationError; -//# sourceMappingURL=validation_error.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js.map deleted file mode 100644 index 70206fbc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/runtime/validation_error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validation_error.js","sourceRoot":"","sources":["../../lib/runtime/validation_error.ts"],"names":[],"mappings":";;AAEA,MAAqB,eAAgB,SAAQ,KAAK;IAKhD,YAAY,MAA8B;QACxC,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACnC,CAAC;CACF;AAVD,kCAUC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.d.ts deleted file mode 100644 index a9141c3d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type AjvCore from "../core"; -import type { AnyValidateFunction } from "../types"; -declare function standaloneCode(ajv: AjvCore, refsOrFunc?: { - [K in string]?: string; -} | AnyValidateFunction): string; -export default standaloneCode; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js deleted file mode 100644 index b44bb5db..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_1 = require("../compile/codegen/scope"); -const code_1 = require("../compile/codegen/code"); -function standaloneCode(ajv, refsOrFunc) { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option"); - } - const { _n } = ajv.scope.opts; - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => sch.meta ? undefined : ajv.compile(sch.schema)); - function getValidate(id) { - const v = ajv.getSchema(id); - if (!v) - throw new Error(`moduleCode: no schema with id ${id}`); - return v; - } - function funcExportCode(source) { - const usedValues = {}; - const n = source === null || source === void 0 ? void 0 : source.validateName; - const vCode = validateCode(usedValues, source); - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}`; - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}`; - } - function multiExportsCode(schemas, getValidateFunc) { - var _a; - const usedValues = {}; - let code = (0, code_1._) `"use strict";`; - for (const name in schemas) { - const v = getValidateFunc(schemas[name]); - if (v) { - const vCode = validateCode(usedValues, v.source); - const exportSyntax = ajv.opts.code.esm - ? (0, code_1._) `export const ${(0, code_1.getEsmExportName)(name)}` - : (0, code_1._) `exports${(0, code_1.getProperty)(name)}`; - code = (0, code_1._) `${code}${_n}${exportSyntax} = ${(_a = v.source) === null || _a === void 0 ? void 0 : _a.validateName};${_n}${vCode}`; - } - } - return `${code}`; - } - function validateCode(usedValues, s) { - if (!s) - throw new Error('moduleCode: function does not have "source" property'); - if (usedState(s.validateName) === scope_1.UsedValueState.Completed) - return code_1.nil; - setUsedState(s.validateName, scope_1.UsedValueState.Started); - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode); - const code = new code_1._Code(`${scopeCode}${_n}${s.validateCode}`); - return s.evaluated ? (0, code_1._) `${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code; - function refValidateCode(n) { - var _a; - const vRef = (_a = n.value) === null || _a === void 0 ? void 0 : _a.ref; - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef; - return validateCode(usedValues, v.source); - } - else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const { validate, validateName } = vRef; - if (!validateName) - throw new Error("ajv internal error"); - const def = ajv.opts.code.es5 ? scope_1.varKinds.var : scope_1.varKinds.const; - const wrapper = (0, code_1._) `${def} ${n} = {validate: ${validateName}};`; - if (usedState(validateName) === scope_1.UsedValueState.Started) - return wrapper; - const vCode = validateCode(usedValues, validate === null || validate === void 0 ? void 0 : validate.source); - return (0, code_1._) `${wrapper}${_n}${vCode}`; - } - return undefined; - } - function usedState(name) { - var _a; - return (_a = usedValues[name.prefix]) === null || _a === void 0 ? void 0 : _a.get(name); - } - function setUsedState(name, state) { - const { prefix } = name; - const names = (usedValues[prefix] = usedValues[prefix] || new Map()); - names.set(name, state); - } - } -} -module.exports = exports = standaloneCode; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = standaloneCode; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js.map deleted file mode 100644 index 11864d36..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/standalone/index.ts"],"names":[],"mappings":";;AAGA,oDAAkG;AAClG,kDAA0F;AAE1F,SAAS,cAAc,CACrB,GAAY,EACZ,UAA2D;IAE3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAA;KACzE;IACD,MAAM,EAAC,EAAE,EAAC,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAA;IAC3B,OAAO,OAAO,UAAU,IAAI,UAAU;QACpC,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC;QACnC,CAAC,CAAC,UAAU,KAAK,SAAS;YAC1B,CAAC,CAAC,gBAAgB,CAAS,UAAU,EAAE,WAAW,CAAC;YACnD,CAAC,CAAC,gBAAgB,CAAY,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAC/C,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAC/C,CAAA;IAEL,SAAS,WAAW,CAAC,EAAU;QAC7B,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,EAAE,EAAE,CAAC,CAAA;QAC9D,OAAO,CAAC,CAAA;IACV,CAAC;IAED,SAAS,cAAc,CAAC,MAAmB;QACzC,MAAM,UAAU,GAAo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AAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.d.ts deleted file mode 100644 index 156ac322..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Ajv, { AnySchema, AnyValidateFunction, ErrorObject } from "../core"; -export default class AjvPack { - readonly ajv: Ajv; - errors?: ErrorObject[] | null; - constructor(ajv: Ajv); - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction; - getSchema(keyRef: string): AnyValidateFunction | undefined; - private getStandalone; - addSchema(...args: Parameters): AjvPack; - addKeyword(...args: Parameters): AjvPack; -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js deleted file mode 100644 index 35e5c992..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("../core"); -const _1 = require("."); -const requireFromString = require("require-from-string"); -class AjvPack { - constructor(ajv) { - this.ajv = ajv; - } - validate(schemaKeyRef, data) { - return core_1.default.prototype.validate.call(this, schemaKeyRef, data); - } - compile(schema, meta) { - return this.getStandalone(this.ajv.compile(schema, meta)); - } - getSchema(keyRef) { - const v = this.ajv.getSchema(keyRef); - if (!v) - return undefined; - return this.getStandalone(v); - } - getStandalone(v) { - return requireFromString((0, _1.default)(this.ajv, v)); - } - addSchema(...args) { - this.ajv.addSchema.call(this.ajv, ...args); - return this; - } - addKeyword(...args) { - this.ajv.addKeyword.call(this.ajv, ...args); - return this; - } -} -exports.default = AjvPack; -//# sourceMappingURL=instance.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js.map deleted file mode 100644 index 6ac33b11..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/standalone/instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../lib/standalone/instance.ts"],"names":[],"mappings":";;AAAA,kCAAwE;AACxE,wBAA8B;AAC9B,yDAAwD;AAExD,MAAqB,OAAO;IAE1B,YAAqB,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEjC,QAAQ,CAAC,YAAgC,EAAE,IAAa;QACtD,OAAO,cAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAC9D,CAAC;IAED,OAAO,CAAc,MAAiB,EAAE,IAAc;QACpD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IAC9D,CAAC;IAED,SAAS,CAAc,MAAc;QACnC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAI,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,CAAC;YAAE,OAAO,SAAS,CAAA;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9B,CAAC;IAEO,aAAa,CAAc,CAAyB;QAC1D,OAAO,iBAAiB,CAAC,IAAA,UAAc,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAA2B,CAAA;IACjF,CAAC;IAED,SAAS,CAAC,GAAG,IAAgD;QAC3D,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,GAAG,IAAiD;QAC7D,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AA/BD,0BA+BC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.d.ts deleted file mode 100644 index 065261e9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import * as URI from "uri-js"; -import type { CodeGen, Code, Name, ScopeValueSets, ValueScopeName } from "../compile/codegen"; -import type { SchemaEnv, SchemaCxt, SchemaObjCxt } from "../compile"; -import type { JSONType } from "../compile/rules"; -import type { KeywordCxt } from "../compile/validate"; -import type Ajv from "../core"; -interface _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - [x: string]: any; -} -export interface SchemaObject extends _SchemaObject { - id?: string; - $id?: string; - $schema?: string; - $async?: false; - [x: string]: any; -} -export interface AsyncSchema extends _SchemaObject { - $async: true; -} -export declare type AnySchemaObject = SchemaObject | AsyncSchema; -export declare type Schema = SchemaObject | boolean; -export declare type AnySchema = Schema | AsyncSchema; -export declare type SchemaMap = { - [Key in string]?: AnySchema; -}; -export interface SourceCode { - validateName: ValueScopeName; - validateCode: string; - scopeValues: ScopeValueSets; - evaluated?: Code; -} -export interface DataValidationCxt { - instancePath: string; - parentData: { - [K in T]: any; - }; - parentDataProperty: T; - rootData: Record | any[]; - dynamicAnchors: { - [Ref in string]?: ValidateFunction; - }; -} -export interface ValidateFunction { - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T; - errors?: null | ErrorObject[]; - evaluated?: Evaluated; - schema: AnySchema; - schemaEnv: SchemaEnv; - source?: SourceCode; -} -export interface JTDParser { - (json: string): T | undefined; - message?: string; - position?: number; -} -export declare type EvaluatedProperties = { - [K in string]?: true; -} | true; -export declare type EvaluatedItems = number | true; -export interface Evaluated { - props?: EvaluatedProperties; - items?: EvaluatedItems; - dynamicProps: boolean; - dynamicItems: boolean; -} -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise; - $async: true; -} -export declare type AnyValidateFunction = ValidateFunction | AsyncValidateFunction; -export interface ErrorObject, S = unknown> { - keyword: K; - instancePath: string; - schemaPath: string; - params: P; - propertyName?: string; - message?: string; - schema?: S; - parentSchema?: AnySchemaObject; - data?: unknown; -} -export declare type ErrorNoParams = ErrorObject, S>; -interface _KeywordDef { - keyword: string | string[]; - type?: JSONType | JSONType[]; - schemaType?: JSONType | JSONType[]; - allowUndefined?: boolean; - $data?: boolean; - implements?: string[]; - before?: string; - post?: boolean; - metaSchema?: AnySchemaObject; - validateSchema?: AnyValidateFunction; - dependencies?: string[]; - error?: KeywordErrorDefinition; - $dataError?: KeywordErrorDefinition; -} -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void; - trackErrors?: boolean; -} -export declare type MacroKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaCxt) => AnySchema; -export declare type CompileKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => DataValidateFunction; -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise; - errors?: Partial[]; -} -export interface SchemaValidateFunction { - (schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): boolean | Promise; - errors?: Partial[]; -} -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction; - compile?: CompileKeywordFunc; - schema?: boolean; - modifying?: boolean; - async?: boolean; - valid?: boolean; - errors?: boolean | "full"; -} -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc; -} -export declare type KeywordDefinition = CodeKeywordDefinition | FuncKeywordDefinition | MacroKeywordDefinition; -export declare type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[]; - schemaType: JSONType[]; -}; -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code); - params?: Code | ((cxt: KeywordErrorCxt) => Code); -} -export declare type Vocabulary = (KeywordDefinition | string)[]; -export interface KeywordErrorCxt { - gen: CodeGen; - keyword: string; - data: Name; - $data?: string | false; - schema: any; - parentSchema?: AnySchemaObject; - schemaCode: Code | number | boolean; - schemaValue: Code | number | boolean; - schemaType?: JSONType[]; - errsCount?: Name; - params: KeywordCxtParams; - it: SchemaCxt; -} -export declare type KeywordCxtParams = { - [P in string]?: Code | string | number; -}; -export declare type FormatValidator = (data: T) => boolean; -export declare type FormatCompare = (data1: T, data2: T) => number | undefined; -export declare type AsyncFormatValidator = (data: T) => Promise; -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: FormatValidator | (T extends string ? string | RegExp : never); - async?: false | undefined; - compare?: FormatCompare; -} -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number"; - validate: AsyncFormatValidator; - async: true; - compare?: FormatCompare; -} -export declare type AddedFormat = true | RegExp | FormatValidator | FormatDefinition | FormatDefinition | AsyncFormatDefinition | AsyncFormatDefinition; -export declare type Format = AddedFormat | string; -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike; - code: string; -} -export interface RegExpLike { - test: (s: string) => boolean; -} -export interface UriResolver { - parse(uri: string): URI.URIComponents; - resolve(base: string, path: string): string; - serialize(component: URI.URIComponents): string; -} -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js deleted file mode 100644 index aa219d8f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js.map deleted file mode 100644 index 1f80f85e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.d.ts deleted file mode 100644 index 78ec842f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -declare type StrictNullChecksWrapper = undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name}` : Type; -declare type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never; -export declare type SomeJSONSchema = UncheckedJSONSchemaType; -declare type UncheckedPartialSchema = Partial>; -export declare type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema>; -declare type JSONType = IsPartial extends true ? T | undefined : T; -interface NumberKeywords { - minimum?: number; - maximum?: number; - exclusiveMinimum?: number; - exclusiveMaximum?: number; - multipleOf?: number; - format?: string; -} -interface StringKeywords { - minLength?: number; - maxLength?: number; - pattern?: string; - format?: string; -} -declare type UncheckedJSONSchemaType = (// these two unions allow arbitrary unions of types -{ - anyOf: readonly UncheckedJSONSchemaType[]; -} | { - oneOf: readonly UncheckedJSONSchemaType[]; -} | ({ - type: readonly (T extends number ? JSONType<"number" | "integer", IsPartial> : T extends string ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> : never)[]; -} & UnionToIntersection) | ((T extends number ? { - type: JSONType<"number" | "integer", IsPartial>; -} & NumberKeywords : T extends string ? { - type: JSONType<"string", IsPartial>; -} & StringKeywords : T extends boolean ? { - type: JSONType<"boolean", IsPartial>; -} : T extends readonly [any, ...any[]] ? { - type: JSONType<"array", IsPartial>; - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable; - } & { - length: T["length"]; - }; - minItems: T["length"]; -} & ({ - maxItems: T["length"]; -} | { - additionalItems: false; -}) : T extends readonly any[] ? { - type: JSONType<"array", IsPartial>; - items: UncheckedJSONSchemaType; - contains?: UncheckedPartialSchema; - minItems?: number; - maxItems?: number; - minContains?: number; - maxContains?: number; - uniqueItems?: true; - additionalItems?: never; -} : T extends Record ? { - type: JSONType<"object", IsPartial>; - additionalProperties?: boolean | UncheckedJSONSchemaType; - unevaluatedProperties?: boolean | UncheckedJSONSchemaType; - properties?: IsPartial extends true ? Partial> : UncheckedPropertiesSchema; - patternProperties?: Record>; - propertyNames?: Omit, "type"> & { - type?: "string"; - }; - dependencies?: { - [K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema; - }; - dependentRequired?: { - [K in keyof T]?: Readonly<(keyof T)[]>; - }; - dependentSchemas?: { - [K in keyof T]?: UncheckedPartialSchema; - }; - minProperties?: number; - maxProperties?: number; -} & (IsPartial extends true ? { - required: Readonly<(keyof T)[]>; -} : [UncheckedRequiredMembers] extends [never] ? { - required?: Readonly[]>; -} : { - required: Readonly[]>; -}) : T extends null ? { - type: JSONType<"null", IsPartial>; - nullable: true; -} : never) & { - allOf?: Readonly[]>; - anyOf?: Readonly[]>; - oneOf?: Readonly[]>; - if?: UncheckedPartialSchema; - then?: UncheckedPartialSchema; - else?: UncheckedPartialSchema; - not?: UncheckedPartialSchema; -})) & { - [keyword: string]: any; - $id?: string; - $ref?: string; - $defs?: Record>; - definitions?: Record>; -}; -export declare type JSONSchemaType = StrictNullChecksWrapper<"JSONSchemaType", UncheckedJSONSchemaType>; -declare type Known = { - [key: string]: Known; -} | [Known, ...Known[]] | Known[] | number | string | boolean | null; -declare type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | { - $ref: string; - }; -}; -export declare type PropertiesSchema = StrictNullChecksWrapper<"PropertiesSchema", UncheckedPropertiesSchema>; -declare type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -export declare type RequiredMembers = StrictNullChecksWrapper<"RequiredMembers", UncheckedRequiredMembers>; -declare type Nullable = undefined extends T ? { - nullable: true; - const?: null; - enum?: Readonly<(T | null)[]>; - default?: T | null; -} : { - const?: T; - enum?: Readonly; - default?: T; -}; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js deleted file mode 100644 index 2d8f98dc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js.map deleted file mode 100644 index ae6b4d0f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/json-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../../lib/types/json-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts deleted file mode 100644 index 3004e5e5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -/** numeric strings */ -declare type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -/** string strings */ -declare type StringType = "string" | "timestamp"; -/** Generic JTD Schema without inference of the represented type */ -export declare type SomeJTDSchemaType = (// ref -{ - ref: string; -} | { - type: NumberType | StringType | "boolean"; -} | { - enum: string[]; -} | { - elements: SomeJTDSchemaType; -} | { - values: SomeJTDSchemaType; -} | { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} | { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} | { - discriminator: string; - mapping: Record; -} | {}) & { - nullable?: boolean; - metadata?: Record; - definitions?: Record; -}; -/** required keys of an object, not undefined */ -declare type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K; -}[keyof T]; -/** optional or undifined-able keys of an object */ -declare type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never; -}[keyof T]; -/** type is true if T is a union type */ -declare type IsUnion_ = false extends (T extends unknown ? ([U] extends [T] ? false : true) : never) ? false : true; -declare type IsUnion = IsUnion_; -/** type is true if T is identically E */ -declare type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false; -/** type is true if T or null is identically E or null*/ -declare type NullTypeEquality = TypeEquality; -/** gets only the string literals of a type or null if a type isn't a string literal */ -declare type EnumString = [T] extends [never] ? null : T extends string ? string extends T ? null : T : null; -/** true if type is a union of string literals */ -declare type IsEnum = null extends EnumString> ? false : true; -/** true only if all types are array types (not tuples) */ -declare type IsElements = false extends IsUnion ? [T] extends [readonly unknown[]] ? undefined extends T[0.5] ? false : true : false : false; -/** true if the the type is a values type */ -declare type IsValues = false extends IsUnion> ? TypeEquality, string> : false; -/** true if type is a proeprties type and Union is false, or type is a discriminator type and Union is true */ -declare type IsRecord = Union extends IsUnion> ? null extends EnumString> ? false : true : false; -/** actual schema */ -export declare type JTDSchemaType = Record> = (// refs - where null wasn't specified, must match exactly -(null extends EnumString ? never : ({ - [K in keyof D]: [T] extends [D[K]] ? { - ref: K; - } : never; -}[keyof D] & { - nullable?: false; -}) | (null extends T ? { - [K in keyof D]: [Exclude] extends [Exclude] ? { - ref: K; - } : never; -}[keyof D] & { - nullable: true; -} : never)) | (unknown extends T ? { - nullable?: boolean; -} : never) | ((true extends NullTypeEquality ? { - type: NumberType; -} : true extends NullTypeEquality ? { - type: "boolean"; -} : true extends NullTypeEquality ? { - type: StringType; -} : true extends NullTypeEquality ? { - type: "timestamp"; -} : true extends IsEnum ? { - enum: EnumString>[]; -} : true extends IsElements> ? T extends readonly (infer E)[] ? { - elements: JTDSchemaType; -} : never : true extends IsValues ? T extends Record ? { - values: JTDSchemaType; -} : never : true extends IsRecord ? ([RequiredKeys>] extends [never] ? { - properties?: Record; -} : { - properties: { - [K in RequiredKeys]: JTDSchemaType; - }; -}) & ([OptionalKeys>] extends [never] ? { - optionalProperties?: Record; -} : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D>; - }; -}) & { - additionalProperties?: boolean; -} : true extends IsRecord ? { - [K in keyof Exclude]-?: Exclude[K] extends string ? { - discriminator: K; - mapping: { - [M in Exclude[K]]: JTDSchemaType, D>; - }; - } : never; -}[keyof Exclude] : never) & (null extends T ? { - nullable: true; -} : { - nullable?: false; -}))) & { - metadata?: Record; - definitions?: { - [K in keyof D]: JTDSchemaType; - }; -}; -declare type JTDDataDef> = // ref -(S extends { - ref: string; -} ? D extends { - [K in S["ref"]]: infer V; -} ? JTDDataDef : never : S extends { - type: NumberType; -} ? number : S extends { - type: "boolean"; -} ? boolean : S extends { - type: "string"; -} ? string : S extends { - type: "timestamp"; -} ? string | Date : S extends { - enum: readonly (infer E)[]; -} ? string extends E ? never : [E] extends [string] ? E : never : S extends { - elements: infer E; -} ? JTDDataDef[] : S extends { - properties: Record; - optionalProperties?: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - properties?: Record; - optionalProperties: Record; - additionalProperties?: boolean; -} ? { - -readonly [K in keyof S["properties"]]-?: JTDDataDef; -} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef; -} & ([S["additionalProperties"]] extends [true] ? Record : unknown) : S extends { - values: infer V; -} ? Record> : S extends { - discriminator: infer M; - mapping: Record; -} ? [M] extends [string] ? { - [K in keyof S["mapping"]]: JTDDataDef & { - [KM in M]: K; - }; -}[keyof S["mapping"]] : never : unknown) | (S extends { - nullable: true; -} ? null : never); -export declare type JTDDataType = S extends { - definitions: Record; -} ? JTDDataDef : JTDDataDef>; -export {}; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js deleted file mode 100644 index 11338aa8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=jtd-schema.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js.map deleted file mode 100644 index add89bd7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/types/jtd-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jtd-schema.js","sourceRoot":"","sources":["../../lib/types/jtd-schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts deleted file mode 100644 index 89a73f8d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export declare type AdditionalItemsError = ErrorObject<"additionalItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export declare function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js deleted file mode 100644 index 608d51eb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateAdditionalItems = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "additionalItems", - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt) { - const { parentSchema, it } = cxt; - const { items } = parentSchema; - if (!Array.isArray(items)) { - (0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas'); - return; - } - validateAdditionalItems(cxt, items); - }, -}; -function validateAdditionalItems(cxt, items) { - const { gen, schema, data, keyword, it } = cxt; - it.items = true; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items.length }); - cxt.pass((0, codegen_1._) `${len} <= ${items.length}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var - gen.if((0, codegen_1.not)(valid), () => validateItems(valid)); - cxt.ok(valid); - } - function validateItems(valid) { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } -} -exports.validateAdditionalItems = validateAdditionalItems; -exports.default = def; -//# sourceMappingURL=additionalItems.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map deleted file mode 100644 index b3d1479c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalItems.ts"],"names":[],"mappings":";;;AAOA,mDAAuD;AACvD,6CAA2E;AAI3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,iBAA0B;IACnC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9B,MAAM,EAAC,KAAK,EAAC,GAAG,YAAY,CAAA;QAC5B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACzB,IAAA,sBAAe,EAAC,EAAE,EAAE,sEAAsE,CAAC,CAAA;YAC3F,OAAM;SACP;QACD,uBAAuB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACrC,CAAC;CACF,CAAA;AAED,SAAgB,uBAAuB,CAAC,GAAe,EAAE,KAAkB;IACzE,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,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E,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;QAC1D,CAAC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AAnBD,0DAmBC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts deleted file mode 100644 index f24ba3f5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, AddedKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type AdditionalPropertiesError = ErrorObject<"additionalProperties", { - additionalProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition & AddedKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js deleted file mode 100644 index 1d3374bb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const util_1 = require("../../compile/util"); -const error = { - message: "must NOT have additional properties", - params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`, -}; -const def = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, opts } = it; - it.props = true; - if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) - return; - const props = (0, code_1.allSchemaProperties)(parentSchema.properties); - const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties); - checkAdditionalProperties(); - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function checkAdditionalProperties() { - gen.forIn("key", data, (key) => { - if (!props.length && !patProps.length) - additionalPropertyCode(key); - else - gen.if(isAdditional(key), () => additionalPropertyCode(key)); - }); - } - function isAdditional(key) { - let definedProp; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties"); - definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key); - } - else if (props.length) { - definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`)); - } - else { - definedProp = codegen_1.nil; - } - if (patProps.length) { - definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`)); - } - return (0, codegen_1.not)(definedProp); - } - function deleteAdditional(key) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - function additionalPropertyCode(key) { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key); - return; - } - if (schema === false) { - cxt.setParams({ additionalProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false); - gen.if((0, codegen_1.not)(valid), () => { - cxt.reset(); - deleteAdditional(key); - }); - } - else { - applyAdditionalSchema(key, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - } - function applyAdditionalSchema(key, valid, errors) { - const subschema = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }; - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }); - } - cxt.subschema(subschema, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=additionalProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map deleted file mode 100644 index d2f249f6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"additionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/additionalProperties.ts"],"names":[],"mappings":";;AAOA,kCAAsE;AACtE,mDAAiE;AACjE,+CAAmC;AAEnC,6CAA0E;AAQ1E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,qCAAqC;IAC9C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,wBAAwB,MAAM,CAAC,kBAAkB,GAAG;CAC5E,CAAA;AAED,MAAM,GAAG,GAAmD;IAC1D,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAG;QACN,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC5D,wBAAwB;QACxB,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC3D,MAAM,EAAC,SAAS,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QAC5B,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,IAAI,IAAA,wB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AG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;wBACtB,GAAG,CAAC,KAAK,EAAE,CAAA;wBACX,gBAAgB,CAAC,GAAG,CAAC,CAAA;oBACvB,CAAC,CAAC,CAAA;iBACH;qBAAM;oBACL,qBAAqB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;oBACjC,IAAI,CAAC,SAAS;wBAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;iBACtD;aACF;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,GAAS,EAAE,KAAW,EAAE,MAAc;YACnE,MAAM,SAAS,GAAkB;gBAC/B,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,GAAG;gBACb,YAAY,EAAE,WAAI,CAAC,GAAG;aACvB,CAAA;YACD,IAAI,MAAM,KAAK,KAAK,EAAE;gBACpB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;oBACvB,aAAa,EAAE,IAAI;oBACnB,YAAY,EAAE,KAAK;oBACnB,SAAS,EAAE,KAAK;iBACjB,CAAC,CAAA;aACH;YACD,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js deleted file mode 100644 index 1b1ae737..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "allOf", - schemaType: "array", - code(cxt) { - const { gen, schema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const valid = gen.name("valid"); - schema.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid); - cxt.ok(valid); - cxt.mergeEvaluated(schCxt); - }); - }, -}; -exports.default = def; -//# sourceMappingURL=allOf.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map deleted file mode 100644 index d119d0ea..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/allOf.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,wBAAwB;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACvE,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAc,EAAE,CAAS,EAAE,EAAE;YAC3C,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,GAAG,CAAC;gBAAE,OAAM;YACtC,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,EAAC,EAAE,KAAK,CAAC,CAAA;YACtE,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;YACb,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC5B,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts deleted file mode 100644 index db3fc0e2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export declare type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js deleted file mode 100644 index 66cfce2c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in anyOf" }, -}; -exports.default = def; -//# sourceMappingURL=anyOf.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map deleted file mode 100644 index 537ffcbe..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/anyOf.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAIrC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts deleted file mode 100644 index 7e4e96a0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type ContainsError = ErrorObject<"contains", { - minContains: number; - maxContains?: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js deleted file mode 100644 index 6c5473f5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { min, max } }) => max === undefined - ? (0, codegen_1.str) `must contain at least ${min} valid item(s)` - : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`, -}; -const def = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - let min; - let max; - const { minContains, maxContains } = parentSchema; - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains; - max = maxContains; - } - else { - min = 1; - } - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - cxt.setParams({ min, max }); - if (max === undefined && min === 0) { - (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`); - return; - } - if (max !== undefined && min > max) { - (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`); - cxt.fail(); - return; - } - if ((0, util_1.alwaysValidSchema)(it, schema)) { - let cond = (0, codegen_1._) `${len} >= ${min}`; - if (max !== undefined) - cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`; - cxt.pass(cond); - return; - } - it.items = true; - const valid = gen.name("valid"); - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())); - } - else if (min === 0) { - gen.let(valid, true); - if (max !== undefined) - gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount); - } - else { - gen.let(valid, false); - validateItemsWithCount(); - } - cxt.result(valid, () => cxt.reset()); - function validateItemsWithCount() { - const schValid = gen.name("_valid"); - const count = gen.let("count", 0); - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))); - } - function validateItems(_valid, block) { - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword: "contains", - dataProp: i, - dataPropType: util_1.Type.Num, - compositeRule: true, - }, _valid); - block(); - }); - } - function checkLimits(count) { - gen.code((0, codegen_1._) `${count}++`); - if (max === undefined) { - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break()); - } - else { - gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break()); - if (min === 1) - gen.assign(valid, true); - else - gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true)); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=contains.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map deleted file mode 100644 index 6a0bd39c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/contains.ts"],"names":[],"mappings":";;AAOA,mDAAkD;AAClD,6CAA2E;AAQ3E,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAChC,GAAG,KAAK,SAAS;QACf,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,gBAAgB;QACjD,CAAC,CAAC,IAAA,aAAG,EAAA,yBAAyB,GAAG,qBAAqB,GAAG,gBAAgB;IAC7E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,EAAC,EAAE,EAAE,CAC/B,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,iBAAiB,GAAG,kBAAkB,GAAG,GAAG;CAC/F,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;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CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;gBAC9B,GAAG,CAAC,SAAS,CACX;oBACE,OAAO,EAAE,UAAU;oBACnB,QAAQ,EAAE,CAAC;oBACX,YAAY,EAAE,WAAI,CAAC,GAAG;oBACtB,aAAa,EAAE,IAAI;iBACpB,EACD,MAAM,CACP,CAAA;gBACD,KAAK,EAAE,CAAA;YACT,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,SAAS,WAAW,CAAC,KAAW;YAC9B,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,IAAI,CAAC,CAAA;YACvB,IAAI,GAAG,KAAK,SAAS,EAAE;gBACrB,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;aACrE;iBAAM;gBACL,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;gBACpE,IAAI,GAAG,KAAK,CAAC;oBAAE,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;;oBACjC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAA;aAClE;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts deleted file mode 100644 index b28cfe42..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -export declare type PropertyDependencies = { - [K in string]?: string[]; -}; -export interface DependenciesErrorParams { - property: string; - missingProperty: string; - depsCount: number; - deps: string; -} -export declare type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, { - [K in string]?: string[] | AnySchema; -}>; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: { - [K in string]?: string[]; -}): void; -export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js deleted file mode 100644 index e81f86d1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -exports.error = { - message: ({ params: { property, depsCount, deps } }) => { - const property_ies = depsCount === 1 ? "property" : "properties"; - return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`; - }, - params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -}; -const def = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error: exports.error, - code(cxt) { - const [propDeps, schDeps] = splitDependencies(cxt); - validatePropertyDeps(cxt, propDeps); - validateSchemaDeps(cxt, schDeps); - }, -}; -function splitDependencies({ schema }) { - const propertyDeps = {}; - const schemaDeps = {}; - for (const key in schema) { - if (key === "__proto__") - continue; - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps; - deps[key] = schema[key]; - } - return [propertyDeps, schemaDeps]; -} -function validatePropertyDeps(cxt, propertyDeps = cxt.schema) { - const { gen, data, it } = cxt; - if (Object.keys(propertyDeps).length === 0) - return; - const missing = gen.let("missing"); - for (const prop in propertyDeps) { - const deps = propertyDeps[prop]; - if (deps.length === 0) - continue; - const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties); - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }); - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - (0, code_1.checkReportMissingProp)(cxt, depProp); - } - }); - } - else { - gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } -} -exports.validatePropertyDeps = validatePropertyDeps; -function validateSchemaDeps(cxt, schemaDeps = cxt.schema) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - for (const prop in schemaDeps) { - if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop])) - continue; - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => { - const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid); - cxt.mergeValidEvaluated(schCxt, valid); - }, () => gen.var(valid, true) // TODO var - ); - cxt.ok(valid); - } -} -exports.validateSchemaDeps = validateSchemaDeps; -exports.default = def; -//# sourceMappingURL=dependencies.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map deleted file mode 100644 index dafffd16..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependencies.ts"],"names":[],"mappings":";;;AAQA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAmG;AAmBtF,QAAA,KAAK,GAA2B;IAC3C,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAC,EAAC,EAAE,EAAE;QACjD,MAAM,YAAY,GAAG,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAA;QAChE,OAAO,IAAA,aAAG,EAAA,aAAa,YAAY,IAAI,IAAI,kBAAkB,QAAQ,aAAa,CAAA;IACpF,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAC,EAAC,EAAE,EAAE,CACjE,IAAA,WAAC,EAAA,cAAc,QAAQ;uBACJ,eAAe;iBACrB,SAAS;YACd,IAAI,GAAG,EAAE,2BAA2B;CAC/C,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,aAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;QAClD,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACnC,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAClC,CAAC;CACF,CAAA;AAED,SAAS,iBAAiB,CAAC,EAAC,MAAM,EAAa;IAC7C,MAAM,YAAY,GAAyB,EAAE,CAAA;IAC7C,MAAM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AG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js deleted file mode 100644 index 66ef2e84..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("./dependencies"); -const def = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentSchemas.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map deleted file mode 100644 index 17712e6f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentSchemas.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/dependentSchemas.ts"],"names":[],"mappings":";;AACA,iDAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iCAAkB,EAAC,GAAG,CAAC;CACvC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts deleted file mode 100644 index 3c3e78dd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type IfKeywordError = ErrorObject<"if", { - failingKeyword: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js deleted file mode 100644 index 2c42a3e9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`, - params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`, -}; -const def = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt) { - const { gen, parentSchema, it } = cxt; - if (parentSchema.then === undefined && parentSchema.else === undefined) { - (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored'); - } - const hasThen = hasSchema(it, "then"); - const hasElse = hasSchema(it, "else"); - if (!hasThen && !hasElse) - return; - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - validateIf(); - cxt.reset(); - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause"); - cxt.setParams({ ifClause }); - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)); - } - else if (hasThen) { - gen.if(schValid, validateClause("then")); - } - else { - gen.if((0, codegen_1.not)(schValid), validateClause("else")); - } - cxt.pass(valid, () => cxt.error(true)); - function validateIf() { - const schCxt = cxt.subschema({ - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, schValid); - cxt.mergeEvaluated(schCxt); - } - function validateClause(keyword, ifClause) { - return () => { - const schCxt = cxt.subschema({ keyword }, schValid); - gen.assign(valid, schValid); - cxt.mergeValidEvaluated(schCxt, valid); - if (ifClause) - gen.assign(ifClause, (0, codegen_1._) `${keyword}`); - else - cxt.setParams({ ifClause: keyword }); - }; - } - }, -}; -function hasSchema(it, keyword) { - const schema = it.schema[keyword]; - return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema); -} -exports.default = def; -//# sourceMappingURL=if.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map deleted file mode 100644 index 34b3a553..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/if.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"if.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/if.ts"],"names":[],"mappings":";;AAQA,mDAAuD;AACvD,6CAAqE;AAIrE,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,eAAe,MAAM,CAAC,QAAQ,UAAU;IAClE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,QAAQ,GAAG;CAC9D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,CAAC,QAAQ,E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CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;QAEtC,SAAS,UAAU;YACjB,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAC1B;gBACE,OAAO,EAAE,IAAI;gBACb,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,KAAK;aACjB,EACD,QAAQ,CACT,CAAA;YACD,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC5B,CAAC;QAED,SAAS,cAAc,CAAC,OAAe,EAAE,QAAe;YACtD,OAAO,GAAG,EAAE;gBACV,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAC,EAAE,QAAQ,CAAC,CAAA;gBACjD,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;gBAC3B,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;gBACtC,IAAI,QAAQ;oBAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAA,WAAC,EAAA,GAAG,OAAO,EAAE,CAAC,CAAA;;oBAC5C,GAAG,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAA;YACzC,CAAC,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,SAAS,SAAS,CAAC,EAAgB,EAAE,OAAe;IAClD,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAA;AAC/D,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts deleted file mode 100644 index f45239bd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ErrorNoParams, Vocabulary } from "../../types"; -import { AdditionalItemsError } from "./additionalItems"; -import { ItemsError } from "./items2020"; -import { ContainsError } from "./contains"; -import { DependenciesError } from "./dependencies"; -import { PropertyNamesError } from "./propertyNames"; -import { AdditionalPropertiesError } from "./additionalProperties"; -import { NotKeywordError } from "./not"; -import { AnyOfError } from "./anyOf"; -import { OneOfError } from "./oneOf"; -import { IfKeywordError } from "./if"; -export default function getApplicator(draft2020?: boolean): Vocabulary; -export declare type ApplicatorKeywordError = ErrorNoParams<"false schema"> | AdditionalItemsError | ItemsError | ContainsError | AdditionalPropertiesError | DependenciesError | IfKeywordError | AnyOfError | OneOfError | NotKeywordError | PropertyNamesError; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js deleted file mode 100644 index cf592f27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const additionalItems_1 = require("./additionalItems"); -const prefixItems_1 = require("./prefixItems"); -const items_1 = require("./items"); -const items2020_1 = require("./items2020"); -const contains_1 = require("./contains"); -const dependencies_1 = require("./dependencies"); -const propertyNames_1 = require("./propertyNames"); -const additionalProperties_1 = require("./additionalProperties"); -const properties_1 = require("./properties"); -const patternProperties_1 = require("./patternProperties"); -const not_1 = require("./not"); -const anyOf_1 = require("./anyOf"); -const oneOf_1 = require("./oneOf"); -const allOf_1 = require("./allOf"); -const if_1 = require("./if"); -const thenElse_1 = require("./thenElse"); -function getApplicator(draft2020 = false) { - const applicator = [ - // any - not_1.default, - anyOf_1.default, - oneOf_1.default, - allOf_1.default, - if_1.default, - thenElse_1.default, - // object - propertyNames_1.default, - additionalProperties_1.default, - dependencies_1.default, - properties_1.default, - patternProperties_1.default, - ]; - // array - if (draft2020) - applicator.push(prefixItems_1.default, items2020_1.default); - else - applicator.push(additionalItems_1.default, items_1.default); - applicator.push(contains_1.default); - return applicator; -} -exports.default = getApplicator; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map deleted file mode 100644 index ebcb8534..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/index.ts"],"names":[],"mappings":";;AACA,uDAAuE;AACvE,+CAAuC;AACvC,mCAA2B;AAC3B,2CAAiD;AACjD,yCAAkD;AAClD,iDAA8D;AAC9D,mDAAiE;AACjE,iEAAsF;AACtF,6CAAqC;AACrC,2DAAmD;AACnD,+BAAiD;AACjD,mCAAyC;AACzC,mCAAyC;AACzC,mCAA2B;AAC3B,6BAA8C;AAC9C,yCAAiC;AAEjC,SAAwB,aAAa,CAAC,SAAS,GAAG,KAAK;IACrD,MAAM,UAAU,GAAG;QACjB,MAAM;QACN,aAAU;QACV,eAAK;QACL,eAAK;QACL,eAAK;QACL,YAAS;QACT,kBAAQ;QACR,SAAS;QACT,uBAAa;QACb,8BAAoB;QACpB,sBAAY;QACZ,oBAAU;QACV,2BAAiB;KAClB,CAAA;IACD,QAAQ;IACR,IAAI,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,qBAAW,EAAE,mBAAS,CAAC,CAAA;;QACjD,UAAU,CAAC,IAAI,CAAC,yBAAe,EAAE,eAAK,CAAC,CAAA;IAC5C,UAAU,CAAC,IAAI,CAAC,kBAAQ,CAAC,CAAA;IACzB,OAAO,UAAU,CAAA;AACnB,CAAC;AArBD,gCAqBC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts deleted file mode 100644 index 8e608ca9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, AnySchema } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function validateTuple(cxt: KeywordCxt, extraItems: string, schArr?: AnySchema[]): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js deleted file mode 100644 index 26f527bc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateTuple = void 0; -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt) { - const { schema, it } = cxt; - if (Array.isArray(schema)) - return validateTuple(cxt, "additionalItems", schema); - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -function validateTuple(cxt, extraItems, schArr = cxt.schema) { - const { gen, parentSchema, data, keyword, it } = cxt; - checkStrictTuple(parentSchema); - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items); - } - const valid = gen.name("valid"); - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - schArr.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({ - keyword, - schemaProp: i, - dataProp: i, - }, valid)); - cxt.ok(valid); - }); - function checkStrictTuple(sch) { - const { opts, errSchemaPath } = it; - const l = schArr.length; - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; - (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); - } - } -} -exports.validateTuple = validateTuple; -exports.default = def; -//# sourceMappingURL=items.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map deleted file mode 100644 index 3c4ce614..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items.ts"],"names":[],"mappings":";;;AAEA,mDAAuC;AACvC,6CAAqF;AACrF,kCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;IAC1C,MAAM,EAAE,aAAa;IACrB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACxB,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,OAAO,aAAa,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAA;QAC/E,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,GA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QAChC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAA;QACvB,MAAM,SAAS,GAAG,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC,CAAA;QACzF,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,SAAS,EAAE;YACnC,MAAM,GAAG,GAAG,IAAI,OAAO,QAAQ,CAAC,oCAAoC,UAAU,4CAA4C,aAAa,GAAG,CAAA;YAC1I,IAAA,sBAAe,EAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;SAC5C;IACH,CAAC;AACH,CAAC;AApCD,sCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts deleted file mode 100644 index 4168c7f9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type ItemsError = ErrorObject<"items", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js deleted file mode 100644 index f2387d7d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const additionalItems_1 = require("./additionalItems"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt) { - const { schema, parentSchema, it } = cxt; - const { prefixItems } = parentSchema; - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - if (prefixItems) - (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems); - else - cxt.ok((0, code_1.validateArray)(cxt)); - }, -}; -exports.default = def; -//# sourceMappingURL=items2020.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map deleted file mode 100644 index 5034acda..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"items2020.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items2020.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAqC;AACrC,uDAAyD;AAIzD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtC,MAAM,EAAC,WAAW,EAAC,GAAG,YAAY,CAAA;QAClC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,IAAI,WAAW;YAAE,IAAA,yCAAuB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;;YACrD,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,CAAA;IACjC,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts deleted file mode 100644 index b8c37cab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, ErrorNoParams, AnySchema } from "../../types"; -export declare type NotKeywordError = ErrorNoParams<"not", AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js deleted file mode 100644 index 89f6fdda..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt) { - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) { - cxt.fail(); - return; - } - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, valid); - cxt.failResult(valid, () => cxt.reset(), () => cxt.error()); - }, - error: { message: "must NOT be valid" }, -}; -exports.default = def; -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map deleted file mode 100644 index 5e2a1ca1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/not.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AAIpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE;YACjC,GAAG,CAAC,IAAI,EAAE,CAAA;YACV,OAAM;SACP;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CACX;YACE,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,KAAK;SACjB,EACD,KAAK,CACN,CAAA;QAED,GAAG,CAAC,UAAU,CACZ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EACjB,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CAAA;IACH,CAAC;IACD,KAAK,EAAE,EAAC,OAAO,EAAE,mBAAmB,EAAC;CACtC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts deleted file mode 100644 index 01df87ab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type OneOfError = ErrorObject<"oneOf", { - passingSchemas: [number, number] | null; -}, AnySchema[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js deleted file mode 100644 index 441db2ac..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "must match exactly one schema in oneOf", - params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`, -}; -const def = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt) { - const { gen, schema, parentSchema, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - if (it.opts.discriminator && parentSchema.discriminator) - return; - const schArr = schema; - const valid = gen.let("valid", false); - const passing = gen.let("passing", null); - const schValid = gen.name("_valid"); - cxt.setParams({ passing }); - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - gen.block(validateOneOf); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - function validateOneOf() { - schArr.forEach((sch, i) => { - let schCxt; - if ((0, util_1.alwaysValidSchema)(it, sch)) { - gen.var(schValid, true); - } - else { - schCxt = cxt.subschema({ - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, schValid); - } - if (i > 0) { - gen - .if((0, codegen_1._) `${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`) - .else(); - } - gen.if(schValid, () => { - gen.assign(valid, true); - gen.assign(passing, i); - if (schCxt) - cxt.mergeEvaluated(schCxt, codegen_1.Name); - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=oneOf.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map deleted file mode 100644 index 6cc54de6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oneOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/oneOf.ts"],"names":[],"mappings":";;AAOA,mDAA6C;AAC7C,6CAAoD;AASpD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,oBAAoB,MAAM,CAAC,OAAO,GAAG;CAC7D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC3C,wBAAwB;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACvE,IAAI,EAAE,CAAC,IAAI,CAAC,aAAa,IAAI,YAAY,CAAC,aAAa;YAAE,OA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gBAED,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;oBACpB,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;oBACvB,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;oBACtB,IAAI,MAAM;wBAAE,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,cAAI,CAAC,CAAA;gBAC9C,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js deleted file mode 100644 index 48501c6e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const util_2 = require("../../compile/util"); -const def = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, data, parentSchema, it } = cxt; - const { opts } = it; - const patterns = (0, code_1.allSchemaProperties)(schema); - const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p])); - if (patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true))) { - return; - } - const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties; - const valid = gen.name("valid"); - if (it.props !== true && !(it.props instanceof codegen_1.Name)) { - it.props = (0, util_2.evaluatedPropsToName)(gen, it.props); - } - const { props } = it; - validatePatternProperties(); - function validatePatternProperties() { - for (const pat of patterns) { - if (checkProperties) - checkMatchingProperties(pat); - if (it.allErrors) { - validateProperties(pat); - } - else { - gen.var(valid, true); // TODO var - validateProperties(pat); - gen.if(valid); - } - } - } - function checkMatchingProperties(pat) { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); - } - } - } - function validateProperties(pat) { - gen.forIn("key", data, (key) => { - gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat); - if (!alwaysValid) { - cxt.subschema({ - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: util_2.Type.Str, - }, valid); - } - if (it.opts.unevaluated && props !== true) { - gen.assign((0, codegen_1._) `${props}[${key}]`, true); - } - else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - }); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=patternProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map deleted file mode 100644 index 2a60b74a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternProperties.js","sourceRoot":"","sources":["../../../lib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CAAC,IAAI,CAAC,WAAW,IAAI,KAAK,KAAK,IAAI,EAAE;wBACzC,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,IAAI,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;qBACtC;yBAAM,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE;wBACxC,sFAAsF;wBACtF,uDAAuD;wBACvD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;qBACtC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js deleted file mode 100644 index 727bc23c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const items_1 = require("./items"); -const def = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => (0, items_1.validateTuple)(cxt, "items"), -}; -exports.default = def; -//# sourceMappingURL=prefixItems.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map deleted file mode 100644 index deef718e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefixItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/prefixItems.ts"],"names":[],"mappings":";;AACA,mCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,GAAG,EAAE,OAAO,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js deleted file mode 100644 index 7347358e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_1 = require("../../compile/validate"); -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const additionalProperties_1 = require("./additionalProperties"); -const def = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); - } - const allProps = (0, code_1.allSchemaProperties)(schema); - for (const prop of allProps) { - it.definedProperties.add(prop); - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props); - } - const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - if (properties.length === 0) - return; - const valid = gen.name("valid"); - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop); - } - else { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties)); - applyPropertySchema(prop); - if (!it.allErrors) - gen.else().var(valid, true); - gen.endIf(); - } - cxt.it.definedProperties.add(prop); - cxt.ok(valid); - } - function hasDefault(prop) { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; - } - function applyPropertySchema(prop) { - cxt.subschema({ - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, valid); - } - }, -}; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map deleted file mode 100644 index 27f8148c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/properties.ts"],"names":[],"mappings":";;AACA,qDAAiD;AACjD,kCAA2D;AAC3D,6CAA4E;AAC5E,iEAA0C;AAE1C,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;I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L,GAAG,CAAC,EAAE,CAAC,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;gBAC9D,mBAAmB,CAAC,IAAI,CAAC,CAAA;gBACzB,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;gBAC9C,GAAG,CAAC,KAAK,EAAE,CAAA;aACZ;YACD,GAAG,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAClC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;SACd;QAED,SAAS,UAAU,CAAC,IAAY;YAC9B,OAAO,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,SAAS,CAAA;QACvF,CAAC;QAED,SAAS,mBAAmB,CAAC,IAAY;YACvC,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,YAAY;gBACrB,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,EACD,KAAK,CACN,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts deleted file mode 100644 index 90f7ad5b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type PropertyNamesError = ErrorObject<"propertyNames", { - propertyName: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js deleted file mode 100644 index f3871152..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: "property name must be valid", - params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`, -}; -const def = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - gen.forIn("key", data, (key) => { - cxt.setParams({ propertyName: key }); - cxt.subschema({ - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, valid); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(true); - if (!it.allErrors) - gen.break(); - }); - }); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=propertyNames.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map deleted file mode 100644 index 835b2bb1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyNames.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/propertyNames.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AAIpD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,kBAAkB,MAAM,CAAC,YAAY,GAAG;CAChE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAE/B,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YAC7B,GAAG,CAAC,SAAS,CAAC,EAAC,YAAY,EAAE,GAAG,EAAC,CAAC,CAAA;YAClC,GAAG,CAAC,SAAS,CACX;gBACE,OAAO,EAAE,eAAe;gBACxB,IAAI,EAAE,GAAG;gBACT,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,YAAY,EAAE,GAAG;gBACjB,aAAa,EAAE,IAAI;aACpB,EACD,KAAK,CACN,CAAA;YACD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;gBACtB,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;gBACf,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,KAAK,EAAE,CAAA;YAChC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js deleted file mode 100644 index 1ae63902..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({ keyword, parentSchema, it }) { - if (parentSchema.if === undefined) - (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); - }, -}; -exports.default = def; -//# sourceMappingURL=thenElse.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map deleted file mode 100644 index 2629f4fc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"thenElse.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/thenElse.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,EAAE,KAAK,SAAS;YAAE,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,2BAA2B,CAAC,CAAA;IAChG,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.d.ts deleted file mode 100644 index f914baca..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { SchemaMap } from "../types"; -import type { SchemaCxt } from "../compile"; -import type { KeywordCxt } from "../compile/validate"; -import { CodeGen, Code, Name } from "../compile/codegen"; -export declare function checkReportMissingProp(cxt: KeywordCxt, prop: string): void; -export declare function checkMissingProp({ gen, data, it: { opts } }: KeywordCxt, properties: string[], missing: Name): Code; -export declare function reportMissingProp(cxt: KeywordCxt, missing: Name): void; -export declare function hasPropFunc(gen: CodeGen): Name; -export declare function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code; -export declare function propertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function noPropertyInData(gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean): Code; -export declare function allSchemaProperties(schemaMap?: SchemaMap): string[]; -export declare function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[]; -export declare function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }: KeywordCxt, func: Code, context: Code, passSchema?: boolean): Code; -export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string): Name; -export declare function validateArray(cxt: KeywordCxt): Name; -export declare function validateUnion(cxt: KeywordCxt): void; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js deleted file mode 100644 index 8cb89932..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0; -const codegen_1 = require("../compile/codegen"); -const util_1 = require("../compile/util"); -const names_1 = require("../compile/names"); -const util_2 = require("../compile/util"); -function checkReportMissingProp(cxt, prop) { - const { gen, data, it } = cxt; - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true); - cxt.error(); - }); -} -exports.checkReportMissingProp = checkReportMissingProp; -function checkMissingProp({ gen, data, it: { opts } }, properties, missing) { - return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`))); -} -exports.checkMissingProp = checkMissingProp; -function reportMissingProp(cxt, missing) { - cxt.setParams({ missingProperty: missing }, true); - cxt.error(); -} -exports.reportMissingProp = reportMissingProp; -function hasPropFunc(gen) { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: (0, codegen_1._) `Object.prototype.hasOwnProperty`, - }); -} -exports.hasPropFunc = hasPropFunc; -function isOwnProperty(gen, data, property) { - return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`; -} -exports.isOwnProperty = isOwnProperty; -function propertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`; - return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond; -} -exports.propertyInData = propertyInData; -function noPropertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`; - return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond; -} -exports.noPropertyInData = noPropertyInData; -function allSchemaProperties(schemaMap) { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []; -} -exports.allSchemaProperties = allSchemaProperties; -function schemaProperties(it, schemaMap) { - return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p])); -} -exports.schemaProperties = schemaProperties; -function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) { - const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data; - const valCxt = [ - [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)], - [names_1.default.parentData, it.parentData], - [names_1.default.parentDataProperty, it.parentDataProperty], - [names_1.default.rootData, names_1.default.rootData], - ]; - if (it.opts.dynamicRef) - valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]); - const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`; - return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`; -} -exports.callValidateCode = callValidateCode; -const newRegExp = (0, codegen_1._) `new RegExp`; -function usePattern({ gen, it: { opts } }, pattern) { - const u = opts.unicodeRegExp ? "u" : ""; - const { regExp } = opts.code; - const rx = regExp(pattern, u); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._) `${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`, - }); -} -exports.usePattern = usePattern; -function validateArray(cxt) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - if (it.allErrors) { - const validArr = gen.let("valid", true); - validateItems(() => gen.assign(validArr, false)); - return validArr; - } - gen.var(valid, true); - validateItems(() => gen.break()); - return valid; - function validateItems(notValid) { - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword, - dataProp: i, - dataPropType: util_1.Type.Num, - }, valid); - gen.if((0, codegen_1.not)(valid), notValid); - }); - } -} -exports.validateArray = validateArray; -function validateUnion(cxt) { - const { gen, schema, keyword, it } = cxt; - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)); - if (alwaysValid && !it.opts.unevaluated) - return; - const valid = gen.let("valid", false); - const schValid = gen.name("_valid"); - gen.block(() => schema.forEach((_sch, i) => { - const schCxt = cxt.subschema({ - keyword, - schemaProp: i, - compositeRule: true, - }, schValid); - gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`); - const merged = cxt.mergeValidEvaluated(schCxt, schValid); - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) - gen.if((0, codegen_1.not)(valid)); - })); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); -} -exports.validateUnion = validateUnion; -//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js.map deleted file mode 100644 index 62d7ee12..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/code.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"code.js","sourceRoot":"","sources":["../../lib/vocabularies/code.ts"],"names":[],"mappings":";;;AAGA,gDAAoG;AACpG,0CAAuD;AACvD,4CAAgC;AAChC,0CAAuC;AACvC,SAAgB,sBAAsB,CAAC,GAAe,EAAE,IAAY;IAClE,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAC,GA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AAe,EAAE,CAAS,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAC1B;YACE,OAAO;YACP,UAAU,EAAE,CAAC;YACb,aAAa,EAAE,IAAI;SACpB,EACD,QAAQ,CACT,CAAA;QACD,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,KAAK,OAAO,QAAQ,EAAE,CAAC,CAAA;QAC7C,MAAM,MAAM,GAAG,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;QACxD,+FAA+F;QAC/F,yFAAyF;QACzF,IAAI,CAAC,MAAM;YAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,CAAC,CAAA;IACjC,CAAC,CAAC,CACH,CAAA;IAED,GAAG,CAAC,MAAM,CACR,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EACjB,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CACtB,CAAA;AACH,CAAC;AAjCD,sCAiCC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js deleted file mode 100644 index 313598aa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const def = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); - }, -}; -exports.default = def; -//# sourceMappingURL=id.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map deleted file mode 100644 index 4eb27eb3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/id.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"id.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/id.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,IAAI;IACb,IAAI;QACF,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;IACzE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts deleted file mode 100644 index f2e34ee3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const core: Vocabulary; -export default core; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js deleted file mode 100644 index 87656d74..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const id_1 = require("./id"); -const ref_1 = require("./ref"); -const core = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - { keyword: "$comment" }, - "definitions", - id_1.default, - ref_1.default, -]; -exports.default = core; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map deleted file mode 100644 index 5bf65f94..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/index.ts"],"names":[],"mappings":";;AACA,6BAA4B;AAC5B,+BAA8B;AAE9B,MAAM,IAAI,GAAe;IACvB,SAAS;IACT,KAAK;IACL,OAAO;IACP,aAAa;IACb,EAAC,OAAO,EAAE,UAAU,EAAC;IACrB,aAAa;IACb,YAAS;IACT,aAAU;CACX,CAAA;AAED,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts deleted file mode 100644 index 6a0967d1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { Code } from "../../compile/codegen"; -import { SchemaEnv } from "../../compile"; -declare const def: CodeKeywordDefinition; -export declare function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code; -export declare function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js deleted file mode 100644 index bac1ae85..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callRef = exports.getValidate = void 0; -const ref_error_1 = require("../../compile/ref_error"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$ref", - schemaType: "string", - code(cxt) { - const { gen, schema: $ref, it } = cxt; - const { baseId, schemaEnv: env, validateName, opts, self } = it; - const { root } = env; - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) - return callRootRef(); - const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref); - if (schOrEnv === undefined) - throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref); - if (schOrEnv instanceof compile_1.SchemaEnv) - return callValidate(schOrEnv); - return inlineRefSchema(schOrEnv); - function callRootRef() { - if (env === root) - return callRef(cxt, validateName, env, env.$async); - const rootName = gen.scopeValue("root", { ref: root }); - return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async); - } - function callValidate(sch) { - const v = getValidate(cxt, sch); - callRef(cxt, v, sch, sch.$async); - } - function inlineRefSchema(sch) { - const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); - const valid = gen.name("valid"); - const schCxt = cxt.subschema({ - schema: sch, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, valid); - cxt.mergeEvaluated(schCxt); - cxt.ok(valid); - } - }, -}; -function getValidate(cxt, sch) { - const { gen } = cxt; - return sch.validate - ? gen.scopeValue("validate", { ref: sch.validate }) - : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.validate`; -} -exports.getValidate = getValidate; -function callRef(cxt, v, sch, $async) { - const { gen, it } = cxt; - const { allErrors, schemaEnv: env, opts } = it; - const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; - if ($async) - callAsyncRef(); - else - callSyncRef(); - function callAsyncRef() { - if (!env.$async) - throw new Error("async schema referenced by sync schema"); - const valid = gen.let("valid"); - gen.try(() => { - gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); - addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result - if (!allErrors) - gen.assign(valid, true); - }, (e) => { - gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e)); - addErrorsFrom(e); - if (!allErrors) - gen.assign(valid, false); - }); - cxt.ok(valid); - } - function callSyncRef() { - cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); - } - function addErrorsFrom(source) { - const errs = (0, codegen_1._) `${source}.errors`; - gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged - gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`); - } - function addEvaluatedFrom(source) { - var _a; - if (!it.opts.unevaluated) - return; - const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated; - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props); - } - } - else { - const props = gen.var("props", (0, codegen_1._) `${source}.evaluated.props`); - it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name); - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items); - } - } - else { - const items = gen.var("items", (0, codegen_1._) `${source}.evaluated.items`); - it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name); - } - } - } -} -exports.callRef = callRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map deleted file mode 100644 index 88ac106a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/core/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/core/ref.ts"],"names":[],"mappings":";;;AAEA,uDAAqD;AACrD,kCAAwC;AACxC,mDAAmE;AACnE,+CAAmC;AACnC,2CAAmD;AACnD,6CAAiD;AAEjD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,MAAM,EAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QAC7D,MAAM,EAAC,IAAI,EAAC,GAAG,GAAG,CAAA;QAClB,IAAI,CAAC,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CAAC,IAAI,MAAM,KAAK,IAAI,CAAC,MAAM;YAAE,OAAO,WAAW,EAAE,CAAA;QACnF,MAAM,QAAQ,GAAG,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC1D,IAAI,QAAQ,KAAK,SAAS;YAAE,MAAM,IAAI,mBAAe,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QACxF,IAAI,QAAQ,YAAY,mBAAS;YAAE,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAA;QAChE,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAA;QAEhC,SAAS,WAAW;YAClB,IAAI,GAAG,KAAK,IAAI;gBAAE,OAAO,OAAO,CAAC,G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AAI,EAAE;YACrB,IAAI,YAAY,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;gBAC9C,IAAI,YAAY,CAAC,KAAK,KAAK,SAAS,EAAE;oBACpC,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;iBACnE;aACF;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,MAAM,kBAAkB,CAAC,CAAA;gBAC5D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,cAAI,CAAC,CAAA;aAC5D;SACF;QACD,IAAI,EAAE,CAAC,KAAK,KAAK,IAAI,EAAE;YACrB,IAAI,YAAY,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;gBAC9C,IAAI,YAAY,CAAC,KAAK,KAAK,SAAS,EAAE;oBACpC,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;iBACnE;aACF;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,MAAM,kBAAkB,CAAC,CAAA;gBAC5D,EAAE,CAAC,KAAK,GAAG,qBAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,cAAI,CAAC,CAAA;aAC5D;SACF;IACH,CAAC;AACH,CAAC;AAhED,0BAgEC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts deleted file mode 100644 index 656b2da5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export declare type DiscriminatorError = DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js deleted file mode 100644 index ccdb340b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const types_1 = require("../discriminator/types"); -const compile_1 = require("../../compile"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -}; -const def = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { oneOf } = parentSchema; - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option"); - } - const tagName = schema.propertyName; - if (typeof tagName != "string") - throw new Error("discriminator: requires propertyName"); - if (schema.mapping) - throw new Error("discriminator: mapping is not supported"); - if (!oneOf) - throw new Error("discriminator: requires oneOf keyword"); - const valid = gen.let("valid", false); - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`); - gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName })); - cxt.ok(valid); - function validateMapping() { - const mapping = getMapping(); - gen.if(false); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(mapping[tagValue])); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - return _valid; - } - function getMapping() { - var _a; - const oneOfMapping = {}; - const topRequired = hasRequired(parentSchema); - let tagRequired = true; - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i]; - if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) { - sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref); - if (sch instanceof compile_1.SchemaEnv) - sch = sch.schema; - } - const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName]; - if (typeof propSch != "object") { - throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`); - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)); - addMappings(propSch, i); - } - if (!tagRequired) - throw new Error(`discriminator: "${tagName}" must be required`); - return oneOfMapping; - function hasRequired({ required }) { - return Array.isArray(required) && required.includes(tagName); - } - function addMappings(sch, i) { - if (sch.const) { - addMapping(sch.const, i); - } - else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i); - } - } - else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`); - } - } - function addMapping(tagValue, i) { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`); - } - oneOfMapping[tagValue] = i; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map deleted file mode 100644 index 8057a4ed..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/index.ts"],"names":[],"mappings":";;AAEA,mDAA0D;AAC1D,kDAAgE;AAChE,2CAAmD;AACnD,6CAAuD;AAIvD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAE,OAAO,EAAC,EAAC,EAAE,EAAE,CAC3C,UAAU,KAAK,kBAAU,CAAC,GAAG;QAC3B,CAAC,CAAC,QAAQ,OAAO,kBAAkB;QACnC,CAAC,CAAC,iBAAiB,OAAO,oBAAoB;IAClD,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,UAAU,EAAE,GAAG,EAAE,OAAO,EAAC,EAAC,EAAE,EAAE,CAC/C,IAAA,WAAC,EAAA,WAAW,UAAU,UAAU,OAAO,eAAe,GAAG,GAAG;CAC/D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,MAAM,EAAC,KAAK,EAAC,GAAG,YAAY,CAAA;QAC5B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;SAChE;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;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node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts deleted file mode 100644 index 6cf5ea51..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { ErrorObject } from "../../types"; -export declare enum DiscrError { - Tag = "tag", - Mapping = "mapping" -} -export declare type DiscrErrorObj = ErrorObject<"discriminator", { - error: E; - tag: string; - tagValue: unknown; -}, string>; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js deleted file mode 100644 index d538f0ce..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DiscrError = void 0; -var DiscrError; -(function (DiscrError) { - DiscrError["Tag"] = "tag"; - DiscrError["Mapping"] = "mapping"; -})(DiscrError = exports.DiscrError || (exports.DiscrError = {})); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map deleted file mode 100644 index 4908a4e9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/vocabularies/discriminator/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts deleted file mode 100644 index d65752c6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft2020Vocabularies: Vocabulary[]; -export default draft2020Vocabularies; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js deleted file mode 100644 index 23d244ae..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const dynamic_1 = require("./dynamic"); -const next_1 = require("./next"); -const unevaluated_1 = require("./unevaluated"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft2020Vocabularies = [ - dynamic_1.default, - core_1.default, - validation_1.default, - (0, applicator_1.default)(true), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, - next_1.default, - unevaluated_1.default, -]; -exports.default = draft2020Vocabularies; -//# sourceMappingURL=draft2020.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map deleted file mode 100644 index ae1a4d83..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft2020.js","sourceRoot":"","sources":["../../lib/vocabularies/draft2020.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,uCAAyC;AACzC,iCAAmC;AACnC,+CAAiD;AACjD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,qBAAqB,GAAiB;IAC1C,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,EAAC,IAAI,CAAC;IAC7B,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;IACjB,cAAc;IACd,qBAAqB;CACtB,CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts deleted file mode 100644 index 469fb844..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const draft7Vocabularies: Vocabulary[]; -export default draft7Vocabularies; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js deleted file mode 100644 index 1e993de0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("./core"); -const validation_1 = require("./validation"); -const applicator_1 = require("./applicator"); -const format_1 = require("./format"); -const metadata_1 = require("./metadata"); -const draft7Vocabularies = [ - core_1.default, - validation_1.default, - (0, applicator_1.default)(), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary, -]; -exports.default = draft7Vocabularies; -//# sourceMappingURL=draft7.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map deleted file mode 100644 index bc7389c6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/draft7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"draft7.js","sourceRoot":"","sources":["../../lib/vocabularies/draft7.ts"],"names":[],"mappings":";;AACA,iCAAmC;AACnC,6CAA+C;AAC/C,6CAAkD;AAClD,qCAAuC;AACvC,yCAAgE;AAEhE,MAAM,kBAAkB,GAAiB;IACvC,cAAc;IACd,oBAAoB;IACpB,IAAA,oBAAuB,GAAE;IACzB,gBAAgB;IAChB,6BAAkB;IAClB,4BAAiB;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts deleted file mode 100644 index 56212139..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicAnchor(cxt: KeywordCxt, anchor: string): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js deleted file mode 100644 index 972dc35c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicAnchor = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const compile_1 = require("../../compile"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -}; -function dynamicAnchor(cxt, anchor) { - const { gen, it } = cxt; - it.schemaEnv.root.dynamicAnchors[anchor] = true; - const v = (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`; - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt); - gen.if((0, codegen_1._) `!${v}`, () => gen.assign(v, validate)); -} -exports.dynamicAnchor = dynamicAnchor; -function _getValidate(cxt) { - const { schemaEnv, schema, self } = cxt.it; - const { root, baseId, localRefs, meta } = schemaEnv.root; - const { schemaId } = self.opts; - const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta }); - compile_1.compileSchema.call(self, sch); - return (0, ref_1.getValidate)(cxt, sch); -} -exports.default = def; -//# sourceMappingURL=dynamicAnchor.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map deleted file mode 100644 index e70afe30..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/dynamicAnchor.ts"],"names":[],"mappings":";;;AAEA,mDAA0D;AAC1D,+CAAmC;AACnC,2CAAsD;AACtD,qCAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,gBAAgB;IACzB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC9C,CAAA;AAED,SAAgB,aAAa,CAAC,GAAe,EAAE,MAAc;IAC3D,MAAM,EAAC,GAAG,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IACrB,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IAC/C,MAAM,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,cAAc,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAA;IACtD,MAAM,QAAQ,GAAG,EAAE,CAAC,aAAa,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;IAC/E,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;AACjD,CAAC;AAND,sCAMC;AAED,SAAS,YAAY,CAAC,GAAe;IACnC,MAAM,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAC,EAAE,CAAA;IACxC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,SAAS,CAAC,IAAI,CAAA;IACtD,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAG,IAAI,mBAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAA;IAC5E,uBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC7B,OAAO,IAAA,iBAAW,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAC9B,CAAC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts deleted file mode 100644 index fa2f2b81..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -declare const def: CodeKeywordDefinition; -export declare function dynamicRef(cxt: KeywordCxt, ref: string): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js deleted file mode 100644 index 9f010a0d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dynamicRef = void 0; -const codegen_1 = require("../../compile/codegen"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const def = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -}; -function dynamicRef(cxt, ref) { - const { gen, keyword, it } = cxt; - if (ref[0] !== "#") - throw new Error(`"${keyword}" only supports hash fragment reference`); - const anchor = ref.slice(1); - if (it.allErrors) { - _dynamicRef(); - } - else { - const valid = gen.let("valid", false); - _dynamicRef(valid); - cxt.ok(valid); - } - function _dynamicRef(valid) { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`); - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)); - } - else { - _callRef(it.validateName, valid)(); - } - } - function _callRef(validate, valid) { - return valid - ? () => gen.block(() => { - (0, ref_1.callRef)(cxt, validate); - gen.let(valid, true); - }) - : () => (0, ref_1.callRef)(cxt, validate); - } -} -exports.dynamicRef = dynamicRef; -exports.default = def; -//# sourceMappingURL=dynamicRef.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map deleted file mode 100644 index 921c893f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamicRef.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/dynamicRef.ts"],"names":[],"mappings":";;;AAEA,mDAAgE;AAChE,+CAAmC;AACnC,qCAAmC;AAEnC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC3C,CAAA;AAED,SAAgB,UAAU,CAAC,GAAe,EAAE,GAAW;IACrD,MAAM,EAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;IAC9B,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,IAAI,OAAO,yCAAyC,CAAC,CAAA;IACzF,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAC3B,IAAI,EAAE,CAAC,SAAS,EAAE;QAChB,WAAW,EAAE,CAAA;KACd;SAAM;QACL,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACrC,WAAW,CAAC,KAAK,CAAC,CAAA;QAClB,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;KACd;IAED,SAAS,WAAW,CAAC,KAAY;QAC/B,+EAA+E;QAC/E,4EAA4E;QAC5E,sFAAsF;QACtF,qDAAqD;QACrD,kGAAkG;QAClG,yDAAyD;QACzD,IAAI,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;YAC5C,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,IAAA,WAAC,EAAA,GAAG,eAAC,CAAC,cAAc,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAC,CAAA;YACrE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAA;SAChE;aAAM;YACL,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAA;SACnC;IACH,CAAC;IAED,SAAS,QAAQ,CAAC,QAAc,EAAE,KAAY;QAC5C,OAAO,KAAK;YACV,CAAC,CAAC,GAAG,EAAE,CACH,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE;gBACb,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;gBACtB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;YACtB,CAAC,CAAC;YACN,CAAC,CAAC,GAAG,EAAE,CAAC,IAAA,aAAO,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IAClC,CAAC;AACH,CAAC;AApCD,gCAoCC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts deleted file mode 100644 index 0c751d93..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const dynamic: Vocabulary; -export default dynamic; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js deleted file mode 100644 index f2388a75..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const dynamicRef_1 = require("./dynamicRef"); -const recursiveAnchor_1 = require("./recursiveAnchor"); -const recursiveRef_1 = require("./recursiveRef"); -const dynamic = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default]; -exports.default = dynamic; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map deleted file mode 100644 index f96ba76d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/index.ts"],"names":[],"mappings":";;AACA,mDAA2C;AAC3C,6CAAqC;AACrC,uDAA+C;AAC/C,iDAAyC;AAEzC,MAAM,OAAO,GAAe,CAAC,uBAAa,EAAE,oBAAU,EAAE,yBAAe,EAAE,sBAAY,CAAC,CAAA;AAEtF,kBAAe,OAAO,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js deleted file mode 100644 index 9fd83235..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicAnchor_1 = require("./dynamicAnchor"); -const util_1 = require("../../compile/util"); -const def = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) - (0, dynamicAnchor_1.dynamicAnchor)(cxt, ""); - else - (0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored"); - }, -}; -exports.default = def; -//# sourceMappingURL=recursiveAnchor.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map deleted file mode 100644 index 5d5e381b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveAnchor.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveAnchor.ts"],"names":[],"mappings":";;AACA,mDAA6C;AAC7C,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,UAAU,EAAE,SAAS;IACrB,IAAI,CAAC,GAAG;QACN,IAAI,GAAG,CAAC,MAAM;YAAE,IAAA,6BAAa,EAAC,GAAG,EAAE,EAAE,CAAC,CAAA;;YACjC,IAAA,sBAAe,EAAC,GAAG,CAAC,EAAE,EAAE,oCAAoC,CAAC,CAAA;IACpE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js deleted file mode 100644 index 8cd5c696..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamicRef_1 = require("./dynamicRef"); -const def = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema), -}; -exports.default = def; -//# sourceMappingURL=recursiveRef.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map deleted file mode 100644 index f8138044..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recursiveRef.js","sourceRoot":"","sources":["../../../lib/vocabularies/dynamic/recursiveRef.ts"],"names":[],"mappings":";;AACA,6CAAuC;AAEvC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,QAAQ;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;CAC3C,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts deleted file mode 100644 index 221aae0e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TypeError } from "../compile/validate/dataType"; -import type { ApplicatorKeywordError } from "./applicator"; -import type { ValidationKeywordError } from "./validation"; -import type { FormatError } from "./format/format"; -import type { UnevaluatedPropertiesError } from "./unevaluated/unevaluatedProperties"; -import type { UnevaluatedItemsError } from "./unevaluated/unevaluatedItems"; -import type { DependentRequiredError } from "./validation/dependentRequired"; -import type { DiscriminatorError } from "./discriminator"; -export declare type DefinedError = TypeError | ApplicatorKeywordError | ValidationKeywordError | FormatError | UnevaluatedPropertiesError | UnevaluatedItemsError | DependentRequiredError | DiscriminatorError; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js deleted file mode 100644 index d4d3fba0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js.map deleted file mode 100644 index 56bad736..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/vocabularies/errors.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts deleted file mode 100644 index 855d0a2a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type FormatError = ErrorObject<"format", { - format: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js deleted file mode 100644 index aa667c1e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`, -}; -const def = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt, ruleType) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const { opts, errSchemaPath, schemaEnv, self } = it; - if (!opts.validateFormats) - return; - if ($data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }); - const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`); - const fType = gen.let("fType"); - const format = gen.let("format"); - // TODO simplify - gen.if((0, codegen_1._) `typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || "string"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `"string"`).assign(format, fDef)); - cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt())); - function unknownFmt() { - if (opts.strictSchema === false) - return codegen_1.nil; - return (0, codegen_1._) `${schemaCode} && !${format}`; - } - function invalidFmt() { - const callFormat = schemaEnv.$async - ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : (0, codegen_1._) `${format}(${data})`; - const validData = (0, codegen_1._) `(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`; - return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`; - } - } - function validateFormat() { - const formatDef = self.formats[schema]; - if (!formatDef) { - unknownFormat(); - return; - } - if (formatDef === true) - return; - const [fmtType, format, fmtRef] = getFormat(formatDef); - if (fmtType === ruleType) - cxt.pass(validCondition()); - function unknownFormat() { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()); - return; - } - throw new Error(unknownMsg()); - function unknownMsg() { - return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; - } - } - function getFormat(fmtDef) { - const code = fmtDef instanceof RegExp - ? (0, codegen_1.regexpCode)(fmtDef) - : opts.code.formats - ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` - : undefined; - const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code }); - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`]; - } - return ["string", fmtDef, fmt]; - } - function validCondition() { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) - throw new Error("async format in sync schema"); - return (0, codegen_1._) `await ${fmtRef}(${data})`; - } - return typeof format == "function" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`; - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map deleted file mode 100644 index 897d9ded..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/format.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/format.ts"],"names":[],"mappings":";;AASA,mDAAoF;AAapF,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,sBAAsB,UAAU,GAAG;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,YAAY,UAAU,GAAG;CACrD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe,EAAE,QAAiB;QACrC,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtD,MAAM,EAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,EAAE,CAAA;QACjD,IAAI,CAAC,IAAI,CAAC,eAAe;YAAE,OAAM;QAEjC,IAAI,KAAK;YAAE,mBAAmB,EAAE,CAAA;;YAC3B,cAAc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AI,CAAC,OAAO;wBACnB,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE;wBAC/C,CAAC,CAAC,SAAS,CAAA;gBACf,MAAM,GAAG,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,CAAA;gBACvE,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,CAAC,CAAC,MAAM,YAAY,MAAM,CAAC,EAAE;oBAC5D,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAA,WAAC,EAAA,GAAG,GAAG,WAAW,CAAC,CAAA;iBACtE;gBAED,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;YAChC,CAAC;YAED,SAAS,cAAc;gBACrB,IAAI,OAAO,SAAS,IAAI,QAAQ,IAAI,CAAC,CAAC,SAAS,YAAY,MAAM,CAAC,IAAI,SAAS,CAAC,KAAK,EAAE;oBACrF,IAAI,CAAC,SAAS,CAAC,MAAM;wBAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;oBACrE,OAAO,IAAA,WAAC,EAAA,SAAS,MAAM,IAAI,IAAI,GAAG,CAAA;iBACnC;gBACD,OAAO,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,SAAS,IAAI,GAAG,CAAA;YACzF,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts deleted file mode 100644 index c8019c9d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const format: Vocabulary; -export default format; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js deleted file mode 100644 index d19023d2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const format_1 = require("./format"); -const format = [format_1.default]; -exports.default = format; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map deleted file mode 100644 index 6315bfe1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/format/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/index.ts"],"names":[],"mappings":";;AACA,qCAAoC;AAEpC,MAAM,MAAM,GAAe,CAAC,gBAAa,CAAC,CAAA;AAE1C,kBAAe,MAAM,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts deleted file mode 100644 index fa27fb77..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -import { DiscrError, DiscrErrorObj } from "../discriminator/types"; -export declare type JTDDiscriminatorError = _JTDTypeError<"discriminator", "object", string> | DiscrErrorObj | DiscrErrorObj; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js deleted file mode 100644 index e7074d27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const types_1 = require("../discriminator/types"); -const error = { - message: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? params.discrError === types_1.DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { schema, params } = cxt; - return params.discrError - ? (0, codegen_1._) `{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, parentSchema } = cxt; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - gen.if(cond); - validateDiscriminator(); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - cxt.ok(valid); - function validateDiscriminator() { - const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(schema)}`); - gen.if((0, codegen_1._) `${tag} === undefined`); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }); - gen.elseIf((0, codegen_1._) `typeof ${tag} == "string"`); - validateMapping(tag); - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }, { instancePath: schema }); - gen.endIf(); - } - function validateMapping(tag) { - gen.if(false); - for (const tagValue in parentSchema.mapping) { - gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(tagValue)); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag }, { instancePath: schema, schemaPath: "mapping", parentSchema: true }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - cxt.subschema({ - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, _valid); - return _valid; - } - }, -}; -exports.default = def; -//# sourceMappingURL=discriminator.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map deleted file mode 100644 index 53cb717b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"discriminator.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/discriminator.ts"],"names":[],"mappings":";;AAEA,mDAA+D;AAC/D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AACxE,kDAAgE;AAOhE,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,MAAM,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,GAAG,CAAA;QAC5B,OAAO,MAAM,CAAC,UAAU;YACtB,CAAC,CAAC,MAAM,CAAC,UAAU,KAAK,kBAAU,CAAC,GAAG;gBACpC,CAAC,CAAC,QAAQ,MAAM,kBAAkB;gBAClC,CAAC,CAAC,iBAAiB,MAAM,sBAAsB;YACjD,CAAC,CAAC,IAAA,wBAAgB,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IACrC,CAAC;IACD,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE;QACd,MAAM,EAAC,M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AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts deleted file mode 100644 index 0a158711..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js deleted file mode 100644 index 9b8fb548..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "elements", - schemaType: "object", - error: (0, error_1.typeError)("array"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const [valid] = (0, nullable_1.checkNullable)(cxt); - gen.if((0, codegen_1.not)(valid), () => gen.if((0, codegen_1._) `Array.isArray(${data})`, () => gen.assign(valid, (0, code_1.validateArray)(cxt)), () => cxt.error())); - cxt.ok(valid); - }, -}; -exports.default = def; -//# sourceMappingURL=elements.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map deleted file mode 100644 index 38fe3a12..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/elements.ts"],"names":[],"mappings":";;AAEA,6CAAoD;AACpD,kCAAqC;AACrC,mDAA4C;AAC5C,yCAAwC;AACxC,yCAAwC;AACxC,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,OAAO,CAAC;IACzB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClC,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CACtB,GAAG,CAAC,EAAE,CACJ,IAAA,WAAC,EAAA,iBAAiB,IAAI,GAAG,EACzB,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,EAC3C,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAClB,CACF,CAAA;QACD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts deleted file mode 100644 index 8df949c0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type JTDEnumError = ErrorObject<"enum", { - allowedValues: string[]; -}, string[]>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js deleted file mode 100644 index 78b01ee3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, schemaValue, parentSchema, it } = cxt; - if (schema.length === 0) - throw new Error("enum must have non-empty array"); - if (schema.length !== new Set(schema).size) - throw new Error("enum items must be unique"); - let valid; - const isString = (0, codegen_1._) `typeof ${data} == "string"`; - if (schema.length >= it.opts.loopEnum) { - let cond; - [valid, cond] = (0, nullable_1.checkNullable)(cxt, isString); - gen.if(cond, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - valid = (0, codegen_1.and)(isString, (0, codegen_1.or)(...schema.map((value) => (0, codegen_1._) `${data} === ${value}`))); - if (parentSchema.nullable) - valid = (0, codegen_1.or)((0, codegen_1._) `${data} === null`, valid); - } - cxt.pass(valid); - function loopEnum() { - gen.forOf("v", schemaValue, (v) => gen.if((0, codegen_1._) `${valid} = ${data} === ${v}`, () => gen.break())); - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map deleted file mode 100644 index 663cc7c5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/enum.ts"],"names":[],"mappings":";;AAEA,mDAAsD;AACtD,yCAAwC;AACxC,yCAAwC;AAIxC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC1E,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;QACxF,IAAI,KAAW,CAAA;QACf,MAAM,QAAQ,GAAG,IAAA,WAAC,EAAA,UAAU,IAAI,cAAc,CAAA;QAC9C,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;YACrC,IAAI,IAAU,CACb;YAAA,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,IAAA,wBAAa,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC7C,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;SACvB;aAAM;YACL,wBAAwB;YACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;YACvE,KAAK,GAAG,IAAA,aAAG,EAAC,QAAQ,EAAE,IAAA,YAAE,EAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;YACpF,IAAI,YAAY,CAAC,QAAQ;gBAAE,KAAK,GAAG,IAAA,YAAE,EAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,KAAK,CAAC,CAAA;SAClE;QACD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEf,SAAS,QAAQ;YACf,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,WAAmB,EAAE,CAAC,CAAC,EAAE,EAAE,CACxC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,KAAK,MAAM,IAAI,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAC1D,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts deleted file mode 100644 index 0a1e68f9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { KeywordErrorDefinition, KeywordErrorCxt, ErrorObject } from "../../types"; -import { Code } from "../../compile/codegen"; -export declare type _JTDTypeError = ErrorObject; -export declare function typeError(t: string): KeywordErrorDefinition; -export declare function typeErrorMessage({ parentSchema }: KeywordErrorCxt, t: string): string; -export declare function typeErrorParams({ parentSchema }: KeywordErrorCxt, t: string): Code; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js deleted file mode 100644 index 1a3920a7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeErrorParams = exports.typeErrorMessage = exports.typeError = void 0; -const codegen_1 = require("../../compile/codegen"); -function typeError(t) { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - }; -} -exports.typeError = typeError; -function typeErrorMessage({ parentSchema }, t) { - return (parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable) ? `must be ${t} or null` : `must be ${t}`; -} -exports.typeErrorMessage = typeErrorMessage; -function typeErrorParams({ parentSchema }, t) { - return (0, codegen_1._) `{type: ${t}, nullable: ${!!(parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable)}}`; -} -exports.typeErrorParams = typeErrorParams; -//# sourceMappingURL=error.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map deleted file mode 100644 index db559678..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/error.ts"],"names":[],"mappings":";;;AACA,mDAA6C;AAQ7C,SAAgB,SAAS,CAAC,CAAS;IACjC,OAAO;QACL,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1C,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,CAAC;KACzC,CAAA;AACH,CAAC;AALD,8BAKC;AAED,SAAgB,gBAAgB,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACzE,OAAO,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,EAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAA;AACzE,CAAC;AAFD,4CAEC;AAED,SAAgB,eAAe,CAAC,EAAC,YAAY,EAAkB,EAAE,CAAS;IACxE,OAAO,IAAA,WAAC,EAAA,UAAU,CAAC,eAAe,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,CAAA,GAAG,CAAA;AAC/D,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts deleted file mode 100644 index f9b7fb9d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Vocabulary } from "../../types"; -import { JTDTypeError } from "./type"; -import { JTDEnumError } from "./enum"; -import { JTDElementsError } from "./elements"; -import { JTDPropertiesError } from "./properties"; -import { JTDDiscriminatorError } from "./discriminator"; -import { JTDValuesError } from "./values"; -declare const jtdVocabulary: Vocabulary; -export default jtdVocabulary; -export declare type JTDErrorObject = JTDTypeError | JTDEnumError | JTDElementsError | JTDPropertiesError | JTDDiscriminatorError | JTDValuesError; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js deleted file mode 100644 index 18f40ab7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ref_1 = require("./ref"); -const type_1 = require("./type"); -const enum_1 = require("./enum"); -const elements_1 = require("./elements"); -const properties_1 = require("./properties"); -const optionalProperties_1 = require("./optionalProperties"); -const discriminator_1 = require("./discriminator"); -const values_1 = require("./values"); -const union_1 = require("./union"); -const metadata_1 = require("./metadata"); -const jtdVocabulary = [ - "definitions", - ref_1.default, - type_1.default, - enum_1.default, - elements_1.default, - properties_1.default, - optionalProperties_1.default, - discriminator_1.default, - values_1.default, - union_1.default, - metadata_1.default, - { keyword: "additionalProperties", schemaType: "boolean" }, - { keyword: "nullable", schemaType: "boolean" }, -]; -exports.default = jtdVocabulary; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map deleted file mode 100644 index 713a1875..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/index.ts"],"names":[],"mappings":";;AACA,+BAA8B;AAC9B,iCAAgD;AAChD,iCAAgD;AAChD,yCAAqD;AACrD,6CAA2D;AAC3D,6DAAqD;AACrD,mDAAoE;AACpE,qCAA+C;AAC/C,mCAA2B;AAC3B,yCAAiC;AAEjC,MAAM,aAAa,GAAe;IAChC,aAAa;IACb,aAAU;IACV,cAAW;IACX,cAAW;IACX,kBAAQ;IACR,oBAAU;IACV,4BAAkB;IAClB,uBAAa;IACb,gBAAM;IACN,eAAK;IACL,kBAAQ;IACR,EAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,SAAS,EAAC;IACxD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;CAC7C,CAAA;AAED,kBAAe,aAAa,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts deleted file mode 100644 index 86e15a8e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { KeywordCxt } from "../../ajv"; -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function checkMetadata({ it, keyword }: KeywordCxt, metadata?: boolean): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js deleted file mode 100644 index eeb3c91c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkMetadata = void 0; -const util_1 = require("../../compile/util"); -const def = { - keyword: "metadata", - schemaType: "object", - code(cxt) { - checkMetadata(cxt); - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - cxt.subschema({ keyword: "metadata", jtdMetadata: true }, valid); - cxt.ok(valid); - }, -}; -function checkMetadata({ it, keyword }, metadata) { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`); - } -} -exports.checkMetadata = checkMetadata; -exports.default = def; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map deleted file mode 100644 index c22e73ad..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/metadata.ts"],"names":[],"mappings":";;;AAEA,6CAAoD;AAEpD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,aAAa,CAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC7B,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/B,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;QAC9D,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;CACF,CAAA;AAED,SAAgB,aAAa,CAAC,EAAC,EAAE,EAAE,OAAO,EAAa,EAAE,QAAkB;IACzE,IAAI,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,0CAA0C,CAAC,CAAA;KAC5E;AACH,CAAC;AAJD,sCAIC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts deleted file mode 100644 index 254f7602..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { KeywordCxt } from "../../compile/validate"; -import { Code, Name } from "../../compile/codegen"; -export declare function checkNullable({ gen, data, parentSchema }: KeywordCxt, cond?: Code): [Name, Code]; -export declare function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code]; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js deleted file mode 100644 index 8c92d2cd..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkNullableObject = exports.checkNullable = void 0; -const codegen_1 = require("../../compile/codegen"); -function checkNullable({ gen, data, parentSchema }, cond = codegen_1.nil) { - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.let(valid, (0, codegen_1._) `${data} === null`); - cond = (0, codegen_1.not)(valid); - } - else { - gen.let(valid, false); - } - return [valid, cond]; -} -exports.checkNullable = checkNullable; -function checkNullableObject(cxt, cond) { - const [valid, cond_] = checkNullable(cxt, cond); - return [valid, (0, codegen_1._) `${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`]; -} -exports.checkNullableObject = checkNullableObject; -//# sourceMappingURL=nullable.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map deleted file mode 100644 index 5bfaf327..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/nullable.ts"],"names":[],"mappings":";;;AACA,mDAA6D;AAE7D,SAAgB,aAAa,CAC3B,EAAC,GAAG,EAAE,IAAI,EAAE,YAAY,EAAa,EACrC,OAAa,aAAG;IAEhB,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,YAAY,CAAC,QAAQ,EAAE;QACzB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,CAAC,CAAA;QACnC,IAAI,GAAG,IAAA,aAAG,EAAC,KAAK,CAAC,CAAA;KAClB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;KACtB;IACD,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAZD,sCAYC;AAED,SAAgB,mBAAmB,CAAC,GAAe,EAAE,IAAU;IAC7D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC/C,OAAO,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,KAAK,cAAc,GAAG,CAAC,IAAI,kCAAkC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAA;AAC9F,CAAC;AAHD,kDAGC"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js deleted file mode 100644 index fe272758..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const properties_1 = require("./properties"); -const def = { - keyword: "optionalProperties", - schemaType: "object", - error: properties_1.error, - code(cxt) { - if (cxt.parentSchema.properties) - return; - (0, properties_1.validateProperties)(cxt); - }, -}; -exports.default = def; -//# sourceMappingURL=optionalProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map deleted file mode 100644 index 21e5f0d4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optionalProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/optionalProperties.ts"],"names":[],"mappings":";;AAEA,6CAAsD;AAEtD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,oBAAoB;IAC7B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,kBAAK;IACL,IAAI,CAAC,GAAe;QAClB,IAAI,GAAG,CAAC,YAAY,CAAC,UAAU;YAAE,OAAM;QACvC,IAAA,+BAAkB,EAAC,GAAG,CAAC,CAAA;IACzB,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts deleted file mode 100644 index a1a2219f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types"; -import type { KeywordCxt } from "../../compile/validate"; -import { _JTDTypeError } from "./error"; -declare enum PropError { - Additional = "additional", - Missing = "missing" -} -declare type PropKeyword = "properties" | "optionalProperties"; -declare type PropSchema = { - [P in string]?: SchemaObject; -}; -export declare type JTDPropertiesError = _JTDTypeError | ErrorObject | ErrorObject; -export declare const error: KeywordErrorDefinition; -declare const def: CodeKeywordDefinition; -export declare function validateProperties(cxt: KeywordCxt): void; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js deleted file mode 100644 index eccb066e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateProperties = exports.error = void 0; -const code_1 = require("../code"); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -var PropError; -(function (PropError) { - PropError["Additional"] = "additional"; - PropError["Missing"] = "missing"; -})(PropError || (PropError = {})); -exports.error = { - message: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : (0, error_1.typeErrorMessage)(cxt, "object"); - }, - params: (cxt) => { - const { params } = cxt; - return params.propError - ? params.propError === PropError.Additional - ? (0, codegen_1._) `{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : (0, codegen_1._) `{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : (0, error_1.typeErrorParams)(cxt, "object"); - }, -}; -const def = { - keyword: "properties", - schemaType: "object", - error: exports.error, - code: validateProperties, -}; -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } -function validateProperties(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, parentSchema, it } = cxt; - const { additionalProperties, nullable } = parentSchema; - if (it.jtdDiscriminator && nullable) - throw new Error("JTD: nullable inside discriminator mapping"); - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members"); - } - const [allProps, properties] = schemaProperties("properties"); - const [allOptProps, optProperties] = schemaProperties("optionalProperties"); - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return; - } - const [valid, cond] = it.jtdDiscriminator === undefined - ? (0, nullable_1.checkNullableObject)(cxt, data) - : [gen.let("valid", false), true]; - gen.if(cond, () => gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true); - validateProps(optProperties, "optionalProperties"); - if (!additionalProperties) - validateAdditional(); - })); - cxt.pass(valid); - function commonProperties() { - const props = parentSchema.properties; - const optProps = parentSchema.optionalProperties; - if (!(props && optProps)) - return false; - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) - return true; - } - return false; - } - function schemaProperties(keyword) { - const schema = parentSchema[keyword]; - const allPs = schema ? (0, code_1.allSchemaProperties)(schema) : []; - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`); - } - const ps = allPs.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - return [allPs, ps]; - } - function validateProps(props, keyword, required) { - const _valid = gen.var("valid"); - for (const prop of props) { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => applyPropertySchema(prop, keyword, _valid), () => missingProperty(prop)); - cxt.ok(_valid); - } - function missingProperty(prop) { - if (required) { - gen.assign(_valid, false); - cxt.error(false, { propError: PropError.Missing, missingProperty: prop }, { schemaPath: prop }); - } - else { - gen.assign(_valid, true); - } - } - } - function applyPropertySchema(prop, keyword, _valid) { - cxt.subschema({ - keyword, - schemaProp: prop, - dataProp: prop, - }, _valid); - } - function validateAdditional() { - gen.forIn("key", data, (key) => { - const _allProps = it.jtdDiscriminator === undefined ? allProps : [it.jtdDiscriminator].concat(allProps); - const addProp = isAdditional(key, _allProps, "properties"); - const addOptProp = isAdditional(key, allOptProps, "optionalProperties"); - const extra = addProp === true ? addOptProp : addOptProp === true ? addProp : (0, codegen_1.and)(addProp, addOptProp); - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code((0, codegen_1._) `delete ${data}[${key}]`); - } - else { - cxt.error(false, { propError: PropError.Additional, additionalProperty: key }, { instancePath: key, parentSchema: true }); - if (!it.opts.allErrors) - gen.break(); - } - }); - }); - } - function isAdditional(key, props, keyword) { - let additional; - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema[keyword], keyword); - additional = (0, codegen_1.not)((0, code_1.isOwnProperty)(gen, propsSchema, key)); - } - else if (props.length) { - additional = (0, codegen_1.and)(...props.map((p) => (0, codegen_1._) `${key} !== ${p}`)); - } - else { - additional = true; - } - return additional; - } -} -exports.validateProperties = validateProperties; -exports.default = def; -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map deleted file mode 100644 index 8a28a9e6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/properties.ts"],"names":[],"mappings":";;;AAOA,kCAA0E;AAC1E,6CAAoE;AACpE,mDAA6D;AAC7D,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAwE;AAExE,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,sCAAyB,CAAA;IACzB,gCAAmB,CA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GAAG,IAAI,CAAA;SAClB;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;AACH,CAAC;AAnHD,gDAmHC;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts deleted file mode 100644 index ccdf84c0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { CodeKeywordDefinition, AnySchemaObject } from "../../types"; -declare const def: CodeKeywordDefinition; -export declare function hasRef(schema: AnySchemaObject): boolean; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js deleted file mode 100644 index b7c6b02d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hasRef = void 0; -const compile_1 = require("../../compile"); -const codegen_1 = require("../../compile/codegen"); -const ref_error_1 = require("../../compile/ref_error"); -const names_1 = require("../../compile/names"); -const ref_1 = require("../core/ref"); -const metadata_1 = require("./metadata"); -const def = { - keyword: "ref", - schemaType: "string", - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema: ref, parentSchema, it } = cxt; - const { schemaEnv: { root }, } = it; - const valid = gen.name("valid"); - if (parentSchema.nullable) { - gen.var(valid, (0, codegen_1._) `${data} === null`); - gen.if((0, codegen_1.not)(valid), validateJtdRef); - } - else { - gen.var(valid, false); - validateJtdRef(); - } - cxt.ok(valid); - function validateJtdRef() { - var _a; - const refSchema = (_a = root.schema.definitions) === null || _a === void 0 ? void 0 : _a[ref]; - if (!refSchema) { - throw new ref_error_1.default(it.opts.uriResolver, "", ref, `No definition ${ref}`); - } - if (hasRef(refSchema) || !it.opts.inlineRefs) - callValidate(refSchema); - else - inlineRefSchema(refSchema); - } - function callValidate(schema) { - const sch = compile_1.compileSchema.call(it.self, new compile_1.SchemaEnv({ schema, root, schemaPath: `/definitions/${ref}` })); - const v = (0, ref_1.getValidate)(cxt, sch); - const errsCount = gen.const("_errs", names_1.default.errors); - (0, ref_1.callRef)(cxt, v, sch, sch.$async); - gen.assign(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - } - function inlineRefSchema(schema) { - const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: (0, codegen_1.stringify)(schema) } : { ref: schema }); - cxt.subschema({ - schema, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, valid); - } - }, -}; -function hasRef(schema) { - for (const key in schema) { - let sch; - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) - return true; - } - return false; -} -exports.hasRef = hasRef; -exports.default = def; -//# sourceMappingURL=ref.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map deleted file mode 100644 index c11c45c1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/ref.ts"],"names":[],"mappings":";;;AAEA,2CAAsD;AACtD,mDAA4D;AAC5D,uDAAqD;AACrD,+CAAmC;AACnC,qCAAgD;AAChD,yCAAwC;AAExC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,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AED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts deleted file mode 100644 index 321f9aad..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType>; -export declare type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; -export declare const intRange: { - [T in IntType]: [number, number, number]; -}; -export declare type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js deleted file mode 100644 index 17a0b510..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intRange = void 0; -const codegen_1 = require("../../compile/codegen"); -const timestamp_1 = require("../../runtime/timestamp"); -const util_1 = require("../../compile/util"); -const metadata_1 = require("./metadata"); -const error_1 = require("./error"); -exports.intRange = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -}; -const error = { - message: (cxt) => (0, error_1.typeErrorMessage)(cxt, cxt.schema), - params: (cxt) => (0, error_1.typeErrorParams)(cxt, cxt.schema), -}; -function timestampCode(cxt) { - const { gen, data, it } = cxt; - const { timestamp, allowDate } = it.opts; - if (timestamp === "date") - return (0, codegen_1._) `${data} instanceof Date `; - const vts = (0, util_1.useFunc)(gen, timestamp_1.default); - const allowDateArg = allowDate ? (0, codegen_1._) `, true` : codegen_1.nil; - const validString = (0, codegen_1._) `typeof ${data} == "string" && ${vts}(${data}${allowDateArg})`; - return timestamp === "string" ? validString : (0, codegen_1.or)((0, codegen_1._) `${data} instanceof Date`, validString); -} -const def = { - keyword: "type", - schemaType: "string", - error, - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { data, schema, parentSchema, it } = cxt; - let cond; - switch (schema) { - case "boolean": - case "string": - cond = (0, codegen_1._) `typeof ${data} == ${schema}`; - break; - case "timestamp": { - cond = timestampCode(cxt); - break; - } - case "float32": - case "float64": - cond = (0, codegen_1._) `typeof ${data} == "number"`; - break; - default: { - const sch = schema; - cond = (0, codegen_1._) `typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)`; - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") - cond = (0, codegen_1._) `${cond} && ${data} >= 0`; - } - else { - const [min, max] = exports.intRange[sch]; - cond = (0, codegen_1._) `${cond} && ${data} >= ${min} && ${data} <= ${max}`; - } - } - } - cxt.pass(parentSchema.nullable ? (0, codegen_1.or)((0, codegen_1._) `${data} === null`, cond) : cond); - }, -}; -exports.default = def; -//# sourceMappingURL=type.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map deleted file mode 100644 index 9d339390..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/type.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;AACtD,uDAAoD;AACpD,6CAA0C;AAC1C,yCAAwC;AACxC,mCAAwE;AAM3D,QAAA,QAAQ,GAA+C;IAClE,IAAI,EAA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IAAI,OAAO,IAAI,OAAO,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,CAAA;iBAC5D;aACF;SACF;QACD,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,YAAE,EAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js deleted file mode 100644 index 01a94399..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const def = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in union" }, -}; -exports.default = def; -//# sourceMappingURL=union.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map deleted file mode 100644 index 4d6eb411..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/union.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"union.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/union.ts"],"names":[],"mappings":";;AACA,kCAAqC;AAErC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,EAAC,OAAO,EAAE,8BAA8B,EAAC;CACjD,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts deleted file mode 100644 index 1ff367df..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, SchemaObject } from "../../types"; -import { _JTDTypeError } from "./error"; -export declare type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js deleted file mode 100644 index e464c0be..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const codegen_1 = require("../../compile/codegen"); -const metadata_1 = require("./metadata"); -const nullable_1 = require("./nullable"); -const error_1 = require("./error"); -const def = { - keyword: "values", - schemaType: "object", - error: (0, error_1.typeError)("object"), - code(cxt) { - (0, metadata_1.checkMetadata)(cxt); - const { gen, data, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); - gen.if(cond); - gen.assign(valid, validateMap()); - gen.elseIf((0, codegen_1.not)(valid)); - cxt.error(); - gen.endIf(); - cxt.ok(valid); - function validateMap() { - const _valid = gen.name("valid"); - if (it.allErrors) { - const validMap = gen.let("valid", true); - validateValues(() => gen.assign(validMap, false)); - return validMap; - } - gen.var(_valid, true); - validateValues(() => gen.break()); - return _valid; - function validateValues(notValid) { - gen.forIn("key", data, (key) => { - cxt.subschema({ - keyword: "values", - dataProp: key, - dataPropType: util_1.Type.Str, - }, _valid); - gen.if((0, codegen_1.not)(_valid), notValid); - }); - } - } - }, -}; -exports.default = def; -//# sourceMappingURL=values.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map deleted file mode 100644 index 8905b41c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/jtd/values.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../lib/vocabularies/jtd/values.ts"],"names":[],"mappings":";;AAEA,6CAA0D;AAC1D,mDAA+C;AAC/C,yCAAwC;AACxC,yCAA8C;AAC9C,mCAAgD;AAIhD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAA,iBAAS,EAAC,QAAQ,CAAC;IAC1B,IAAI,CAAC,GAAe;QAClB,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAA;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,IAAA,8BAAmB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QACpD,GAAG,CAAC,EAAE,C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mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts deleted file mode 100644 index df9cc07c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -export declare const metadataVocabulary: Vocabulary; -export declare const contentVocabulary: Vocabulary; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js deleted file mode 100644 index f07bf28b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.contentVocabulary = exports.metadataVocabulary = void 0; -exports.metadataVocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -]; -exports.contentVocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -]; -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map deleted file mode 100644 index 0d61f083..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../lib/vocabularies/metadata.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAe;IAC5C,OAAO;IACP,aAAa;IACb,SAAS;IACT,YAAY;IACZ,UAAU;IACV,WAAW;IACX,UAAU;CACX,CAAA;AAEY,QAAA,iBAAiB,GAAe;IAC3C,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;CAChB,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.d.ts deleted file mode 100644 index 7fd5c644..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../types"; -declare const next: Vocabulary; -export default next; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js deleted file mode 100644 index c861b324..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependentRequired_1 = require("./validation/dependentRequired"); -const dependentSchemas_1 = require("./applicator/dependentSchemas"); -const limitContains_1 = require("./validation/limitContains"); -const next = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default]; -exports.default = next; -//# sourceMappingURL=next.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js.map deleted file mode 100644 index 474a6d4e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/next.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"next.js","sourceRoot":"","sources":["../../lib/vocabularies/next.ts"],"names":[],"mappings":";;AACA,sEAA8D;AAC9D,oEAA4D;AAC5D,8DAAsD;AAEtD,MAAM,IAAI,GAAe,CAAC,2BAAiB,EAAE,0BAAgB,EAAE,uBAAa,CAAC,CAAA;AAE7E,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts deleted file mode 100644 index ec67e63e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Vocabulary } from "../../types"; -declare const unevaluated: Vocabulary; -export default unevaluated; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js deleted file mode 100644 index 30e31674..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const unevaluatedProperties_1 = require("./unevaluatedProperties"); -const unevaluatedItems_1 = require("./unevaluatedItems"); -const unevaluated = [unevaluatedProperties_1.default, unevaluatedItems_1.default]; -exports.default = unevaluated; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map deleted file mode 100644 index a4872ea4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/index.ts"],"names":[],"mappings":";;AACA,mEAA2D;AAC3D,yDAAiD;AAEjD,MAAM,WAAW,GAAe,CAAC,+BAAqB,EAAE,0BAAgB,CAAC,CAAA;AAEzE,kBAAe,WAAW,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts deleted file mode 100644 index f108b6e4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", { - limit: number; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js deleted file mode 100644 index 0a0cd3aa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`, -}; -const def = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt) { - const { gen, schema, data, it } = cxt; - const items = it.items || 0; - if (items === true) - return; - const len = gen.const("len", (0, codegen_1._) `${data}.length`); - if (schema === false) { - cxt.setParams({ len: items }); - cxt.fail((0, codegen_1._) `${len} > ${items}`); - } - else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items}`); - gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items)); - cxt.ok(valid); - } - it.items = true; - function validateItems(valid, from) { - gen.forRange("i", from, len, (i) => { - cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedItems.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map deleted file mode 100644 index a8268f03..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedItems.ts"],"names":[],"mappings":";;AAOA,mDAAuD;AACvD,6CAA0D;AAI1D,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACnC,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,CAAA;QAC3B,IAAI,KAAK,KAAK,IAAI;YAAE,OAAM;QAC1B,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAA,WAAC,EAAA,GAAG,IAAI,SAAS,CAAC,CAAA;QAC/C,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,GAAG,CAAC,SAAS,CAAC,EAAC,GAAG,EAAE,KAAK,EAAC,CAAC,CAAA;YAC3B,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,MAAM,KAAK,EAAE,CAAC,CAAA;SAC/B;aAAM,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE;YACtE,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,WAAC,EAAA,GAAG,GAAG,OAAO,KAAK,EAAE,CAAC,CAAA;YACrD,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAA;YACrD,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;SACd;QACD,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QAEf,SAAS,aAAa,CAAC,KAAW,EAAE,IAAmB;YACrD,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;gBACjC,GAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,EAAE,YAAY,EAAE,WAAI,CAAC,GAAG,EAAC,EAAE,KAAK,CAAC,CAAA;gBACxF,IAAI,CAAC,EAAE,CAAC,SAAS;oBAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;YAC1D,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts deleted file mode 100644 index 0a041ff7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types"; -export declare type UnevaluatedPropertiesError = ErrorObject<"unevaluatedProperties", { - unevaluatedProperty: string; -}, AnySchema>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js deleted file mode 100644 index ad298499..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const names_1 = require("../../compile/names"); -const error = { - message: "must NOT have unevaluated properties", - params: ({ params }) => (0, codegen_1._) `{unevaluatedProperty: ${params.unevaluatedProperty}}`, -}; -const def = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const { gen, schema, data, errsCount, it } = cxt; - /* istanbul ignore if */ - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, props } = it; - if (props instanceof codegen_1.Name) { - gen.if((0, codegen_1._) `${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)))); - } - else if (props !== true) { - gen.forIn("key", data, (key) => props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key))); - } - it.props = true; - cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`); - function unevaluatedPropCode(key) { - if (schema === false) { - cxt.setParams({ unevaluatedProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (!(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: util_1.Type.Str, - }, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - function unevaluatedDynamic(evaluatedProps, key) { - return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`; - } - function unevaluatedStatic(evaluatedProps, key) { - const ps = []; - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) - ps.push((0, codegen_1._) `${key} !== ${p}`); - } - return (0, codegen_1.and)(...ps); - } - }, -}; -exports.default = def; -//# sourceMappingURL=unevaluatedProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map deleted file mode 100644 index f415251e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unevaluatedProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/unevaluated/unevaluatedProperties.ts"],"names":[],"mappings":";;AAMA,mDAA6D;AAC7D,6CAA0D;AAC1D,+CAAmC;AAQnC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,sCAAsC;IAC/C,MAAM,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,yBAAyB,MAAM,CAAC,mBAAmB,GAAG;CAC9E,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,uBAAuB;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACjC,WAAW,EAAE,IAAI;IACjB,KAAK;IACL,IAAI,CAAC,GAAG;QACN,MAAM,EAAC,GAAG,EAAE,M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BACX,IAAI,CAAC,SAAS;oBAAE,GAAG,CAAC,KAAK,EAAE,CAAA;gBAC3B,OAAM;aACP;YAED,IAAI,CAAC,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE;gBAClC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;gBAC/B,GAAG,CAAC,SAAS,CACX;oBACE,OAAO,EAAE,uBAAuB;oBAChC,QAAQ,EAAE,GAAG;oBACb,YAAY,EAAE,WAAI,CAAC,GAAG;iBACvB,EACD,KAAK,CACN,CAAA;gBACD,IAAI,CAAC,SAAS;oBAAE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;aACtD;QACH,CAAC;QAED,SAAS,kBAAkB,CAAC,cAAoB,EAAE,GAAS;YACzD,OAAO,IAAA,WAAC,EAAA,IAAI,cAAc,QAAQ,cAAc,IAAI,GAAG,GAAG,CAAA;QAC5D,CAAC;QAED,SAAS,iBAAiB,CAAC,cAAsC,EAAE,GAAS;YAC1E,MAAM,EAAE,GAAW,EAAE,CAAA;YACrB,KAAK,MAAM,CAAC,IAAI,cAAc,EAAE;gBAC9B,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI;oBAAE,EAAE,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;aAC5D;YACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;QACnB,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts deleted file mode 100644 index 85e11ce5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type ConstError = ErrorObject<"const", { - allowedValue: any; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js deleted file mode 100644 index 9564496a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to constant", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`, -}; -const def = { - keyword: "const", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schemaCode, schema } = cxt; - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); - } - else { - cxt.fail((0, codegen_1._) `${schema} !== ${data}`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=const.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map deleted file mode 100644 index 0cf6cd14..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/const.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/const.ts"],"names":[],"mappings":";;AAEA,mDAAuC;AACvC,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,kBAAkB,UAAU,GAAG;CAC3D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAC,GAAG,GAAG,CAAA;QAClD,IAAI,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,IAAI,QAAQ,CAAC,EAAE;YAClD,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,IAAA,cAAO,EAAC,GAAG,EAAE,eAAK,CAAC,IAAI,IAAI,KAAK,UAAU,GAAG,CAAC,CAAA;SAClE;aAAM;YACL,GAAG,CAAC,IAAI,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,QAAQ,IAAI,EAAE,CAAC,CAAA;SACnC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts deleted file mode 100644 index 2e25408e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -import { DependenciesErrorParams, PropertyDependencies } from "../applicator/dependencies"; -export declare type DependentRequiredError = ErrorObject<"dependentRequired", DependenciesErrorParams, PropertyDependencies>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js deleted file mode 100644 index 09e59639..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dependencies_1 = require("../applicator/dependencies"); -const def = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error: dependencies_1.error, - code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt), -}; -exports.default = def; -//# sourceMappingURL=dependentRequired.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map deleted file mode 100644 index c7e88f88..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependentRequired.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/dependentRequired.ts"],"names":[],"mappings":";;AACA,6DAKmC;AAQnC,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAL,oBAAK;IACL,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,mCAAoB,EAAC,GAAG,CAAC;CACzC,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts deleted file mode 100644 index dce653b5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type EnumError = ErrorObject<"enum", { - allowedValues: any[]; -}, any[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js deleted file mode 100644 index eab6487e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`, -}; -const def = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - if (!$data && schema.length === 0) - throw new Error("enum must have non-empty array"); - const useLoop = schema.length >= it.opts.loopEnum; - let eql; - const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default))); - let valid; - if (useLoop || $data) { - valid = gen.let("valid"); - cxt.block$data(valid, loopEnum); - } - else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const vSchema = gen.const("vSchema", schemaCode); - valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i))); - } - cxt.pass(valid); - function loopEnum() { - gen.assign(valid, false); - gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())); - } - function equalCode(vSchema, i) { - const sch = schema[i]; - return typeof sch === "object" && sch !== null - ? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])` - : (0, codegen_1._) `${data} === ${sch}`; - } - }, -}; -exports.default = def; -//# sourceMappingURL=enum.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map deleted file mode 100644 index 7b4e1eda..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/enum.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,+CAAuC;AAIvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,mBAAmB,UAAU,GAAG;CAC5D,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtD,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QACpF,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAA;QACjD,IAAI,GAAqB,CAAA;QACzB,MAAM,MAAM,GAAG,GAAS,EAAE,CAAC,CAAC,GAAG,aAAH,GAAG,cAAH,GAAG,IAAH,GAAG,GAAK,IAAA,cAAO,EAAC,GAAG,EAAE,eAAK,CAAC,EAAC,CAAA;QAExD,IAAI,KAAW,CAAA;QACf,IAAI,OAAO,IAAI,KAAK,EAAE;YACpB,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxB,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;S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ules/ajv/dist/vocabularies/validation/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.d.ts deleted file mode 100644 index 08cd2239..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ErrorObject, Vocabulary } from "../../types"; -import { LimitNumberError } from "./limitNumber"; -import { MultipleOfError } from "./multipleOf"; -import { PatternError } from "./pattern"; -import { RequiredError } from "./required"; -import { UniqueItemsError } from "./uniqueItems"; -import { ConstError } from "./const"; -import { EnumError } from "./enum"; -declare const validation: Vocabulary; -export default validation; -declare type LimitError = ErrorObject<"maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", { - limit: number; -}, number | { - $data: string; -}>; -export declare type ValidationKeywordError = LimitError | LimitNumberError | MultipleOfError | PatternError | RequiredError | UniqueItemsError | ConstError | EnumError; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js deleted file mode 100644 index 7b56b4e4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const limitNumber_1 = require("./limitNumber"); -const multipleOf_1 = require("./multipleOf"); -const limitLength_1 = require("./limitLength"); -const pattern_1 = require("./pattern"); -const limitProperties_1 = require("./limitProperties"); -const required_1 = require("./required"); -const limitItems_1 = require("./limitItems"); -const uniqueItems_1 = require("./uniqueItems"); -const const_1 = require("./const"); -const enum_1 = require("./enum"); -const validation = [ - // number - limitNumber_1.default, - multipleOf_1.default, - // string - limitLength_1.default, - pattern_1.default, - // object - limitProperties_1.default, - required_1.default, - // array - limitItems_1.default, - uniqueItems_1.default, - // any - { keyword: "type", schemaType: ["string", "array"] }, - { keyword: "nullable", schemaType: "boolean" }, - const_1.default, - enum_1.default, -]; -exports.default = validation; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map deleted file mode 100644 index 69436fb3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/index.ts"],"names":[],"mappings":";;AACA,+CAA2D;AAC3D,6CAAwD;AACxD,+CAAuC;AACvC,uCAA+C;AAC/C,uDAA+C;AAC/C,yCAAkD;AAClD,6CAAqC;AACrC,+CAA2D;AAC3D,mCAAgD;AAChD,iCAA6C;AAE7C,MAAM,UAAU,GAAe;IAC7B,SAAS;IACT,qBAAW;IACX,oBAAU;IACV,SAAS;IACT,qBAAW;IACX,iBAAO;IACP,SAAS;IACT,yBAAe;IACf,kBAAQ;IACR,QAAQ;IACR,oBAAU;IACV,qBAAW;IACX,MAAM;IACN,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC;IAClD,EAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC;IAC5C,eAAY;IACZ,cAAW;CACZ,CAAA;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js deleted file mode 100644 index c884dae4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../../compile/util"); -const def = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({ keyword, parentSchema, it }) { - if (parentSchema.contains === undefined) { - (0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`); - } - }, -}; -exports.default = def; -//# sourceMappingURL=limitContains.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map deleted file mode 100644 index 788010aa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitContains.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitContains.ts"],"names":[],"mappings":";;AAEA,6CAAkD;AAElD,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAa;QAC1C,IAAI,YAAY,CAAC,QAAQ,KAAK,SAAS,EAAE;YACvC,IAAA,sBAAe,EAAC,EAAE,EAAE,IAAI,OAAO,iCAAiC,CAAC,CAAA;SAClE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js deleted file mode 100644 index e1386f88..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxItems" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitItems.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map deleted file mode 100644 index 690c7345..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitItems.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACtD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,QAAQ,CAAA;IAC5D,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;IACjC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAC/D,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,WAAW,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACtD,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js deleted file mode 100644 index 6ae5f92e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const ucs2length_1 = require("../../runtime/ucs2length"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxLength" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode, it } = cxt; - const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT; - const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`; - cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitLength.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map deleted file mode 100644 index f09c35e5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitLength.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitLength.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AACvD,6CAA0C;AAC1C,yDAAiD;AAEjD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACvD,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QAC3C,MAAM,EAAE,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QAChE,MAAM,GAAG,GACP,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAA,cAAO,EAAC,GAAG,CAAC,GAAG,EAAE,oBAAU,CAAC,IAAI,IAAI,GAAG,CAAA;QAC7F,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts deleted file mode 100644 index 2d389085..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -declare type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"; -declare type Comparison = "<=" | ">=" | "<" | ">"; -export declare type LimitNumberError = ErrorObject; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js deleted file mode 100644 index a97c0eb9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const ops = codegen_1.operators; -const KWDs = { - maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }, -}; -const error = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`, -}; -const def = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitNumber.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map deleted file mode 100644 index 18a36533..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitNumber.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitNumber.ts"],"names":[],"mappings":";;AAEA,mDAA6D;AAE7D,MAAM,GAAG,GAAG,mBAAS,CAAA;AAMrB,MAAM,IAAI,GAA4D;IACpE,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;IACzD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;CAC1D,CAAA;AAQD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,WAAW,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,IAAI,UAAU,EAAE;IAC5F,MAAM,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAChC,IAAA,WAAC,EAAA,gBAAgB,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,YAAY,UAAU,GAAG;CACvE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,IAAI,IAAI,CAAC,OAAc,CAAC,CAAC,IAAI,IAAI,UAAU,aAAa,IAAI,GAAG,CAAC,CAAA;IACxF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts deleted file mode 100644 index cde2aa27..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CodeKeywordDefinition } from "../../types"; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js deleted file mode 100644 index e6fc40cc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxProperties" ? "more" : "fewer"; - return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`; - }, - params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`, -}; -const def = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`); - }, -}; -exports.default = def; -//# sourceMappingURL=limitProperties.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map deleted file mode 100644 index a695943a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"limitProperties.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitProperties.ts"],"names":[],"mappings":";;AAEA,mDAAuD;AAEvD,MAAM,KAAK,GAA2B;IACpC,OAAO,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QAC3D,OAAO,IAAA,aAAG,EAAA,iBAAiB,IAAI,SAAS,UAAU,aAAa,CAAA;IACjE,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,UAAU,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,MAAM,EAAE,GAAG,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAS,CAAC,EAAE,CAAA;QACpE,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,eAAe,IAAI,YAAY,EAAE,IAAI,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts deleted file mode 100644 index afa29d35..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type MultipleOfError = ErrorObject<"multipleOf", { - multipleOf: number; -}, number | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js deleted file mode 100644 index 43cf67b7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`, - params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`, -}; -const def = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt) { - const { gen, data, schemaCode, it } = cxt; - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision; - const res = gen.let("res"); - const invalid = prec - ? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : (0, codegen_1._) `${res} !== parseInt(${res})`; - cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`); - }, -}; -exports.default = def; -//# sourceMappingURL=multipleOf.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map deleted file mode 100644 index 9ef825b7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleOf.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/multipleOf.ts"],"names":[],"mappings":";;AAEA,mDAA4C;AAQ5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,EAAE;IACjE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,gBAAgB,UAAU,GAAG;CACzD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACvC,sEAAsE;QACtE,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAA;QACxC,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAC1B,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,IAAA,WAAC,EAAA,uBAAuB,GAAG,OAAO,GAAG,UAAU,IAAI,EAAE;YACvD,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,iBAAiB,GAAG,GAAG,CAAA;QAClC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,UAAU,cAAc,GAAG,MAAM,IAAI,IAAI,UAAU,KAAK,OAAO,IAAI,CAAC,CAAA;IACzF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts deleted file mode 100644 index bf232ffc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type PatternError = ErrorObject<"pattern", { - pattern: string; -}, string | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js deleted file mode 100644 index f8ccdf29..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const error = { - message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`, -}; -const def = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt) { - const { data, $data, schema, schemaCode, it } = cxt; - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : ""; - const regExp = $data ? (0, codegen_1._) `(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema); - cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`); - }, -}; -exports.default = def; -//# sourceMappingURL=pattern.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map deleted file mode 100644 index 82fa5d74..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/pattern.ts"],"names":[],"mappings":";;AAEA,kCAAkC;AAClC,mDAA4C;AAI5C,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,uBAAuB,UAAU,GAAG;IAClE,MAAM,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,aAAa,UAAU,GAAG;CACtD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACjD,8CAA8C;QAC9C,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,eAAe,UAAU,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,iBAAU,EAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QACrF,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,IAAI,MAAM,SAAS,IAAI,GAAG,CAAC,CAAA;IAC5C,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts deleted file mode 100644 index fe94d04a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type RequiredError = ErrorObject<"required", { - missingProperty: string; -}, string[] | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js deleted file mode 100644 index 1d8e2926..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("../code"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const error = { - message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`, - params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`, -}; -const def = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt) { - const { gen, schema, schemaCode, data, $data, it } = cxt; - const { opts } = it; - if (!$data && schema.length === 0) - return; - const useLoop = schema.length >= opts.loopRequired; - if (it.allErrors) - allErrorsMode(); - else - exitOnErrorMode(); - if (opts.strictRequired) { - const props = cxt.parentSchema.properties; - const { definedProperties } = cxt.it; - for (const requiredKey of schema) { - if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired); - } - } - } - function allErrorsMode() { - if (useLoop || $data) { - cxt.block$data(codegen_1.nil, loopAllRequired); - } - else { - for (const prop of schema) { - (0, code_1.checkReportMissingProp)(cxt, prop); - } - } - } - function exitOnErrorMode() { - const missing = gen.let("missing"); - if (useLoop || $data) { - const valid = gen.let("valid", true); - cxt.block$data(valid, () => loopUntilMissing(missing, valid)); - cxt.ok(valid); - } - else { - gen.if((0, code_1.checkMissingProp)(cxt, schema, missing)); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - function loopAllRequired() { - gen.forOf("prop", schemaCode, (prop) => { - cxt.setParams({ missingProperty: prop }); - gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error()); - }); - } - function loopUntilMissing(missing, valid) { - cxt.setParams({ missingProperty: missing }); - gen.forOf(missing, schemaCode, () => { - gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties)); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(); - gen.break(); - }); - }, codegen_1.nil); - } - }, -}; -exports.default = def; -//# sourceMappingURL=required.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map deleted file mode 100644 index 0fcbee58..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/required.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"required.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/required.ts"],"names":[],"mappings":";;AAEA,kCAMgB;AAChB,mDAAkE;AAClE,6CAAkD;AAQlD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,eAAe,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,gCAAgC,eAAe,GAAG;IAC/F,MAAM,EAAE,CAAC,EAAC,MAA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,gBAAgB,CAAC,OAAa,EAAE,KAAW;YAClD,GAAG,CAAC,SAAS,CAAC,EAAC,eAAe,EAAE,OAAO,EAAC,CAAC,CAAA;YACzC,GAAG,CAAC,KAAK,CACP,OAAO,EACP,UAAkB,EAClB,GAAG,EAAE;gBACH,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,IAAA,qBAAc,EAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;gBACzE,GAAG,CAAC,EAAE,CAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,GAAG,EAAE;oBACtB,GAAG,CAAC,KAAK,EAAE,CAAA;oBACX,GAAG,CAAC,KAAK,EAAE,CAAA;gBACb,CAAC,CAAC,CAAA;YACJ,CAAC,EACD,aAAG,CACJ,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts deleted file mode 100644 index c4f4b4ca..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CodeKeywordDefinition, ErrorObject } from "../../types"; -export declare type UniqueItemsError = ErrorObject<"uniqueItems", { - i: number; - j: number; -}, boolean | { - $data: string; -}>; -declare const def: CodeKeywordDefinition; -export default def; diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js deleted file mode 100644 index cdbecea1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dataType_1 = require("../../compile/validate/dataType"); -const codegen_1 = require("../../compile/codegen"); -const util_1 = require("../../compile/util"); -const equal_1 = require("../../runtime/equal"); -const error = { - message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`, -}; -const def = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt) { - const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt; - if (!$data && !schema) - return; - const valid = gen.let("valid"); - const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : []; - cxt.block$data(valid, validateUniqueItems, (0, codegen_1._) `${schemaCode} === false`); - cxt.ok(valid); - function validateUniqueItems() { - const i = gen.let("i", (0, codegen_1._) `${data}.length`); - const j = gen.let("j"); - cxt.setParams({ i, j }); - gen.assign(valid, true); - gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)); - } - function canOptimize() { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array"); - } - function loopN(i, j) { - const item = gen.name("item"); - const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong); - const indices = gen.const("indices", (0, codegen_1._) `{}`); - gen.for((0, codegen_1._) `;${i}--;`, () => { - gen.let(item, (0, codegen_1._) `${data}[${i}]`); - gen.if(wrongType, (0, codegen_1._) `continue`); - if (itemTypes.length > 1) - gen.if((0, codegen_1._) `typeof ${item} == "string"`, (0, codegen_1._) `${item} += "_"`); - gen - .if((0, codegen_1._) `typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, (0, codegen_1._) `${indices}[${item}]`); - cxt.error(); - gen.assign(valid, false).break(); - }) - .code((0, codegen_1._) `${indices}[${item}] = ${i}`); - }); - } - function loopN2(i, j) { - const eql = (0, util_1.useFunc)(gen, equal_1.default); - const outer = gen.name("outer"); - gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error(); - gen.assign(valid, false).break(outer); - }))); - } - }, -}; -exports.default = def; -//# sourceMappingURL=uniqueItems.js.map \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map b/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map deleted file mode 100644 index 46eb7a2a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uniqueItems.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/uniqueItems.ts"],"names":[],"mappings":";;AAEA,8DAAwF;AACxF,mDAAkD;AAClD,6CAA0C;AAC1C,+CAAuC;AAQvC,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAC5B,IAAA,aAAG,EAAA,2CAA2C,CAAC,QAAQ,CAAC,iBAAiB;IAC3E,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,OAAO,CAAC,QAAQ,CAAC,GAAG;CACpD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;Q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EAAC,GAAG,EAAE,eAAK,CAAC,CAAA;YAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC/B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAA,WAAC,EAAA,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CACrC,GAAG,CAAC,GAAG,CAAC,IAAA,WAAC,EAAA,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CACpC,GAAG,CAAC,EAAE,CAAC,IAAA,WAAC,EAAA,GAAG,GAAG,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;gBACnD,GAAG,CAAC,KAAK,EAAE,CAAA;gBACX,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACvC,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2019.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2019.ts deleted file mode 100644 index 0311c4d0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2019.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft7Vocabularies from "./vocabularies/draft7" -import dynamicVocabulary from "./vocabularies/dynamic" -import nextVocabulary from "./vocabularies/next" -import unevaluatedVocabulary from "./vocabularies/unevaluated" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2019 from "./refs/json-schema-2019-09" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema" - -class Ajv2019 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(dynamicVocabulary) - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - this.addVocabulary(nextVocabulary) - this.addVocabulary(unevaluatedVocabulary) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2019.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2019 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2019 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2020.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2020.ts deleted file mode 100644 index beff5c7b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/2020.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore, {Options} from "./core" - -import draft2020Vocabularies from "./vocabularies/draft2020" -import discriminator from "./vocabularies/discriminator" -import addMetaSchema2020 from "./refs/json-schema-2020-12" - -const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema" - -class Ajv2020 extends AjvCore { - constructor(opts: Options = {}) { - super({ - ...opts, - dynamicRef: true, - next: true, - unevaluated: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - draft2020Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - const {$data, meta} = this.opts - if (!meta) return - addMetaSchema2020.call(this, $data) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv2020 -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv2020 - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/ajv.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/ajv.ts deleted file mode 100644 index bbfa5a4e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/ajv.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type {AnySchemaObject} from "./types" -import AjvCore from "./core" -import draft7Vocabularies from "./vocabularies/draft7" -import discriminator from "./vocabularies/discriminator" -import * as draft7MetaSchema from "./refs/json-schema-draft-07.json" - -const META_SUPPORT_DATA = ["/properties"] - -const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema" - -class Ajv extends AjvCore { - _addVocabularies(): void { - super._addVocabularies() - draft7Vocabularies.forEach((v) => this.addVocabulary(v)) - if (this.opts.discriminator) this.addKeyword(discriminator) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - const metaSchema = this.opts.$data - ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) - : draft7MetaSchema - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false) - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } -} - -module.exports = exports = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - SchemaValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/code.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/code.ts deleted file mode 100644 index b1770197..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -export abstract class _CodeOrName { - abstract readonly str: string - abstract readonly names: UsedNames - abstract toString(): string - abstract emptyStr(): boolean -} - -export const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i - -export class Name extends _CodeOrName { - readonly str: string - constructor(s: string) { - super() - if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier") - this.str = s - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - return false - } - - get names(): UsedNames { - return {[this.str]: 1} - } -} - -export class _Code extends _CodeOrName { - readonly _items: readonly CodeItem[] - private _str?: string - private _names?: UsedNames - - constructor(code: string | readonly CodeItem[]) { - super() - this._items = typeof code === "string" ? [code] : code - } - - toString(): string { - return this.str - } - - emptyStr(): boolean { - if (this._items.length > 1) return false - const item = this._items[0] - return item === "" || item === '""' - } - - get str(): string { - return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, "")) - } - - get names(): UsedNames { - return (this._names ??= this._items.reduce((names: UsedNames, c) => { - if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1 - return names - }, {})) - } -} - -export type CodeItem = Name | string | number | boolean | null - -export type UsedNames = Record - -export type Code = _Code | Name - -export type SafeExpr = Code | number | boolean | null - -export const nil = new _Code("") - -type CodeArg = SafeExpr | string | undefined - -export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code { - const code: CodeItem[] = [strs[0]] - let i = 0 - while (i < args.length) { - addCodeArg(code, args[i]) - code.push(strs[++i]) - } - return new _Code(code) -} - -const plus = new _Code("+") - -export function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code { - const expr: CodeItem[] = [safeStringify(strs[0])] - let i = 0 - while (i < args.length) { - expr.push(plus) - addCodeArg(expr, args[i]) - expr.push(plus, safeStringify(strs[++i])) - } - optimize(expr) - return new _Code(expr) -} - -export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void { - if (arg instanceof _Code) code.push(...arg._items) - else if (arg instanceof Name) code.push(arg) - else code.push(interpolate(arg)) -} - -function optimize(expr: CodeItem[]): void { - let i = 1 - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]) - if (res !== undefined) { - expr.splice(i - 1, 3, res) - continue - } - expr[i++] = "+" - } - i++ - } -} - -function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined { - if (b === '""') return a - if (a === '""') return b - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') return - if (typeof b != "string") return `${a.slice(0, -1)}${b}"` - if (b[0] === '"') return a.slice(0, -1) + b.slice(1) - return - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) return `"${a}${b.slice(1)}` - return -} - -export function strConcat(c1: Code, c2: Code): Code { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}` -} - -// TODO do not allow arrays here -function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string { - return typeof x == "number" || typeof x == "boolean" || x === null - ? x - : safeStringify(Array.isArray(x) ? x.join(",") : x) -} - -export function stringify(x: unknown): Code { - return new _Code(safeStringify(x)) -} - -export function safeStringify(x: unknown): string { - return JSON.stringify(x) - .replace(/\u2028/g, "\\u2028") - .replace(/\u2029/g, "\\u2029") -} - -export function getProperty(key: Code | string | number): Code { - return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]` -} - -//Does best effort to format the name properly -export function getEsmExportName(key: Code | string | number): Code { - if (typeof key == "string" && IDENTIFIER.test(key)) { - return new _Code(`${key}`) - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`) -} - -export function regexpCode(rx: RegExp): Code { - return new _Code(rx.toString()) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/index.ts deleted file mode 100644 index 9d29055d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/index.ts +++ /dev/null @@ -1,832 +0,0 @@ -import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from "./scope" -import {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from "./code" -import {Scope, varKinds} from "./scope" - -export {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from "./code" -export {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from "./scope" - -// type for expressions that can be safely inserted in code without quotes -export type SafeExpr = Code | number | boolean | null - -// type that is either Code of function that adds code to CodeGen instance using its methods -export type Block = Code | (() => void) - -export const operators = { - GT: new _Code(">"), - GTE: new _Code(">="), - LT: new _Code("<"), - LTE: new _Code("<="), - EQ: new _Code("==="), - NEQ: new _Code("!=="), - NOT: new _Code("!"), - OR: new _Code("||"), - AND: new _Code("&&"), - ADD: new _Code("+"), -} - -abstract class Node { - abstract readonly names: UsedNames - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - return this - } - - optimizeNames(_names: UsedNames, _constants: Constants): this | undefined { - return this - } - - // get count(): number { - // return 1 - // } -} - -class Def extends Node { - constructor(private readonly varKind: Name, private readonly name: Name, private rhs?: SafeExpr) { - super() - } - - render({es5, _n}: CGOptions): string { - const varKind = es5 ? varKinds.var : this.varKind - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}` - return `${varKind} ${this.name}${rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!names[this.name.str]) return - if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - return this.rhs instanceof _CodeOrName ? this.rhs.names : {} - } -} - -class Assign extends Node { - constructor(readonly lhs: Code, public rhs: SafeExpr, private readonly sideEffects?: boolean) { - super() - } - - render({_n}: CGOptions): string { - return `${this.lhs} = ${this.rhs};` + _n - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return - this.rhs = optimizeExpr(this.rhs, names, constants) - return this - } - - get names(): UsedNames { - const names = this.lhs instanceof Name ? {} : {...this.lhs.names} - return addExprNames(names, this.rhs) - } -} - -class AssignOp extends Assign { - constructor(lhs: Code, private readonly op: Code, rhs: SafeExpr, sideEffects?: boolean) { - super(lhs, rhs, sideEffects) - } - - render({_n}: CGOptions): string { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n - } -} - -class Label extends Node { - readonly names: UsedNames = {} - constructor(readonly label: Name) { - super() - } - - render({_n}: CGOptions): string { - return `${this.label}:` + _n - } -} - -class Break extends Node { - readonly names: UsedNames = {} - constructor(readonly label?: Code) { - super() - } - - render({_n}: CGOptions): string { - const label = this.label ? ` ${this.label}` : "" - return `break${label};` + _n - } -} - -class Throw extends Node { - constructor(readonly error: Code) { - super() - } - - render({_n}: CGOptions): string { - return `throw ${this.error};` + _n - } - - get names(): UsedNames { - return this.error.names - } -} - -class AnyCode extends Node { - constructor(private code: SafeExpr) { - super() - } - - render({_n}: CGOptions): string { - return `${this.code};` + _n - } - - optimizeNodes(): this | undefined { - return `${this.code}` ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this { - this.code = optimizeExpr(this.code, names, constants) - return this - } - - get names(): UsedNames { - return this.code instanceof _CodeOrName ? this.code.names : {} - } -} - -abstract class ParentNode extends Node { - constructor(readonly nodes: ChildNode[] = []) { - super() - } - - render(opts: CGOptions): string { - return this.nodes.reduce((code, n) => code + n.render(opts), "") - } - - optimizeNodes(): this | ChildNode | ChildNode[] | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - const n = nodes[i].optimizeNodes() - if (Array.isArray(n)) nodes.splice(i, 1, ...n) - else if (n) nodes[i] = n - else nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - const {nodes} = this - let i = nodes.length - while (i--) { - // iterating backwards improves 1-pass optimization - const n = nodes[i] - if (n.optimizeNames(names, constants)) continue - subtractNames(names, n.names) - nodes.splice(i, 1) - } - return nodes.length > 0 ? this : undefined - } - - get names(): UsedNames { - return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {}) - } - - // get count(): number { - // return this.nodes.reduce((c, n) => c + n.count, 1) - // } -} - -abstract class BlockNode extends ParentNode { - render(opts: CGOptions): string { - return "{" + opts._n + super.render(opts) + "}" + opts._n - } -} - -class Root extends ParentNode {} - -class Else extends BlockNode { - static readonly kind = "else" -} - -class If extends BlockNode { - static readonly kind = "if" - else?: If | Else - constructor(private condition: Code | boolean, nodes?: ChildNode[]) { - super(nodes) - } - - render(opts: CGOptions): string { - let code = `if(${this.condition})` + super.render(opts) - if (this.else) code += "else " + this.else.render(opts) - return code - } - - optimizeNodes(): If | ChildNode[] | undefined { - super.optimizeNodes() - const cond = this.condition - if (cond === true) return this.nodes // else is ignored here - let e = this.else - if (e) { - const ns = e.optimizeNodes() - e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined) - } - if (e) { - if (cond === false) return e instanceof If ? e : e.nodes - if (this.nodes.length) return this - return new If(not(cond), e instanceof If ? [e] : e.nodes) - } - if (cond === false || !this.nodes.length) return undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - this.else = this.else?.optimizeNames(names, constants) - if (!(super.optimizeNames(names, constants) || this.else)) return - this.condition = optimizeExpr(this.condition, names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - addExprNames(names, this.condition) - if (this.else) addNames(names, this.else.names) - return names - } - - // get count(): number { - // return super.count + (this.else?.count || 0) - // } -} - -abstract class For extends BlockNode { - static readonly kind = "for" -} - -class ForLoop extends For { - constructor(private iteration: Code) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.iteration})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iteration = optimizeExpr(this.iteration, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iteration.names) - } -} - -class ForRange extends For { - constructor( - private readonly varKind: Name, - private readonly name: Name, - private readonly from: SafeExpr, - private readonly to: SafeExpr - ) { - super() - } - - render(opts: CGOptions): string { - const varKind = opts.es5 ? varKinds.var : this.varKind - const {name, from, to} = this - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts) - } - - get names(): UsedNames { - const names = addExprNames(super.names, this.from) - return addExprNames(names, this.to) - } -} - -class ForIter extends For { - constructor( - private readonly loop: "of" | "in", - private readonly varKind: Name, - private readonly name: Name, - private iterable: Code - ) { - super() - } - - render(opts: CGOptions): string { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts) - } - - optimizeNames(names: UsedNames, constants: Constants): this | undefined { - if (!super.optimizeNames(names, constants)) return - this.iterable = optimizeExpr(this.iterable, names, constants) - return this - } - - get names(): UsedNames { - return addNames(super.names, this.iterable.names) - } -} - -class Func extends BlockNode { - static readonly kind = "func" - constructor(public name: Name, public args: Code, public async?: boolean) { - super() - } - - render(opts: CGOptions): string { - const _async = this.async ? "async " : "" - return `${_async}function ${this.name}(${this.args})` + super.render(opts) - } -} - -class Return extends ParentNode { - static readonly kind = "return" - - render(opts: CGOptions): string { - return "return " + super.render(opts) - } -} - -class Try extends BlockNode { - catch?: Catch - finally?: Finally - - render(opts: CGOptions): string { - let code = "try" + super.render(opts) - if (this.catch) code += this.catch.render(opts) - if (this.finally) code += this.finally.render(opts) - return code - } - - optimizeNodes(): this { - super.optimizeNodes() - this.catch?.optimizeNodes() as Catch | undefined - this.finally?.optimizeNodes() as Finally | undefined - return this - } - - optimizeNames(names: UsedNames, constants: Constants): this { - super.optimizeNames(names, constants) - this.catch?.optimizeNames(names, constants) - this.finally?.optimizeNames(names, constants) - return this - } - - get names(): UsedNames { - const names = super.names - if (this.catch) addNames(names, this.catch.names) - if (this.finally) addNames(names, this.finally.names) - return names - } - - // get count(): number { - // return super.count + (this.catch?.count || 0) + (this.finally?.count || 0) - // } -} - -class Catch extends BlockNode { - static readonly kind = "catch" - constructor(readonly error: Name) { - super() - } - - render(opts: CGOptions): string { - return `catch(${this.error})` + super.render(opts) - } -} - -class Finally extends BlockNode { - static readonly kind = "finally" - render(opts: CGOptions): string { - return "finally" + super.render(opts) - } -} - -type StartBlockNode = If | For | Func | Return | Try - -type LeafNode = Def | Assign | Label | Break | Throw | AnyCode - -type ChildNode = StartBlockNode | LeafNode - -type EndBlockNodeType = - | typeof If - | typeof Else - | typeof For - | typeof Func - | typeof Return - | typeof Catch - | typeof Finally - -type Constants = Record - -export interface CodeGenOptions { - es5?: boolean - lines?: boolean - ownProperties?: boolean -} - -interface CGOptions extends CodeGenOptions { - _n: "\n" | "" -} - -export class CodeGen { - readonly _scope: Scope - readonly _extScope: ValueScope - readonly _values: ScopeValueSets = {} - private readonly _nodes: ParentNode[] - private readonly _blockStarts: number[] = [] - private readonly _constants: Constants = {} - private readonly opts: CGOptions - - constructor(extScope: ValueScope, opts: CodeGenOptions = {}) { - this.opts = {...opts, _n: opts.lines ? "\n" : ""} - this._extScope = extScope - this._scope = new Scope({parent: extScope}) - this._nodes = [new Root()] - } - - toString(): string { - return this._root.render(this.opts) - } - - // returns unique name in the internal scope - name(prefix: string): Name { - return this._scope.name(prefix) - } - - // reserves unique name in the external scope - scopeName(prefix: string): ValueScopeName { - return this._extScope.name(prefix) - } - - // reserves unique name in the external scope and assigns value to it - scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name { - const name = this._extScope.value(prefixOrName, value) - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()) - vs.add(name) - return name - } - - getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - return this._extScope.getValue(prefix, keyOrRef) - } - - // return code that assigns values in the external scope to the names that are used internally - // (same names that were returned by gen.scopeName or gen.scopeValue) - scopeRefs(scopeName: Name): Code { - return this._extScope.scopeRefs(scopeName, this._values) - } - - scopeCode(): Code { - return this._extScope.scopeCode(this._values) - } - - private _def( - varKind: Name, - nameOrPrefix: Name | string, - rhs?: SafeExpr, - constant?: boolean - ): Name { - const name = this._scope.toName(nameOrPrefix) - if (rhs !== undefined && constant) this._constants[name.str] = rhs - this._leafNode(new Def(varKind, name, rhs)) - return name - } - - // `const` declaration (`var` in es5 mode) - const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.const, nameOrPrefix, rhs, _constant) - } - - // `let` declaration with optional assignment (`var` in es5 mode) - let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.let, nameOrPrefix, rhs, _constant) - } - - // `var` declaration with optional assignment - var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { - return this._def(varKinds.var, nameOrPrefix, rhs, _constant) - } - - // assignment code - assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen { - return this._leafNode(new Assign(lhs, rhs, sideEffects)) - } - - // `+=` code - add(lhs: Code, rhs: SafeExpr): CodeGen { - return this._leafNode(new AssignOp(lhs, operators.ADD, rhs)) - } - - // appends passed SafeExpr to code or executes Block - code(c: Block | SafeExpr): CodeGen { - if (typeof c == "function") c() - else if (c !== nil) this._leafNode(new AnyCode(c)) - return this - } - - // returns code for object literal for the passed argument list of key-value pairs - object(...keyValues: [Name | string, SafeExpr | string][]): _Code { - const code: CodeItem[] = ["{"] - for (const [key, value] of keyValues) { - if (code.length > 1) code.push(",") - code.push(key) - if (key !== value || this.opts.es5) { - code.push(":") - addCodeArg(code, value) - } - } - code.push("}") - return new _Code(code) - } - - // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) - if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen { - this._blockNode(new If(condition)) - - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf() - } else if (thenBody) { - this.code(thenBody).endIf() - } else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body') - } - return this - } - - // `else if` clause - invalid without `if` or after `else` clauses - elseIf(condition: Code | boolean): CodeGen { - return this._elseNode(new If(condition)) - } - - // `else` clause - only valid after `if` or `else if` clauses - else(): CodeGen { - return this._elseNode(new Else()) - } - - // end `if` statement (needed if gen.if was used only with condition) - endIf(): CodeGen { - return this._endBlockNode(If, Else) - } - - private _for(node: For, forBody?: Block): CodeGen { - this._blockNode(node) - if (forBody) this.code(forBody).endFor() - return this - } - - // a generic `for` clause (or statement if `forBody` is passed) - for(iteration: Code, forBody?: Block): CodeGen { - return this._for(new ForLoop(iteration), forBody) - } - - // `for` statement for a range of values - forRange( - nameOrPrefix: Name | string, - from: SafeExpr, - to: SafeExpr, - forBody: (index: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)) - } - - // `for-of` statement (in es5 mode replace with a normal for loop) - forOf( - nameOrPrefix: Name | string, - iterable: Code, - forBody: (item: Name) => void, - varKind: Code = varKinds.const - ): CodeGen { - const name = this._scope.toName(nameOrPrefix) - if (this.opts.es5) { - const arr = iterable instanceof Name ? iterable : this.var("_arr", iterable) - return this.forRange("_i", 0, _`${arr}.length`, (i) => { - this.var(name, _`${arr}[${i}]`) - forBody(name) - }) - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)) - } - - // `for-in` statement. - // With option `ownProperties` replaced with a `for-of` loop for object keys - forIn( - nameOrPrefix: Name | string, - obj: Code, - forBody: (item: Name) => void, - varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const - ): CodeGen { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody) - } - const name = this._scope.toName(nameOrPrefix) - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)) - } - - // end `for` loop - endFor(): CodeGen { - return this._endBlockNode(For) - } - - // `label` statement - label(label: Name): CodeGen { - return this._leafNode(new Label(label)) - } - - // `break` statement - break(label?: Code): CodeGen { - return this._leafNode(new Break(label)) - } - - // `return` statement - return(value: Block | SafeExpr): CodeGen { - const node = new Return() - this._blockNode(node) - this.code(value) - if (node.nodes.length !== 1) throw new Error('CodeGen: "return" should have one node') - return this._endBlockNode(Return) - } - - // `try` statement - try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen { - if (!catchCode && !finallyCode) throw new Error('CodeGen: "try" without "catch" and "finally"') - const node = new Try() - this._blockNode(node) - this.code(tryBody) - if (catchCode) { - const error = this.name("e") - this._currNode = node.catch = new Catch(error) - catchCode(error) - } - if (finallyCode) { - this._currNode = node.finally = new Finally() - this.code(finallyCode) - } - return this._endBlockNode(Catch, Finally) - } - - // `throw` statement - throw(error: Code): CodeGen { - return this._leafNode(new Throw(error)) - } - - // start self-balancing block - block(body?: Block, nodeCount?: number): CodeGen { - this._blockStarts.push(this._nodes.length) - if (body) this.code(body).endBlock(nodeCount) - return this - } - - // end the current self-balancing block - endBlock(nodeCount?: number): CodeGen { - const len = this._blockStarts.pop() - if (len === undefined) throw new Error("CodeGen: not in self-balancing block") - const toClose = this._nodes.length - len - if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`) - } - this._nodes.length = len - return this - } - - // `function` heading (or definition if funcBody is passed) - func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen { - this._blockNode(new Func(name, args, async)) - if (funcBody) this.code(funcBody).endFunc() - return this - } - - // end function definition - endFunc(): CodeGen { - return this._endBlockNode(Func) - } - - optimize(n = 1): void { - while (n-- > 0) { - this._root.optimizeNodes() - this._root.optimizeNames(this._root.names, this._constants) - } - } - - private _leafNode(node: LeafNode): CodeGen { - this._currNode.nodes.push(node) - return this - } - - private _blockNode(node: StartBlockNode): void { - this._currNode.nodes.push(node) - this._nodes.push(node) - } - - private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen { - const n = this._currNode - if (n instanceof N1 || (N2 && n instanceof N2)) { - this._nodes.pop() - return this - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`) - } - - private _elseNode(node: If | Else): CodeGen { - const n = this._currNode - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"') - } - this._currNode = n.else = node - return this - } - - private get _root(): Root { - return this._nodes[0] as Root - } - - private get _currNode(): ParentNode { - const ns = this._nodes - return ns[ns.length - 1] - } - - private set _currNode(node: ParentNode) { - const ns = this._nodes - ns[ns.length - 1] = node - } - - // get nodeCount(): number { - // return this._root.count - // } -} - -function addNames(names: UsedNames, from: UsedNames): UsedNames { - for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0) - return names -} - -function addExprNames(names: UsedNames, from: SafeExpr): UsedNames { - return from instanceof _CodeOrName ? addNames(names, from.names) : names -} - -function optimizeExpr(expr: T, names: UsedNames, constants: Constants): T -function optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr { - if (expr instanceof Name) return replaceName(expr) - if (!canOptimize(expr)) return expr - return new _Code( - expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => { - if (c instanceof Name) c = replaceName(c) - if (c instanceof _Code) items.push(...c._items) - else items.push(c) - return items - }, []) - ) - - function replaceName(n: Name): SafeExpr { - const c = constants[n.str] - if (c === undefined || names[n.str] !== 1) return n - delete names[n.str] - return c - } - - function canOptimize(e: SafeExpr): e is _Code { - return ( - e instanceof _Code && - e._items.some( - (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined - ) - ) - } -} - -function subtractNames(names: UsedNames, from: UsedNames): void { - for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0) -} - -export function not(x: T): T -export function not(x: Code | SafeExpr): Code | SafeExpr { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : _`!${par(x)}` -} - -const andCode = mappend(operators.AND) - -// boolean AND (&&) expression with the passed arguments -export function and(...args: Code[]): Code { - return args.reduce(andCode) -} - -const orCode = mappend(operators.OR) - -// boolean OR (||) expression with the passed arguments -export function or(...args: Code[]): Code { - return args.reduce(orCode) -} - -type MAppend = (x: Code, y: Code) => Code - -function mappend(op: Code): MAppend { - return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`) -} - -function par(x: Code): Code { - return x instanceof Name ? x : _`(${x})` -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/scope.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/scope.ts deleted file mode 100644 index 51199229..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/codegen/scope.ts +++ /dev/null @@ -1,215 +0,0 @@ -import {_, nil, Code, Name} from "./code" - -interface NameGroup { - prefix: string - index: number -} - -export interface NameValue { - ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure - key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used - code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`) -} - -export type ValueReference = unknown // possibly make CodeGen parameterized type on this type - -class ValueError extends Error { - readonly value?: NameValue - constructor(name: ValueScopeName) { - super(`CodeGen: "code" for ${name} not defined`) - this.value = name.value - } -} - -interface ScopeOptions { - prefixes?: Set - parent?: Scope -} - -interface ValueScopeOptions extends ScopeOptions { - scope: ScopeStore - es5?: boolean - lines?: boolean -} - -export type ScopeStore = Record - -type ScopeValues = { - [Prefix in string]?: Map -} - -export type ScopeValueSets = { - [Prefix in string]?: Set -} - -export enum UsedValueState { - Started, - Completed, -} - -export type UsedScopeValues = { - [Prefix in string]?: Map -} - -export const varKinds = { - const: new Name("const"), - let: new Name("let"), - var: new Name("var"), -} - -export class Scope { - protected readonly _names: {[Prefix in string]?: NameGroup} = {} - protected readonly _prefixes?: Set - protected readonly _parent?: Scope - - constructor({prefixes, parent}: ScopeOptions = {}) { - this._prefixes = prefixes - this._parent = parent - } - - toName(nameOrPrefix: Name | string): Name { - return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix) - } - - name(prefix: string): Name { - return new Name(this._newName(prefix)) - } - - protected _newName(prefix: string): string { - const ng = this._names[prefix] || this._nameGroup(prefix) - return `${prefix}${ng.index++}` - } - - private _nameGroup(prefix: string): NameGroup { - if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`) - } - return (this._names[prefix] = {prefix, index: 0}) - } -} - -interface ScopePath { - property: string - itemIndex: number -} - -export class ValueScopeName extends Name { - readonly prefix: string - value?: NameValue - scopePath?: Code - - constructor(prefix: string, nameStr: string) { - super(nameStr) - this.prefix = prefix - } - - setValue(value: NameValue, {property, itemIndex}: ScopePath): void { - this.value = value - this.scopePath = _`.${new Name(property)}[${itemIndex}]` - } -} - -interface VSOptions extends ValueScopeOptions { - _n: Code -} - -const line = _`\n` - -export class ValueScope extends Scope { - protected readonly _values: ScopeValues = {} - protected readonly _scope: ScopeStore - readonly opts: VSOptions - - constructor(opts: ValueScopeOptions) { - super(opts) - this._scope = opts.scope - this.opts = {...opts, _n: opts.lines ? line : nil} - } - - get(): ScopeStore { - return this._scope - } - - name(prefix: string): ValueScopeName { - return new ValueScopeName(prefix, this._newName(prefix)) - } - - value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName { - if (value.ref === undefined) throw new Error("CodeGen: ref must be passed in value") - const name = this.toName(nameOrPrefix) as ValueScopeName - const {prefix} = name - const valueKey = value.key ?? value.ref - let vs = this._values[prefix] - if (vs) { - const _name = vs.get(valueKey) - if (_name) return _name - } else { - vs = this._values[prefix] = new Map() - } - vs.set(valueKey, name) - - const s = this._scope[prefix] || (this._scope[prefix] = []) - const itemIndex = s.length - s[itemIndex] = value.ref - name.setValue(value, {property: prefix, itemIndex}) - return name - } - - getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { - const vs = this._values[prefix] - if (!vs) return - return vs.get(keyOrRef) - } - - scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code { - return this._reduceValues(values, (name: ValueScopeName) => { - if (name.scopePath === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return _`${scopeName}${name.scopePath}` - }) - } - - scopeCode( - values: ScopeValues | ScopeValueSets = this._values, - usedValues?: UsedScopeValues, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - return this._reduceValues( - values, - (name: ValueScopeName) => { - if (name.value === undefined) throw new Error(`CodeGen: name "${name}" has no value`) - return name.value.code - }, - usedValues, - getCode - ) - } - - private _reduceValues( - values: ScopeValues | ScopeValueSets, - valueCode: (n: ValueScopeName) => Code | undefined, - usedValues: UsedScopeValues = {}, - getCode?: (n: ValueScopeName) => Code | undefined - ): Code { - let code: Code = nil - for (const prefix in values) { - const vs = values[prefix] - if (!vs) continue - const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map()) - vs.forEach((name: ValueScopeName) => { - if (nameSet.has(name)) return - nameSet.set(name, UsedValueState.Started) - let c = valueCode(name) - if (c) { - const def = this.opts.es5 ? varKinds.var : varKinds.const - code = _`${code}${def} ${name} = ${c};${this.opts._n}` - } else if ((c = getCode?.(name))) { - code = _`${code}${c}${this.opts._n}` - } else { - throw new ValueError(name) - } - nameSet.set(name, UsedValueState.Completed) - }) - } - return code - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/errors.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/errors.ts deleted file mode 100644 index 18424a0f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/errors.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type {KeywordErrorCxt, KeywordErrorDefinition} from "../types" -import type {SchemaCxt} from "./index" -import {CodeGen, _, str, strConcat, Code, Name} from "./codegen" -import {SafeExpr} from "./codegen/code" -import {getErrorPath, Type} from "./util" -import N from "./names" - -export const keywordError: KeywordErrorDefinition = { - message: ({keyword}) => str`must pass "${keyword}" keyword validation`, -} - -export const keyword$DataError: KeywordErrorDefinition = { - message: ({keyword, schemaType}) => - schemaType - ? str`"${keyword}" keyword must be ${schemaType} ($data)` - : str`"${keyword}" keyword is invalid ($data)`, -} - -export interface ErrorPaths { - instancePath?: Code - schemaPath?: string - parentSchema?: boolean -} - -export function reportError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths, - overrideAllErrors?: boolean -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - if (overrideAllErrors ?? (compositeRule || allErrors)) { - addError(gen, errObj) - } else { - returnErrors(it, _`[${errObj}]`) - } -} - -export function reportExtraError( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition = keywordError, - errorPaths?: ErrorPaths -): void { - const {it} = cxt - const {gen, compositeRule, allErrors} = it - const errObj = errorObjectCode(cxt, error, errorPaths) - addError(gen, errObj) - if (!(compositeRule || allErrors)) { - returnErrors(it, N.vErrors) - } -} - -export function resetErrorsCount(gen: CodeGen, errsCount: Name): void { - gen.assign(N.errors, errsCount) - gen.if(_`${N.vErrors} !== null`, () => - gen.if( - errsCount, - () => gen.assign(_`${N.vErrors}.length`, errsCount), - () => gen.assign(N.vErrors, null) - ) - ) -} - -export function extendErrors({ - gen, - keyword, - schemaValue, - data, - errsCount, - it, -}: KeywordErrorCxt): void { - /* istanbul ignore if */ - if (errsCount === undefined) throw new Error("ajv implementation error") - const err = gen.name("err") - gen.forRange("i", errsCount, N.errors, (i) => { - gen.const(err, _`${N.vErrors}[${i}]`) - gen.if(_`${err}.instancePath === undefined`, () => - gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath)) - ) - gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`) - if (it.opts.verbose) { - gen.assign(_`${err}.schema`, schemaValue) - gen.assign(_`${err}.data`, data) - } - }) -} - -function addError(gen: CodeGen, errObj: Code): void { - const err = gen.const("err", errObj) - gen.if( - _`${N.vErrors} === null`, - () => gen.assign(N.vErrors, _`[${err}]`), - _`${N.vErrors}.push(${err})` - ) - gen.code(_`${N.errors}++`) -} - -function returnErrors(it: SchemaCxt, errs: Code): void { - const {gen, validateName, schemaEnv} = it - if (schemaEnv.$async) { - gen.throw(_`new ${it.ValidationError as Name}(${errs})`) - } else { - gen.assign(_`${validateName}.errors`, errs) - gen.return(false) - } -} - -const E = { - keyword: new Name("keyword"), - schemaPath: new Name("schemaPath"), // also used in JTD errors - params: new Name("params"), - propertyName: new Name("propertyName"), - message: new Name("message"), - schema: new Name("schema"), - parentSchema: new Name("parentSchema"), -} - -function errorObjectCode( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths?: ErrorPaths -): Code { - const {createErrors} = cxt.it - if (createErrors === false) return _`{}` - return errorObject(cxt, error, errorPaths) -} - -function errorObject( - cxt: KeywordErrorCxt, - error: KeywordErrorDefinition, - errorPaths: ErrorPaths = {} -): Code { - const {gen, it} = cxt - const keyValues: [Name, SafeExpr | string][] = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths), - ] - extraErrorProps(cxt, error, keyValues) - return gen.object(...keyValues) -} - -function errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] { - const instPath = instancePath - ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}` - : errorPath - return [N.instancePath, strConcat(N.instancePath, instPath)] -} - -function errorSchemaPath( - {keyword, it: {errSchemaPath}}: KeywordErrorCxt, - {schemaPath, parentSchema}: ErrorPaths -): [Name, string | Code] { - let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}` - if (schemaPath) { - schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}` - } - return [E.schemaPath, schPath] -} - -function extraErrorProps( - cxt: KeywordErrorCxt, - {params, message}: KeywordErrorDefinition, - keyValues: [Name, SafeExpr | string][] -): void { - const {keyword, data, schemaValue, it} = cxt - const {opts, propertyName, topSchemaRef, schemaPath} = it - keyValues.push( - [E.keyword, keyword], - [E.params, typeof params == "function" ? params(cxt) : params || _`{}`] - ) - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]) - } - if (opts.verbose) { - keyValues.push( - [E.schema, schemaValue], - [E.parentSchema, _`${topSchemaRef}${schemaPath}`], - [N.data, data] - ) - } - if (propertyName) keyValues.push([E.propertyName, propertyName]) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/index.ts deleted file mode 100644 index 3dac2699..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/index.ts +++ /dev/null @@ -1,324 +0,0 @@ -import type { - AnySchema, - AnySchemaObject, - AnyValidateFunction, - AsyncValidateFunction, - EvaluatedProperties, - EvaluatedItems, -} from "../types" -import type Ajv from "../core" -import type {InstanceOptions} from "../core" -import {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from "./codegen" -import ValidationError from "../runtime/validation_error" -import N from "./names" -import {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from "./resolve" -import {schemaHasRulesButRef, unescapeFragment} from "./util" -import {validateFunctionCode} from "./validate" -import * as URI from "uri-js" -import {JSONType} from "./rules" - -export type SchemaRefs = { - [Ref in string]?: SchemaEnv | AnySchema -} - -export interface SchemaCxt { - readonly gen: CodeGen - readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error - readonly data: Name // Name with reference to the current part of data instance - readonly parentData: Name // should be used in keywords modifying data - readonly parentDataProperty: Code | number // should be used in keywords modifying data - readonly dataNames: Name[] - readonly dataPathArr: (Code | number)[] - readonly dataLevel: number // the level of the currently validated data, - // it can be used to access both the property names and the data on all levels from the top. - dataTypes: JSONType[] // data types applied to the current part of data instance - definedProperties: Set // set of properties to keep track of for required checks - readonly topSchemaRef: Code - readonly validateName: Name - evaluated?: Name - readonly ValidationError?: Name - readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt - readonly schemaEnv: SchemaEnv - readonly rootId: string - baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\$ref) - readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema - readonly errSchemaPath: string // this is actual string, should not be changed to Code - readonly errorPath: Code - readonly propertyName?: Name - readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword, - // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`). - // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true. - // You only need to use it if you have many steps in your keywords and potentially can define multiple errors. - props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function - items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function - jtdDiscriminator?: string - jtdMetadata?: boolean - readonly createErrors?: boolean - readonly opts: InstanceOptions // Ajv instance option. - readonly self: Ajv // current Ajv instance -} - -export interface SchemaObjCxt extends SchemaCxt { - readonly schema: AnySchemaObject -} -interface SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root?: SchemaEnv - readonly baseId?: string - readonly schemaPath?: string - readonly localRefs?: LocalRefs - readonly meta?: boolean -} - -export class SchemaEnv implements SchemaEnvArgs { - readonly schema: AnySchema - readonly schemaId?: "$id" | "id" - readonly root: SchemaEnv - baseId: string // TODO possibly, it should be readonly - schemaPath?: string - localRefs?: LocalRefs - readonly meta?: boolean - readonly $async?: boolean // true if the current schema is asynchronous. - readonly refs: SchemaRefs = {} - readonly dynamicAnchors: {[Ref in string]?: true} = {} - validate?: AnyValidateFunction - validateName?: ValueScopeName - serialize?: (data: unknown) => string - serializeName?: ValueScopeName - parse?: (data: string) => unknown - parseName?: ValueScopeName - - constructor(env: SchemaEnvArgs) { - let schema: AnySchemaObject | undefined - if (typeof env.schema == "object") schema = env.schema - this.schema = env.schema - this.schemaId = env.schemaId - this.root = env.root || this - this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || "$id"]) - this.schemaPath = env.schemaPath - this.localRefs = env.localRefs - this.meta = env.meta - this.$async = schema?.$async - this.refs = {} - } -} - -// let codeSize = 0 -// let nodeCount = 0 - -// Compiles schema in SchemaEnv -export function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv { - // TODO refactor - remove compilations - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - let _ValidationError - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: ValidationError, - code: _`require("ajv/dist/runtime/validation_error").default`, - }) - } - - const validateName = gen.scopeName("validate") - sch.validateName = validateName - - const schemaCxt: SchemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: N.data, - parentData: N.parentData, - parentDataProperty: N.parentDataProperty, - dataNames: [N.data], - dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed? - dataLevel: 0, - dataTypes: [], - definedProperties: new Set(), - topSchemaRef: gen.scopeValue( - "schema", - this.opts.code.source === true - ? {ref: sch.schema, code: stringify(sch.schema)} - : {ref: sch.schema} - ), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: _`""`, - opts: this.opts, - self: this, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - validateFunctionCode(schemaCxt) - gen.optimize(this.opts.code.optimize) - // gen.optimize(1) - const validateCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}` - // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount)) - if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch) - // console.log("\n\n\n *** \n", sourceCode) - const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode) - const validate: AnyValidateFunction = makeValidate(this, this.scope.get()) - this.scope.value(validateName, {ref: validate}) - - validate.errors = null - validate.schema = sch.schema - validate.schemaEnv = sch - if (sch.$async) (validate as AsyncValidateFunction).$async = true - if (this.opts.code.source === true) { - validate.source = {validateName, validateCode, scopeValues: gen._values} - } - if (this.opts.unevaluated) { - const {props, items} = schemaCxt - validate.evaluated = { - props: props instanceof Name ? undefined : props, - items: items instanceof Name ? undefined : items, - dynamicProps: props instanceof Name, - dynamicItems: items instanceof Name, - } - if (validate.source) validate.source.evaluated = stringify(validate.evaluated) - } - sch.validate = validate - return sch - } catch (e) { - delete sch.validate - delete sch.validateName - if (sourceCode) this.logger.error("Error compiling schema, function code:", sourceCode) - // console.log("\n\n\n *** \n", sourceCode, this.opts) - throw e - } finally { - this._compilations.delete(sch) - } -} - -export function resolveRef( - this: Ajv, - root: SchemaEnv, - baseId: string, - ref: string -): AnySchema | SchemaEnv | undefined { - ref = resolveUrl(this.opts.uriResolver, baseId, ref) - const schOrFunc = root.refs[ref] - if (schOrFunc) return schOrFunc - - let _sch = resolve.call(this, root, ref) - if (_sch === undefined) { - const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv - const {schemaId} = this.opts - if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId}) - } - - if (_sch === undefined) return - return (root.refs[ref] = inlineOrCompile.call(this, _sch)) -} - -function inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv { - if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema - return sch.validate ? sch : compileSchema.call(this, sch) -} - -// Index of schema compilation in the currently compiled list -export function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) return sch - } -} - -function sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId -} - -// resolve and compile the references ($ref) -// TODO returns AnySchemaObject (if the schema can be inlined) or validation function -function resolve( - this: Ajv, - root: SchemaEnv, // information about the root schema for the current schema - ref: string // reference to resolve -): SchemaEnv | undefined { - let sch - while (typeof (sch = this.refs[ref]) == "string") ref = sch - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref) -} - -// Resolve schema, its root and baseId -export function resolveSchema( - this: Ajv, - root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it - ref: string // reference to resolve -): SchemaEnv | undefined { - const p = this.opts.uriResolver.parse(ref) - const refPath = _getFullPath(this.opts.uriResolver, p) - let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined) - // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root) - } - - const id = normalizeId(refPath) - const schOrRef = this.refs[id] || this.schemas[id] - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef) - if (typeof sch?.schema !== "object") return - return getJsonPointer.call(this, p, sch) - } - - if (typeof schOrRef?.schema !== "object") return - if (!schOrRef.validate) compileSchema.call(this, schOrRef) - if (id === normalizeId(ref)) { - const {schema} = schOrRef - const {schemaId} = this.opts - const schId = schema[schemaId] - if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - return new SchemaEnv({schema, schemaId, root, baseId}) - } - return getJsonPointer.call(this, p, schOrRef) -} - -const PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions", -]) - -function getJsonPointer( - this: Ajv, - parsedRef: URI.URIComponents, - {baseId, schema, root}: SchemaEnv -): SchemaEnv | undefined { - if (parsedRef.fragment?.[0] !== "/") return - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") return - const partSchema = schema[unescapeFragment(part)] - if (partSchema === undefined) return - schema = partSchema - // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def? - const schId = typeof schema === "object" && schema[this.opts.schemaId] - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = resolveUrl(this.opts.uriResolver, baseId, schId) - } - } - let env: SchemaEnv | undefined - if (typeof schema != "boolean" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) { - const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref) - env = resolveSchema.call(this, root, $ref) - } - // even though resolution failed we need to return SchemaEnv to throw exception - // so that compileAsync loads missing schema. - const {schemaId} = this.opts - env = env || new SchemaEnv({schema, schemaId, root, baseId}) - if (env.schema !== env.root.schema) return env - return undefined -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/parse.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/parse.ts deleted file mode 100644 index a0141c77..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/parse.ts +++ /dev/null @@ -1,411 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, or, nil, not, CodeGen, Code, Name, SafeExpr} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {hasPropFunc} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {intRange, IntType} from "../../vocabularies/jtd/type" -import {parseJson, parseJsonNumber, parseJsonString} from "../../runtime/parseJson" -import {useFunc} from "../util" -import validTimestamp from "../../runtime/timestamp" - -type GenParse = (cxt: ParseCxt) => void - -const genParse: {[F in JTDForm]: GenParse} = { - elements: parseElements, - values: parseValues, - discriminator: parseDiscriminator, - properties: parseProperties, - optionalProperties: parseProperties, - enum: parseEnum, - type: parseType, - ref: parseRef, -} - -interface ParseCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code - parseName: Name - char: Name -} - -export default function compileParser( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const parseName = gen.scopeName("parse") - const cxt: ParseCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - parseName, - char: gen.name("c"), - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.parseName = parseName - parserFunction(cxt) - gen.optimize(this.opts.code.optimize) - const parseFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${parseFuncCode}` - const makeParse = new Function(`${N.scope}`, sourceCode) - const parse: (json: string) => unknown = makeParse(this.scope.get()) - this.scope.value(parseName, {ref: parse}) - sch.parse = parse - } catch (e) { - if (sourceCode) this.logger.error("Error compiling parser, function code:", sourceCode) - delete sch.parse - delete sch.parseName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -const undef = _`undefined` - -function parserFunction(cxt: ParseCxt): void { - const {gen, parseName, char} = cxt - gen.func(parseName, _`${N.json}, ${N.jsonPos}, ${N.jsonPart}`, false, () => { - gen.let(N.data) - gen.let(char) - gen.assign(_`${parseName}.message`, undef) - gen.assign(_`${parseName}.position`, undef) - gen.assign(N.jsonPos, _`${N.jsonPos} || 0`) - gen.const(N.jsonLen, _`${N.json}.length`) - parseCode(cxt) - skipWhitespace(cxt) - gen.if(N.jsonPart, () => { - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(N.data) - }) - gen.if(_`${N.jsonPos} === ${N.jsonLen}`, () => gen.return(N.data)) - jsonSyntaxError(cxt) - }) -} - -function parseCode(cxt: ParseCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - if (form) parseNullable(cxt, genParse[form]) - else parseEmpty(cxt) -} - -const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError)) - -function parseNullable(cxt: ParseCxt, parseForm: GenParse): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return parseForm(cxt) - tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null)) -} - -function parseElements(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "[") - const ix = gen.let("i", 0) - gen.assign(data, _`[]`) - parseItems(cxt, "]", () => { - const el = gen.let("el") - parseCode({...cxt, schema: schema.elements, data: el}) - gen.assign(_`${data}[${ix}++]`, el) - }) -} - -function parseValues(cxt: ParseCxt): void { - const {gen, schema, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values)) -} - -function parseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - tryParseItems(cxt, endToken, block) - parseToken(cxt, endToken) -} - -function tryParseItems(cxt: ParseCxt, endToken: string, block: () => void): void { - const {gen} = cxt - gen.for(_`;${N.jsonPos}<${N.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => { - block() - tryParseToken(cxt, ",", () => gen.break(), hasItem) - }) - - function hasItem(): void { - tryParseToken(cxt, endToken, () => {}, jsonSyntaxError) - } -} - -function parseKeyValue(cxt: ParseCxt, schema: SchemaObject): void { - const {gen} = cxt - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - parsePropertyValue(cxt, key, schema) -} - -function parseDiscriminator(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const {discriminator, mapping} = schema - parseToken(cxt, "{") - gen.assign(data, _`{}`) - const startPos = gen.const("pos", N.jsonPos) - const value = gen.let("value") - const tag = gen.let("tag") - tryParseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if( - _`${key} === ${discriminator}`, - () => { - parseString({...cxt, data: tag}) - gen.assign(_`${data}[${key}]`, tag) - gen.break() - }, - () => parseEmpty({...cxt, data: value}) // can be discarded/skipped - ) - }) - gen.assign(N.jsonPos, startPos) - gen.if(_`${tag} === undefined`) - parsingError(cxt, str`discriminator tag not found`) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - parseSchemaProperties({...cxt, schema: mapping[tagValue]}, discriminator) - } - gen.else() - parsingError(cxt, str`discriminator value not in schema`) - gen.endIf() -} - -function parseProperties(cxt: ParseCxt): void { - const {gen, data} = cxt - parseToken(cxt, "{") - gen.assign(data, _`{}`) - parseSchemaProperties(cxt) -} - -function parseSchemaProperties(cxt: ParseCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties, additionalProperties} = schema - parseItems(cxt, "}", () => { - const key = gen.let("key") - parseString({...cxt, data: key}) - parseToken(cxt, ":") - gen.if(false) - parseDefinedProperty(cxt, key, properties) - parseDefinedProperty(cxt, key, optionalProperties) - if (discriminator) { - gen.elseIf(_`${key} === ${discriminator}`) - const tag = gen.let("tag") - parseString({...cxt, data: tag}) // can be discarded, it is already assigned - } - gen.else() - if (additionalProperties) { - parseEmpty({...cxt, data: _`${data}[${key}]`}) - } else { - parsingError(cxt, str`property ${key} not allowed`) - } - gen.endIf() - }) - if (properties) { - const hasProp = hasPropFunc(gen) - const allProps: Code = and( - ...Object.keys(properties).map((p): Code => _`${hasProp}.call(${data}, ${p})`) - ) - gen.if(not(allProps), () => parsingError(cxt, str`missing required properties`)) - } -} - -function parseDefinedProperty(cxt: ParseCxt, key: Name, schemas: SchemaObjectMap = {}): void { - const {gen} = cxt - for (const prop in schemas) { - gen.elseIf(_`${key} === ${prop}`) - parsePropertyValue(cxt, key, schemas[prop] as SchemaObject) - } -} - -function parsePropertyValue(cxt: ParseCxt, key: Name, schema: SchemaObject): void { - parseCode({...cxt, schema, data: _`${cxt.data}[${key}]`}) -} - -function parseType(cxt: ParseCxt): void { - const {gen, schema, data, self} = cxt - switch (schema.type) { - case "boolean": - parseBoolean(cxt) - break - case "string": - parseString(cxt) - break - case "timestamp": { - parseString(cxt) - const vts = useFunc(gen, validTimestamp) - const {allowDate, parseDate} = self.opts - const notValid = allowDate ? _`!${vts}(${data}, true)` : _`!${vts}(${data})` - const fail: Code = parseDate - ? or(notValid, _`(${data} = new Date(${data}), false)`, _`isNaN(${data}.valueOf())`) - : notValid - gen.if(fail, () => parsingError(cxt, str`invalid timestamp`)) - break - } - case "float32": - case "float64": - parseNumber(cxt) - break - default: { - const t = schema.type as IntType - if (!self.opts.int32range && (t === "int32" || t === "uint32")) { - parseNumber(cxt, 16) // 2 ** 53 - max safe integer - if (t === "uint32") { - gen.if(_`${data} < 0`, () => parsingError(cxt, str`integer out of range`)) - } - } else { - const [min, max, maxDigits] = intRange[t] - parseNumber(cxt, maxDigits) - gen.if(_`${data} < ${min} || ${data} > ${max}`, () => - parsingError(cxt, str`integer out of range`) - ) - } - } - } -} - -function parseString(cxt: ParseCxt): void { - parseToken(cxt, '"') - parseWith(cxt, parseJsonString) -} - -function parseEnum(cxt: ParseCxt): void { - const {gen, data, schema} = cxt - const enumSch = schema.enum - parseToken(cxt, '"') - // TODO loopEnum - gen.if(false) - for (const value of enumSch) { - const valueStr = JSON.stringify(value).slice(1) // remove starting quote - gen.elseIf(_`${jsonSlice(valueStr.length)} === ${valueStr}`) - gen.assign(data, str`${value}`) - gen.add(N.jsonPos, valueStr.length) - } - gen.else() - jsonSyntaxError(cxt) - gen.endIf() -} - -function parseNumber(cxt: ParseCxt, maxDigits?: number): void { - const {gen} = cxt - skipWhitespace(cxt) - gen.if( - _`"-0123456789".indexOf(${jsonSlice(1)}) < 0`, - () => jsonSyntaxError(cxt), - () => parseWith(cxt, parseJsonNumber, maxDigits) - ) -} - -function parseBooleanToken(bool: boolean, fail: GenParse): GenParse { - return (cxt) => { - const {gen, data} = cxt - tryParseToken( - cxt, - `${bool}`, - () => fail(cxt), - () => gen.assign(data, bool) - ) - } -} - -function parseRef(cxt: ParseCxt): void { - const {gen, self, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return parseCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileParser.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - partialParse(cxt, getParser(gen, sch), true) -} - -function getParser(gen: CodeGen, sch: SchemaEnv): Code { - return sch.parse - ? gen.scopeValue("parse", {ref: sch.parse}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.parse` -} - -function parseEmpty(cxt: ParseCxt): void { - parseWith(cxt, parseJson) -} - -function parseWith(cxt: ParseCxt, parseFunc: {code: string}, args?: SafeExpr): void { - partialParse(cxt, useFunc(cxt.gen, parseFunc), args) -} - -function partialParse(cxt: ParseCxt, parseFunc: Name, args?: SafeExpr): void { - const {gen, data} = cxt - gen.assign(data, _`${parseFunc}(${N.json}, ${N.jsonPos}${args ? _`, ${args}` : nil})`) - gen.assign(N.jsonPos, _`${parseFunc}.position`) - gen.if(_`${data} === undefined`, () => parsingError(cxt, _`${parseFunc}.message`)) -} - -function parseToken(cxt: ParseCxt, tok: string): void { - tryParseToken(cxt, tok, jsonSyntaxError) -} - -function tryParseToken(cxt: ParseCxt, tok: string, fail: GenParse, success?: GenParse): void { - const {gen} = cxt - const n = tok.length - skipWhitespace(cxt) - gen.if( - _`${jsonSlice(n)} === ${tok}`, - () => { - gen.add(N.jsonPos, n) - success?.(cxt) - }, - () => fail(cxt) - ) -} - -function skipWhitespace({gen, char: c}: ParseCxt): void { - gen.code( - _`while((${c}=${N.json}[${N.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${N.jsonPos}++;` - ) -} - -function jsonSlice(len: number | Name): Code { - return len === 1 - ? _`${N.json}[${N.jsonPos}]` - : _`${N.json}.slice(${N.jsonPos}, ${N.jsonPos}+${len})` -} - -function jsonSyntaxError(cxt: ParseCxt): void { - parsingError(cxt, _`"unexpected token " + ${N.json}[${N.jsonPos}]`) -} - -function parsingError({gen, parseName}: ParseCxt, msg: Code): void { - gen.assign(_`${parseName}.message`, msg) - gen.assign(_`${parseName}.position`, N.jsonPos) - gen.return(undef) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts deleted file mode 100644 index 7ebd26ac..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/serialize.ts +++ /dev/null @@ -1,260 +0,0 @@ -import type Ajv from "../../core" -import type {SchemaObject} from "../../types" -import {jtdForms, JTDForm, SchemaObjectMap} from "./types" -import {SchemaEnv, getCompilingSchema} from ".." -import {_, str, and, getProperty, CodeGen, Code, Name} from "../codegen" -import MissingRefError from "../ref_error" -import N from "../names" -import {isOwnProperty} from "../../vocabularies/code" -import {hasRef} from "../../vocabularies/jtd/ref" -import {useFunc} from "../util" -import quote from "../../runtime/quote" - -const genSerialize: {[F in JTDForm]: (cxt: SerializeCxt) => void} = { - elements: serializeElements, - values: serializeValues, - discriminator: serializeDiscriminator, - properties: serializeProperties, - optionalProperties: serializeProperties, - enum: serializeString, - type: serializeType, - ref: serializeRef, -} - -interface SerializeCxt { - readonly gen: CodeGen - readonly self: Ajv // current Ajv instance - readonly schemaEnv: SchemaEnv - readonly definitions: SchemaObjectMap - schema: SchemaObject - data: Code -} - -export default function compileSerializer( - this: Ajv, - sch: SchemaEnv, - definitions: SchemaObjectMap -): SchemaEnv { - const _sch = getCompilingSchema.call(this, sch) - if (_sch) return _sch - const {es5, lines} = this.opts.code - const {ownProperties} = this.opts - const gen = new CodeGen(this.scope, {es5, lines, ownProperties}) - const serializeName = gen.scopeName("serialize") - const cxt: SerializeCxt = { - self: this, - gen, - schema: sch.schema as SchemaObject, - schemaEnv: sch, - definitions, - data: N.data, - } - - let sourceCode: string | undefined - try { - this._compilations.add(sch) - sch.serializeName = serializeName - gen.func(serializeName, N.data, false, () => { - gen.let(N.json, str``) - serializeCode(cxt) - gen.return(N.json) - }) - gen.optimize(this.opts.code.optimize) - const serializeFuncCode = gen.toString() - sourceCode = `${gen.scopeRefs(N.scope)}return ${serializeFuncCode}` - const makeSerialize = new Function(`${N.scope}`, sourceCode) - const serialize: (data: unknown) => string = makeSerialize(this.scope.get()) - this.scope.value(serializeName, {ref: serialize}) - sch.serialize = serialize - } catch (e) { - if (sourceCode) this.logger.error("Error compiling serializer, function code:", sourceCode) - delete sch.serialize - delete sch.serializeName - throw e - } finally { - this._compilations.delete(sch) - } - return sch -} - -function serializeCode(cxt: SerializeCxt): void { - let form: JTDForm | undefined - for (const key of jtdForms) { - if (key in cxt.schema) { - form = key - break - } - } - serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty) -} - -function serializeNullable(cxt: SerializeCxt, serializeForm: (_cxt: SerializeCxt) => void): void { - const {gen, schema, data} = cxt - if (!schema.nullable) return serializeForm(cxt) - gen.if( - _`${data} === undefined || ${data} === null`, - () => gen.add(N.json, _`"null"`), - () => serializeForm(cxt) - ) -} - -function serializeElements(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`[`) - const first = gen.let("first", true) - gen.forOf("el", data, (el) => { - addComma(cxt, first) - serializeCode({...cxt, schema: schema.elements, data: el}) - }) - gen.add(N.json, str`]`) -} - -function serializeValues(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - gen.add(N.json, str`{`) - const first = gen.let("first", true) - gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)) - gen.add(N.json, str`}`) -} - -function serializeKeyValue(cxt: SerializeCxt, key: Name, schema: SchemaObject, first: Name): void { - const {gen, data} = cxt - addComma(cxt, first) - serializeString({...cxt, data: key}) - gen.add(N.json, str`:`) - const value = gen.const("value", _`${data}${getProperty(key)}`) - serializeCode({...cxt, schema, data: value}) -} - -function serializeDiscriminator(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - const {discriminator} = schema - gen.add(N.json, str`{${JSON.stringify(discriminator)}:`) - const tag = gen.const("tag", _`${data}${getProperty(discriminator)}`) - serializeString({...cxt, data: tag}) - gen.if(false) - for (const tagValue in schema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - const sch = schema.mapping[tagValue] - serializeSchemaProperties({...cxt, schema: sch}, discriminator) - } - gen.endIf() - gen.add(N.json, str`}`) -} - -function serializeProperties(cxt: SerializeCxt): void { - const {gen} = cxt - gen.add(N.json, str`{`) - serializeSchemaProperties(cxt) - gen.add(N.json, str`}`) -} - -function serializeSchemaProperties(cxt: SerializeCxt, discriminator?: string): void { - const {gen, schema, data} = cxt - const {properties, optionalProperties} = schema - const props = keys(properties) - const optProps = keys(optionalProperties) - const allProps = allProperties(props.concat(optProps)) - let first = !discriminator - for (const key of props) { - serializeProperty(key, properties[key], keyValue(key)) - } - for (const key of optProps) { - const value = keyValue(key) - gen.if(and(_`${value} !== undefined`, isOwnProperty(gen, data, key)), () => - serializeProperty(key, optionalProperties[key], value) - ) - } - if (schema.additionalProperties) { - gen.forIn("key", data, (key) => - gen.if(isAdditional(key, allProps), () => - serializeKeyValue(cxt, key, {}, gen.let("first", first)) - ) - ) - } - - function keys(ps?: SchemaObjectMap): string[] { - return ps ? Object.keys(ps) : [] - } - - function allProperties(ps: string[]): string[] { - if (discriminator) ps.push(discriminator) - if (new Set(ps).size !== ps.length) { - throw new Error("JTD: properties/optionalProperties/disciminator overlap") - } - return ps - } - - function keyValue(key: string): Name { - return gen.const("value", _`${data}${getProperty(key)}`) - } - - function serializeProperty(key: string, propSchema: SchemaObject, value: Name): void { - if (first) first = false - else gen.add(N.json, str`,`) - gen.add(N.json, str`${JSON.stringify(key)}:`) - serializeCode({...cxt, schema: propSchema, data: value}) - } - - function isAdditional(key: Name, ps: string[]): Code | true { - return ps.length ? and(...ps.map((p) => _`${key} !== ${p}`)) : true - } -} - -function serializeType(cxt: SerializeCxt): void { - const {gen, schema, data} = cxt - switch (schema.type) { - case "boolean": - gen.add(N.json, _`${data} ? "true" : "false"`) - break - case "string": - serializeString(cxt) - break - case "timestamp": - gen.if( - _`${data} instanceof Date`, - () => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`), - () => serializeString(cxt) - ) - break - default: - serializeNumber(cxt) - } -} - -function serializeString({gen, data}: SerializeCxt): void { - gen.add(N.json, _`${useFunc(gen, quote)}(${data})`) -} - -function serializeNumber({gen, data}: SerializeCxt): void { - gen.add(N.json, _`"" + ${data}`) -} - -function serializeRef(cxt: SerializeCxt): void { - const {gen, self, data, definitions, schema, schemaEnv} = cxt - const {ref} = schema - const refSchema = definitions[ref] - if (!refSchema) throw new MissingRefError(self.opts.uriResolver, "", ref, `No definition ${ref}`) - if (!hasRef(refSchema)) return serializeCode({...cxt, schema: refSchema}) - const {root} = schemaEnv - const sch = compileSerializer.call(self, new SchemaEnv({schema: refSchema, root}), definitions) - gen.add(N.json, _`${getSerialize(gen, sch)}(${data})`) -} - -function getSerialize(gen: CodeGen, sch: SchemaEnv): Code { - return sch.serialize - ? gen.scopeValue("serialize", {ref: sch.serialize}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.serialize` -} - -function serializeEmpty({gen, data}: SerializeCxt): void { - gen.add(N.json, _`JSON.stringify(${data})`) -} - -function addComma({gen}: SerializeCxt, first: Name): void { - gen.if( - first, - () => gen.assign(first, false), - () => gen.add(N.json, str`,`) - ) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/types.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/types.ts deleted file mode 100644 index 7f361957..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/jtd/types.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {SchemaObject} from "../../types" - -export type SchemaObjectMap = {[Ref in string]?: SchemaObject} - -export const jtdForms = [ - "elements", - "values", - "discriminator", - "properties", - "optionalProperties", - "enum", - "type", - "ref", -] as const - -export type JTDForm = typeof jtdForms[number] diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/names.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/names.ts deleted file mode 100644 index b4b242e1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/names.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {Name} from "./codegen" - -const names = { - // validation function arguments - data: new Name("data"), // data passed to validation function - // args passed from referencing schema - valCxt: new Name("valCxt"), // validation/data context - should not be used directly, it is destructured to the names below - instancePath: new Name("instancePath"), - parentData: new Name("parentData"), - parentDataProperty: new Name("parentDataProperty"), - rootData: new Name("rootData"), // root data - same as the data passed to the first/top validation function - dynamicAnchors: new Name("dynamicAnchors"), // used to support recursiveRef and dynamicRef - // function scoped variables - vErrors: new Name("vErrors"), // null or array of validation errors - errors: new Name("errors"), // counter of validation errors - this: new Name("this"), - // "globals" - self: new Name("self"), - scope: new Name("scope"), - // JTD serialize/parse name for JSON string and position - json: new Name("json"), - jsonPos: new Name("jsonPos"), - jsonLen: new Name("jsonLen"), - jsonPart: new Name("jsonPart"), -} - -export default names diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/ref_error.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/ref_error.ts deleted file mode 100644 index 386bf049..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/ref_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {resolveUrl, normalizeId, getFullPath} from "./resolve" -import type {UriResolver} from "../types" - -export default class MissingRefError extends Error { - readonly missingRef: string - readonly missingSchema: string - - constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`) - this.missingRef = resolveUrl(resolver, baseId, ref) - this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef)) - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/resolve.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/resolve.ts deleted file mode 100644 index 4360eab0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/resolve.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type {AnySchema, AnySchemaObject, UriResolver} from "../types" -import type Ajv from "../ajv" -import type {URIComponents} from "uri-js" -import {eachItem} from "./util" -import * as equal from "fast-deep-equal" -import * as traverse from "json-schema-traverse" - -// the hash of local references inside the schema (created by getSchemaRefs), used for inline resolution -export type LocalRefs = {[Ref in string]?: AnySchemaObject} - -// TODO refactor to use keyword definitions -const SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const", -]) - -export function inlineRef(schema: AnySchema, limit: boolean | number = true): boolean { - if (typeof schema == "boolean") return true - if (limit === true) return !hasRef(schema) - if (!limit) return false - return countKeys(schema) <= limit -} - -const REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor", -]) - -function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) return true - const sch = schema[key] - if (Array.isArray(sch) && sch.some(hasRef)) return true - if (typeof sch == "object" && hasRef(sch)) return true - } - return false -} - -function countKeys(schema: AnySchemaObject): number { - let count = 0 - for (const key in schema) { - if (key === "$ref") return Infinity - count++ - if (SIMPLE_INLINED.has(key)) continue - if (typeof schema[key] == "object") { - eachItem(schema[key], (sch) => (count += countKeys(sch))) - } - if (count === Infinity) return Infinity - } - return count -} - -export function getFullPath(resolver: UriResolver, id = "", normalize?: boolean): string { - if (normalize !== false) id = normalizeId(id) - const p = resolver.parse(id) - return _getFullPath(resolver, p) -} - -export function _getFullPath(resolver: UriResolver, p: URIComponents): string { - const serialized = resolver.serialize(p) - return serialized.split("#")[0] + "#" -} - -const TRAILING_SLASH_HASH = /#\/?$/ -export function normalizeId(id: string | undefined): string { - return id ? id.replace(TRAILING_SLASH_HASH, "") : "" -} - -export function resolveUrl(resolver: UriResolver, baseId: string, id: string): string { - id = normalizeId(id) - return resolver.resolve(baseId, id) -} - -const ANCHOR = /^[a-z_][-a-z0-9._]*$/i - -export function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs { - if (typeof schema == "boolean") return {} - const {schemaId, uriResolver} = this.opts - const schId = normalizeId(schema[schemaId] || baseId) - const baseIds: {[JsonPtr in string]?: string} = {"": schId} - const pathPrefix = getFullPath(uriResolver, schId, false) - const localRefs: LocalRefs = {} - const schemaRefs: Set = new Set() - - traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) return - const fullPath = pathPrefix + jsonPtr - let baseId = baseIds[parentJsonPtr] - if (typeof sch[schemaId] == "string") baseId = addRef.call(this, sch[schemaId]) - addAnchor.call(this, sch.$anchor) - addAnchor.call(this, sch.$dynamicAnchor) - baseIds[jsonPtr] = baseId - - function addRef(this: Ajv, ref: string): string { - // eslint-disable-next-line @typescript-eslint/unbound-method - const _resolve = this.opts.uriResolver.resolve - ref = normalizeId(baseId ? _resolve(baseId, ref) : ref) - if (schemaRefs.has(ref)) throw ambiguos(ref) - schemaRefs.add(ref) - let schOrRef = this.refs[ref] - if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef] - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref) - } else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref) - localRefs[ref] = sch - } else { - this.refs[ref] = fullPath - } - } - return ref - } - - function addAnchor(this: Ajv, anchor: unknown): void { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor "${anchor}"`) - addRef.call(this, `#${anchor}`) - } - } - }) - - return localRefs - - function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void { - if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref) - } - - function ambiguos(ref: string): Error { - return new Error(`reference "${ref}" resolves to more than one schema`) - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/rules.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/rules.ts deleted file mode 100644 index ea65074f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/rules.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type {AddedKeywordDefinition} from "../types" - -const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"] as const - -export type JSONType = typeof _jsonTypes[number] - -const jsonTypes: Set = new Set(_jsonTypes) - -export function isJSONType(x: unknown): x is JSONType { - return typeof x == "string" && jsonTypes.has(x) -} - -type ValidationTypes = { - [K in JSONType]: boolean | RuleGroup | undefined -} - -export interface ValidationRules { - rules: RuleGroup[] - post: RuleGroup - all: {[Key in string]?: boolean | Rule} // rules that have to be validated - keywords: {[Key in string]?: boolean} // all known keywords (superset of "all") - types: ValidationTypes -} - -export interface RuleGroup { - type?: JSONType - rules: Rule[] -} - -// This interface wraps KeywordDefinition because definition can have multiple keywords -export interface Rule { - keyword: string - definition: AddedKeywordDefinition -} - -export function getRules(): ValidationRules { - const groups: Record<"number" | "string" | "array" | "object", RuleGroup> = { - number: {type: "number", rules: []}, - string: {type: "string", rules: []}, - array: {type: "array", rules: []}, - object: {type: "object", rules: []}, - } - return { - types: {...groups, integer: true, boolean: true, null: true}, - rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object], - post: {rules: []}, - all: {}, - keywords: {}, - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/util.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/util.ts deleted file mode 100644 index cefae51c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/util.ts +++ /dev/null @@ -1,213 +0,0 @@ -import type {AnySchema, EvaluatedProperties, EvaluatedItems} from "../types" -import type {SchemaCxt, SchemaObjCxt} from "." -import {_, getProperty, Code, Name, CodeGen} from "./codegen" -import {_Code} from "./codegen/code" -import type {Rule, ValidationRules} from "./rules" - -// TODO refactor to use Set -export function toHash(arr: T[]): {[K in T]?: true} { - const hash: {[K in T]?: true} = {} - for (const item of arr) hash[item] = true - return hash -} - -export function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void { - if (typeof schema == "boolean") return schema - if (Object.keys(schema).length === 0) return true - checkUnknownRules(it, schema) - return !schemaHasRules(schema, it.self.RULES.all) -} - -export function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void { - const {opts, self} = it - if (!opts.strictSchema) return - if (typeof schema === "boolean") return - const rules = self.RULES.keywords - for (const key in schema) { - if (!rules[key]) checkStrictMode(it, `unknown keyword: "${key}"`) - } -} - -export function schemaHasRules( - schema: AnySchema, - rules: {[Key in string]?: boolean | Rule} -): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (rules[key]) return true - return false -} - -export function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (key !== "$ref" && RULES.all[key]) return true - return false -} - -export function schemaRefOrVal( - {topSchemaRef, schemaPath}: SchemaObjCxt, - schema: unknown, - keyword: string, - $data?: string | false -): Code | number | boolean { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") return schema - if (typeof schema == "string") return _`${schema}` - } - return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}` -} - -export function unescapeFragment(str: string): string { - return unescapeJsonPointer(decodeURIComponent(str)) -} - -export function escapeFragment(str: string | number): string { - return encodeURIComponent(escapeJsonPointer(str)) -} - -export function escapeJsonPointer(str: string | number): string { - if (typeof str == "number") return `${str}` - return str.replace(/~/g, "~0").replace(/\//g, "~1") -} - -export function unescapeJsonPointer(str: string): string { - return str.replace(/~1/g, "/").replace(/~0/g, "~") -} - -export function eachItem(xs: T | T[], f: (x: T) => void): void { - if (Array.isArray(xs)) { - for (const x of xs) f(x) - } else { - f(xs) - } -} - -type SomeEvaluated = EvaluatedProperties | EvaluatedItems - -type MergeEvaluatedFunc = ( - gen: CodeGen, - from: Name | T, - to: Name | Exclude | undefined, - toName?: typeof Name -) => Name | T - -interface MakeMergeFuncArgs { - mergeNames: (gen: CodeGen, from: Name, to: Name) => void - mergeToName: (gen: CodeGen, from: T, to: Name) => void - mergeValues: (from: T, to: Exclude) => T - resultToName: (gen: CodeGen, res?: T) => Name -} - -function makeMergeEvaluated({ - mergeNames, - mergeToName, - mergeValues, - resultToName, -}: MakeMergeFuncArgs): MergeEvaluatedFunc { - return (gen, from, to, toName) => { - const res = - to === undefined - ? from - : to instanceof Name - ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) - : from instanceof Name - ? (mergeToName(gen, to, from), from) - : mergeValues(from, to) - return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res - } -} - -interface MergeEvaluated { - props: MergeEvaluatedFunc - items: MergeEvaluatedFunc -} - -export const mergeEvaluated: MergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => { - gen.if( - _`${from} === true`, - () => gen.assign(to, true), - () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`) - ) - }), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => { - if (from === true) { - gen.assign(to, true) - } else { - gen.assign(to, _`${to} || {}`) - setEvaluated(gen, to, from) - } - }), - mergeValues: (from, to) => (from === true ? true : {...from, ...to}), - resultToName: evaluatedPropsToName, - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => - gen.if(_`${to} !== true && ${from} !== undefined`, () => - gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`) - ), - mergeToName: (gen, from, to) => - gen.if(_`${to} !== true`, () => - gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`) - ), - mergeValues: (from, to) => (from === true ? true : Math.max(from, to)), - resultToName: (gen, items) => gen.var("items", items), - }), -} - -export function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name { - if (ps === true) return gen.var("props", true) - const props = gen.var("props", _`{}`) - if (ps !== undefined) setEvaluated(gen, props, ps) - return props -} - -export function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void { - Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true)) -} - -const snippets: {[S in string]?: _Code} = {} - -export function useFunc(gen: CodeGen, f: {code: string}): Name { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)), - }) -} - -export enum Type { - Num, - Str, -} - -export function getErrorPath( - dataProp: Name | string | number, - dataPropType?: Type, - jsPropertySyntax?: boolean -): Code | string { - // let path - if (dataProp instanceof Name) { - const isNumber = dataPropType === Type.Num - return jsPropertySyntax - ? isNumber - ? _`"[" + ${dataProp} + "]"` - : _`"['" + ${dataProp} + "']"` - : isNumber - ? _`"/" + ${dataProp}` - : _`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")` // TODO maybe use global escapePointer - } - return jsPropertySyntax ? getProperty(dataProp).toString() : "/" + escapeJsonPointer(dataProp) -} - -export function checkStrictMode( - it: SchemaCxt, - msg: string, - mode: boolean | "log" = it.opts.strictSchema -): void { - if (!mode) return - msg = `strict mode: ${msg}` - if (mode === true) throw new Error(msg) - it.self.logger.warn(msg) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/applicability.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/applicability.ts deleted file mode 100644 index 478b704a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/applicability.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {AnySchemaObject} from "../../types" -import type {SchemaObjCxt} from ".." -import type {JSONType, RuleGroup, Rule} from "../rules" - -export function schemaHasRulesForType( - {schema, self}: SchemaObjCxt, - type: JSONType -): boolean | undefined { - const group = self.RULES.types[type] - return group && group !== true && shouldUseGroup(schema, group) -} - -export function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean { - return group.rules.some((rule) => shouldUseRule(schema, rule)) -} - -export function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined { - return ( - schema[rule.keyword] !== undefined || - rule.definition.implements?.some((kwd) => schema[kwd] !== undefined) - ) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts deleted file mode 100644 index 15635501..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/boolSchema.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt} from "../../types" -import type {SchemaCxt} from ".." -import {reportError} from "../errors" -import {_, Name} from "../codegen" -import N from "../names" - -const boolError: KeywordErrorDefinition = { - message: "boolean schema is false", -} - -export function topBoolOrEmptySchema(it: SchemaCxt): void { - const {gen, schema, validateName} = it - if (schema === false) { - falseSchemaError(it, false) - } else if (typeof schema == "object" && schema.$async === true) { - gen.return(N.data) - } else { - gen.assign(_`${validateName}.errors`, null) - gen.return(true) - } -} - -export function boolOrEmptySchema(it: SchemaCxt, valid: Name): void { - const {gen, schema} = it - if (schema === false) { - gen.var(valid, false) // TODO var - falseSchemaError(it) - } else { - gen.var(valid, true) // TODO var - } -} - -function falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void { - const {gen, data} = it - // TODO maybe some other interface should be used for non-keyword validation errors... - const cxt: KeywordErrorCxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it, - } - reportError(cxt, boolError, undefined, overrideAllErrors) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/dataType.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/dataType.ts deleted file mode 100644 index b315c2ce..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/dataType.ts +++ /dev/null @@ -1,229 +0,0 @@ -import type { - KeywordErrorDefinition, - KeywordErrorCxt, - ErrorObject, - AnySchemaObject, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {isJSONType, JSONType} from "../rules" -import {schemaHasRulesForType} from "./applicability" -import {reportError} from "../errors" -import {_, nil, and, not, operators, Code, Name} from "../codegen" -import {toHash, schemaRefOrVal} from "../util" - -export enum DataType { - Correct, - Wrong, -} - -export function getSchemaTypes(schema: AnySchemaObject): JSONType[] { - const types = getJSONTypes(schema.type) - const hasNull = types.includes("null") - if (hasNull) { - if (schema.nullable === false) throw new Error("type: null contradicts nullable: false") - } else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"') - } - if (schema.nullable === true) types.push("null") - } - return types -} - -export function getJSONTypes(ts: unknown | unknown[]): JSONType[] { - const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : [] - if (types.every(isJSONType)) return types - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")) -} - -export function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean { - const {gen, data, opts} = it - const coerceTo = coerceToTypes(types, opts.coerceTypes) - const checkTypes = - types.length > 0 && - !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0])) - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong) - gen.if(wrongType, () => { - if (coerceTo.length) coerceData(it, types, coerceTo) - else reportTypeError(it) - }) - } - return checkTypes -} - -const COERCIBLE: Set = new Set(["string", "number", "integer", "boolean", "null"]) -function coerceToTypes(types: JSONType[], coerceTypes?: boolean | "array"): JSONType[] { - return coerceTypes - ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) - : [] -} - -function coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void { - const {gen, data, opts} = it - const dataType = gen.let("dataType", _`typeof ${data}`) - const coerced = gen.let("coerced", _`undefined`) - if (opts.coerceTypes === "array") { - gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => - gen - .assign(data, _`${data}[0]`) - .assign(dataType, _`typeof ${data}`) - .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)) - ) - } - gen.if(_`${coerced} !== undefined`) - for (const t of coerceTo) { - if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) { - coerceSpecificType(t) - } - } - gen.else() - reportTypeError(it) - gen.endIf() - - gen.if(_`${coerced} !== undefined`, () => { - gen.assign(data, coerced) - assignParentData(it, coerced) - }) - - function coerceSpecificType(t: string): void { - switch (t) { - case "string": - gen - .elseIf(_`${dataType} == "number" || ${dataType} == "boolean"`) - .assign(coerced, _`"" + ${data}`) - .elseIf(_`${data} === null`) - .assign(coerced, _`""`) - return - case "number": - gen - .elseIf( - _`${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})` - ) - .assign(coerced, _`+${data}`) - return - case "integer": - gen - .elseIf( - _`${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))` - ) - .assign(coerced, _`+${data}`) - return - case "boolean": - gen - .elseIf(_`${data} === "false" || ${data} === 0 || ${data} === null`) - .assign(coerced, false) - .elseIf(_`${data} === "true" || ${data} === 1`) - .assign(coerced, true) - return - case "null": - gen.elseIf(_`${data} === "" || ${data} === 0 || ${data} === false`) - gen.assign(coerced, null) - return - - case "array": - gen - .elseIf( - _`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null` - ) - .assign(coerced, _`[${data}]`) - } - } -} - -function assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void { - // TODO use gen.property - gen.if(_`${parentData} !== undefined`, () => - gen.assign(_`${parentData}[${parentDataProperty}]`, expr) - ) -} - -export function checkDataType( - dataType: JSONType, - data: Name, - strictNums?: boolean | "log", - correct = DataType.Correct -): Code { - const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ - let cond: Code - switch (dataType) { - case "null": - return _`${data} ${EQ} null` - case "array": - cond = _`Array.isArray(${data})` - break - case "object": - cond = _`${data} && typeof ${data} == "object" && !Array.isArray(${data})` - break - case "integer": - cond = numCond(_`!(${data} % 1) && !isNaN(${data})`) - break - case "number": - cond = numCond() - break - default: - return _`typeof ${data} ${EQ} ${dataType}` - } - return correct === DataType.Correct ? cond : not(cond) - - function numCond(_cond: Code = nil): Code { - return and(_`typeof ${data} == "number"`, _cond, strictNums ? _`isFinite(${data})` : nil) - } -} - -export function checkDataTypes( - dataTypes: JSONType[], - data: Name, - strictNums?: boolean | "log", - correct?: DataType -): Code { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct) - } - let cond: Code - const types = toHash(dataTypes) - if (types.array && types.object) { - const notObj = _`typeof ${data} != "object"` - cond = types.null ? notObj : _`!${data} || ${notObj}` - delete types.null - delete types.array - delete types.object - } else { - cond = nil - } - if (types.number) delete types.integer - for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct)) - return cond -} - -export type TypeError = ErrorObject<"type", {type: string}> - -const typeError: KeywordErrorDefinition = { - message: ({schema}) => `must be ${schema}`, - params: ({schema, schemaValue}) => - typeof schema == "string" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`, -} - -export function reportTypeError(it: SchemaObjCxt): void { - const cxt = getTypeErrorContext(it) - reportError(cxt, typeError) -} - -function getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt { - const {gen, data, schema} = it - const schemaCode = schemaRefOrVal(it, schema, "type") - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it, - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/defaults.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/defaults.ts deleted file mode 100644 index 2ad3d4df..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/defaults.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {SchemaObjCxt} from ".." -import {_, getProperty, stringify} from "../codegen" -import {checkStrictMode} from "../util" - -export function assignDefaults(it: SchemaObjCxt, ty?: string): void { - const {properties, items} = it.schema - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default) - } - } else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i: number) => assignDefault(it, i, sch.default)) - } -} - -function assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void { - const {gen, compositeRule, data, opts} = it - if (defaultValue === undefined) return - const childData = _`${data}${getProperty(prop)}` - if (compositeRule) { - checkStrictMode(it, `default is ignored for: ${childData}`) - return - } - - let condition = _`${childData} === undefined` - if (opts.useDefaults === "empty") { - condition = _`${condition} || ${childData} === null || ${childData} === ""` - } - // `${childData} === undefined` + - // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "") - gen.if(condition, _`${childData} = ${stringify(defaultValue)}`) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/index.ts deleted file mode 100644 index f5910c3a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/index.ts +++ /dev/null @@ -1,573 +0,0 @@ -import type { - AddedKeywordDefinition, - AnySchema, - AnySchemaObject, - KeywordErrorCxt, - KeywordCxtParams, -} from "../../types" -import type {SchemaCxt, SchemaObjCxt} from ".." -import type {InstanceOptions} from "../../core" -import {boolOrEmptySchema, topBoolOrEmptySchema} from "./boolSchema" -import {coerceAndCheckDataType, getSchemaTypes} from "./dataType" -import {shouldUseGroup, shouldUseRule} from "./applicability" -import {checkDataType, checkDataTypes, reportTypeError, DataType} from "./dataType" -import {assignDefaults} from "./defaults" -import {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from "./keyword" -import {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from "./subschema" -import {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import {resolveUrl} from "../resolve" -import { - schemaRefOrVal, - schemaHasRulesButRef, - checkUnknownRules, - checkStrictMode, - unescapeJsonPointer, - mergeEvaluated, -} from "../util" -import type {JSONType, Rule, RuleGroup} from "../rules" -import { - ErrorPaths, - reportError, - reportExtraError, - resetErrorsCount, - keyword$DataError, -} from "../errors" - -// schema compilation - generates validation function, subschemaCode (below) is used for subschemas -export function validateFunctionCode(it: SchemaCxt): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it) - return - } - } - validateFunction(it, () => topBoolOrEmptySchema(it)) -} - -function validateFunction( - {gen, validateName, schema, schemaEnv, opts}: SchemaCxt, - body: Block -): void { - if (opts.code.es5) { - gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => { - gen.code(_`"use strict"; ${funcSourceUrl(schema, opts)}`) - destructureValCxtES5(gen, opts) - gen.code(body) - }) - } else { - gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => - gen.code(funcSourceUrl(schema, opts)).code(body) - ) - } -} - -function destructureValCxt(opts: InstanceOptions): Code { - return _`{${N.instancePath}="", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${ - N.data - }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}` -} - -function destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void { - gen.if( - N.valCxt, - () => { - gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`) - gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`) - gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`) - gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`) - }, - () => { - gen.var(N.instancePath, _`""`) - gen.var(N.parentData, _`undefined`) - gen.var(N.parentDataProperty, _`undefined`) - gen.var(N.rootData, N.data) - if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`) - } - ) -} - -function topSchemaObjCode(it: SchemaObjCxt): void { - const {schema, opts, gen} = it - validateFunction(it, () => { - if (opts.$comment && schema.$comment) commentKeyword(it) - checkNoDefault(it) - gen.let(N.vErrors, null) - gen.let(N.errors, 0) - if (opts.unevaluated) resetEvaluated(it) - typeAndKeywords(it) - returnResults(it) - }) - return -} - -function resetEvaluated(it: SchemaObjCxt): void { - // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated - const {gen, validateName} = it - it.evaluated = gen.const("evaluated", _`${validateName}.evaluated`) - gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`)) - gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`)) -} - -function funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code { - const schId = typeof schema == "object" && schema[opts.schemaId] - return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil -} - -// schema compilation - this function is used recursively to generate code for sub-schemas -function subschemaCode(it: SchemaCxt, valid: Name): void { - if (isSchemaObj(it)) { - checkKeywords(it) - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid) - return - } - } - boolOrEmptySchema(it, valid) -} - -function schemaCxtHasRules({schema, self}: SchemaCxt): boolean { - if (typeof schema == "boolean") return !schema - for (const key in schema) if (self.RULES.all[key]) return true - return false -} - -function isSchemaObj(it: SchemaCxt): it is SchemaObjCxt { - return typeof it.schema != "boolean" -} - -function subSchemaObjCode(it: SchemaObjCxt, valid: Name): void { - const {schema, gen, opts} = it - if (opts.$comment && schema.$comment) commentKeyword(it) - updateContext(it) - checkAsyncSchema(it) - const errsCount = gen.const("_errs", N.errors) - typeAndKeywords(it, errsCount) - // TODO var - gen.var(valid, _`${errsCount} === ${N.errors}`) -} - -function checkKeywords(it: SchemaObjCxt): void { - checkUnknownRules(it) - checkRefsAndKeywords(it) -} - -function typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void { - if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount) - const types = getSchemaTypes(it.schema) - const checkedTypes = coerceAndCheckDataType(it, types) - schemaKeywords(it, types, !checkedTypes, errsCount) -} - -function checkRefsAndKeywords(it: SchemaObjCxt): void { - const {schema, errSchemaPath, opts, self} = it - if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) { - self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`) - } -} - -function checkNoDefault(it: SchemaObjCxt): void { - const {schema, opts} = it - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - checkStrictMode(it, "default is ignored in the schema root") - } -} - -function updateContext(it: SchemaObjCxt): void { - const schId = it.schema[it.opts.schemaId] - if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId) -} - -function checkAsyncSchema(it: SchemaObjCxt): void { - if (it.schema.$async && !it.schemaEnv.$async) throw new Error("async schema in sync schema") -} - -function commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void { - const msg = schema.$comment - if (opts.$comment === true) { - gen.code(_`${N.self}.logger.log(${msg})`) - } else if (typeof opts.$comment == "function") { - const schemaPath = str`${errSchemaPath}/$comment` - const rootName = gen.scopeValue("root", {ref: schemaEnv.root}) - gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`) - } -} - -function returnResults(it: SchemaCxt): void { - const {gen, schemaEnv, validateName, ValidationError, opts} = it - if (schemaEnv.$async) { - // TODO assign unevaluated - gen.if( - _`${N.errors} === 0`, - () => gen.return(N.data), - () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`) - ) - } else { - gen.assign(_`${validateName}.errors`, N.vErrors) - if (opts.unevaluated) assignEvaluated(it) - gen.return(_`${N.errors} === 0`) - } -} - -function assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void { - if (props instanceof Name) gen.assign(_`${evaluated}.props`, props) - if (items instanceof Name) gen.assign(_`${evaluated}.items`, items) -} - -function schemaKeywords( - it: SchemaObjCxt, - types: JSONType[], - typeErrors: boolean, - errsCount?: Name -): void { - const {gen, schema, data, allErrors, opts, self} = it - const {RULES} = self - if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", (RULES.all.$ref as Rule).definition)) // TODO typecast - return - } - if (!opts.jtd) checkStrictTypes(it, types) - gen.block(() => { - for (const group of RULES.rules) groupKeywords(group) - groupKeywords(RULES.post) - }) - - function groupKeywords(group: RuleGroup): void { - if (!shouldUseGroup(schema, group)) return - if (group.type) { - gen.if(checkDataType(group.type, data, opts.strictNumbers)) - iterateKeywords(it, group) - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else() - reportTypeError(it) - } - gen.endIf() - } else { - iterateKeywords(it, group) - } - // TODO make it "ok" call? - if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`) - } -} - -function iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void { - const { - gen, - schema, - opts: {useDefaults}, - } = it - if (useDefaults) assignDefaults(it, group.type) - gen.block(() => { - for (const rule of group.rules) { - if (shouldUseRule(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type) - } - } - }) -} - -function checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (it.schemaEnv.meta || !it.opts.strictTypes) return - checkContextTypes(it, types) - if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types) - checkKeywordTypes(it, it.dataTypes) -} - -function checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void { - if (!types.length) return - if (!it.dataTypes.length) { - it.dataTypes = types - return - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`) - } - }) - it.dataTypes = it.dataTypes.filter((t) => includesType(types, t)) -} - -function checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword") - } -} - -function checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void { - const rules = it.self.RULES.all - for (const keyword in rules) { - const rule = rules[keyword] - if (typeof rule == "object" && shouldUseRule(it.schema, rule)) { - const {type} = rule.definition - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`) - } - } - } -} - -function hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean { - return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")) -} - -function includesType(ts: JSONType[], t: JSONType): boolean { - return ts.includes(t) || (t === "integer" && ts.includes("number")) -} - -function strictTypesError(it: SchemaObjCxt, msg: string): void { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - msg += ` at "${schemaPath}" (strictTypes)` - checkStrictMode(it, msg, it.opts.strictTypes) -} - -export class KeywordCxt implements KeywordErrorCxt { - readonly gen: CodeGen - readonly allErrors?: boolean - readonly keyword: string - readonly data: Name // Name referencing the current level of the data instance - readonly $data?: string | false - schema: any // keyword value in the schema - readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value - readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data) - readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema - readonly parentSchema: AnySchemaObject - readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword, - // requires option trackErrors in keyword definition - params: KeywordCxtParams // object to pass parameters to error messages from keyword code - readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean) - readonly def: AddedKeywordDefinition - - constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) { - validateKeywordUsage(it, def, keyword) - this.gen = it.gen - this.allErrors = it.allErrors - this.keyword = keyword - this.data = it.data - this.schema = it.schema[keyword] - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data - this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data) - this.schemaType = def.schemaType - this.parentSchema = it.schema - this.params = {} - this.it = it - this.def = def - - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)) - } else { - this.schemaCode = this.schemaValue - if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`) - } - } - - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", N.errors) - } - } - - result(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.failResult(not(condition), successAction, failAction) - } - - failResult(condition: Code, successAction?: () => void, failAction?: () => void): void { - this.gen.if(condition) - if (failAction) failAction() - else this.error() - if (successAction) { - this.gen.else() - successAction() - if (this.allErrors) this.gen.endIf() - } else { - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - } - - pass(condition: Code, failAction?: () => void): void { - this.failResult(not(condition), undefined, failAction) - } - - fail(condition?: Code): void { - if (condition === undefined) { - this.error() - if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize - return - } - this.gen.if(condition) - this.error() - if (this.allErrors) this.gen.endIf() - else this.gen.else() - } - - fail$data(condition: Code): void { - if (!this.$data) return this.fail(condition) - const {schemaCode} = this - this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`) - } - - error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void { - if (errorParams) { - this.setParams(errorParams) - this._error(append, errorPaths) - this.setParams({}) - return - } - this._error(append, errorPaths) - } - - private _error(append?: boolean, errorPaths?: ErrorPaths): void { - ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths) - } - - $dataError(): void { - reportError(this, this.def.$dataError || keyword$DataError) - } - - reset(): void { - if (this.errsCount === undefined) throw new Error('add "trackErrors" to keyword definition') - resetErrorsCount(this.gen, this.errsCount) - } - - ok(cond: Code | boolean): void { - if (!this.allErrors) this.gen.if(cond) - } - - setParams(obj: KeywordCxtParams, assign?: true): void { - if (assign) Object.assign(this.params, obj) - else this.params = obj - } - - block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void { - this.gen.block(() => { - this.check$data(valid, $dataValid) - codeBlock() - }) - } - - check$data(valid: Name = nil, $dataValid: Code = nil): void { - if (!this.$data) return - const {gen, schemaCode, schemaType, def} = this - gen.if(or(_`${schemaCode} === undefined`, $dataValid)) - if (valid !== nil) gen.assign(valid, true) - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()) - this.$dataError() - if (valid !== nil) gen.assign(valid, false) - } - gen.else() - } - - invalid$data(): Code { - const {gen, schemaCode, schemaType, def, it} = this - return or(wrong$DataType(), invalid$DataSchema()) - - function wrong$DataType(): Code { - if (schemaType.length) { - /* istanbul ignore if */ - if (!(schemaCode instanceof Name)) throw new Error("ajv implementation error") - const st = Array.isArray(schemaType) ? schemaType : [schemaType] - return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}` - } - return nil - } - - function invalid$DataSchema(): Code { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", {ref: def.validateSchema}) // TODO value.code for standalone - return _`!${validateSchemaRef}(${schemaCode})` - } - return nil - } - } - - subschema(appl: SubschemaArgs, valid: Name): SchemaCxt { - const subschema = getSubschema(this.it, appl) - extendSubschemaData(subschema, this.it, appl) - extendSubschemaMode(subschema, appl) - const nextContext = {...this.it, ...subschema, items: undefined, props: undefined} - subschemaCode(nextContext, valid) - return nextContext - } - - mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void { - const {it, gen} = this - if (!it.opts.unevaluated) return - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName) - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName) - } - } - - mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void { - const {it, gen} = this - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name)) - return true - } - } -} - -function keywordCode( - it: SchemaObjCxt, - keyword: string, - def: AddedKeywordDefinition, - ruleType?: JSONType -): void { - const cxt = new KeywordCxt(it, def, keyword) - if ("code" in def) { - def.code(cxt, ruleType) - } else if (cxt.$data && def.validate) { - funcKeywordCode(cxt, def) - } else if ("macro" in def) { - macroKeywordCode(cxt, def) - } else if (def.compile || def.validate) { - funcKeywordCode(cxt, def) - } -} - -const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/ -const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/ -export function getData( - $data: string, - {dataLevel, dataNames, dataPathArr}: SchemaCxt -): Code | number { - let jsonPointer - let data: Code - if ($data === "") return N.rootData - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`) - jsonPointer = $data - data = N.rootData - } else { - const matches = RELATIVE_JSON_POINTER.exec($data) - if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`) - const up: number = +matches[1] - jsonPointer = matches[2] - if (jsonPointer === "#") { - if (up >= dataLevel) throw new Error(errorMsg("property/index", up)) - return dataPathArr[dataLevel - up] - } - if (up > dataLevel) throw new Error(errorMsg("data", up)) - data = dataNames[dataLevel - up] - if (!jsonPointer) return data - } - - let expr = data - const segments = jsonPointer.split("/") - for (const segment of segments) { - if (segment) { - data = _`${data}${getProperty(unescapeJsonPointer(segment))}` - expr = _`${expr} && ${data}` - } - } - return expr - - function errorMsg(pointerType: string, up: number): string { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}` - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/keyword.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/keyword.ts deleted file mode 100644 index f854aa71..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/keyword.ts +++ /dev/null @@ -1,171 +0,0 @@ -import type {KeywordCxt} from "." -import type { - AnySchema, - SchemaValidateFunction, - AnyValidateFunction, - AddedKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, -} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, nil, not, stringify, Code, Name, CodeGen} from "../codegen" -import N from "../names" -import type {JSONType} from "../rules" -import {callValidateCode} from "../../vocabularies/code" -import {extendErrors} from "../errors" - -type KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction - -export function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, it} = cxt - const macroSchema = def.macro.call(it.self, schema, parentSchema, it) - const schemaRef = useKeyword(gen, keyword, macroSchema) - if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true) - - const valid = gen.name("valid") - cxt.subschema( - { - schema: macroSchema, - schemaPath: nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true, - }, - valid - ) - cxt.pass(valid, () => cxt.error(true)) -} - -export function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void { - const {gen, keyword, schema, parentSchema, $data, it} = cxt - checkAsyncKeyword(it, def) - const validate = - !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate - const validateRef = useKeyword(gen, keyword, validate) - const valid = gen.let("valid") - cxt.block$data(valid, validateKeyword) - cxt.ok(def.valid ?? valid) - - function validateKeyword(): void { - if (def.errors === false) { - assignValid() - if (def.modifying) modifyData(cxt) - reportErrs(() => cxt.error()) - } else { - const ruleErrs = def.async ? validateAsync() : validateSync() - if (def.modifying) modifyData(cxt) - reportErrs(() => addErrs(cxt, ruleErrs)) - } - } - - function validateAsync(): Name { - const ruleErrs = gen.let("ruleErrs", null) - gen.try( - () => assignValid(_`await `), - (e) => - gen.assign(valid, false).if( - _`${e} instanceof ${it.ValidationError as Name}`, - () => gen.assign(ruleErrs, _`${e}.errors`), - () => gen.throw(e) - ) - ) - return ruleErrs - } - - function validateSync(): Code { - const validateErrs = _`${validateRef}.errors` - gen.assign(validateErrs, null) - assignValid(nil) - return validateErrs - } - - function assignValid(_await: Code = def.async ? _`await ` : nil): void { - const passCxt = it.opts.passContext ? N.this : N.self - const passSchema = !(("compile" in def && !$data) || def.schema === false) - gen.assign( - valid, - _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`, - def.modifying - ) - } - - function reportErrs(errors: () => void): void { - gen.if(not(def.valid ?? valid), errors) - } -} - -function modifyData(cxt: KeywordCxt): void { - const {gen, data, it} = cxt - gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`)) -} - -function addErrs(cxt: KeywordCxt, errs: Code): void { - const {gen} = cxt - gen.if( - _`Array.isArray(${errs})`, - () => { - gen - .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) - .assign(N.errors, _`${N.vErrors}.length`) - extendErrors(cxt) - }, - () => cxt.error() - ) -} - -function checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void { - if (def.async && !schemaEnv.$async) throw new Error("async keyword in sync schema") -} - -function useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name { - if (result === undefined) throw new Error(`keyword "${keyword}" failed to compile`) - return gen.scopeValue( - "keyword", - typeof result == "function" ? {ref: result} : {ref: result, code: stringify(result)} - ) -} - -export function validSchemaType( - schema: unknown, - schemaType: JSONType[], - allowUndefined = false -): boolean { - // TODO add tests - return ( - !schemaType.length || - schemaType.some((st) => - st === "array" - ? Array.isArray(schema) - : st === "object" - ? schema && typeof schema == "object" && !Array.isArray(schema) - : typeof schema == st || (allowUndefined && typeof schema == "undefined") - ) - ) -} - -export function validateKeywordUsage( - {schema, opts, self, errSchemaPath}: SchemaObjCxt, - def: AddedKeywordDefinition, - keyword: string -): void { - /* istanbul ignore if */ - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error") - } - - const deps = def.dependencies - if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`) - } - - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]) - if (!valid) { - const msg = - `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + - self.errorsText(def.validateSchema.errors) - if (opts.validateSchema === "log") self.logger.error(msg) - else throw new Error(msg) - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/subschema.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/subschema.ts deleted file mode 100644 index 9072ed77..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/compile/validate/subschema.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type {AnySchema} from "../../types" -import type {SchemaObjCxt} from ".." -import {_, str, getProperty, Code, Name} from "../codegen" -import {escapeFragment, getErrorPath, Type} from "../util" -import type {JSONType} from "../rules" - -export interface SubschemaContext { - // TODO use Optional? align with SchemCxt property types - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef?: Code - errorPath?: Code - dataLevel?: number - dataTypes?: JSONType[] - data?: Name - parentData?: Name - parentDataProperty?: Code | number - dataNames?: Name[] - dataPathArr?: (Code | number)[] - propertyName?: Name - jtdDiscriminator?: string - jtdMetadata?: boolean - compositeRule?: true - createErrors?: boolean - allErrors?: boolean -} - -export type SubschemaArgs = Partial<{ - keyword: string - schemaProp: string | number - schema: AnySchema - schemaPath: Code - errSchemaPath: string - topSchemaRef: Code - data: Name | Code - dataProp: Code | string | number - dataTypes: JSONType[] - definedProperties: Set - propertyName: Name - dataPropType: Type - jtdDiscriminator: string - jtdMetadata: boolean - compositeRule: true - createErrors: boolean - allErrors: boolean -}> - -export function getSubschema( - it: SchemaObjCxt, - {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs -): SubschemaContext { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed') - } - - if (keyword !== undefined) { - const sch = it.schema[keyword] - return schemaProp === undefined - ? { - schema: sch, - schemaPath: _`${it.schemaPath}${getProperty(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - } - : { - schema: sch[schemaProp], - schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`, - } - } - - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"') - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath, - } - } - - throw new Error('either "keyword" or "schema" must be passed') -} - -export function extendSubschemaData( - subschema: SubschemaContext, - it: SchemaObjCxt, - {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs -): void { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed') - } - - const {gen} = it - - if (dataProp !== undefined) { - const {errorPath, dataPathArr, opts} = it - const nextData = gen.let("data", _`${it.data}${getProperty(dataProp)}`, true) - dataContextProps(nextData) - subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}` - subschema.parentDataProperty = _`${dataProp}` - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty] - } - - if (data !== undefined) { - const nextData = data instanceof Name ? data : gen.let("data", data, true) // replaceable if used once? - dataContextProps(nextData) - if (propertyName !== undefined) subschema.propertyName = propertyName - // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr - } - - if (dataTypes) subschema.dataTypes = dataTypes - - function dataContextProps(_nextData: Name): void { - subschema.data = _nextData - subschema.dataLevel = it.dataLevel + 1 - subschema.dataTypes = [] - it.definedProperties = new Set() - subschema.parentData = it.data - subschema.dataNames = [...it.dataNames, _nextData] - } -} - -export function extendSubschemaMode( - subschema: SubschemaContext, - {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs -): void { - if (compositeRule !== undefined) subschema.compositeRule = compositeRule - if (createErrors !== undefined) subschema.createErrors = createErrors - if (allErrors !== undefined) subschema.allErrors = allErrors - subschema.jtdDiscriminator = jtdDiscriminator // not inherited - subschema.jtdMetadata = jtdMetadata // not inherited -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/core.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/core.ts deleted file mode 100644 index 3686ffe7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/core.ts +++ /dev/null @@ -1,887 +0,0 @@ -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - AnyValidateFunction, - ErrorObject, - ErrorNoParams, -} from "./types" - -export {SchemaCxt, SchemaObjCxt} from "./compile" -export interface Plugin { - (ajv: Ajv, options?: Opts): Ajv - [prop: string]: any -} - -export {KeywordCxt} from "./compile/validate" -export {DefinedError} from "./vocabularies/errors" -export {JSONType} from "./compile/rules" -export {JSONSchemaType} from "./types/json-schema" -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -import type { - Schema, - AnySchema, - AnySchemaObject, - SchemaObject, - AsyncSchema, - Vocabulary, - KeywordDefinition, - AddedKeywordDefinition, - AnyValidateFunction, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - Format, - AddedFormat, - RegExpEngine, - UriResolver, -} from "./types" -import type {JSONSchemaType} from "./types/json-schema" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import ValidationError from "./runtime/validation_error" -import MissingRefError from "./compile/ref_error" -import {getRules, ValidationRules, Rule, RuleGroup, JSONType} from "./compile/rules" -import {SchemaEnv, compileSchema, resolveSchema} from "./compile" -import {Code, ValueScope} from "./compile/codegen" -import {normalizeId, getSchemaRefs} from "./compile/resolve" -import {getJSONTypes} from "./compile/validate/dataType" -import {eachItem} from "./compile/util" -import * as $dataRefSchema from "./refs/data.json" - -import DefaultUriResolver from "./runtime/uri" - -const defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags) -defaultRegExp.code = "new RegExp" - -const META_IGNORE_OPTIONS: (keyof Options)[] = ["removeAdditional", "useDefaults", "coerceTypes"] -const EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error", -]) - -export type Options = CurrentOptions & DeprecatedOptions - -export interface CurrentOptions { - // strict mode options (NEW) - strict?: boolean | "log" - strictSchema?: boolean | "log" - strictNumbers?: boolean | "log" - strictTypes?: boolean | "log" - strictTuples?: boolean | "log" - strictRequired?: boolean | "log" - allowMatchingProperties?: boolean // disables a strict mode restriction - allowUnionTypes?: boolean - validateFormats?: boolean - // validation and reporting options: - $data?: boolean - allErrors?: boolean - verbose?: boolean - discriminator?: boolean - unicodeRegExp?: boolean - timestamp?: "string" | "date" // JTD only - parseDate?: boolean // JTD only - allowDate?: boolean // JTD only - $comment?: - | true - | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown) - formats?: {[Name in string]?: Format} - keywords?: Vocabulary - schemas?: AnySchema[] | {[Key in string]?: AnySchema} - logger?: Logger | false - loadSchema?: (uri: string) => Promise - // options to modify validated data: - removeAdditional?: boolean | "all" | "failing" - useDefaults?: boolean | "empty" - coerceTypes?: boolean | "array" - // advanced options: - next?: boolean // NEW - unevaluated?: boolean // NEW - dynamicRef?: boolean // NEW - schemaId?: "id" | "$id" - jtd?: boolean // NEW - meta?: SchemaObject | boolean - defaultMeta?: string | AnySchemaObject - validateSchema?: boolean | "log" - addUsedSchema?: boolean - inlineRefs?: boolean | number - passContext?: boolean - loopRequired?: number - loopEnum?: number // NEW - ownProperties?: boolean - multipleOfPrecision?: number - int32range?: boolean // JTD only - messages?: boolean - code?: CodeOptions // NEW - uriResolver?: UriResolver -} - -export interface CodeOptions { - es5?: boolean - esm?: boolean - lines?: boolean - optimize?: boolean | number - formats?: Code // code to require (or construct) map of available formats - for standalone code - source?: boolean - process?: (code: string, schema?: SchemaEnv) => string - regExp?: RegExpEngine -} - -interface InstanceCodeOptions extends CodeOptions { - regExp: RegExpEngine - optimize: number -} - -interface DeprecatedOptions { - /** @deprecated */ - ignoreKeywordsWithRef?: boolean - /** @deprecated */ - jsPropertySyntax?: boolean // added instead of jsonPointers - /** @deprecated */ - unicode?: boolean -} - -interface RemovedOptions { - format?: boolean - errorDataPath?: "object" | "property" - nullable?: boolean // "nullable" keyword is supported by default - jsonPointers?: boolean - extendRefs?: true | "ignore" | "fail" - missingRefs?: true | "ignore" | "fail" - processCode?: (code: string, schema?: SchemaEnv) => string - sourceCode?: boolean - strictDefaults?: boolean - strictKeywords?: boolean - uniqueItems?: boolean - unknownFormats?: true | string[] | "ignore" - cache?: any - serialize?: (schema: AnySchema) => unknown - ajvErrors?: boolean -} - -type OptionsInfo = { - [K in keyof T]-?: string | undefined -} - -const removedOptions: OptionsInfo = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now.", -} - -const deprecatedOptions: OptionsInfo = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.', -} - -type RequiredInstanceOptions = { - [K in - | "strictSchema" - | "strictNumbers" - | "strictTypes" - | "strictTuples" - | "strictRequired" - | "inlineRefs" - | "loopRequired" - | "loopEnum" - | "meta" - | "messages" - | "schemaId" - | "addUsedSchema" - | "validateSchema" - | "validateFormats" - | "int32range" - | "unicodeRegExp" - | "uriResolver"]: NonNullable -} & {code: InstanceCodeOptions} - -export type InstanceOptions = Options & RequiredInstanceOptions - -const MAX_EXPRESSION = 200 - -// eslint-disable-next-line complexity -function requiredOptions(o: Options): RequiredInstanceOptions { - const s = o.strict - const _optz = o.code?.optimize - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0 - const regExp = o.code?.regExp ?? defaultRegExp - const uriResolver = o.uriResolver ?? DefaultUriResolver - return { - strictSchema: o.strictSchema ?? s ?? true, - strictNumbers: o.strictNumbers ?? s ?? true, - strictTypes: o.strictTypes ?? s ?? "log", - strictTuples: o.strictTuples ?? s ?? "log", - strictRequired: o.strictRequired ?? s ?? false, - code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp}, - loopRequired: o.loopRequired ?? MAX_EXPRESSION, - loopEnum: o.loopEnum ?? MAX_EXPRESSION, - meta: o.meta ?? true, - messages: o.messages ?? true, - inlineRefs: o.inlineRefs ?? true, - schemaId: o.schemaId ?? "$id", - addUsedSchema: o.addUsedSchema ?? true, - validateSchema: o.validateSchema ?? true, - validateFormats: o.validateFormats ?? true, - unicodeRegExp: o.unicodeRegExp ?? true, - int32range: o.int32range ?? true, - uriResolver: uriResolver, - } -} - -export interface Logger { - log(...args: unknown[]): unknown - warn(...args: unknown[]): unknown - error(...args: unknown[]): unknown -} - -export default class Ajv { - opts: InstanceOptions - errors?: ErrorObject[] | null // errors from the last validation - logger: Logger - // shared external scope values for compiled functions - readonly scope: ValueScope - readonly schemas: {[Key in string]?: SchemaEnv} = {} - readonly refs: {[Ref in string]?: SchemaEnv | string} = {} - readonly formats: {[Name in string]?: AddedFormat} = {} - readonly RULES: ValidationRules - readonly _compilations: Set = new Set() - private readonly _loading: {[Ref in string]?: Promise} = {} - private readonly _cache: Map = new Map() - private readonly _metaOpts: InstanceOptions - - static ValidationError = ValidationError - static MissingRefError = MissingRefError - - constructor(opts: Options = {}) { - opts = this.opts = {...opts, ...requiredOptions(opts)} - const {es5, lines} = this.opts.code - - this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines}) - this.logger = getLogger(opts.logger) - const formatOpt = opts.validateFormats - opts.validateFormats = false - - this.RULES = getRules() - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED") - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn") - this._metaOpts = getMetaSchemaOptions.call(this) - - if (opts.formats) addInitialFormats.call(this) - this._addVocabularies() - this._addDefaultMetaSchema() - if (opts.keywords) addInitialKeywords.call(this, opts.keywords) - if (typeof opts.meta == "object") this.addMetaSchema(opts.meta) - addInitialSchemas.call(this) - opts.validateFormats = formatOpt - } - - _addVocabularies(): void { - this.addKeyword("$async") - } - - _addDefaultMetaSchema(): void { - const {$data, meta, schemaId} = this.opts - let _dataRefSchema: SchemaObject = $dataRefSchema - if (schemaId === "id") { - _dataRefSchema = {...$dataRefSchema} - _dataRefSchema.id = _dataRefSchema.$id - delete _dataRefSchema.$id - } - if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - const {meta, schemaId} = this.opts - return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined) - } - - // Validate data using schema - // AnySchema will be compiled and cached using schema itself as a key for Map - validate(schema: Schema | string, data: unknown): boolean - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise - validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - validate(schema: JTDSchemaType, data: unknown): data is T - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - validate( - schema: T, - data: unknown - ): data is JTDDataType - validate(schema: AsyncSchema, data: unknown | T): Promise - validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise - validate( - schemaKeyRef: AnySchema | string, // key, ref or schema object - data: unknown | T // to be validated - ): boolean | Promise { - let v: AnyValidateFunction | undefined - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef) - if (!v) throw new Error(`no schema with key or ref "${schemaKeyRef}"`) - } else { - v = this.compile(schemaKeyRef) - } - - const valid = v(data) - if (!("$async" in v)) this.errors = v.errors - return valid - } - - // Create validation function for passed schema - // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords. - compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction - // This overload is only intended for typescript inference, the first - // argument prevents manual type annotation from matching this overload - compile( - schema: T, - _meta?: boolean - ): ValidateFunction> - compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction - compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction { - const sch = this._addSchema(schema, _meta) - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction - } - - // Creates validating function for passed schema with asynchronous loading of missing schemas. - // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema. - // TODO allow passing schema URI - // meta - optional true to compile meta-schema - compileAsync( - schema: SchemaObject | JSONSchemaType, - _meta?: boolean - ): Promise> - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise> - compileAsync(schema: AsyncSchema, meta?: boolean): Promise> - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> - compileAsync( - schema: AnySchemaObject, - meta?: boolean - ): Promise> { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function") - } - const {loadSchema} = this.opts - return runCompileAsync.call(this, schema, meta) - - async function runCompileAsync( - this: Ajv, - _schema: AnySchemaObject, - _meta?: boolean - ): Promise { - await loadMetaSchema.call(this, _schema.$schema) - const sch = this._addSchema(_schema, _meta) - return sch.validate || _compileAsync.call(this, sch) - } - - async function loadMetaSchema(this: Ajv, $ref?: string): Promise { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, {$ref}, true) - } - } - - async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise { - try { - return this._compileSchemaEnv(sch) - } catch (e) { - if (!(e instanceof MissingRefError)) throw e - checkLoaded.call(this, e) - await loadMissingSchema.call(this, e.missingSchema) - return _compileAsync.call(this, sch) - } - } - - function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`) - } - } - - async function loadMissingSchema(this: Ajv, ref: string): Promise { - const _schema = await _loadSchema.call(this, ref) - if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema) - if (!this.refs[ref]) this.addSchema(_schema, ref, meta) - } - - async function _loadSchema(this: Ajv, ref: string): Promise { - const p = this._loading[ref] - if (p) return p - try { - return await (this._loading[ref] = loadSchema(ref)) - } finally { - delete this._loading[ref] - } - } - } - - // Adds schema to the instance - addSchema( - schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored - key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. - _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. - _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead. - ): Ajv { - if (Array.isArray(schema)) { - for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema) - return this - } - let id: string | undefined - if (typeof schema === "object") { - const {schemaId} = this.opts - id = schema[schemaId] - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`) - } - } - key = normalizeId(key || id) - this._checkUnique(key) - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true) - return this - } - - // Add schema that will be used to validate other schemas - // options in META_IGNORE_OPTIONS are alway set to false - addMetaSchema( - schema: AnySchemaObject, - key?: string, // schema key - _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema - ): Ajv { - this.addSchema(schema, key, true, _validateSchema) - return this - } - - // Validate schema against its meta-schema - validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise { - if (typeof schema == "boolean") return true - let $schema: string | AnySchemaObject | undefined - $schema = schema.$schema - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string") - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta() - if (!$schema) { - this.logger.warn("meta-schema not available") - this.errors = null - return true - } - const valid = this.validate($schema, schema) - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText() - if (this.opts.validateSchema === "log") this.logger.error(message) - else throw new Error(message) - } - return valid - } - - // Get compiled schema by `key` or `ref`. - // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id) - getSchema(keyRef: string): AnyValidateFunction | undefined { - let sch - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") keyRef = sch - if (sch === undefined) { - const {schemaId} = this.opts - const root = new SchemaEnv({schema: {}, schemaId}) - sch = resolveSchema.call(this, root, keyRef) - if (!sch) return - this.refs[keyRef] = sch - } - return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction | undefined - } - - // Remove cached schema(s). - // If no parameter is passed all schemas but meta-schemas are removed. - // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. - // Even if schema is referenced by other schemas it still can be removed as other schemas have local references. - removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef) - this._removeAllSchemas(this.refs, schemaKeyRef) - return this - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas) - this._removeAllSchemas(this.refs) - this._cache.clear() - return this - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef) - if (typeof sch == "object") this._cache.delete(sch.schema) - delete this.schemas[schemaKeyRef] - delete this.refs[schemaKeyRef] - return this - } - case "object": { - const cacheKey = schemaKeyRef - this._cache.delete(cacheKey) - let id = schemaKeyRef[this.opts.schemaId] - if (id) { - id = normalizeId(id) - delete this.schemas[id] - delete this.refs[id] - } - return this - } - default: - throw new Error("ajv.removeSchema: invalid parameter") - } - } - - // add "vocabulary" - a collection of keywords - addVocabulary(definitions: Vocabulary): Ajv { - for (const def of definitions) this.addKeyword(def) - return this - } - - addKeyword( - kwdOrDef: string | KeywordDefinition, - def?: KeywordDefinition // deprecated - ): Ajv { - let keyword: string | string[] - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword") - def.keyword = keyword - } - } else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef - keyword = def.keyword - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array") - } - } else { - throw new Error("invalid addKeywords parameters") - } - - checkKeyword.call(this, keyword, def) - if (!def) { - eachItem(keyword, (kwd) => addRule.call(this, kwd)) - return this - } - keywordMetaschema.call(this, def) - const definition: AddedKeywordDefinition = { - ...def, - type: getJSONTypes(def.type), - schemaType: getJSONTypes(def.schemaType), - } - eachItem( - keyword, - definition.type.length === 0 - ? (k) => addRule.call(this, k, definition) - : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)) - ) - return this - } - - getKeyword(keyword: string): AddedKeywordDefinition | boolean { - const rule = this.RULES.all[keyword] - return typeof rule == "object" ? rule.definition : !!rule - } - - // Remove keyword - removeKeyword(keyword: string): Ajv { - // TODO return type should be Ajv - const {RULES} = this - delete RULES.keywords[keyword] - delete RULES.all[keyword] - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword) - if (i >= 0) group.rules.splice(i, 1) - } - return this - } - - // Add format - addFormat(name: string, format: Format): Ajv { - if (typeof format == "string") format = new RegExp(format) - this.formats[name] = format - return this - } - - errorsText( - errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors - {separator = ", ", dataVar = "data"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar` - ): string { - if (!errors || errors.length === 0) return "No errors" - return errors - .map((e) => `${dataVar}${e.instancePath} ${e.message}`) - .reduce((text, msg) => text + separator + msg) - } - - $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject { - const rules = this.RULES.all - metaSchema = JSON.parse(JSON.stringify(metaSchema)) - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1) // first segment is an empty string - let keywords = metaSchema - for (const seg of segments) keywords = keywords[seg] as AnySchemaObject - - for (const key in rules) { - const rule = rules[key] - if (typeof rule != "object") continue - const {$data} = rule.definition - const schema = keywords[key] as AnySchemaObject | undefined - if ($data && schema) keywords[key] = schemaOrData(schema) - } - } - - return metaSchema - } - - private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void { - for (const keyRef in schemas) { - const sch = schemas[keyRef] - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas[keyRef] - } else if (sch && !sch.meta) { - this._cache.delete(sch.schema) - delete schemas[keyRef] - } - } - } - } - - _addSchema( - schema: AnySchema, - meta?: boolean, - baseId?: string, - validateSchema = this.opts.validateSchema, - addSchema = this.opts.addUsedSchema - ): SchemaEnv { - let id: string | undefined - const {schemaId} = this.opts - if (typeof schema == "object") { - id = schema[schemaId] - } else { - if (this.opts.jtd) throw new Error("schema must be object") - else if (typeof schema != "boolean") throw new Error("schema must be object or boolean") - } - let sch = this._cache.get(schema) - if (sch !== undefined) return sch - - baseId = normalizeId(id || baseId) - const localRefs = getSchemaRefs.call(this, schema, baseId) - sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs}) - this._cache.set(sch.schema, sch) - if (addSchema && !baseId.startsWith("#")) { - // TODO atm it is allowed to overwrite schemas without id (instead of not adding them) - if (baseId) this._checkUnique(baseId) - this.refs[baseId] = sch - } - if (validateSchema) this.validateSchema(schema, true) - return sch - } - - private _checkUnique(id: string): void { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`) - } - } - - private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction { - if (sch.meta) this._compileMetaSchema(sch) - else compileSchema.call(this, sch) - - /* istanbul ignore if */ - if (!sch.validate) throw new Error("ajv implementation error") - return sch.validate - } - - private _compileMetaSchema(sch: SchemaEnv): void { - const currentOpts = this.opts - this.opts = this._metaOpts - try { - compileSchema.call(this, sch) - } finally { - this.opts = currentOpts - } - } -} - -export interface ErrorsTextOptions { - separator?: string - dataVar?: string -} - -function checkOptions( - this: Ajv, - checkOpts: OptionsInfo, - options: Options & RemovedOptions, - msg: string, - log: "warn" | "error" = "error" -): void { - for (const key in checkOpts) { - const opt = key as keyof typeof checkOpts - if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`) - } -} - -function getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined { - keyRef = normalizeId(keyRef) // TODO tests fail without this line - return this.schemas[keyRef] || this.refs[keyRef] -} - -function addInitialSchemas(this: Ajv): void { - const optsSchemas = this.opts.schemas - if (!optsSchemas) return - if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas) - else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key) -} - -function addInitialFormats(this: Ajv): void { - for (const name in this.opts.formats) { - const format = this.opts.formats[name] - if (format) this.addFormat(name, format) - } -} - -function addInitialKeywords( - this: Ajv, - defs: Vocabulary | {[K in string]?: KeywordDefinition} -): void { - if (Array.isArray(defs)) { - this.addVocabulary(defs) - return - } - this.logger.warn("keywords option as map is deprecated, pass array") - for (const keyword in defs) { - const def = defs[keyword] as KeywordDefinition - if (!def.keyword) def.keyword = keyword - this.addKeyword(def) - } -} - -function getMetaSchemaOptions(this: Ajv): InstanceOptions { - const metaOpts = {...this.opts} - for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt] - return metaOpts -} - -const noLogs = {log() {}, warn() {}, error() {}} - -function getLogger(logger?: Partial | false): Logger { - if (logger === false) return noLogs - if (logger === undefined) return console - if (logger.log && logger.warn && logger.error) return logger as Logger - throw new Error("logger must implement log, warn and error methods") -} - -const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i - -function checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void { - const {RULES} = this - eachItem(keyword, (kwd) => { - if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`) - if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`) - }) - if (!def) return - if (def.$data && !("code" in def || "validate" in def)) { - throw new Error('$data keyword must have "code" or "validate" function') - } -} - -function addRule( - this: Ajv, - keyword: string, - definition?: AddedKeywordDefinition, - dataType?: JSONType -): void { - const post = definition?.post - if (dataType && post) throw new Error('keyword with "post" flag cannot have "type"') - const {RULES} = this - let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType) - if (!ruleGroup) { - ruleGroup = {type: dataType, rules: []} - RULES.rules.push(ruleGroup) - } - RULES.keywords[keyword] = true - if (!definition) return - - const rule: Rule = { - keyword, - definition: { - ...definition, - type: getJSONTypes(definition.type), - schemaType: getJSONTypes(definition.schemaType), - }, - } - if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before) - else ruleGroup.rules.push(rule) - RULES.all[keyword] = rule - definition.implements?.forEach((kwd) => this.addKeyword(kwd)) -} - -function addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before) - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule) - } else { - ruleGroup.rules.push(rule) - this.logger.warn(`rule ${before} is not defined`) - } -} - -function keywordMetaschema(this: Ajv, def: KeywordDefinition): void { - let {metaSchema} = def - if (metaSchema === undefined) return - if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema) - def.validateSchema = this.compile(metaSchema, true) -} - -const $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", -} - -function schemaOrData(schema: AnySchema): AnySchemaObject { - return {anyOf: [schema, $dataRef]} -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/jtd.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/jtd.ts deleted file mode 100644 index b53749ba..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/jtd.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type {AnySchemaObject, SchemaObject, JTDParser} from "./types" -import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema" -import AjvCore, {CurrentOptions} from "./core" -import jtdVocabulary from "./vocabularies/jtd" -import jtdMetaSchema from "./refs/jtd-schema" -import compileSerializer from "./compile/jtd/serialize" -import compileParser from "./compile/jtd/parse" -import {SchemaEnv} from "./compile" - -const META_SCHEMA_ID = "JTD-meta-schema" - -type JTDOptions = CurrentOptions & { - // strict mode options not supported with JTD: - strict?: never - allowMatchingProperties?: never - allowUnionTypes?: never - validateFormats?: never - // validation and reporting options not supported with JTD: - $data?: never - verbose?: boolean - $comment?: never - formats?: never - loadSchema?: never - // options to modify validated data: - useDefaults?: never - coerceTypes?: never - // advanced options: - next?: never - unevaluated?: never - dynamicRef?: never - meta?: boolean - defaultMeta?: never - inlineRefs?: boolean - loopRequired?: never - multipleOfPrecision?: never -} - -class Ajv extends AjvCore { - constructor(opts: JTDOptions = {}) { - super({ - ...opts, - jtd: true, - }) - } - - _addVocabularies(): void { - super._addVocabularies() - this.addVocabulary(jtdVocabulary) - } - - _addDefaultMetaSchema(): void { - super._addDefaultMetaSchema() - if (!this.opts.meta) return - this.addMetaSchema(jtdMetaSchema, META_SCHEMA_ID, false) - } - - defaultMeta(): string | AnySchemaObject | undefined { - return (this.opts.defaultMeta = - super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) - } - - compileSerializer(schema: SchemaObject): (data: T) => string - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileSerializer(schema: JTDSchemaType): (data: T) => string - compileSerializer(schema: SchemaObject): (data: T) => string { - const sch = this._addSchema(schema) - return sch.serialize || this._compileSerializer(sch) - } - - compileParser(schema: SchemaObject): JTDParser - // Separated for type inference to work - // eslint-disable-next-line @typescript-eslint/unified-signatures - compileParser(schema: JTDSchemaType): JTDParser - compileParser(schema: SchemaObject): JTDParser { - const sch = this._addSchema(schema) - return (sch.parse || this._compileParser(sch)) as JTDParser - } - - private _compileSerializer(sch: SchemaEnv): (data: T) => string { - compileSerializer.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.serialize) throw new Error("ajv implementation error") - return sch.serialize - } - - private _compileParser(sch: SchemaEnv): JTDParser { - compileParser.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) - /* istanbul ignore if */ - if (!sch.parse) throw new Error("ajv implementation error") - return sch.parse - } -} - -module.exports = exports = Ajv -Object.defineProperty(exports, "__esModule", {value: true}) - -export default Ajv - -export { - Format, - FormatDefinition, - AsyncFormatDefinition, - KeywordDefinition, - KeywordErrorDefinition, - CodeKeywordDefinition, - MacroKeywordDefinition, - FuncKeywordDefinition, - Vocabulary, - Schema, - SchemaObject, - AnySchemaObject, - AsyncSchema, - AnySchema, - ValidateFunction, - AsyncValidateFunction, - ErrorObject, - ErrorNoParams, - JTDParser, -} from "./types" - -export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core" -export {SchemaCxt, SchemaObjCxt} from "./compile" -export {KeywordCxt} from "./compile/validate" -export {JTDErrorObject} from "./vocabularies/jtd" -export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen" - -export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} -export {JTDOptions} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/data.json deleted file mode 100644 index 9ffc9f5c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/data.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)", - "type": "object", - "required": ["$data"], - "properties": { - "$data": { - "type": "string", - "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}] - } - }, - "additionalProperties": false -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts deleted file mode 100644 index b6ea7195..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json deleted file mode 100644 index c5e91cf2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/applicator": true - }, - "$recursiveAnchor": true, - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "additionalItems": {"$recursiveRef": "#"}, - "unevaluatedItems": {"$recursiveRef": "#"}, - "items": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}] - }, - "contains": {"$recursiveRef": "#"}, - "additionalProperties": {"$recursiveRef": "#"}, - "unevaluatedProperties": {"$recursiveRef": "#"}, - "properties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": { - "$recursiveRef": "#" - } - }, - "propertyNames": {"$recursiveRef": "#"}, - "if": {"$recursiveRef": "#"}, - "then": {"$recursiveRef": "#"}, - "else": {"$recursiveRef": "#"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$recursiveRef": "#"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$recursiveRef": "#"} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json deleted file mode 100644 index b8f63734..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "contentSchema": {"$recursiveRef": "#"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json deleted file mode 100644 index f71adbff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, - "$recursiveAnchor": true, - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$anchor": { - "type": "string", - "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveRef": { - "type": "string", - "format": "uri-reference" - }, - "$recursiveAnchor": { - "type": "boolean", - "default": false - }, - "$vocabulary": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri" - }, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json deleted file mode 100644 index 03ccfce2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/format", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/format": true - }, - "$recursiveAnchor": true, - - "title": "Format vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json deleted file mode 100644 index 0e194326..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/meta-data": true - }, - "$recursiveAnchor": true, - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json deleted file mode 100644 index 7027a127..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, - "$recursiveAnchor": true, - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json deleted file mode 100644 index 54eb7157..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://json-schema.org/draft/2019-09/schema", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true, - "https://json-schema.org/draft/2019-09/vocab/applicator": true, - "https://json-schema.org/draft/2019-09/vocab/validation": true, - "https://json-schema.org/draft/2019-09/vocab/meta-data": true, - "https://json-schema.org/draft/2019-09/vocab/format": false, - "https://json-schema.org/draft/2019-09/vocab/content": true - }, - "$recursiveAnchor": true, - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "properties": { - "definitions": { - "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", - "type": "object", - "additionalProperties": {"$recursiveRef": "#"}, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"", - "type": "object", - "additionalProperties": { - "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}] - } - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts deleted file mode 100644 index 8e850d08..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type Ajv from "../../core" -import type {AnySchemaObject} from "../../types" -import * as metaSchema from "./schema.json" -import * as applicator from "./meta/applicator.json" -import * as unevaluated from "./meta/unevaluated.json" -import * as content from "./meta/content.json" -import * as core from "./meta/core.json" -import * as format from "./meta/format-annotation.json" -import * as metadata from "./meta/meta-data.json" -import * as validation from "./meta/validation.json" - -const META_SUPPORT_DATA = ["/properties"] - -export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv { - ;[ - metaSchema, - applicator, - unevaluated, - content, - core, - with$data(this, format), - metadata, - with$data(this, validation), - ].forEach((sch) => this.addMetaSchema(sch, undefined, false)) - return this - - function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject { - return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json deleted file mode 100644 index 674c913d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/applicator", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/applicator": true - }, - "$dynamicAnchor": "meta", - - "title": "Applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "prefixItems": {"$ref": "#/$defs/schemaArray"}, - "items": {"$dynamicRef": "#meta"}, - "contains": {"$dynamicRef": "#meta"}, - "additionalProperties": {"$dynamicRef": "#meta"}, - "properties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependentSchemas": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "default": {} - }, - "propertyNames": {"$dynamicRef": "#meta"}, - "if": {"$dynamicRef": "#meta"}, - "then": {"$dynamicRef": "#meta"}, - "else": {"$dynamicRef": "#meta"}, - "allOf": {"$ref": "#/$defs/schemaArray"}, - "anyOf": {"$ref": "#/$defs/schemaArray"}, - "oneOf": {"$ref": "#/$defs/schemaArray"}, - "not": {"$dynamicRef": "#meta"} - }, - "$defs": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$dynamicRef": "#meta"} - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json deleted file mode 100644 index 2ae23ddb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/content", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Content vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "contentEncoding": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentSchema": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json deleted file mode 100644 index 4c8e5cb6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, - "$dynamicAnchor": "meta", - - "title": "Core vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "$id": { - "$ref": "#/$defs/uriReferenceString", - "$comment": "Non-empty fragments not allowed.", - "pattern": "^[^#]*#?$" - }, - "$schema": {"$ref": "#/$defs/uriString"}, - "$ref": {"$ref": "#/$defs/uriReferenceString"}, - "$anchor": {"$ref": "#/$defs/anchorString"}, - "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"}, - "$dynamicAnchor": {"$ref": "#/$defs/anchorString"}, - "$vocabulary": { - "type": "object", - "propertyNames": {"$ref": "#/$defs/uriString"}, - "additionalProperties": { - "type": "boolean" - } - }, - "$comment": { - "type": "string" - }, - "$defs": { - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"} - } - }, - "$defs": { - "anchorString": { - "type": "string", - "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" - }, - "uriString": { - "type": "string", - "format": "uri" - }, - "uriReferenceString": { - "type": "string", - "format": "uri-reference" - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json deleted file mode 100644 index 83c26e35..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true - }, - "$dynamicAnchor": "meta", - - "title": "Format vocabulary meta-schema for annotation results", - "type": ["object", "boolean"], - "properties": { - "format": {"type": "string"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json deleted file mode 100644 index 11946fb5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/meta-data": true - }, - "$dynamicAnchor": "meta", - - "title": "Meta-data vocabulary meta-schema", - - "type": ["object", "boolean"], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "deprecated": { - "type": "boolean", - "default": false - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json deleted file mode 100644 index 5e4b203b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true - }, - "$dynamicAnchor": "meta", - - "title": "Unevaluated applicator vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "unevaluatedItems": {"$dynamicRef": "#meta"}, - "unevaluatedProperties": {"$dynamicRef": "#meta"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json deleted file mode 100644 index e0ae13d9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, - "$dynamicAnchor": "meta", - - "title": "Validation vocabulary meta-schema", - "type": ["object", "boolean"], - "properties": { - "type": { - "anyOf": [ - {"$ref": "#/$defs/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/$defs/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "const": true, - "enum": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/$defs/nonNegativeInteger"}, - "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": {"$ref": "#/$defs/nonNegativeInteger"}, - "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxContains": {"$ref": "#/$defs/nonNegativeInteger"}, - "minContains": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 1 - }, - "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"}, - "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/$defs/stringArray"}, - "dependentRequired": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/stringArray" - } - } - }, - "$defs": { - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "$ref": "#/$defs/nonNegativeInteger", - "default": 0 - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json deleted file mode 100644 index 1c68270f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://json-schema.org/draft/2020-12/schema", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true, - "https://json-schema.org/draft/2020-12/vocab/applicator": true, - "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, - "https://json-schema.org/draft/2020-12/vocab/validation": true, - "https://json-schema.org/draft/2020-12/vocab/meta-data": true, - "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, - "https://json-schema.org/draft/2020-12/vocab/content": true - }, - "$dynamicAnchor": "meta", - - "title": "Core and Validation specifications meta-schema", - "allOf": [ - {"$ref": "meta/core"}, - {"$ref": "meta/applicator"}, - {"$ref": "meta/unevaluated"}, - {"$ref": "meta/validation"}, - {"$ref": "meta/meta-data"}, - {"$ref": "meta/format-annotation"}, - {"$ref": "meta/content"} - ], - "type": ["object", "boolean"], - "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", - "properties": { - "definitions": { - "$comment": "\"definitions\" has been replaced by \"$defs\".", - "type": "object", - "additionalProperties": {"$dynamicRef": "#meta"}, - "deprecated": true, - "default": {} - }, - "dependencies": { - "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", - "type": "object", - "additionalProperties": { - "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}] - }, - "deprecated": true, - "default": {} - }, - "$recursiveAnchor": { - "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", - "$ref": "meta/core#/$defs/anchorString", - "deprecated": true - }, - "$recursiveRef": { - "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", - "$ref": "meta/core#/$defs/uriReferenceString", - "deprecated": true - } - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json deleted file mode 100644 index 5410064b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-06.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "$id": "http://json-schema.org/draft-06/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "examples": { - "type": "array", - "items": {} - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": {} - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": {}, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": {} -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json deleted file mode 100644 index 6a748510..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-draft-07.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://json-schema.org/draft-07/schema#", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}] - }, - "simpleTypes": { - "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - "stringArray": { - "type": "array", - "items": {"type": "string"}, - "uniqueItems": true, - "default": [] - } - }, - "type": ["object", "boolean"], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": {"$ref": "#/definitions/nonNegativeInteger"}, - "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": {"$ref": "#"}, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}], - "default": true - }, - "maxItems": {"$ref": "#/definitions/nonNegativeInteger"}, - "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": {"$ref": "#"}, - "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"}, - "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"}, - "required": {"$ref": "#/definitions/stringArray"}, - "additionalProperties": {"$ref": "#"}, - "definitions": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": {"$ref": "#"}, - "propertyNames": {"format": "regex"}, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}] - } - }, - "propertyNames": {"$ref": "#"}, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - {"$ref": "#/definitions/simpleTypes"}, - { - "type": "array", - "items": {"$ref": "#/definitions/simpleTypes"}, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": {"type": "string"}, - "contentMediaType": {"type": "string"}, - "contentEncoding": {"type": "string"}, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"} - }, - "default": true -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-secure.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-secure.json deleted file mode 100644 index 3968abd5..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/json-schema-secure.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#", - "title": "Meta-schema for the security assessment of JSON Schemas", - "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": {"$ref": "#"} - } - }, - "dependencies": { - "patternProperties": { - "description": "prevent slow validation of large property names", - "required": ["propertyNames"], - "properties": { - "propertyNames": { - "required": ["maxLength"] - } - } - }, - "uniqueItems": { - "description": "prevent slow validation of large non-scalar arrays", - "if": { - "properties": { - "uniqueItems": {"const": true}, - "items": { - "properties": { - "type": { - "anyOf": [ - { - "enum": ["object", "array"] - }, - { - "type": "array", - "contains": {"enum": ["object", "array"]} - } - ] - } - } - } - } - }, - "then": { - "required": ["maxItems"] - } - }, - "pattern": { - "description": "prevent slow pattern matching of large strings", - "required": ["maxLength"] - }, - "format": { - "description": "prevent slow format validation of large strings", - "required": ["maxLength"] - } - }, - "properties": { - "additionalItems": {"$ref": "#"}, - "additionalProperties": {"$ref": "#"}, - "dependencies": { - "additionalProperties": { - "anyOf": [{"type": "array"}, {"$ref": "#"}] - } - }, - "items": { - "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}] - }, - "definitions": { - "additionalProperties": {"$ref": "#"} - }, - "patternProperties": { - "additionalProperties": {"$ref": "#"} - }, - "properties": { - "additionalProperties": {"$ref": "#"} - }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, - "allOf": {"$ref": "#/definitions/schemaArray"}, - "anyOf": {"$ref": "#/definitions/schemaArray"}, - "oneOf": {"$ref": "#/definitions/schemaArray"}, - "not": {"$ref": "#"}, - "contains": {"$ref": "#"}, - "propertyNames": {"$ref": "#"} - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/jtd-schema.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/jtd-schema.ts deleted file mode 100644 index c0198128..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/refs/jtd-schema.ts +++ /dev/null @@ -1,130 +0,0 @@ -import {SchemaObject} from "../types" - -type MetaSchema = (root: boolean) => SchemaObject - -const shared: MetaSchema = (root) => { - const sch: SchemaObject = { - nullable: {type: "boolean"}, - metadata: { - optionalProperties: { - union: {elements: {ref: "schema"}}, - }, - additionalProperties: true, - }, - } - if (root) sch.definitions = {values: {ref: "schema"}} - return sch -} - -const emptyForm: MetaSchema = (root) => ({ - optionalProperties: shared(root), -}) - -const refForm: MetaSchema = (root) => ({ - properties: { - ref: {type: "string"}, - }, - optionalProperties: shared(root), -}) - -const typeForm: MetaSchema = (root) => ({ - properties: { - type: { - enum: [ - "boolean", - "timestamp", - "string", - "float32", - "float64", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - ], - }, - }, - optionalProperties: shared(root), -}) - -const enumForm: MetaSchema = (root) => ({ - properties: { - enum: {elements: {type: "string"}}, - }, - optionalProperties: shared(root), -}) - -const elementsForm: MetaSchema = (root) => ({ - properties: { - elements: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const propertiesForm: MetaSchema = (root) => ({ - properties: { - properties: {values: {ref: "schema"}}, - }, - optionalProperties: { - optionalProperties: {values: {ref: "schema"}}, - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const optionalPropertiesForm: MetaSchema = (root) => ({ - properties: { - optionalProperties: {values: {ref: "schema"}}, - }, - optionalProperties: { - additionalProperties: {type: "boolean"}, - ...shared(root), - }, -}) - -const discriminatorForm: MetaSchema = (root) => ({ - properties: { - discriminator: {type: "string"}, - mapping: { - values: { - metadata: { - union: [propertiesForm(false), optionalPropertiesForm(false)], - }, - }, - }, - }, - optionalProperties: shared(root), -}) - -const valuesForm: MetaSchema = (root) => ({ - properties: { - values: {ref: "schema"}, - }, - optionalProperties: shared(root), -}) - -const schema: MetaSchema = (root) => ({ - metadata: { - union: [ - emptyForm, - refForm, - typeForm, - enumForm, - elementsForm, - propertiesForm, - optionalPropertiesForm, - discriminatorForm, - valuesForm, - ].map((s) => s(root)), - }, -}) - -const jtdMetaSchema: SchemaObject = { - definitions: { - schema: schema(false), - }, - ...schema(true), -} - -export default jtdMetaSchema diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/equal.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/equal.ts deleted file mode 100644 index 3cb00631..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/equal.ts +++ /dev/null @@ -1,7 +0,0 @@ -// https://github.com/ajv-validator/ajv/issues/889 -import * as equal from "fast-deep-equal" - -type Equal = typeof equal & {code: string} -;(equal as Equal).code = 'require("ajv/dist/runtime/equal").default' - -export default equal as Equal diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/parseJson.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/parseJson.ts deleted file mode 100644 index 92579afe..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/parseJson.ts +++ /dev/null @@ -1,176 +0,0 @@ -const rxParseJson = /position\s(\d+)$/ - -export function parseJson(s: string, pos: number): unknown { - let endPos: number | undefined - parseJson.message = undefined - let matches: RegExpExecArray | null - if (pos) s = s.slice(pos) - try { - parseJson.position = pos + s.length - return JSON.parse(s) - } catch (e) { - matches = rxParseJson.exec((e as Error).message) - if (!matches) { - parseJson.message = "unexpected end" - return undefined - } - endPos = +matches[1] - const c = s[endPos] - s = s.slice(0, endPos) - parseJson.position = pos + endPos - try { - return JSON.parse(s) - } catch (e1) { - parseJson.message = `unexpected token ${c}` - return undefined - } - } -} - -parseJson.message = undefined as string | undefined -parseJson.position = 0 as number -parseJson.code = 'require("ajv/dist/runtime/parseJson").parseJson' - -export function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined { - let numStr = "" - let c: string - parseJsonNumber.message = undefined - if (s[pos] === "-") { - numStr += "-" - pos++ - } - if (s[pos] === "0") { - numStr += "0" - pos++ - } else { - if (!parseDigits(maxDigits)) { - errorMessage() - return undefined - } - } - if (maxDigits) { - parseJsonNumber.position = pos - return +numStr - } - if (s[pos] === ".") { - numStr += "." - pos++ - if (!parseDigits()) { - errorMessage() - return undefined - } - } - if (((c = s[pos]), c === "e" || c === "E")) { - numStr += "e" - pos++ - if (((c = s[pos]), c === "+" || c === "-")) { - numStr += c - pos++ - } - if (!parseDigits()) { - errorMessage() - return undefined - } - } - parseJsonNumber.position = pos - return +numStr - - function parseDigits(maxLen?: number): boolean { - let digit = false - while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) { - digit = true - numStr += c - pos++ - } - return digit - } - - function errorMessage(): void { - parseJsonNumber.position = pos - parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end" - } -} - -parseJsonNumber.message = undefined as string | undefined -parseJsonNumber.position = 0 as number -parseJsonNumber.code = 'require("ajv/dist/runtime/parseJson").parseJsonNumber' - -const escapedChars: {[X in string]?: string} = { - b: "\b", - f: "\f", - n: "\n", - r: "\r", - t: "\t", - '"': '"', - "/": "/", - "\\": "\\", -} - -const CODE_A: number = "a".charCodeAt(0) -const CODE_0: number = "0".charCodeAt(0) - -export function parseJsonString(s: string, pos: number): string | undefined { - let str = "" - let c: string | undefined - parseJsonString.message = undefined - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition - while (true) { - c = s[pos++] - if (c === '"') break - if (c === "\\") { - c = s[pos] - if (c in escapedChars) { - str += escapedChars[c] - pos++ - } else if (c === "u") { - pos++ - let count = 4 - let code = 0 - while (count--) { - code <<= 4 - c = s[pos] - if (c === undefined) { - errorMessage("unexpected end") - return undefined - } - c = c.toLowerCase() - if (c >= "a" && c <= "f") { - code += c.charCodeAt(0) - CODE_A + 10 - } else if (c >= "0" && c <= "9") { - code += c.charCodeAt(0) - CODE_0 - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - pos++ - } - str += String.fromCharCode(code) - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } else if (c === undefined) { - errorMessage("unexpected end") - return undefined - } else { - if (c.charCodeAt(0) >= 0x20) { - str += c - } else { - errorMessage(`unexpected token ${c}`) - return undefined - } - } - } - parseJsonString.position = pos - return str - - function errorMessage(msg: string): void { - parseJsonString.position = pos - parseJsonString.message = msg - } -} - -parseJsonString.message = undefined as string | undefined -parseJsonString.position = 0 as number -parseJsonString.code = 'require("ajv/dist/runtime/parseJson").parseJsonString' diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/quote.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/quote.ts deleted file mode 100644 index 1160e6a2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/quote.ts +++ /dev/null @@ -1,31 +0,0 @@ -const rxEscapable = - // eslint-disable-next-line no-control-regex, no-misleading-character-class - /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g - -const escaped: {[K in string]?: string} = { - "\b": "\\b", - "\t": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - '"': '\\"', - "\\": "\\\\", -} - -export default function quote(s: string): string { - rxEscapable.lastIndex = 0 - return ( - '"' + - (rxEscapable.test(s) - ? s.replace(rxEscapable, (a) => { - const c = escaped[a] - return typeof c === "string" - ? c - : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) - }) - : s) + - '"' - ) -} - -quote.code = 'require("ajv/dist/runtime/quote").default' diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/re2.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/re2.ts deleted file mode 100644 index 0c769bc7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/re2.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as re2 from "re2" - -type Re2 = typeof re2 & {code: string} -;(re2 as Re2).code = 'require("ajv/dist/runtime/re2").default' - -export default re2 as Re2 diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/timestamp.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/timestamp.ts deleted file mode 100644 index 1625f9a4..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/timestamp.ts +++ /dev/null @@ -1,46 +0,0 @@ -const DT_SEPARATOR = /t|\s/i -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/ -const TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i -const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - -export default function validTimestamp(str: string, allowDate: boolean): boolean { - // http://tools.ietf.org/html/rfc3339#section-5.6 - const dt: string[] = str.split(DT_SEPARATOR) - return ( - (dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) || - (allowDate && dt.length === 1 && validDate(dt[0])) - ) -} - -function validDate(str: string): boolean { - const matches: string[] | null = DATE.exec(str) - if (!matches) return false - const y: number = +matches[1] - const m: number = +matches[2] - const d: number = +matches[3] - return ( - m >= 1 && - m <= 12 && - d >= 1 && - (d <= DAYS[m] || - // leap year: https://tools.ietf.org/html/rfc3339#appendix-C - (m === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0))) - ) -} - -function validTime(str: string): boolean { - const matches: string[] | null = TIME.exec(str) - if (!matches) return false - const hr: number = +matches[1] - const min: number = +matches[2] - const sec: number = +matches[3] - const tzH: number = +(matches[4] || 0) - const tzM: number = +(matches[5] || 0) - return ( - (hr <= 23 && min <= 59 && sec <= 59) || - // leap second - (hr - tzH === 23 && min - tzM === 59 && sec === 60) - ) -} - -validTimestamp.code = 'require("ajv/dist/runtime/timestamp").default' diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/ucs2length.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/ucs2length.ts deleted file mode 100644 index 47d8292b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/ucs2length.ts +++ /dev/null @@ -1,20 +0,0 @@ -// https://mathiasbynens.be/notes/javascript-encoding -// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode -export default function ucs2length(str: string): number { - const len = str.length - let length = 0 - let pos = 0 - let value: number - while (pos < len) { - length++ - value = str.charCodeAt(pos++) - if (value >= 0xd800 && value <= 0xdbff && pos < len) { - // high surrogate, and there is a next character - value = str.charCodeAt(pos) - if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate - } - } - return length -} - -ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default' diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/uri.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/uri.ts deleted file mode 100644 index 7dd35f9d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/uri.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as uri from "uri-js" - -type URI = typeof uri & {code: string} -;(uri as URI).code = 'require("ajv/dist/runtime/uri").default' - -export default uri as URI diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/validation_error.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/validation_error.ts deleted file mode 100644 index 2d19a46a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/runtime/validation_error.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {ErrorObject} from "../types" - -export default class ValidationError extends Error { - readonly errors: Partial[] - readonly ajv: true - readonly validation: true - - constructor(errors: Partial[]) { - super("validation failed") - this.errors = errors - this.ajv = this.validation = true - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/index.ts deleted file mode 100644 index b6129ce9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/index.ts +++ /dev/null @@ -1,100 +0,0 @@ -import type AjvCore from "../core" -import type {AnyValidateFunction, SourceCode} from "../types" -import type {SchemaEnv} from "../compile" -import {UsedScopeValues, UsedValueState, ValueScopeName, varKinds} from "../compile/codegen/scope" -import {_, nil, _Code, Code, getProperty, getEsmExportName} from "../compile/codegen/code" - -function standaloneCode( - ajv: AjvCore, - refsOrFunc?: {[K in string]?: string} | AnyValidateFunction -): string { - if (!ajv.opts.code.source) { - throw new Error("moduleCode: ajv instance must have code.source option") - } - const {_n} = ajv.scope.opts - return typeof refsOrFunc == "function" - ? funcExportCode(refsOrFunc.source) - : refsOrFunc !== undefined - ? multiExportsCode(refsOrFunc, getValidate) - : multiExportsCode(ajv.schemas, (sch) => - sch.meta ? undefined : ajv.compile(sch.schema) - ) - - function getValidate(id: string): AnyValidateFunction { - const v = ajv.getSchema(id) - if (!v) throw new Error(`moduleCode: no schema with id ${id}`) - return v - } - - function funcExportCode(source?: SourceCode): string { - const usedValues: UsedScopeValues = {} - const n = source?.validateName - const vCode = validateCode(usedValues, source) - if (ajv.opts.code.esm) { - // Always do named export as `validate` rather than the variable `n` which is `validateXX` for known export value - return `"use strict";${_n}export const validate = ${n};${_n}export default ${n};${_n}${vCode}` - } - return `"use strict";${_n}module.exports = ${n};${_n}module.exports.default = ${n};${_n}${vCode}` - } - - function multiExportsCode( - schemas: {[K in string]?: T}, - getValidateFunc: (schOrId: T) => AnyValidateFunction | undefined - ): string { - const usedValues: UsedScopeValues = {} - let code = _`"use strict";` - for (const name in schemas) { - const v = getValidateFunc(schemas[name] as T) - if (v) { - const vCode = validateCode(usedValues, v.source) - const exportSyntax = ajv.opts.code.esm - ? _`export const ${getEsmExportName(name)}` - : _`exports${getProperty(name)}` - code = _`${code}${_n}${exportSyntax} = ${v.source?.validateName};${_n}${vCode}` - } - } - return `${code}` - } - - function validateCode(usedValues: UsedScopeValues, s?: SourceCode): Code { - if (!s) throw new Error('moduleCode: function does not have "source" property') - if (usedState(s.validateName) === UsedValueState.Completed) return nil - setUsedState(s.validateName, UsedValueState.Started) - - const scopeCode = ajv.scope.scopeCode(s.scopeValues, usedValues, refValidateCode) - const code = new _Code(`${scopeCode}${_n}${s.validateCode}`) - return s.evaluated ? _`${code}${s.validateName}.evaluated = ${s.evaluated};${_n}` : code - - function refValidateCode(n: ValueScopeName): Code | undefined { - const vRef = n.value?.ref - if (n.prefix === "validate" && typeof vRef == "function") { - const v = vRef as AnyValidateFunction - return validateCode(usedValues, v.source) - } else if ((n.prefix === "root" || n.prefix === "wrapper") && typeof vRef == "object") { - const {validate, validateName} = vRef as SchemaEnv - if (!validateName) throw new Error("ajv internal error") - const def = ajv.opts.code.es5 ? varKinds.var : varKinds.const - const wrapper = _`${def} ${n} = {validate: ${validateName}};` - if (usedState(validateName) === UsedValueState.Started) return wrapper - const vCode = validateCode(usedValues, validate?.source) - return _`${wrapper}${_n}${vCode}` - } - return undefined - } - - function usedState(name: ValueScopeName): UsedValueState | undefined { - return usedValues[name.prefix]?.get(name) - } - - function setUsedState(name: ValueScopeName, state: UsedValueState): void { - const {prefix} = name - const names = (usedValues[prefix] = usedValues[prefix] || new Map()) - names.set(name, state) - } - } -} - -module.exports = exports = standaloneCode -Object.defineProperty(exports, "__esModule", {value: true}) - -export default standaloneCode diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/instance.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/instance.ts deleted file mode 100644 index c4b2c30b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/standalone/instance.ts +++ /dev/null @@ -1,36 +0,0 @@ -import Ajv, {AnySchema, AnyValidateFunction, ErrorObject} from "../core" -import standaloneCode from "." -import * as requireFromString from "require-from-string" - -export default class AjvPack { - errors?: ErrorObject[] | null // errors from the last validation - constructor(readonly ajv: Ajv) {} - - validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise { - return Ajv.prototype.validate.call(this, schemaKeyRef, data) - } - - compile(schema: AnySchema, meta?: boolean): AnyValidateFunction { - return this.getStandalone(this.ajv.compile(schema, meta)) - } - - getSchema(keyRef: string): AnyValidateFunction | undefined { - const v = this.ajv.getSchema(keyRef) - if (!v) return undefined - return this.getStandalone(v) - } - - private getStandalone(v: AnyValidateFunction): AnyValidateFunction { - return requireFromString(standaloneCode(this.ajv, v)) as AnyValidateFunction - } - - addSchema(...args: Parameters): AjvPack { - this.ajv.addSchema.call(this.ajv, ...args) - return this - } - - addKeyword(...args: Parameters): AjvPack { - this.ajv.addKeyword.call(this.ajv, ...args) - return this - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/index.ts deleted file mode 100644 index 123d9df1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/index.ts +++ /dev/null @@ -1,240 +0,0 @@ -import * as URI from "uri-js" -import type {CodeGen, Code, Name, ScopeValueSets, ValueScopeName} from "../compile/codegen" -import type {SchemaEnv, SchemaCxt, SchemaObjCxt} from "../compile" -import type {JSONType} from "../compile/rules" -import type {KeywordCxt} from "../compile/validate" -import type Ajv from "../core" - -interface _SchemaObject { - id?: string - $id?: string - $schema?: string - [x: string]: any // TODO -} - -export interface SchemaObject extends _SchemaObject { - id?: string - $id?: string - $schema?: string - $async?: false - [x: string]: any // TODO -} - -export interface AsyncSchema extends _SchemaObject { - $async: true -} - -export type AnySchemaObject = SchemaObject | AsyncSchema - -export type Schema = SchemaObject | boolean - -export type AnySchema = Schema | AsyncSchema - -export type SchemaMap = {[Key in string]?: AnySchema} - -export interface SourceCode { - validateName: ValueScopeName - validateCode: string - scopeValues: ScopeValueSets - evaluated?: Code -} - -export interface DataValidationCxt { - instancePath: string - parentData: {[K in T]: any} // object or array - parentDataProperty: T // string or number - rootData: Record | any[] - dynamicAnchors: {[Ref in string]?: ValidateFunction} -} - -export interface ValidateFunction { - (this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T - errors?: null | ErrorObject[] - evaluated?: Evaluated - schema: AnySchema - schemaEnv: SchemaEnv - source?: SourceCode -} - -export interface JTDParser { - (json: string): T | undefined - message?: string - position?: number -} - -export type EvaluatedProperties = {[K in string]?: true} | true - -export type EvaluatedItems = number | true - -export interface Evaluated { - // determined at compile time if staticProps/Items is true - props?: EvaluatedProperties - items?: EvaluatedItems - // whether props/items determined at compile time - dynamicProps: boolean - dynamicItems: boolean -} - -export interface AsyncValidateFunction extends ValidateFunction { - (...args: Parameters>): Promise - $async: true -} - -export type AnyValidateFunction = ValidateFunction | AsyncValidateFunction - -export interface ErrorObject, S = unknown> { - keyword: K - instancePath: string - schemaPath: string - params: P - // Added to validation errors of "propertyNames" keyword schema - propertyName?: string - // Excluded if option `messages` set to false. - message?: string - // These are added with the `verbose` option. - schema?: S - parentSchema?: AnySchemaObject - data?: unknown -} - -export type ErrorNoParams = ErrorObject, S> - -interface _KeywordDef { - keyword: string | string[] - type?: JSONType | JSONType[] // data types that keyword applies to - schemaType?: JSONType | JSONType[] // allowed type(s) of keyword value in the schema - allowUndefined?: boolean // used for keywords that can be invoked by other keywords, not being present in the schema - $data?: boolean // keyword supports [$data reference](../../docs/guide/combining-schemas.md#data-reference) - implements?: string[] // other schema keywords that this keyword implements - before?: string // keyword should be executed before this keyword (should be applicable to the same type) - post?: boolean // keyword should be executed after other keywords without post flag - metaSchema?: AnySchemaObject // meta-schema for keyword schema value - it is better to use schemaType where applicable - validateSchema?: AnyValidateFunction // compiled keyword metaSchema - should not be passed - dependencies?: string[] // keywords that must be present in the same schema - error?: KeywordErrorDefinition - $dataError?: KeywordErrorDefinition -} - -export interface CodeKeywordDefinition extends _KeywordDef { - code: (cxt: KeywordCxt, ruleType?: string) => void - trackErrors?: boolean -} - -export type MacroKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaCxt -) => AnySchema - -export type CompileKeywordFunc = ( - schema: any, - parentSchema: AnySchemaObject, - it: SchemaObjCxt -) => DataValidateFunction - -export interface DataValidateFunction { - (...args: Parameters): boolean | Promise - errors?: Partial[] -} - -export interface SchemaValidateFunction { - (schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): - | boolean - | Promise - errors?: Partial[] -} - -export interface FuncKeywordDefinition extends _KeywordDef { - validate?: SchemaValidateFunction | DataValidateFunction - compile?: CompileKeywordFunc - // schema: false makes validate not to expect schema (DataValidateFunction) - schema?: boolean // requires "validate" - modifying?: boolean - async?: boolean - valid?: boolean - errors?: boolean | "full" -} - -export interface MacroKeywordDefinition extends FuncKeywordDefinition { - macro: MacroKeywordFunc -} - -export type KeywordDefinition = - | CodeKeywordDefinition - | FuncKeywordDefinition - | MacroKeywordDefinition - -export type AddedKeywordDefinition = KeywordDefinition & { - type: JSONType[] - schemaType: JSONType[] -} - -export interface KeywordErrorDefinition { - message: string | Code | ((cxt: KeywordErrorCxt) => string | Code) - params?: Code | ((cxt: KeywordErrorCxt) => Code) -} - -export type Vocabulary = (KeywordDefinition | string)[] - -export interface KeywordErrorCxt { - gen: CodeGen - keyword: string - data: Name - $data?: string | false - schema: any // TODO - parentSchema?: AnySchemaObject - schemaCode: Code | number | boolean - schemaValue: Code | number | boolean - schemaType?: JSONType[] - errsCount?: Name - params: KeywordCxtParams - it: SchemaCxt -} - -export type KeywordCxtParams = {[P in string]?: Code | string | number} - -export type FormatValidator = (data: T) => boolean - -export type FormatCompare = (data1: T, data2: T) => number | undefined - -export type AsyncFormatValidator = (data: T) => Promise - -export interface FormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: FormatValidator | (T extends string ? string | RegExp : never) - async?: false | undefined - compare?: FormatCompare -} - -export interface AsyncFormatDefinition { - type?: T extends string ? "string" | undefined : "number" - validate: AsyncFormatValidator - async: true - compare?: FormatCompare -} - -export type AddedFormat = - | true - | RegExp - | FormatValidator - | FormatDefinition - | FormatDefinition - | AsyncFormatDefinition - | AsyncFormatDefinition - -export type Format = AddedFormat | string - -export interface RegExpEngine { - (pattern: string, u: string): RegExpLike - code: string -} - -export interface RegExpLike { - test: (s: string) => boolean -} - -export interface UriResolver { - parse(uri: string): URI.URIComponents - resolve(base: string, path: string): string - serialize(component: URI.URIComponents): string -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/json-schema.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/json-schema.ts deleted file mode 100644 index 698e2911..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/json-schema.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* eslint-disable @typescript-eslint/no-empty-interface */ -type StrictNullChecksWrapper = undefined extends null - ? `strictNullChecks must be true in tsconfig to use ${Name}` - : Type - -type UnionToIntersection = (U extends any ? (_: U) => void : never) extends (_: infer I) => void - ? I - : never - -export type SomeJSONSchema = UncheckedJSONSchemaType - -type UncheckedPartialSchema = Partial> - -export type PartialSchema = StrictNullChecksWrapper<"PartialSchema", UncheckedPartialSchema> - -type JSONType = IsPartial extends true - ? T | undefined - : T - -interface NumberKeywords { - minimum?: number - maximum?: number - exclusiveMinimum?: number - exclusiveMaximum?: number - multipleOf?: number - format?: string -} - -interface StringKeywords { - minLength?: number - maxLength?: number - pattern?: string - format?: string -} - -type UncheckedJSONSchemaType = ( - | // these two unions allow arbitrary unions of types - { - anyOf: readonly UncheckedJSONSchemaType[] - } - | { - oneOf: readonly UncheckedJSONSchemaType[] - } - // this union allows for { type: (primitive)[] } style schemas - | ({ - type: readonly (T extends number - ? JSONType<"number" | "integer", IsPartial> - : T extends string - ? JSONType<"string", IsPartial> - : T extends boolean - ? JSONType<"boolean", IsPartial> - : never)[] - } & UnionToIntersection< - T extends number - ? NumberKeywords - : T extends string - ? StringKeywords - : T extends boolean - ? // eslint-disable-next-line @typescript-eslint/ban-types - {} - : never - >) - // this covers "normal" types; it's last so typescript looks to it first for errors - | ((T extends number - ? { - type: JSONType<"number" | "integer", IsPartial> - } & NumberKeywords - : T extends string - ? { - type: JSONType<"string", IsPartial> - } & StringKeywords - : T extends boolean - ? { - type: JSONType<"boolean", IsPartial> - } - : T extends readonly [any, ...any[]] - ? { - // JSON AnySchema for tuple - type: JSONType<"array", IsPartial> - items: { - readonly [K in keyof T]-?: UncheckedJSONSchemaType & Nullable - } & {length: T["length"]} - minItems: T["length"] - } & ({maxItems: T["length"]} | {additionalItems: false}) - : T extends readonly any[] - ? { - type: JSONType<"array", IsPartial> - items: UncheckedJSONSchemaType - contains?: UncheckedPartialSchema - minItems?: number - maxItems?: number - minContains?: number - maxContains?: number - uniqueItems?: true - additionalItems?: never - } - : T extends Record - ? { - // JSON AnySchema for records and dictionaries - // "required" is not optional because it is often forgotten - // "properties" are optional for more concise dictionary schemas - // "patternProperties" and can be only used with interfaces that have string index - type: JSONType<"object", IsPartial> - additionalProperties?: boolean | UncheckedJSONSchemaType - unevaluatedProperties?: boolean | UncheckedJSONSchemaType - properties?: IsPartial extends true - ? Partial> - : UncheckedPropertiesSchema - patternProperties?: Record> - propertyNames?: Omit, "type"> & {type?: "string"} - dependencies?: {[K in keyof T]?: Readonly<(keyof T)[]> | UncheckedPartialSchema} - dependentRequired?: {[K in keyof T]?: Readonly<(keyof T)[]>} - dependentSchemas?: {[K in keyof T]?: UncheckedPartialSchema} - minProperties?: number - maxProperties?: number - } & (IsPartial extends true // "required" is not necessary if it's a non-partial type with no required keys // are listed it only asserts that optional cannot be listed. // "required" type does not guarantee that all required properties - ? {required: Readonly<(keyof T)[]>} - : [UncheckedRequiredMembers] extends [never] - ? {required?: Readonly[]>} - : {required: Readonly[]>}) - : T extends null - ? { - type: JSONType<"null", IsPartial> - nullable: true - } - : never) & { - allOf?: Readonly[]> - anyOf?: Readonly[]> - oneOf?: Readonly[]> - if?: UncheckedPartialSchema - then?: UncheckedPartialSchema - else?: UncheckedPartialSchema - not?: UncheckedPartialSchema - }) -) & { - [keyword: string]: any - $id?: string - $ref?: string - $defs?: Record> - definitions?: Record> -} - -export type JSONSchemaType = StrictNullChecksWrapper< - "JSONSchemaType", - UncheckedJSONSchemaType -> - -type Known = - | {[key: string]: Known} - | [Known, ...Known[]] - | Known[] - | number - | string - | boolean - | null - -type UncheckedPropertiesSchema = { - [K in keyof T]-?: (UncheckedJSONSchemaType & Nullable) | {$ref: string} -} - -export type PropertiesSchema = StrictNullChecksWrapper< - "PropertiesSchema", - UncheckedPropertiesSchema -> - -type UncheckedRequiredMembers = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -export type RequiredMembers = StrictNullChecksWrapper< - "RequiredMembers", - UncheckedRequiredMembers -> - -type Nullable = undefined extends T - ? { - nullable: true - const?: null // any non-null value would fail `const: null`, `null` would fail any other value in const - enum?: Readonly<(T | null)[]> // `null` must be explicitly included in "enum" for `null` to pass - default?: T | null - } - : { - const?: T - enum?: Readonly - default?: T - } diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/jtd-schema.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/jtd-schema.ts deleted file mode 100644 index 3d5ae4ac..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/types/jtd-schema.ts +++ /dev/null @@ -1,263 +0,0 @@ -/** numeric strings */ -type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -/** string strings */ -type StringType = "string" | "timestamp" - -/** Generic JTD Schema without inference of the represented type */ -export type SomeJTDSchemaType = ( - | // ref - {ref: string} - // primitives - | {type: NumberType | StringType | "boolean"} - // enum - | {enum: string[]} - // elements - | {elements: SomeJTDSchemaType} - // values - | {values: SomeJTDSchemaType} - // properties - | { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - | { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - // discriminator - | {discriminator: string; mapping: Record} - // empty - // NOTE see the end of - // https://github.com/typescript-eslint/typescript-eslint/issues/2063#issuecomment-675156492 - // eslint-disable-next-line @typescript-eslint/ban-types - | {} -) & { - nullable?: boolean - metadata?: Record - definitions?: Record -} - -/** required keys of an object, not undefined */ -type RequiredKeys = { - [K in keyof T]-?: undefined extends T[K] ? never : K -}[keyof T] - -/** optional or undifined-able keys of an object */ -type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] ? K : never -}[keyof T] - -/** type is true if T is a union type */ -type IsUnion_ = false extends ( - T extends unknown ? ([U] extends [T] ? false : true) : never -) - ? false - : true -type IsUnion = IsUnion_ - -/** type is true if T is identically E */ -type TypeEquality = [T] extends [E] ? ([E] extends [T] ? true : false) : false - -/** type is true if T or null is identically E or null*/ -type NullTypeEquality = TypeEquality - -/** gets only the string literals of a type or null if a type isn't a string literal */ -type EnumString = [T] extends [never] - ? null - : T extends string - ? string extends T - ? null - : T - : null - -/** true if type is a union of string literals */ -type IsEnum = null extends EnumString> ? false : true - -/** true only if all types are array types (not tuples) */ -// NOTE relies on the fact that tuples don't have an index at 0.5, but arrays -// have an index at every number -type IsElements = false extends IsUnion - ? [T] extends [readonly unknown[]] - ? undefined extends T[0.5] - ? false - : true - : false - : false - -/** true if the the type is a values type */ -type IsValues = false extends IsUnion> - ? TypeEquality, string> - : false - -/** true if type is a proeprties type and Union is false, or type is a discriminator type and Union is true */ -type IsRecord = Union extends IsUnion> - ? null extends EnumString> - ? false - : true - : false - -/** actual schema */ -export type JTDSchemaType = Record> = ( - | // refs - where null wasn't specified, must match exactly - (null extends EnumString - ? never - : - | ({[K in keyof D]: [T] extends [D[K]] ? {ref: K} : never}[keyof D] & {nullable?: false}) - // nulled refs - if ref is nullable and nullable is specified, then it can - // match either null or non-null definitions - | (null extends T - ? { - [K in keyof D]: [Exclude] extends [Exclude] - ? {ref: K} - : never - }[keyof D] & {nullable: true} - : never)) - // empty - empty schemas also treat nullable differently in that it's now fully ignored - | (unknown extends T ? {nullable?: boolean} : never) - // all other types // numbers - only accepts the type number - | ((true extends NullTypeEquality - ? {type: NumberType} - : // booleans - accepts the type boolean - true extends NullTypeEquality - ? {type: "boolean"} - : // strings - only accepts the type string - true extends NullTypeEquality - ? {type: StringType} - : // strings - only accepts the type Date - true extends NullTypeEquality - ? {type: "timestamp"} - : // enums - only accepts union of string literals - // TODO we can't actually check that everything in the union was specified - true extends IsEnum - ? {enum: EnumString>[]} - : // arrays - only accepts arrays, could be array of unions to be resolved later - true extends IsElements> - ? T extends readonly (infer E)[] - ? { - elements: JTDSchemaType - } - : never - : // values - true extends IsValues - ? T extends Record - ? { - values: JTDSchemaType - } - : never - : // properties - true extends IsRecord - ? ([RequiredKeys>] extends [never] - ? { - properties?: Record - } - : { - properties: {[K in RequiredKeys]: JTDSchemaType} - }) & - ([OptionalKeys>] extends [never] - ? { - optionalProperties?: Record - } - : { - optionalProperties: { - [K in OptionalKeys]: JTDSchemaType, D> - } - }) & { - additionalProperties?: boolean - } - : // discriminator - true extends IsRecord - ? { - [K in keyof Exclude]-?: Exclude[K] extends string - ? { - discriminator: K - mapping: { - // TODO currently allows descriminator to be present in schema - [M in Exclude[K]]: JTDSchemaType< - Omit, - D - > - } - } - : never - }[keyof Exclude] - : never) & - (null extends T - ? { - nullable: true - } - : {nullable?: false})) -) & { - // extra properties - metadata?: Record - // TODO these should only be allowed at the top level - definitions?: {[K in keyof D]: JTDSchemaType} -} - -type JTDDataDef> = - | // ref - (S extends {ref: string} - ? D extends {[K in S["ref"]]: infer V} - ? JTDDataDef - : never - : // type - S extends {type: NumberType} - ? number - : S extends {type: "boolean"} - ? boolean - : S extends {type: "string"} - ? string - : S extends {type: "timestamp"} - ? string | Date - : // enum - S extends {enum: readonly (infer E)[]} - ? string extends E - ? never - : [E] extends [string] - ? E - : never - : // elements - S extends {elements: infer E} - ? JTDDataDef[] - : // properties - S extends { - properties: Record - optionalProperties?: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : S extends { - properties?: Record - optionalProperties: Record - additionalProperties?: boolean - } - ? {-readonly [K in keyof S["properties"]]-?: JTDDataDef} & { - -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef< - S["optionalProperties"][K], - D - > - } & ([S["additionalProperties"]] extends [true] ? Record : unknown) - : // values - S extends {values: infer V} - ? Record> - : // discriminator - S extends {discriminator: infer M; mapping: Record} - ? [M] extends [string] - ? { - [K in keyof S["mapping"]]: JTDDataDef & {[KM in M]: K} - }[keyof S["mapping"]] - : never - : // empty - unknown) - | (S extends {nullable: true} ? null : never) - -export type JTDDataType = S extends {definitions: Record} - ? JTDDataDef - : JTDDataDef> diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts deleted file mode 100644 index 755e5b3d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type AdditionalItemsError = ErrorObject<"additionalItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "additionalItems" as const, - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {parentSchema, it} = cxt - const {items} = parentSchema - if (!Array.isArray(items)) { - checkStrictMode(it, '"additionalItems" is ignored when "items" is not an array of schemas') - return - } - validateAdditionalItems(cxt, items) - }, -} - -export function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void { - const {gen, schema, data, keyword, it} = cxt - it.items = true - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items.length}) - cxt.pass(_`${len} <= ${items.length}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items.length}`) // TODO var - gen.if(not(valid), () => validateItems(valid)) - cxt.ok(valid) - } - - function validateItems(valid: Name): void { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts deleted file mode 100644 index bfb511ce..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +++ /dev/null @@ -1,118 +0,0 @@ -import type { - CodeKeywordDefinition, - AddedKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import {allSchemaProperties, usePattern, isOwnProperty} from "../code" -import {_, nil, or, not, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import type {SubschemaArgs} from "../../compile/validate/subschema" -import {alwaysValidSchema, schemaRefOrVal, Type} from "../../compile/util" - -export type AdditionalPropertiesError = ErrorObject< - "additionalProperties", - {additionalProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have additional properties", - params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -} - -const def: CodeKeywordDefinition & AddedKeywordDefinition = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error, - code(cxt) { - const {gen, schema, parentSchema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, opts} = it - it.props = true - if (opts.removeAdditional !== "all" && alwaysValidSchema(it, schema)) return - const props = allSchemaProperties(parentSchema.properties) - const patProps = allSchemaProperties(parentSchema.patternProperties) - checkAdditionalProperties() - cxt.ok(_`${errsCount} === ${N.errors}`) - - function checkAdditionalProperties(): void { - gen.forIn("key", data, (key: Name) => { - if (!props.length && !patProps.length) additionalPropertyCode(key) - else gen.if(isAdditional(key), () => additionalPropertyCode(key)) - }) - } - - function isAdditional(key: Name): Code { - let definedProp: Code - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema.properties, "properties") - definedProp = isOwnProperty(gen, propsSchema as Code, key) - } else if (props.length) { - definedProp = or(...props.map((p) => _`${key} === ${p}`)) - } else { - definedProp = nil - } - if (patProps.length) { - definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`)) - } - return not(definedProp) - } - - function deleteAdditional(key: Name): void { - gen.code(_`delete ${data}[${key}]`) - } - - function additionalPropertyCode(key: Name): void { - if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) { - deleteAdditional(key) - return - } - - if (schema === false) { - cxt.setParams({additionalProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false) - gen.if(not(valid), () => { - cxt.reset() - deleteAdditional(key) - }) - } else { - applyAdditionalSchema(key, valid) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - } - - function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void { - const subschema: SubschemaArgs = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: Type.Str, - } - if (errors === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false, - }) - } - cxt.subschema(subschema, valid) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts deleted file mode 100644 index cdfa86ff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "allOf", - schemaType: "array", - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const valid = gen.name("valid") - schema.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - const schCxt = cxt.subschema({keyword: "allOf", schemaProp: i}, valid) - cxt.ok(valid) - cxt.mergeEvaluated(schCxt) - }) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts deleted file mode 100644 index bd331b5a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import {validateUnion} from "../code" - -export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]> - -const def: CodeKeywordDefinition = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in anyOf"}, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts deleted file mode 100644 index d88675c6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/contains.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode, Type} from "../../compile/util" - -export type ContainsError = ErrorObject< - "contains", - {minContains: number; maxContains?: number}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: ({params: {min, max}}) => - max === undefined - ? str`must contain at least ${min} valid item(s)` - : str`must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({params: {min, max}}) => - max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - let min: number - let max: number | undefined - const {minContains, maxContains} = parentSchema - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains - max = maxContains - } else { - min = 1 - } - const len = gen.const("len", _`${data}.length`) - cxt.setParams({min, max}) - if (max === undefined && min === 0) { - checkStrictMode(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`) - return - } - if (max !== undefined && min > max) { - checkStrictMode(it, `"minContains" > "maxContains" is always invalid`) - cxt.fail() - return - } - if (alwaysValidSchema(it, schema)) { - let cond = _`${len} >= ${min}` - if (max !== undefined) cond = _`${cond} && ${len} <= ${max}` - cxt.pass(cond) - return - } - - it.items = true - const valid = gen.name("valid") - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())) - } else if (min === 0) { - gen.let(valid, true) - if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount) - } else { - gen.let(valid, false) - validateItemsWithCount() - } - cxt.result(valid, () => cxt.reset()) - - function validateItemsWithCount(): void { - const schValid = gen.name("_valid") - const count = gen.let("count", 0) - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))) - } - - function validateItems(_valid: Name, block: () => void): void { - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword: "contains", - dataProp: i, - dataPropType: Type.Num, - compositeRule: true, - }, - _valid - ) - block() - }) - } - - function checkLimits(count: Name): void { - gen.code(_`${count}++`) - if (max === undefined) { - gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break()) - } else { - gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break()) - if (min === 1) gen.assign(valid, true) - else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true)) - } - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts deleted file mode 100644 index f6761128..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +++ /dev/null @@ -1,112 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaMap, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from "../code" - -export type PropertyDependencies = {[K in string]?: string[]} - -export interface DependenciesErrorParams { - property: string - missingProperty: string - depsCount: number - deps: string // TODO change to string[] -} - -type SchemaDependencies = SchemaMap - -export type DependenciesError = ErrorObject< - "dependencies", - DependenciesErrorParams, - {[K in string]?: string[] | AnySchema} -> - -export const error: KeywordErrorDefinition = { - message: ({params: {property, depsCount, deps}}) => { - const property_ies = depsCount === 1 ? "property" : "properties" - return str`must have ${property_ies} ${deps} when property ${property} is present` - }, - params: ({params: {property, depsCount, deps, missingProperty}}) => - _`{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}`, // TODO change to reference -} - -const def: CodeKeywordDefinition = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const [propDeps, schDeps] = splitDependencies(cxt) - validatePropertyDeps(cxt, propDeps) - validateSchemaDeps(cxt, schDeps) - }, -} - -function splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] { - const propertyDeps: PropertyDependencies = {} - const schemaDeps: SchemaDependencies = {} - for (const key in schema) { - if (key === "__proto__") continue - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps - deps[key] = schema[key] - } - return [propertyDeps, schemaDeps] -} - -export function validatePropertyDeps( - cxt: KeywordCxt, - propertyDeps: {[K in string]?: string[]} = cxt.schema -): void { - const {gen, data, it} = cxt - if (Object.keys(propertyDeps).length === 0) return - const missing = gen.let("missing") - for (const prop in propertyDeps) { - const deps = propertyDeps[prop] as string[] - if (deps.length === 0) continue - const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties) - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", "), - }) - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - checkReportMissingProp(cxt, depProp) - } - }) - } else { - gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`) - reportMissingProp(cxt, missing) - gen.else() - } - } -} - -export function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - for (const prop in schemaDeps) { - if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => { - const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid) - cxt.mergeValidEvaluated(schCxt, valid) - }, - () => gen.var(valid, true) // TODO var - ) - cxt.ok(valid) - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts deleted file mode 100644 index dbd3ae45..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateSchemaDeps} from "./dependencies" - -const def: CodeKeywordDefinition = { - keyword: "dependentSchemas", - type: "object", - schemaType: "object", - code: (cxt) => validateSchemaDeps(cxt), -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts deleted file mode 100644 index 5a40d5e3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/if.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {SchemaObjCxt} from "../../compile" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" - -export type IfKeywordError = ErrorObject<"if", {failingKeyword: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params}) => str`must match "${params.ifClause}" schema`, - params: ({params}) => _`{failingKeyword: ${params.ifClause}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, parentSchema, it} = cxt - if (parentSchema.then === undefined && parentSchema.else === undefined) { - checkStrictMode(it, '"if" without "then" and "else" is ignored') - } - const hasThen = hasSchema(it, "then") - const hasElse = hasSchema(it, "else") - if (!hasThen && !hasElse) return - - const valid = gen.let("valid", true) - const schValid = gen.name("_valid") - validateIf() - cxt.reset() - - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause") - cxt.setParams({ifClause}) - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)) - } else if (hasThen) { - gen.if(schValid, validateClause("then")) - } else { - gen.if(not(schValid), validateClause("else")) - } - - cxt.pass(valid, () => cxt.error(true)) - - function validateIf(): void { - const schCxt = cxt.subschema( - { - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - schValid - ) - cxt.mergeEvaluated(schCxt) - } - - function validateClause(keyword: string, ifClause?: Name): () => void { - return () => { - const schCxt = cxt.subschema({keyword}, schValid) - gen.assign(valid, schValid) - cxt.mergeValidEvaluated(schCxt, valid) - if (ifClause) gen.assign(ifClause, _`${keyword}`) - else cxt.setParams({ifClause: keyword}) - } - } - }, -} - -function hasSchema(it: SchemaObjCxt, keyword: string): boolean { - const schema = it.schema[keyword] - return schema !== undefined && !alwaysValidSchema(it, schema) -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts deleted file mode 100644 index fc527169..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type {ErrorNoParams, Vocabulary} from "../../types" -import additionalItems, {AdditionalItemsError} from "./additionalItems" -import prefixItems from "./prefixItems" -import items from "./items" -import items2020, {ItemsError} from "./items2020" -import contains, {ContainsError} from "./contains" -import dependencies, {DependenciesError} from "./dependencies" -import propertyNames, {PropertyNamesError} from "./propertyNames" -import additionalProperties, {AdditionalPropertiesError} from "./additionalProperties" -import properties from "./properties" -import patternProperties from "./patternProperties" -import notKeyword, {NotKeywordError} from "./not" -import anyOf, {AnyOfError} from "./anyOf" -import oneOf, {OneOfError} from "./oneOf" -import allOf from "./allOf" -import ifKeyword, {IfKeywordError} from "./if" -import thenElse from "./thenElse" - -export default function getApplicator(draft2020 = false): Vocabulary { - const applicator = [ - // any - notKeyword, - anyOf, - oneOf, - allOf, - ifKeyword, - thenElse, - // object - propertyNames, - additionalProperties, - dependencies, - properties, - patternProperties, - ] - // array - if (draft2020) applicator.push(prefixItems, items2020) - else applicator.push(additionalItems, items) - applicator.push(contains) - return applicator -} - -export type ApplicatorKeywordError = - | ErrorNoParams<"false schema"> - | AdditionalItemsError - | ItemsError - | ContainsError - | AdditionalPropertiesError - | DependenciesError - | IfKeywordError - | AnyOfError - | OneOfError - | NotKeywordError - | PropertyNamesError diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts deleted file mode 100644 index 033cb397..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {alwaysValidSchema, mergeEvaluated, checkStrictMode} from "../../compile/util" -import {validateArray} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt: KeywordCxt) { - const {schema, it} = cxt - if (Array.isArray(schema)) return validateTuple(cxt, "additionalItems", schema) - it.items = true - if (alwaysValidSchema(it, schema)) return - cxt.ok(validateArray(cxt)) - }, -} - -export function validateTuple( - cxt: KeywordCxt, - extraItems: string, - schArr: AnySchema[] = cxt.schema -): void { - const {gen, parentSchema, data, keyword, it} = cxt - checkStrictTuple(parentSchema) - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = mergeEvaluated.items(gen, schArr.length, it.items) - } - const valid = gen.name("valid") - const len = gen.const("len", _`${data}.length`) - schArr.forEach((sch: AnySchema, i: number) => { - if (alwaysValidSchema(it, sch)) return - gen.if(_`${len} > ${i}`, () => - cxt.subschema( - { - keyword, - schemaProp: i, - dataProp: i, - }, - valid - ) - ) - cxt.ok(valid) - }) - - function checkStrictTuple(sch: AnySchemaObject): void { - const {opts, errSchemaPath} = it - const l = schArr.length - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false) - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"` - checkStrictMode(it, msg, opts.strictTuples) - } - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts deleted file mode 100644 index 2a99b08d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {validateAdditionalItems} from "./additionalItems" - -export type ItemsError = ErrorObject<"items", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error, - code(cxt: KeywordCxt) { - const {schema, parentSchema, it} = cxt - const {prefixItems} = parentSchema - it.items = true - if (alwaysValidSchema(it, schema)) return - if (prefixItems) validateAdditionalItems(cxt, prefixItems) - else cxt.ok(validateArray(cxt)) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts deleted file mode 100644 index 8691db0b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/not.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" - -export type NotKeywordError = ErrorNoParams<"not", AnySchema> - -const def: CodeKeywordDefinition = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt: KeywordCxt) { - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) { - cxt.fail() - return - } - - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false, - }, - valid - ) - - cxt.failResult( - valid, - () => cxt.reset(), - () => cxt.error() - ) - }, - error: {message: "must NOT be valid"}, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts deleted file mode 100644 index c25353ff..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, Name} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" -import {SchemaCxt} from "../../compile" - -export type OneOfError = ErrorObject< - "oneOf", - {passingSchemas: [number, number] | null}, - AnySchema[] -> - -const error: KeywordErrorDefinition = { - message: "must match exactly one schema in oneOf", - params: ({params}) => _`{passingSchemas: ${params.passing}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - if (it.opts.discriminator && parentSchema.discriminator) return - const schArr: AnySchema[] = schema - const valid = gen.let("valid", false) - const passing = gen.let("passing", null) - const schValid = gen.name("_valid") - cxt.setParams({passing}) - // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas - - gen.block(validateOneOf) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) - - function validateOneOf(): void { - schArr.forEach((sch: AnySchema, i: number) => { - let schCxt: SchemaCxt | undefined - if (alwaysValidSchema(it, sch)) { - gen.var(schValid, true) - } else { - schCxt = cxt.subschema( - { - keyword: "oneOf", - schemaProp: i, - compositeRule: true, - }, - schValid - ) - } - - if (i > 0) { - gen - .if(_`${schValid} && ${valid}`) - .assign(valid, false) - .assign(passing, _`[${passing}, ${i}]`) - .else() - } - - gen.if(schValid, () => { - gen.assign(valid, true) - gen.assign(passing, i) - if (schCxt) cxt.mergeEvaluated(schCxt, Name) - }) - }) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts deleted file mode 100644 index ea624e23..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {allSchemaProperties, usePattern} from "../code" -import {_, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, checkStrictMode} from "../../compile/util" -import {evaluatedPropsToName, Type} from "../../compile/util" -import {AnySchema} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, data, parentSchema, it} = cxt - const {opts} = it - const patterns = allSchemaProperties(schema) - const alwaysValidPatterns = patterns.filter((p) => - alwaysValidSchema(it, schema[p] as AnySchema) - ) - - if ( - patterns.length === 0 || - (alwaysValidPatterns.length === patterns.length && - (!it.opts.unevaluated || it.props === true)) - ) { - return - } - - const checkProperties = - opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties - const valid = gen.name("valid") - if (it.props !== true && !(it.props instanceof Name)) { - it.props = evaluatedPropsToName(gen, it.props) - } - const {props} = it - validatePatternProperties() - - function validatePatternProperties(): void { - for (const pat of patterns) { - if (checkProperties) checkMatchingProperties(pat) - if (it.allErrors) { - validateProperties(pat) - } else { - gen.var(valid, true) // TODO var - validateProperties(pat) - gen.if(valid) - } - } - } - - function checkMatchingProperties(pat: string): void { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - checkStrictMode( - it, - `property ${prop} matches pattern ${pat} (use allowMatchingProperties)` - ) - } - } - } - - function validateProperties(pat: string): void { - gen.forIn("key", data, (key) => { - gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat) - if (!alwaysValid) { - cxt.subschema( - { - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - } - - if (it.opts.unevaluated && props !== true) { - gen.assign(_`${props}[${key}]`, true) - } else if (!alwaysValid && !it.allErrors) { - // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false) - // or if all properties were evaluated (props === true) - gen.if(not(valid), () => gen.break()) - } - }) - }) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts deleted file mode 100644 index 008fb2db..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateTuple} from "./items" - -const def: CodeKeywordDefinition = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => validateTuple(cxt, "items"), -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts deleted file mode 100644 index a55b19ce..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/properties.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties} from "../code" -import {alwaysValidSchema, toHash, mergeEvaluated} from "../../compile/util" -import apDef from "./additionalProperties" - -const def: CodeKeywordDefinition = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt: KeywordCxt) { - const {gen, schema, parentSchema, data, it} = cxt - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - apDef.code(new KeywordCxt(it, apDef, "additionalProperties")) - } - const allProps = allSchemaProperties(schema) - for (const prop of allProps) { - it.definedProperties.add(prop) - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = mergeEvaluated.props(gen, toHash(allProps), it.props) - } - const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p])) - if (properties.length === 0) return - const valid = gen.name("valid") - - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop) - } else { - gen.if(propertyInData(gen, data, prop, it.opts.ownProperties)) - applyPropertySchema(prop) - if (!it.allErrors) gen.else().var(valid, true) - gen.endIf() - } - cxt.it.definedProperties.add(prop) - cxt.ok(valid) - } - - function hasDefault(prop: string): boolean | undefined { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined - } - - function applyPropertySchema(prop: string): void { - cxt.subschema( - { - keyword: "properties", - schemaProp: prop, - dataProp: prop, - }, - valid - ) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts deleted file mode 100644 index 1c54d605..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not} from "../../compile/codegen" -import {alwaysValidSchema} from "../../compile/util" - -export type PropertyNamesError = ErrorObject<"propertyNames", {propertyName: string}, AnySchema> - -const error: KeywordErrorDefinition = { - message: "property name must be valid", - params: ({params}) => _`{propertyName: ${params.propertyName}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - - gen.forIn("key", data, (key) => { - cxt.setParams({propertyName: key}) - cxt.subschema( - { - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true, - }, - valid - ) - gen.if(not(valid), () => { - cxt.error(true) - if (!it.allErrors) gen.break() - }) - }) - - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts deleted file mode 100644 index 5055182e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.if === undefined) checkStrictMode(it, `"${keyword}" without "if" is ignored`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/code.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/code.ts deleted file mode 100644 index 92cdd5b0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/code.ts +++ /dev/null @@ -1,168 +0,0 @@ -import type {AnySchema, SchemaMap} from "../types" -import type {SchemaCxt} from "../compile" -import type {KeywordCxt} from "../compile/validate" -import {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from "../compile/codegen" -import {alwaysValidSchema, Type} from "../compile/util" -import N from "../compile/names" -import {useFunc} from "../compile/util" -export function checkReportMissingProp(cxt: KeywordCxt, prop: string): void { - const {gen, data, it} = cxt - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({missingProperty: _`${prop}`}, true) - cxt.error() - }) -} - -export function checkMissingProp( - {gen, data, it: {opts}}: KeywordCxt, - properties: string[], - missing: Name -): Code { - return or( - ...properties.map((prop) => - and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`) - ) - ) -} - -export function reportMissingProp(cxt: KeywordCxt, missing: Name): void { - cxt.setParams({missingProperty: missing}, true) - cxt.error() -} - -export function hasPropFunc(gen: CodeGen): Name { - return gen.scopeValue("func", { - // eslint-disable-next-line @typescript-eslint/unbound-method - ref: Object.prototype.hasOwnProperty, - code: _`Object.prototype.hasOwnProperty`, - }) -} - -export function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code { - return _`${hasPropFunc(gen)}.call(${data}, ${property})` -} - -export function propertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} !== undefined` - return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond -} - -export function noPropertyInData( - gen: CodeGen, - data: Name, - property: Name | string, - ownProperties?: boolean -): Code { - const cond = _`${data}${getProperty(property)} === undefined` - return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond -} - -export function allSchemaProperties(schemaMap?: SchemaMap): string[] { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [] -} - -export function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] { - return allSchemaProperties(schemaMap).filter( - (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema) - ) -} - -export function callValidateCode( - {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt, - func: Code, - context: Code, - passSchema?: boolean -): Code { - const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data - const valCxt: [Name, Code | number][] = [ - [N.instancePath, strConcat(N.instancePath, errorPath)], - [N.parentData, it.parentData], - [N.parentDataProperty, it.parentDataProperty], - [N.rootData, N.rootData], - ] - if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors]) - const args = _`${dataAndSchema}, ${gen.object(...valCxt)}` - return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})` -} - -const newRegExp = _`new RegExp` - -export function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name { - const u = opts.unicodeRegExp ? "u" : "" - const {regExp} = opts.code - const rx = regExp(pattern, u) - - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: _`${regExp.code === "new RegExp" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`, - }) -} - -export function validateArray(cxt: KeywordCxt): Name { - const {gen, data, keyword, it} = cxt - const valid = gen.name("valid") - if (it.allErrors) { - const validArr = gen.let("valid", true) - validateItems(() => gen.assign(validArr, false)) - return validArr - } - gen.var(valid, true) - validateItems(() => gen.break()) - return valid - - function validateItems(notValid: () => void): void { - const len = gen.const("len", _`${data}.length`) - gen.forRange("i", 0, len, (i) => { - cxt.subschema( - { - keyword, - dataProp: i, - dataPropType: Type.Num, - }, - valid - ) - gen.if(not(valid), notValid) - }) - } -} - -export function validateUnion(cxt: KeywordCxt): void { - const {gen, schema, keyword, it} = cxt - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch)) - if (alwaysValid && !it.opts.unevaluated) return - - const valid = gen.let("valid", false) - const schValid = gen.name("_valid") - - gen.block(() => - schema.forEach((_sch: AnySchema, i: number) => { - const schCxt = cxt.subschema( - { - keyword, - schemaProp: i, - compositeRule: true, - }, - schValid - ) - gen.assign(valid, _`${valid} || ${schValid}`) - const merged = cxt.mergeValidEvaluated(schCxt, schValid) - // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true) - // or if all properties and items were evaluated (it.props === true && it.items === true) - if (!merged) gen.if(not(valid)) - }) - ) - - cxt.result( - valid, - () => cxt.reset(), - () => cxt.error(true) - ) -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/id.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/id.ts deleted file mode 100644 index aa36c4bb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/id.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" - -const def: CodeKeywordDefinition = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID') - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/index.ts deleted file mode 100644 index e63e2895..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {Vocabulary} from "../../types" -import idKeyword from "./id" -import refKeyword from "./ref" - -const core: Vocabulary = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - {keyword: "$comment"}, - "definitions", - idKeyword, - refKeyword, -] - -export default core diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts deleted file mode 100644 index 5d59fbcb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/core/ref.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type {CodeKeywordDefinition, AnySchema} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import MissingRefError from "../../compile/ref_error" -import {callValidateCode} from "../code" -import {_, nil, stringify, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, resolveRef} from "../../compile" -import {mergeEvaluated} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$ref", - schemaType: "string", - code(cxt: KeywordCxt): void { - const {gen, schema: $ref, it} = cxt - const {baseId, schemaEnv: env, validateName, opts, self} = it - const {root} = env - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef() - const schOrEnv = resolveRef.call(self, root, baseId, $ref) - if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref) - if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv) - return inlineRefSchema(schOrEnv) - - function callRootRef(): void { - if (env === root) return callRef(cxt, validateName, env, env.$async) - const rootName = gen.scopeValue("root", {ref: root}) - return callRef(cxt, _`${rootName}.validate`, root, root.$async) - } - - function callValidate(sch: SchemaEnv): void { - const v = getValidate(cxt, sch) - callRef(cxt, v, sch, sch.$async) - } - - function inlineRefSchema(sch: AnySchema): void { - const schName = gen.scopeValue( - "schema", - opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch} - ) - const valid = gen.name("valid") - const schCxt = cxt.subschema( - { - schema: sch, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: $ref, - }, - valid - ) - cxt.mergeEvaluated(schCxt) - cxt.ok(valid) - } - }, -} - -export function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code { - const {gen} = cxt - return sch.validate - ? gen.scopeValue("validate", {ref: sch.validate}) - : _`${gen.scopeValue("wrapper", {ref: sch})}.validate` -} - -export function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void { - const {gen, it} = cxt - const {allErrors, schemaEnv: env, opts} = it - const passCxt = opts.passContext ? N.this : nil - if ($async) callAsyncRef() - else callSyncRef() - - function callAsyncRef(): void { - if (!env.$async) throw new Error("async schema referenced by sync schema") - const valid = gen.let("valid") - gen.try( - () => { - gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`) - addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result - if (!allErrors) gen.assign(valid, true) - }, - (e) => { - gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e)) - addErrorsFrom(e) - if (!allErrors) gen.assign(valid, false) - } - ) - cxt.ok(valid) - } - - function callSyncRef(): void { - cxt.result( - callValidateCode(cxt, v, passCxt), - () => addEvaluatedFrom(v), - () => addErrorsFrom(v) - ) - } - - function addErrorsFrom(source: Code): void { - const errs = _`${source}.errors` - gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged - gen.assign(N.errors, _`${N.vErrors}.length`) - } - - function addEvaluatedFrom(source: Code): void { - if (!it.opts.unevaluated) return - const schEvaluated = sch?.validate?.evaluated - // TODO refactor - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props) - } - } else { - const props = gen.var("props", _`${source}.evaluated.props`) - it.props = mergeEvaluated.props(gen, props, it.props, Name) - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items) - } - } else { - const items = gen.var("items", _`${source}.evaluated.items`) - it.items = mergeEvaluated.items(gen, items, it.items, Name) - } - } - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts deleted file mode 100644 index 98f0f8cf..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/index.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Name} from "../../compile/codegen" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" -import {resolveRef, SchemaEnv} from "../../compile" -import {schemaHasRulesButRef} from "../../compile/util" - -export type DiscriminatorError = DiscrErrorObj | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: ({params: {discrError, tagName}}) => - discrError === DiscrError.Tag - ? `tag "${tagName}" must be string` - : `value of tag "${tagName}" must be in oneOf`, - params: ({params: {discrError, tag, tagName}}) => - _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - const {gen, data, schema, parentSchema, it} = cxt - const {oneOf} = parentSchema - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option") - } - const tagName = schema.propertyName - if (typeof tagName != "string") throw new Error("discriminator: requires propertyName") - if (schema.mapping) throw new Error("discriminator: mapping is not supported") - if (!oneOf) throw new Error("discriminator: requires oneOf keyword") - const valid = gen.let("valid", false) - const tag = gen.const("tag", _`${data}${getProperty(tagName)}`) - gen.if( - _`typeof ${tag} == "string"`, - () => validateMapping(), - () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName}) - ) - cxt.ok(valid) - - function validateMapping(): void { - const mapping = getMapping() - gen.if(false) - for (const tagValue in mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(mapping[tagValue])) - } - gen.else() - cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName}) - gen.endIf() - } - - function applyTagSchema(schemaProp?: number): Name { - const _valid = gen.name("valid") - const schCxt = cxt.subschema({keyword: "oneOf", schemaProp}, _valid) - cxt.mergeEvaluated(schCxt, Name) - return _valid - } - - function getMapping(): {[T in string]?: number} { - const oneOfMapping: {[T in string]?: number} = {} - const topRequired = hasRequired(parentSchema) - let tagRequired = true - for (let i = 0; i < oneOf.length; i++) { - let sch = oneOf[i] - if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) { - sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch?.$ref) - if (sch instanceof SchemaEnv) sch = sch.schema - } - const propSch = sch?.properties?.[tagName] - if (typeof propSch != "object") { - throw new Error( - `discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"` - ) - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)) - addMappings(propSch, i) - } - if (!tagRequired) throw new Error(`discriminator: "${tagName}" must be required`) - return oneOfMapping - - function hasRequired({required}: AnySchemaObject): boolean { - return Array.isArray(required) && required.includes(tagName) - } - - function addMappings(sch: AnySchemaObject, i: number): void { - if (sch.const) { - addMapping(sch.const, i) - } else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i) - } - } else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`) - } - } - - function addMapping(tagValue: unknown, i: number): void { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`) - } - oneOfMapping[tagValue] = i - } - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts deleted file mode 100644 index bee5a278..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/discriminator/types.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {ErrorObject} from "../../types" - -export enum DiscrError { - Tag = "tag", - Mapping = "mapping", -} - -export type DiscrErrorObj = ErrorObject< - "discriminator", - {error: E; tag: string; tagValue: unknown}, - string -> diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts deleted file mode 100644 index 47fbf0ee..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft2020.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import dynamicVocabulary from "./dynamic" -import nextVocabulary from "./next" -import unevaluatedVocabulary from "./unevaluated" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft2020Vocabularies: Vocabulary[] = [ - dynamicVocabulary, - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(true), - formatVocabulary, - metadataVocabulary, - contentVocabulary, - nextVocabulary, - unevaluatedVocabulary, -] - -export default draft2020Vocabularies diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft7.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft7.ts deleted file mode 100644 index 226a644a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/draft7.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" -import coreVocabulary from "./core" -import validationVocabulary from "./validation" -import getApplicatorVocabulary from "./applicator" -import formatVocabulary from "./format" -import {metadataVocabulary, contentVocabulary} from "./metadata" - -const draft7Vocabularies: Vocabulary[] = [ - coreVocabulary, - validationVocabulary, - getApplicatorVocabulary(), - formatVocabulary, - metadataVocabulary, - contentVocabulary, -] - -export default draft7Vocabularies diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts deleted file mode 100644 index ca1adb91..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code} from "../../compile/codegen" -import N from "../../compile/names" -import {SchemaEnv, compileSchema} from "../../compile" -import {getValidate} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicAnchor", - schemaType: "string", - code: (cxt) => dynamicAnchor(cxt, cxt.schema), -} - -export function dynamicAnchor(cxt: KeywordCxt, anchor: string): void { - const {gen, it} = cxt - it.schemaEnv.root.dynamicAnchors[anchor] = true - const v = _`${N.dynamicAnchors}${getProperty(anchor)}` - const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt) - gen.if(_`!${v}`, () => gen.assign(v, validate)) -} - -function _getValidate(cxt: KeywordCxt): Code { - const {schemaEnv, schema, self} = cxt.it - const {root, baseId, localRefs, meta} = schemaEnv.root - const {schemaId} = self.opts - const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta}) - compileSchema.call(self, sch) - return getValidate(cxt, sch) -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts deleted file mode 100644 index 6a573f33..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, getProperty, Code, Name} from "../../compile/codegen" -import N from "../../compile/names" -import {callRef} from "../core/ref" - -const def: CodeKeywordDefinition = { - keyword: "$dynamicRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export function dynamicRef(cxt: KeywordCxt, ref: string): void { - const {gen, keyword, it} = cxt - if (ref[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`) - const anchor = ref.slice(1) - if (it.allErrors) { - _dynamicRef() - } else { - const valid = gen.let("valid", false) - _dynamicRef(valid) - cxt.ok(valid) - } - - function _dynamicRef(valid?: Name): void { - // TODO the assumption here is that `recursiveRef: #` always points to the root - // of the schema object, which is not correct, because there may be $id that - // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. - // Because of that 2 tests in recursiveRef.json fail. - // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`). - // (This problem is not tested in JSON-Schema-Test-Suite) - if (it.schemaEnv.root.dynamicAnchors[anchor]) { - const v = gen.let("_v", _`${N.dynamicAnchors}${getProperty(anchor)}`) - gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid)) - } else { - _callRef(it.validateName, valid)() - } - } - - function _callRef(validate: Code, valid?: Name): () => void { - return valid - ? () => - gen.block(() => { - callRef(cxt, validate) - gen.let(valid, true) - }) - : () => callRef(cxt, validate) - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts deleted file mode 100644 index 6d521db6..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type {Vocabulary} from "../../types" -import dynamicAnchor from "./dynamicAnchor" -import dynamicRef from "./dynamicRef" -import recursiveAnchor from "./recursiveAnchor" -import recursiveRef from "./recursiveRef" - -const dynamic: Vocabulary = [dynamicAnchor, dynamicRef, recursiveAnchor, recursiveRef] - -export default dynamic diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts deleted file mode 100644 index 25f3db96..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicAnchor} from "./dynamicAnchor" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveAnchor", - schemaType: "boolean", - code(cxt) { - if (cxt.schema) dynamicAnchor(cxt, "") - else checkStrictMode(cxt.it, "$recursiveAnchor: false is ignored") - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts deleted file mode 100644 index c84af0f0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {dynamicRef} from "./dynamicRef" - -const def: CodeKeywordDefinition = { - keyword: "$recursiveRef", - schemaType: "string", - code: (cxt) => dynamicRef(cxt, cxt.schema), -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/errors.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/errors.ts deleted file mode 100644 index c9ca3f02..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/errors.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type {TypeError} from "../compile/validate/dataType" -import type {ApplicatorKeywordError} from "./applicator" -import type {ValidationKeywordError} from "./validation" -import type {FormatError} from "./format/format" -import type {UnevaluatedPropertiesError} from "./unevaluated/unevaluatedProperties" -import type {UnevaluatedItemsError} from "./unevaluated/unevaluatedItems" -import type {DependentRequiredError} from "./validation/dependentRequired" -import type {DiscriminatorError} from "./discriminator" - -export type DefinedError = - | TypeError - | ApplicatorKeywordError - | ValidationKeywordError - | FormatError - | UnevaluatedPropertiesError - | UnevaluatedItemsError - | DependentRequiredError - | DiscriminatorError diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/format.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/format.ts deleted file mode 100644 index 4b1c13e7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/format.ts +++ /dev/null @@ -1,120 +0,0 @@ -import type { - AddedFormat, - FormatValidator, - AsyncFormatValidator, - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, nil, or, Code, getProperty, regexpCode} from "../../compile/codegen" - -type FormatValidate = - | FormatValidator - | FormatValidator - | AsyncFormatValidator - | AsyncFormatValidator - | RegExp - | string - | true - -export type FormatError = ErrorObject<"format", {format: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match format "${schemaCode}"`, - params: ({schemaCode}) => _`{format: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt, ruleType?: string) { - const {gen, data, $data, schema, schemaCode, it} = cxt - const {opts, errSchemaPath, schemaEnv, self} = it - if (!opts.validateFormats) return - - if ($data) validate$DataFormat() - else validateFormat() - - function validate$DataFormat(): void { - const fmts = gen.scopeValue("formats", { - ref: self.formats, - code: opts.code.formats, - }) - const fDef = gen.const("fDef", _`${fmts}[${schemaCode}]`) - const fType = gen.let("fType") - const format = gen.let("format") - // TODO simplify - gen.if( - _`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, - () => gen.assign(fType, _`${fDef}.type || "string"`).assign(format, _`${fDef}.validate`), - () => gen.assign(fType, _`"string"`).assign(format, fDef) - ) - cxt.fail$data(or(unknownFmt(), invalidFmt())) - - function unknownFmt(): Code { - if (opts.strictSchema === false) return nil - return _`${schemaCode} && !${format}` - } - - function invalidFmt(): Code { - const callFormat = schemaEnv.$async - ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` - : _`${format}(${data})` - const validData = _`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))` - return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}` - } - } - - function validateFormat(): void { - const formatDef: AddedFormat | undefined = self.formats[schema] - if (!formatDef) { - unknownFormat() - return - } - if (formatDef === true) return - const [fmtType, format, fmtRef] = getFormat(formatDef) - if (fmtType === ruleType) cxt.pass(validCondition()) - - function unknownFormat(): void { - if (opts.strictSchema === false) { - self.logger.warn(unknownMsg()) - return - } - throw new Error(unknownMsg()) - - function unknownMsg(): string { - return `unknown format "${schema as string}" ignored in schema at path "${errSchemaPath}"` - } - } - - function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] { - const code = - fmtDef instanceof RegExp - ? regexpCode(fmtDef) - : opts.code.formats - ? _`${opts.code.formats}${getProperty(schema)}` - : undefined - const fmt = gen.scopeValue("formats", {key: schema, ref: fmtDef, code}) - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, _`${fmt}.validate`] - } - - return ["string", fmtDef, fmt] - } - - function validCondition(): Code { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) throw new Error("async format in sync schema") - return _`await ${fmtRef}(${data})` - } - return typeof format == "function" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})` - } - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/index.ts deleted file mode 100644 index bca2f5b3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/format/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type {Vocabulary} from "../../types" -import formatKeyword from "./format" - -const format: Vocabulary = [formatKeyword] - -export default format diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts deleted file mode 100644 index f487c97f..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, not, getProperty, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" -import {DiscrError, DiscrErrorObj} from "../discriminator/types" - -export type JTDDiscriminatorError = - | _JTDTypeError<"discriminator", "object", string> - | DiscrErrorObj - | DiscrErrorObj - -const error: KeywordErrorDefinition = { - message: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? params.discrError === DiscrError.Tag - ? `tag "${schema}" must be string` - : `value of tag "${schema}" must be in mapping` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {schema, params} = cxt - return params.discrError - ? _`{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "discriminator", - schemaType: "string", - implements: ["mapping"], - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, parentSchema} = cxt - const [valid, cond] = checkNullableObject(cxt, data) - - gen.if(cond) - validateDiscriminator() - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - cxt.ok(valid) - - function validateDiscriminator(): void { - const tag = gen.const("tag", _`${data}${getProperty(schema)}`) - gen.if(_`${tag} === undefined`) - cxt.error(false, {discrError: DiscrError.Tag, tag}) - gen.elseIf(_`typeof ${tag} == "string"`) - validateMapping(tag) - gen.else() - cxt.error(false, {discrError: DiscrError.Tag, tag}, {instancePath: schema}) - gen.endIf() - } - - function validateMapping(tag: Name): void { - gen.if(false) - for (const tagValue in parentSchema.mapping) { - gen.elseIf(_`${tag} === ${tagValue}`) - gen.assign(valid, applyTagSchema(tagValue)) - } - gen.else() - cxt.error( - false, - {discrError: DiscrError.Mapping, tag}, - {instancePath: schema, schemaPath: "mapping", parentSchema: true} - ) - gen.endIf() - } - - function applyTagSchema(schemaProp: string): Name { - const _valid = gen.name("valid") - cxt.subschema( - { - keyword: "mapping", - schemaProp, - jtdDiscriminator: schema, - }, - _valid - ) - return _valid - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts deleted file mode 100644 index 983af7c0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/elements.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema} from "../../compile/util" -import {validateArray} from "../code" -import {_, not} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "elements", - schemaType: "object", - error: typeError("array"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const [valid] = checkNullable(cxt) - gen.if(not(valid), () => - gen.if( - _`Array.isArray(${data})`, - () => gen.assign(valid, validateArray(cxt)), - () => cxt.error() - ) - ) - cxt.ok(valid) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts deleted file mode 100644 index 75464ff8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/enum.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition, ErrorObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, and, Code} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullable} from "./nullable" - -export type JTDEnumError = ErrorObject<"enum", {allowedValues: string[]}, string[]> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, schemaValue, parentSchema, it} = cxt - if (schema.length === 0) throw new Error("enum must have non-empty array") - if (schema.length !== new Set(schema).size) throw new Error("enum items must be unique") - let valid: Code - const isString = _`typeof ${data} == "string"` - if (schema.length >= it.opts.loopEnum) { - let cond: Code - ;[valid, cond] = checkNullable(cxt, isString) - gen.if(cond, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - valid = and(isString, or(...schema.map((value: string) => _`${data} === ${value}`))) - if (parentSchema.nullable) valid = or(_`${data} === null`, valid) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.forOf("v", schemaValue as Code, (v) => - gen.if(_`${valid} = ${data} === ${v}`, () => gen.break()) - ) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts deleted file mode 100644 index 50693225..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/error.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {KeywordErrorDefinition, KeywordErrorCxt, ErrorObject} from "../../types" -import {_, Code} from "../../compile/codegen" - -export type _JTDTypeError = ErrorObject< - K, - {type: T; nullable: boolean}, - S -> - -export function typeError(t: string): KeywordErrorDefinition { - return { - message: (cxt) => typeErrorMessage(cxt, t), - params: (cxt) => typeErrorParams(cxt, t), - } -} - -export function typeErrorMessage({parentSchema}: KeywordErrorCxt, t: string): string { - return parentSchema?.nullable ? `must be ${t} or null` : `must be ${t}` -} - -export function typeErrorParams({parentSchema}: KeywordErrorCxt, t: string): Code { - return _`{type: ${t}, nullable: ${!!parentSchema?.nullable}}` -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts deleted file mode 100644 index f7baebc3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type {Vocabulary} from "../../types" -import refKeyword from "./ref" -import typeKeyword, {JTDTypeError} from "./type" -import enumKeyword, {JTDEnumError} from "./enum" -import elements, {JTDElementsError} from "./elements" -import properties, {JTDPropertiesError} from "./properties" -import optionalProperties from "./optionalProperties" -import discriminator, {JTDDiscriminatorError} from "./discriminator" -import values, {JTDValuesError} from "./values" -import union from "./union" -import metadata from "./metadata" - -const jtdVocabulary: Vocabulary = [ - "definitions", - refKeyword, - typeKeyword, - enumKeyword, - elements, - properties, - optionalProperties, - discriminator, - values, - union, - metadata, - {keyword: "additionalProperties", schemaType: "boolean"}, - {keyword: "nullable", schemaType: "boolean"}, -] - -export default jtdVocabulary - -export type JTDErrorObject = - | JTDTypeError - | JTDEnumError - | JTDElementsError - | JTDPropertiesError - | JTDDiscriminatorError - | JTDValuesError diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts deleted file mode 100644 index 19eeb8c7..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {KeywordCxt} from "../../ajv" -import type {CodeKeywordDefinition} from "../../types" -import {alwaysValidSchema} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: "metadata", - schemaType: "object", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const valid = gen.name("valid") - cxt.subschema({keyword: "metadata", jtdMetadata: true}, valid) - cxt.ok(valid) - }, -} - -export function checkMetadata({it, keyword}: KeywordCxt, metadata?: boolean): void { - if (it.jtdMetadata !== metadata) { - throw new Error(`JTD: "${keyword}" cannot be used in this schema location`) - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts deleted file mode 100644 index c74b05da..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type {KeywordCxt} from "../../compile/validate" -import {_, not, nil, Code, Name} from "../../compile/codegen" - -export function checkNullable( - {gen, data, parentSchema}: KeywordCxt, - cond: Code = nil -): [Name, Code] { - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.let(valid, _`${data} === null`) - cond = not(valid) - } else { - gen.let(valid, false) - } - return [valid, cond] -} - -export function checkNullableObject(cxt: KeywordCxt, cond: Code): [Name, Code] { - const [valid, cond_] = checkNullable(cxt, cond) - return [valid, _`${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`] -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts deleted file mode 100644 index 8e91c8d9..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {validateProperties, error} from "./properties" - -const def: CodeKeywordDefinition = { - keyword: "optionalProperties", - schemaType: "object", - error, - code(cxt: KeywordCxt) { - if (cxt.parentSchema.properties) return - validateProperties(cxt) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts deleted file mode 100644 index 728c0b92..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/properties.ts +++ /dev/null @@ -1,177 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - SchemaObject, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {propertyInData, allSchemaProperties, isOwnProperty} from "../code" -import {alwaysValidSchema, schemaRefOrVal} from "../../compile/util" -import {_, and, not, Code, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -enum PropError { - Additional = "additional", - Missing = "missing", -} - -type PropKeyword = "properties" | "optionalProperties" - -type PropSchema = {[P in string]?: SchemaObject} - -export type JTDPropertiesError = - | _JTDTypeError - | ErrorObject - | ErrorObject - -export const error: KeywordErrorDefinition = { - message: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? "must NOT have additional properties" - : `must have property '${params.missingProperty}'` - : typeErrorMessage(cxt, "object") - }, - params: (cxt) => { - const {params} = cxt - return params.propError - ? params.propError === PropError.Additional - ? _`{error: ${params.propError}, additionalProperty: ${params.additionalProperty}}` - : _`{error: ${params.propError}, missingProperty: ${params.missingProperty}}` - : typeErrorParams(cxt, "object") - }, -} - -const def: CodeKeywordDefinition = { - keyword: "properties", - schemaType: "object", - error, - code: validateProperties, -} - -// const error: KeywordErrorDefinition = { -// message: "should NOT have additional properties", -// params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, -// } - -export function validateProperties(cxt: KeywordCxt): void { - checkMetadata(cxt) - const {gen, data, parentSchema, it} = cxt - const {additionalProperties, nullable} = parentSchema - if (it.jtdDiscriminator && nullable) throw new Error("JTD: nullable inside discriminator mapping") - if (commonProperties()) { - throw new Error("JTD: properties and optionalProperties have common members") - } - const [allProps, properties] = schemaProperties("properties") - const [allOptProps, optProperties] = schemaProperties("optionalProperties") - if (properties.length === 0 && optProperties.length === 0 && additionalProperties) { - return - } - - const [valid, cond] = - it.jtdDiscriminator === undefined - ? checkNullableObject(cxt, data) - : [gen.let("valid", false), true] - gen.if(cond, () => - gen.assign(valid, true).block(() => { - validateProps(properties, "properties", true) - validateProps(optProperties, "optionalProperties") - if (!additionalProperties) validateAdditional() - }) - ) - cxt.pass(valid) - - function commonProperties(): boolean { - const props = parentSchema.properties as Record | undefined - const optProps = parentSchema.optionalProperties as Record | undefined - if (!(props && optProps)) return false - for (const p in props) { - if (Object.prototype.hasOwnProperty.call(optProps, p)) return true - } - return false - } - - function schemaProperties(keyword: string): [string[], string[]] { - const schema = parentSchema[keyword] - const allPs = schema ? allSchemaProperties(schema) : [] - if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { - throw new Error(`JTD: discriminator tag used in ${keyword}`) - } - const ps = allPs.filter((p) => !alwaysValidSchema(it, schema[p])) - return [allPs, ps] - } - - function validateProps(props: string[], keyword: string, required?: boolean): void { - const _valid = gen.var("valid") - for (const prop of props) { - gen.if( - propertyInData(gen, data, prop, it.opts.ownProperties), - () => applyPropertySchema(prop, keyword, _valid), - () => missingProperty(prop) - ) - cxt.ok(_valid) - } - - function missingProperty(prop: string): void { - if (required) { - gen.assign(_valid, false) - cxt.error(false, {propError: PropError.Missing, missingProperty: prop}, {schemaPath: prop}) - } else { - gen.assign(_valid, true) - } - } - } - - function applyPropertySchema(prop: string, keyword: string, _valid: Name): void { - cxt.subschema( - { - keyword, - schemaProp: prop, - dataProp: prop, - }, - _valid - ) - } - - function validateAdditional(): void { - gen.forIn("key", data, (key: Name) => { - const _allProps = - it.jtdDiscriminator === undefined ? allProps : [it.jtdDiscriminator].concat(allProps) - const addProp = isAdditional(key, _allProps, "properties") - const addOptProp = isAdditional(key, allOptProps, "optionalProperties") - const extra = - addProp === true ? addOptProp : addOptProp === true ? addProp : and(addProp, addOptProp) - gen.if(extra, () => { - if (it.opts.removeAdditional) { - gen.code(_`delete ${data}[${key}]`) - } else { - cxt.error( - false, - {propError: PropError.Additional, additionalProperty: key}, - {instancePath: key, parentSchema: true} - ) - if (!it.opts.allErrors) gen.break() - } - }) - }) - } - - function isAdditional(key: Name, props: string[], keyword: string): Code | true { - let additional: Code | boolean - if (props.length > 8) { - // TODO maybe an option instead of hard-coded 8? - const propsSchema = schemaRefOrVal(it, parentSchema[keyword], keyword) - additional = not(isOwnProperty(gen, propsSchema as Code, key)) - } else if (props.length) { - additional = and(...props.map((p) => _`${key} !== ${p}`)) - } else { - additional = true - } - return additional - } -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts deleted file mode 100644 index 97646ee1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/ref.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type {CodeKeywordDefinition, AnySchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {compileSchema, SchemaEnv} from "../../compile" -import {_, not, nil, stringify} from "../../compile/codegen" -import MissingRefError from "../../compile/ref_error" -import N from "../../compile/names" -import {getValidate, callRef} from "../core/ref" -import {checkMetadata} from "./metadata" - -const def: CodeKeywordDefinition = { - keyword: "ref", - schemaType: "string", - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema: ref, parentSchema, it} = cxt - const { - schemaEnv: {root}, - } = it - const valid = gen.name("valid") - if (parentSchema.nullable) { - gen.var(valid, _`${data} === null`) - gen.if(not(valid), validateJtdRef) - } else { - gen.var(valid, false) - validateJtdRef() - } - cxt.ok(valid) - - function validateJtdRef(): void { - const refSchema = (root.schema as AnySchemaObject).definitions?.[ref] - if (!refSchema) { - throw new MissingRefError(it.opts.uriResolver, "", ref, `No definition ${ref}`) - } - if (hasRef(refSchema) || !it.opts.inlineRefs) callValidate(refSchema) - else inlineRefSchema(refSchema) - } - - function callValidate(schema: AnySchemaObject): void { - const sch = compileSchema.call( - it.self, - new SchemaEnv({schema, root, schemaPath: `/definitions/${ref}`}) - ) - const v = getValidate(cxt, sch) - const errsCount = gen.const("_errs", N.errors) - callRef(cxt, v, sch, sch.$async) - gen.assign(valid, _`${errsCount} === ${N.errors}`) - } - - function inlineRefSchema(schema: AnySchemaObject): void { - const schName = gen.scopeValue( - "schema", - it.opts.code.source === true ? {ref: schema, code: stringify(schema)} : {ref: schema} - ) - cxt.subschema( - { - schema, - dataTypes: [], - schemaPath: nil, - topSchemaRef: schName, - errSchemaPath: `/definitions/${ref}`, - }, - valid - ) - } - }, -} - -export function hasRef(schema: AnySchemaObject): boolean { - for (const key in schema) { - let sch: AnySchemaObject - if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) return true - } - return false -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts deleted file mode 100644 index 17274300..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/type.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, nil, or, Code} from "../../compile/codegen" -import validTimestamp from "../../runtime/timestamp" -import {useFunc} from "../../compile/util" -import {checkMetadata} from "./metadata" -import {typeErrorMessage, typeErrorParams, _JTDTypeError} from "./error" - -export type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType> - -export type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32" - -export const intRange: {[T in IntType]: [number, number, number]} = { - int8: [-128, 127, 3], - uint8: [0, 255, 3], - int16: [-32768, 32767, 5], - uint16: [0, 65535, 5], - int32: [-2147483648, 2147483647, 10], - uint32: [0, 4294967295, 10], -} - -export type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType - -const error: KeywordErrorDefinition = { - message: (cxt) => typeErrorMessage(cxt, cxt.schema), - params: (cxt) => typeErrorParams(cxt, cxt.schema), -} - -function timestampCode(cxt: KeywordCxt): Code { - const {gen, data, it} = cxt - const {timestamp, allowDate} = it.opts - if (timestamp === "date") return _`${data} instanceof Date ` - const vts = useFunc(gen, validTimestamp) - const allowDateArg = allowDate ? _`, true` : nil - const validString = _`typeof ${data} == "string" && ${vts}(${data}${allowDateArg})` - return timestamp === "string" ? validString : or(_`${data} instanceof Date`, validString) -} - -const def: CodeKeywordDefinition = { - keyword: "type", - schemaType: "string", - error, - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {data, schema, parentSchema, it} = cxt - let cond: Code - switch (schema) { - case "boolean": - case "string": - cond = _`typeof ${data} == ${schema}` - break - case "timestamp": { - cond = timestampCode(cxt) - break - } - case "float32": - case "float64": - cond = _`typeof ${data} == "number"` - break - default: { - const sch = schema as IntType - cond = _`typeof ${data} == "number" && isFinite(${data}) && !(${data} % 1)` - if (!it.opts.int32range && (sch === "int32" || sch === "uint32")) { - if (sch === "uint32") cond = _`${cond} && ${data} >= 0` - } else { - const [min, max] = intRange[sch] - cond = _`${cond} && ${data} >= ${min} && ${data} <= ${max}` - } - } - } - cxt.pass(parentSchema.nullable ? or(_`${data} === null`, cond) : cond) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts deleted file mode 100644 index 588f07ab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/union.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import {validateUnion} from "../code" - -const def: CodeKeywordDefinition = { - keyword: "union", - schemaType: "array", - trackErrors: true, - code: validateUnion, - error: {message: "must match a schema in union"}, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts deleted file mode 100644 index 86091b8c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/jtd/values.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type {CodeKeywordDefinition, SchemaObject} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {alwaysValidSchema, Type} from "../../compile/util" -import {not, Name} from "../../compile/codegen" -import {checkMetadata} from "./metadata" -import {checkNullableObject} from "./nullable" -import {typeError, _JTDTypeError} from "./error" - -export type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject> - -const def: CodeKeywordDefinition = { - keyword: "values", - schemaType: "object", - error: typeError("object"), - code(cxt: KeywordCxt) { - checkMetadata(cxt) - const {gen, data, schema, it} = cxt - if (alwaysValidSchema(it, schema)) return - const [valid, cond] = checkNullableObject(cxt, data) - gen.if(cond) - gen.assign(valid, validateMap()) - gen.elseIf(not(valid)) - cxt.error() - gen.endIf() - cxt.ok(valid) - - function validateMap(): Name | boolean { - const _valid = gen.name("valid") - if (it.allErrors) { - const validMap = gen.let("valid", true) - validateValues(() => gen.assign(validMap, false)) - return validMap - } - gen.var(_valid, true) - validateValues(() => gen.break()) - return _valid - - function validateValues(notValid: () => void): void { - gen.forIn("key", data, (key) => { - cxt.subschema( - { - keyword: "values", - dataProp: key, - dataPropType: Type.Str, - }, - _valid - ) - gen.if(not(_valid), notValid) - }) - } - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/metadata.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/metadata.ts deleted file mode 100644 index b9d5af85..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/metadata.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Vocabulary} from "../types" - -export const metadataVocabulary: Vocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples", -] - -export const contentVocabulary: Vocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema", -] diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/next.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/next.ts deleted file mode 100644 index 1e987ad2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/next.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {Vocabulary} from "../types" -import dependentRequired from "./validation/dependentRequired" -import dependentSchemas from "./applicator/dependentSchemas" -import limitContains from "./validation/limitContains" - -const next: Vocabulary = [dependentRequired, dependentSchemas, limitContains] - -export default next diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts deleted file mode 100644 index f7f0815d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {Vocabulary} from "../../types" -import unevaluatedProperties from "./unevaluatedProperties" -import unevaluatedItems from "./unevaluatedItems" - -const unevaluated: Vocabulary = [unevaluatedProperties, unevaluatedItems] - -export default unevaluated diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts deleted file mode 100644 index 50bf0e7c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { - CodeKeywordDefinition, - ErrorObject, - KeywordErrorDefinition, - AnySchema, -} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, not, Name} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" - -export type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", {limit: number}, AnySchema> - -const error: KeywordErrorDefinition = { - message: ({params: {len}}) => str`must NOT have more than ${len} items`, - params: ({params: {len}}) => _`{limit: ${len}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedItems", - type: "array", - schemaType: ["boolean", "object"], - error, - code(cxt: KeywordCxt) { - const {gen, schema, data, it} = cxt - const items = it.items || 0 - if (items === true) return - const len = gen.const("len", _`${data}.length`) - if (schema === false) { - cxt.setParams({len: items}) - cxt.fail(_`${len} > ${items}`) - } else if (typeof schema == "object" && !alwaysValidSchema(it, schema)) { - const valid = gen.var("valid", _`${len} <= ${items}`) - gen.if(not(valid), () => validateItems(valid, items)) - cxt.ok(valid) - } - it.items = true - - function validateItems(valid: Name, from: Name | number): void { - gen.forRange("i", from, len, (i) => { - cxt.subschema({keyword: "unevaluatedItems", dataProp: i, dataPropType: Type.Num}, valid) - if (!it.allErrors) gen.if(not(valid), () => gen.break()) - }) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts deleted file mode 100644 index 0e6868fa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +++ /dev/null @@ -1,85 +0,0 @@ -import type { - CodeKeywordDefinition, - KeywordErrorDefinition, - ErrorObject, - AnySchema, -} from "../../types" -import {_, not, and, Name, Code} from "../../compile/codegen" -import {alwaysValidSchema, Type} from "../../compile/util" -import N from "../../compile/names" - -export type UnevaluatedPropertiesError = ErrorObject< - "unevaluatedProperties", - {unevaluatedProperty: string}, - AnySchema -> - -const error: KeywordErrorDefinition = { - message: "must NOT have unevaluated properties", - params: ({params}) => _`{unevaluatedProperty: ${params.unevaluatedProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "unevaluatedProperties", - type: "object", - schemaType: ["boolean", "object"], - trackErrors: true, - error, - code(cxt) { - const {gen, schema, data, errsCount, it} = cxt - /* istanbul ignore if */ - if (!errsCount) throw new Error("ajv implementation error") - const {allErrors, props} = it - if (props instanceof Name) { - gen.if(_`${props} !== true`, () => - gen.forIn("key", data, (key: Name) => - gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key)) - ) - ) - } else if (props !== true) { - gen.forIn("key", data, (key: Name) => - props === undefined - ? unevaluatedPropCode(key) - : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)) - ) - } - it.props = true - cxt.ok(_`${errsCount} === ${N.errors}`) - - function unevaluatedPropCode(key: Name): void { - if (schema === false) { - cxt.setParams({unevaluatedProperty: key}) - cxt.error() - if (!allErrors) gen.break() - return - } - - if (!alwaysValidSchema(it, schema)) { - const valid = gen.name("valid") - cxt.subschema( - { - keyword: "unevaluatedProperties", - dataProp: key, - dataPropType: Type.Str, - }, - valid - ) - if (!allErrors) gen.if(not(valid), () => gen.break()) - } - } - - function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code { - return _`!${evaluatedProps} || !${evaluatedProps}[${key}]` - } - - function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code { - const ps: Code[] = [] - for (const p in evaluatedProps) { - if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`) - } - return and(...ps) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts deleted file mode 100644 index a3b94a5d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/const.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type ConstError = ErrorObject<"const", {allowedValue: any}> - -const error: KeywordErrorDefinition = { - message: "must be equal to constant", - params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "const", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schemaCode, schema} = cxt - if ($data || (schema && typeof schema == "object")) { - cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`) - } else { - cxt.fail(_`${schema} !== ${data}`) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts deleted file mode 100644 index 4c616cfa..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject} from "../../types" -import { - validatePropertyDeps, - error, - DependenciesErrorParams, - PropertyDependencies, -} from "../applicator/dependencies" - -export type DependentRequiredError = ErrorObject< - "dependentRequired", - DependenciesErrorParams, - PropertyDependencies -> - -const def: CodeKeywordDefinition = { - keyword: "dependentRequired", - type: "object", - schemaType: "object", - error, - code: (cxt) => validatePropertyDeps(cxt), -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts deleted file mode 100644 index 76377fb0..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/enum.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, or, Name, Code} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type EnumError = ErrorObject<"enum", {allowedValues: any[]}, any[] | {$data: string}> - -const error: KeywordErrorDefinition = { - message: "must be equal to one of the allowed values", - params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "enum", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, schemaCode, it} = cxt - if (!$data && schema.length === 0) throw new Error("enum must have non-empty array") - const useLoop = schema.length >= it.opts.loopEnum - let eql: Name | undefined - const getEql = (): Name => (eql ??= useFunc(gen, equal)) - - let valid: Code - if (useLoop || $data) { - valid = gen.let("valid") - cxt.block$data(valid, loopEnum) - } else { - /* istanbul ignore if */ - if (!Array.isArray(schema)) throw new Error("ajv implementation error") - const vSchema = gen.const("vSchema", schemaCode) - valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i))) - } - cxt.pass(valid) - - function loopEnum(): void { - gen.assign(valid, false) - gen.forOf("v", schemaCode as Code, (v) => - gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()) - ) - } - - function equalCode(vSchema: Name, i: number): Code { - const sch = schema[i] - return typeof sch === "object" && sch !== null - ? _`${getEql()}(${data}, ${vSchema}[${i}])` - : _`${data} === ${sch}` - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts deleted file mode 100644 index 3531b196..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/index.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type {ErrorObject, Vocabulary} from "../../types" -import limitNumber, {LimitNumberError} from "./limitNumber" -import multipleOf, {MultipleOfError} from "./multipleOf" -import limitLength from "./limitLength" -import pattern, {PatternError} from "./pattern" -import limitProperties from "./limitProperties" -import required, {RequiredError} from "./required" -import limitItems from "./limitItems" -import uniqueItems, {UniqueItemsError} from "./uniqueItems" -import constKeyword, {ConstError} from "./const" -import enumKeyword, {EnumError} from "./enum" - -const validation: Vocabulary = [ - // number - limitNumber, - multipleOf, - // string - limitLength, - pattern, - // object - limitProperties, - required, - // array - limitItems, - uniqueItems, - // any - {keyword: "type", schemaType: ["string", "array"]}, - {keyword: "nullable", schemaType: "boolean"}, - constKeyword, - enumKeyword, -] - -export default validation - -type LimitError = ErrorObject< - "maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", - {limit: number}, - number | {$data: string} -> - -export type ValidationKeywordError = - | LimitError - | LimitNumberError - | MultipleOfError - | PatternError - | RequiredError - | UniqueItemsError - | ConstError - | EnumError diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts deleted file mode 100644 index 8bb43c1a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type {CodeKeywordDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkStrictMode} from "../../compile/util" - -const def: CodeKeywordDefinition = { - keyword: ["maxContains", "minContains"], - type: "array", - schemaType: "number", - code({keyword, parentSchema, it}: KeywordCxt) { - if (parentSchema.contains === undefined) { - checkStrictMode(it, `"${keyword}" without "contains" is ignored`) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts deleted file mode 100644 index 566de858..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxItems" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} items` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxItems" ? operators.GT : operators.LT - cxt.fail$data(_`${data}.length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts deleted file mode 100644 index f4f94725..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import ucs2length from "../../runtime/ucs2length" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxLength" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} characters` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode, it} = cxt - const op = keyword === "maxLength" ? operators.GT : operators.LT - const len = - it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})` - cxt.fail$data(_`${len} ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts deleted file mode 100644 index 5499202e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators, Code} from "../../compile/codegen" - -const ops = operators - -type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum" - -type Comparison = "<=" | ">=" | "<" | ">" - -const KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = { - maximum: {okStr: "<=", ok: ops.LTE, fail: ops.GT}, - minimum: {okStr: ">=", ok: ops.GTE, fail: ops.LT}, - exclusiveMaximum: {okStr: "<", ok: ops.LT, fail: ops.GTE}, - exclusiveMinimum: {okStr: ">", ok: ops.GT, fail: ops.LTE}, -} - -export type LimitNumberError = ErrorObject< - Kwd, - {limit: number; comparison: Comparison}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`, - params: ({keyword, schemaCode}) => - _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts deleted file mode 100644 index 07fffa8b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type {CodeKeywordDefinition, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str, operators} from "../../compile/codegen" - -const error: KeywordErrorDefinition = { - message({keyword, schemaCode}) { - const comp = keyword === "maxProperties" ? "more" : "fewer" - return str`must NOT have ${comp} than ${schemaCode} properties` - }, - params: ({schemaCode}) => _`{limit: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {keyword, data, schemaCode} = cxt - const op = keyword === "maxProperties" ? operators.GT : operators.LT - cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts deleted file mode 100644 index 1fd79abb..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {_, str} from "../../compile/codegen" - -export type MultipleOfError = ErrorObject< - "multipleOf", - {multipleOf: number}, - number | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must be multiple of ${schemaCode}`, - params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, schemaCode, it} = cxt - // const bdt = bad$DataType(schemaCode, def.schemaType, $data) - const prec = it.opts.multipleOfPrecision - const res = gen.let("res") - const invalid = prec - ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` - : _`${res} !== parseInt(${res})` - cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts deleted file mode 100644 index 7b27b7d3..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/pattern.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {usePattern} from "../code" -import {_, str} from "../../compile/codegen" - -export type PatternError = ErrorObject<"pattern", {pattern: string}, string | {$data: string}> - -const error: KeywordErrorDefinition = { - message: ({schemaCode}) => str`must match pattern "${schemaCode}"`, - params: ({schemaCode}) => _`{pattern: ${schemaCode}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error, - code(cxt: KeywordCxt) { - const {data, $data, schema, schemaCode, it} = cxt - // TODO regexp should be wrapped in try/catchs - const u = it.opts.unicodeRegExp ? "u" : "" - const regExp = $data ? _`(new RegExp(${schemaCode}, ${u}))` : usePattern(cxt, schema) - cxt.fail$data(_`!${regExp}.test(${data})`) - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts deleted file mode 100644 index fea7367e..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/required.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import { - checkReportMissingProp, - checkMissingProp, - reportMissingProp, - propertyInData, - noPropertyInData, -} from "../code" -import {_, str, nil, not, Name, Code} from "../../compile/codegen" -import {checkStrictMode} from "../../compile/util" - -export type RequiredError = ErrorObject< - "required", - {missingProperty: string}, - string[] | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`, - params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, schema, schemaCode, data, $data, it} = cxt - const {opts} = it - if (!$data && schema.length === 0) return - const useLoop = schema.length >= opts.loopRequired - if (it.allErrors) allErrorsMode() - else exitOnErrorMode() - - if (opts.strictRequired) { - const props = cxt.parentSchema.properties - const {definedProperties} = cxt.it - for (const requiredKey of schema) { - if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)` - checkStrictMode(it, msg, it.opts.strictRequired) - } - } - } - - function allErrorsMode(): void { - if (useLoop || $data) { - cxt.block$data(nil, loopAllRequired) - } else { - for (const prop of schema) { - checkReportMissingProp(cxt, prop) - } - } - } - - function exitOnErrorMode(): void { - const missing = gen.let("missing") - if (useLoop || $data) { - const valid = gen.let("valid", true) - cxt.block$data(valid, () => loopUntilMissing(missing, valid)) - cxt.ok(valid) - } else { - gen.if(checkMissingProp(cxt, schema, missing)) - reportMissingProp(cxt, missing) - gen.else() - } - } - - function loopAllRequired(): void { - gen.forOf("prop", schemaCode as Code, (prop) => { - cxt.setParams({missingProperty: prop}) - gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error()) - }) - } - - function loopUntilMissing(missing: Name, valid: Name): void { - cxt.setParams({missingProperty: missing}) - gen.forOf( - missing, - schemaCode as Code, - () => { - gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties)) - gen.if(not(valid), () => { - cxt.error() - gen.break() - }) - }, - nil - ) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts b/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts deleted file mode 100644 index 765c4d04..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from "../../types" -import type {KeywordCxt} from "../../compile/validate" -import {checkDataTypes, getSchemaTypes, DataType} from "../../compile/validate/dataType" -import {_, str, Name} from "../../compile/codegen" -import {useFunc} from "../../compile/util" -import equal from "../../runtime/equal" - -export type UniqueItemsError = ErrorObject< - "uniqueItems", - {i: number; j: number}, - boolean | {$data: string} -> - -const error: KeywordErrorDefinition = { - message: ({params: {i, j}}) => - str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`, -} - -const def: CodeKeywordDefinition = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error, - code(cxt: KeywordCxt) { - const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt - if (!$data && !schema) return - const valid = gen.let("valid") - const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : [] - cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`) - cxt.ok(valid) - - function validateUniqueItems(): void { - const i = gen.let("i", _`${data}.length`) - const j = gen.let("j") - cxt.setParams({i, j}) - gen.assign(valid, true) - gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)) - } - - function canOptimize(): boolean { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array") - } - - function loopN(i: Name, j: Name): void { - const item = gen.name("item") - const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong) - const indices = gen.const("indices", _`{}`) - gen.for(_`;${i}--;`, () => { - gen.let(item, _`${data}[${i}]`) - gen.if(wrongType, _`continue`) - if (itemTypes.length > 1) gen.if(_`typeof ${item} == "string"`, _`${item} += "_"`) - gen - .if(_`typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, _`${indices}[${item}]`) - cxt.error() - gen.assign(valid, false).break() - }) - .code(_`${indices}[${item}] = ${i}`) - }) - } - - function loopN2(i: Name, j: Name): void { - const eql = useFunc(gen, equal) - const outer = gen.name("outer") - gen.label(outer).for(_`;${i}--;`, () => - gen.for(_`${j} = ${i}; ${j}--;`, () => - gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error() - gen.assign(valid, false).break(outer) - }) - ) - ) - } - }, -} - -export default def diff --git a/node_modules/mini-css-extract-plugin/node_modules/ajv/package.json b/node_modules/mini-css-extract-plugin/node_modules/ajv/package.json deleted file mode 100644 index c277d94d..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/ajv/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "name": "ajv", - "version": "8.11.0", - "description": "Another JSON Schema Validator", - "main": "dist/ajv.js", - "types": "dist/ajv.d.ts", - "files": [ - "lib/", - "dist/", - ".runkit_example.js" - ], - "scripts": { - "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite", - "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"", - "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"", - "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot", - "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec", - "test-debug": "npm run test-spec -- --inspect-brk", - "test-cov": "nyc npm run test-spec", - "rollup": "rm -rf bundle && rollup -c", - "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD", - "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts", - "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests", - "test-karma": "karma start", - "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start", - "test-all": "npm run test-cov && if-node-version 12 npm run test-browser", - "test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov", - "test-ci": "AJV_FULL_TEST=true npm test", - "prepublish": "npm run build", - "benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd", - "docs:dev": "./scripts/prepare-site && vuepress dev docs", - "docs:build": "./scripts/prepare-site && vuepress build docs" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "repository": "ajv-validator/ajv", - "keywords": [ - "JSON", - "schema", - "validator", - "validation", - "jsonschema", - "json-schema", - "json-schema-validator", - "json-schema-validation" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": "https://github.com/ajv-validator/ajv/issues", - "homepage": "https://ajv.js.org", - "runkitExampleFilename": ".runkit_example.js", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "devDependencies": { - "@ajv-validator/config": "^0.3.0", - "@rollup/plugin-commonjs": "^21.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.0.0", - "@rollup/plugin-typescript": "^8.2.1", - "@types/chai": "^4.2.12", - "@types/mocha": "^9.0.0", - "@types/node": "^17.0.0", - "@types/require-from-string": "^1.2.0", - "@typescript-eslint/eslint-plugin": "^3.8.0", - "@typescript-eslint/parser": "^3.8.0", - "ajv-formats": "^3.0.0-rc.0", - "browserify": "^17.0.0", - "chai": "^4.0.1", - "cross-env": "^7.0.2", - "dayjs": "^1.10.4", - "dayjs-plugin-utc": "^0.1.2", - "eslint": "^7.8.1", - "eslint-config-prettier": "^7.0.0", - "fast-uri": "^1.0.0", - "glob": "^7.0.0", - "husky": "^7.0.1", - "if-node-version": "^1.0.0", - "jimp": "^0.16.1", - "js-beautify": "^1.7.3", - "json-schema-test": "^2.0.0", - "karma": "^6.0.0", - "karma-chrome-launcher": "^3.0.0", - "karma-mocha": "^2.0.0", - "lint-staged": "^12.1.1", - "mocha": "^9.0.2", - "module-from-string": "^3.1.3", - "node-fetch": "^3.0.0", - "nyc": "^15.0.0", - "prettier": "^2.3.1", - "re2": "^1.16.0", - "rollup": "^2.44.0", - "rollup-plugin-terser": "^7.0.2", - "ts-node": "^10.0.0", - "tsify": "^5.0.2", - "typescript": "^4.2.0" - }, - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/ajv" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - }, - "prettier": "@ajv-validator/config/prettierrc.json", - "husky": { - "hooks": { - "pre-commit": "lint-staged && npm test" - } - }, - "lint-staged": { - "*.{json,yaml,js,ts}": "prettier --write" - } -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.eslintrc.yml b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index 618559ab..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 15] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml deleted file mode 100644 index 44f80f41..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: epoberezkin -tidelift: "npm/json-schema-traverse" diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml deleted file mode 100644 index f8ef5ba8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: build - -on: - push: - branches: [master] - pull_request: - branches: ["*"] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml deleted file mode 100644 index 924825b1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/.github/workflows/publish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish - -on: - release: - types: [published] - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm test - - name: Publish beta version to npm - if: "github.event.release.prerelease" - run: npm publish --tag beta - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish to npm - if: "!github.event.release.prerelease" - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/LICENSE b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/README.md b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/README.md deleted file mode 100644 index f3e60073..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse) -[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## Enterprise support - -json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.d.ts deleted file mode 100644 index 0772daed..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -declare function traverse( - schema: traverse.SchemaObject, - opts: traverse.Options, - cb?: traverse.Callback -): void; - -declare function traverse( - schema: traverse.SchemaObject, - cb: traverse.Callback -): void; - -declare namespace traverse { - interface SchemaObject { - $id?: string; - $schema?: string; - [x: string]: any; - } - - type Callback = ( - schema: SchemaObject, - jsonPtr: string, - rootSchema: SchemaObject, - parentJsonPtr?: string, - parentKeyword?: string, - parentSchema?: SchemaObject, - keyIndex?: string | number - ) => void; - - interface Options { - allKeys?: boolean; - cb?: - | Callback - | { - pre?: Callback; - post?: Callback; - }; - } -} - -export = traverse; diff --git a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.js b/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.js deleted file mode 100644 index e521bfa8..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i - - - - - - - - -[![npm][npm]][npm-url] -[![node][node]][node-url] -[![deps][deps]][deps-url] -[![tests][tests]][tests-url] -[![coverage][cover]][cover-url] -[![chat][chat]][chat-url] -[![size][size]][size-url] - -# schema-utils - -Package for validate options in loaders and plugins. - -## Getting Started - -To begin, you'll need to install `schema-utils`: - -```console -npm install schema-utils -``` - -## API - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "option": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { option: true }; -const configuration = { name: "Loader Name/Plugin Name/Name" }; - -validate(schema, options, configuration); -``` - -### `schema` - -Type: `String` - -JSON schema. - -Simple example of schema: - -```json -{ - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -### `options` - -Type: `Object` - -Object with options. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, { name: 123 }, { name: "MyPlugin" }); -``` - -### `configuration` - -Allow to configure validator. - -There is an alternative method to configure the `name` and`baseDataPath` options via the `title` property in the schema. -For example: - -```json -{ - "title": "My Loader options", - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -The last word used for the `baseDataPath` option, other words used for the `name` option. -Based on the example above the `name` option equals `My Loader`, the `baseDataPath` option equals `options`. - -#### `name` - -Type: `Object` -Default: `"Object"` - -Allow to setup name in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin" }); -``` - -```shell -Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema. - - configuration.optionName should be a integer. -``` - -#### `baseDataPath` - -Type: `String` -Default: `"configuration"` - -Allow to setup base data path in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin", baseDataPath: "options" }); -``` - -```shell -Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. - - options.optionName should be a integer. -``` - -#### `postFormatter` - -Type: `Function` -Default: `undefined` - -Allow to reformat errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { - name: "MyPlugin", - postFormatter: (formattedError, error) => { - if (error.keyword === "type") { - return `${formattedError}\nAdditional Information.`; - } - - return formattedError; - }, -}); -``` - -```shell -Invalid options object. MyPlugin has been initialized using an options object that does not match the API schema. - - options.optionName should be a integer. - Additional Information. -``` - -## Examples - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "test": { - "anyOf": [ - { "type": "array" }, - { "type": "string" }, - { "instanceof": "RegExp" } - ] - }, - "transform": { - "instanceof": "Function" - }, - "sourceMap": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -### `Loader` - -```js -import { getOptions } from "loader-utils"; -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -function loader(src, map) { - const options = getOptions(this); - - validate(schema, options, { - name: "Loader Name", - baseDataPath: "options", - }); - - // Code... -} - -export default loader; -``` - -### `Plugin` - -```js -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -class Plugin { - constructor(options) { - validate(schema, options, { - name: "Plugin Name", - baseDataPath: "options", - }); - - this.options = options; - } - - apply(compiler) { - // Code... - } -} - -export default Plugin; -``` - -## Contributing - -Please take a moment to read our contributing guidelines if you haven't yet done so. - -[CONTRIBUTING](./.github/CONTRIBUTING.md) - -## License - -[MIT](./LICENSE) - -[npm]: https://img.shields.io/npm/v/schema-utils.svg -[npm-url]: https://npmjs.com/package/schema-utils -[node]: https://img.shields.io/node/v/schema-utils.svg -[node-url]: https://nodejs.org -[deps]: https://david-dm.org/webpack/schema-utils.svg -[deps-url]: https://david-dm.org/webpack/schema-utils -[tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg -[tests-url]: https://github.com/webpack/schema-utils/actions -[cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg -[cover-url]: https://codecov.io/gh/webpack/schema-utils -[chat]: https://badges.gitter.im/webpack/webpack.svg -[chat-url]: https://gitter.im/webpack/webpack -[size]: https://packagephobia.com/badge?p=schema-utils -[size-url]: https://packagephobia.com/result?p=schema-utils diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts deleted file mode 100644 index 55a8a9a1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/ValidationError.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -export default ValidationError; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type Schema = import("./validate").Schema; -export type ValidationErrorConfiguration = - import("./validate").ValidationErrorConfiguration; -export type PostFormatter = import("./validate").PostFormatter; -export type SchemaUtilErrorObject = import("./validate").SchemaUtilErrorObject; -declare class ValidationError extends Error { - /** - * @param {Array} errors - * @param {Schema} schema - * @param {ValidationErrorConfiguration} configuration - */ - constructor( - errors: Array, - schema: Schema, - configuration?: ValidationErrorConfiguration - ); - /** @type {Array} */ - errors: Array; - /** @type {Schema} */ - schema: Schema; - /** @type {string} */ - headerName: string; - /** @type {string} */ - baseDataPath: string; - /** @type {PostFormatter | null} */ - postFormatter: PostFormatter | null; - /** - * @param {string} path - * @returns {Schema} - */ - getSchemaPart(path: string): Schema; - /** - * @param {Schema} schema - * @param {boolean} logic - * @param {Array} prevSchemas - * @returns {string} - */ - formatSchema( - schema: Schema, - logic?: boolean, - prevSchemas?: Array - ): string; - /** - * @param {Schema=} schemaPart - * @param {(boolean | Array)=} additionalPath - * @param {boolean=} needDot - * @param {boolean=} logic - * @returns {string} - */ - getSchemaPartText( - schemaPart?: Schema | undefined, - additionalPath?: (boolean | Array) | undefined, - needDot?: boolean | undefined, - logic?: boolean | undefined - ): string; - /** - * @param {Schema=} schemaPart - * @returns {string} - */ - getSchemaPartDescription(schemaPart?: Schema | undefined): string; - /** - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - formatValidationError(error: SchemaUtilErrorObject): string; - /** - * @param {Array} errors - * @returns {string} - */ - formatValidationErrors(errors: Array): string; -} diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/index.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/index.d.ts deleted file mode 100644 index df5ec27c..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { validate } from "./validate"; -import { ValidationError } from "./validate"; -export { validate, ValidationError }; diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts deleted file mode 100644 index 41a54c08..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default addAbsolutePathKeyword; -export type Ajv = import("ajv").default; -export type SchemaValidateFunction = import("ajv").SchemaValidateFunction; -export type AnySchemaObject = import("ajv").AnySchemaObject; -export type SchemaUtilErrorObject = import("../validate").SchemaUtilErrorObject; -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ -declare function addAbsolutePathKeyword(ajv: Ajv): Ajv; diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/Range.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/Range.d.ts deleted file mode 100644 index 2ba97fc1..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/Range.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -export = Range; -/** - * @typedef {[number, boolean]} RangeValue - */ -/** - * @callback RangeValueCallback - * @param {RangeValue} rangeValue - * @returns {boolean} - */ -declare class Range { - /** - * @param {"left" | "right"} side - * @param {boolean} exclusive - * @returns {">" | ">=" | "<" | "<="} - */ - static getOperator( - side: "left" | "right", - exclusive: boolean - ): ">" | ">=" | "<" | "<="; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatRight(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatLeft(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} start left side value - * @param {number} end right side value - * @param {boolean} startExclusive is range exclusive from left side - * @param {boolean} endExclusive is range exclusive from right side - * @param {boolean} logic is not logic applied - * @returns {string} - */ - static formatRange( - start: number, - end: number, - startExclusive: boolean, - endExclusive: boolean, - logic: boolean - ): string; - /** - * @param {Array} values - * @param {boolean} logic is not logic applied - * @return {RangeValue} computed value and it's exclusive flag - */ - static getRangeValue(values: Array, logic: boolean): RangeValue; - /** @type {Array} */ - _left: Array; - /** @type {Array} */ - _right: Array; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - left(value: number, exclusive?: boolean | undefined): void; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - right(value: number, exclusive?: boolean | undefined): void; - /** - * @param {boolean} logic is not logic applied - * @return {string} "smart" range string representation - */ - format(logic?: boolean): string; -} -declare namespace Range { - export { RangeValue, RangeValueCallback }; -} -type RangeValue = [number, boolean]; -type RangeValueCallback = (rangeValue: RangeValue) => boolean; diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/hints.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/hints.d.ts deleted file mode 100644 index e43e32a2..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/util/hints.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function stringHints(schema: Schema, logic: boolean): string[]; -export function numberHints(schema: Schema, logic: boolean): string[]; -export type Schema = import("../validate").Schema; diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/validate.d.ts b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/validate.d.ts deleted file mode 100644 index 70cc5d4b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/declarations/validate.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -export type JSONSchema4 = import("json-schema").JSONSchema4; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type ErrorObject = import("ajv").ErrorObject; -export type Extend = { - formatMinimum?: string | undefined; - formatMaximum?: string | undefined; - formatExclusiveMinimum?: string | undefined; - formatExclusiveMaximum?: string | undefined; - link?: string | undefined; -}; -export type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend; -export type SchemaUtilErrorObject = ErrorObject & { - children?: Array; -}; -export type PostFormatter = ( - formattedError: string, - error: SchemaUtilErrorObject -) => string; -export type ValidationErrorConfiguration = { - name?: string | undefined; - baseDataPath?: string | undefined; - postFormatter?: PostFormatter | undefined; -}; -/** - * @param {Schema} schema - * @param {Array | object} options - * @param {ValidationErrorConfiguration=} configuration - * @returns {void} - */ -export function validate( - schema: Schema, - options: Array | object, - configuration?: ValidationErrorConfiguration | undefined -): void; -import ValidationError from "./ValidationError"; -export { ValidationError }; diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/ValidationError.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/ValidationError.js deleted file mode 100644 index e3d2413b..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/ValidationError.js +++ /dev/null @@ -1,1267 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -const { - stringHints, - numberHints -} = require("./util/hints"); -/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ - -/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ - -/** @typedef {import("./validate").Schema} Schema */ - -/** @typedef {import("./validate").ValidationErrorConfiguration} ValidationErrorConfiguration */ - -/** @typedef {import("./validate").PostFormatter} PostFormatter */ - -/** @typedef {import("./validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ - -/** @enum {number} */ - - -const SPECIFICITY = { - type: 1, - not: 1, - oneOf: 1, - anyOf: 1, - if: 1, - enum: 1, - const: 1, - instanceof: 1, - required: 2, - pattern: 2, - patternRequired: 2, - format: 2, - formatMinimum: 2, - formatMaximum: 2, - minimum: 2, - exclusiveMinimum: 2, - maximum: 2, - exclusiveMaximum: 2, - multipleOf: 2, - uniqueItems: 2, - contains: 2, - minLength: 2, - maxLength: 2, - minItems: 2, - maxItems: 2, - minProperties: 2, - maxProperties: 2, - dependencies: 2, - propertyNames: 2, - additionalItems: 2, - additionalProperties: 2, - absolutePath: 2 -}; -/** - * @param {string} value - * @returns {value is number} - */ - -function isNumeric(value) { - return /^-?\d+$/.test(value); -} -/** - * - * @param {Array} array - * @param {(item: SchemaUtilErrorObject) => number} fn - * @returns {Array} - */ - - -function filterMax(array, fn) { - const evaluatedMax = array.reduce((max, item) => Math.max(max, fn(item)), 0); - return array.filter(item => fn(item) === evaluatedMax); -} -/** - * - * @param {Array} children - * @returns {Array} - */ - - -function filterChildren(children) { - let newChildren = children; - newChildren = filterMax(newChildren, - /** - * - * @param {SchemaUtilErrorObject} error - * @returns {number} - */ - error => error.instancePath ? error.instancePath.length : 0); - newChildren = filterMax(newChildren, - /** - * @param {SchemaUtilErrorObject} error - * @returns {number} - */ - error => SPECIFICITY[ - /** @type {keyof typeof SPECIFICITY} */ - error.keyword] || 2); - return newChildren; -} -/** - * Find all children errors - * @param {Array} children - * @param {Array} schemaPaths - * @return {number} returns index of first child - */ - - -function findAllChildren(children, schemaPaths) { - let i = children.length - 1; - - const predicate = - /** - * @param {string} schemaPath - * @returns {boolean} - */ - schemaPath => children[i].schemaPath.indexOf(schemaPath) !== 0; - - while (i > -1 && !schemaPaths.every(predicate)) { - if (children[i].keyword === "anyOf" || children[i].keyword === "oneOf") { - const refs = extractRefs(children[i]); - const childrenStart = findAllChildren(children.slice(0, i), refs.concat(children[i].schemaPath)); - i = childrenStart - 1; - } else { - i -= 1; - } - } - - return i + 1; -} -/** - * Extracts all refs from schema - * @param {SchemaUtilErrorObject} error - * @return {Array} - */ - - -function extractRefs(error) { - const { - schema - } = error; - - if (!Array.isArray(schema)) { - return []; - } - - return schema.map(({ - $ref - }) => $ref).filter(s => s); -} -/** - * Groups children by their first level parent (assuming that error is root) - * @param {Array} children - * @return {Array} - */ - - -function groupChildrenByFirstChild(children) { - const result = []; - let i = children.length - 1; - - while (i > 0) { - const child = children[i]; - - if (child.keyword === "anyOf" || child.keyword === "oneOf") { - const refs = extractRefs(child); - const childrenStart = findAllChildren(children.slice(0, i), refs.concat(child.schemaPath)); - - if (childrenStart !== i) { - result.push(Object.assign({}, child, { - children: children.slice(childrenStart, i) - })); - i = childrenStart; - } else { - result.push(child); - } - } else { - result.push(child); - } - - i -= 1; - } - - if (i === 0) { - result.push(children[i]); - } - - return result.reverse(); -} -/** - * @param {string} str - * @param {string} prefix - * @returns {string} - */ - - -function indent(str, prefix) { - return str.replace(/\n(?!$)/g, `\n${prefix}`); -} -/** - * @param {Schema} schema - * @returns {schema is (Schema & {not: Schema})} - */ - - -function hasNotInSchema(schema) { - return !!schema.not; -} -/** - * @param {Schema} schema - * @return {Schema} - */ - - -function findFirstTypedSchema(schema) { - if (hasNotInSchema(schema)) { - return findFirstTypedSchema(schema.not); - } - - return schema; -} -/** - * @param {Schema} schema - * @return {boolean} - */ - - -function canApplyNot(schema) { - const typedSchema = findFirstTypedSchema(schema); - return likeNumber(typedSchema) || likeInteger(typedSchema) || likeString(typedSchema) || likeNull(typedSchema) || likeBoolean(typedSchema); -} -/** - * @param {any} maybeObj - * @returns {boolean} - */ - - -function isObject(maybeObj) { - return typeof maybeObj === "object" && maybeObj !== null; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeNumber(schema) { - return schema.type === "number" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeInteger(schema) { - return schema.type === "integer" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeString(schema) { - return schema.type === "string" || typeof schema.minLength !== "undefined" || typeof schema.maxLength !== "undefined" || typeof schema.pattern !== "undefined" || typeof schema.format !== "undefined" || typeof schema.formatMinimum !== "undefined" || typeof schema.formatMaximum !== "undefined"; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeBoolean(schema) { - return schema.type === "boolean"; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeArray(schema) { - return schema.type === "array" || typeof schema.minItems === "number" || typeof schema.maxItems === "number" || typeof schema.uniqueItems !== "undefined" || typeof schema.items !== "undefined" || typeof schema.additionalItems !== "undefined" || typeof schema.contains !== "undefined"; -} -/** - * @param {Schema & {patternRequired?: Array}} schema - * @returns {boolean} - */ - - -function likeObject(schema) { - return schema.type === "object" || typeof schema.minProperties !== "undefined" || typeof schema.maxProperties !== "undefined" || typeof schema.required !== "undefined" || typeof schema.properties !== "undefined" || typeof schema.patternProperties !== "undefined" || typeof schema.additionalProperties !== "undefined" || typeof schema.dependencies !== "undefined" || typeof schema.propertyNames !== "undefined" || typeof schema.patternRequired !== "undefined"; -} -/** - * @param {Schema} schema - * @returns {boolean} - */ - - -function likeNull(schema) { - return schema.type === "null"; -} -/** - * @param {string} type - * @returns {string} - */ - - -function getArticle(type) { - if (/^[aeiou]/i.test(type)) { - return "an"; - } - - return "a"; -} -/** - * @param {Schema=} schema - * @returns {string} - */ - - -function getSchemaNonTypes(schema) { - if (!schema) { - return ""; - } - - if (!schema.type) { - if (likeNumber(schema) || likeInteger(schema)) { - return " | should be any non-number"; - } - - if (likeString(schema)) { - return " | should be any non-string"; - } - - if (likeArray(schema)) { - return " | should be any non-array"; - } - - if (likeObject(schema)) { - return " | should be any non-object"; - } - } - - return ""; -} -/** - * @param {Array} hints - * @returns {string} - */ - - -function formatHints(hints) { - return hints.length > 0 ? `(${hints.join(", ")})` : ""; -} -/** - * @param {Schema} schema - * @param {boolean} logic - * @returns {string[]} - */ - - -function getHints(schema, logic) { - if (likeNumber(schema) || likeInteger(schema)) { - return numberHints(schema, logic); - } else if (likeString(schema)) { - return stringHints(schema, logic); - } - - return []; -} - -class ValidationError extends Error { - /** - * @param {Array} errors - * @param {Schema} schema - * @param {ValidationErrorConfiguration} configuration - */ - constructor(errors, schema, configuration = {}) { - super(); - /** @type {string} */ - - this.name = "ValidationError"; - /** @type {Array} */ - - this.errors = errors; - /** @type {Schema} */ - - this.schema = schema; - let headerNameFromSchema; - let baseDataPathFromSchema; - - if (schema.title && (!configuration.name || !configuration.baseDataPath)) { - const splittedTitleFromSchema = schema.title.match(/^(.+) (.+)$/); - - if (splittedTitleFromSchema) { - if (!configuration.name) { - [, headerNameFromSchema] = splittedTitleFromSchema; - } - - if (!configuration.baseDataPath) { - [,, baseDataPathFromSchema] = splittedTitleFromSchema; - } - } - } - /** @type {string} */ - - - this.headerName = configuration.name || headerNameFromSchema || "Object"; - /** @type {string} */ - - this.baseDataPath = configuration.baseDataPath || baseDataPathFromSchema || "configuration"; - /** @type {PostFormatter | null} */ - - this.postFormatter = configuration.postFormatter || null; - const header = `Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`; - /** @type {string} */ - - this.message = `${header}${this.formatValidationErrors(errors)}`; - Error.captureStackTrace(this, this.constructor); - } - /** - * @param {string} path - * @returns {Schema} - */ - - - getSchemaPart(path) { - const newPath = path.split("/"); - let schemaPart = this.schema; - - for (let i = 1; i < newPath.length; i++) { - const inner = schemaPart[ - /** @type {keyof Schema} */ - newPath[i]]; - - if (!inner) { - break; - } - - schemaPart = inner; - } - - return schemaPart; - } - /** - * @param {Schema} schema - * @param {boolean} logic - * @param {Array} prevSchemas - * @returns {string} - */ - - - formatSchema(schema, logic = true, prevSchemas = []) { - let newLogic = logic; - - const formatInnerSchema = - /** - * - * @param {Object} innerSchema - * @param {boolean=} addSelf - * @returns {string} - */ - (innerSchema, addSelf) => { - if (!addSelf) { - return this.formatSchema(innerSchema, newLogic, prevSchemas); - } - - if (prevSchemas.includes(innerSchema)) { - return "(recursive)"; - } - - return this.formatSchema(innerSchema, newLogic, prevSchemas.concat(schema)); - }; - - if (hasNotInSchema(schema) && !likeObject(schema)) { - if (canApplyNot(schema.not)) { - newLogic = !logic; - return formatInnerSchema(schema.not); - } - - const needApplyLogicHere = !schema.not.not; - const prefix = logic ? "" : "non "; - newLogic = !logic; - return needApplyLogicHere ? prefix + formatInnerSchema(schema.not) : formatInnerSchema(schema.not); - } - - if ( - /** @type {Schema & {instanceof: string | Array}} */ - schema.instanceof) { - const { - instanceof: value - } = - /** @type {Schema & {instanceof: string | Array}} */ - schema; - const values = !Array.isArray(value) ? [value] : value; - return values.map( - /** - * @param {string} item - * @returns {string} - */ - item => item === "Function" ? "function" : item).join(" | "); - } - - if (schema.enum) { - return ( - /** @type {Array} */ - schema.enum.map(item => JSON.stringify(item)).join(" | ") - ); - } - - if (typeof schema.const !== "undefined") { - return JSON.stringify(schema.const); - } - - if (schema.oneOf) { - return ( - /** @type {Array} */ - schema.oneOf.map(item => formatInnerSchema(item, true)).join(" | ") - ); - } - - if (schema.anyOf) { - return ( - /** @type {Array} */ - schema.anyOf.map(item => formatInnerSchema(item, true)).join(" | ") - ); - } - - if (schema.allOf) { - return ( - /** @type {Array} */ - schema.allOf.map(item => formatInnerSchema(item, true)).join(" & ") - ); - } - - if ( - /** @type {JSONSchema7} */ - schema.if) { - const { - if: ifValue, - then: thenValue, - else: elseValue - } = - /** @type {JSONSchema7} */ - schema; - return `${ifValue ? `if ${formatInnerSchema(ifValue)}` : ""}${thenValue ? ` then ${formatInnerSchema(thenValue)}` : ""}${elseValue ? ` else ${formatInnerSchema(elseValue)}` : ""}`; - } - - if (schema.$ref) { - return formatInnerSchema(this.getSchemaPart(schema.$ref), true); - } - - if (likeNumber(schema) || likeInteger(schema)) { - const [type, ...hints] = getHints(schema, logic); - const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; - return logic ? str : hints.length > 0 ? `non-${type} | ${str}` : `non-${type}`; - } - - if (likeString(schema)) { - const [type, ...hints] = getHints(schema, logic); - const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; - return logic ? str : str === "string" ? "non-string" : `non-string | ${str}`; - } - - if (likeBoolean(schema)) { - return `${logic ? "" : "non-"}boolean`; - } - - if (likeArray(schema)) { - // not logic already applied in formatValidationError - newLogic = true; - const hints = []; - - if (typeof schema.minItems === "number") { - hints.push(`should not have fewer than ${schema.minItems} item${schema.minItems > 1 ? "s" : ""}`); - } - - if (typeof schema.maxItems === "number") { - hints.push(`should not have more than ${schema.maxItems} item${schema.maxItems > 1 ? "s" : ""}`); - } - - if (schema.uniqueItems) { - hints.push("should not have duplicate items"); - } - - const hasAdditionalItems = typeof schema.additionalItems === "undefined" || Boolean(schema.additionalItems); - let items = ""; - - if (schema.items) { - if (Array.isArray(schema.items) && schema.items.length > 0) { - items = `${ - /** @type {Array} */ - schema.items.map(item => formatInnerSchema(item)).join(", ")}`; - - if (hasAdditionalItems) { - if (schema.additionalItems && isObject(schema.additionalItems) && Object.keys(schema.additionalItems).length > 0) { - hints.push(`additional items should be ${formatInnerSchema(schema.additionalItems)}`); - } - } - } else if (schema.items && Object.keys(schema.items).length > 0) { - // "additionalItems" is ignored - items = `${formatInnerSchema(schema.items)}`; - } else { - // Fallback for empty `items` value - items = "any"; - } - } else { - // "additionalItems" is ignored - items = "any"; - } - - if (schema.contains && Object.keys(schema.contains).length > 0) { - hints.push(`should contains at least one ${this.formatSchema(schema.contains)} item`); - } - - return `[${items}${hasAdditionalItems ? ", ..." : ""}]${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; - } - - if (likeObject(schema)) { - // not logic already applied in formatValidationError - newLogic = true; - const hints = []; - - if (typeof schema.minProperties === "number") { - hints.push(`should not have fewer than ${schema.minProperties} ${schema.minProperties > 1 ? "properties" : "property"}`); - } - - if (typeof schema.maxProperties === "number") { - hints.push(`should not have more than ${schema.maxProperties} ${schema.minProperties && schema.minProperties > 1 ? "properties" : "property"}`); - } - - if (schema.patternProperties && Object.keys(schema.patternProperties).length > 0) { - const patternProperties = Object.keys(schema.patternProperties); - hints.push(`additional property names should match pattern${patternProperties.length > 1 ? "s" : ""} ${patternProperties.map(pattern => JSON.stringify(pattern)).join(" | ")}`); - } - - const properties = schema.properties ? Object.keys(schema.properties) : []; - /** @type {Array} */ - // @ts-ignore - - const required = schema.required ? schema.required : []; - const allProperties = [...new Set( - /** @type {Array} */ - [].concat(required).concat(properties))]; - const objectStructure = allProperties.map(property => { - const isRequired = required.includes(property); // Some properties need quotes, maybe we should add check - // Maybe we should output type of property (`foo: string`), but it is looks very unreadable - - return `${property}${isRequired ? "" : "?"}`; - }).concat(typeof schema.additionalProperties === "undefined" || Boolean(schema.additionalProperties) ? schema.additionalProperties && isObject(schema.additionalProperties) ? [`: ${formatInnerSchema(schema.additionalProperties)}`] : ["…"] : []).join(", "); - const { - dependencies, - propertyNames, - patternRequired - } = - /** @type {Schema & {patternRequired?: Array;}} */ - schema; - - if (dependencies) { - Object.keys(dependencies).forEach(dependencyName => { - const dependency = dependencies[dependencyName]; - - if (Array.isArray(dependency)) { - hints.push(`should have ${dependency.length > 1 ? "properties" : "property"} ${dependency.map(dep => `'${dep}'`).join(", ")} when property '${dependencyName}' is present`); - } else { - hints.push(`should be valid according to the schema ${formatInnerSchema(dependency)} when property '${dependencyName}' is present`); - } - }); - } - - if (propertyNames && Object.keys(propertyNames).length > 0) { - hints.push(`each property name should match format ${JSON.stringify(schema.propertyNames.format)}`); - } - - if (patternRequired && patternRequired.length > 0) { - hints.push(`should have property matching pattern ${patternRequired.map( - /** - * @param {string} item - * @returns {string} - */ - item => JSON.stringify(item))}`); - } - - return `object {${objectStructure ? ` ${objectStructure} ` : ""}}${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; - } - - if (likeNull(schema)) { - return `${logic ? "" : "non-"}null`; - } - - if (Array.isArray(schema.type)) { - // not logic already applied in formatValidationError - return `${schema.type.join(" | ")}`; - } // Fallback for unknown keywords - // not logic already applied in formatValidationError - - /* istanbul ignore next */ - - - return JSON.stringify(schema, null, 2); - } - /** - * @param {Schema=} schemaPart - * @param {(boolean | Array)=} additionalPath - * @param {boolean=} needDot - * @param {boolean=} logic - * @returns {string} - */ - - - getSchemaPartText(schemaPart, additionalPath, needDot = false, logic = true) { - if (!schemaPart) { - return ""; - } - - if (Array.isArray(additionalPath)) { - for (let i = 0; i < additionalPath.length; i++) { - /** @type {Schema | undefined} */ - const inner = schemaPart[ - /** @type {keyof Schema} */ - additionalPath[i]]; - - if (inner) { - // eslint-disable-next-line no-param-reassign - schemaPart = inner; - } else { - break; - } - } - } - - while (schemaPart.$ref) { - // eslint-disable-next-line no-param-reassign - schemaPart = this.getSchemaPart(schemaPart.$ref); - } - - let schemaText = `${this.formatSchema(schemaPart, logic)}${needDot ? "." : ""}`; - - if (schemaPart.description) { - schemaText += `\n-> ${schemaPart.description}`; - } - - if (schemaPart.link) { - schemaText += `\n-> Read more at ${schemaPart.link}`; - } - - return schemaText; - } - /** - * @param {Schema=} schemaPart - * @returns {string} - */ - - - getSchemaPartDescription(schemaPart) { - if (!schemaPart) { - return ""; - } - - while (schemaPart.$ref) { - // eslint-disable-next-line no-param-reassign - schemaPart = this.getSchemaPart(schemaPart.$ref); - } - - let schemaText = ""; - - if (schemaPart.description) { - schemaText += `\n-> ${schemaPart.description}`; - } - - if (schemaPart.link) { - schemaText += `\n-> Read more at ${schemaPart.link}`; - } - - return schemaText; - } - /** - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - - - formatValidationError(error) { - const { - keyword, - instancePath: errorInstancePath - } = error; - const splittedInstancePath = errorInstancePath.split("/"); - /** - * @type {Array} - */ - - const defaultValue = []; - const prettyInstancePath = splittedInstancePath.reduce((acc, val) => { - if (val.length > 0) { - if (isNumeric(val)) { - acc.push(`[${val}]`); - } else if (/^\[/.test(val)) { - acc.push(val); - } else { - acc.push(`.${val}`); - } - } - - return acc; - }, defaultValue).join(""); - const instancePath = `${this.baseDataPath}${prettyInstancePath}`; // const { keyword, instancePath: errorInstancePath } = error; - // const instancePath = `${this.baseDataPath}${errorInstancePath.replace(/\//g, '.')}`; - - switch (keyword) { - case "type": - { - const { - parentSchema, - params - } = error; // eslint-disable-next-line default-case - - switch (params.type) { - case "number": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - - case "integer": - return `${instancePath} should be an ${this.getSchemaPartText(parentSchema, false, true)}`; - - case "string": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - - case "boolean": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - - case "array": - return `${instancePath} should be an array:\n${this.getSchemaPartText(parentSchema)}`; - - case "object": - return `${instancePath} should be an object:\n${this.getSchemaPartText(parentSchema)}`; - - case "null": - return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - - default: - return `${instancePath} should be:\n${this.getSchemaPartText(parentSchema)}`; - } - } - - case "instanceof": - { - const { - parentSchema - } = error; - return `${instancePath} should be an instance of ${this.getSchemaPartText(parentSchema, false, true)}`; - } - - case "pattern": - { - const { - params, - parentSchema - } = error; - const { - pattern - } = params; - return `${instancePath} should match pattern ${JSON.stringify(pattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "format": - { - const { - params, - parentSchema - } = error; - const { - format - } = params; - return `${instancePath} should match format ${JSON.stringify(format)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "formatMinimum": - case "formatExclusiveMinimum": - case "formatMaximum": - case "formatExclusiveMaximum": - { - const { - params, - parentSchema - } = error; - const { - comparison, - limit - } = params; - return `${instancePath} should be ${comparison} ${JSON.stringify(limit)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "minimum": - case "maximum": - case "exclusiveMinimum": - case "exclusiveMaximum": - { - const { - parentSchema, - params - } = error; - const { - comparison, - limit - } = params; - const [, ...hints] = getHints( - /** @type {Schema} */ - parentSchema, true); - - if (hints.length === 0) { - hints.push(`should be ${comparison} ${limit}`); - } - - return `${instancePath} ${hints.join(" ")}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "multipleOf": - { - const { - params, - parentSchema - } = error; - const { - multipleOf - } = params; - return `${instancePath} should be multiple of ${multipleOf}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "patternRequired": - { - const { - params, - parentSchema - } = error; - const { - missingPattern - } = params; - return `${instancePath} should have property matching pattern ${JSON.stringify(missingPattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "minLength": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - - if (limit === 1) { - return `${instancePath} should be a non-empty string${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - const length = limit - 1; - return `${instancePath} should be longer than ${length} character${length > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "minItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - - if (limit === 1) { - return `${instancePath} should be a non-empty array${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - return `${instancePath} should not have fewer than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "minProperties": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - - if (limit === 1) { - return `${instancePath} should be a non-empty object${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - return `${instancePath} should not have fewer than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "maxLength": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - const max = limit + 1; - return `${instancePath} should be shorter than ${max} character${max > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "maxItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "maxProperties": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "uniqueItems": - { - const { - params, - parentSchema - } = error; - const { - i - } = params; - return `${instancePath} should not contain the item '${ - /** @type {{ data: Array }} **/ - error.data[i]}' twice${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "additionalItems": - { - const { - params, - parentSchema - } = error; - const { - limit - } = params; - return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}. These items are valid:\n${this.getSchemaPartText(parentSchema)}`; - } - - case "contains": - { - const { - parentSchema - } = error; - return `${instancePath} should contains at least one ${this.getSchemaPartText(parentSchema, ["contains"])} item${getSchemaNonTypes(parentSchema)}.`; - } - - case "required": - { - const { - parentSchema, - params - } = error; - const missingProperty = params.missingProperty.replace(/^\./, ""); - const hasProperty = parentSchema && Boolean( - /** @type {Schema} */ - parentSchema.properties && - /** @type {Schema} */ - parentSchema.properties[missingProperty]); - return `${instancePath} misses the property '${missingProperty}'${getSchemaNonTypes(parentSchema)}.${hasProperty ? ` Should be:\n${this.getSchemaPartText(parentSchema, ["properties", missingProperty])}` : this.getSchemaPartDescription(parentSchema)}`; - } - - case "additionalProperties": - { - const { - params, - parentSchema - } = error; - const { - additionalProperty - } = params; - return `${instancePath} has an unknown property '${additionalProperty}'${getSchemaNonTypes(parentSchema)}. These properties are valid:\n${this.getSchemaPartText(parentSchema)}`; - } - - case "dependencies": - { - const { - params, - parentSchema - } = error; - const { - property, - deps - } = params; - const dependencies = deps.split(",").map( - /** - * @param {string} dep - * @returns {string} - */ - dep => `'${dep.trim()}'`).join(", "); - return `${instancePath} should have properties ${dependencies} when property '${property}' is present${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "propertyNames": - { - const { - params, - parentSchema, - schema - } = error; - const { - propertyName - } = params; - return `${instancePath} property name '${propertyName}' is invalid${getSchemaNonTypes(parentSchema)}. Property names should be match format ${JSON.stringify(schema.format)}.${this.getSchemaPartDescription(parentSchema)}`; - } - - case "enum": - { - const { - parentSchema - } = error; - - if (parentSchema && - /** @type {Schema} */ - parentSchema.enum && - /** @type {Schema} */ - parentSchema.enum.length === 1) { - return `${instancePath} should be ${this.getSchemaPartText(parentSchema, false, true)}`; - } - - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; - } - - case "const": - { - const { - parentSchema - } = error; - return `${instancePath} should be equal to constant ${this.getSchemaPartText(parentSchema, false, true)}`; - } - - case "not": - { - const postfix = likeObject( - /** @type {Schema} */ - error.parentSchema) ? `\n${this.getSchemaPartText(error.parentSchema)}` : ""; - const schemaOutput = this.getSchemaPartText(error.schema, false, false, false); - - if (canApplyNot(error.schema)) { - return `${instancePath} should be any ${schemaOutput}${postfix}.`; - } - - const { - schema, - parentSchema - } = error; - return `${instancePath} should not be ${this.getSchemaPartText(schema, false, true)}${parentSchema && likeObject(parentSchema) ? `\n${this.getSchemaPartText(parentSchema)}` : ""}`; - } - - case "oneOf": - case "anyOf": - { - const { - parentSchema, - children - } = error; - - if (children && children.length > 0) { - if (error.schema.length === 1) { - const lastChild = children[children.length - 1]; - const remainingChildren = children.slice(0, children.length - 1); - return this.formatValidationError(Object.assign({}, lastChild, { - children: remainingChildren, - parentSchema: Object.assign({}, parentSchema, lastChild.parentSchema) - })); - } - - let filteredChildren = filterChildren(children); - - if (filteredChildren.length === 1) { - return this.formatValidationError(filteredChildren[0]); - } - - filteredChildren = groupChildrenByFirstChild(filteredChildren); - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}\nDetails:\n${filteredChildren.map( - /** - * @param {SchemaUtilErrorObject} nestedError - * @returns {string} - */ - nestedError => ` * ${indent(this.formatValidationError(nestedError), " ")}`).join("\n")}`; - } - - return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; - } - - case "if": - { - const { - params, - parentSchema - } = error; - const { - failingKeyword - } = params; - return `${instancePath} should match "${failingKeyword}" schema:\n${this.getSchemaPartText(parentSchema, [failingKeyword])}`; - } - - case "absolutePath": - { - const { - message, - parentSchema - } = error; - return `${instancePath}: ${message}${this.getSchemaPartDescription(parentSchema)}`; - } - - /* istanbul ignore next */ - - default: - { - const { - message, - parentSchema - } = error; - const ErrorInJSON = JSON.stringify(error, null, 2); // For `custom`, `false schema`, `$ref` keywords - // Fallback for unknown keywords - - return `${instancePath} ${message} (${ErrorInJSON}).\n${this.getSchemaPartText(parentSchema, false)}`; - } - } - } - /** - * @param {Array} errors - * @returns {string} - */ - - - formatValidationErrors(errors) { - return errors.map(error => { - let formattedError = this.formatValidationError(error); - - if (this.postFormatter) { - formattedError = this.postFormatter(formattedError, error); - } - - return ` - ${indent(formattedError, " ")}`; - }).join("\n"); - } - -} - -var _default = ValidationError; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js deleted file mode 100644 index 47f43453..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -const { - validate, - ValidationError -} = require("./validate"); - -module.exports = { - validate, - ValidationError -}; \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js deleted file mode 100644 index ff53363a..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/keywords/absolutePath.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -/** @typedef {import("ajv").default} Ajv */ - -/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */ - -/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */ - -/** @typedef {import("../validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ - -/** - * @param {string} message - * @param {object} schema - * @param {string} data - * @returns {SchemaUtilErrorObject} - */ -function errorMessage(message, schema, data) { - return { - // @ts-ignore - // eslint-disable-next-line no-undefined - dataPath: undefined, - // @ts-ignore - // eslint-disable-next-line no-undefined - schemaPath: undefined, - keyword: "absolutePath", - params: { - absolutePath: data - }, - message, - parentSchema: schema - }; -} -/** - * @param {boolean} shouldBeAbsolute - * @param {object} schema - * @param {string} data - * @returns {SchemaUtilErrorObject} - */ - - -function getErrorFor(shouldBeAbsolute, schema, data) { - const message = shouldBeAbsolute ? `The provided value ${JSON.stringify(data)} is not an absolute path!` : `A relative path is expected. However, the provided value ${JSON.stringify(data)} is an absolute path!`; - return errorMessage(message, schema, data); -} -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ - - -function addAbsolutePathKeyword(ajv) { - ajv.addKeyword({ - keyword: "absolutePath", - type: "string", - errors: true, - - /** - * @param {boolean} schema - * @param {AnySchemaObject} parentSchema - * @returns {SchemaValidateFunction} - */ - compile(schema, parentSchema) { - /** @type {SchemaValidateFunction} */ - const callback = data => { - let passes = true; - const isExclamationMarkPresent = data.includes("!"); - - if (isExclamationMarkPresent) { - callback.errors = [errorMessage(`The provided value ${JSON.stringify(data)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`, parentSchema, data)]; - passes = false; - } // ?:[A-Za-z]:\\ - Windows absolute path - // \\\\ - Windows network absolute path - // \/ - Unix-like OS absolute path - - - const isCorrectAbsolutePath = schema === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data); - - if (!isCorrectAbsolutePath) { - callback.errors = [getErrorFor(schema, parentSchema, data)]; - passes = false; - } - - return passes; - }; - - callback.errors = []; - return callback; - } - - }); - return ajv; -} - -var _default = addAbsolutePathKeyword; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/Range.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/Range.js deleted file mode 100644 index 14b24319..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/Range.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; - -/** - * @typedef {[number, boolean]} RangeValue - */ - -/** - * @callback RangeValueCallback - * @param {RangeValue} rangeValue - * @returns {boolean} - */ -class Range { - /** - * @param {"left" | "right"} side - * @param {boolean} exclusive - * @returns {">" | ">=" | "<" | "<="} - */ - static getOperator(side, exclusive) { - if (side === "left") { - return exclusive ? ">" : ">="; - } - - return exclusive ? "<" : "<="; - } - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - - - static formatRight(value, logic, exclusive) { - if (logic === false) { - return Range.formatLeft(value, !logic, !exclusive); - } - - return `should be ${Range.getOperator("right", exclusive)} ${value}`; - } - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - - - static formatLeft(value, logic, exclusive) { - if (logic === false) { - return Range.formatRight(value, !logic, !exclusive); - } - - return `should be ${Range.getOperator("left", exclusive)} ${value}`; - } - /** - * @param {number} start left side value - * @param {number} end right side value - * @param {boolean} startExclusive is range exclusive from left side - * @param {boolean} endExclusive is range exclusive from right side - * @param {boolean} logic is not logic applied - * @returns {string} - */ - - - static formatRange(start, end, startExclusive, endExclusive, logic) { - let result = "should be"; - result += ` ${Range.getOperator(logic ? "left" : "right", logic ? startExclusive : !startExclusive)} ${start} `; - result += logic ? "and" : "or"; - result += ` ${Range.getOperator(logic ? "right" : "left", logic ? endExclusive : !endExclusive)} ${end}`; - return result; - } - /** - * @param {Array} values - * @param {boolean} logic is not logic applied - * @return {RangeValue} computed value and it's exclusive flag - */ - - - static getRangeValue(values, logic) { - let minMax = logic ? Infinity : -Infinity; - let j = -1; - const predicate = logic ? - /** @type {RangeValueCallback} */ - ([value]) => value <= minMax : - /** @type {RangeValueCallback} */ - ([value]) => value >= minMax; - - for (let i = 0; i < values.length; i++) { - if (predicate(values[i])) { - [minMax] = values[i]; - j = i; - } - } - - if (j > -1) { - return values[j]; - } - - return [Infinity, true]; - } - - constructor() { - /** @type {Array} */ - this._left = []; - /** @type {Array} */ - - this._right = []; - } - /** - * @param {number} value - * @param {boolean=} exclusive - */ - - - left(value, exclusive = false) { - this._left.push([value, exclusive]); - } - /** - * @param {number} value - * @param {boolean=} exclusive - */ - - - right(value, exclusive = false) { - this._right.push([value, exclusive]); - } - /** - * @param {boolean} logic is not logic applied - * @return {string} "smart" range string representation - */ - - - format(logic = true) { - const [start, leftExclusive] = Range.getRangeValue(this._left, logic); - const [end, rightExclusive] = Range.getRangeValue(this._right, !logic); - - if (!Number.isFinite(start) && !Number.isFinite(end)) { - return ""; - } - - const realStart = leftExclusive ? start + 1 : start; - const realEnd = rightExclusive ? end - 1 : end; // e.g. 5 < x < 7, 5 < x <= 6, 6 <= x <= 6 - - if (realStart === realEnd) { - return `should be ${logic ? "" : "!"}= ${realStart}`; - } // e.g. 4 < x < ∞ - - - if (Number.isFinite(start) && !Number.isFinite(end)) { - return Range.formatLeft(start, logic, leftExclusive); - } // e.g. ∞ < x < 4 - - - if (!Number.isFinite(start) && Number.isFinite(end)) { - return Range.formatRight(end, logic, rightExclusive); - } - - return Range.formatRange(start, end, leftExclusive, rightExclusive, logic); - } - -} - -module.exports = Range; \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/hints.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/hints.js deleted file mode 100644 index 480bcbbc..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/util/hints.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -const Range = require("./Range"); -/** @typedef {import("../validate").Schema} Schema */ - -/** - * @param {Schema} schema - * @param {boolean} logic - * @return {string[]} - */ - - -module.exports.stringHints = function stringHints(schema, logic) { - const hints = []; - let type = "string"; - const currentSchema = { ...schema - }; - - if (!logic) { - const tmpLength = currentSchema.minLength; - const tmpFormat = currentSchema.formatMinimum; - currentSchema.minLength = currentSchema.maxLength; - currentSchema.maxLength = tmpLength; - currentSchema.formatMinimum = currentSchema.formatMaximum; - currentSchema.formatMaximum = tmpFormat; - } - - if (typeof currentSchema.minLength === "number") { - if (currentSchema.minLength === 1) { - type = "non-empty string"; - } else { - const length = Math.max(currentSchema.minLength - 1, 0); - hints.push(`should be longer than ${length} character${length > 1 ? "s" : ""}`); - } - } - - if (typeof currentSchema.maxLength === "number") { - if (currentSchema.maxLength === 0) { - type = "empty string"; - } else { - const length = currentSchema.maxLength + 1; - hints.push(`should be shorter than ${length} character${length > 1 ? "s" : ""}`); - } - } - - if (currentSchema.pattern) { - hints.push(`should${logic ? "" : " not"} match pattern ${JSON.stringify(currentSchema.pattern)}`); - } - - if (currentSchema.format) { - hints.push(`should${logic ? "" : " not"} match format ${JSON.stringify(currentSchema.format)}`); - } - - if (currentSchema.formatMinimum) { - hints.push(`should be ${currentSchema.formatExclusiveMinimum ? ">" : ">="} ${JSON.stringify(currentSchema.formatMinimum)}`); - } - - if (currentSchema.formatMaximum) { - hints.push(`should be ${currentSchema.formatExclusiveMaximum ? "<" : "<="} ${JSON.stringify(currentSchema.formatMaximum)}`); - } - - return [type].concat(hints); -}; -/** - * @param {Schema} schema - * @param {boolean} logic - * @return {string[]} - */ - - -module.exports.numberHints = function numberHints(schema, logic) { - const hints = [schema.type === "integer" ? "integer" : "number"]; - const range = new Range(); - - if (typeof schema.minimum === "number") { - range.left(schema.minimum); - } - - if (typeof schema.exclusiveMinimum === "number") { - range.left(schema.exclusiveMinimum, true); - } - - if (typeof schema.maximum === "number") { - range.right(schema.maximum); - } - - if (typeof schema.exclusiveMaximum === "number") { - range.right(schema.exclusiveMaximum, true); - } - - const rangeFormat = range.format(logic); - - if (rangeFormat) { - hints.push(rangeFormat); - } - - if (typeof schema.multipleOf === "number") { - hints.push(`should${logic ? "" : " not"} be multiple of ${schema.multipleOf}`); - } - - return hints; -}; \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js deleted file mode 100644 index 01932609..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "ValidationError", { - enumerable: true, - get: function () { - return _ValidationError.default; - } -}); -exports.validate = validate; - -var _absolutePath = _interopRequireDefault(require("./keywords/absolutePath")); - -var _ValidationError = _interopRequireDefault(require("./ValidationError")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110). -const Ajv = require("ajv").default; - -const ajvKeywords = require("ajv-keywords").default; - -const addFormats = require("ajv-formats").default; -/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */ - -/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ - -/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ - -/** @typedef {import("ajv").ErrorObject} ErrorObject */ - -/** - * @typedef {Object} Extend - * @property {string=} formatMinimum - * @property {string=} formatMaximum - * @property {string=} formatExclusiveMinimum - * @property {string=} formatExclusiveMaximum - * @property {string=} link - */ - -/** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend} Schema */ - -/** @typedef {ErrorObject & { children?: Array}} SchemaUtilErrorObject */ - -/** - * @callback PostFormatter - * @param {string} formattedError - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - -/** - * @typedef {Object} ValidationErrorConfiguration - * @property {string=} name - * @property {string=} baseDataPath - * @property {PostFormatter=} postFormatter - */ - -/** - * @type {Ajv} - */ - - -const ajv = new Ajv({ - strict: false, - allErrors: true, - verbose: true, - $data: true -}); -ajvKeywords(ajv, ["instanceof", "patternRequired"]); -addFormats(ajv, { - keywords: true -}); // Custom keywords - -(0, _absolutePath.default)(ajv); -/** - * @param {Schema} schema - * @param {Array | object} options - * @param {ValidationErrorConfiguration=} configuration - * @returns {void} - */ - -function validate(schema, options, configuration) { - let errors = []; - - if (Array.isArray(options)) { - errors = Array.from(options, nestedOptions => validateObject(schema, nestedOptions)); - errors.forEach((list, idx) => { - const applyPrefix = - /** - * @param {SchemaUtilErrorObject} error - */ - error => { - // eslint-disable-next-line no-param-reassign - error.instancePath = `[${idx}]${error.instancePath}`; - - if (error.children) { - error.children.forEach(applyPrefix); - } - }; - - list.forEach(applyPrefix); - }); - errors = errors.reduce((arr, items) => { - arr.push(...items); - return arr; - }, []); - } else { - errors = validateObject(schema, options); - } - - if (errors.length > 0) { - throw new _ValidationError.default(errors, schema, configuration); - } -} -/** - * @param {Schema} schema - * @param {Array | object} options - * @returns {Array} - */ - - -function validateObject(schema, options) { - const compiledSchema = ajv.compile(schema); - const valid = compiledSchema(options); - if (valid) return []; - return compiledSchema.errors ? filterErrors(compiledSchema.errors) : []; -} -/** - * @param {Array} errors - * @returns {Array} - */ - - -function filterErrors(errors) { - /** @type {Array} */ - let newErrors = []; - - for (const error of - /** @type {Array} */ - errors) { - const { - instancePath - } = error; - /** @type {Array} */ - - let children = []; - newErrors = newErrors.filter(oldError => { - if (oldError.instancePath.includes(instancePath)) { - if (oldError.children) { - children = children.concat(oldError.children.slice(0)); - } // eslint-disable-next-line no-undefined, no-param-reassign - - - oldError.children = undefined; - children.push(oldError); - return false; - } - - return true; - }); - - if (children.length) { - error.children = children; - } - - newErrors.push(error); - } - - return newErrors; -} \ No newline at end of file diff --git a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/package.json b/node_modules/mini-css-extract-plugin/node_modules/schema-utils/package.json deleted file mode 100644 index ed4cb292..00000000 --- a/node_modules/mini-css-extract-plugin/node_modules/schema-utils/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "schema-utils", - "version": "4.0.0", - "description": "webpack Validation Utils", - "license": "MIT", - "repository": "webpack/schema-utils", - "author": "webpack Contrib (https://github.com/webpack-contrib)", - "homepage": "https://github.com/webpack/schema-utils", - "bugs": "https://github.com/webpack/schema-utils/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "main": "dist/index.js", - "types": "declarations/index.d.ts", - "engines": { - "node": ">= 12.13.0" - }, - "scripts": { - "start": "npm run build -- -w", - "clean": "del-cli dist declarations", - "prebuild": "npm run clean", - "build:types": "tsc --declaration --emitDeclarationOnly --outDir declarations && prettier \"declarations/**/*.ts\" --write", - "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", - "build": "npm-run-all -p \"build:**\"", - "commitlint": "commitlint --from=master", - "security": "npm audit --production", - "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different", - "lint:js": "eslint --cache .", - "lint:types": "tsc --pretty --noEmit", - "lint": "npm-run-all lint:js lint:types fmt:check", - "fmt": "npm run fmt:check -- --write", - "fix:js": "npm run lint:js -- --fix", - "fix": "npm-run-all fix:js fmt", - "test:only": "cross-env NODE_ENV=test jest", - "test:watch": "npm run test:only -- --watch", - "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", - "pretest": "npm run lint", - "test": "npm run test:coverage", - "prepare": "npm run build && husky install", - "release": "standard-version" - }, - "files": [ - "dist", - "declarations" - ], - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.8.0", - "ajv-keywords": "^5.0.0", - "ajv-formats": "^2.1.1" - }, - "devDependencies": { - "@babel/cli": "^7.16.0", - "@babel/core": "^7.16.0", - "@babel/preset-env": "^7.16.0", - "@commitlint/cli": "^14.1.0", - "@commitlint/config-conventional": "^14.1.0", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^27.3.1", - "cross-env": "^7.0.3", - "del": "^6.0.0", - "del-cli": "^4.0.1", - "eslint": "^8.0.1", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.25.3", - "husky": "^7.0.4", - "jest": "^27.3.1", - "lint-staged": "^12.0.2", - "npm-run-all": "^4.1.5", - "prettier": "^2.4.1", - "standard-version": "^9.3.2", - "typescript": "^4.3.5", - "webpack": "^5.64.1" - }, - "keywords": [ - "webpack" - ] -} diff --git a/node_modules/node-forge/.DS_Store b/node_modules/node-forge/.DS_Store deleted file mode 100644 index bdfe3dca..00000000 Binary files a/node_modules/node-forge/.DS_Store and /dev/null differ diff --git a/node_modules/p-throttle/index.d.ts b/node_modules/p-throttle/index.d.ts deleted file mode 100644 index 16573fa1..00000000 --- a/node_modules/p-throttle/index.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -declare class AbortErrorClass extends Error { - readonly name: 'AbortError'; - - /** - Abort pending execution. All unresolved promised are rejected with a `AbortError` error. - */ - constructor(); -} - -type PromiseResolve = ValueType extends PromiseLike ? Promise : Promise; - -declare namespace pThrottle { - type ThrottledFunction = (( - ...arguments: Argument - ) => PromiseResolve) & { - /** - Whether future function calls should be throttled or count towards throttling thresholds. - - @default true - */ - isEnabled: boolean; - - /** - Abort pending executions. All unresolved promises are rejected with a `pThrottle.AbortError` error. - */ - abort(): void; - }; - - interface Options { - /** - Maximum number of calls within an `interval`. - */ - readonly limit: number; - - /** - Timespan for `limit` in milliseconds. - */ - readonly interval: number; - - /** - Use a strict, more resource intensive, throttling algorithm. The default algorithm uses a windowed approach that will work correctly in most cases, limiting the total number of calls at the specified limit per interval window. The strict algorithm throttles each call individually, ensuring the limit is not exceeded for any interval. - - @default false - */ - readonly strict?: boolean; - } - - type AbortError = AbortErrorClass; -} - -declare const pThrottle: { - AbortError: typeof AbortErrorClass; - - /** - [Throttle](https://css-tricks.com/debouncing-throttling-explained-examples/) promise-returning/async/normal functions. - - @returns A throttled version of `fn`. - - Both the `limit` and `interval` options must be specified. - - @example - ``` - import pThrottle from 'p-throttle'; - - const throttle = pThrottle({ - limit: 2, - interval: 1000 - }); - - const throttled = throttle(async index => { - return index * 2; - }); - - for (let i = 1; i <= 6; i++) { - throttled(i).then(console.log); - } - ``` - */ - ( - options: pThrottle.Options - ): (function_: (...arguments: Argument) => ReturnValue) => pThrottle.ThrottledFunction; -}; - -export = pThrottle; diff --git a/node_modules/p-throttle/index.js b/node_modules/p-throttle/index.js deleted file mode 100644 index 3f1f4c74..00000000 --- a/node_modules/p-throttle/index.js +++ /dev/null @@ -1,102 +0,0 @@ -'use strict'; - -class AbortError extends Error { - constructor() { - super('Throttled function aborted'); - this.name = 'AbortError'; - } -} - -const pThrottle = ({limit, interval, strict}) => { - if (!Number.isFinite(limit)) { - throw new TypeError('Expected `limit` to be a finite number'); - } - - if (!Number.isFinite(interval)) { - throw new TypeError('Expected `interval` to be a finite number'); - } - - const queue = new Map(); - - let currentTick = 0; - let activeCount = 0; - - function windowedDelay() { - const now = Date.now(); - - if ((now - currentTick) > interval) { - activeCount = 1; - currentTick = now; - return 0; - } - - if (activeCount < limit) { - activeCount++; - } else { - currentTick += interval; - activeCount = 1; - } - - return currentTick - now; - } - - const strictTicks = []; - - function strictDelay() { - const now = Date.now(); - - if (strictTicks.length < limit) { - strictTicks.push(now); - return 0; - } - - const earliestTime = strictTicks.shift() + interval; - - if (now >= earliestTime) { - strictTicks.push(now); - return 0; - } - - strictTicks.push(earliestTime); - return earliestTime - now; - } - - const getDelay = strict ? strictDelay : windowedDelay; - - return function_ => { - const throttled = function (...args) { - if (!throttled.isEnabled) { - return (async () => function_.apply(this, args))(); - } - - let timeout; - return new Promise((resolve, reject) => { - const execute = () => { - resolve(function_.apply(this, args)); - queue.delete(timeout); - }; - - timeout = setTimeout(execute, getDelay()); - - queue.set(timeout, reject); - }); - }; - - throttled.abort = () => { - for (const timeout of queue.keys()) { - clearTimeout(timeout); - queue.get(timeout)(new AbortError()); - } - - queue.clear(); - strictTicks.splice(0, strictTicks.length); - }; - - throttled.isEnabled = true; - - return throttled; - }; -}; - -module.exports = pThrottle; -module.exports.AbortError = AbortError; diff --git a/node_modules/p-throttle/license b/node_modules/p-throttle/license deleted file mode 100644 index fa7ceba3..00000000 --- a/node_modules/p-throttle/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/p-throttle/package.json b/node_modules/p-throttle/package.json deleted file mode 100644 index 6bb887fd..00000000 --- a/node_modules/p-throttle/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "p-throttle", - "version": "4.1.1", - "description": "Throttle promise-returning & async functions", - "license": "MIT", - "repository": "sindresorhus/p-throttle", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "throttle", - "throat", - "limit", - "limited", - "interval", - "rate", - "batch", - "ratelimit", - "queue", - "discard", - "async", - "await", - "promises", - "time", - "out", - "cancel", - "bluebird" - ], - "devDependencies": { - "ava": "^2.4.0", - "delay": "^5.0.0", - "in-range": "^2.0.0", - "time-span": "^4.0.0", - "tsd": "^0.14.0", - "xo": "^0.38.1" - } -} diff --git a/node_modules/p-throttle/readme.md b/node_modules/p-throttle/readme.md deleted file mode 100644 index e9eed23b..00000000 --- a/node_modules/p-throttle/readme.md +++ /dev/null @@ -1,102 +0,0 @@ -# p-throttle - -> [Throttle](https://css-tricks.com/debouncing-throttling-explained-examples/) promise-returning & async functions - -It also works with normal functions. - -Useful for rate limiting calls to an external API, for example. - -## Install - -``` -$ npm install p-throttle -``` - -## Usage - -Here, the throttled function is only called twice a second: - -```js -const pThrottle = require('p-throttle'); - -const now = Date.now(); - -const throttle = pThrottle({ - limit: 2, - interval: 1000 -}); - -const throttled = throttle(index => { - const secDiff = ((Date.now() - now) / 1000).toFixed(); - return Promise.resolve(`${index}: ${secDiff}s`); -}); - -for (let i = 1; i <= 6; i++) { - throttled(i).then(console.log); -} -//=> 1: 0s -//=> 2: 0s -//=> 3: 1s -//=> 4: 1s -//=> 5: 2s -//=> 6: 2s -``` - -## API - -### pThrottle(options) - -Returns a `throttle` function. - -Returns a throttled version of `fn`. - -#### options - -Type: `object` - -Both the `limit` and `interval` options must be specified. - -##### limit - -Type: `number` - -Maximum number of calls within an `interval`. - -##### interval - -Type: `number` - -Timespan for `limit` in milliseconds. - -#### strict - -Type: `boolean`\ -Default: `false` - -Use a strict, more resource intensive, throttling algorithm. The default algorithm uses a windowed approach that will work correctly in most cases, limiting the total number of calls at the specified limit per interval window. The strict algorithm throttles each call individually, ensuring the limit is not exceeded for any interval. - -### throttle(function_) - -#### function_ - -Type: `Function` - -Promise-returning/async function or a normal function. - -### throttledFn.abort() - -Abort pending executions. All unresolved promises are rejected with a `pThrottle.AbortError` error. - -### throttledFn.isEnabled - -Type: `boolean`\ -Default: `true` - -Whether future function calls should be throttled and count towards throttling thresholds. - -## Related - -- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions -- [p-limit](https://github.com/sindresorhus/p-limit) - Run multiple promise-returning & async functions with limited concurrency -- [p-memoize](https://github.com/sindresorhus/p-memoize) - Memoize promise-returning & async functions -- [More…](https://github.com/sindresorhus/promise-fun) diff --git a/node_modules/proxy-addr/.DS_Store b/node_modules/proxy-addr/.DS_Store deleted file mode 100644 index 1220f7ad..00000000 Binary files a/node_modules/proxy-addr/.DS_Store and /dev/null differ diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE b/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE deleted file mode 100644 index f6b37b52..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (C) 2011-2017 whitequark - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/README.md b/node_modules/proxy-addr/node_modules/ipaddr.js/README.md deleted file mode 100644 index f57725b0..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +++ /dev/null @@ -1,233 +0,0 @@ -# ipaddr.js — an IPv6 and IPv4 address manipulation library [![Build Status](https://travis-ci.org/whitequark/ipaddr.js.svg)](https://travis-ci.org/whitequark/ipaddr.js) - -ipaddr.js is a small (1.9K minified and gzipped) library for manipulating -IP addresses in JavaScript environments. It runs on both CommonJS runtimes -(e.g. [nodejs]) and in a web browser. - -ipaddr.js allows you to verify and parse string representation of an IP -address, match it against a CIDR range or range list, determine if it falls -into some reserved ranges (examples include loopback and private ranges), -and convert between IPv4 and IPv4-mapped IPv6 addresses. - -[nodejs]: http://nodejs.org - -## Installation - -`npm install ipaddr.js` - -or - -`bower install ipaddr.js` - -## API - -ipaddr.js defines one object in the global scope: `ipaddr`. In CommonJS, -it is exported from the module: - -```js -var ipaddr = require('ipaddr.js'); -``` - -The API consists of several global methods and two classes: ipaddr.IPv6 and ipaddr.IPv4. - -### Global methods - -There are three global methods defined: `ipaddr.isValid`, `ipaddr.parse` and -`ipaddr.process`. All of them receive a string as a single parameter. - -The `ipaddr.isValid` method returns `true` if the address is a valid IPv4 or -IPv6 address, and `false` otherwise. It does not throw any exceptions. - -The `ipaddr.parse` method returns an object representing the IP address, -or throws an `Error` if the passed string is not a valid representation of an -IP address. - -The `ipaddr.process` method works just like the `ipaddr.parse` one, but it -automatically converts IPv4-mapped IPv6 addresses to their IPv4 counterparts -before returning. It is useful when you have a Node.js instance listening -on an IPv6 socket, and the `net.ivp6.bindv6only` sysctl parameter (or its -equivalent on non-Linux OS) is set to 0. In this case, you can accept IPv4 -connections on your IPv6-only socket, but the remote address will be mangled. -Use `ipaddr.process` method to automatically demangle it. - -### Object representation - -Parsing methods return an object which descends from `ipaddr.IPv6` or -`ipaddr.IPv4`. These objects share some properties, but most of them differ. - -#### Shared properties - -One can determine the type of address by calling `addr.kind()`. It will return -either `"ipv6"` or `"ipv4"`. - -An address can be converted back to its string representation with `addr.toString()`. -Note that this method: - * does not return the original string used to create the object (in fact, there is - no way of getting that string) - * returns a compact representation (when it is applicable) - -A `match(range, bits)` method can be used to check if the address falls into a -certain CIDR range. -Note that an address can be (obviously) matched only against an address of the same type. - -For example: - -```js -var addr = ipaddr.parse("2001:db8:1234::1"); -var range = ipaddr.parse("2001:db8::"); - -addr.match(range, 32); // => true -``` - -Alternatively, `match` can also be called as `match([range, bits])`. In this way, -it can be used together with the `parseCIDR(string)` method, which parses an IP -address together with a CIDR range. - -For example: - -```js -var addr = ipaddr.parse("2001:db8:1234::1"); - -addr.match(ipaddr.parseCIDR("2001:db8::/32")); // => true -``` - -A `range()` method returns one of predefined names for several special ranges defined -by IP protocols. The exact names (and their respective CIDR ranges) can be looked up -in the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `"unicast"` -(the default one) and `"reserved"`. - -You can match against your own range list by using -`ipaddr.subnetMatch(address, rangeList, defaultName)` method. It can work with a mix of IPv6 or IPv4 addresses, and accepts a name-to-subnet map as the range list. For example: - -```js -var rangeList = { - documentationOnly: [ ipaddr.parse('2001:db8::'), 32 ], - tunnelProviders: [ - [ ipaddr.parse('2001:470::'), 32 ], // he.net - [ ipaddr.parse('2001:5c0::'), 32 ] // freenet6 - ] -}; -ipaddr.subnetMatch(ipaddr.parse('2001:470:8:66::1'), rangeList, 'unknown'); // => "tunnelProviders" -``` - -The addresses can be converted to their byte representation with `toByteArray()`. -(Actually, JavaScript mostly does not know about byte buffers. They are emulated with -arrays of numbers, each in range of 0..255.) - -```js -var bytes = ipaddr.parse('2a00:1450:8007::68').toByteArray(); // ipv6.google.com -bytes // => [42, 0x00, 0x14, 0x50, 0x80, 0x07, 0x00, , 0x00, 0x68 ] -``` - -The `ipaddr.IPv4` and `ipaddr.IPv6` objects have some methods defined, too. All of them -have the same interface for both protocols, and are similar to global methods. - -`ipaddr.IPvX.isValid(string)` can be used to check if the string is a valid address -for particular protocol, and `ipaddr.IPvX.parse(string)` is the error-throwing parser. - -`ipaddr.IPvX.isValid(string)` uses the same format for parsing as the POSIX `inet_ntoa` function, which accepts unusual formats like `0xc0.168.1.1` or `0x10000000`. The function `ipaddr.IPv4.isValidFourPartDecimal(string)` validates the IPv4 address and also ensures that it is written in four-part decimal format. - -[IPv6 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L186 -[IPv4 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L71 - -#### IPv6 properties - -Sometimes you will want to convert IPv6 not to a compact string representation (with -the `::` substitution); the `toNormalizedString()` method will return an address where -all zeroes are explicit. - -For example: - -```js -var addr = ipaddr.parse("2001:0db8::0001"); -addr.toString(); // => "2001:db8::1" -addr.toNormalizedString(); // => "2001:db8:0:0:0:0:0:1" -``` - -The `isIPv4MappedAddress()` method will return `true` if this address is an IPv4-mapped -one, and `toIPv4Address()` will return an IPv4 object address. - -To access the underlying binary representation of the address, use `addr.parts`. - -```js -var addr = ipaddr.parse("2001:db8:10::1234:DEAD"); -addr.parts // => [0x2001, 0xdb8, 0x10, 0, 0, 0, 0x1234, 0xdead] -``` - -A IPv6 zone index can be accessed via `addr.zoneId`: - -```js -var addr = ipaddr.parse("2001:db8::%eth0"); -addr.zoneId // => 'eth0' -``` - -#### IPv4 properties - -`toIPv4MappedAddress()` will return a corresponding IPv4-mapped IPv6 address. - -To access the underlying representation of the address, use `addr.octets`. - -```js -var addr = ipaddr.parse("192.168.1.1"); -addr.octets // => [192, 168, 1, 1] -``` - -`prefixLengthFromSubnetMask()` will return a CIDR prefix length for a valid IPv4 netmask or -null if the netmask is not valid. - -```js -ipaddr.IPv4.parse('255.255.255.240').prefixLengthFromSubnetMask() == 28 -ipaddr.IPv4.parse('255.192.164.0').prefixLengthFromSubnetMask() == null -``` - -`subnetMaskFromPrefixLength()` will return an IPv4 netmask for a valid CIDR prefix length. - -```js -ipaddr.IPv4.subnetMaskFromPrefixLength(24) == "255.255.255.0" -ipaddr.IPv4.subnetMaskFromPrefixLength(29) == "255.255.255.248" -``` - -`broadcastAddressFromCIDR()` will return the broadcast address for a given IPv4 interface and netmask in CIDR notation. -```js -ipaddr.IPv4.broadcastAddressFromCIDR("172.0.0.1/24") == "172.0.0.255" -``` -`networkAddressFromCIDR()` will return the network address for a given IPv4 interface and netmask in CIDR notation. -```js -ipaddr.IPv4.networkAddressFromCIDR("172.0.0.1/24") == "172.0.0.0" -``` - -#### Conversion - -IPv4 and IPv6 can be converted bidirectionally to and from network byte order (MSB) byte arrays. - -The `fromByteArray()` method will take an array and create an appropriate IPv4 or IPv6 object -if the input satisfies the requirements. For IPv4 it has to be an array of four 8-bit values, -while for IPv6 it has to be an array of sixteen 8-bit values. - -For example: -```js -var addr = ipaddr.fromByteArray([0x7f, 0, 0, 1]); -addr.toString(); // => "127.0.0.1" -``` - -or - -```js -var addr = ipaddr.fromByteArray([0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) -addr.toString(); // => "2001:db8::1" -``` - -Both objects also offer a `toByteArray()` method, which returns an array in network byte order (MSB). - -For example: -```js -var addr = ipaddr.parse("127.0.0.1"); -addr.toByteArray(); // => [0x7f, 0, 0, 1] -``` - -or - -```js -var addr = ipaddr.parse("2001:db8::1"); -addr.toByteArray(); // => [0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] -``` diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js b/node_modules/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js deleted file mode 100644 index b54a7cc4..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var r,t,n,e,i,o,a,s;t={},s=this,"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:s.ipaddr=t,a=function(r,t,n,e){var i,o;if(r.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(i=0;e>0;){if((o=n-e)<0&&(o=0),r[i]>>o!=t[i]>>o)return!1;e-=n,i+=1}return!0},t.subnetMatch=function(r,t,n){var e,i,o,a,s;null==n&&(n="unicast");for(o in t)for(!(a=t[o])[0]||a[0]instanceof Array||(a=[a]),e=0,i=a.length;e=0;t=n+=-1){if(!((e=this.octets[t])in a))return null;if(o=a[e],i&&0!==o)return null;8!==o&&(i=!0),r+=o}return 32-r},r}(),n="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},t.IPv4.parser=function(r){var t,n,i,o,a;if(n=function(r){return"0"===r[0]&&"x"!==r[1]?parseInt(r,8):parseInt(r)},t=r.match(e.fourOctet))return function(){var r,e,o,a;for(a=[],r=0,e=(o=t.slice(1,6)).length;r4294967295||a<0)throw new Error("ipaddr: address outside defined range");return function(){var r,t;for(t=[],o=r=0;r<=24;o=r+=8)t.push(a>>o&255);return t}().reverse()}return null},t.IPv6=function(){function r(r,t){var n,e,i,o,a,s;if(16===r.length)for(this.parts=[],n=e=0;e<=14;n=e+=2)this.parts.push(r[n]<<8|r[n+1]);else{if(8!==r.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=r}for(i=0,o=(s=this.parts).length;it&&(r=n.index,t=n[0].length);return t<0?i:i.substring(0,r)+"::"+i.substring(r+t)},r.prototype.toByteArray=function(){var r,t,n,e,i;for(r=[],t=0,n=(i=this.parts).length;t>8),r.push(255&e);return r},r.prototype.toNormalizedString=function(){var r,t,n;return r=function(){var r,n,e,i;for(i=[],r=0,n=(e=this.parts).length;r>8,255&r,n>>8,255&n])},r.prototype.prefixLengthFromSubnetMask=function(){var r,t,n,e,i,o,a;for(a={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r=0,i=!1,t=n=7;n>=0;t=n+=-1){if(!((e=this.parts[t])in a))return null;if(o=a[e],i&&0!==o)return null;16!==o&&(i=!0),r+=o}return 128-r},r}(),i="(?:[0-9a-f]+::?)+",o={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+n+"\\."+n+"\\."+n+"\\."+n+"(%[0-9a-z]{1,})?$","i")},r=function(r,t){var n,e,i,a,s,p;if(r.indexOf("::")!==r.lastIndexOf("::"))return null;for((p=(r.match(o.zoneIndex)||[])[0])&&(p=p.substring(1),r=r.replace(/%.+$/,"")),n=0,e=-1;(e=r.indexOf(":",e+1))>=0;)n++;if("::"===r.substr(0,2)&&n--,"::"===r.substr(-2,2)&&n--,n>t)return null;for(s=t-n,a=":";s--;)a+="0:";return":"===(r=r.replace("::",a))[0]&&(r=r.slice(1)),":"===r[r.length-1]&&(r=r.slice(0,-1)),t=function(){var t,n,e,o;for(o=[],t=0,n=(e=r.split(":")).length;t=0&&t<=32)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},t.IPv4.subnetMaskFromPrefixLength=function(r){var t,n,e;if((r=parseInt(r))<0||r>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(e=[0,0,0,0],n=0,t=Math.floor(r/8);n=0&&t<=128)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},t.isValid=function(r){return t.IPv6.isValid(r)||t.IPv4.isValid(r)},t.parse=function(r){if(t.IPv6.isValid(r))return t.IPv6.parse(r);if(t.IPv4.isValid(r))return t.IPv4.parse(r);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},t.parseCIDR=function(r){try{return t.IPv6.parseCIDR(r)}catch(n){n;try{return t.IPv4.parseCIDR(r)}catch(r){throw r,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},t.fromByteArray=function(r){var n;if(4===(n=r.length))return new t.IPv4(r);if(16===n)return new t.IPv6(r);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},t.process=function(r){var t;return t=this.parse(r),"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}).call(this); \ No newline at end of file diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js b/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js deleted file mode 100644 index 18bd93b5..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +++ /dev/null @@ -1,673 +0,0 @@ -(function() { - var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex; - - ipaddr = {}; - - root = this; - - if ((typeof module !== "undefined" && module !== null) && module.exports) { - module.exports = ipaddr; - } else { - root['ipaddr'] = ipaddr; - } - - matchCIDR = function(first, second, partSize, cidrBits) { - var part, shift; - if (first.length !== second.length) { - throw new Error("ipaddr: cannot match CIDR for objects with different lengths"); - } - part = 0; - while (cidrBits > 0) { - shift = partSize - cidrBits; - if (shift < 0) { - shift = 0; - } - if (first[part] >> shift !== second[part] >> shift) { - return false; - } - cidrBits -= partSize; - part += 1; - } - return true; - }; - - ipaddr.subnetMatch = function(address, rangeList, defaultName) { - var k, len, rangeName, rangeSubnets, subnet; - if (defaultName == null) { - defaultName = 'unicast'; - } - for (rangeName in rangeList) { - rangeSubnets = rangeList[rangeName]; - if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) { - rangeSubnets = [rangeSubnets]; - } - for (k = 0, len = rangeSubnets.length; k < len; k++) { - subnet = rangeSubnets[k]; - if (address.kind() === subnet[0].kind()) { - if (address.match.apply(address, subnet)) { - return rangeName; - } - } - } - } - return defaultName; - }; - - ipaddr.IPv4 = (function() { - function IPv4(octets) { - var k, len, octet; - if (octets.length !== 4) { - throw new Error("ipaddr: ipv4 octet count should be 4"); - } - for (k = 0, len = octets.length; k < len; k++) { - octet = octets[k]; - if (!((0 <= octet && octet <= 255))) { - throw new Error("ipaddr: ipv4 octet should fit in 8 bits"); - } - } - this.octets = octets; - } - - IPv4.prototype.kind = function() { - return 'ipv4'; - }; - - IPv4.prototype.toString = function() { - return this.octets.join("."); - }; - - IPv4.prototype.toNormalizedString = function() { - return this.toString(); - }; - - IPv4.prototype.toByteArray = function() { - return this.octets.slice(0); - }; - - IPv4.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === void 0) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== 'ipv4') { - throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one"); - } - return matchCIDR(this.octets, other.octets, 8, cidrRange); - }; - - IPv4.prototype.SpecialRanges = { - unspecified: [[new IPv4([0, 0, 0, 0]), 8]], - broadcast: [[new IPv4([255, 255, 255, 255]), 32]], - multicast: [[new IPv4([224, 0, 0, 0]), 4]], - linkLocal: [[new IPv4([169, 254, 0, 0]), 16]], - loopback: [[new IPv4([127, 0, 0, 0]), 8]], - carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]], - "private": [[new IPv4([10, 0, 0, 0]), 8], [new IPv4([172, 16, 0, 0]), 12], [new IPv4([192, 168, 0, 0]), 16]], - reserved: [[new IPv4([192, 0, 0, 0]), 24], [new IPv4([192, 0, 2, 0]), 24], [new IPv4([192, 88, 99, 0]), 24], [new IPv4([198, 51, 100, 0]), 24], [new IPv4([203, 0, 113, 0]), 24], [new IPv4([240, 0, 0, 0]), 4]] - }; - - IPv4.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - IPv4.prototype.toIPv4MappedAddress = function() { - return ipaddr.IPv6.parse("::ffff:" + (this.toString())); - }; - - IPv4.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, octet, stop, zeros, zerotable; - zerotable = { - 0: 8, - 128: 7, - 192: 6, - 224: 5, - 240: 4, - 248: 3, - 252: 2, - 254: 1, - 255: 0 - }; - cidr = 0; - stop = false; - for (i = k = 3; k >= 0; i = k += -1) { - octet = this.octets[i]; - if (octet in zerotable) { - zeros = zerotable[octet]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 8) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 32 - cidr; - }; - - return IPv4; - - })(); - - ipv4Part = "(0?\\d+|0x[a-f0-9]+)"; - - ipv4Regexes = { - fourOctet: new RegExp("^" + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "$", 'i'), - longValue: new RegExp("^" + ipv4Part + "$", 'i') - }; - - ipaddr.IPv4.parser = function(string) { - var match, parseIntAuto, part, shift, value; - parseIntAuto = function(string) { - if (string[0] === "0" && string[1] !== "x") { - return parseInt(string, 8); - } else { - return parseInt(string); - } - }; - if (match = string.match(ipv4Regexes.fourOctet)) { - return (function() { - var k, len, ref, results; - ref = match.slice(1, 6); - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(parseIntAuto(part)); - } - return results; - })(); - } else if (match = string.match(ipv4Regexes.longValue)) { - value = parseIntAuto(match[1]); - if (value > 0xffffffff || value < 0) { - throw new Error("ipaddr: address outside defined range"); - } - return ((function() { - var k, results; - results = []; - for (shift = k = 0; k <= 24; shift = k += 8) { - results.push((value >> shift) & 0xff); - } - return results; - })()).reverse(); - } else { - return null; - } - }; - - ipaddr.IPv6 = (function() { - function IPv6(parts, zoneId) { - var i, k, l, len, part, ref; - if (parts.length === 16) { - this.parts = []; - for (i = k = 0; k <= 14; i = k += 2) { - this.parts.push((parts[i] << 8) | parts[i + 1]); - } - } else if (parts.length === 8) { - this.parts = parts; - } else { - throw new Error("ipaddr: ipv6 part count should be 8 or 16"); - } - ref = this.parts; - for (l = 0, len = ref.length; l < len; l++) { - part = ref[l]; - if (!((0 <= part && part <= 0xffff))) { - throw new Error("ipaddr: ipv6 part should fit in 16 bits"); - } - } - if (zoneId) { - this.zoneId = zoneId; - } - } - - IPv6.prototype.kind = function() { - return 'ipv6'; - }; - - IPv6.prototype.toString = function() { - return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::'); - }; - - IPv6.prototype.toRFC5952String = function() { - var bestMatchIndex, bestMatchLength, match, regex, string; - regex = /((^|:)(0(:|$)){2,})/g; - string = this.toNormalizedString(); - bestMatchIndex = 0; - bestMatchLength = -1; - while ((match = regex.exec(string))) { - if (match[0].length > bestMatchLength) { - bestMatchIndex = match.index; - bestMatchLength = match[0].length; - } - } - if (bestMatchLength < 0) { - return string; - } - return string.substring(0, bestMatchIndex) + '::' + string.substring(bestMatchIndex + bestMatchLength); - }; - - IPv6.prototype.toByteArray = function() { - var bytes, k, len, part, ref; - bytes = []; - ref = this.parts; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - bytes.push(part >> 8); - bytes.push(part & 0xff); - } - return bytes; - }; - - IPv6.prototype.toNormalizedString = function() { - var addr, part, suffix; - addr = ((function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(part.toString(16)); - } - return results; - }).call(this)).join(":"); - suffix = ''; - if (this.zoneId) { - suffix = '%' + this.zoneId; - } - return addr + suffix; - }; - - IPv6.prototype.toFixedLengthString = function() { - var addr, part, suffix; - addr = ((function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(part.toString(16).padStart(4, '0')); - } - return results; - }).call(this)).join(":"); - suffix = ''; - if (this.zoneId) { - suffix = '%' + this.zoneId; - } - return addr + suffix; - }; - - IPv6.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === void 0) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== 'ipv6') { - throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one"); - } - return matchCIDR(this.parts, other.parts, 16, cidrRange); - }; - - IPv6.prototype.SpecialRanges = { - unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128], - linkLocal: [new IPv6([0xfe80, 0, 0, 0, 0, 0, 0, 0]), 10], - multicast: [new IPv6([0xff00, 0, 0, 0, 0, 0, 0, 0]), 8], - loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128], - uniqueLocal: [new IPv6([0xfc00, 0, 0, 0, 0, 0, 0, 0]), 7], - ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 0xffff, 0, 0]), 96], - rfc6145: [new IPv6([0, 0, 0, 0, 0xffff, 0, 0, 0]), 96], - rfc6052: [new IPv6([0x64, 0xff9b, 0, 0, 0, 0, 0, 0]), 96], - '6to4': [new IPv6([0x2002, 0, 0, 0, 0, 0, 0, 0]), 16], - teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32], - reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]] - }; - - IPv6.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - IPv6.prototype.isIPv4MappedAddress = function() { - return this.range() === 'ipv4Mapped'; - }; - - IPv6.prototype.toIPv4Address = function() { - var high, low, ref; - if (!this.isIPv4MappedAddress()) { - throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4"); - } - ref = this.parts.slice(-2), high = ref[0], low = ref[1]; - return new ipaddr.IPv4([high >> 8, high & 0xff, low >> 8, low & 0xff]); - }; - - IPv6.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, part, stop, zeros, zerotable; - zerotable = { - 0: 16, - 32768: 15, - 49152: 14, - 57344: 13, - 61440: 12, - 63488: 11, - 64512: 10, - 65024: 9, - 65280: 8, - 65408: 7, - 65472: 6, - 65504: 5, - 65520: 4, - 65528: 3, - 65532: 2, - 65534: 1, - 65535: 0 - }; - cidr = 0; - stop = false; - for (i = k = 7; k >= 0; i = k += -1) { - part = this.parts[i]; - if (part in zerotable) { - zeros = zerotable[part]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 16) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 128 - cidr; - }; - - return IPv6; - - })(); - - ipv6Part = "(?:[0-9a-f]+::?)+"; - - zoneIndex = "%[0-9a-z]{1,}"; - - ipv6Regexes = { - zoneIndex: new RegExp(zoneIndex, 'i'), - "native": new RegExp("^(::)?(" + ipv6Part + ")?([0-9a-f]+)?(::)?(" + zoneIndex + ")?$", 'i'), - transitional: new RegExp(("^((?:" + ipv6Part + ")|(?:::)(?:" + ipv6Part + ")?)") + (ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part) + ("(" + zoneIndex + ")?$"), 'i') - }; - - expandIPv6 = function(string, parts) { - var colonCount, lastColon, part, replacement, replacementCount, zoneId; - if (string.indexOf('::') !== string.lastIndexOf('::')) { - return null; - } - zoneId = (string.match(ipv6Regexes['zoneIndex']) || [])[0]; - if (zoneId) { - zoneId = zoneId.substring(1); - string = string.replace(/%.+$/, ''); - } - colonCount = 0; - lastColon = -1; - while ((lastColon = string.indexOf(':', lastColon + 1)) >= 0) { - colonCount++; - } - if (string.substr(0, 2) === '::') { - colonCount--; - } - if (string.substr(-2, 2) === '::') { - colonCount--; - } - if (colonCount > parts) { - return null; - } - replacementCount = parts - colonCount; - replacement = ':'; - while (replacementCount--) { - replacement += '0:'; - } - string = string.replace('::', replacement); - if (string[0] === ':') { - string = string.slice(1); - } - if (string[string.length - 1] === ':') { - string = string.slice(0, -1); - } - parts = (function() { - var k, len, ref, results; - ref = string.split(":"); - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(parseInt(part, 16)); - } - return results; - })(); - return { - parts: parts, - zoneId: zoneId - }; - }; - - ipaddr.IPv6.parser = function(string) { - var addr, k, len, match, octet, octets, zoneId; - if (ipv6Regexes['native'].test(string)) { - return expandIPv6(string, 8); - } else if (match = string.match(ipv6Regexes['transitional'])) { - zoneId = match[6] || ''; - addr = expandIPv6(match[1].slice(0, -1) + zoneId, 6); - if (addr.parts) { - octets = [parseInt(match[2]), parseInt(match[3]), parseInt(match[4]), parseInt(match[5])]; - for (k = 0, len = octets.length; k < len; k++) { - octet = octets[k]; - if (!((0 <= octet && octet <= 255))) { - return null; - } - } - addr.parts.push(octets[0] << 8 | octets[1]); - addr.parts.push(octets[2] << 8 | octets[3]); - return { - parts: addr.parts, - zoneId: addr.zoneId - }; - } - } - return null; - }; - - ipaddr.IPv4.isIPv4 = ipaddr.IPv6.isIPv6 = function(string) { - return this.parser(string) !== null; - }; - - ipaddr.IPv4.isValid = function(string) { - var e; - try { - new this(this.parser(string)); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - - ipaddr.IPv4.isValidFourPartDecimal = function(string) { - if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) { - return true; - } else { - return false; - } - }; - - ipaddr.IPv6.isValid = function(string) { - var addr, e; - if (typeof string === "string" && string.indexOf(":") === -1) { - return false; - } - try { - addr = this.parser(string); - new this(addr.parts, addr.zoneId); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - - ipaddr.IPv4.parse = function(string) { - var parts; - parts = this.parser(string); - if (parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(parts); - }; - - ipaddr.IPv6.parse = function(string) { - var addr; - addr = this.parser(string); - if (addr.parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(addr.parts, addr.zoneId); - }; - - ipaddr.IPv4.parseCIDR = function(string) { - var maskLength, match, parsed; - if (match = string.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 32) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function() { - return this.join('/'); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range"); - }; - - ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) { - var filledOctetCount, j, octets; - prefix = parseInt(prefix); - if (prefix < 0 || prefix > 32) { - throw new Error('ipaddr: invalid IPv4 prefix length'); - } - octets = [0, 0, 0, 0]; - j = 0; - filledOctetCount = Math.floor(prefix / 8); - while (j < filledOctetCount) { - octets[j] = 255; - j++; - } - if (filledOctetCount < 4) { - octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8); - } - return new this(octets); - }; - - ipaddr.IPv4.broadcastAddressFromCIDR = function(string) { - var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); - i++; - } - return new this(octets); - } catch (error1) { - error = error1; - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } - }; - - ipaddr.IPv4.networkAddressFromCIDR = function(string) { - var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); - i++; - } - return new this(octets); - } catch (error1) { - error = error1; - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } - }; - - ipaddr.IPv6.parseCIDR = function(string) { - var maskLength, match, parsed; - if (match = string.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 128) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function() { - return this.join('/'); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range"); - }; - - ipaddr.isValid = function(string) { - return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string); - }; - - ipaddr.parse = function(string) { - if (ipaddr.IPv6.isValid(string)) { - return ipaddr.IPv6.parse(string); - } else if (ipaddr.IPv4.isValid(string)) { - return ipaddr.IPv4.parse(string); - } else { - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format"); - } - }; - - ipaddr.parseCIDR = function(string) { - var e; - try { - return ipaddr.IPv6.parseCIDR(string); - } catch (error1) { - e = error1; - try { - return ipaddr.IPv4.parseCIDR(string); - } catch (error1) { - e = error1; - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format"); - } - } - }; - - ipaddr.fromByteArray = function(bytes) { - var length; - length = bytes.length; - if (length === 4) { - return new ipaddr.IPv4(bytes); - } else if (length === 16) { - return new ipaddr.IPv6(bytes); - } else { - throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address"); - } - }; - - ipaddr.process = function(string) { - var addr; - addr = this.parse(string); - if (addr.kind() === 'ipv6' && addr.isIPv4MappedAddress()) { - return addr.toIPv4Address(); - } else { - return addr; - } - }; - -}).call(this); diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js.d.ts b/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js.d.ts deleted file mode 100644 index 52174b6b..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -declare module "ipaddr.js" { - type IPv4Range = 'unicast' | 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved'; - type IPv6Range = 'unicast' | 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'reserved'; - - interface RangeList { - [name: string]: [T, number] | [T, number][]; - } - - // Common methods/properties for IPv4 and IPv6 classes. - class IP { - prefixLengthFromSubnetMask(): number | null; - toByteArray(): number[]; - toNormalizedString(): string; - toString(): string; - } - - namespace Address { - export function isValid(addr: string): boolean; - export function fromByteArray(bytes: number[]): IPv4 | IPv6; - export function parse(addr: string): IPv4 | IPv6; - export function parseCIDR(mask: string): [IPv4 | IPv6, number]; - export function process(addr: string): IPv4 | IPv6; - export function subnetMatch(addr: IPv4, rangeList: RangeList, defaultName?: string): string; - export function subnetMatch(addr: IPv6, rangeList: RangeList, defaultName?: string): string; - - export class IPv4 extends IP { - static broadcastAddressFromCIDR(addr: string): IPv4; - static isIPv4(addr: string): boolean; - static isValidFourPartDecimal(addr: string): boolean; - static isValid(addr: string): boolean; - static networkAddressFromCIDR(addr: string): IPv4; - static parse(addr: string): IPv4; - static parseCIDR(addr: string): [IPv4, number]; - static subnetMaskFromPrefixLength(prefix: number): IPv4; - constructor(octets: number[]); - octets: number[] - - kind(): 'ipv4'; - match(addr: IPv4, bits: number): boolean; - match(mask: [IPv4, number]): boolean; - range(): IPv4Range; - subnetMatch(rangeList: RangeList, defaultName?: string): string; - toIPv4MappedAddress(): IPv6; - } - - export class IPv6 extends IP { - static broadcastAddressFromCIDR(addr: string): IPv6; - static isIPv6(addr: string): boolean; - static isValid(addr: string): boolean; - static parse(addr: string): IPv6; - static parseCIDR(addr: string): [IPv6, number]; - static subnetMaskFromPrefixLength(prefix: number): IPv6; - constructor(parts: number[]); - parts: number[] - zoneId?: string - - isIPv4MappedAddress(): boolean; - kind(): 'ipv6'; - match(addr: IPv6, bits: number): boolean; - match(mask: [IPv6, number]): boolean; - range(): IPv6Range; - subnetMatch(rangeList: RangeList, defaultName?: string): string; - toIPv4Address(): IPv4; - } - } - - export = Address; -} diff --git a/node_modules/proxy-addr/node_modules/ipaddr.js/package.json b/node_modules/proxy-addr/node_modules/ipaddr.js/package.json deleted file mode 100644 index f4d35475..00000000 --- a/node_modules/proxy-addr/node_modules/ipaddr.js/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "ipaddr.js", - "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.", - "version": "1.9.1", - "author": "whitequark ", - "directories": { - "lib": "./lib" - }, - "dependencies": {}, - "devDependencies": { - "coffee-script": "~1.12.6", - "nodeunit": "^0.11.3", - "uglify-js": "~3.0.19" - }, - "scripts": { - "test": "cake build test" - }, - "files": [ - "lib/", - "LICENSE", - "ipaddr.min.js" - ], - "keywords": [ - "ip", - "ipv4", - "ipv6" - ], - "repository": "git://github.com/whitequark/ipaddr.js", - "main": "./lib/ipaddr.js", - "engines": { - "node": ">= 0.10" - }, - "license": "MIT", - "types": "./lib/ipaddr.js.d.ts" -} diff --git a/node_modules/punycode/README.md b/node_modules/punycode/README.md index ee2f9d63..f611016b 100644 --- a/node_modules/punycode/README.md +++ b/node_modules/punycode/README.md @@ -1,4 +1,4 @@ -# Punycode.js [![Build status](https://travis-ci.org/bestiejs/punycode.js.svg?branch=master)](https://travis-ci.org/bestiejs/punycode.js) [![Code coverage status](http://img.shields.io/codecov/c/github/bestiejs/punycode.js.svg)](https://codecov.io/gh/bestiejs/punycode.js) [![Dependency status](https://gemnasium.com/bestiejs/punycode.js.svg)](https://gemnasium.com/bestiejs/punycode.js) +# Punycode.js [![punycode on npm](https://img.shields.io/npm/v/punycode)](https://www.npmjs.com/package/punycode) [![](https://data.jsdelivr.com/v1/package/npm/punycode/badge)](https://www.jsdelivr.com/package/npm/punycode) Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891). @@ -12,7 +12,7 @@ This JavaScript library is the result of comparing, optimizing and documenting d This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated). -The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see [v1.4.1](https://github.com/bestiejs/punycode.js/releases/tag/v1.4.1). +This project provides a CommonJS module that uses ES2015+ features and JavaScript module, which work in modern Node.js versions and browsers. For the old Punycode.js version that offers the same functionality in a UMD build with support for older pre-ES2015 runtimes, including Rhino, Ringo, and Narwhal, see [v1.4.1](https://github.com/mathiasbynens/punycode.js/releases/tag/v1.4.1). ## Installation @@ -24,8 +24,12 @@ npm install punycode --save In [Node.js](https://nodejs.org/): +> ⚠️ Note that userland modules don't hide core modules. +> For example, `require('punycode')` still imports the deprecated core module even if you executed `npm install punycode`. +> Use `require('punycode/')` to import userland modules rather than core modules. + ```js -const punycode = require('punycode'); +const punycode = require('punycode/'); ``` ## API @@ -111,6 +115,28 @@ punycode.ucs2.encode([0x1D306]); A string representing the current Punycode.js version number. +## For maintainers + +### How to publish a new release + +1. On the `main` branch, bump the version number in `package.json`: + + ```sh + npm version patch -m 'Release v%s' + ``` + + Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). + + Note that this produces a Git commit + tag. + +1. Push the release commit and tag: + + ```sh + git push && git push --tags + ``` + + Our CI then automatically publishes the new release to npm, under both the [`punycode`](https://www.npmjs.com/package/punycode) and [`punycode.js`](https://www.npmjs.com/package/punycode.js) names. + ## Author | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | diff --git a/node_modules/punycode/package.json b/node_modules/punycode/package.json index 9202ccf8..b8b76fc7 100644 --- a/node_modules/punycode/package.json +++ b/node_modules/punycode/package.json @@ -1,6 +1,6 @@ { "name": "punycode", - "version": "2.1.1", + "version": "2.3.1", "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.", "homepage": "https://mths.be/punycode", "main": "punycode.js", @@ -31,9 +31,9 @@ ], "repository": { "type": "git", - "url": "https://github.com/bestiejs/punycode.js.git" + "url": "https://github.com/mathiasbynens/punycode.js.git" }, - "bugs": "https://github.com/bestiejs/punycode.js/issues", + "bugs": "https://github.com/mathiasbynens/punycode.js/issues", "files": [ "LICENSE-MIT.txt", "punycode.js", @@ -41,12 +41,12 @@ ], "scripts": { "test": "mocha tests", - "prepublish": "node scripts/prepublish.js" + "build": "node scripts/prepublish.js" }, "devDependencies": { - "codecov": "^1.0.1", - "istanbul": "^0.4.1", - "mocha": "^2.5.3" + "codecov": "^3.8.3", + "nyc": "^15.1.0", + "mocha": "^10.2.0" }, "jspm": { "map": { diff --git a/node_modules/punycode/punycode.es6.js b/node_modules/punycode/punycode.es6.js index 4610bc9e..dadece25 100644 --- a/node_modules/punycode/punycode.es6.js +++ b/node_modules/punycode/punycode.es6.js @@ -15,7 +15,7 @@ const delimiter = '-'; // '\x2D' /** Regular expressions */ const regexPunycode = /^xn--/; -const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars +const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators /** Error messages */ @@ -50,11 +50,11 @@ function error(type) { * item. * @returns {Array} A new array of values returned by the callback function. */ -function map(array, fn) { +function map(array, callback) { const result = []; let length = array.length; while (length--) { - result[length] = fn(array[length]); + result[length] = callback(array[length]); } return result; } @@ -66,22 +66,22 @@ function map(array, fn) { * @param {String} domain The domain name or email address. * @param {Function} callback The function that gets called for every * character. - * @returns {Array} A new string of characters returned by the callback + * @returns {String} A new string of characters returned by the callback * function. */ -function mapDomain(string, fn) { - const parts = string.split('@'); +function mapDomain(domain, callback) { + const parts = domain.split('@'); let result = ''; if (parts.length > 1) { // In email addresses, only the domain name should be punycoded. Leave // the local part (i.e. everything up to `@`) intact. result = parts[0] + '@'; - string = parts[1]; + domain = parts[1]; } // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - const labels = string.split('.'); - const encoded = map(labels, fn).join('.'); + domain = domain.replace(regexSeparators, '\x2E'); + const labels = domain.split('.'); + const encoded = map(labels, callback).join('.'); return result + encoded; } @@ -130,7 +130,7 @@ function ucs2decode(string) { * @param {Array} codePoints The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ -const ucs2encode = array => String.fromCodePoint(...array); +const ucs2encode = codePoints => String.fromCodePoint(...codePoints); /** * Converts a basic code point into a digit/integer. @@ -142,13 +142,13 @@ const ucs2encode = array => String.fromCodePoint(...array); * the code point does not represent a value. */ const basicToDigit = function(codePoint) { - if (codePoint - 0x30 < 0x0A) { - return codePoint - 0x16; + if (codePoint >= 0x30 && codePoint < 0x3A) { + return 26 + (codePoint - 0x30); } - if (codePoint - 0x41 < 0x1A) { + if (codePoint >= 0x41 && codePoint < 0x5B) { return codePoint - 0x41; } - if (codePoint - 0x61 < 0x1A) { + if (codePoint >= 0x61 && codePoint < 0x7B) { return codePoint - 0x61; } return base; @@ -228,7 +228,7 @@ const decode = function(input) { // which gets added to `i`. The overflow checking is easier // if we increase `i` as we go, then subtract off its starting // value at the end to obtain `delta`. - let oldi = i; + const oldi = i; for (let w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { @@ -237,7 +237,10 @@ const decode = function(input) { const digit = basicToDigit(input.charCodeAt(index++)); - if (digit >= base || digit > floor((maxInt - i) / w)) { + if (digit >= base) { + error('invalid-input'); + } + if (digit > floor((maxInt - i) / w)) { error('overflow'); } @@ -291,7 +294,7 @@ const encode = function(input) { input = ucs2decode(input); // Cache the length. - let inputLength = input.length; + const inputLength = input.length; // Initialize the state. let n = initialN; @@ -305,7 +308,7 @@ const encode = function(input) { } } - let basicLength = output.length; + const basicLength = output.length; let handledCPCount = basicLength; // `handledCPCount` is the number of code points that have been handled; @@ -342,7 +345,7 @@ const encode = function(input) { if (currentValue < n && ++delta > maxInt) { error('overflow'); } - if (currentValue == n) { + if (currentValue === n) { // Represent delta as a generalized variable-length integer. let q = delta; for (let k = base; /* no condition */; k += base) { @@ -359,7 +362,7 @@ const encode = function(input) { } output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); delta = 0; ++handledCPCount; } @@ -419,7 +422,7 @@ const punycode = { * @memberOf punycode * @type String */ - 'version': '2.1.0', + 'version': '2.3.1', /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. diff --git a/node_modules/punycode/punycode.js b/node_modules/punycode/punycode.js index ea61fd0d..a1ef2519 100644 --- a/node_modules/punycode/punycode.js +++ b/node_modules/punycode/punycode.js @@ -15,7 +15,7 @@ const delimiter = '-'; // '\x2D' /** Regular expressions */ const regexPunycode = /^xn--/; -const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars +const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators /** Error messages */ @@ -50,11 +50,11 @@ function error(type) { * item. * @returns {Array} A new array of values returned by the callback function. */ -function map(array, fn) { +function map(array, callback) { const result = []; let length = array.length; while (length--) { - result[length] = fn(array[length]); + result[length] = callback(array[length]); } return result; } @@ -66,22 +66,22 @@ function map(array, fn) { * @param {String} domain The domain name or email address. * @param {Function} callback The function that gets called for every * character. - * @returns {Array} A new string of characters returned by the callback + * @returns {String} A new string of characters returned by the callback * function. */ -function mapDomain(string, fn) { - const parts = string.split('@'); +function mapDomain(domain, callback) { + const parts = domain.split('@'); let result = ''; if (parts.length > 1) { // In email addresses, only the domain name should be punycoded. Leave // the local part (i.e. everything up to `@`) intact. result = parts[0] + '@'; - string = parts[1]; + domain = parts[1]; } // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - const labels = string.split('.'); - const encoded = map(labels, fn).join('.'); + domain = domain.replace(regexSeparators, '\x2E'); + const labels = domain.split('.'); + const encoded = map(labels, callback).join('.'); return result + encoded; } @@ -130,7 +130,7 @@ function ucs2decode(string) { * @param {Array} codePoints The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ -const ucs2encode = array => String.fromCodePoint(...array); +const ucs2encode = codePoints => String.fromCodePoint(...codePoints); /** * Converts a basic code point into a digit/integer. @@ -142,13 +142,13 @@ const ucs2encode = array => String.fromCodePoint(...array); * the code point does not represent a value. */ const basicToDigit = function(codePoint) { - if (codePoint - 0x30 < 0x0A) { - return codePoint - 0x16; + if (codePoint >= 0x30 && codePoint < 0x3A) { + return 26 + (codePoint - 0x30); } - if (codePoint - 0x41 < 0x1A) { + if (codePoint >= 0x41 && codePoint < 0x5B) { return codePoint - 0x41; } - if (codePoint - 0x61 < 0x1A) { + if (codePoint >= 0x61 && codePoint < 0x7B) { return codePoint - 0x61; } return base; @@ -228,7 +228,7 @@ const decode = function(input) { // which gets added to `i`. The overflow checking is easier // if we increase `i` as we go, then subtract off its starting // value at the end to obtain `delta`. - let oldi = i; + const oldi = i; for (let w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { @@ -237,7 +237,10 @@ const decode = function(input) { const digit = basicToDigit(input.charCodeAt(index++)); - if (digit >= base || digit > floor((maxInt - i) / w)) { + if (digit >= base) { + error('invalid-input'); + } + if (digit > floor((maxInt - i) / w)) { error('overflow'); } @@ -291,7 +294,7 @@ const encode = function(input) { input = ucs2decode(input); // Cache the length. - let inputLength = input.length; + const inputLength = input.length; // Initialize the state. let n = initialN; @@ -305,7 +308,7 @@ const encode = function(input) { } } - let basicLength = output.length; + const basicLength = output.length; let handledCPCount = basicLength; // `handledCPCount` is the number of code points that have been handled; @@ -342,7 +345,7 @@ const encode = function(input) { if (currentValue < n && ++delta > maxInt) { error('overflow'); } - if (currentValue == n) { + if (currentValue === n) { // Represent delta as a generalized variable-length integer. let q = delta; for (let k = base; /* no condition */; k += base) { @@ -359,7 +362,7 @@ const encode = function(input) { } output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); delta = 0; ++handledCPCount; } @@ -419,7 +422,7 @@ const punycode = { * @memberOf punycode * @type String */ - 'version': '2.1.0', + 'version': '2.3.1', /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. diff --git a/node_modules/qs/.editorconfig b/node_modules/qs/.editorconfig deleted file mode 100644 index 6adecfbf..00000000 --- a/node_modules/qs/.editorconfig +++ /dev/null @@ -1,46 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true -max_line_length = 160 -quote_type = single - -[test/*] -max_line_length = off - -[LICENSE.md] -indent_size = off - -[*.md] -max_line_length = off - -[*.json] -max_line_length = off - -[Makefile] -max_line_length = off - -[CHANGELOG.md] -indent_style = space -indent_size = 2 - -[LICENSE] -indent_size = 2 -max_line_length = off - -[coverage/**/*] -indent_size = off -indent_style = off -indent = off -max_line_length = off - -[.nycrc] -indent_style = tab - -[tea.yaml] -indent_size = 2 diff --git a/node_modules/qs/.eslintrc b/node_modules/qs/.eslintrc deleted file mode 100644 index b6927611..00000000 --- a/node_modules/qs/.eslintrc +++ /dev/null @@ -1,38 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "ignorePatterns": [ - "dist/", - ], - - "rules": { - "complexity": 0, - "consistent-return": 1, - "func-name-matching": 0, - "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], - "indent": [2, 4], - "max-lines-per-function": [2, { "max": 150 }], - "max-params": [2, 18], - "max-statements": [2, 100], - "multiline-comment-style": 0, - "no-continue": 1, - "no-magic-numbers": 0, - "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], - }, - - "overrides": [ - { - "files": "test/**", - "rules": { - "function-paren-newline": 0, - "max-lines-per-function": 0, - "max-statements": 0, - "no-buffer-constructor": 0, - "no-extend-native": 0, - "no-throw-literal": 0, - }, - }, - ], -} diff --git a/node_modules/qs/.github/FUNDING.yml b/node_modules/qs/.github/FUNDING.yml deleted file mode 100644 index 0355f4f5..00000000 --- a/node_modules/qs/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/qs -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/node_modules/qs/.nycrc b/node_modules/qs/.nycrc deleted file mode 100644 index 1d57cabe..00000000 --- a/node_modules/qs/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "dist" - ] -} diff --git a/node_modules/qs/CHANGELOG.md b/node_modules/qs/CHANGELOG.md deleted file mode 100644 index 10d7e1b1..00000000 --- a/node_modules/qs/CHANGELOG.md +++ /dev/null @@ -1,588 +0,0 @@ -## **6.12.1** -- [Fix] `parse`: Disable `decodeDotInKeys` by default to restore previous behavior (#501) -- [Performance] `utils`: Optimize performance under large data volumes, reduce memory usage, and speed up processing (#502) -- [Refactor] `utils`: use `+=` -- [Tests] increase coverage - -## **6.12.0** - -- [New] `parse`/`stringify`: add `decodeDotInKeys`/`encodeDotKeys` options (#488) -- [New] `parse`: add `duplicates` option -- [New] `parse`/`stringify`: add `allowEmptyArrays` option to allow [] in object values (#487) -- [Refactor] `parse`/`stringify`: move allowDots config logic to its own variable -- [Refactor] `stringify`: move option-handling code into `normalizeStringifyOptions` -- [readme] update readme, add logos (#484) -- [readme] `stringify`: clarify default `arrayFormat` behavior -- [readme] fix line wrapping -- [readme] remove dead badges -- [Deps] update `side-channel` -- [meta] make the dist build 50% smaller -- [meta] add `sideEffects` flag -- [meta] run build in prepack, not prepublish -- [Tests] `parse`: remove useless tests; add coverage -- [Tests] `stringify`: increase coverage -- [Tests] use `mock-property` -- [Tests] `stringify`: improve coverage -- [Dev Deps] update `@ljharb/eslint-config `, `aud`, `has-override-mistake`, `has-property-descriptors`, `mock-property`, `npmignore`, `object-inspect`, `tape` -- [Dev Deps] pin `glob`, since v10.3.8+ requires a broken `jackspeak` -- [Dev Deps] pin `jackspeak` since 2.1.2+ depends on npm aliases, which kill the install process in npm < 6 - -## **6.11.2** -- [Fix] `parse`: Fix parsing when the global Object prototype is frozen (#473) -- [Tests] add passing test cases with empty keys (#473) - -## **6.11.1** -- [Fix] `stringify`: encode comma values more consistently (#463) -- [readme] add usage of `filter` option for injecting custom serialization, i.e. of custom types (#447) -- [meta] remove extraneous code backticks (#457) -- [meta] fix changelog markdown -- [actions] update checkout action -- [actions] restrict action permissions -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` - -## **6.11.0** -- [New] [Fix] `stringify`: revert 0e903c0; add `commaRoundTrip` option (#442) -- [readme] fix version badge - -## **6.10.5** -- [Fix] `stringify`: with `arrayFormat: comma`, properly include an explicit `[]` on a single-item array (#434) - -## **6.10.4** -- [Fix] `stringify`: with `arrayFormat: comma`, include an explicit `[]` on a single-item array (#441) -- [meta] use `npmignore` to autogenerate an npmignore file -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbol`, `object-inspect`, `tape` - -## **6.10.3** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [actions] reuse common workflows -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `tape` - -## **6.10.2** -- [Fix] `stringify`: actually fix cyclic references (#426) -- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] add note and links for coercing primitive values (#408) -- [actions] update codecov uploader -- [actions] update workflows -- [Tests] clean up stringify tests slightly -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `safe-publish-latest`, `tape` - -## **6.10.1** -- [Fix] `stringify`: avoid exception on repeated object values (#402) - -## **6.10.0** -- [New] `stringify`: throw on cycles, instead of an infinite loop (#395, #394, #393) -- [New] `parse`: add `allowSparse` option for collapsing arrays with missing indices (#312) -- [meta] fix README.md (#399) -- [meta] only run `npm run dist` in publish, not install -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbols`, `tape` -- [Tests] fix tests on node v0.6 -- [Tests] use `ljharb/actions/node/install` instead of `ljharb/actions/node/run` -- [Tests] Revert "[meta] ignore eclint transitive audit warning" - -## **6.9.7** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] add note and links for coercing primitive values (#408) -- [Tests] clean up stringify tests slightly -- [meta] fix README.md (#399) -- Revert "[meta] ignore eclint transitive audit warning" -- [actions] backport actions from main -- [Dev Deps] backport updates from main - -## **6.9.6** -- [Fix] restore `dist` dir; mistakenly removed in d4f6c32 - -## **6.9.5** -- [Fix] `stringify`: do not encode parens for RFC1738 -- [Fix] `stringify`: fix arrayFormat comma with empty array/objects (#350) -- [Refactor] `format`: remove `util.assign` call -- [meta] add "Allow Edits" workflow; update rebase workflow -- [actions] switch Automatic Rebase workflow to `pull_request_target` event -- [Tests] `stringify`: add tests for #378 -- [Tests] migrate tests to Github Actions -- [Tests] run `nyc` on all tests; use `tape` runner -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `mkdirp`, `object-inspect`, `tape`; add `aud` - -## **6.9.4** -- [Fix] `stringify`: when `arrayFormat` is `comma`, respect `serializeDate` (#364) -- [Refactor] `stringify`: reduce branching (part of #350) -- [Refactor] move `maybeMap` to `utils` -- [Dev Deps] update `browserify`, `tape` - -## **6.9.3** -- [Fix] proper comma parsing of URL-encoded commas (#361) -- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) - -## **6.9.2** -- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) -- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) -- [meta] ignore eclint transitive audit warning -- [meta] fix indentation in package.json -- [meta] add tidelift marketing copy -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite` -- [actions] add automatic rebasing / merge commit blocking - -## **6.9.1** -- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) -- [Fix] `parse`: with comma true, do not split non-string values (#334) -- [meta] add `funding` field -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` -- [Tests] use shared travis-ci config - -## **6.9.0** -- [New] `parse`/`stringify`: Pass extra key/value argument to `decoder` (#333) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd` -- [Tests] `parse`: add passing `arrayFormat` tests -- [Tests] add `posttest` using `npx aud` to run `npm audit` without a lockfile -- [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16` -- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray - -## **6.8.3** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Tests] clean up stringify tests slightly -- [Docs] add note and links for coercing primitive values (#408) -- [meta] fix README.md (#399) -- [actions] backport actions from main -- [Dev Deps] backport updates from main -- [Refactor] `stringify`: reduce branching -- [meta] do not publish workflow files - -## **6.8.2** -- [Fix] proper comma parsing of URL-encoded commas (#361) -- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) - -## **6.8.1** -- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) -- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) -- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) -- [fix] `parse`: with comma true, do not split non-string values (#334) -- [meta] add tidelift marketing copy -- [meta] add `funding` field -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect` -- [Tests] `parse`: add passing `arrayFormat` tests -- [Tests] use shared travis-ci configs -- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray -- [actions] add automatic rebasing / merge commit blocking - -## **6.8.0** -- [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326) -- [New] [Fix] stringify symbols and bigints -- [Fix] ensure node 0.12 can stringify Symbols -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Refactor] `formats`: tiny bit of cleanup. -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `safe-publish-latest`, `iconv-lite`, `tape` -- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended (#326) -- [Tests] use `eclint` instead of `editorconfig-tools` -- [docs] readme: add security note -- [meta] add github sponsorship -- [meta] add FUNDING.yml -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause - -## **6.7.3** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] add note and links for coercing primitive values (#408) -- [meta] fix README.md (#399) -- [meta] do not publish workflow files -- [actions] backport actions from main -- [Dev Deps] backport updates from main -- [Tests] use `nyc` for coverage -- [Tests] clean up stringify tests slightly - -## **6.7.2** -- [Fix] proper comma parsing of URL-encoded commas (#361) -- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) - -## **6.7.1** -- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) -- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) -- [fix] `parse`: with comma true, do not split non-string values (#334) -- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Refactor] `formats`: tiny bit of cleanup. -- readme: add security note -- [meta] add tidelift marketing copy -- [meta] add `funding` field -- [meta] add FUNDING.yml -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify` -- [Tests] `parse`: add passing `arrayFormat` tests -- [Tests] use shared travis-ci configs -- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray -- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended -- [Tests] use `eclint` instead of `editorconfig-tools` -- [actions] add automatic rebasing / merge commit blocking - -## **6.7.0** -- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219) -- [Fix] correctly parse nested arrays (#212) -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source, also with an array source -- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` -- [Refactor] `utils`: `isBuffer`: small tweak; add tests -- [Refactor] use cached `Array.isArray` -- [Refactor] `parse`/`stringify`: make a function to normalize the options -- [Refactor] `utils`: reduce observable [[Get]]s -- [Refactor] `stringify`/`utils`: cache `Array.isArray` -- [Tests] always use `String(x)` over `x.toString()` -- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10 -- [Tests] temporarily allow coverage to fail - -## **6.6.1** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Fix] `utils.merge`: avoid a crash with a null target and an array source -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source -- [Fix] correctly parse nested arrays -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` -- [Refactor] `formats`: tiny bit of cleanup. -- [Refactor] `utils`: `isBuffer`: small tweak; add tests -- [Refactor]: `stringify`/`utils`: cache `Array.isArray` -- [Refactor] `utils`: reduce observable [[Get]]s -- [Refactor] use cached `Array.isArray` -- [Refactor] `parse`/`stringify`: make a function to normalize the options -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] Clarify the need for "arrayLimit" option -- [meta] fix README.md (#399) -- [meta] do not publish workflow files -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause -- [meta] add FUNDING.yml -- [meta] Fixes typo in CHANGELOG.md -- [actions] backport actions from main -- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10 -- [Tests] always use `String(x)` over `x.toString()` -- [Dev Deps] backport from main - -## **6.6.0** -- [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268) -- [New] move two-value combine to a `utils` function (#189) -- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) -- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` (#260) -- [Fix] `stringify`: do not crash in an obscure combo of `interpretNumericEntities`, a bad custom `decoder`, & `iso-8859-1` -- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided -- [refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) -- [Refactor] `parse`: only need to reassign the var once -- [Refactor] `parse`/`stringify`: clean up `charset` options checking; fix defaults -- [Refactor] add missing defaults -- [Refactor] `parse`: one less `concat` call -- [Refactor] `utils`: `compactQueue`: make it explicitly side-effecting -- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape` -- [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS - -## **6.5.3** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source -- [Fix] correctly parse nested arrays -- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) -- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided -- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Fix] `utils.merge`: avoid a crash with a null target and an array source -- [Refactor] `utils`: reduce observable [[Get]]s -- [Refactor] use cached `Array.isArray` -- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) -- [Refactor] `parse`: only need to reassign the var once -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] Clean up license text so it’s properly detected as BSD-3-Clause -- [Docs] Clarify the need for "arrayLimit" option -- [meta] fix README.md (#399) -- [meta] add FUNDING.yml -- [actions] backport actions from main -- [Tests] always use `String(x)` over `x.toString()` -- [Tests] remove nonexistent tape option -- [Dev Deps] backport from main - -## **6.5.2** -- [Fix] use `safer-buffer` instead of `Buffer` constructor -- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230) -- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify` - -## **6.5.1** -- [Fix] Fix parsing & compacting very deep objects (#224) -- [Refactor] name utils functions -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` -- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node -- [Tests] Use precise dist for Node.js 0.6 runtime (#225) -- [Tests] make 0.6 required, now that it’s passing -- [Tests] on `node` `v8.2`; fix npm on node 0.6 - -## **6.5.0** -- [New] add `utils.assign` -- [New] pass default encoder/decoder to custom encoder/decoder functions (#206) -- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213) -- [Fix] Handle stringifying empty objects with addQueryPrefix (#217) -- [Fix] do not mutate `options` argument (#207) -- [Refactor] `parse`: cache index to reuse in else statement (#182) -- [Docs] add various badges to readme (#208) -- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape` -- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4 -- [Tests] add `editorconfig-tools` - -## **6.4.1** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Fix] use `safer-buffer` instead of `Buffer` constructor -- [Fix] `utils.merge`: avoid a crash with a null target and an array source -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source -- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) -- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided -- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [Refactor] use cached `Array.isArray` -- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) -- [readme] remove travis badge; add github actions/codecov badges; update URLs -- [Docs] Clarify the need for "arrayLimit" option -- [meta] fix README.md (#399) -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause -- [meta] add FUNDING.yml -- [actions] backport actions from main -- [Tests] remove nonexistent tape option -- [Dev Deps] backport from main - -## **6.4.0** -- [New] `qs.stringify`: add `encodeValuesOnly` option -- [Fix] follow `allowPrototypes` option during merge (#201, #201) -- [Fix] support keys starting with brackets (#202, #200) -- [Fix] chmod a-x -- [Dev Deps] update `eslint` -- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds -- [eslint] reduce warnings - -## **6.3.3** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] fix for an impossible situation: when the formatter is called with a non-string value -- [Fix] `utils.merge`: avoid a crash with a null target and an array source -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source -- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) -- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided -- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [Refactor] use cached `Array.isArray` -- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) -- [Docs] Clarify the need for "arrayLimit" option -- [meta] fix README.md (#399) -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause -- [meta] add FUNDING.yml -- [actions] backport actions from main -- [Tests] use `safer-buffer` instead of `Buffer` constructor -- [Tests] remove nonexistent tape option -- [Dev Deps] backport from main - -## **6.3.2** -- [Fix] follow `allowPrototypes` option during merge (#201, #200) -- [Dev Deps] update `eslint` -- [Fix] chmod a-x -- [Fix] support keys starting with brackets (#202, #200) -- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds - -## **6.3.1** -- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape` -- [Tests] on all node minors; improve test matrix -- [Docs] document stringify option `allowDots` (#195) -- [Docs] add empty object and array values example (#195) -- [Docs] Fix minor inconsistency/typo (#192) -- [Docs] document stringify option `sort` (#191) -- [Refactor] `stringify`: throw faster with an invalid encoder -- [Refactor] remove unnecessary escapes (#184) -- Remove contributing.md, since `qs` is no longer part of `hapi` (#183) - -## **6.3.0** -- [New] Add support for RFC 1738 (#174, #173) -- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159) -- [Fix] ensure `utils.merge` handles merging two arrays -- [Refactor] only constructors should be capitalized -- [Refactor] capitalized var names are for constructors only -- [Refactor] avoid using a sparse array -- [Robustness] `formats`: cache `String#replace` -- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest` -- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix -- [Tests] flesh out arrayLimit/arrayFormat tests (#107) -- [Tests] skip Object.create tests when null objects are not available -- [Tests] Turn on eslint for test files (#175) - -## **6.2.4** -- [Fix] `parse`: ignore `__proto__` keys (#428) -- [Fix] `utils.merge`: avoid a crash with a null target and an array source -- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source -- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided -- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` -- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) -- [Refactor] use cached `Array.isArray` -- [Docs] Clarify the need for "arrayLimit" option -- [meta] fix README.md (#399) -- [meta] Clean up license text so it’s properly detected as BSD-3-Clause -- [meta] add FUNDING.yml -- [actions] backport actions from main -- [Tests] use `safer-buffer` instead of `Buffer` constructor -- [Tests] remove nonexistent tape option -- [Dev Deps] backport from main - -## **6.2.3** -- [Fix] follow `allowPrototypes` option during merge (#201, #200) -- [Fix] chmod a-x -- [Fix] support keys starting with brackets (#202, #200) -- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds - -## **6.2.2** -- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties - -## **6.2.1** -- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values -- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call` -- [Tests] remove `parallelshell` since it does not reliably report failures -- [Tests] up to `node` `v6.3`, `v5.12` -- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv` - -## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed) -- [New] pass Buffers to the encoder/decoder directly (#161) -- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160) -- [Fix] fix compacting of nested sparse arrays (#150) - -## **6.1.2** -- [Fix] follow `allowPrototypes` option during merge (#201, #200) -- [Fix] chmod a-x -- [Fix] support keys starting with brackets (#202, #200) -- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds - -## **6.1.1** -- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties - -## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed) -- [New] allowDots option for `stringify` (#151) -- [Fix] "sort" option should work at a depth of 3 or more (#151) -- [Fix] Restore `dist` directory; will be removed in v7 (#148) - -## **6.0.4** -- [Fix] follow `allowPrototypes` option during merge (#201, #200) -- [Fix] chmod a-x -- [Fix] support keys starting with brackets (#202, #200) -- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds - -## **6.0.3** -- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties -- [Fix] Restore `dist` directory; will be removed in v7 (#148) - -## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed) -- Revert ES6 requirement and restore support for node down to v0.8. - -## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed) -- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json - -## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed) -- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4 - -## **5.2.1** -- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values - -## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed) -- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string - -## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed) -- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional -- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify - -## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed) -- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false -- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm - -## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed) -- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional - -## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed) -- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation" - -## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed) -- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties -- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost -- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing -- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object -- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option -- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects. -- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47 -- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986 -- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign -- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute - -## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed) -- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object # is not a function - -## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed) -- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option - -## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed) -- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57 -- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader - -## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed) -- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object - -## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed) -- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError". - -## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed) -- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46 - -## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed) -- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer? -- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45 -- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39 - -## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed) -- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number - -## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed) -- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array -- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x - -## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed) -- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value -- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty -- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver? - -## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed) -- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31 -- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects - -## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed) -- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present -- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays -- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge -- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters? - -## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed) -- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter - -## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed) -- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit? -- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit -- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20 - -## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed) -- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values - -## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed) -- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters -- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block - -## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed) -- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument -- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed - -## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed) -- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted -- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null -- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README - -## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed) -- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index diff --git a/node_modules/qs/LICENSE.md b/node_modules/qs/LICENSE.md deleted file mode 100644 index fecf6b69..00000000 --- a/node_modules/qs/LICENSE.md +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors) -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/qs/README.md b/node_modules/qs/README.md deleted file mode 100644 index 7e40d8ad..00000000 --- a/node_modules/qs/README.md +++ /dev/null @@ -1,697 +0,0 @@ -

- qs -

- -# qs [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -A querystring parsing and stringifying library with some added security. - -Lead Maintainer: [Jordan Harband](https://github.com/ljharb) - -The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring). - -## Usage - -```javascript -var qs = require('qs'); -var assert = require('assert'); - -var obj = qs.parse('a=c'); -assert.deepEqual(obj, { a: 'c' }); - -var str = qs.stringify(obj); -assert.equal(str, 'a=c'); -``` - -### Parsing Objects - -[](#preventEval) -```javascript -qs.parse(string, [options]); -``` - -**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`. -For example, the string `'foo[bar]=baz'` converts to: - -```javascript -assert.deepEqual(qs.parse('foo[bar]=baz'), { - foo: { - bar: 'baz' - } -}); -``` - -When using the `plainObjects` option the parsed value is returned as a null object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like: - -```javascript -var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true }); -assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } }); -``` - -By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. -*WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. -Always be careful with this option. - -```javascript -var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }); -assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } }); -``` - -URI encoded strings work too: - -```javascript -assert.deepEqual(qs.parse('a%5Bb%5D=c'), { - a: { b: 'c' } -}); -``` - -You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`: - -```javascript -assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), { - foo: { - bar: { - baz: 'foobarbaz' - } - } -}); -``` - -By default, when nesting objects **qs** will only parse up to 5 children deep. -This means if you attempt to parse a string like `'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be: - -```javascript -var expected = { - a: { - b: { - c: { - d: { - e: { - f: { - '[g][h][i]': 'j' - } - } - } - } - } - } -}; -var string = 'a[b][c][d][e][f][g][h][i]=j'; -assert.deepEqual(qs.parse(string), expected); -``` - -This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`: - -```javascript -var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 }); -assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } }); -``` - -The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number. - -For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option: - -```javascript -var limited = qs.parse('a=b&c=d', { parameterLimit: 1 }); -assert.deepEqual(limited, { a: 'b' }); -``` - -To bypass the leading question mark, use `ignoreQueryPrefix`: - -```javascript -var prefixed = qs.parse('?a=b&c=d', { ignoreQueryPrefix: true }); -assert.deepEqual(prefixed, { a: 'b', c: 'd' }); -``` - -An optional delimiter can also be passed: - -```javascript -var delimited = qs.parse('a=b;c=d', { delimiter: ';' }); -assert.deepEqual(delimited, { a: 'b', c: 'd' }); -``` - -Delimiters can be a regular expression too: - -```javascript -var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ }); -assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' }); -``` - -Option `allowDots` can be used to enable dot notation: - -```javascript -var withDots = qs.parse('a.b=c', { allowDots: true }); -assert.deepEqual(withDots, { a: { b: 'c' } }); -``` - -Option `decodeDotInKeys` can be used to decode dots in keys -Note: it implies `allowDots`, so `parse` will error if you set `decodeDotInKeys` to `true`, and `allowDots` to `false`. - -```javascript -var withDots = qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { decodeDotInKeys: true }); -assert.deepEqual(withDots, { 'name.obj': { first: 'John', last: 'Doe' }}); -``` - -Option `allowEmptyArrays` can be used to allowing empty array values in object -```javascript -var withEmptyArrays = qs.parse('foo[]&bar=baz', { allowEmptyArrays: true }); -assert.deepEqual(withEmptyArrays, { foo: [], bar: 'baz' }); -``` - -Option `duplicates` can be used to change the behavior when duplicate keys are encountered -```javascript -assert.deepEqual(qs.parse('foo=bar&foo=baz'), { foo: ['bar', 'baz'] }); -assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'combine' }), { foo: ['bar', 'baz'] }); -assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'first' }), { foo: 'bar' }); -assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'last' }), { foo: 'baz' }); -``` - -If you have to deal with legacy browsers or services, there's also support for decoding percent-encoded octets as iso-8859-1: - -```javascript -var oldCharset = qs.parse('a=%A7', { charset: 'iso-8859-1' }); -assert.deepEqual(oldCharset, { a: '§' }); -``` - -Some services add an initial `utf8=✓` value to forms so that old Internet Explorer versions are more likely to submit the form as utf-8. -Additionally, the server can check the value against wrong encodings of the checkmark character and detect that a query string or `application/x-www-form-urlencoded` body was *not* sent as utf-8, eg. if the form had an `accept-charset` parameter or the containing page had a different character set. - -**qs** supports this mechanism via the `charsetSentinel` option. -If specified, the `utf8` parameter will be omitted from the returned object. -It will be used to switch to `iso-8859-1`/`utf-8` mode depending on how the checkmark is encoded. - -**Important**: When you specify both the `charset` option and the `charsetSentinel` option, the `charset` will be overridden when the request contains a `utf8` parameter from which the actual charset can be deduced. -In that sense the `charset` will behave as the default charset rather than the authoritative charset. - -```javascript -var detectedAsUtf8 = qs.parse('utf8=%E2%9C%93&a=%C3%B8', { - charset: 'iso-8859-1', - charsetSentinel: true -}); -assert.deepEqual(detectedAsUtf8, { a: 'ø' }); - -// Browsers encode the checkmark as ✓ when submitting as iso-8859-1: -var detectedAsIso8859_1 = qs.parse('utf8=%26%2310003%3B&a=%F8', { - charset: 'utf-8', - charsetSentinel: true -}); -assert.deepEqual(detectedAsIso8859_1, { a: 'ø' }); -``` - -If you want to decode the `&#...;` syntax to the actual character, you can specify the `interpretNumericEntities` option as well: - -```javascript -var detectedAsIso8859_1 = qs.parse('a=%26%239786%3B', { - charset: 'iso-8859-1', - interpretNumericEntities: true -}); -assert.deepEqual(detectedAsIso8859_1, { a: '☺' }); -``` - -It also works when the charset has been detected in `charsetSentinel` mode. - -### Parsing Arrays - -**qs** can also parse arrays using a similar `[]` notation: - -```javascript -var withArray = qs.parse('a[]=b&a[]=c'); -assert.deepEqual(withArray, { a: ['b', 'c'] }); -``` - -You may specify an index as well: - -```javascript -var withIndexes = qs.parse('a[1]=c&a[0]=b'); -assert.deepEqual(withIndexes, { a: ['b', 'c'] }); -``` - -Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number to create an array. -When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving their order: - -```javascript -var noSparse = qs.parse('a[1]=b&a[15]=c'); -assert.deepEqual(noSparse, { a: ['b', 'c'] }); -``` - -You may also use `allowSparse` option to parse sparse arrays: - -```javascript -var sparseArray = qs.parse('a[1]=2&a[3]=5', { allowSparse: true }); -assert.deepEqual(sparseArray, { a: [, '2', , '5'] }); -``` - -Note that an empty string is also a value, and will be preserved: - -```javascript -var withEmptyString = qs.parse('a[]=&a[]=b'); -assert.deepEqual(withEmptyString, { a: ['', 'b'] }); - -var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c'); -assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] }); -``` - -**qs** will also limit specifying indices in an array to a maximum index of `20`. -Any array members with an index of greater than `20` will instead be converted to an object with the index as the key. -This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array. - -```javascript -var withMaxIndex = qs.parse('a[100]=b'); -assert.deepEqual(withMaxIndex, { a: { '100': 'b' } }); -``` - -This limit can be overridden by passing an `arrayLimit` option: - -```javascript -var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 }); -assert.deepEqual(withArrayLimit, { a: { '1': 'b' } }); -``` - -To disable array parsing entirely, set `parseArrays` to `false`. - -```javascript -var noParsingArrays = qs.parse('a[]=b', { parseArrays: false }); -assert.deepEqual(noParsingArrays, { a: { '0': 'b' } }); -``` - -If you mix notations, **qs** will merge the two items into an object: - -```javascript -var mixedNotation = qs.parse('a[0]=b&a[b]=c'); -assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } }); -``` - -You can also create arrays of objects: - -```javascript -var arraysOfObjects = qs.parse('a[][b]=c'); -assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] }); -``` - -Some people use comma to join array, **qs** can parse it: -```javascript -var arraysOfObjects = qs.parse('a=b,c', { comma: true }) -assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] }) -``` -(_this cannot convert nested objects, such as `a={b:1},{c:d}`_) - -### Parsing primitive/scalar values (numbers, booleans, null, etc) - -By default, all values are parsed as strings. -This behavior will not change and is explained in [issue #91](https://github.com/ljharb/qs/issues/91). - -```javascript -var primitiveValues = qs.parse('a=15&b=true&c=null'); -assert.deepEqual(primitiveValues, { a: '15', b: 'true', c: 'null' }); -``` - -If you wish to auto-convert values which look like numbers, booleans, and other values into their primitive counterparts, you can use the [query-types Express JS middleware](https://github.com/xpepermint/query-types) which will auto-convert all request query parameters. - -### Stringifying - -[](#preventEval) -```javascript -qs.stringify(object, [options]); -``` - -When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect: - -```javascript -assert.equal(qs.stringify({ a: 'b' }), 'a=b'); -assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); -``` - -This encoding can be disabled by setting the `encode` option to `false`: - -```javascript -var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false }); -assert.equal(unencoded, 'a[b]=c'); -``` - -Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`: -```javascript -var encodedValues = qs.stringify( - { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, - { encodeValuesOnly: true } -); -assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h'); -``` - -This encoding can also be replaced by a custom encoding method set as `encoder` option: - -```javascript -var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) { - // Passed in values `a`, `b`, `c` - return // Return encoded string -}}) -``` - -_(Note: the `encoder` option does not apply if `encode` is `false`)_ - -Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values: - -```javascript -var decoded = qs.parse('x=z', { decoder: function (str) { - // Passed in values `x`, `z` - return // Return decoded string -}}) -``` - -You can encode keys and values using different logic by using the type argument provided to the encoder: - -```javascript -var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) { - if (type === 'key') { - return // Encoded key - } else if (type === 'value') { - return // Encoded value - } -}}) -``` - -The type argument is also provided to the decoder: - -```javascript -var decoded = qs.parse('x=z', { decoder: function (str, defaultDecoder, charset, type) { - if (type === 'key') { - return // Decoded key - } else if (type === 'value') { - return // Decoded value - } -}}) -``` - -Examples beyond this point will be shown as though the output is not URI encoded for clarity. -Please note that the return values in these cases *will* be URI encoded during real usage. - -When arrays are stringified, they follow the `arrayFormat` option, which defaults to `indices`: - -```javascript -qs.stringify({ a: ['b', 'c', 'd'] }); -// 'a[0]=b&a[1]=c&a[2]=d' -``` - -You may override this by setting the `indices` option to `false`, or to be more explicit, the `arrayFormat` option to `repeat`: - -```javascript -qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }); -// 'a=b&a=c&a=d' -``` - -You may use the `arrayFormat` option to specify the format of the output array: - -```javascript -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }) -// 'a[0]=b&a[1]=c' -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }) -// 'a[]=b&a[]=c' -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }) -// 'a=b&a=c' -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' }) -// 'a=b,c' -``` - -Note: when using `arrayFormat` set to `'comma'`, you can also pass the `commaRoundTrip` option set to `true` or `false`, to append `[]` on single-item arrays, so that they can round trip through a parse. - -When objects are stringified, by default they use bracket notation: - -```javascript -qs.stringify({ a: { b: { c: 'd', e: 'f' } } }); -// 'a[b][c]=d&a[b][e]=f' -``` - -You may override this to use dot notation by setting the `allowDots` option to `true`: - -```javascript -qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true }); -// 'a.b.c=d&a.b.e=f' -``` - -You may encode the dot notation in the keys of object with option `encodeDotInKeys` by setting it to `true`: -Note: it implies `allowDots`, so `stringify` will error if you set `decodeDotInKeys` to `true`, and `allowDots` to `false`. -Caveat: when `encodeValuesOnly` is `true` as well as `encodeDotInKeys`, only dots in keys and nothing else will be encoded. -```javascript -qs.stringify({ "name.obj": { "first": "John", "last": "Doe" } }, { allowDots: true, encodeDotInKeys: true }) -// 'name%252Eobj.first=John&name%252Eobj.last=Doe' -``` - -You may allow empty array values by setting the `allowEmptyArrays` option to `true`: -```javascript -qs.stringify({ foo: [], bar: 'baz' }, { allowEmptyArrays: true }); -// 'foo[]&bar=baz' -``` - -Empty strings and null values will omit the value, but the equals sign (=) remains in place: - -```javascript -assert.equal(qs.stringify({ a: '' }), 'a='); -``` - -Key with no values (such as an empty object or array) will return nothing: - -```javascript -assert.equal(qs.stringify({ a: [] }), ''); -assert.equal(qs.stringify({ a: {} }), ''); -assert.equal(qs.stringify({ a: [{}] }), ''); -assert.equal(qs.stringify({ a: { b: []} }), ''); -assert.equal(qs.stringify({ a: { b: {}} }), ''); -``` - -Properties that are set to `undefined` will be omitted entirely: - -```javascript -assert.equal(qs.stringify({ a: null, b: undefined }), 'a='); -``` - -The query string may optionally be prepended with a question mark: - -```javascript -assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d'); -``` - -The delimiter may be overridden with stringify as well: - -```javascript -assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); -``` - -If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option: - -```javascript -var date = new Date(7); -assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A')); -assert.equal( - qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }), - 'a=7' -); -``` - -You may use the `sort` option to affect the order of parameter keys: - -```javascript -function alphabeticalSort(a, b) { - return a.localeCompare(b); -} -assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y'); -``` - -Finally, you can use the `filter` option to restrict which keys will be included in the stringified output. -If you pass a function, it will be called for each key to obtain the replacement value. -Otherwise, if you pass an array, it will be used to select properties and array indices for stringification: - -```javascript -function filterFunc(prefix, value) { - if (prefix == 'b') { - // Return an `undefined` value to omit a property. - return; - } - if (prefix == 'e[f]') { - return value.getTime(); - } - if (prefix == 'e[g][0]') { - return value * 2; - } - return value; -} -qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc }); -// 'a=b&c=d&e[f]=123&e[g][0]=4' -qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] }); -// 'a=b&e=f' -qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] }); -// 'a[0]=b&a[2]=d' -``` - -You could also use `filter` to inject custom serialization for user defined types. -Consider you're working with some api that expects query strings of the format for ranges: - -``` -https://domain.com/endpoint?range=30...70 -``` - -For which you model as: - -```javascript -class Range { - constructor(from, to) { - this.from = from; - this.to = to; - } -} -``` - -You could _inject_ a custom serializer to handle values of this type: - -```javascript -qs.stringify( - { - range: new Range(30, 70), - }, - { - filter: (prefix, value) => { - if (value instanceof Range) { - return `${value.from}...${value.to}`; - } - // serialize the usual way - return value; - }, - } -); -// range=30...70 -``` - -### Handling of `null` values - -By default, `null` values are treated like empty strings: - -```javascript -var withNull = qs.stringify({ a: null, b: '' }); -assert.equal(withNull, 'a=&b='); -``` - -Parsing does not distinguish between parameters with and without equal signs. -Both are converted to empty strings. - -```javascript -var equalsInsensitive = qs.parse('a&b='); -assert.deepEqual(equalsInsensitive, { a: '', b: '' }); -``` - -To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null` -values have no `=` sign: - -```javascript -var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true }); -assert.equal(strictNull, 'a&b='); -``` - -To parse values without `=` back to `null` use the `strictNullHandling` flag: - -```javascript -var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true }); -assert.deepEqual(parsedStrictNull, { a: null, b: '' }); -``` - -To completely skip rendering keys with `null` values, use the `skipNulls` flag: - -```javascript -var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true }); -assert.equal(nullsSkipped, 'a=b'); -``` - -If you're communicating with legacy systems, you can switch to `iso-8859-1` using the `charset` option: - -```javascript -var iso = qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' }); -assert.equal(iso, '%E6=%E6'); -``` - -Characters that don't exist in `iso-8859-1` will be converted to numeric entities, similar to what browsers do: - -```javascript -var numeric = qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' }); -assert.equal(numeric, 'a=%26%239786%3B'); -``` - -You can use the `charsetSentinel` option to announce the character by including an `utf8=✓` parameter with the proper encoding if the checkmark, similar to what Ruby on Rails and others do when submitting forms. - -```javascript -var sentinel = qs.stringify({ a: '☺' }, { charsetSentinel: true }); -assert.equal(sentinel, 'utf8=%E2%9C%93&a=%E2%98%BA'); - -var isoSentinel = qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' }); -assert.equal(isoSentinel, 'utf8=%26%2310003%3B&a=%E6'); -``` - -### Dealing with special character sets - -By default the encoding and decoding of characters is done in `utf-8`, and `iso-8859-1` support is also built in via the `charset` parameter. - -If you wish to encode querystrings to a different character set (i.e. -[Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the -[`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library: - -```javascript -var encoder = require('qs-iconv/encoder')('shift_jis'); -var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder }); -assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I'); -``` - -This also works for decoding of query strings: - -```javascript -var decoder = require('qs-iconv/decoder')('shift_jis'); -var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder }); -assert.deepEqual(obj, { a: 'こんにちは!' }); -``` - -### RFC 3986 and RFC 1738 space encoding - -RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible. -In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'. - -``` -assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); -assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c'); -assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c'); -``` - -## Security - -Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. - -## qs for enterprise - -Available as part of the Tidelift Subscription - -The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. -Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. -[Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -[package-url]: https://npmjs.org/package/qs -[npm-version-svg]: https://versionbadg.es/ljharb/qs.svg -[deps-svg]: https://david-dm.org/ljharb/qs.svg -[deps-url]: https://david-dm.org/ljharb/qs -[dev-deps-svg]: https://david-dm.org/ljharb/qs/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/qs#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/qs.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/qs.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/qs.svg -[downloads-url]: https://npm-stat.com/charts.html?package=qs -[codecov-image]: https://codecov.io/gh/ljharb/qs/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/qs/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/qs -[actions-url]: https://github.com/ljharb/qs/actions - -## Acknowledgements - -qs logo by [NUMI](https://github.com/numi-hq/open-design): - -[NUMI Logo](https://numi.tech/?ref=qs) diff --git a/node_modules/qs/dist/qs.js b/node_modules/qs/dist/qs.js deleted file mode 100644 index 4e67e4de..00000000 --- a/node_modules/qs/dist/qs.js +++ /dev/null @@ -1,90 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i-1?e.split(","):e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r,a={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,i),s=-1,n=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(c=isArray(c)?[c]:c);var f=has.call(a,p);f&&"combine"===t.duplicates?a[p]=utils.combine(a[p],c):f&&"last"!==t.duplicates||(a[p]=c)}return a},parseObject=function(e,t,r,a){for(var o=a?t:parseArrayValue(t,r),i=e.length-1;i>=0;--i){var l,s=e[i];if("[]"===s&&r.parseArrays)l=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{l=r.plainObjects?Object.create(null):{};var n="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=r.decodeDotInKeys?n.replace(/%2E/g,"."):n,c=parseInt(p,10);r.parseArrays||""!==p?!isNaN(c)&&s!==p&&String(c)===p&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[])[c]=o:"__proto__"!==p&&(l[p]=o):l={0:o}}o=l}return o},parseKeys=function parseQueryStringKeys(e,t,r,a){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=l?o.slice(0,l.index):o,n=[];if(s){if(!r.plainObjects&&has.call(Object.prototype,s)&&!r.allowPrototypes)return;n.push(s)}for(var p=0;r.depth>0&&null!==(l=i.exec(o))&&p0?w.join(",")||null:void 0}];else if(isArray(f))E=f;else{var S=Object.keys(w);E=u?S.sort(u):S}var O=l?r.replace(/\./g,"%2E"):r,T=o&&isArray(w)&&1===w.length?O+"[]":O;if(a&&isArray(w)&&0===w.length)return T+"[]";for(var k=0;k0?y+d:""}; - -},{"1":1,"29":29,"5":5}],5:[function(require,module,exports){ -"use strict";var formats=require(1),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,hexTable=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var o=[],n=0;n=limit?a.slice(i,i+limit):a,p=[],s=0;s=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||n===formats.RFC1738&&(40===f||41===f)?p[p.length]=u.charAt(s):f<128?p[p.length]=hexTable[f]:f<2048?p[p.length]=hexTable[192|f>>6]+hexTable[128|63&f]:f<55296||f>=57344?p[p.length]=hexTable[224|f>>12]+hexTable[128|f>>6&63]+hexTable[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(s)),p[p.length]=hexTable[240|f>>18]+hexTable[128|f>>12&63]+hexTable[128|f>>6&63]+hexTable[128|63&f])}c+=p.join("")}return c},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o-1?callBind(t):t}; - -},{"20":20,"8":8}],20:[function(require,module,exports){ -"use strict";var undefined,$Error=require(12),$EvalError=require(11),$RangeError=require(13),$ReferenceError=require(14),$SyntaxError=require(15),$TypeError=require(16),$URIError=require(17),$Function=Function,getEvalledConstructor=function(r){try{return $Function('"use strict"; return ('+r+").constructor;")()}catch(r){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(r){$gOPD=null}var throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(r){try{return $gOPD(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,hasSymbols=require(24)(),hasProto=require(23)(),getProto=Object.getPrototypeOf||(hasProto?function(r){return r.__proto__}:null),needsEval={},TypedArray="undefined"!=typeof Uint8Array&&getProto?getProto(Uint8Array):undefined,INTRINSICS={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols&&getProto?getProto((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols&&getProto?getProto((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":$URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet};if(getProto)try{null.error}catch(r){var errorProto=getProto(getProto(r));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function doEval(r){var e;if("%AsyncFunction%"===r)e=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)e=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)e=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var t=doEval("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if("%AsyncIteratorPrototype%"===r){var o=doEval("%AsyncGenerator%");o&&getProto&&(e=getProto(o.prototype))}return INTRINSICS[r]=e,e},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require(19),hasOwn=require(26),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function stringToPath(r){var e=$strSlice(r,0,1),t=$strSlice(r,-1);if("%"===e&&"%"!==t)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==e)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var o=[];return $replace(r,rePropName,(function(r,e,t,n){o[o.length]=t?$replace(n,reEscapeChar,"$1"):e||r})),o},getBaseIntrinsic=function getBaseIntrinsic(r,e){var t,o=r;if(hasOwn(LEGACY_ALIASES,o)&&(o="%"+(t=LEGACY_ALIASES[o])[0]+"%"),hasOwn(INTRINSICS,o)){var n=INTRINSICS[o];if(n===needsEval&&(n=doEval(o)),void 0===n&&!e)throw new $TypeError("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:o,value:n}}throw new $SyntaxError("intrinsic "+r+" does not exist!")};module.exports=function GetIntrinsic(r,e){if("string"!=typeof r||0===r.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,r))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=stringToPath(r),o=t.length>0?t[0]:"",n=getBaseIntrinsic("%"+o+"%",e),a=n.name,y=n.value,i=!1,p=n.alias;p&&(o=p[0],$spliceApply(t,$concat([0,1],p)));for(var d=1,s=!0;d=t.length){var c=$gOPD(y,f);y=(s=!!c)&&"get"in c&&!("originalValue"in c.get)?c.get:y[f]}else s=hasOwn(y,f),y=y[f];s&&!i&&(INTRINSICS[a]=y)}}return y}; - -},{"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"19":19,"23":23,"24":24,"26":26}],8:[function(require,module,exports){ -"use strict";var bind=require(19),GetIntrinsic=require(20),setFunctionLength=require(28),$TypeError=require(16),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$defineProperty=require(10),$max=GetIntrinsic("%Math.max%");module.exports=function callBind(e){if("function"!=typeof e)throw new $TypeError("a function is required");var n=$reflectApply(bind,$call,arguments);return setFunctionLength(n,1+$max(0,e.length-(arguments.length-1)),!0)};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind; - -},{"10":10,"16":16,"19":19,"20":20,"28":28}],16:[function(require,module,exports){ -"use strict";module.exports=TypeError; - -},{}],19:[function(require,module,exports){ -"use strict";var implementation=require(18);module.exports=Function.prototype.bind||implementation; - -},{"18":18}],10:[function(require,module,exports){ -"use strict";var GetIntrinsic=require(20),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0)||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty; - -},{"20":20}],28:[function(require,module,exports){ -"use strict";var GetIntrinsic=require(20),define=require(9),hasDescriptors=require(22)(),gOPD=require(21),$TypeError=require(16),$floor=GetIntrinsic("%Math.floor%");module.exports=function setFunctionLength(e,r){if("function"!=typeof e)throw new $TypeError("`fn` is not a function");if("number"!=typeof r||r<0||r>4294967295||$floor(r)!==r)throw new $TypeError("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],i=!0,n=!0;if("length"in e&&gOPD){var o=gOPD(e,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(n=!1)}return(i||n||!t)&&(hasDescriptors?define(e,"length",r,!0,!0):define(e,"length",r)),e}; - -},{"16":16,"20":20,"21":21,"22":22,"9":9}],9:[function(require,module,exports){ -"use strict";var $defineProperty=require(10),$SyntaxError=require(15),$TypeError=require(16),gopd=require(21);module.exports=function defineDataProperty(e,r,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new $TypeError("`obj` must be an object or a function`");if("string"!=typeof r&&"symbol"!=typeof r)throw new $TypeError("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new $TypeError("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,t=arguments.length>5?arguments[5]:null,i=arguments.length>6&&arguments[6],a=!!gopd&&gopd(e,r);if($defineProperty)$defineProperty(e,r,{configurable:null===t&&a?a.configurable:!t,enumerable:null===n&&a?a.enumerable:!n,value:o,writable:null===l&&a?a.writable:!l});else{if(!i&&(n||l||t))throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[r]=o}}; - -},{"10":10,"15":15,"16":16,"21":21}],15:[function(require,module,exports){ -"use strict";module.exports=SyntaxError; - -},{}],21:[function(require,module,exports){ -"use strict";var GetIntrinsic=require(20),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(t){$gOPD=null}module.exports=$gOPD; - -},{"20":20}],11:[function(require,module,exports){ -"use strict";module.exports=EvalError; - -},{}],12:[function(require,module,exports){ -"use strict";module.exports=Error; - -},{}],13:[function(require,module,exports){ -"use strict";module.exports=RangeError; - -},{}],14:[function(require,module,exports){ -"use strict";module.exports=ReferenceError; - -},{}],17:[function(require,module,exports){ -"use strict";module.exports=URIError; - -},{}],18:[function(require,module,exports){ -"use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function concatty(t,n){for(var r=[],o=0;o-1e3&&t<1e3||$test.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-$floor(-t):$floor(t);if(n!==t){var o=String(n),i=$slice.call(e,o.length+1);return $replace.call(o,r,"$&_")+"."+$replace.call($replace.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,r,"$&_")}var utilInspect=require(6),inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;function wrapQuotes(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function quote(t){return $replace.call(String(t),/"/g,""")}function isArray(t){return!("[object Array]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isDate(t){return!("[object Date]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isRegExp(t){return!("[object RegExp]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isError(t){return!("[object Error]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isString(t){return!("[object String]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isNumber(t){return!("[object Number]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isBoolean(t){return!("[object Boolean]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isSymbol(t){if(hasShammedSymbols)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!symToString)return!1;try{return symToString.call(t),!0}catch(t){}return!1}function isBigInt(t){if(!t||"object"!=typeof t||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch(t){}return!1}module.exports=function inspect_(t,e,r,n){var o=e||{};if(has(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!has(o,"customInspect")||o.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return a?addNumericSeparator(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return a?addNumericSeparator(t,l):l}var p=void 0===o.depth?5:o.depth;if(void 0===r&&(r=0),r>=p&&p>0&&"object"==typeof t)return isArray(t)?"[Array]":"[Object]";var u=getIndent(o,r);if(void 0===n)n=[];else if(indexOf(n,t)>=0)return"[Circular]";function inspect(t,e,i){if(e&&(n=$arrSlice.call(n)).push(e),i){var a={depth:o.depth};return has(o,"quoteStyle")&&(a.quoteStyle=o.quoteStyle),inspect_(t,a,r+1,n)}return inspect_(t,o,r+1,n)}if("function"==typeof t&&!isRegExp(t)){var s=nameOf(t),f=arrObjKeys(t,inspect);return"[Function"+(s?": "+s:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(t)){var y=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return"object"!=typeof t||hasShammedSymbols?y:markBoxed(y)}if(isElement(t)){for(var S="<"+$toLowerCase.call(String(t.nodeName)),g=t.attributes||[],m=0;m"}if(isArray(t)){if(0===t.length)return"[]";var b=arrObjKeys(t,inspect);return u&&!singleLineValues(b)?"["+indentedJoin(b,u)+"]":"[ "+$join.call(b,", ")+" ]"}if(isError(t)){var h=arrObjKeys(t,inspect);return"cause"in Error.prototype||!("cause"in t)||isEnumerable.call(t,"cause")?0===h.length?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(h,", ")+" }":"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+inspect(t.cause),h),", ")+" }"}if("object"==typeof t&&i){if(inspectSymbol&&"function"==typeof t[inspectSymbol]&&utilInspect)return utilInspect(t,{depth:p-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(isMap(t)){var d=[];return mapForEach&&mapForEach.call(t,(function(e,r){d.push(inspect(r,t,!0)+" => "+inspect(e,t))})),collectionOf("Map",mapSize.call(t),d,u)}if(isSet(t)){var j=[];return setForEach&&setForEach.call(t,(function(e){j.push(inspect(e,t))})),collectionOf("Set",setSize.call(t),j,u)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber(t))return markBoxed(inspect(Number(t)));if(isBigInt(t))return markBoxed(inspect(bigIntValueOf.call(t)));if(isBoolean(t))return markBoxed(booleanValueOf.call(t));if(isString(t))return markBoxed(inspect(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===global)return"{ [object globalThis] }";if(!isDate(t)&&!isRegExp(t)){var O=arrObjKeys(t,inspect),w=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",k=!w&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):$?"Object":"",v=(w||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(k||$?"["+$join.call($concat.call([],k||[],$||[]),": ")+"] ":"");return 0===O.length?v+"{}":u?v+"{"+indentedJoin(O,u)+"}":v+"{ "+$join.call(O,", ")+" }"}return String(t)};var hasOwn=Object.prototype.hasOwnProperty||function(t){return t in this};function has(t,e){return hasOwn.call(t,e)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name)return t.name;var e=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function indexOf(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return inspectString($slice.call(t,0,e.maxStringLength),e)+n}return wrapQuotes($replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",e)}function lowbyte(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,e,r,n){return t+" ("+e+") {"+(n?indentedJoin(r,n):$join.call(r,", "))+"}"}function singleLineValues(t){for(var e=0;e=0)return!1;return!0}function getIndent(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=$join.call(Array(t.indent+1)," ")}return{base:r,prev:$join.call(Array(e+1),r)}}function indentedJoin(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+$join.call(t,","+r)+"\n"+e.prev}function arrObjKeys(t,e){var r=isArray(t),n=[];if(r){n.length=t.length;for(var o=0;o -1) { - return val.split(','); - } - - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = { __proto__: null }; - - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } - - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); - } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - - var existing = has.call(obj, key); - if (existing && options.duplicates === 'combine') { - obj[key] = utils.combine(obj[key], val); - } else if (!existing || options.duplicates === 'last') { - obj[key] = val; - } - } - - return obj; -}; - -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - - if (root === '[]' && options.parseArrays) { - obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot; - var index = parseInt(decodedRoot, 10); - if (!options.parseArrays && decodedRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== decodedRoot - && String(index) === decodedRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else if (decodedRoot !== '__proto__') { - obj[decodedRoot] = leaf; - } - } - - leaf = obj; - } - - return leaf; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options, valuesParsed); -}; - -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - - if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { - throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); - } - - if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') { - throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided'); - } - - if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - - var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates; - - if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') { - throw new TypeError('The duplicates option must be either combine, first, or last'); - } - - var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - - return { - allowDots: allowDots, - allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - duplicates: duplicates, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - - if (options.allowSparse === true) { - return obj; - } - - return utils.compact(obj); -}; diff --git a/node_modules/qs/lib/stringify.js b/node_modules/qs/lib/stringify.js deleted file mode 100644 index 9b934d69..00000000 --- a/node_modules/qs/lib/stringify.js +++ /dev/null @@ -1,351 +0,0 @@ -'use strict'; - -var getSideChannel = require('side-channel'); -var utils = require('./utils'); -var formats = require('./formats'); -var has = Object.prototype.hasOwnProperty; - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; - -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; - -var toISO = Date.prototype.toISOString; - -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - allowEmptyArrays: false, - arrayFormat: 'indices', - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encodeDotInKeys: false, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; - -var sentinel = {}; - -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - commaRoundTrip, - allowEmptyArrays, - strictNullHandling, - skipNulls, - encodeDotInKeys, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; - - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); - } - - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } - - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix; - - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix; - - if (allowEmptyArrays && isArray(obj) && obj.length === 0) { - return adjustedPrefix + '[]'; - } - - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; - - if (skipNulls && value === null) { - continue; - } - - var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key; - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix - : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']'); - - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - commaRoundTrip, - allowEmptyArrays, - strictNullHandling, - skipNulls, - encodeDotInKeys, - generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } - - return values; -}; - -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - - if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { - throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); - } - - if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { - throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); - } - - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - - var arrayFormat; - if (opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if ('indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = defaults.arrayFormat; - } - - if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - - var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: allowDots, - allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, - arrayFormat: arrayFormat, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - commaRoundTrip: opts.commaRoundTrip, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat]; - var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (options.sort) { - objKeys.sort(options.sort); - } - - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - commaRoundTrip, - options.allowEmptyArrays, - options.strictNullHandling, - options.skipNulls, - options.encodeDotInKeys, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } - - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } - - return joined.length > 0 ? prefix + joined : ''; -}; diff --git a/node_modules/qs/lib/utils.js b/node_modules/qs/lib/utils.js deleted file mode 100644 index 7c860f1b..00000000 --- a/node_modules/qs/lib/utils.js +++ /dev/null @@ -1,265 +0,0 @@ -'use strict'; - -var formats = require('./formats'); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - - item.obj[item.prop] = compacted; - } - } -}; - -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - - return target; - } - - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var limit = 1024; - -/* eslint operator-linebreak: [2, "before"] */ - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - - var out = ''; - for (var j = 0; j < string.length; j += limit) { - var segment = string.length >= limit ? string.slice(j, j + limit) : string; - var arr = []; - - for (var i = 0; i < segment.length; ++i) { - var c = segment.charCodeAt(i); - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - arr[arr.length] = segment.charAt(i); - continue; - } - - if (c < 0x80) { - arr[arr.length] = hexTable[c]; - continue; - } - - if (c < 0x800) { - arr[arr.length] = hexTable[0xC0 | (c >> 6)] - + hexTable[0x80 | (c & 0x3F)]; - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - arr[arr.length] = hexTable[0xE0 | (c >> 12)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF)); - - arr[arr.length] = hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - } - - out += arr.join(''); - } - - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); - } - } - } - - compactQueue(queue); - - return value; -}; - -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -var combine = function combine(a, b) { - return [].concat(a, b); -}; - -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; - -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; diff --git a/node_modules/qs/package.json b/node_modules/qs/package.json deleted file mode 100644 index 02d5d1cc..00000000 --- a/node_modules/qs/package.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "name": "qs", - "description": "A querystring parser that supports nesting and arrays, with a depth limit", - "homepage": "https://github.com/ljharb/qs", - "version": "6.12.1", - "repository": { - "type": "git", - "url": "https://github.com/ljharb/qs.git" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "main": "lib/index.js", - "sideEffects": false, - "contributors": [ - { - "name": "Jordan Harband", - "email": "ljharb@gmail.com", - "url": "http://ljharb.codes" - } - ], - "keywords": [ - "querystring", - "qs", - "query", - "url", - "parse", - "stringify" - ], - "engines": { - "node": ">=0.6" - }, - "dependencies": { - "side-channel": "^1.0.6" - }, - "devDependencies": { - "@browserify/envify": "^6.0.0", - "@browserify/uglifyify": "^6.0.0", - "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.4", - "browserify": "^16.5.2", - "bundle-collapser": "^1.4.0", - "common-shakeify": "~1.0.0", - "eclint": "^2.8.1", - "es-value-fixtures": "^1.4.2", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.3", - "glob": "=10.3.7", - "has-override-mistake": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-symbols": "^1.0.3", - "iconv-lite": "^0.5.1", - "in-publish": "^2.0.1", - "jackspeak": "=2.1.1", - "mkdirp": "^0.5.5", - "mock-property": "^1.0.3", - "module-deps": "^6.2.3", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.1", - "qs-iconv": "^1.0.4", - "safe-publish-latest": "^2.0.0", - "safer-buffer": "^2.1.2", - "tape": "^5.7.5", - "unassertify": "^3.0.1" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated && npm run dist", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "pretest": "npm run --silent readme && npm run --silent lint", - "test": "npm run tests-only", - "tests-only": "nyc tape 'test/**/*.js'", - "posttest": "aud --production", - "readme": "evalmd README.md", - "postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", - "lint": "eslint --ext=js,mjs .", - "dist": "mkdirp dist && browserify --standalone Qs -g unassertify -g @browserify/envify -g [@browserify/uglifyify --mangle.keep_fnames --compress.keep_fnames --format.indent_level=1 --compress.arrows=false --compress.passes=4 --compress.typeofs=false] -p common-shakeify -p bundle-collapser/plugin lib/index.js > dist/qs.js" - }, - "license": "BSD-3-Clause", - "publishConfig": { - "ignore": [ - "!dist/*", - "bower.json", - "component.json", - ".github/workflows", - "logos", - "tea.yaml" - ] - } -} diff --git a/node_modules/qs/test/parse.js b/node_modules/qs/test/parse.js deleted file mode 100644 index f63c51cb..00000000 --- a/node_modules/qs/test/parse.js +++ /dev/null @@ -1,1052 +0,0 @@ -'use strict'; - -var test = require('tape'); -var hasPropertyDescriptors = require('has-property-descriptors')(); -var iconv = require('iconv-lite'); -var mockProperty = require('mock-property'); -var hasOverrideMistake = require('has-override-mistake')(); -var SaferBuffer = require('safer-buffer').Buffer; -var v = require('es-value-fixtures'); -var inspect = require('object-inspect'); -var emptyTestCases = require('./empty-keys-cases').emptyTestCases; - -var qs = require('../'); -var utils = require('../lib/utils'); - -test('parse()', function (t) { - t.test('parses a simple string', function (st) { - st.deepEqual(qs.parse('0=foo'), { 0: 'foo' }); - st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' }); - st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } }); - st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } }); - st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } }); - st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null }); - st.deepEqual(qs.parse('foo'), { foo: '' }); - st.deepEqual(qs.parse('foo='), { foo: '' }); - st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' }); - st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' }); - st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' }); - st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' }); - st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' }); - st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null }); - st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' }); - st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), { - cht: 'p3', - chd: 't:60,40', - chs: '250x100', - chl: 'Hello|World' - }); - st.end(); - }); - - t.test('comma: false', function (st) { - st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[0]=b&a[1]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b,c'), { a: 'b,c' }); - st.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }); - st.end(); - }); - - t.test('comma: true', function (st) { - st.deepEqual(qs.parse('a[]=b&a[]=c', { comma: true }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { comma: true }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b,c', { comma: true }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a=c', { comma: true }), { a: ['b', 'c'] }); - st.end(); - }); - - t.test('allows enabling dot notation', function (st) { - st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' }); - st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } }); - - st.end(); - }); - - t.test('decode dot keys correctly', function (st) { - st.deepEqual( - qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: false, decodeDotInKeys: false }), - { 'name%2Eobj.first': 'John', 'name%2Eobj.last': 'Doe' }, - 'with allowDots false and decodeDotInKeys false' - ); - st.deepEqual( - qs.parse('name.obj.first=John&name.obj.last=Doe', { allowDots: true, decodeDotInKeys: false }), - { name: { obj: { first: 'John', last: 'Doe' } } }, - 'with allowDots false and decodeDotInKeys false' - ); - st.deepEqual( - qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: true, decodeDotInKeys: false }), - { 'name%2Eobj': { first: 'John', last: 'Doe' } }, - 'with allowDots true and decodeDotInKeys false' - ); - st.deepEqual( - qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: true, decodeDotInKeys: true }), - { 'name.obj': { first: 'John', last: 'Doe' } }, - 'with allowDots true and decodeDotInKeys true' - ); - - st.deepEqual( - qs.parse( - 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', - { allowDots: false, decodeDotInKeys: false } - ), - { 'name%2Eobj%2Esubobject.first%2Egodly%2Ename': 'John', 'name%2Eobj%2Esubobject.last': 'Doe' }, - 'with allowDots false and decodeDotInKeys false' - ); - st.deepEqual( - qs.parse( - 'name.obj.subobject.first.godly.name=John&name.obj.subobject.last=Doe', - { allowDots: true, decodeDotInKeys: false } - ), - { name: { obj: { subobject: { first: { godly: { name: 'John' } }, last: 'Doe' } } } }, - 'with allowDots true and decodeDotInKeys false' - ); - st.deepEqual( - qs.parse( - 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', - { allowDots: true, decodeDotInKeys: true } - ), - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - 'with allowDots true and decodeDotInKeys true' - ); - st.deepEqual( - qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe'), - { 'name%2Eobj.first': 'John', 'name%2Eobj.last': 'Doe' }, - 'with allowDots and decodeDotInKeys undefined' - ); - - st.end(); - }); - - t.test('should decode dot in key of object, and allow enabling dot notation when decodeDotInKeys is set to true and allowDots is undefined', function (st) { - st.deepEqual( - qs.parse( - 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', - { decodeDotInKeys: true } - ), - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - 'with allowDots undefined and decodeDotInKeys true' - ); - - st.end(); - }); - - t.test('should throw when decodeDotInKeys is not of type boolean', function (st) { - st['throws']( - function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: 'foobar' }); }, - TypeError - ); - - st['throws']( - function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: 0 }); }, - TypeError - ); - st['throws']( - function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: NaN }); }, - TypeError - ); - - st['throws']( - function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: null }); }, - TypeError - ); - - st.end(); - }); - - t.test('allows empty arrays in obj values', function (st) { - st.deepEqual(qs.parse('foo[]&bar=baz', { allowEmptyArrays: true }), { foo: [], bar: 'baz' }); - st.deepEqual(qs.parse('foo[]&bar=baz', { allowEmptyArrays: false }), { foo: [''], bar: 'baz' }); - - st.end(); - }); - - t.test('should throw when allowEmptyArrays is not of type boolean', function (st) { - st['throws']( - function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: 'foobar' }); }, - TypeError - ); - - st['throws']( - function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: 0 }); }, - TypeError - ); - st['throws']( - function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: NaN }); }, - TypeError - ); - - st['throws']( - function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: null }); }, - TypeError - ); - - st.end(); - }); - - t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string'); - t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string'); - t.deepEqual( - qs.parse('a[b][c][d][e][f][g][h]=i'), - { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } }, - 'defaults to a depth of 5' - ); - - t.test('only parses one level when depth = 1', function (st) { - st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } }); - st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } }); - st.end(); - }); - - t.test('uses original key when depth = 0', function (st) { - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: 0 }), { 'a[0]': 'b', 'a[1]': 'c' }); - st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: 0 }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' }); - st.end(); - }); - - t.test('uses original key when depth = false', function (st) { - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: false }), { 'a[0]': 'b', 'a[1]': 'c' }); - st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: false }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' }); - st.end(); - }); - - t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array'); - - t.test('parses an explicit array', function (st) { - st.deepEqual(qs.parse('a[]=b'), { a: ['b'] }); - st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] }); - st.end(); - }); - - t.test('parses a mix of simple and explicit arrays', function (st) { - st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] }); - - st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); - - st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); - - st.end(); - }); - - t.test('parses a nested array', function (st) { - st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } }); - st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } }); - st.end(); - }); - - t.test('allows to specify array indices', function (st) { - st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] }); - st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] }); - st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } }); - st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] }); - st.end(); - }); - - t.test('limits specific array indices to arrayLimit', function (st) { - st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] }); - st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } }); - - st.deepEqual(qs.parse('a[20]=a'), { a: ['a'] }); - st.deepEqual(qs.parse('a[21]=a'), { a: { 21: 'a' } }); - st.end(); - }); - - t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number'); - - t.test('supports encoded = signs', function (st) { - st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' }); - st.end(); - }); - - t.test('is ok with url encoded strings', function (st) { - st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } }); - st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } }); - st.end(); - }); - - t.test('allows brackets in the value', function (st) { - st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' }); - st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' }); - st.end(); - }); - - t.test('allows empty values', function (st) { - st.deepEqual(qs.parse(''), {}); - st.deepEqual(qs.parse(null), {}); - st.deepEqual(qs.parse(undefined), {}); - st.end(); - }); - - t.test('transforms arrays to objects', function (st) { - st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); - st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); - - st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } }); - st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } }); - st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } }); - st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } }); - st.end(); - }); - - t.test('transforms arrays to objects (dot notation)', function (st) { - st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } }); - st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } }); - st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } }); - st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] }); - st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] }); - st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); - st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); - st.end(); - }); - - t.test('correctly prunes undefined values when converting an array to an object', function (st) { - st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } }); - st.end(); - }); - - t.test('supports malformed uri characters', function (st) { - st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null }); - st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' }); - st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' }); - st.end(); - }); - - t.test('doesn\'t produce empty keys', function (st) { - st.deepEqual(qs.parse('_r=1&'), { _r: '1' }); - st.end(); - }); - - t.test('cannot access Object prototype', function (st) { - qs.parse('constructor[prototype][bad]=bad'); - qs.parse('bad[constructor][prototype][bad]=bad'); - st.equal(typeof Object.prototype.bad, 'undefined'); - st.end(); - }); - - t.test('parses arrays of objects', function (st) { - st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); - st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] }); - st.end(); - }); - - t.test('allows for empty strings in arrays', function (st) { - st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] }); - - st.deepEqual( - qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }), - { a: ['b', null, 'c', ''] }, - 'with arrayLimit 20 + array indices: null then empty string works' - ); - st.deepEqual( - qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }), - { a: ['b', null, 'c', ''] }, - 'with arrayLimit 0 + array brackets: null then empty string works' - ); - - st.deepEqual( - qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }), - { a: ['b', '', 'c', null] }, - 'with arrayLimit 20 + array indices: empty string then null works' - ); - st.deepEqual( - qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }), - { a: ['b', '', 'c', null] }, - 'with arrayLimit 0 + array brackets: empty string then null works' - ); - - st.deepEqual( - qs.parse('a[]=&a[]=b&a[]=c'), - { a: ['', 'b', 'c'] }, - 'array brackets: empty strings work' - ); - st.end(); - }); - - t.test('compacts sparse arrays', function (st) { - st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] }); - st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] }); - st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] }); - st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] }); - st.end(); - }); - - t.test('parses sparse arrays', function (st) { - /* eslint no-sparse-arrays: 0 */ - st.deepEqual(qs.parse('a[4]=1&a[1]=2', { allowSparse: true }), { a: [, '2', , , '1'] }); - st.deepEqual(qs.parse('a[1][b][2][c]=1', { allowSparse: true }), { a: [, { b: [, , { c: '1' }] }] }); - st.deepEqual(qs.parse('a[1][2][3][c]=1', { allowSparse: true }), { a: [, [, , [, , , { c: '1' }]]] }); - st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { allowSparse: true }), { a: [, [, , [, , , { c: [, '1'] }]]] }); - st.end(); - }); - - t.test('parses semi-parsed strings', function (st) { - st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } }); - st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } }); - st.end(); - }); - - t.test('parses buffers correctly', function (st) { - var b = SaferBuffer.from('test'); - st.deepEqual(qs.parse({ a: b }), { a: b }); - st.end(); - }); - - t.test('parses jquery-param strings', function (st) { - // readable = 'filter[0][]=int1&filter[0][]==&filter[0][]=77&filter[]=and&filter[2][]=int2&filter[2][]==&filter[2][]=8' - var encoded = 'filter%5B0%5D%5B%5D=int1&filter%5B0%5D%5B%5D=%3D&filter%5B0%5D%5B%5D=77&filter%5B%5D=and&filter%5B2%5D%5B%5D=int2&filter%5B2%5D%5B%5D=%3D&filter%5B2%5D%5B%5D=8'; - var expected = { filter: [['int1', '=', '77'], 'and', ['int2', '=', '8']] }; - st.deepEqual(qs.parse(encoded), expected); - st.end(); - }); - - t.test('continues parsing when no parent is found', function (st) { - st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' }); - st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' }); - st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' }); - st.end(); - }); - - t.test('does not error when parsing a very long array', function (st) { - var str = 'a[]=a'; - while (Buffer.byteLength(str) < 128 * 1024) { - str = str + '&' + str; - } - - st.doesNotThrow(function () { - qs.parse(str); - }); - - st.end(); - }); - - t.test('should not throw when a native prototype has an enumerable property', function (st) { - st.intercept(Object.prototype, 'crash', { value: '' }); - st.intercept(Array.prototype, 'crash', { value: '' }); - - st.doesNotThrow(qs.parse.bind(null, 'a=b')); - st.deepEqual(qs.parse('a=b'), { a: 'b' }); - st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c')); - st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); - - st.end(); - }); - - t.test('parses a string with an alternative string delimiter', function (st) { - st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('parses a string with an alternative RegExp delimiter', function (st) { - st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('does not use non-splittable objects as delimiters', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('allows overriding parameter limit', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' }); - st.end(); - }); - - t.test('allows setting the parameter limit to Infinity', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('allows overriding array limit', function (st) { - st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } }); - st.deepEqual(qs.parse('a[0]=b', { arrayLimit: 0 }), { a: ['b'] }); - - st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } }); - st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: 0 }), { a: { '-1': 'b' } }); - - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: -1 }), { a: { 0: 'b', 1: 'c' } }); - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } }); - - st.end(); - }); - - t.test('allows disabling array parsing', function (st) { - var indices = qs.parse('a[0]=b&a[1]=c', { parseArrays: false }); - st.deepEqual(indices, { a: { 0: 'b', 1: 'c' } }); - st.equal(Array.isArray(indices.a), false, 'parseArrays:false, indices case is not an array'); - - var emptyBrackets = qs.parse('a[]=b', { parseArrays: false }); - st.deepEqual(emptyBrackets, { a: { 0: 'b' } }); - st.equal(Array.isArray(emptyBrackets.a), false, 'parseArrays:false, empty brackets case is not an array'); - - st.end(); - }); - - t.test('allows for query string prefix', function (st) { - st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' }); - st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' }); - st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' }); - - st.end(); - }); - - t.test('parses an object', function (st) { - var input = { - 'user[name]': { 'pop[bob]': 3 }, - 'user[email]': null - }; - - var expected = { - user: { - name: { 'pop[bob]': 3 }, - email: null - } - }; - - var result = qs.parse(input); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('parses string with comma as array divider', function (st) { - st.deepEqual(qs.parse('foo=bar,tee', { comma: true }), { foo: ['bar', 'tee'] }); - st.deepEqual(qs.parse('foo[bar]=coffee,tee', { comma: true }), { foo: { bar: ['coffee', 'tee'] } }); - st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' }); - st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' }); - st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null }); - - // test cases inversed from from stringify tests - st.deepEqual(qs.parse('a[0]=c'), { a: ['c'] }); - st.deepEqual(qs.parse('a[]=c'), { a: ['c'] }); - st.deepEqual(qs.parse('a[]=c', { comma: true }), { a: ['c'] }); - - st.deepEqual(qs.parse('a[0]=c&a[1]=d'), { a: ['c', 'd'] }); - st.deepEqual(qs.parse('a[]=c&a[]=d'), { a: ['c', 'd'] }); - st.deepEqual(qs.parse('a=c,d', { comma: true }), { a: ['c', 'd'] }); - - st.end(); - }); - - t.test('parses values with comma as array divider', function (st) { - st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: false }), { foo: 'bar,tee' }); - st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: true }), { foo: ['bar', 'tee'] }); - st.end(); - }); - - t.test('use number decoder, parses string that has one number with comma option enabled', function (st) { - var decoder = function (str, defaultDecoder, charset, type) { - if (!isNaN(Number(str))) { - return parseFloat(str); - } - return defaultDecoder(str, defaultDecoder, charset, type); - }; - - st.deepEqual(qs.parse('foo=1', { comma: true, decoder: decoder }), { foo: 1 }); - st.deepEqual(qs.parse('foo=0', { comma: true, decoder: decoder }), { foo: 0 }); - - st.end(); - }); - - t.test('parses brackets holds array of arrays when having two parts of strings with comma as array divider', function (st) { - st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=4,5,6', { comma: true }), { foo: [['1', '2', '3'], ['4', '5', '6']] }); - st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=', { comma: true }), { foo: [['1', '2', '3'], ''] }); - st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=,', { comma: true }), { foo: [['1', '2', '3'], ['', '']] }); - st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=a', { comma: true }), { foo: [['1', '2', '3'], 'a'] }); - - st.end(); - }); - - t.test('parses comma delimited array while having percent-encoded comma treated as normal text', function (st) { - st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: 'a,b' }); - st.deepEqual(qs.parse('foo=a%2C%20b,d', { comma: true }), { foo: ['a, b', 'd'] }); - st.deepEqual(qs.parse('foo=a%2C%20b,c%2C%20d', { comma: true }), { foo: ['a, b', 'c, d'] }); - - st.end(); - }); - - t.test('parses an object in dot notation', function (st) { - var input = { - 'user.name': { 'pop[bob]': 3 }, - 'user.email.': null - }; - - var expected = { - user: { - name: { 'pop[bob]': 3 }, - email: null - } - }; - - var result = qs.parse(input, { allowDots: true }); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('parses an object and not child values', function (st) { - var input = { - 'user[name]': { 'pop[bob]': { test: 3 } }, - 'user[email]': null - }; - - var expected = { - user: { - name: { 'pop[bob]': { test: 3 } }, - email: null - } - }; - - var result = qs.parse(input); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('does not blow up when Buffer global is missing', function (st) { - var restore = mockProperty(global, 'Buffer', { 'delete': true }); - - var result = qs.parse('a=b&c=d'); - - restore(); - - st.deepEqual(result, { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('does not crash when parsing circular references', function (st) { - var a = {}; - a.b = a; - - var parsed; - - st.doesNotThrow(function () { - parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a }); - }); - - st.equal('foo' in parsed, true, 'parsed has "foo" property'); - st.equal('bar' in parsed.foo, true); - st.equal('baz' in parsed.foo, true); - st.equal(parsed.foo.bar, 'baz'); - st.deepEqual(parsed.foo.baz, a); - st.end(); - }); - - t.test('does not crash when parsing deep objects', function (st) { - var parsed; - var str = 'foo'; - - for (var i = 0; i < 5000; i++) { - str += '[p]'; - } - - str += '=bar'; - - st.doesNotThrow(function () { - parsed = qs.parse(str, { depth: 5000 }); - }); - - st.equal('foo' in parsed, true, 'parsed has "foo" property'); - - var depth = 0; - var ref = parsed.foo; - while ((ref = ref.p)) { - depth += 1; - } - - st.equal(depth, 5000, 'parsed is 5000 properties deep'); - - st.end(); - }); - - t.test('parses null objects correctly', { skip: !Object.create }, function (st) { - var a = Object.create(null); - a.b = 'c'; - - st.deepEqual(qs.parse(a), { b: 'c' }); - var result = qs.parse({ a: a }); - st.equal('a' in result, true, 'result has "a" property'); - st.deepEqual(result.a, a); - st.end(); - }); - - t.test('parses dates correctly', function (st) { - var now = new Date(); - st.deepEqual(qs.parse({ a: now }), { a: now }); - st.end(); - }); - - t.test('parses regular expressions correctly', function (st) { - var re = /^test$/; - st.deepEqual(qs.parse({ a: re }), { a: re }); - st.end(); - }); - - t.test('does not allow overwriting prototype properties', function (st) { - st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {}); - st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {}); - - st.deepEqual( - qs.parse('toString', { allowPrototypes: false }), - {}, - 'bare "toString" results in {}' - ); - - st.end(); - }); - - t.test('can allow overwriting prototype properties', function (st) { - st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } }); - st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' }); - - st.deepEqual( - qs.parse('toString', { allowPrototypes: true }), - { toString: '' }, - 'bare "toString" results in { toString: "" }' - ); - - st.end(); - }); - - t.test('does not crash when the global Object prototype is frozen', { skip: !hasPropertyDescriptors || !hasOverrideMistake }, function (st) { - // We can't actually freeze the global Object prototype as that will interfere with other tests, and once an object is frozen, it - // can't be unfrozen. Instead, we add a new non-writable property to simulate this. - st.teardown(mockProperty(Object.prototype, 'frozenProp', { value: 'foo', nonWritable: true, nonEnumerable: true })); - - st['throws']( - function () { - var obj = {}; - obj.frozenProp = 'bar'; - }, - // node < 6 has a different error message - /^TypeError: Cannot assign to read only property 'frozenProp' of (?:object '#'|#)/, - 'regular assignment of an inherited non-writable property throws' - ); - - var parsed; - st.doesNotThrow( - function () { - parsed = qs.parse('frozenProp', { allowPrototypes: false }); - }, - 'parsing a nonwritable Object.prototype property does not throw' - ); - - st.deepEqual(parsed, {}, 'bare "frozenProp" results in {}'); - - st.end(); - }); - - t.test('params starting with a closing bracket', function (st) { - st.deepEqual(qs.parse(']=toString'), { ']': 'toString' }); - st.deepEqual(qs.parse(']]=toString'), { ']]': 'toString' }); - st.deepEqual(qs.parse(']hello]=toString'), { ']hello]': 'toString' }); - st.end(); - }); - - t.test('params starting with a starting bracket', function (st) { - st.deepEqual(qs.parse('[=toString'), { '[': 'toString' }); - st.deepEqual(qs.parse('[[=toString'), { '[[': 'toString' }); - st.deepEqual(qs.parse('[hello[=toString'), { '[hello[': 'toString' }); - st.end(); - }); - - t.test('add keys to objects', function (st) { - st.deepEqual( - qs.parse('a[b]=c&a=d'), - { a: { b: 'c', d: true } }, - 'can add keys to objects' - ); - - st.deepEqual( - qs.parse('a[b]=c&a=toString'), - { a: { b: 'c' } }, - 'can not overwrite prototype' - ); - - st.deepEqual( - qs.parse('a[b]=c&a=toString', { allowPrototypes: true }), - { a: { b: 'c', toString: true } }, - 'can overwrite prototype with allowPrototypes true' - ); - - st.deepEqual( - qs.parse('a[b]=c&a=toString', { plainObjects: true }), - { __proto__: null, a: { __proto__: null, b: 'c', toString: true } }, - 'can overwrite prototype with plainObjects true' - ); - - st.end(); - }); - - t.test('dunder proto is ignored', function (st) { - var payload = 'categories[__proto__]=login&categories[__proto__]&categories[length]=42'; - var result = qs.parse(payload, { allowPrototypes: true }); - - st.deepEqual( - result, - { - categories: { - length: '42' - } - }, - 'silent [[Prototype]] payload' - ); - - var plainResult = qs.parse(payload, { allowPrototypes: true, plainObjects: true }); - - st.deepEqual( - plainResult, - { - __proto__: null, - categories: { - __proto__: null, - length: '42' - } - }, - 'silent [[Prototype]] payload: plain objects' - ); - - var query = qs.parse('categories[__proto__]=cats&categories[__proto__]=dogs&categories[some][json]=toInject', { allowPrototypes: true }); - - st.notOk(Array.isArray(query.categories), 'is not an array'); - st.notOk(query.categories instanceof Array, 'is not instanceof an array'); - st.deepEqual(query.categories, { some: { json: 'toInject' } }); - st.equal(JSON.stringify(query.categories), '{"some":{"json":"toInject"}}', 'stringifies as a non-array'); - - st.deepEqual( - qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true }), - { - foo: { - bar: 'stuffs' - } - }, - 'hidden values' - ); - - st.deepEqual( - qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true, plainObjects: true }), - { - __proto__: null, - foo: { - __proto__: null, - bar: 'stuffs' - } - }, - 'hidden values: plain objects' - ); - - st.end(); - }); - - t.test('can return null objects', { skip: !Object.create }, function (st) { - var expected = Object.create(null); - expected.a = Object.create(null); - expected.a.b = 'c'; - expected.a.hasOwnProperty = 'd'; - st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected); - st.deepEqual(qs.parse(null, { plainObjects: true }), Object.create(null)); - var expectedArray = Object.create(null); - expectedArray.a = Object.create(null); - expectedArray.a[0] = 'b'; - expectedArray.a.c = 'd'; - st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray); - st.end(); - }); - - t.test('can parse with custom encoding', function (st) { - st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', { - decoder: function (str) { - var reg = /%([0-9A-F]{2})/ig; - var result = []; - var parts = reg.exec(str); - while (parts) { - result.push(parseInt(parts[1], 16)); - parts = reg.exec(str); - } - return String(iconv.decode(SaferBuffer.from(result), 'shift_jis')); - } - }), { 県: '大阪府' }); - st.end(); - }); - - t.test('receives the default decoder as a second argument', function (st) { - st.plan(1); - qs.parse('a', { - decoder: function (str, defaultDecoder) { - st.equal(defaultDecoder, utils.decode); - } - }); - st.end(); - }); - - t.test('throws error with wrong decoder', function (st) { - st['throws'](function () { - qs.parse({}, { decoder: 'string' }); - }, new TypeError('Decoder has to be a function.')); - st.end(); - }); - - t.test('does not mutate the options argument', function (st) { - var options = {}; - qs.parse('a[b]=true', options); - st.deepEqual(options, {}); - st.end(); - }); - - t.test('throws if an invalid charset is specified', function (st) { - st['throws'](function () { - qs.parse('a=b', { charset: 'foobar' }); - }, new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined')); - st.end(); - }); - - t.test('parses an iso-8859-1 string if asked to', function (st) { - st.deepEqual(qs.parse('%A2=%BD', { charset: 'iso-8859-1' }), { '¢': '½' }); - st.end(); - }); - - var urlEncodedCheckmarkInUtf8 = '%E2%9C%93'; - var urlEncodedOSlashInUtf8 = '%C3%B8'; - var urlEncodedNumCheckmark = '%26%2310003%3B'; - var urlEncodedNumSmiley = '%26%239786%3B'; - - t.test('prefers an utf-8 charset specified by the utf8 sentinel to a default charset of iso-8859-1', function (st) { - st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'iso-8859-1' }), { ø: 'ø' }); - st.end(); - }); - - t.test('prefers an iso-8859-1 charset specified by the utf8 sentinel to a default charset of utf-8', function (st) { - st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { 'ø': 'ø' }); - st.end(); - }); - - t.test('does not require the utf8 sentinel to be defined before the parameters whose decoding it affects', function (st) { - st.deepEqual(qs.parse('a=' + urlEncodedOSlashInUtf8 + '&utf8=' + urlEncodedNumCheckmark, { charsetSentinel: true, charset: 'utf-8' }), { a: 'ø' }); - st.end(); - }); - - t.test('should ignore an utf8 sentinel with an unknown value', function (st) { - st.deepEqual(qs.parse('utf8=foo&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { ø: 'ø' }); - st.end(); - }); - - t.test('uses the utf8 sentinel to switch to utf-8 when no default charset is given', function (st) { - st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { ø: 'ø' }); - st.end(); - }); - - t.test('uses the utf8 sentinel to switch to iso-8859-1 when no default charset is given', function (st) { - st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { 'ø': 'ø' }); - st.end(); - }); - - t.test('interprets numeric entities in iso-8859-1 when `interpretNumericEntities`', function (st) { - st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1', interpretNumericEntities: true }), { foo: '☺' }); - st.end(); - }); - - t.test('handles a custom decoder returning `null`, in the `iso-8859-1` charset, when `interpretNumericEntities`', function (st) { - st.deepEqual(qs.parse('foo=&bar=' + urlEncodedNumSmiley, { - charset: 'iso-8859-1', - decoder: function (str, defaultDecoder, charset) { - return str ? defaultDecoder(str, defaultDecoder, charset) : null; - }, - interpretNumericEntities: true - }), { foo: null, bar: '☺' }); - st.end(); - }); - - t.test('does not interpret numeric entities in iso-8859-1 when `interpretNumericEntities` is absent', function (st) { - st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1' }), { foo: '☺' }); - st.end(); - }); - - t.test('does not interpret numeric entities when the charset is utf-8, even when `interpretNumericEntities`', function (st) { - st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'utf-8', interpretNumericEntities: true }), { foo: '☺' }); - st.end(); - }); - - t.test('does not interpret %uXXXX syntax in iso-8859-1 mode', function (st) { - st.deepEqual(qs.parse('%u263A=%u263A', { charset: 'iso-8859-1' }), { '%u263A': '%u263A' }); - st.end(); - }); - - t.test('allows for decoding keys and values differently', function (st) { - var decoder = function (str, defaultDecoder, charset, type) { - if (type === 'key') { - return defaultDecoder(str, defaultDecoder, charset, type).toLowerCase(); - } - if (type === 'value') { - return defaultDecoder(str, defaultDecoder, charset, type).toUpperCase(); - } - throw 'this should never happen! type: ' + type; - }; - - st.deepEqual(qs.parse('KeY=vAlUe', { decoder: decoder }), { key: 'VALUE' }); - st.end(); - }); - - t.end(); -}); - -test('parses empty keys', function (t) { - emptyTestCases.forEach(function (testCase) { - t.test('skips empty string key with ' + testCase.input, function (st) { - st.deepEqual(qs.parse(testCase.input), testCase.noEmptyKeys); - - st.end(); - }); - }); -}); - -test('`duplicates` option', function (t) { - v.nonStrings.concat('not a valid option').forEach(function (invalidOption) { - if (typeof invalidOption !== 'undefined') { - t['throws']( - function () { qs.parse('', { duplicates: invalidOption }); }, - TypeError, - 'throws on invalid option: ' + inspect(invalidOption) - ); - } - }); - - t.deepEqual( - qs.parse('foo=bar&foo=baz'), - { foo: ['bar', 'baz'] }, - 'duplicates: default, combine' - ); - - t.deepEqual( - qs.parse('foo=bar&foo=baz', { duplicates: 'combine' }), - { foo: ['bar', 'baz'] }, - 'duplicates: combine' - ); - - t.deepEqual( - qs.parse('foo=bar&foo=baz', { duplicates: 'first' }), - { foo: 'bar' }, - 'duplicates: first' - ); - - t.deepEqual( - qs.parse('foo=bar&foo=baz', { duplicates: 'last' }), - { foo: 'baz' }, - 'duplicates: last' - ); - - t.end(); -}); diff --git a/node_modules/qs/test/stringify.js b/node_modules/qs/test/stringify.js deleted file mode 100644 index 22fcfda2..00000000 --- a/node_modules/qs/test/stringify.js +++ /dev/null @@ -1,1286 +0,0 @@ -'use strict'; - -var test = require('tape'); -var qs = require('../'); -var utils = require('../lib/utils'); -var iconv = require('iconv-lite'); -var SaferBuffer = require('safer-buffer').Buffer; -var hasSymbols = require('has-symbols'); -var mockProperty = require('mock-property'); -var emptyTestCases = require('./empty-keys-cases').emptyTestCases; -var hasBigInt = typeof BigInt === 'function'; - -test('stringify()', function (t) { - t.test('stringifies a querystring object', function (st) { - st.equal(qs.stringify({ a: 'b' }), 'a=b'); - st.equal(qs.stringify({ a: 1 }), 'a=1'); - st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2'); - st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z'); - st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC'); - st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80'); - st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90'); - st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7'); - st.end(); - }); - - t.test('stringifies falsy values', function (st) { - st.equal(qs.stringify(undefined), ''); - st.equal(qs.stringify(null), ''); - st.equal(qs.stringify(null, { strictNullHandling: true }), ''); - st.equal(qs.stringify(false), ''); - st.equal(qs.stringify(0), ''); - st.end(); - }); - - t.test('stringifies symbols', { skip: !hasSymbols() }, function (st) { - st.equal(qs.stringify(Symbol.iterator), ''); - st.equal(qs.stringify([Symbol.iterator]), '0=Symbol%28Symbol.iterator%29'); - st.equal(qs.stringify({ a: Symbol.iterator }), 'a=Symbol%28Symbol.iterator%29'); - st.equal( - qs.stringify({ a: [Symbol.iterator] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), - 'a[]=Symbol%28Symbol.iterator%29' - ); - st.end(); - }); - - t.test('stringifies bigints', { skip: !hasBigInt }, function (st) { - var three = BigInt(3); - var encodeWithN = function (value, defaultEncoder, charset) { - var result = defaultEncoder(value, defaultEncoder, charset); - return typeof value === 'bigint' ? result + 'n' : result; - }; - st.equal(qs.stringify(three), ''); - st.equal(qs.stringify([three]), '0=3'); - st.equal(qs.stringify([three], { encoder: encodeWithN }), '0=3n'); - st.equal(qs.stringify({ a: three }), 'a=3'); - st.equal(qs.stringify({ a: three }, { encoder: encodeWithN }), 'a=3n'); - st.equal( - qs.stringify({ a: [three] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), - 'a[]=3' - ); - st.equal( - qs.stringify({ a: [three] }, { encodeValuesOnly: true, encoder: encodeWithN, arrayFormat: 'brackets' }), - 'a[]=3n' - ); - st.end(); - }); - - t.test('encodes dot in key of object when encodeDotInKeys and allowDots is provided', function (st) { - st.equal( - qs.stringify( - { 'name.obj': { first: 'John', last: 'Doe' } }, - { allowDots: false, encodeDotInKeys: false } - ), - 'name.obj%5Bfirst%5D=John&name.obj%5Blast%5D=Doe', - 'with allowDots false and encodeDotInKeys false' - ); - st.equal( - qs.stringify( - { 'name.obj': { first: 'John', last: 'Doe' } }, - { allowDots: true, encodeDotInKeys: false } - ), - 'name.obj.first=John&name.obj.last=Doe', - 'with allowDots true and encodeDotInKeys false' - ); - st.equal( - qs.stringify( - { 'name.obj': { first: 'John', last: 'Doe' } }, - { allowDots: false, encodeDotInKeys: true } - ), - 'name%252Eobj%5Bfirst%5D=John&name%252Eobj%5Blast%5D=Doe', - 'with allowDots false and encodeDotInKeys true' - ); - st.equal( - qs.stringify( - { 'name.obj': { first: 'John', last: 'Doe' } }, - { allowDots: true, encodeDotInKeys: true } - ), - 'name%252Eobj.first=John&name%252Eobj.last=Doe', - 'with allowDots true and encodeDotInKeys true' - ); - - st.equal( - qs.stringify( - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - { allowDots: false, encodeDotInKeys: false } - ), - 'name.obj.subobject%5Bfirst.godly.name%5D=John&name.obj.subobject%5Blast%5D=Doe', - 'with allowDots false and encodeDotInKeys false' - ); - st.equal( - qs.stringify( - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - { allowDots: true, encodeDotInKeys: false } - ), - 'name.obj.subobject.first.godly.name=John&name.obj.subobject.last=Doe', - 'with allowDots false and encodeDotInKeys false' - ); - st.equal( - qs.stringify( - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - { allowDots: false, encodeDotInKeys: true } - ), - 'name%252Eobj%252Esubobject%5Bfirst.godly.name%5D=John&name%252Eobj%252Esubobject%5Blast%5D=Doe', - 'with allowDots false and encodeDotInKeys true' - ); - st.equal( - qs.stringify( - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - { allowDots: true, encodeDotInKeys: true } - ), - 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', - 'with allowDots true and encodeDotInKeys true' - ); - - st.end(); - }); - - t.test('should encode dot in key of object, and automatically set allowDots to `true` when encodeDotInKeys is true and allowDots in undefined', function (st) { - st.equal( - qs.stringify( - { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, - { encodeDotInKeys: true } - ), - 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', - 'with allowDots undefined and encodeDotInKeys true' - ); - st.end(); - }); - - t.test('should encode dot in key of object when encodeDotInKeys and allowDots is provided, and nothing else when encodeValuesOnly is provided', function (st) { - st.equal( - qs.stringify({ 'name.obj': { first: 'John', last: 'Doe' } }, { - encodeDotInKeys: true, allowDots: true, encodeValuesOnly: true - }), - 'name%2Eobj.first=John&name%2Eobj.last=Doe' - ); - - st.equal( - qs.stringify({ 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, { allowDots: true, encodeDotInKeys: true, encodeValuesOnly: true }), - 'name%2Eobj%2Esubobject.first%2Egodly%2Ename=John&name%2Eobj%2Esubobject.last=Doe' - ); - - st.end(); - }); - - t.test('throws when `commaRoundTrip` is not a boolean', function (st) { - st['throws']( - function () { qs.stringify({}, { commaRoundTrip: 'not a boolean' }); }, - TypeError, - 'throws when `commaRoundTrip` is not a boolean' - ); - - st.end(); - }); - - t.test('throws when `encodeDotInKeys` is not a boolean', function (st) { - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: 'foobar' }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: 0 }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: NaN }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: null }); }, - TypeError - ); - - st.end(); - }); - - t.test('adds query prefix', function (st) { - st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b'); - st.end(); - }); - - t.test('with query prefix, outputs blank string given an empty object', function (st) { - st.equal(qs.stringify({}, { addQueryPrefix: true }), ''); - st.end(); - }); - - t.test('stringifies nested falsy values', function (st) { - st.equal(qs.stringify({ a: { b: { c: null } } }), 'a%5Bb%5D%5Bc%5D='); - st.equal(qs.stringify({ a: { b: { c: null } } }, { strictNullHandling: true }), 'a%5Bb%5D%5Bc%5D'); - st.equal(qs.stringify({ a: { b: { c: false } } }), 'a%5Bb%5D%5Bc%5D=false'); - st.end(); - }); - - t.test('stringifies a nested object', function (st) { - st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); - st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e'); - st.end(); - }); - - t.test('`allowDots` option: stringifies a nested object with dots notation', function (st) { - st.equal(qs.stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c'); - st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }, { allowDots: true }), 'a.b.c.d=e'); - st.end(); - }); - - t.test('stringifies an array value', function (st) { - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }), - 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }), - 'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma' }), - 'a=b%2Cc%2Cd', - 'comma => comma' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma', commaRoundTrip: true }), - 'a=b%2Cc%2Cd', - 'comma round trip => comma' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }), - 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', - 'default => indices' - ); - st.end(); - }); - - t.test('`skipNulls` option', function (st) { - st.equal( - qs.stringify({ a: 'b', c: null }, { skipNulls: true }), - 'a=b', - 'omits nulls when asked' - ); - - st.equal( - qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), - 'a%5Bb%5D=c', - 'omits nested nulls when asked' - ); - - st.end(); - }); - - t.test('omits array indices when asked', function (st) { - st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d'); - - st.end(); - }); - - t.test('omits object key/value pair when value is empty array', function (st) { - st.equal(qs.stringify({ a: [], b: 'zz' }), 'b=zz'); - - st.end(); - }); - - t.test('should not omit object key/value pair when value is empty array and when asked', function (st) { - st.equal(qs.stringify({ a: [], b: 'zz' }), 'b=zz'); - st.equal(qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: false }), 'b=zz'); - st.equal(qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: true }), 'a[]&b=zz'); - - st.end(); - }); - - t.test('should throw when allowEmptyArrays is not of type boolean', function (st) { - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: 'foobar' }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: 0 }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: NaN }); }, - TypeError - ); - - st['throws']( - function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: null }); }, - TypeError - ); - - st.end(); - }); - - t.test('stringifies an array value with one item vs multiple items', function (st) { - st.test('non-array item', function (s2t) { - s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=c'); - s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a=c'); - s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c'); - s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true }), 'a=c'); - - s2t.end(); - }); - - st.test('array with a single item', function (s2t) { - s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c'); - s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c'); - s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c'); - s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a[]=c'); // so it parses back as an array - s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true }), 'a[0]=c'); - - s2t.end(); - }); - - st.test('array with multiple items', function (s2t) { - s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c&a[1]=d'); - s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c&a[]=d'); - s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c,d'); - s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a=c,d'); - s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true }), 'a[0]=c&a[1]=d'); - - s2t.end(); - }); - - st.test('array with multiple items with a comma inside', function (s2t) { - s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c%2Cd,e'); - s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma' }), 'a=c%2Cd%2Ce'); - - s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a=c%2Cd,e'); - s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma', commaRoundTrip: true }), 'a=c%2Cd%2Ce'); - - s2t.end(); - }); - - st.end(); - }); - - t.test('stringifies a nested array value', function (st) { - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[b][0]=c&a[b][1]=d'); - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[b][]=c&a[b][]=d'); - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a[b]=c,d'); - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true }), 'a[b][0]=c&a[b][1]=d'); - st.end(); - }); - - t.test('stringifies comma and empty array values', function (st) { - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'indices' }), 'a[0]=,&a[1]=&a[2]=c,d%'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'brackets' }), 'a[]=,&a[]=&a[]=c,d%'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'comma' }), 'a=,,,c,d%'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'repeat' }), 'a=,&a=&a=c,d%'); - - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=%2C&a[1]=&a[2]=c%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=%2C&a[]=&a[]=c%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=%2C,,c%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=%2C&a=&a=c%2Cd%25'); - - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'indices' }), 'a%5B0%5D=%2C&a%5B1%5D=&a%5B2%5D=c%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'brackets' }), 'a%5B%5D=%2C&a%5B%5D=&a%5B%5D=c%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'comma' }), 'a=%2C%2C%2Cc%2Cd%25'); - st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'repeat' }), 'a=%2C&a=&a=c%2Cd%25'); - - st.end(); - }); - - t.test('stringifies comma and empty non-array values', function (st) { - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'indices' }), 'a=,&b=&c=c,d%'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'brackets' }), 'a=,&b=&c=c,d%'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'comma' }), 'a=,&b=&c=c,d%'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'repeat' }), 'a=,&b=&c=c,d%'); - - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=%2C&b=&c=c%2Cd%25'); - - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'indices' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'brackets' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'comma' }), 'a=%2C&b=&c=c%2Cd%25'); - st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'repeat' }), 'a=%2C&b=&c=c%2Cd%25'); - - st.end(); - }); - - t.test('stringifies a nested array value with dots notation', function (st) { - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encodeValuesOnly: true, arrayFormat: 'indices' } - ), - 'a.b[0]=c&a.b[1]=d', - 'indices: stringifies with dots + indices' - ); - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encodeValuesOnly: true, arrayFormat: 'brackets' } - ), - 'a.b[]=c&a.b[]=d', - 'brackets: stringifies with dots + brackets' - ); - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encodeValuesOnly: true, arrayFormat: 'comma' } - ), - 'a.b=c,d', - 'comma: stringifies with dots + comma' - ); - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encodeValuesOnly: true } - ), - 'a.b[0]=c&a.b[1]=d', - 'default: stringifies with dots + indices' - ); - st.end(); - }); - - t.test('stringifies an object inside an array', function (st) { - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices', encodeValuesOnly: true }), - 'a[0][b]=c', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'repeat', encodeValuesOnly: true }), - 'a[b]=c', - 'repeat => repeat' - ); - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets', encodeValuesOnly: true }), - 'a[][b]=c', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { encodeValuesOnly: true }), - 'a[0][b]=c', - 'default => indices' - ); - - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices', encodeValuesOnly: true }), - 'a[0][b][c][0]=1', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'repeat', encodeValuesOnly: true }), - 'a[b][c]=1', - 'repeat => repeat' - ); - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets', encodeValuesOnly: true }), - 'a[][b][c][]=1', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { encodeValuesOnly: true }), - 'a[0][b][c][0]=1', - 'default => indices' - ); - - st.end(); - }); - - t.test('stringifies an array with mixed objects and primitives', function (st) { - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), - 'a[0][b]=1&a[1]=2&a[2]=3', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), - 'a[][b]=1&a[]=2&a[]=3', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), - '???', - 'brackets => brackets', - { skip: 'TODO: figure out what this should do' } - ); - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true }), - 'a[0][b]=1&a[1]=2&a[2]=3', - 'default => indices' - ); - - st.end(); - }); - - t.test('stringifies an object inside an array with dots notation', function (st) { - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false, arrayFormat: 'indices' } - ), - 'a[0].b=c', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false, arrayFormat: 'brackets' } - ), - 'a[].b=c', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false } - ), - 'a[0].b=c', - 'default => indices' - ); - - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false, arrayFormat: 'indices' } - ), - 'a[0].b.c[0]=1', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false, arrayFormat: 'brackets' } - ), - 'a[].b.c[]=1', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false } - ), - 'a[0].b.c[0]=1', - 'default => indices' - ); - - st.end(); - }); - - t.test('does not omit object keys when indices = false', function (st) { - st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when indices=true', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when arrayFormat=indices', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses repeat notation for arrays when arrayFormat=repeat', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c'); - st.end(); - }); - - t.test('uses brackets notation for arrays when arrayFormat=brackets', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c'); - st.end(); - }); - - t.test('stringifies a complicated object', function (st) { - st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e'); - st.end(); - }); - - t.test('stringifies an empty value', function (st) { - st.equal(qs.stringify({ a: '' }), 'a='); - st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a'); - - st.equal(qs.stringify({ a: '', b: '' }), 'a=&b='); - st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b='); - - st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D='); - st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D'); - st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D='); - - st.end(); - }); - - t.test('stringifies an empty array in different arrayFormat', function (st) { - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false }), 'b[0]=&c=c'); - // arrayFormat default - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices' }), 'b[0]=&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets' }), 'b[]=&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat' }), 'b=&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma' }), 'b=&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', commaRoundTrip: true }), 'b[]=&c=c'); - // with strictNullHandling - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', strictNullHandling: true }), 'b[0]&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', strictNullHandling: true }), 'b[]&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat', strictNullHandling: true }), 'b&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true }), 'b&c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true, commaRoundTrip: true }), 'b[]&c=c'); - // with skipNulls - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', skipNulls: true }), 'c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', skipNulls: true }), 'c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat', skipNulls: true }), 'c=c'); - st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', skipNulls: true }), 'c=c'); - - st.end(); - }); - - t.test('stringifies a null object', { skip: !Object.create }, function (st) { - var obj = Object.create(null); - obj.a = 'b'; - st.equal(qs.stringify(obj), 'a=b'); - st.end(); - }); - - t.test('returns an empty string for invalid input', function (st) { - st.equal(qs.stringify(undefined), ''); - st.equal(qs.stringify(false), ''); - st.equal(qs.stringify(null), ''); - st.equal(qs.stringify(''), ''); - st.end(); - }); - - t.test('stringifies an object with a null object as a child', { skip: !Object.create }, function (st) { - var obj = { a: Object.create(null) }; - - obj.a.b = 'c'; - st.equal(qs.stringify(obj), 'a%5Bb%5D=c'); - st.end(); - }); - - t.test('drops keys with a value of undefined', function (st) { - st.equal(qs.stringify({ a: undefined }), ''); - - st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D'); - st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D='); - st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D='); - st.end(); - }); - - t.test('url encodes values', function (st) { - st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); - st.end(); - }); - - t.test('stringifies a date', function (st) { - var now = new Date(); - var str = 'a=' + encodeURIComponent(now.toISOString()); - st.equal(qs.stringify({ a: now }), str); - st.end(); - }); - - t.test('stringifies the weird object from qs', function (st) { - st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F'); - st.end(); - }); - - t.test('skips properties that are part of the object prototype', function (st) { - st.intercept(Object.prototype, 'crash', { value: 'test' }); - - st.equal(qs.stringify({ a: 'b' }), 'a=b'); - st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); - - st.end(); - }); - - t.test('stringifies boolean values', function (st) { - st.equal(qs.stringify({ a: true }), 'a=true'); - st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true'); - st.equal(qs.stringify({ b: false }), 'b=false'); - st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false'); - st.end(); - }); - - t.test('stringifies buffer values', function (st) { - st.equal(qs.stringify({ a: SaferBuffer.from('test') }), 'a=test'); - st.equal(qs.stringify({ a: { b: SaferBuffer.from('test') } }), 'a%5Bb%5D=test'); - st.end(); - }); - - t.test('stringifies an object using an alternative delimiter', function (st) { - st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); - st.end(); - }); - - t.test('does not blow up when Buffer global is missing', function (st) { - var restore = mockProperty(global, 'Buffer', { 'delete': true }); - - var result = qs.stringify({ a: 'b', c: 'd' }); - - restore(); - - st.equal(result, 'a=b&c=d'); - st.end(); - }); - - t.test('does not crash when parsing circular references', function (st) { - var a = {}; - a.b = a; - - st['throws']( - function () { qs.stringify({ 'foo[bar]': 'baz', 'foo[baz]': a }); }, - /RangeError: Cyclic object value/, - 'cyclic values throw' - ); - - var circular = { - a: 'value' - }; - circular.a = circular; - st['throws']( - function () { qs.stringify(circular); }, - /RangeError: Cyclic object value/, - 'cyclic values throw' - ); - - var arr = ['a']; - st.doesNotThrow( - function () { qs.stringify({ x: arr, y: arr }); }, - 'non-cyclic values do not throw' - ); - - st.end(); - }); - - t.test('non-circular duplicated references can still work', function (st) { - var hourOfDay = { - 'function': 'hour_of_day' - }; - - var p1 = { - 'function': 'gte', - arguments: [hourOfDay, 0] - }; - var p2 = { - 'function': 'lte', - arguments: [hourOfDay, 23] - }; - - st.equal( - qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'indices' }), - 'filters[$and][0][function]=gte&filters[$and][0][arguments][0][function]=hour_of_day&filters[$and][0][arguments][1]=0&filters[$and][1][function]=lte&filters[$and][1][arguments][0][function]=hour_of_day&filters[$and][1][arguments][1]=23' - ); - st.equal( - qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), - 'filters[$and][][function]=gte&filters[$and][][arguments][][function]=hour_of_day&filters[$and][][arguments][]=0&filters[$and][][function]=lte&filters[$and][][arguments][][function]=hour_of_day&filters[$and][][arguments][]=23' - ); - st.equal( - qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), - 'filters[$and][function]=gte&filters[$and][arguments][function]=hour_of_day&filters[$and][arguments]=0&filters[$and][function]=lte&filters[$and][arguments][function]=hour_of_day&filters[$and][arguments]=23' - ); - - st.end(); - }); - - t.test('selects properties when filter=array', function (st) { - st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b'); - st.equal(qs.stringify({ a: 1 }, { filter: [] }), ''); - - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2], arrayFormat: 'indices' } - ), - 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' } - ), - 'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2] } - ), - 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', - 'default => indices' - ); - - st.end(); - }); - - t.test('supports custom representations when filter=function', function (st) { - var calls = 0; - var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } }; - var filterFunc = function (prefix, value) { - calls += 1; - if (calls === 1) { - st.equal(prefix, '', 'prefix is empty'); - st.equal(value, obj); - } else if (prefix === 'c') { - return void 0; - } else if (value instanceof Date) { - st.equal(prefix, 'e[f]'); - return value.getTime(); - } - return value; - }; - - st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000'); - st.equal(calls, 5); - st.end(); - }); - - t.test('can disable uri encoding', function (st) { - st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b'); - st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c'); - st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c'); - st.end(); - }); - - t.test('can sort the keys', function (st) { - var sort = function (a, b) { - return a.localeCompare(b); - }; - st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y'); - st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a'); - st.end(); - }); - - t.test('can sort the keys at depth 3 or more too', function (st) { - var sort = function (a, b) { - return a.localeCompare(b); - }; - st.equal( - qs.stringify( - { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, - { sort: sort, encode: false } - ), - 'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb' - ); - st.equal( - qs.stringify( - { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, - { sort: null, encode: false } - ), - 'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b' - ); - st.end(); - }); - - t.test('can stringify with custom encoding', function (st) { - st.equal(qs.stringify({ 県: '大阪府', '': '' }, { - encoder: function (str) { - if (str.length === 0) { - return ''; - } - var buf = iconv.encode(str, 'shiftjis'); - var result = []; - for (var i = 0; i < buf.length; ++i) { - result.push(buf.readUInt8(i).toString(16)); - } - return '%' + result.join('%'); - } - }), '%8c%a7=%91%e5%8d%e3%95%7b&='); - st.end(); - }); - - t.test('receives the default encoder as a second argument', function (st) { - st.plan(8); - - qs.stringify({ a: 1, b: new Date(), c: true, d: [1] }, { - encoder: function (str) { - st.match(typeof str, /^(?:string|number|boolean)$/); - return ''; - } - }); - - st.end(); - }); - - t.test('receives the default encoder as a second argument', function (st) { - st.plan(2); - - qs.stringify({ a: 1 }, { - encoder: function (str, defaultEncoder) { - st.equal(defaultEncoder, utils.encode); - } - }); - - st.end(); - }); - - t.test('throws error with wrong encoder', function (st) { - st['throws'](function () { - qs.stringify({}, { encoder: 'string' }); - }, new TypeError('Encoder has to be a function.')); - st.end(); - }); - - t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) { - st.equal(qs.stringify({ a: SaferBuffer.from([1]) }, { - encoder: function (buffer) { - if (typeof buffer === 'string') { - return buffer; - } - return String.fromCharCode(buffer.readUInt8(0) + 97); - } - }), 'a=b'); - - st.equal(qs.stringify({ a: SaferBuffer.from('a b') }, { - encoder: function (buffer) { - return buffer; - } - }), 'a=a b'); - st.end(); - }); - - t.test('serializeDate option', function (st) { - var date = new Date(); - st.equal( - qs.stringify({ a: date }), - 'a=' + date.toISOString().replace(/:/g, '%3A'), - 'default is toISOString' - ); - - var mutatedDate = new Date(); - mutatedDate.toISOString = function () { - throw new SyntaxError(); - }; - st['throws'](function () { - mutatedDate.toISOString(); - }, SyntaxError); - st.equal( - qs.stringify({ a: mutatedDate }), - 'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'), - 'toISOString works even when method is not locally present' - ); - - var specificDate = new Date(6); - st.equal( - qs.stringify( - { a: specificDate }, - { serializeDate: function (d) { return d.getTime() * 7; } } - ), - 'a=42', - 'custom serializeDate function called' - ); - - st.equal( - qs.stringify( - { a: [date] }, - { - serializeDate: function (d) { return d.getTime(); }, - arrayFormat: 'comma' - } - ), - 'a=' + date.getTime(), - 'works with arrayFormat comma' - ); - st.equal( - qs.stringify( - { a: [date] }, - { - serializeDate: function (d) { return d.getTime(); }, - arrayFormat: 'comma', - commaRoundTrip: true - } - ), - 'a%5B%5D=' + date.getTime(), - 'works with arrayFormat comma' - ); - - st.end(); - }); - - t.test('RFC 1738 serialization', function (st) { - st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c'); - st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d'); - st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC1738 }), 'a+b=a+b'); - - st.equal(qs.stringify({ 'foo(ref)': 'bar' }, { format: qs.formats.RFC1738 }), 'foo(ref)=bar'); - - st.end(); - }); - - t.test('RFC 3986 spaces serialization', function (st) { - st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c'); - st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d'); - st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC3986 }), 'a%20b=a%20b'); - - st.end(); - }); - - t.test('Backward compatibility to RFC 3986', function (st) { - st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); - st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }), 'a%20b=a%20b'); - - st.end(); - }); - - t.test('Edge cases and unknown formats', function (st) { - ['UFO1234', false, 1234, null, {}, []].forEach(function (format) { - st['throws']( - function () { - qs.stringify({ a: 'b c' }, { format: format }); - }, - new TypeError('Unknown format option provided.') - ); - }); - st.end(); - }); - - t.test('encodeValuesOnly', function (st) { - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, - { encodeValuesOnly: true, arrayFormat: 'indices' } - ), - 'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h', - 'encodeValuesOnly + indices' - ); - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, - { encodeValuesOnly: true, arrayFormat: 'brackets' } - ), - 'a=b&c[]=d&c[]=e%3Df&f[][]=g&f[][]=h', - 'encodeValuesOnly + brackets' - ); - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, - { encodeValuesOnly: true, arrayFormat: 'repeat' } - ), - 'a=b&c=d&c=e%3Df&f=g&f=h', - 'encodeValuesOnly + repeat' - ); - - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, - { arrayFormat: 'indices' } - ), - 'a=b&c%5B0%5D=d&c%5B1%5D=e&f%5B0%5D%5B0%5D=g&f%5B1%5D%5B0%5D=h', - 'no encodeValuesOnly + indices' - ); - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, - { arrayFormat: 'brackets' } - ), - 'a=b&c%5B%5D=d&c%5B%5D=e&f%5B%5D%5B%5D=g&f%5B%5D%5B%5D=h', - 'no encodeValuesOnly + brackets' - ); - st.equal( - qs.stringify( - { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, - { arrayFormat: 'repeat' } - ), - 'a=b&c=d&c=e&f=g&f=h', - 'no encodeValuesOnly + repeat' - ); - - st.end(); - }); - - t.test('encodeValuesOnly - strictNullHandling', function (st) { - st.equal( - qs.stringify( - { a: { b: null } }, - { encodeValuesOnly: true, strictNullHandling: true } - ), - 'a[b]' - ); - st.end(); - }); - - t.test('throws if an invalid charset is specified', function (st) { - st['throws'](function () { - qs.stringify({ a: 'b' }, { charset: 'foobar' }); - }, new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined')); - st.end(); - }); - - t.test('respects a charset of iso-8859-1', function (st) { - st.equal(qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' }), '%E6=%E6'); - st.end(); - }); - - t.test('encodes unrepresentable chars as numeric entities in iso-8859-1 mode', function (st) { - st.equal(qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' }), 'a=%26%239786%3B'); - st.end(); - }); - - t.test('respects an explicit charset of utf-8 (the default)', function (st) { - st.equal(qs.stringify({ a: 'æ' }, { charset: 'utf-8' }), 'a=%C3%A6'); - st.end(); - }); - - t.test('`charsetSentinel` option', function (st) { - st.equal( - qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'utf-8' }), - 'utf8=%E2%9C%93&a=%C3%A6', - 'adds the right sentinel when instructed to and the charset is utf-8' - ); - - st.equal( - qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' }), - 'utf8=%26%2310003%3B&a=%E6', - 'adds the right sentinel when instructed to and the charset is iso-8859-1' - ); - - st.end(); - }); - - t.test('does not mutate the options argument', function (st) { - var options = {}; - qs.stringify({}, options); - st.deepEqual(options, {}); - st.end(); - }); - - t.test('strictNullHandling works with custom filter', function (st) { - var filter = function (prefix, value) { - return value; - }; - - var options = { strictNullHandling: true, filter: filter }; - st.equal(qs.stringify({ key: null }, options), 'key'); - st.end(); - }); - - t.test('strictNullHandling works with null serializeDate', function (st) { - var serializeDate = function () { - return null; - }; - var options = { strictNullHandling: true, serializeDate: serializeDate }; - var date = new Date(); - st.equal(qs.stringify({ key: date }, options), 'key'); - st.end(); - }); - - t.test('allows for encoding keys and values differently', function (st) { - var encoder = function (str, defaultEncoder, charset, type) { - if (type === 'key') { - return defaultEncoder(str, defaultEncoder, charset, type).toLowerCase(); - } - if (type === 'value') { - return defaultEncoder(str, defaultEncoder, charset, type).toUpperCase(); - } - throw 'this should never happen! type: ' + type; - }; - - st.deepEqual(qs.stringify({ KeY: 'vAlUe' }, { encoder: encoder }), 'key=VALUE'); - st.end(); - }); - - t.test('objects inside arrays', function (st) { - var obj = { a: { b: { c: 'd', e: 'f' } } }; - var withArray = { a: { b: [{ c: 'd', e: 'f' }] } }; - - st.equal(qs.stringify(obj, { encode: false }), 'a[b][c]=d&a[b][e]=f', 'no array, no arrayFormat'); - st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'brackets' }), 'a[b][c]=d&a[b][e]=f', 'no array, bracket'); - st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'indices' }), 'a[b][c]=d&a[b][e]=f', 'no array, indices'); - st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'repeat' }), 'a[b][c]=d&a[b][e]=f', 'no array, repeat'); - st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'comma' }), 'a[b][c]=d&a[b][e]=f', 'no array, comma'); - - st.equal(qs.stringify(withArray, { encode: false }), 'a[b][0][c]=d&a[b][0][e]=f', 'array, no arrayFormat'); - st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'brackets' }), 'a[b][][c]=d&a[b][][e]=f', 'array, bracket'); - st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'indices' }), 'a[b][0][c]=d&a[b][0][e]=f', 'array, indices'); - st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'repeat' }), 'a[b][c]=d&a[b][e]=f', 'array, repeat'); - st.equal( - qs.stringify(withArray, { encode: false, arrayFormat: 'comma' }), - '???', - 'array, comma', - { skip: 'TODO: figure out what this should do' } - ); - - st.end(); - }); - - t.test('stringifies sparse arrays', function (st) { - /* eslint no-sparse-arrays: 0 */ - st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1]=2&a[4]=1'); - st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=2&a[]=1'); - st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=2&a=1'); - - st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][b][2][c]=1'); - st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][b][][c]=1'); - st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[b][c]=1'); - - st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][2][3][c]=1'); - st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][][][c]=1'); - st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[c]=1'); - - st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][2][3][c][1]=1'); - st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][][][c][]=1'); - st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[c]=1'); - - st.end(); - }); - - t.test('encodes a very long string', function (st) { - var chars = []; - var expected = []; - for (var i = 0; i < 5e3; i++) { - chars.push(' ' + i); - - expected.push('%20' + i); - } - - var obj = { - foo: chars.join('') - }; - - st.equal( - qs.stringify(obj, { arrayFormat: 'bracket', charset: 'utf-8' }), - 'foo=' + expected.join('') - ); - - st.end(); - }); - - t.end(); -}); - -test('stringifies empty keys', function (t) { - emptyTestCases.forEach(function (testCase) { - t.test('stringifies an object with empty string key with ' + testCase.input, function (st) { - st.deepEqual( - qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'indices' }), - testCase.stringifyOutput.indices, - 'test case: ' + testCase.input + ', indices' - ); - st.deepEqual( - qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'brackets' }), - testCase.stringifyOutput.brackets, - 'test case: ' + testCase.input + ', brackets' - ); - st.deepEqual( - qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'repeat' }), - testCase.stringifyOutput.repeat, - 'test case: ' + testCase.input + ', repeat' - ); - - st.end(); - }); - }); - - t.test('edge case with object/arrays', function (st) { - st.deepEqual(qs.stringify({ '': { '': [2, 3] } }, { encode: false }), '[][0]=2&[][1]=3'); - st.deepEqual(qs.stringify({ '': { '': [2, 3], a: 2 } }, { encode: false }), '[][0]=2&[][1]=3&[a]=2'); - st.deepEqual(qs.stringify({ '': { '': [2, 3] } }, { encode: false, arrayFormat: 'indices' }), '[][0]=2&[][1]=3'); - st.deepEqual(qs.stringify({ '': { '': [2, 3], a: 2 } }, { encode: false, arrayFormat: 'indices' }), '[][0]=2&[][1]=3&[a]=2'); - - st.end(); - }); -}); diff --git a/node_modules/qs/test/utils.js b/node_modules/qs/test/utils.js deleted file mode 100644 index aa84dfdc..00000000 --- a/node_modules/qs/test/utils.js +++ /dev/null @@ -1,136 +0,0 @@ -'use strict'; - -var test = require('tape'); -var inspect = require('object-inspect'); -var SaferBuffer = require('safer-buffer').Buffer; -var forEach = require('for-each'); -var utils = require('../lib/utils'); - -test('merge()', function (t) { - t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null'); - - t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array'); - - t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); - - var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } }); - t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array'); - - var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } }); - t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array'); - - var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' }); - t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array'); - - var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] }); - t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] }); - - var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar'); - t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true }); - - t.test( - 'avoids invoking array setters unnecessarily', - { skip: typeof Object.defineProperty !== 'function' }, - function (st) { - var setCount = 0; - var getCount = 0; - var observed = []; - Object.defineProperty(observed, 0, { - get: function () { - getCount += 1; - return { bar: 'baz' }; - }, - set: function () { setCount += 1; } - }); - utils.merge(observed, [null]); - st.equal(setCount, 0); - st.equal(getCount, 1); - observed[0] = observed[0]; // eslint-disable-line no-self-assign - st.equal(setCount, 1); - st.equal(getCount, 2); - st.end(); - } - ); - - t.end(); -}); - -test('assign()', function (t) { - var target = { a: 1, b: 2 }; - var source = { b: 3, c: 4 }; - var result = utils.assign(target, source); - - t.equal(result, target, 'returns the target'); - t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged'); - t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched'); - - t.end(); -}); - -test('combine()', function (t) { - t.test('both arrays', function (st) { - var a = [1]; - var b = [2]; - var combined = utils.combine(a, b); - - st.deepEqual(a, [1], 'a is not mutated'); - st.deepEqual(b, [2], 'b is not mutated'); - st.notEqual(a, combined, 'a !== combined'); - st.notEqual(b, combined, 'b !== combined'); - st.deepEqual(combined, [1, 2], 'combined is a + b'); - - st.end(); - }); - - t.test('one array, one non-array', function (st) { - var aN = 1; - var a = [aN]; - var bN = 2; - var b = [bN]; - - var combinedAnB = utils.combine(aN, b); - st.deepEqual(b, [bN], 'b is not mutated'); - st.notEqual(aN, combinedAnB, 'aN + b !== aN'); - st.notEqual(a, combinedAnB, 'aN + b !== a'); - st.notEqual(bN, combinedAnB, 'aN + b !== bN'); - st.notEqual(b, combinedAnB, 'aN + b !== b'); - st.deepEqual([1, 2], combinedAnB, 'first argument is array-wrapped when not an array'); - - var combinedABn = utils.combine(a, bN); - st.deepEqual(a, [aN], 'a is not mutated'); - st.notEqual(aN, combinedABn, 'a + bN !== aN'); - st.notEqual(a, combinedABn, 'a + bN !== a'); - st.notEqual(bN, combinedABn, 'a + bN !== bN'); - st.notEqual(b, combinedABn, 'a + bN !== b'); - st.deepEqual([1, 2], combinedABn, 'second argument is array-wrapped when not an array'); - - st.end(); - }); - - t.test('neither is an array', function (st) { - var combined = utils.combine(1, 2); - st.notEqual(1, combined, '1 + 2 !== 1'); - st.notEqual(2, combined, '1 + 2 !== 2'); - st.deepEqual([1, 2], combined, 'both arguments are array-wrapped when not an array'); - - st.end(); - }); - - t.end(); -}); - -test('isBuffer()', function (t) { - forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], function () {}, /a/g], function (x) { - t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer'); - }); - - var fakeBuffer = { constructor: Buffer }; - t.equal(utils.isBuffer(fakeBuffer), false, 'fake buffer is not a buffer'); - - var saferBuffer = SaferBuffer.from('abc'); - t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer'); - - var buffer = Buffer.from && Buffer.alloc ? Buffer.from('abc') : new Buffer('abc'); - t.equal(utils.isBuffer(buffer), true, 'real Buffer instance is a buffer'); - t.end(); -}); diff --git a/node_modules/raw-body/node_modules/bytes/History.md b/node_modules/raw-body/node_modules/bytes/History.md deleted file mode 100644 index d60ce0e6..00000000 --- a/node_modules/raw-body/node_modules/bytes/History.md +++ /dev/null @@ -1,97 +0,0 @@ -3.1.2 / 2022-01-27 -================== - - * Fix return value for un-parsable strings - -3.1.1 / 2021-11-15 -================== - - * Fix "thousandsSeparator" incorrecting formatting fractional part - -3.1.0 / 2019-01-22 -================== - - * Add petabyte (`pb`) support - -3.0.0 / 2017-08-31 -================== - - * Change "kB" to "KB" in format output - * Remove support for Node.js 0.6 - * Remove support for ComponentJS - -2.5.0 / 2017-03-24 -================== - - * Add option "unit" - -2.4.0 / 2016-06-01 -================== - - * Add option "unitSeparator" - -2.3.0 / 2016-02-15 -================== - - * Drop partial bytes on all parsed units - * Fix non-finite numbers to `.format` to return `null` - * Fix parsing byte string that looks like hex - * perf: hoist regular expressions - -2.2.0 / 2015-11-13 -================== - - * add option "decimalPlaces" - * add option "fixedDecimals" - -2.1.0 / 2015-05-21 -================== - - * add `.format` export - * add `.parse` export - -2.0.2 / 2015-05-20 -================== - - * remove map recreation - * remove unnecessary object construction - -2.0.1 / 2015-05-07 -================== - - * fix browserify require - * remove node.extend dependency - -2.0.0 / 2015-04-12 -================== - - * add option "case" - * add option "thousandsSeparator" - * return "null" on invalid parse input - * support proper round-trip: bytes(bytes(num)) === num - * units no longer case sensitive when parsing - -1.0.0 / 2014-05-05 -================== - - * add negative support. fixes #6 - -0.3.0 / 2014-03-19 -================== - - * added terabyte support - -0.2.1 / 2013-04-01 -================== - - * add .component - -0.2.0 / 2012-10-28 -================== - - * bytes(200).should.eql('200b') - -0.1.0 / 2012-07-04 -================== - - * add bytes to string conversion [yields] diff --git a/node_modules/raw-body/node_modules/bytes/LICENSE b/node_modules/raw-body/node_modules/bytes/LICENSE deleted file mode 100644 index 63e95a96..00000000 --- a/node_modules/raw-body/node_modules/bytes/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2012-2014 TJ Holowaychuk -Copyright (c) 2015 Jed Watson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/raw-body/node_modules/bytes/Readme.md b/node_modules/raw-body/node_modules/bytes/Readme.md deleted file mode 100644 index 5790e23e..00000000 --- a/node_modules/raw-body/node_modules/bytes/Readme.md +++ /dev/null @@ -1,152 +0,0 @@ -# Bytes utility - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa. - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```bash -$ npm install bytes -``` - -## Usage - -```js -var bytes = require('bytes'); -``` - -#### bytes(number|string value, [options]): number|string|null - -Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`. - -**Arguments** - -| Name | Type | Description | -|---------|----------|--------------------| -| value | `number`|`string` | Number value to format or string value to parse | -| options | `Object` | Conversion options for `format` | - -**Returns** - -| Name | Type | Description | -|---------|------------------|-------------------------------------------------| -| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. | - -**Example** - -```js -bytes(1024); -// output: '1KB' - -bytes('1KB'); -// output: 1024 -``` - -#### bytes.format(number value, [options]): string|null - -Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is - rounded. - -**Arguments** - -| Name | Type | Description | -|---------|----------|--------------------| -| value | `number` | Value in bytes | -| options | `Object` | Conversion options | - -**Options** - -| Property | Type | Description | -|-------------------|--------|-----------------------------------------------------------------------------------------| -| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. | -| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` | -| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. | -| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). | -| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. | - -**Returns** - -| Name | Type | Description | -|---------|------------------|-------------------------------------------------| -| results | `string`|`null` | Return null upon error. String value otherwise. | - -**Example** - -```js -bytes.format(1024); -// output: '1KB' - -bytes.format(1000); -// output: '1000B' - -bytes.format(1000, {thousandsSeparator: ' '}); -// output: '1 000B' - -bytes.format(1024 * 1.7, {decimalPlaces: 0}); -// output: '2KB' - -bytes.format(1024, {unitSeparator: ' '}); -// output: '1 KB' -``` - -#### bytes.parse(string|number value): number|null - -Parse the string value into an integer in bytes. If no unit is given, or `value` -is a number, it is assumed the value is in bytes. - -Supported units and abbreviations are as follows and are case-insensitive: - - * `b` for bytes - * `kb` for kilobytes - * `mb` for megabytes - * `gb` for gigabytes - * `tb` for terabytes - * `pb` for petabytes - -The units are in powers of two, not ten. This means 1kb = 1024b according to this parser. - -**Arguments** - -| Name | Type | Description | -|---------------|--------|--------------------| -| value | `string`|`number` | String to parse, or number in bytes. | - -**Returns** - -| Name | Type | Description | -|---------|-------------|-------------------------| -| results | `number`|`null` | Return null upon error. Value in bytes otherwise. | - -**Example** - -```js -bytes.parse('1KB'); -// output: 1024 - -bytes.parse('1024'); -// output: 1024 - -bytes.parse(1024); -// output: 1024 -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci -[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci -[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master -[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master -[downloads-image]: https://badgen.net/npm/dm/bytes -[downloads-url]: https://npmjs.org/package/bytes -[npm-image]: https://badgen.net/npm/v/bytes -[npm-url]: https://npmjs.org/package/bytes diff --git a/node_modules/raw-body/node_modules/bytes/index.js b/node_modules/raw-body/node_modules/bytes/index.js deleted file mode 100644 index 6f2d0f89..00000000 --- a/node_modules/raw-body/node_modules/bytes/index.js +++ /dev/null @@ -1,170 +0,0 @@ -/*! - * bytes - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015 Jed Watson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = bytes; -module.exports.format = format; -module.exports.parse = parse; - -/** - * Module variables. - * @private - */ - -var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g; - -var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/; - -var map = { - b: 1, - kb: 1 << 10, - mb: 1 << 20, - gb: 1 << 30, - tb: Math.pow(1024, 4), - pb: Math.pow(1024, 5), -}; - -var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; - -/** - * Convert the given value in bytes into a string or parse to string to an integer in bytes. - * - * @param {string|number} value - * @param {{ - * case: [string], - * decimalPlaces: [number] - * fixedDecimals: [boolean] - * thousandsSeparator: [string] - * unitSeparator: [string] - * }} [options] bytes options. - * - * @returns {string|number|null} - */ - -function bytes(value, options) { - if (typeof value === 'string') { - return parse(value); - } - - if (typeof value === 'number') { - return format(value, options); - } - - return null; -} - -/** - * Format the given value in bytes into a string. - * - * If the value is negative, it is kept as such. If it is a float, - * it is rounded. - * - * @param {number} value - * @param {object} [options] - * @param {number} [options.decimalPlaces=2] - * @param {number} [options.fixedDecimals=false] - * @param {string} [options.thousandsSeparator=] - * @param {string} [options.unit=] - * @param {string} [options.unitSeparator=] - * - * @returns {string|null} - * @public - */ - -function format(value, options) { - if (!Number.isFinite(value)) { - return null; - } - - var mag = Math.abs(value); - var thousandsSeparator = (options && options.thousandsSeparator) || ''; - var unitSeparator = (options && options.unitSeparator) || ''; - var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2; - var fixedDecimals = Boolean(options && options.fixedDecimals); - var unit = (options && options.unit) || ''; - - if (!unit || !map[unit.toLowerCase()]) { - if (mag >= map.pb) { - unit = 'PB'; - } else if (mag >= map.tb) { - unit = 'TB'; - } else if (mag >= map.gb) { - unit = 'GB'; - } else if (mag >= map.mb) { - unit = 'MB'; - } else if (mag >= map.kb) { - unit = 'KB'; - } else { - unit = 'B'; - } - } - - var val = value / map[unit.toLowerCase()]; - var str = val.toFixed(decimalPlaces); - - if (!fixedDecimals) { - str = str.replace(formatDecimalsRegExp, '$1'); - } - - if (thousandsSeparator) { - str = str.split('.').map(function (s, i) { - return i === 0 - ? s.replace(formatThousandsRegExp, thousandsSeparator) - : s - }).join('.'); - } - - return str + unitSeparator + unit; -} - -/** - * Parse the string value into an integer in bytes. - * - * If no unit is given, it is assumed the value is in bytes. - * - * @param {number|string} val - * - * @returns {number|null} - * @public - */ - -function parse(val) { - if (typeof val === 'number' && !isNaN(val)) { - return val; - } - - if (typeof val !== 'string') { - return null; - } - - // Test if the string passed is valid - var results = parseRegExp.exec(val); - var floatValue; - var unit = 'b'; - - if (!results) { - // Nothing could be extracted from the given string - floatValue = parseInt(val, 10); - unit = 'b' - } else { - // Retrieve the value and the unit - floatValue = parseFloat(results[1]); - unit = results[4].toLowerCase(); - } - - if (isNaN(floatValue)) { - return null; - } - - return Math.floor(map[unit] * floatValue); -} diff --git a/node_modules/raw-body/node_modules/bytes/package.json b/node_modules/raw-body/node_modules/bytes/package.json deleted file mode 100644 index f2b6a8b0..00000000 --- a/node_modules/raw-body/node_modules/bytes/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "bytes", - "description": "Utility to parse a string bytes to bytes and vice-versa", - "version": "3.1.2", - "author": "TJ Holowaychuk (http://tjholowaychuk.com)", - "contributors": [ - "Jed Watson ", - "Théo FIDRY " - ], - "license": "MIT", - "keywords": [ - "byte", - "bytes", - "utility", - "parse", - "parser", - "convert", - "converter" - ], - "repository": "visionmedia/bytes.js", - "devDependencies": { - "eslint": "7.32.0", - "eslint-plugin-markdown": "2.2.1", - "mocha": "9.2.0", - "nyc": "15.1.0" - }, - "files": [ - "History.md", - "LICENSE", - "Readme.md", - "index.js" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --check-leaks --reporter spec", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/node_modules/readable-stream/README.md b/node_modules/readable-stream/README.md index 6f035ab1..19117c1a 100644 --- a/node_modules/readable-stream/README.md +++ b/node_modules/readable-stream/README.md @@ -15,7 +15,7 @@ npm install --save readable-stream This package is a mirror of the streams implementations in Node.js. -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.19.0/docs/api/stream.html). +Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.18.1/docs/api/stream.html). If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). diff --git a/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/readable-stream/lib/_stream_duplex.js index 67525192..19abfa60 100644 --- a/node_modules/readable-stream/lib/_stream_duplex.js +++ b/node_modules/readable-stream/lib/_stream_duplex.js @@ -18,60 +18,48 @@ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. + // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. + 'use strict'; -/**/ +/**/ var objectKeys = Object.keys || function (obj) { var keys = []; - - for (var key in obj) { - keys.push(key); - } - + for (var key in obj) keys.push(key); return keys; }; /**/ - module.exports = Duplex; - var Readable = require('./_stream_readable'); - var Writable = require('./_stream_writable'); - require('inherits')(Duplex, Readable); - { // Allow the keys array to be GC'ed. var keys = objectKeys(Writable.prototype); - for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } } - function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); this.allowHalfOpen = true; - if (options) { if (options.readable === false) this.readable = false; if (options.writable === false) this.writable = false; - if (options.allowHalfOpen === false) { this.allowHalfOpen = false; this.once('end', onend); } } } - Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -98,20 +86,20 @@ Object.defineProperty(Duplex.prototype, 'writableLength', { get: function get() { return this._writableState.length; } -}); // the no-half-open enforcer +}); +// the no-half-open enforcer function onend() { // If the writable side ended, then we're ok. - if (this._writableState.ended) return; // no more data can be written. - // But allow more writes to happen in this tick. + if (this._writableState.ended) return; + // no more data can be written. + // But allow more writes to happen in this tick. process.nextTick(onEndNT, this); } - function onEndNT(self) { self.end(); } - Object.defineProperty(Duplex.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -121,7 +109,6 @@ Object.defineProperty(Duplex.prototype, 'destroyed', { if (this._readableState === undefined || this._writableState === undefined) { return false; } - return this._readableState.destroyed && this._writableState.destroyed; }, set: function set(value) { @@ -129,10 +116,10 @@ Object.defineProperty(Duplex.prototype, 'destroyed', { // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { return; - } // backward compatibility, the user is explicitly - // managing destroyed - + } + // backward compatibility, the user is explicitly + // managing destroyed this._readableState.destroyed = value; this._writableState.destroyed = value; } diff --git a/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/readable-stream/lib/_stream_passthrough.js index 32e7414c..24a6bdde 100644 --- a/node_modules/readable-stream/lib/_stream_passthrough.js +++ b/node_modules/readable-stream/lib/_stream_passthrough.js @@ -18,22 +18,20 @@ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. + // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. + 'use strict'; module.exports = PassThrough; - var Transform = require('./_stream_transform'); - require('inherits')(PassThrough, Transform); - function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } - PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; \ No newline at end of file diff --git a/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readable-stream/lib/_stream_readable.js index 192d4514..df1f608d 100644 --- a/node_modules/readable-stream/lib/_stream_readable.js +++ b/node_modules/readable-stream/lib/_stream_readable.js @@ -18,49 +18,40 @@ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. + 'use strict'; module.exports = Readable; -/**/ +/**/ var Duplex; /**/ Readable.ReadableState = ReadableState; -/**/ +/**/ var EE = require('events').EventEmitter; - var EElistenerCount = function EElistenerCount(emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ - - var Stream = require('./internal/streams/stream'); /**/ - var Buffer = require('buffer').Buffer; - -var OurUint8Array = global.Uint8Array || function () {}; - +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } - function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } -/**/ - +/**/ var debugUtil = require('util'); - var debug; - if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { @@ -68,60 +59,57 @@ if (debugUtil && debugUtil.debuglog) { } /**/ - var BufferList = require('./internal/streams/buffer_list'); - var destroyImpl = require('./internal/streams/destroy'); - var _require = require('./internal/streams/state'), - getHighWaterMark = _require.getHighWaterMark; - + getHighWaterMark = _require.getHighWaterMark; var _require$codes = require('../errors').codes, - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance. - + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; +// Lazy loaded to improve the startup performance. var StringDecoder; var createReadableStreamAsyncIterator; var from; - require('inherits')(Readable, Stream); - var errorOrDestroy = destroyImpl.errorOrDestroy; var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; - function prependListener(emitter, event, fn) { // Sadly this is not cacheable as some libraries bundle their own // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + + // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } - function ReadableState(options, stream, isDuplex) { Duplex = Duplex || require('./_stream_duplex'); - options = options || {}; // Duplex streams are both readable and writable, but share + options = options || {}; + + // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream. // These options can be provided separately as readableXXX and writableXXX. + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to + // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + + // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" + this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); - this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the + // A linked list is used to store data chunks instead of an array because the // linked list can remove elements from the beginning faster than // array.shift() - this.buffer = new BufferList(); this.length = 0; this.pipes = null; @@ -129,61 +117,66 @@ function ReadableState(options, stream, isDuplex) { this.flowing = null; this.ended = false; this.endEmitted = false; - this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted + this.reading = false; + + // a flag to be able to tell if the event 'readable'/'data' is emitted // immediately, or on a later tick. We set this to true at first, because // any actions that shouldn't happen until "later" should generally also // not happen before the first read call. + this.sync = true; - this.sync = true; // whenever we return null, then we set a flag to say + // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. - this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; - this.paused = true; // Should close be emitted on destroy. Defaults to true. + this.paused = true; - this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish') + // Should close be emitted on destroy. Defaults to true. + this.emitClose = options.emitClose !== false; - this.autoDestroy = !!options.autoDestroy; // has it been destroyed + // Should .destroy() be called after 'end' (and potentially 'finish') + this.autoDestroy = !!options.autoDestroy; - this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string + // has it been destroyed + this.destroyed = false; + + // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; - this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s - - this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; - if (options.encoding) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } - function Readable(options) { Duplex = Duplex || require('./_stream_duplex'); - if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside - // the ReadableState constructor, at least with V8 6.5 + if (!(this instanceof Readable)) return new Readable(options); + // Checking for a Stream.Duplex instance is faster here instead of inside + // the ReadableState constructor, at least with V8 6.5 var isDuplex = this instanceof Duplex; - this._readableState = new ReadableState(options, this, isDuplex); // legacy + this._readableState = new ReadableState(options, this, isDuplex); + // legacy this.readable = true; - if (options) { if (typeof options.read === 'function') this._read = options.read; if (typeof options.destroy === 'function') this._destroy = options.destroy; } - Stream.call(this); } - Object.defineProperty(Readable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -193,7 +186,6 @@ Object.defineProperty(Readable.prototype, 'destroyed', { if (this._readableState === undefined) { return false; } - return this._readableState.destroyed; }, set: function set(value) { @@ -201,69 +193,60 @@ Object.defineProperty(Readable.prototype, 'destroyed', { // has not been initialized yet if (!this._readableState) { return; - } // backward compatibility, the user is explicitly - // managing destroyed - + } + // backward compatibility, the user is explicitly + // managing destroyed this._readableState.destroyed = value; } }); Readable.prototype.destroy = destroyImpl.destroy; Readable.prototype._undestroy = destroyImpl.undestroy; - Readable.prototype._destroy = function (err, cb) { cb(err); -}; // Manually shove something into the read() buffer. +}; + +// Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. - - Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; var skipChunkCheck; - if (!state.objectMode) { if (typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { chunk = Buffer.from(chunk, encoding); encoding = ''; } - skipChunkCheck = true; } } else { skipChunkCheck = true; } - return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); -}; // Unshift should *always* be something directly out of read() - +}; +// Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { return readableAddChunk(this, chunk, null, true, false); }; - function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { debug('readableAddChunk', chunk); var state = stream._readableState; - if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else { var er; if (!skipChunkCheck) er = chunkInvalid(state, chunk); - if (er) { errorOrDestroy(stream, er); } else if (state.objectMode || chunk && chunk.length > 0) { if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { chunk = _uint8ArrayToBuffer(chunk); } - if (addToFront) { if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); } else if (state.ended) { @@ -272,7 +255,6 @@ function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { return false; } else { state.reading = false; - if (state.decoder && !encoding) { chunk = state.decoder.write(chunk); if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); @@ -284,14 +266,13 @@ function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { state.reading = false; maybeReadMore(stream, state); } - } // We can push more data if we are below the highWaterMark. + } + + // We can push more data if we are below the highWaterMark. // Also, if we have no data yet, we can stand some more bytes. // This is to work around cases where hwm=0, such as the repl. - - return !state.ended && (state.length < state.highWaterMark || state.length === 0); } - function addChunk(stream, state, chunk, addToFront) { if (state.flowing && state.length === 0 && !state.sync) { state.awaitDrain = 0; @@ -302,50 +283,42 @@ function addChunk(stream, state, chunk, addToFront) { if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } - maybeReadMore(stream, state); } - function chunkInvalid(state, chunk) { var er; - if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); } - return er; } - Readable.prototype.isPaused = function () { return this._readableState.flowing === false; -}; // backwards compatibility. - +}; +// backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; var decoder = new StringDecoder(enc); - this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8 - - this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers: + this._readableState.decoder = decoder; + // If setEncoding(null), decoder.encoding equals utf8 + this._readableState.encoding = this._readableState.decoder.encoding; + // Iterate over current buffer to convert already stored Buffers: var p = this._readableState.buffer.head; var content = ''; - while (p !== null) { content += decoder.write(p.data); p = p.next; } - this._readableState.buffer.clear(); - if (content !== '') this._readableState.buffer.push(content); this._readableState.length = content.length; return this; -}; // Don't raise the hwm > 1GB - +}; +// Don't raise the hwm > 1GB var MAX_HWM = 0x40000000; - function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. @@ -361,55 +334,54 @@ function computeNewHighWaterMark(n) { n |= n >>> 16; n++; } - return n; -} // This function is designed to be inlinable, so please take care when making -// changes to the function body. - +} +// This function is designed to be inlinable, so please take care when making +// changes to the function body. function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; - if (n !== n) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } // If we're asking for more than the current hwm, then raise the hwm. - - + } + // If we're asking for more than the current hwm, then raise the hwm. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; // Don't have enough - + if (n <= state.length) return n; + // Don't have enough if (!state.ended) { state.needReadable = true; return 0; } - return state.length; -} // you can override either this method, or the async _read(n) below. - +} +// you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; - if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we + if (n !== 0) state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. - if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } + n = howMuchToRead(n, state); - n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. - + // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; - } // All the actual chunk generation logic needs to be + } + + // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change @@ -430,40 +402,37 @@ Readable.prototype.read = function (n) { // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. - // if we need a readable event, then we need to do some reading. - + // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; - debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some + debug('need readable', doRead); + // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); - } // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - + } + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } else if (doRead) { debug('do read'); state.reading = true; - state.sync = true; // if the length is currently zero, then we *need* a readable event. - - if (state.length === 0) state.needReadable = true; // call internal read method - + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) state.needReadable = true; + // call internal read method this._read(state.highWaterMark); - - state.sync = false; // If _read pushed data synchronously, then `reading` will be false, + state.sync = false; + // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); } - var ret; if (n > 0) ret = fromList(n, state);else ret = null; - if (ret === null) { state.needReadable = state.length <= state.highWaterMark; n = 0; @@ -471,34 +440,28 @@ Readable.prototype.read = function (n) { state.length -= n; state.awaitDrain = 0; } - if (state.length === 0) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. + if (!state.ended) state.needReadable = true; + // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended) endReadable(this); } - if (ret !== null) this.emit('data', ret); return ret; }; - function onEofChunk(stream, state) { debug('onEofChunk'); if (state.ended) return; - if (state.decoder) { var chunk = state.decoder.end(); - if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } - state.ended = true; - if (state.sync) { // if we are sync, wait until next tick to emit the data. // Otherwise we risk emitting data in the flow() @@ -507,61 +470,56 @@ function onEofChunk(stream, state) { } else { // emit 'readable' now to make sure it gets picked up. state.needReadable = false; - if (!state.emittedReadable) { state.emittedReadable = true; emitReadable_(stream); } } -} // Don't emit readable right away in sync mode, because this can trigger +} + +// Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. - - function emitReadable(stream) { var state = stream._readableState; debug('emitReadable', state.needReadable, state.emittedReadable); state.needReadable = false; - if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; process.nextTick(emitReadable_, stream); } } - function emitReadable_(stream) { var state = stream._readableState; debug('emitReadable_', state.destroyed, state.length, state.ended); - if (!state.destroyed && (state.length || state.ended)) { stream.emit('readable'); state.emittedReadable = false; - } // The stream needs another readable event if + } + + // The stream needs another readable event if // 1. It is not flowing, as the flow mechanism will take // care of it. // 2. It is not ended. // 3. It is below the highWaterMark, so we can schedule // another readable later. - - state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; flow(stream); -} // at this point, the user has presumably seen the 'readable' event, +} + +// at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. - - function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; process.nextTick(maybeReadMore_, stream, state); } } - function maybeReadMore_(stream, state) { // Attempt to read more data if we should. // @@ -590,49 +548,42 @@ function maybeReadMore_(stream, state) { var len = state.length; debug('maybeReadMore read 0'); stream.read(0); - if (len === state.length) // didn't get any data, stop spinning. + if (len === state.length) + // didn't get any data, stop spinning. break; } - state.readingMore = false; -} // abstract method. to be overridden in specific implementation classes. +} + +// abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. - - Readable.prototype._read = function (n) { errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); }; - Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; - switch (state.pipesCount) { case 0: state.pipes = dest; break; - case 1: state.pipes = [state.pipes, dest]; break; - default: state.pipes.push(dest); break; } - state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : unpipe; if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); - function onunpipe(readable, unpipeInfo) { debug('onunpipe'); - if (readable === src) { if (unpipeInfo && unpipeInfo.hasUnpiped === false) { unpipeInfo.hasUnpiped = true; @@ -640,23 +591,21 @@ Readable.prototype.pipe = function (dest, pipeOpts) { } } } - function onend() { debug('onend'); dest.end(); - } // when the dest drains, it reduces the awaitDrain counter + } + + // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. - - var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; - function cleanup() { - debug('cleanup'); // cleanup event handlers once the pipe is broken - + debug('cleanup'); + // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); @@ -665,22 +614,20 @@ Readable.prototype.pipe = function (dest, pipeOpts) { src.removeListener('end', onend); src.removeListener('end', unpipe); src.removeListener('data', ondata); - cleanedUp = true; // if the reader is waiting for a drain event from this + cleanedUp = true; + + // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } - src.on('data', ondata); - function ondata(chunk) { debug('ondata'); var ret = dest.write(chunk); debug('dest.write', ret); - if (ret === false) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write @@ -690,87 +637,84 @@ Readable.prototype.pipe = function (dest, pipeOpts) { debug('false write response, pause', state.awaitDrain); state.awaitDrain++; } - src.pause(); } - } // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - + } + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); - } // Make sure our error handler is attached before userland ones. - + } - prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. + // Make sure our error handler is attached before userland ones. + prependListener(dest, 'error', onerror); + // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } - dest.once('close', onclose); - function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } - dest.once('finish', onfinish); - function unpipe() { debug('unpipe'); src.unpipe(dest); - } // tell the dest that it's being piped to - + } - dest.emit('pipe', src); // start the flow if it hasn't been started already. + // tell the dest that it's being piped to + dest.emit('pipe', src); + // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } - return dest; }; - function pipeOnDrain(src) { return function pipeOnDrainFunctionResult() { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } - Readable.prototype.unpipe = function (dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false - }; // if we're not piping anywhere, then do nothing. + }; - if (state.pipesCount === 0) return this; // just one destination. most common case. + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) return this; + // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; - if (!dest) dest = state.pipes; // got a match. + if (!dest) dest = state.pipes; + // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this, unpipeInfo); return this; - } // slow case. multiple pipe destinations. + } + // slow case. multiple pipe destinations. if (!dest) { // remove all. @@ -779,17 +723,13 @@ Readable.prototype.unpipe = function (dest) { state.pipes = null; state.pipesCount = 0; state.flowing = false; - - for (var i = 0; i < len; i++) { - dests[i].emit('unpipe', this, { - hasUnpiped: false - }); - } - + for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { + hasUnpiped: false + }); return this; - } // try to find the right one. - + } + // try to find the right one. var index = indexOf(state.pipes, dest); if (index === -1) return this; state.pipes.splice(index, 1); @@ -797,19 +737,19 @@ Readable.prototype.unpipe = function (dest) { if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this, unpipeInfo); return this; -}; // set up data events if they are asked for -// Ensure readable listeners eventually get something - +}; +// set up data events if they are asked for +// Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); var state = this._readableState; - if (ev === 'data') { // update readableListening so that resume() may be a no-op // a few lines down. This is needed to support once('readable'). - state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused + state.readableListening = this.listenerCount('readable') > 0; + // Try start flowing on next tick if stream isn't explicitly paused if (state.flowing !== false) this.resume(); } else if (ev === 'readable') { if (!state.endEmitted && !state.readableListening) { @@ -817,7 +757,6 @@ Readable.prototype.on = function (ev, fn) { state.flowing = false; state.emittedReadable = false; debug('on readable', state.length, state.reading); - if (state.length) { emitReadable(this); } else if (!state.reading) { @@ -825,15 +764,11 @@ Readable.prototype.on = function (ev, fn) { } } } - return res; }; - Readable.prototype.addListener = Readable.prototype.on; - Readable.prototype.removeListener = function (ev, fn) { var res = Stream.prototype.removeListener.call(this, ev, fn); - if (ev === 'readable') { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen @@ -843,13 +778,10 @@ Readable.prototype.removeListener = function (ev, fn) { // effect. process.nextTick(updateReadableListening, this); } - return res; }; - Readable.prototype.removeAllListeners = function (ev) { var res = Stream.prototype.removeAllListeners.apply(this, arguments); - if (ev === 'readable' || ev === undefined) { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen @@ -859,121 +791,103 @@ Readable.prototype.removeAllListeners = function (ev) { // effect. process.nextTick(updateReadableListening, this); } - return res; }; - function updateReadableListening(self) { var state = self._readableState; state.readableListening = self.listenerCount('readable') > 0; - if (state.resumeScheduled && !state.paused) { // flowing needs to be set to true now, otherwise // the upcoming resume will not flow. - state.flowing = true; // crude way to check if we should resume + state.flowing = true; + + // crude way to check if we should resume } else if (self.listenerCount('data') > 0) { self.resume(); } } - function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); -} // pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. - +} +// pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; - if (!state.flowing) { - debug('resume'); // we flow only if there is no one listening + debug('resume'); + // we flow only if there is no one listening // for readable, but we still have to call // resume() - state.flowing = !state.readableListening; resume(this, state); } - state.paused = false; return this; }; - function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; process.nextTick(resume_, stream, state); } } - function resume_(stream, state) { debug('resume', state.reading); - if (!state.reading) { stream.read(0); } - state.resumeScheduled = false; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } - Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); - if (this._readableState.flowing !== false) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } - this._readableState.paused = true; return this; }; - function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); + while (state.flowing && stream.read() !== null); +} - while (state.flowing && stream.read() !== null) { - ; - } -} // wrap an old-style stream as the async data source. +// wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. - - Readable.prototype.wrap = function (stream) { var _this = this; - var state = this._readableState; var paused = false; stream.on('end', function () { debug('wrapped end'); - if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) _this.push(chunk); } - _this.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode + if (state.decoder) chunk = state.decoder.write(chunk); + // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - var ret = _this.push(chunk); - if (!ret) { paused = true; stream.pause(); } - }); // proxy all the other methods. - // important when wrapping filters and duplexes. + }); + // proxy all the other methods. + // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function methodWrap(method) { @@ -982,37 +896,32 @@ Readable.prototype.wrap = function (stream) { }; }(i); } - } // proxy certain important events. - + } + // proxy certain important events. for (var n = 0; n < kProxyEvents.length; n++) { stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); - } // when we try to consume some more bytes, simply unpause the - // underlying stream. - + } + // when we try to consume some more bytes, simply unpause the + // underlying stream. this._read = function (n) { debug('wrapped _read', n); - if (paused) { paused = false; stream.resume(); } }; - return this; }; - if (typeof Symbol === 'function') { Readable.prototype[Symbol.asyncIterator] = function () { if (createReadableStreamAsyncIterator === undefined) { createReadableStreamAsyncIterator = require('./internal/streams/async_iterator'); } - return createReadableStreamAsyncIterator(this); }; } - Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -1044,8 +953,9 @@ Object.defineProperty(Readable.prototype, 'readableFlowing', { this._readableState.flowing = state; } } -}); // exposed for testing purposes only. +}); +// exposed for testing purposes only. Readable._fromList = fromList; Object.defineProperty(Readable.prototype, 'readableLength', { // making it explicit this property is not enumerable @@ -1055,11 +965,12 @@ Object.defineProperty(Readable.prototype, 'readableLength', { get: function get() { return this._readableState.length; } -}); // Pluck off n bytes from an array of buffers. +}); + +// Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. // This function is designed to be inlinable, so please take care when making // changes to the function body. - function fromList(n, state) { // nothing buffered if (state.length === 0) return null; @@ -1074,51 +985,43 @@ function fromList(n, state) { } return ret; } - function endReadable(stream) { var state = stream._readableState; debug('endReadable', state.endEmitted); - if (!state.endEmitted) { state.ended = true; process.nextTick(endReadableNT, state, stream); } } - function endReadableNT(state, stream) { - debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift. + debug('endReadableNT', state.endEmitted, state.length); + // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); - if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the writable side is ready for autoDestroy as well var wState = stream._writableState; - if (!wState || wState.autoDestroy && wState.finished) { stream.destroy(); } } } } - if (typeof Symbol === 'function') { Readable.from = function (iterable, opts) { if (from === undefined) { from = require('./internal/streams/from'); } - return from(Readable, iterable, opts); }; } - function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } - return -1; } \ No newline at end of file diff --git a/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/readable-stream/lib/_stream_transform.js index 41a738c4..1ccb7157 100644 --- a/node_modules/readable-stream/lib/_stream_transform.js +++ b/node_modules/readable-stream/lib/_stream_transform.js @@ -18,6 +18,7 @@ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. + // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where @@ -59,42 +60,36 @@ // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. + 'use strict'; module.exports = Transform; - var _require$codes = require('../errors').codes, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, - ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; - + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, + ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; var Duplex = require('./_stream_duplex'); - require('inherits')(Transform, Duplex); - function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; var cb = ts.writecb; - if (cb === null) { return this.emit('error', new ERR_MULTIPLE_CALLBACK()); } - ts.writechunk = null; ts.writecb = null; - if (data != null) // single equals check for both `null` and `undefined` + if (data != null) + // single equals check for both `null` and `undefined` this.push(data); cb(er); var rs = this._readableState; rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { this._read(rs.highWaterMark); } } - function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); @@ -105,26 +100,25 @@ function Transform(options) { writecb: null, writechunk: null, writeencoding: null - }; // start out asking for a readable event once data is transformed. + }; + + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; - this._readableState.needReadable = true; // we have implemented the _read method, and done the other things + // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. - this._readableState.sync = false; - if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; - } // When the writable side finishes, then flush out anything remaining. - + } + // When the writable side finishes, then flush out anything remaining. this.on('prefinish', prefinish); } - function prefinish() { var _this = this; - if (typeof this._flush === 'function' && !this._readableState.destroyed) { this._flush(function (er, data) { done(_this, er, data); @@ -133,11 +127,12 @@ function prefinish() { done(this, null, null); } } - Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); -}; // This is the part where you do stuff! +}; + +// This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // @@ -147,33 +142,27 @@ Transform.prototype.push = function (chunk, encoding) { // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. - - Transform.prototype._transform = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); }; - Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; - if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } -}; // Doesn't matter what the args are here. +}; + +// Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. - - Transform.prototype._read = function (n) { var ts = this._transformState; - if (ts.writechunk !== null && !ts.transforming) { ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in @@ -181,20 +170,20 @@ Transform.prototype._read = function (n) { ts.needTransform = true; } }; - Transform.prototype._destroy = function (err, cb) { Duplex.prototype._destroy.call(this, err, function (err2) { cb(err2); }); }; - function done(stream, er, data) { if (er) return stream.emit('error', er); - if (data != null) // single equals check for both `null` and `undefined` - stream.push(data); // TODO(BridgeAR): Write a test for these two error cases + if (data != null) + // single equals check for both `null` and `undefined` + stream.push(data); + + // TODO(BridgeAR): Write a test for these two error cases // if there's nothing in the write buffer, then that means // that nothing more will ever be provided - if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); return stream.push(null); diff --git a/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/readable-stream/lib/_stream_writable.js index a2634d7c..292415e2 100644 --- a/node_modules/readable-stream/lib/_stream_writable.js +++ b/node_modules/readable-stream/lib/_stream_writable.js @@ -18,29 +18,29 @@ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. + // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. + 'use strict'; module.exports = Writable; -/* */ +/* */ function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; -} // It seems a linked list but it is not -// there will be only 2 of these for each stream - +} +// It seems a linked list but it is not +// there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; - this.next = null; this.entry = null; - this.finish = function () { onCorkedFinish(_this, state); }; @@ -48,155 +48,159 @@ function CorkedRequest(state) { /* */ /**/ - - var Duplex; /**/ Writable.WritableState = WritableState; -/**/ +/**/ var internalUtil = { deprecate: require('util-deprecate') }; /**/ /**/ - var Stream = require('./internal/streams/stream'); /**/ - var Buffer = require('buffer').Buffer; - -var OurUint8Array = global.Uint8Array || function () {}; - +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } - function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } - var destroyImpl = require('./internal/streams/destroy'); - var _require = require('./internal/streams/state'), - getHighWaterMark = _require.getHighWaterMark; - + getHighWaterMark = _require.getHighWaterMark; var _require$codes = require('../errors').codes, - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, - ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, - ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, - ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; - + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, + ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, + ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, + ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; var errorOrDestroy = destroyImpl.errorOrDestroy; - require('inherits')(Writable, Stream); - function nop() {} - function WritableState(options, stream, isDuplex) { Duplex = Duplex || require('./_stream_duplex'); - options = options || {}; // Duplex streams are both readable and writable, but share + options = options || {}; + + // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream, // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream + // object stream flag to indicate whether or not this stream // contains buffers or objects. - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + + // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() + this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); - this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called + // if _final has been called + this.finalCalled = false; - this.finalCalled = false; // drain event flag. + // drain event flag. + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; - this.needDrain = false; // at the start of calling end() + // has it been destroyed + this.destroyed = false; - this.ending = false; // when end() has been called, and returned - - this.ended = false; // when 'finish' is emitted - - this.finished = false; // has it been destroyed - - this.destroyed = false; // should we decode strings into buffers before passing to _write? + // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; - this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement + // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. + this.length = 0; - this.length = 0; // a flag to see when we're in the middle of a write. + // a flag to see when we're in the middle of a write. + this.writing = false; - this.writing = false; // when true all writes will be buffered until .uncork() call + // when true all writes will be buffered until .uncork() call + this.corked = 0; - this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, + // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. + this.sync = true; - this.sync = true; // a flag to know if we're processing previously buffered items, which + // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. + this.bufferProcessing = false; - this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) - + // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); - }; // the callback that the user supplies to write(chunk,encoding,cb) - + }; - this.writecb = null; // the amount that is being written when _write is called. + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; + // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; - this.lastBufferedRequest = null; // number of pending user-supplied write callbacks + this.lastBufferedRequest = null; + + // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; - this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs + // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams + this.prefinished = false; - this.prefinished = false; // True if the error was already emitted and should not be thrown again + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; - this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true. + // Should close be emitted on destroy. Defaults to true. + this.emitClose = options.emitClose !== false; - this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end') + // Should .destroy() be called after 'finish' (and potentially 'end') + this.autoDestroy = !!options.autoDestroy; - this.autoDestroy = !!options.autoDestroy; // count buffered requests + // count buffered requests + this.bufferedRequestCount = 0; - this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always + // allocate the first CorkedRequest, there is always // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); } - WritableState.prototype.getBuffer = function getBuffer() { var current = this.bufferedRequest; var out = []; - while (current) { out.push(current); current = current.next; } - return out; }; - (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { @@ -205,12 +209,11 @@ WritableState.prototype.getBuffer = function getBuffer() { }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') }); } catch (_) {} -})(); // Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. - +})(); +// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. var realHasInstance; - if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { realHasInstance = Function.prototype[Symbol.hasInstance]; Object.defineProperty(Writable, Symbol.hasInstance, { @@ -225,81 +228,73 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot return object instanceof this; }; } - function Writable(options) { - Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too. + Duplex = Duplex || require('./_stream_duplex'); + + // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` // would return false, as no `_writableState` property is attached. + // Trying to use the custom `instanceof` for Writable here will also break the // Node.js LazyTransform implementation, which has a non-trivial getter for // `_writableState` that would lead to infinite recursion. + // Checking for a Stream.Duplex instance is faster here instead of inside // the WritableState constructor, at least with V8 6.5 - var isDuplex = this instanceof Duplex; if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); - this._writableState = new WritableState(options, this, isDuplex); // legacy. + this._writableState = new WritableState(options, this, isDuplex); + // legacy. this.writable = true; - if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; if (typeof options.destroy === 'function') this._destroy = options.destroy; if (typeof options.final === 'function') this._final = options.final; } - Stream.call(this); -} // Otherwise people can pipe Writable streams, which is just wrong. - +} +// Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); }; - function writeAfterEnd(stream, cb) { - var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb - + var er = new ERR_STREAM_WRITE_AFTER_END(); + // TODO: defer error events consistently everywhere, not just the cb errorOrDestroy(stream, er); process.nextTick(cb, er); -} // Checks that a user-supplied chunk is valid, especially for the particular +} + +// Checks that a user-supplied chunk is valid, especially for the particular // mode the stream is in. Currently this means that `null` is never accepted // and undefined/non-string values are only allowed in object mode. - - function validChunk(stream, state, chunk, cb) { var er; - if (chunk === null) { er = new ERR_STREAM_NULL_VALUES(); } else if (typeof chunk !== 'string' && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); } - if (er) { errorOrDestroy(stream, er); process.nextTick(cb, er); return false; } - return true; } - Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; - var isBuf = !state.objectMode && _isUint8Array(chunk); - if (isBuf && !Buffer.isBuffer(chunk)) { chunk = _uint8ArrayToBuffer(chunk); } - if (typeof encoding === 'function') { cb = encoding; encoding = null; } - if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { @@ -308,20 +303,16 @@ Writable.prototype.write = function (chunk, encoding, cb) { } return ret; }; - Writable.prototype.cork = function () { this._writableState.corked++; }; - Writable.prototype.uncork = function () { var state = this._writableState; - if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; - Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); @@ -329,7 +320,6 @@ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { this._writableState.defaultEncoding = encoding; return this; }; - Object.defineProperty(Writable.prototype, 'writableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -339,15 +329,12 @@ Object.defineProperty(Writable.prototype, 'writableBuffer', { return this._writableState && this._writableState.getBuffer(); } }); - function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = Buffer.from(chunk, encoding); } - return chunk; } - Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -356,27 +343,25 @@ Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { get: function get() { return this._writableState.highWaterMark; } -}); // if we're already writing something, then just put this +}); + +// if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. - function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { if (!isBuf) { var newChunk = decodeChunk(state, chunk, encoding); - if (chunk !== newChunk) { isBuf = true; encoding = 'buffer'; chunk = newChunk; } } - var len = state.objectMode ? 1 : chunk.length; state.length += len; - var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. - + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; - if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = { @@ -386,21 +371,17 @@ function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { callback: cb, next: null }; - if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } - state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } - return ret; } - function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; @@ -409,16 +390,14 @@ function doWrite(stream, state, writev, len, chunk, encoding, cb) { if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } - function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; - if (sync) { // defer the callback if we are being called synchronously // to avoid piling up things on the stack - process.nextTick(cb, er); // this can emit finish, and it will always happen + process.nextTick(cb, er); + // this can emit finish, and it will always happen // after error - process.nextTick(finishMaybe, stream, state); stream._writableState.errorEmitted = true; errorOrDestroy(stream, er); @@ -427,20 +406,18 @@ function onwriteError(stream, state, sync, er, cb) { // it is async cb(er); stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); // this can emit finish, but finish must + errorOrDestroy(stream, er); + // this can emit finish, but finish must // always follow error - finishMaybe(stream, state); } } - function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } - function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; @@ -450,11 +427,9 @@ function onwrite(stream, er) { if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state) || stream.destroyed; - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } - if (sync) { process.nextTick(afterWrite, stream, state, finished, cb); } else { @@ -462,29 +437,27 @@ function onwrite(stream, er) { } } } - function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); -} // Must force callback to be called on nextTick, so that we don't +} + +// Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. - - function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } -} // if there's something in the buffer waiting, then process it - +} +// if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; - if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; @@ -493,28 +466,25 @@ function clearBuffer(stream, state) { holder.entry = entry; var count = 0; var allBuffers = true; - while (entry) { buffer[count] = entry; if (!entry.isBuf) allBuffers = false; entry = entry.next; count += 1; } - buffer.allBuffers = allBuffers; - doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite + doWrite(stream, state, true, state.length, buffer, '', holder.finish); + // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; - if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } - state.bufferedRequestCount = 0; } else { // Slow case, write chunks one-by-one @@ -525,32 +495,26 @@ function clearBuffer(stream, state) { var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; - state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then + state.bufferedRequestCount--; + // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. - if (state.writing) { break; } } - if (entry === null) state.lastBufferedRequest = null; } - state.bufferedRequest = entry; state.bufferProcessing = false; } - Writable.prototype._write = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); }; - Writable.prototype._writev = null; - Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; - if (typeof chunk === 'function') { cb = chunk; chunk = null; @@ -559,19 +523,18 @@ Writable.prototype.end = function (chunk, encoding, cb) { cb = encoding; encoding = null; } + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks - + // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); - } // ignore unnecessary end() calls. - + } + // ignore unnecessary end() calls. if (!state.ending) endWritable(this, state, cb); return this; }; - Object.defineProperty(Writable.prototype, 'writableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -581,25 +544,20 @@ Object.defineProperty(Writable.prototype, 'writableLength', { return this._writableState.length; } }); - function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } - function callFinal(stream, state) { stream._final(function (err) { state.pendingcb--; - if (err) { errorOrDestroy(stream, err); } - state.prefinished = true; stream.emit('prefinish'); finishMaybe(stream, state); }); } - function prefinish(stream, state) { if (!state.prefinished && !state.finalCalled) { if (typeof stream._final === 'function' && !state.destroyed) { @@ -612,59 +570,47 @@ function prefinish(stream, state) { } } } - function finishMaybe(stream, state) { var need = needFinish(state); - if (need) { prefinish(stream, state); - if (state.pendingcb === 0) { state.finished = true; stream.emit('finish'); - if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the readable side is ready for autoDestroy as well var rState = stream._readableState; - if (!rState || rState.autoDestroy && rState.endEmitted) { stream.destroy(); } } } } - return need; } - function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); - if (cb) { if (state.finished) process.nextTick(cb);else stream.once('finish', cb); } - state.ended = true; stream.writable = false; } - function onCorkedFinish(corkReq, state, err) { var entry = corkReq.entry; corkReq.entry = null; - while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; - } // reuse the free corkReq. - + } + // reuse the free corkReq. state.corkedRequestsFree.next = corkReq; } - Object.defineProperty(Writable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in @@ -674,7 +620,6 @@ Object.defineProperty(Writable.prototype, 'destroyed', { if (this._writableState === undefined) { return false; } - return this._writableState.destroyed; }, set: function set(value) { @@ -682,16 +627,15 @@ Object.defineProperty(Writable.prototype, 'destroyed', { // has not been initialized yet if (!this._writableState) { return; - } // backward compatibility, the user is explicitly - // managing destroyed - + } + // backward compatibility, the user is explicitly + // managing destroyed this._writableState.destroyed = value; } }); Writable.prototype.destroy = destroyImpl.destroy; Writable.prototype._undestroy = destroyImpl.undestroy; - Writable.prototype._destroy = function (err, cb) { cb(err); }; \ No newline at end of file diff --git a/node_modules/readable-stream/lib/internal/streams/async_iterator.js b/node_modules/readable-stream/lib/internal/streams/async_iterator.js index 9fb615a2..742c5a46 100644 --- a/node_modules/readable-stream/lib/internal/streams/async_iterator.js +++ b/node_modules/readable-stream/lib/internal/streams/async_iterator.js @@ -1,11 +1,10 @@ 'use strict'; var _Object$setPrototypeO; - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var finished = require('./end-of-stream'); - var kLastResolve = Symbol('lastResolve'); var kLastReject = Symbol('lastReject'); var kError = Symbol('error'); @@ -13,22 +12,19 @@ var kEnded = Symbol('ended'); var kLastPromise = Symbol('lastPromise'); var kHandlePromise = Symbol('handlePromise'); var kStream = Symbol('stream'); - function createIterResult(value, done) { return { value: value, done: done }; } - function readAndResolve(iter) { var resolve = iter[kLastResolve]; - if (resolve !== null) { - var data = iter[kStream].read(); // we defer if data is null + var data = iter[kStream].read(); + // we defer if data is null // we can be expecting either 'end' or // 'error' - if (data !== null) { iter[kLastPromise] = null; iter[kLastResolve] = null; @@ -37,13 +33,11 @@ function readAndResolve(iter) { } } } - function onReadable(iter) { // we wait for the next tick, because it might // emit an error with process.nextTick process.nextTick(readAndResolve, iter); } - function wrapForNext(lastPromise, iter) { return function (resolve, reject) { lastPromise.then(function () { @@ -51,33 +45,26 @@ function wrapForNext(lastPromise, iter) { resolve(createIterResult(undefined, true)); return; } - iter[kHandlePromise](resolve, reject); }, reject); }; } - var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { get stream() { return this[kStream]; }, - next: function next() { var _this = this; - // if we have detected an error in the meanwhile // reject straight away var error = this[kError]; - if (error !== null) { return Promise.reject(error); } - if (this[kEnded]) { return Promise.resolve(createIterResult(undefined, true)); } - if (this[kStream].destroyed) { // We need to defer via nextTick because if .destroy(err) is // called, the error will be emitted via nextTick, and @@ -92,29 +79,25 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro } }); }); - } // if we have multiple next() calls + } + + // if we have multiple next() calls // we will wait for the previous Promise to finish // this logic is optimized to support for await loops, // where next() is only called once at a time - - var lastPromise = this[kLastPromise]; var promise; - if (lastPromise) { promise = new Promise(wrapForNext(lastPromise, this)); } else { // fast path needed to support multiple this.push() // without triggering the next() queue var data = this[kStream].read(); - if (data !== null) { return Promise.resolve(createIterResult(data, false)); } - promise = new Promise(this[kHandlePromise]); } - this[kLastPromise] = promise; return promise; } @@ -122,7 +105,6 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro return this; }), _defineProperty(_Object$setPrototypeO, "return", function _return() { var _this2 = this; - // destroy(err, cb) is a private API // we can guarantee we have that here, because we control the // Readable class this is attached to @@ -132,15 +114,12 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro reject(err); return; } - resolve(createIterResult(undefined, true)); }); }); }), _Object$setPrototypeO), AsyncIteratorPrototype); - var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { var _Object$create; - var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { value: stream, writable: true @@ -159,7 +138,6 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat }), _defineProperty(_Object$create, kHandlePromise, { value: function value(resolve, reject) { var data = iterator[kStream].read(); - if (data) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; @@ -175,33 +153,28 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat iterator[kLastPromise] = null; finished(stream, function (err) { if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { - var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise + var reject = iterator[kLastReject]; + // reject if we are waiting for data in the Promise // returned by next() and store the error - if (reject !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; reject(err); } - iterator[kError] = err; return; } - var resolve = iterator[kLastResolve]; - if (resolve !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; resolve(createIterResult(undefined, true)); } - iterator[kEnded] = true; }); stream.on('readable', onReadable.bind(null, iterator)); return iterator; }; - module.exports = createReadableStreamAsyncIterator; \ No newline at end of file diff --git a/node_modules/readable-stream/lib/internal/streams/buffer_list.js b/node_modules/readable-stream/lib/internal/streams/buffer_list.js index cdea425f..69bda497 100644 --- a/node_modules/readable-stream/lib/internal/streams/buffer_list.js +++ b/node_modules/readable-stream/lib/internal/streams/buffer_list.js @@ -1,40 +1,28 @@ 'use strict'; -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var _require = require('buffer'), - Buffer = _require.Buffer; - + Buffer = _require.Buffer; var _require2 = require('util'), - inspect = _require2.inspect; - + inspect = _require2.inspect; var custom = inspect && inspect.custom || 'inspect'; - function copyBuffer(src, target, offset) { Buffer.prototype.copy.call(src, target, offset); } - -module.exports = -/*#__PURE__*/ -function () { +module.exports = /*#__PURE__*/function () { function BufferList() { _classCallCheck(this, BufferList); - this.head = null; this.tail = null; this.length = 0; } - _createClass(BufferList, [{ key: "push", value: function push(v) { @@ -78,11 +66,7 @@ function () { if (this.length === 0) return ''; var p = this.head; var ret = '' + p.data; - - while (p = p.next) { - ret += s + p.data; - } - + while (p = p.next) ret += s + p.data; return ret; } }, { @@ -92,21 +76,19 @@ function () { var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; - while (p) { copyBuffer(p.data, ret, i); i += p.data.length; p = p.next; } - return ret; - } // Consumes a specified amount of bytes or characters from the buffered data. + } + // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: function consume(n, hasStrings) { var ret; - if (n < this.head.data.length) { // `slice` is the same for buffers and strings. ret = this.head.data.slice(0, n); @@ -118,15 +100,15 @@ function () { // Result spans more than one buffer. ret = hasStrings ? this._getString(n) : this._getBuffer(n); } - return ret; } }, { key: "first", value: function first() { return this.head.data; - } // Consumes a specified amount of characters from the buffered data. + } + // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: function _getString(n) { @@ -134,13 +116,11 @@ function () { var c = 1; var ret = p.data; n -= ret.length; - while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str;else ret += str.slice(0, n); n -= nb; - if (n === 0) { if (nb === str.length) { ++c; @@ -149,17 +129,15 @@ function () { this.head = p; p.data = str.slice(nb); } - break; } - ++c; } - this.length -= c; return ret; - } // Consumes a specified amount of bytes from the buffered data. + } + // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: function _getBuffer(n) { @@ -168,13 +146,11 @@ function () { var c = 1; p.data.copy(ret); n -= p.data.length; - while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; - if (n === 0) { if (nb === buf.length) { ++c; @@ -183,21 +159,19 @@ function () { this.head = p; p.data = buf.slice(nb); } - break; } - ++c; } - this.length -= c; return ret; - } // Make sure the linked list only shows the minimal necessary information. + } + // Make sure the linked list only shows the minimal necessary information. }, { key: custom, value: function value(_, options) { - return inspect(this, _objectSpread({}, options, { + return inspect(this, _objectSpread(_objectSpread({}, options), {}, { // Only inspect one level. depth: 0, // It should not recurse. @@ -205,6 +179,5 @@ function () { })); } }]); - return BufferList; }(); \ No newline at end of file diff --git a/node_modules/readable-stream/lib/internal/streams/destroy.js b/node_modules/readable-stream/lib/internal/streams/destroy.js index 3268a16f..31a17c4d 100644 --- a/node_modules/readable-stream/lib/internal/streams/destroy.js +++ b/node_modules/readable-stream/lib/internal/streams/destroy.js @@ -1,11 +1,10 @@ -'use strict'; // undocumented cb() API, needed for core, not for public API +'use strict'; +// undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; - var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; - if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); @@ -17,21 +16,20 @@ function destroy(err, cb) { process.nextTick(emitErrorNT, this, err); } } - return this; - } // we set destroyed to true before firing error callbacks in order - // to make it re-entrance safe in case destroy() is called within callbacks + } + // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks if (this._readableState) { this._readableState.destroyed = true; - } // if this is a duplex stream mark the writable part as destroyed as well - + } + // if this is a duplex stream mark the writable part as destroyed as well if (this._writableState) { this._writableState.destroyed = true; } - this._destroy(err || null, function (err) { if (!cb && err) { if (!_this._writableState) { @@ -49,21 +47,17 @@ function destroy(err, cb) { process.nextTick(emitCloseNT, _this); } }); - return this; } - function emitErrorAndCloseNT(self, err) { emitErrorNT(self, err); emitCloseNT(self); } - function emitCloseNT(self) { if (self._writableState && !self._writableState.emitClose) return; if (self._readableState && !self._readableState.emitClose) return; self.emit('close'); } - function undestroy() { if (this._readableState) { this._readableState.destroyed = false; @@ -71,7 +65,6 @@ function undestroy() { this._readableState.ended = false; this._readableState.endEmitted = false; } - if (this._writableState) { this._writableState.destroyed = false; this._writableState.ended = false; @@ -82,22 +75,20 @@ function undestroy() { this._writableState.errorEmitted = false; } } - function emitErrorNT(self, err) { self.emit('error', err); } - function errorOrDestroy(stream, err) { // We have tests that rely on errors being emitted // in the same tick, so changing this is semver major. // For now when you opt-in to autoDestroy we allow // the error to be emitted nextTick. In a future // semver major update we should change the default to this. + var rState = stream._readableState; var wState = stream._writableState; if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); } - module.exports = { destroy: destroy, undestroy: undestroy, diff --git a/node_modules/readable-stream/lib/internal/streams/end-of-stream.js b/node_modules/readable-stream/lib/internal/streams/end-of-stream.js index 831f286d..59c671b5 100644 --- a/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +++ b/node_modules/readable-stream/lib/internal/streams/end-of-stream.js @@ -1,78 +1,62 @@ // Ported from https://github.com/mafintosh/end-of-stream with // permission from the author, Mathias Buus (@mafintosh). + 'use strict'; var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE; - function once(callback) { var called = false; return function () { if (called) return; called = true; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } - callback.apply(this, args); }; } - function noop() {} - function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } - function eos(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var readable = opts.readable || opts.readable !== false && stream.readable; var writable = opts.writable || opts.writable !== false && stream.writable; - var onlegacyfinish = function onlegacyfinish() { if (!stream.writable) onfinish(); }; - var writableEnded = stream._writableState && stream._writableState.finished; - var onfinish = function onfinish() { writable = false; writableEnded = true; if (!readable) callback.call(stream); }; - var readableEnded = stream._readableState && stream._readableState.endEmitted; - var onend = function onend() { readable = false; readableEnded = true; if (!writable) callback.call(stream); }; - var onerror = function onerror(err) { callback.call(stream, err); }; - var onclose = function onclose() { var err; - if (readable && !readableEnded) { if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } - if (writable && !writableEnded) { if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } }; - var onrequest = function onrequest() { stream.req.on('finish', onfinish); }; - if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); @@ -82,7 +66,6 @@ function eos(stream, opts, callback) { stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } - stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', onerror); @@ -100,5 +83,4 @@ function eos(stream, opts, callback) { stream.removeListener('close', onclose); }; } - module.exports = eos; \ No newline at end of file diff --git a/node_modules/readable-stream/lib/internal/streams/from.js b/node_modules/readable-stream/lib/internal/streams/from.js index 6c412844..0a34ee92 100644 --- a/node_modules/readable-stream/lib/internal/streams/from.js +++ b/node_modules/readable-stream/lib/internal/streams/from.js @@ -1,52 +1,42 @@ 'use strict'; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE; - function from(Readable, iterable, opts) { var iterator; - if (iterable && typeof iterable.next === 'function') { iterator = iterable; } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable); - var readable = new Readable(_objectSpread({ objectMode: true - }, opts)); // Reading boolean to protect against _read + }, opts)); + // Reading boolean to protect against _read // being called before last iteration completion. - var reading = false; - readable._read = function () { if (!reading) { reading = true; next(); } }; - function next() { return _next2.apply(this, arguments); } - function _next2() { _next2 = _asyncToGenerator(function* () { try { - var _ref = yield iterator.next(), - value = _ref.value, - done = _ref.done; - + var _yield$iterator$next = yield iterator.next(), + value = _yield$iterator$next.value, + done = _yield$iterator$next.done; if (done) { readable.push(null); - } else if (readable.push((yield value))) { + } else if (readable.push(yield value)) { next(); } else { reading = false; @@ -57,8 +47,6 @@ function from(Readable, iterable, opts) { }); return _next2.apply(this, arguments); } - return readable; } - -module.exports = from; \ No newline at end of file +module.exports = from; diff --git a/node_modules/readable-stream/lib/internal/streams/pipeline.js b/node_modules/readable-stream/lib/internal/streams/pipeline.js index 65899098..e6f39241 100644 --- a/node_modules/readable-stream/lib/internal/streams/pipeline.js +++ b/node_modules/readable-stream/lib/internal/streams/pipeline.js @@ -1,9 +1,9 @@ // Ported from https://github.com/mafintosh/pump with // permission from the author, Mathias Buus (@mafintosh). + 'use strict'; var eos; - function once(callback) { var called = false; return function () { @@ -12,20 +12,16 @@ function once(callback) { callback.apply(void 0, arguments); }; } - var _require$codes = require('../../../errors').codes, - ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; - + ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; function noop(err) { // Rethrow the error if it exists to avoid swallowing it if (err) throw err; } - function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } - function destroyer(stream, reading, writing, callback) { callback = once(callback); var closed = false; @@ -45,40 +41,34 @@ function destroyer(stream, reading, writing, callback) { return function (err) { if (closed) return; if (destroyed) return; - destroyed = true; // request.destroy just do .end - .abort is what we want + destroyed = true; + // request.destroy just do .end - .abort is what we want if (isRequest(stream)) return stream.abort(); if (typeof stream.destroy === 'function') return stream.destroy(); callback(err || new ERR_STREAM_DESTROYED('pipe')); }; } - function call(fn) { fn(); } - function pipe(from, to) { return from.pipe(to); } - function popCallback(streams) { if (!streams.length) return noop; if (typeof streams[streams.length - 1] !== 'function') return noop; return streams.pop(); } - function pipeline() { for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { streams[_key] = arguments[_key]; } - var callback = popCallback(streams); if (Array.isArray(streams[0])) streams = streams[0]; - if (streams.length < 2) { throw new ERR_MISSING_ARGS('streams'); } - var error; var destroys = streams.map(function (stream, i) { var reading = i < streams.length - 1; @@ -93,5 +83,4 @@ function pipeline() { }); return streams.reduce(pipe); } - module.exports = pipeline; \ No newline at end of file diff --git a/node_modules/readable-stream/lib/internal/streams/state.js b/node_modules/readable-stream/lib/internal/streams/state.js index 19887eb8..3fbf8927 100644 --- a/node_modules/readable-stream/lib/internal/streams/state.js +++ b/node_modules/readable-stream/lib/internal/streams/state.js @@ -1,27 +1,22 @@ 'use strict'; var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE; - function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } - function getHighWaterMark(state, options, duplexKey, isDuplex) { var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); - if (hwm != null) { if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { var name = isDuplex ? duplexKey : 'highWaterMark'; throw new ERR_INVALID_OPT_VALUE(name, hwm); } - return Math.floor(hwm); - } // Default value - + } + // Default value return state.objectMode ? 16 : 16 * 1024; } - module.exports = { getHighWaterMark: getHighWaterMark }; \ No newline at end of file diff --git a/node_modules/readable-stream/package.json b/node_modules/readable-stream/package.json index 0b0c4bd2..ade59e71 100644 --- a/node_modules/readable-stream/package.json +++ b/node_modules/readable-stream/package.json @@ -1,6 +1,6 @@ { "name": "readable-stream", - "version": "3.6.0", + "version": "3.6.2", "description": "Streams3, a user-land copy of the stream library from Node.js", "main": "readable.js", "engines": { diff --git a/node_modules/retry/.DS_Store b/node_modules/retry/.DS_Store deleted file mode 100644 index f5351296..00000000 Binary files a/node_modules/retry/.DS_Store and /dev/null differ diff --git a/node_modules/schema-utils/README.md b/node_modules/schema-utils/README.md index b56ab020..9f84bf17 100644 --- a/node_modules/schema-utils/README.md +++ b/node_modules/schema-utils/README.md @@ -11,10 +11,9 @@ [![npm][npm]][npm-url] [![node][node]][node-url] -[![deps][deps]][deps-url] [![tests][tests]][tests-url] [![coverage][cover]][cover-url] -[![chat][chat]][chat-url] +[![GitHub Discussions][discussion]][discussion-url] [![size][size]][size-url] # schema-utils @@ -264,6 +263,36 @@ class Plugin { export default Plugin; ``` +### Allow to disable and enable validation (the `validate` function do nothing) + +This can be useful when you don't want to do validation for `production` builds. + +```js +import { disableValidation, enableValidation, validate } from "schema-utils"; + +// Disable validation +disableValidation(); +// Do nothing +validate(schema, options); + +// Enable validation +enableValidation(); +// Will throw an error if schema is not valid +validate(schema, options); + +// Allow to undestand do you need validation or not +const need = needValidate(); + +console.log(need); +``` + +Also you can enable/disable validation using the `process.env.SKIP_VALIDATION` env variable. + +Supported values (case insensitive): + +- `yes`/`y`/`true`/`1`/`on` +- `no`/`n`/`false`/`0`/`off` + ## Contributing Please take a moment to read our contributing guidelines if you haven't yet done so. @@ -278,13 +307,11 @@ Please take a moment to read our contributing guidelines if you haven't yet done [npm-url]: https://npmjs.com/package/schema-utils [node]: https://img.shields.io/node/v/schema-utils.svg [node-url]: https://nodejs.org -[deps]: https://david-dm.org/webpack/schema-utils.svg -[deps-url]: https://david-dm.org/webpack/schema-utils [tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg [tests-url]: https://github.com/webpack/schema-utils/actions [cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg [cover-url]: https://codecov.io/gh/webpack/schema-utils -[chat]: https://badges.gitter.im/webpack/webpack.svg -[chat-url]: https://gitter.im/webpack/webpack +[discussion]: https://img.shields.io/github/discussions/webpack/webpack +[discussion-url]: https://github.com/webpack/webpack/discussions [size]: https://packagephobia.com/badge?p=schema-utils [size-url]: https://packagephobia.com/result?p=schema-utils diff --git a/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts b/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts index 0d16689b..41a54c08 100644 --- a/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +++ b/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts @@ -1,6 +1,7 @@ export default addAbsolutePathKeyword; -export type Ajv = import("ajv").Ajv; -export type ValidateFunction = import("ajv").ValidateFunction; +export type Ajv = import("ajv").default; +export type SchemaValidateFunction = import("ajv").SchemaValidateFunction; +export type AnySchemaObject = import("ajv").AnySchemaObject; export type SchemaUtilErrorObject = import("../validate").SchemaUtilErrorObject; /** * diff --git a/node_modules/schema-utils/declarations/validate.d.ts b/node_modules/schema-utils/declarations/validate.d.ts index 7f1c87f3..fc5d2ff1 100644 --- a/node_modules/schema-utils/declarations/validate.d.ts +++ b/node_modules/schema-utils/declarations/validate.d.ts @@ -2,12 +2,11 @@ export type JSONSchema4 = import("json-schema").JSONSchema4; export type JSONSchema6 = import("json-schema").JSONSchema6; export type JSONSchema7 = import("json-schema").JSONSchema7; export type ErrorObject = import("ajv").ErrorObject; -export type ValidateFunction = import("ajv").ValidateFunction; export type Extend = { - formatMinimum?: number | undefined; - formatMaximum?: number | undefined; - formatExclusiveMinimum?: boolean | undefined; - formatExclusiveMaximum?: boolean | undefined; + formatMinimum?: string | undefined; + formatMaximum?: string | undefined; + formatExclusiveMinimum?: string | undefined; + formatExclusiveMaximum?: string | undefined; link?: string | undefined; undefinedAsNull?: boolean | undefined; }; diff --git a/node_modules/schema-utils/dist/ValidationError.js b/node_modules/schema-utils/dist/ValidationError.js index bd4086fc..32fbd689 100644 --- a/node_modules/schema-utils/dist/ValidationError.js +++ b/node_modules/schema-utils/dist/ValidationError.js @@ -4,26 +4,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - -const { - stringHints, - numberHints -} = require("./util/hints"); +var _memorize = _interopRequireDefault(require("./util/memorize")); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ - /** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ /** @typedef {import("./validate").Schema} Schema */ - /** @typedef {import("./validate").ValidationErrorConfiguration} ValidationErrorConfiguration */ - /** @typedef {import("./validate").PostFormatter} PostFormatter */ - /** @typedef {import("./validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ - /** @enum {number} */ - - const SPECIFICITY = { type: 1, not: 1, @@ -58,24 +48,31 @@ const SPECIFICITY = { additionalProperties: 2, absolutePath: 2 }; + +/** + * @param {string} value + * @returns {value is number} + */ +function isNumeric(value) { + return /^-?\d+$/.test(value); +} + /** * * @param {Array} array * @param {(item: SchemaUtilErrorObject) => number} fn * @returns {Array} */ - function filterMax(array, fn) { const evaluatedMax = array.reduce((max, item) => Math.max(max, fn(item)), 0); return array.filter(item => fn(item) === evaluatedMax); } + /** * * @param {Array} children * @returns {Array} */ - - function filterChildren(children) { let newChildren = children; newChildren = filterMax(newChildren, @@ -84,35 +81,30 @@ function filterChildren(children) { * @param {SchemaUtilErrorObject} error * @returns {number} */ - error => error.dataPath ? error.dataPath.length : 0); + error => error.instancePath ? error.instancePath.length : 0); newChildren = filterMax(newChildren, /** * @param {SchemaUtilErrorObject} error * @returns {number} */ - error => SPECIFICITY[ - /** @type {keyof typeof SPECIFICITY} */ - error.keyword] || 2); + error => SPECIFICITY[/** @type {keyof typeof SPECIFICITY} */error.keyword] || 2); return newChildren; } + /** * Find all children errors * @param {Array} children * @param {Array} schemaPaths * @return {number} returns index of first child */ - - function findAllChildren(children, schemaPaths) { let i = children.length - 1; - const predicate = /** * @param {string} schemaPath * @returns {boolean} */ schemaPath => children[i].schemaPath.indexOf(schemaPath) !== 0; - while (i > -1 && !schemaPaths.every(predicate)) { if (children[i].keyword === "anyOf" || children[i].keyword === "oneOf") { const refs = extractRefs(children[i]); @@ -122,47 +114,39 @@ function findAllChildren(children, schemaPaths) { i -= 1; } } - return i + 1; } + /** * Extracts all refs from schema * @param {SchemaUtilErrorObject} error * @return {Array} */ - - function extractRefs(error) { const { schema } = error; - if (!Array.isArray(schema)) { return []; } - return schema.map(({ $ref }) => $ref).filter(s => s); } + /** * Groups children by their first level parent (assuming that error is root) * @param {Array} children * @return {Array} */ - - function groupChildrenByFirstChild(children) { const result = []; let i = children.length - 1; - while (i > 0) { const child = children[i]; - if (child.keyword === "anyOf" || child.keyword === "oneOf") { const refs = extractRefs(child); const childrenStart = findAllChildren(children.slice(0, i), refs.concat(child.schemaPath)); - if (childrenStart !== i) { result.push(Object.assign({}, child, { children: children.slice(childrenStart, i) @@ -174,200 +158,177 @@ function groupChildrenByFirstChild(children) { } else { result.push(child); } - i -= 1; } - if (i === 0) { result.push(children[i]); } - return result.reverse(); } + /** * @param {string} str * @param {string} prefix * @returns {string} */ - - function indent(str, prefix) { return str.replace(/\n(?!$)/g, `\n${prefix}`); } + /** * @param {Schema} schema * @returns {schema is (Schema & {not: Schema})} */ - - function hasNotInSchema(schema) { return !!schema.not; } + /** * @param {Schema} schema * @return {Schema} */ - - function findFirstTypedSchema(schema) { if (hasNotInSchema(schema)) { return findFirstTypedSchema(schema.not); } - return schema; } + /** * @param {Schema} schema * @return {boolean} */ - - function canApplyNot(schema) { const typedSchema = findFirstTypedSchema(schema); return likeNumber(typedSchema) || likeInteger(typedSchema) || likeString(typedSchema) || likeNull(typedSchema) || likeBoolean(typedSchema); } + /** * @param {any} maybeObj * @returns {boolean} */ - - function isObject(maybeObj) { return typeof maybeObj === "object" && maybeObj !== null; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeNumber(schema) { return schema.type === "number" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeInteger(schema) { return schema.type === "integer" || typeof schema.minimum !== "undefined" || typeof schema.exclusiveMinimum !== "undefined" || typeof schema.maximum !== "undefined" || typeof schema.exclusiveMaximum !== "undefined" || typeof schema.multipleOf !== "undefined"; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeString(schema) { return schema.type === "string" || typeof schema.minLength !== "undefined" || typeof schema.maxLength !== "undefined" || typeof schema.pattern !== "undefined" || typeof schema.format !== "undefined" || typeof schema.formatMinimum !== "undefined" || typeof schema.formatMaximum !== "undefined"; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeBoolean(schema) { return schema.type === "boolean"; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeArray(schema) { return schema.type === "array" || typeof schema.minItems === "number" || typeof schema.maxItems === "number" || typeof schema.uniqueItems !== "undefined" || typeof schema.items !== "undefined" || typeof schema.additionalItems !== "undefined" || typeof schema.contains !== "undefined"; } + /** * @param {Schema & {patternRequired?: Array}} schema * @returns {boolean} */ - - function likeObject(schema) { return schema.type === "object" || typeof schema.minProperties !== "undefined" || typeof schema.maxProperties !== "undefined" || typeof schema.required !== "undefined" || typeof schema.properties !== "undefined" || typeof schema.patternProperties !== "undefined" || typeof schema.additionalProperties !== "undefined" || typeof schema.dependencies !== "undefined" || typeof schema.propertyNames !== "undefined" || typeof schema.patternRequired !== "undefined"; } + /** * @param {Schema} schema * @returns {boolean} */ - - function likeNull(schema) { return schema.type === "null"; } + /** * @param {string} type * @returns {string} */ - - function getArticle(type) { if (/^[aeiou]/i.test(type)) { return "an"; } - return "a"; } + /** * @param {Schema=} schema * @returns {string} */ - - function getSchemaNonTypes(schema) { if (!schema) { return ""; } - if (!schema.type) { if (likeNumber(schema) || likeInteger(schema)) { return " | should be any non-number"; } - if (likeString(schema)) { return " | should be any non-string"; } - if (likeArray(schema)) { return " | should be any non-array"; } - if (likeObject(schema)) { return " | should be any non-object"; } } - return ""; } + /** * @param {Array} hints * @returns {string} */ - - function formatHints(hints) { return hints.length > 0 ? `(${hints.join(", ")})` : ""; } +const getUtilHints = (0, _memorize.default)(() => +// eslint-disable-next-line global-require +require("./util/hints")); + /** * @param {Schema} schema * @param {boolean} logic * @returns {string[]} */ - - function getHints(schema, logic) { if (likeNumber(schema) || likeInteger(schema)) { - return numberHints(schema, logic); + const util = getUtilHints(); + return util.numberHints(schema, logic); } else if (likeString(schema)) { - return stringHints(schema, logic); + const util = getUtilHints(); + return util.stringHints(schema, logic); } - return []; } - class ValidationError extends Error { /** * @param {Array} errors @@ -376,82 +337,66 @@ class ValidationError extends Error { */ constructor(errors, schema, configuration = {}) { super(); - /** @type {string} */ + /** @type {string} */ this.name = "ValidationError"; /** @type {Array} */ - this.errors = errors; /** @type {Schema} */ - this.schema = schema; let headerNameFromSchema; let baseDataPathFromSchema; - if (schema.title && (!configuration.name || !configuration.baseDataPath)) { const splittedTitleFromSchema = schema.title.match(/^(.+) (.+)$/); - if (splittedTitleFromSchema) { if (!configuration.name) { [, headerNameFromSchema] = splittedTitleFromSchema; } - if (!configuration.baseDataPath) { [,, baseDataPathFromSchema] = splittedTitleFromSchema; } } } - /** @type {string} */ - + /** @type {string} */ this.headerName = configuration.name || headerNameFromSchema || "Object"; /** @type {string} */ - this.baseDataPath = configuration.baseDataPath || baseDataPathFromSchema || "configuration"; - /** @type {PostFormatter | null} */ + /** @type {PostFormatter | null} */ this.postFormatter = configuration.postFormatter || null; const header = `Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`; - /** @type {string} */ + /** @type {string} */ this.message = `${header}${this.formatValidationErrors(errors)}`; Error.captureStackTrace(this, this.constructor); } + /** * @param {string} path * @returns {Schema} */ - - getSchemaPart(path) { const newPath = path.split("/"); let schemaPart = this.schema; - for (let i = 1; i < newPath.length; i++) { - const inner = schemaPart[ - /** @type {keyof Schema} */ - newPath[i]]; - + const inner = schemaPart[/** @type {keyof Schema} */newPath[i]]; if (!inner) { break; } - schemaPart = inner; } - return schemaPart; } + /** * @param {Schema} schema * @param {boolean} logic * @param {Array} prevSchemas * @returns {string} */ - - formatSchema(schema, logic = true, prevSchemas = []) { let newLogic = logic; - const formatInnerSchema = /** * @@ -463,34 +408,25 @@ class ValidationError extends Error { if (!addSelf) { return this.formatSchema(innerSchema, newLogic, prevSchemas); } - if (prevSchemas.includes(innerSchema)) { return "(recursive)"; } - return this.formatSchema(innerSchema, newLogic, prevSchemas.concat(schema)); }; - if (hasNotInSchema(schema) && !likeObject(schema)) { if (canApplyNot(schema.not)) { newLogic = !logic; return formatInnerSchema(schema.not); } - const needApplyLogicHere = !schema.not.not; const prefix = logic ? "" : "non "; newLogic = !logic; return needApplyLogicHere ? prefix + formatInnerSchema(schema.not) : formatInnerSchema(schema.not); } - - if ( - /** @type {Schema & {instanceof: string | Array}} */ - schema.instanceof) { + if ( /** @type {Schema & {instanceof: string | Array}} */schema.instanceof) { const { instanceof: value - } = - /** @type {Schema & {instanceof: string | Array}} */ - schema; + } = /** @type {Schema & {instanceof: string | Array}} */schema; const values = !Array.isArray(value) ? [value] : value; return values.map( /** @@ -499,104 +435,73 @@ class ValidationError extends Error { */ item => item === "Function" ? "function" : item).join(" | "); } - if (schema.enum) { - const enumValues = - /** @type {Array} */ - schema.enum.map(item => { + const enumValues = /** @type {Array} */schema.enum.map(item => { if (item === null && schema.undefinedAsNull) { return `${JSON.stringify(item)} | undefined`; } - return JSON.stringify(item); }).join(" | "); return `${enumValues}`; } - if (typeof schema.const !== "undefined") { return JSON.stringify(schema.const); } - if (schema.oneOf) { - return ( - /** @type {Array} */ - schema.oneOf.map(item => formatInnerSchema(item, true)).join(" | ") + return (/** @type {Array} */schema.oneOf.map(item => formatInnerSchema(item, true)).join(" | ") ); } - if (schema.anyOf) { - return ( - /** @type {Array} */ - schema.anyOf.map(item => formatInnerSchema(item, true)).join(" | ") + return (/** @type {Array} */schema.anyOf.map(item => formatInnerSchema(item, true)).join(" | ") ); } - if (schema.allOf) { - return ( - /** @type {Array} */ - schema.allOf.map(item => formatInnerSchema(item, true)).join(" & ") + return (/** @type {Array} */schema.allOf.map(item => formatInnerSchema(item, true)).join(" & ") ); } - - if ( - /** @type {JSONSchema7} */ - schema.if) { + if ( /** @type {JSONSchema7} */schema.if) { const { if: ifValue, then: thenValue, else: elseValue - } = - /** @type {JSONSchema7} */ - schema; + } = /** @type {JSONSchema7} */schema; return `${ifValue ? `if ${formatInnerSchema(ifValue)}` : ""}${thenValue ? ` then ${formatInnerSchema(thenValue)}` : ""}${elseValue ? ` else ${formatInnerSchema(elseValue)}` : ""}`; } - if (schema.$ref) { return formatInnerSchema(this.getSchemaPart(schema.$ref), true); } - if (likeNumber(schema) || likeInteger(schema)) { const [type, ...hints] = getHints(schema, logic); const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; return logic ? str : hints.length > 0 ? `non-${type} | ${str}` : `non-${type}`; } - if (likeString(schema)) { const [type, ...hints] = getHints(schema, logic); const str = `${type}${hints.length > 0 ? ` ${formatHints(hints)}` : ""}`; return logic ? str : str === "string" ? "non-string" : `non-string | ${str}`; } - if (likeBoolean(schema)) { return `${logic ? "" : "non-"}boolean`; } - if (likeArray(schema)) { // not logic already applied in formatValidationError newLogic = true; const hints = []; - if (typeof schema.minItems === "number") { hints.push(`should not have fewer than ${schema.minItems} item${schema.minItems > 1 ? "s" : ""}`); } - if (typeof schema.maxItems === "number") { hints.push(`should not have more than ${schema.maxItems} item${schema.maxItems > 1 ? "s" : ""}`); } - if (schema.uniqueItems) { hints.push("should not have duplicate items"); } - const hasAdditionalItems = typeof schema.additionalItems === "undefined" || Boolean(schema.additionalItems); let items = ""; - if (schema.items) { if (Array.isArray(schema.items) && schema.items.length > 0) { items = `${ - /** @type {Array} */ - schema.items.map(item => formatInnerSchema(item)).join(", ")}`; - + /** @type {Array} */schema.items.map(item => formatInnerSchema(item)).join(", ")}`; if (hasAdditionalItems) { if (schema.additionalItems && isObject(schema.additionalItems) && Object.keys(schema.additionalItems).length > 0) { hints.push(`additional items should be ${formatInnerSchema(schema.additionalItems)}`); @@ -613,55 +518,45 @@ class ValidationError extends Error { // "additionalItems" is ignored items = "any"; } - if (schema.contains && Object.keys(schema.contains).length > 0) { hints.push(`should contains at least one ${this.formatSchema(schema.contains)} item`); } - return `[${items}${hasAdditionalItems ? ", ..." : ""}]${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; } - if (likeObject(schema)) { // not logic already applied in formatValidationError newLogic = true; const hints = []; - if (typeof schema.minProperties === "number") { hints.push(`should not have fewer than ${schema.minProperties} ${schema.minProperties > 1 ? "properties" : "property"}`); } - if (typeof schema.maxProperties === "number") { hints.push(`should not have more than ${schema.maxProperties} ${schema.minProperties && schema.minProperties > 1 ? "properties" : "property"}`); } - if (schema.patternProperties && Object.keys(schema.patternProperties).length > 0) { const patternProperties = Object.keys(schema.patternProperties); hints.push(`additional property names should match pattern${patternProperties.length > 1 ? "s" : ""} ${patternProperties.map(pattern => JSON.stringify(pattern)).join(" | ")}`); } - const properties = schema.properties ? Object.keys(schema.properties) : []; - const required = schema.required ? schema.required : []; - const allProperties = [...new Set( /** @type {Array} */ - [].concat(required).concat(properties))]; + // @ts-ignore + const required = schema.required ? schema.required : []; + const allProperties = [...new Set( /** @type {Array} */[].concat(required).concat(properties))]; const objectStructure = allProperties.map(property => { - const isRequired = required.includes(property); // Some properties need quotes, maybe we should add check - // Maybe we should output type of property (`foo: string`), but it is looks very unreadable + const isRequired = required.includes(property); + // Some properties need quotes, maybe we should add check + // Maybe we should output type of property (`foo: string`), but it is looks very unreadable return `${property}${isRequired ? "" : "?"}`; }).concat(typeof schema.additionalProperties === "undefined" || Boolean(schema.additionalProperties) ? schema.additionalProperties && isObject(schema.additionalProperties) ? [`: ${formatInnerSchema(schema.additionalProperties)}`] : ["…"] : []).join(", "); const { dependencies, propertyNames, patternRequired - } = - /** @type {Schema & {patternRequired?: Array;}} */ - schema; - + } = /** @type {Schema & {patternRequired?: Array;}} */schema; if (dependencies) { Object.keys(dependencies).forEach(dependencyName => { const dependency = dependencies[dependencyName]; - if (Array.isArray(dependency)) { hints.push(`should have ${dependency.length > 1 ? "properties" : "property"} ${dependency.map(dep => `'${dep}'`).join(", ")} when property '${dependencyName}' is present`); } else { @@ -669,11 +564,9 @@ class ValidationError extends Error { } }); } - if (propertyNames && Object.keys(propertyNames).length > 0) { hints.push(`each property name should match format ${JSON.stringify(schema.propertyNames.format)}`); } - if (patternRequired && patternRequired.length > 0) { hints.push(`should have property matching pattern ${patternRequired.map( /** @@ -682,25 +575,22 @@ class ValidationError extends Error { */ item => JSON.stringify(item))}`); } - return `object {${objectStructure ? ` ${objectStructure} ` : ""}}${hints.length > 0 ? ` (${hints.join(", ")})` : ""}`; } - if (likeNull(schema)) { return `${logic ? "" : "non-"}null`; } - if (Array.isArray(schema.type)) { // not logic already applied in formatValidationError return `${schema.type.join(" | ")}`; - } // Fallback for unknown keywords - // not logic already applied in formatValidationError + } + // Fallback for unknown keywords + // not logic already applied in formatValidationError /* istanbul ignore next */ - - return JSON.stringify(schema, null, 2); } + /** * @param {Schema=} schemaPart * @param {(boolean | Array)=} additionalPath @@ -708,20 +598,14 @@ class ValidationError extends Error { * @param {boolean=} logic * @returns {string} */ - - getSchemaPartText(schemaPart, additionalPath, needDot = false, logic = true) { if (!schemaPart) { return ""; } - if (Array.isArray(additionalPath)) { for (let i = 0; i < additionalPath.length; i++) { /** @type {Schema | undefined} */ - const inner = schemaPart[ - /** @type {keyof Schema} */ - additionalPath[i]]; - + const inner = schemaPart[/** @type {keyof Schema} */additionalPath[i]]; if (inner) { // eslint-disable-next-line no-param-reassign schemaPart = inner; @@ -730,64 +614,72 @@ class ValidationError extends Error { } } } - while (schemaPart.$ref) { // eslint-disable-next-line no-param-reassign schemaPart = this.getSchemaPart(schemaPart.$ref); } - let schemaText = `${this.formatSchema(schemaPart, logic)}${needDot ? "." : ""}`; - if (schemaPart.description) { schemaText += `\n-> ${schemaPart.description}`; } - if (schemaPart.link) { schemaText += `\n-> Read more at ${schemaPart.link}`; } - return schemaText; } + /** * @param {Schema=} schemaPart * @returns {string} */ - - getSchemaPartDescription(schemaPart) { if (!schemaPart) { return ""; } - while (schemaPart.$ref) { // eslint-disable-next-line no-param-reassign schemaPart = this.getSchemaPart(schemaPart.$ref); } - let schemaText = ""; - if (schemaPart.description) { schemaText += `\n-> ${schemaPart.description}`; } - if (schemaPart.link) { schemaText += `\n-> Read more at ${schemaPart.link}`; } - return schemaText; } + /** * @param {SchemaUtilErrorObject} error * @returns {string} */ - - formatValidationError(error) { const { keyword, - dataPath: errorDataPath + instancePath: errorInstancePath } = error; - const dataPath = `${this.baseDataPath}${errorDataPath}`; + const splittedInstancePath = errorInstancePath.split("/"); + /** + * @type {Array} + */ + const defaultValue = []; + const prettyInstancePath = splittedInstancePath.reduce((acc, val) => { + if (val.length > 0) { + if (isNumeric(val)) { + acc.push(`[${val}]`); + } else if (/^\[/.test(val)) { + acc.push(val); + } else { + acc.push(`.${val}`); + } + } + return acc; + }, defaultValue).join(""); + const instancePath = `${this.baseDataPath}${prettyInstancePath}`; + + // const { keyword, instancePath: errorInstancePath } = error; + // const instancePath = `${this.baseDataPath}${errorInstancePath.replace(/\//g, '.')}`; switch (keyword) { case "type": @@ -795,45 +687,33 @@ class ValidationError extends Error { const { parentSchema, params - } = error; // eslint-disable-next-line default-case - - switch ( - /** @type {import("ajv").TypeParams} */ - params.type) { + } = error; + switch (params.type) { case "number": - return `${dataPath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - + return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; case "integer": - return `${dataPath} should be an ${this.getSchemaPartText(parentSchema, false, true)}`; - + return `${instancePath} should be an ${this.getSchemaPartText(parentSchema, false, true)}`; case "string": - return `${dataPath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - + return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; case "boolean": - return `${dataPath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - + return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; case "array": - return `${dataPath} should be an array:\n${this.getSchemaPartText(parentSchema)}`; - + return `${instancePath} should be an array:\n${this.getSchemaPartText(parentSchema)}`; case "object": - return `${dataPath} should be an object:\n${this.getSchemaPartText(parentSchema)}`; - + return `${instancePath} should be an object:\n${this.getSchemaPartText(parentSchema)}`; case "null": - return `${dataPath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; - + return `${instancePath} should be a ${this.getSchemaPartText(parentSchema, false, true)}`; default: - return `${dataPath} should be:\n${this.getSchemaPartText(parentSchema)}`; + return `${instancePath} should be:\n${this.getSchemaPartText(parentSchema)}`; } } - case "instanceof": { const { parentSchema } = error; - return `${dataPath} should be an instance of ${this.getSchemaPartText(parentSchema, false, true)}`; + return `${instancePath} should be an instance of ${this.getSchemaPartText(parentSchema, false, true)}`; } - case "pattern": { const { @@ -842,12 +722,9 @@ class ValidationError extends Error { } = error; const { pattern - } = - /** @type {import("ajv").PatternParams} */ - params; - return `${dataPath} should match pattern ${JSON.stringify(pattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should match pattern ${JSON.stringify(pattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "format": { const { @@ -856,14 +733,13 @@ class ValidationError extends Error { } = error; const { format - } = - /** @type {import("ajv").FormatParams} */ - params; - return `${dataPath} should match format ${JSON.stringify(format)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should match format ${JSON.stringify(format)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "formatMinimum": + case "formatExclusiveMinimum": case "formatMaximum": + case "formatExclusiveMaximum": { const { params, @@ -872,12 +748,9 @@ class ValidationError extends Error { const { comparison, limit - } = - /** @type {import("ajv").ComparisonParams} */ - params; - return `${dataPath} should be ${comparison} ${JSON.stringify(limit)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should be ${comparison} ${JSON.stringify(limit)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "minimum": case "maximum": case "exclusiveMinimum": @@ -890,20 +763,13 @@ class ValidationError extends Error { const { comparison, limit - } = - /** @type {import("ajv").ComparisonParams} */ - params; - const [, ...hints] = getHints( - /** @type {Schema} */ - parentSchema, true); - + } = params; + const [, ...hints] = getHints( /** @type {Schema} */parentSchema, true); if (hints.length === 0) { hints.push(`should be ${comparison} ${limit}`); } - - return `${dataPath} ${hints.join(" ")}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} ${hints.join(" ")}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "multipleOf": { const { @@ -912,12 +778,9 @@ class ValidationError extends Error { } = error; const { multipleOf - } = - /** @type {import("ajv").MultipleOfParams} */ - params; - return `${dataPath} should be multiple of ${multipleOf}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should be multiple of ${multipleOf}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "patternRequired": { const { @@ -926,12 +789,9 @@ class ValidationError extends Error { } = error; const { missingPattern - } = - /** @type {import("ajv").PatternRequiredParams} */ - params; - return `${dataPath} should have property matching pattern ${JSON.stringify(missingPattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should have property matching pattern ${JSON.stringify(missingPattern)}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "minLength": { const { @@ -940,18 +800,13 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - + } = params; if (limit === 1) { - return `${dataPath} should be a non-empty string${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should be a non-empty string${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - const length = limit - 1; - return `${dataPath} should be longer than ${length} character${length > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should be longer than ${length} character${length > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "minItems": { const { @@ -960,17 +815,12 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - + } = params; if (limit === 1) { - return `${dataPath} should be a non-empty array${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should be a non-empty array${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - - return `${dataPath} should not have fewer than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should not have fewer than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "minProperties": { const { @@ -979,17 +829,12 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - + } = params; if (limit === 1) { - return `${dataPath} should be a non-empty object${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should be a non-empty object${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - - return `${dataPath} should not have fewer than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should not have fewer than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "maxLength": { const { @@ -998,13 +843,10 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; + } = params; const max = limit + 1; - return `${dataPath} should be shorter than ${max} character${max > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should be shorter than ${max} character${max > 1 ? "s" : ""}${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "maxItems": { const { @@ -1013,12 +855,9 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - return `${dataPath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "maxProperties": { const { @@ -1027,12 +866,9 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - return `${dataPath} should not have more than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should not have more than ${limit} properties${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "uniqueItems": { const { @@ -1041,12 +877,10 @@ class ValidationError extends Error { } = error; const { i - } = - /** @type {import("ajv").UniqueItemsParams} */ - params; - return `${dataPath} should not contain the item '${error.data[i]}' twice${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} should not contain the item '${ + /** @type {{ data: Array }} **/error.data[i]}' twice${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "additionalItems": { const { @@ -1055,37 +889,28 @@ class ValidationError extends Error { } = error; const { limit - } = - /** @type {import("ajv").LimitParams} */ - params; - return `${dataPath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}. These items are valid:\n${this.getSchemaPartText(parentSchema)}`; + } = params; + return `${instancePath} should not have more than ${limit} items${getSchemaNonTypes(parentSchema)}. These items are valid:\n${this.getSchemaPartText(parentSchema)}`; } - case "contains": { const { parentSchema } = error; - return `${dataPath} should contains at least one ${this.getSchemaPartText(parentSchema, ["contains"])} item${getSchemaNonTypes(parentSchema)}.`; + return `${instancePath} should contains at least one ${this.getSchemaPartText(parentSchema, ["contains"])} item${getSchemaNonTypes(parentSchema)}.`; } - case "required": { const { parentSchema, params } = error; - const missingProperty = - /** @type {import("ajv").DependenciesParams} */ - params.missingProperty.replace(/^\./, ""); - const hasProperty = parentSchema && Boolean( - /** @type {Schema} */ - parentSchema.properties && - /** @type {Schema} */ + const missingProperty = params.missingProperty.replace(/^\./, ""); + const hasProperty = parentSchema && Boolean( /** @type {Schema} */ + parentSchema.properties && /** @type {Schema} */ parentSchema.properties[missingProperty]); - return `${dataPath} misses the property '${missingProperty}'${getSchemaNonTypes(parentSchema)}.${hasProperty ? ` Should be:\n${this.getSchemaPartText(parentSchema, ["properties", missingProperty])}` : this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} misses the property '${missingProperty}'${getSchemaNonTypes(parentSchema)}.${hasProperty ? ` Should be:\n${this.getSchemaPartText(parentSchema, ["properties", missingProperty])}` : this.getSchemaPartDescription(parentSchema)}`; } - case "additionalProperties": { const { @@ -1094,12 +919,9 @@ class ValidationError extends Error { } = error; const { additionalProperty - } = - /** @type {import("ajv").AdditionalPropertiesParams} */ - params; - return `${dataPath} has an unknown property '${additionalProperty}'${getSchemaNonTypes(parentSchema)}. These properties are valid:\n${this.getSchemaPartText(parentSchema)}`; + } = params; + return `${instancePath} has an unknown property '${additionalProperty}'${getSchemaNonTypes(parentSchema)}. These properties are valid:\n${this.getSchemaPartText(parentSchema)}`; } - case "dependencies": { const { @@ -1109,18 +931,15 @@ class ValidationError extends Error { const { property, deps - } = - /** @type {import("ajv").DependenciesParams} */ - params; + } = params; const dependencies = deps.split(",").map( /** * @param {string} dep * @returns {string} */ dep => `'${dep.trim()}'`).join(", "); - return `${dataPath} should have properties ${dependencies} when property '${property}' is present${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath} should have properties ${dependencies} when property '${property}' is present${getSchemaNonTypes(parentSchema)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "propertyNames": { const { @@ -1130,55 +949,41 @@ class ValidationError extends Error { } = error; const { propertyName - } = - /** @type {import("ajv").PropertyNamesParams} */ - params; - return `${dataPath} property name '${propertyName}' is invalid${getSchemaNonTypes(parentSchema)}. Property names should be match format ${JSON.stringify(schema.format)}.${this.getSchemaPartDescription(parentSchema)}`; + } = params; + return `${instancePath} property name '${propertyName}' is invalid${getSchemaNonTypes(parentSchema)}. Property names should be match format ${JSON.stringify(schema.format)}.${this.getSchemaPartDescription(parentSchema)}`; } - case "enum": { const { parentSchema } = error; - - if (parentSchema && - /** @type {Schema} */ - parentSchema.enum && - /** @type {Schema} */ + if (parentSchema && /** @type {Schema} */ + parentSchema.enum && /** @type {Schema} */ parentSchema.enum.length === 1) { - return `${dataPath} should be ${this.getSchemaPartText(parentSchema, false, true)}`; + return `${instancePath} should be ${this.getSchemaPartText(parentSchema, false, true)}`; } - - return `${dataPath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; + return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; } - case "const": { const { parentSchema } = error; - return `${dataPath} should be equal to constant ${this.getSchemaPartText(parentSchema, false, true)}`; + return `${instancePath} should be equal to constant ${this.getSchemaPartText(parentSchema, false, true)}`; } - case "not": { - const postfix = likeObject( - /** @type {Schema} */ - error.parentSchema) ? `\n${this.getSchemaPartText(error.parentSchema)}` : ""; + const postfix = likeObject( /** @type {Schema} */error.parentSchema) ? `\n${this.getSchemaPartText(error.parentSchema)}` : ""; const schemaOutput = this.getSchemaPartText(error.schema, false, false, false); - if (canApplyNot(error.schema)) { - return `${dataPath} should be any ${schemaOutput}${postfix}.`; + return `${instancePath} should be any ${schemaOutput}${postfix}.`; } - const { schema, parentSchema } = error; - return `${dataPath} should not be ${this.getSchemaPartText(schema, false, true)}${parentSchema && likeObject(parentSchema) ? `\n${this.getSchemaPartText(parentSchema)}` : ""}`; + return `${instancePath} should not be ${this.getSchemaPartText(schema, false, true)}${parentSchema && likeObject(parentSchema) ? `\n${this.getSchemaPartText(parentSchema)}` : ""}`; } - case "oneOf": case "anyOf": { @@ -1186,7 +991,6 @@ class ValidationError extends Error { parentSchema, children } = error; - if (children && children.length > 0) { if (error.schema.length === 1) { const lastChild = children[children.length - 1]; @@ -1196,25 +1000,20 @@ class ValidationError extends Error { parentSchema: Object.assign({}, parentSchema, lastChild.parentSchema) })); } - let filteredChildren = filterChildren(children); - if (filteredChildren.length === 1) { return this.formatValidationError(filteredChildren[0]); } - filteredChildren = groupChildrenByFirstChild(filteredChildren); - return `${dataPath} should be one of these:\n${this.getSchemaPartText(parentSchema)}\nDetails:\n${filteredChildren.map( + return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}\nDetails:\n${filteredChildren.map( /** * @param {SchemaUtilErrorObject} nestedError * @returns {string} */ nestedError => ` * ${indent(this.formatValidationError(nestedError), " ")}`).join("\n")}`; } - - return `${dataPath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; + return `${instancePath} should be one of these:\n${this.getSchemaPartText(parentSchema)}`; } - case "if": { const { @@ -1223,55 +1022,46 @@ class ValidationError extends Error { } = error; const { failingKeyword - } = - /** @type {import("ajv").IfParams} */ - params; - return `${dataPath} should match "${failingKeyword}" schema:\n${this.getSchemaPartText(parentSchema, [failingKeyword])}`; + } = params; + return `${instancePath} should match "${failingKeyword}" schema:\n${this.getSchemaPartText(parentSchema, [failingKeyword])}`; } - case "absolutePath": { const { message, parentSchema } = error; - return `${dataPath}: ${message}${this.getSchemaPartDescription(parentSchema)}`; + return `${instancePath}: ${message}${this.getSchemaPartDescription(parentSchema)}`; } - /* istanbul ignore next */ - default: { const { message, parentSchema } = error; - const ErrorInJSON = JSON.stringify(error, null, 2); // For `custom`, `false schema`, `$ref` keywords - // Fallback for unknown keywords + const ErrorInJSON = JSON.stringify(error, null, 2); - return `${dataPath} ${message} (${ErrorInJSON}).\n${this.getSchemaPartText(parentSchema, false)}`; + // For `custom`, `false schema`, `$ref` keywords + // Fallback for unknown keywords + return `${instancePath} ${message} (${ErrorInJSON}).\n${this.getSchemaPartText(parentSchema, false)}`; } } } + /** * @param {Array} errors * @returns {string} */ - - formatValidationErrors(errors) { return errors.map(error => { let formattedError = this.formatValidationError(error); - if (this.postFormatter) { formattedError = this.postFormatter(formattedError, error); } - return ` - ${indent(formattedError, " ")}`; }).join("\n"); } - } - var _default = ValidationError; exports.default = _default; \ No newline at end of file diff --git a/node_modules/schema-utils/dist/index.js b/node_modules/schema-utils/dist/index.js index 94d676f3..4574912d 100644 --- a/node_modules/schema-utils/dist/index.js +++ b/node_modules/schema-utils/dist/index.js @@ -7,7 +7,6 @@ const { disableValidation, needValidate } = require("./validate"); - module.exports = { validate, ValidationError, diff --git a/node_modules/schema-utils/dist/keywords/absolutePath.js b/node_modules/schema-utils/dist/keywords/absolutePath.js index 0a912da7..349f6b92 100644 --- a/node_modules/schema-utils/dist/keywords/absolutePath.js +++ b/node_modules/schema-utils/dist/keywords/absolutePath.js @@ -4,11 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; - -/** @typedef {import("ajv").Ajv} Ajv */ - -/** @typedef {import("ajv").ValidateFunction} ValidateFunction */ - +/** @typedef {import("ajv").default} Ajv */ +/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */ +/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */ /** @typedef {import("../validate").SchemaUtilErrorObject} SchemaUtilErrorObject */ /** @@ -33,61 +31,58 @@ function errorMessage(message, schema, data) { parentSchema: schema }; } + /** * @param {boolean} shouldBeAbsolute * @param {object} schema * @param {string} data * @returns {SchemaUtilErrorObject} */ - - function getErrorFor(shouldBeAbsolute, schema, data) { const message = shouldBeAbsolute ? `The provided value ${JSON.stringify(data)} is not an absolute path!` : `A relative path is expected. However, the provided value ${JSON.stringify(data)} is an absolute path!`; return errorMessage(message, schema, data); } + /** * * @param {Ajv} ajv * @returns {Ajv} */ - - function addAbsolutePathKeyword(ajv) { - ajv.addKeyword("absolutePath", { - errors: true, + ajv.addKeyword({ + keyword: "absolutePath", type: "string", - + errors: true, + /** + * @param {boolean} schema + * @param {AnySchemaObject} parentSchema + * @returns {SchemaValidateFunction} + */ compile(schema, parentSchema) { - /** @type {ValidateFunction} */ + /** @type {SchemaValidateFunction} */ const callback = data => { let passes = true; const isExclamationMarkPresent = data.includes("!"); - if (isExclamationMarkPresent) { callback.errors = [errorMessage(`The provided value ${JSON.stringify(data)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`, parentSchema, data)]; passes = false; - } // ?:[A-Za-z]:\\ - Windows absolute path + } + + // ?:[A-Za-z]:\\ - Windows absolute path // \\\\ - Windows network absolute path // \/ - Unix-like OS absolute path - - const isCorrectAbsolutePath = schema === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data); - if (!isCorrectAbsolutePath) { callback.errors = [getErrorFor(schema, parentSchema, data)]; passes = false; } - return passes; }; - callback.errors = []; return callback; } - }); return ajv; } - var _default = addAbsolutePathKeyword; exports.default = _default; \ No newline at end of file diff --git a/node_modules/schema-utils/dist/util/Range.js b/node_modules/schema-utils/dist/util/Range.js index 14b24319..318ebabd 100644 --- a/node_modules/schema-utils/dist/util/Range.js +++ b/node_modules/schema-utils/dist/util/Range.js @@ -9,6 +9,7 @@ * @param {RangeValue} rangeValue * @returns {boolean} */ + class Range { /** * @param {"left" | "right"} side @@ -19,39 +20,35 @@ class Range { if (side === "left") { return exclusive ? ">" : ">="; } - return exclusive ? "<" : "<="; } + /** * @param {number} value * @param {boolean} logic is not logic applied * @param {boolean} exclusive is range exclusive * @returns {string} */ - - static formatRight(value, logic, exclusive) { if (logic === false) { return Range.formatLeft(value, !logic, !exclusive); } - return `should be ${Range.getOperator("right", exclusive)} ${value}`; } + /** * @param {number} value * @param {boolean} logic is not logic applied * @param {boolean} exclusive is range exclusive * @returns {string} */ - - static formatLeft(value, logic, exclusive) { if (logic === false) { return Range.formatRight(value, !logic, !exclusive); } - return `should be ${Range.getOperator("left", exclusive)} ${value}`; } + /** * @param {number} start left side value * @param {number} end right side value @@ -60,8 +57,6 @@ class Range { * @param {boolean} logic is not logic applied * @returns {string} */ - - static formatRange(start, end, startExclusive, endExclusive, logic) { let result = "should be"; result += ` ${Range.getOperator(logic ? "left" : "right", logic ? startExclusive : !startExclusive)} ${start} `; @@ -69,95 +64,80 @@ class Range { result += ` ${Range.getOperator(logic ? "right" : "left", logic ? endExclusive : !endExclusive)} ${end}`; return result; } + /** * @param {Array} values * @param {boolean} logic is not logic applied * @return {RangeValue} computed value and it's exclusive flag */ - - static getRangeValue(values, logic) { let minMax = logic ? Infinity : -Infinity; let j = -1; - const predicate = logic ? - /** @type {RangeValueCallback} */ - ([value]) => value <= minMax : - /** @type {RangeValueCallback} */ + const predicate = logic ? /** @type {RangeValueCallback} */ + ([value]) => value <= minMax : /** @type {RangeValueCallback} */ ([value]) => value >= minMax; - for (let i = 0; i < values.length; i++) { if (predicate(values[i])) { [minMax] = values[i]; j = i; } } - if (j > -1) { return values[j]; } - return [Infinity, true]; } - constructor() { /** @type {Array} */ this._left = []; /** @type {Array} */ - this._right = []; } + /** * @param {number} value * @param {boolean=} exclusive */ - - left(value, exclusive = false) { this._left.push([value, exclusive]); } + /** * @param {number} value * @param {boolean=} exclusive */ - - right(value, exclusive = false) { this._right.push([value, exclusive]); } + /** * @param {boolean} logic is not logic applied * @return {string} "smart" range string representation */ - - format(logic = true) { const [start, leftExclusive] = Range.getRangeValue(this._left, logic); const [end, rightExclusive] = Range.getRangeValue(this._right, !logic); - if (!Number.isFinite(start) && !Number.isFinite(end)) { return ""; } - const realStart = leftExclusive ? start + 1 : start; - const realEnd = rightExclusive ? end - 1 : end; // e.g. 5 < x < 7, 5 < x <= 6, 6 <= x <= 6 + const realEnd = rightExclusive ? end - 1 : end; + // e.g. 5 < x < 7, 5 < x <= 6, 6 <= x <= 6 if (realStart === realEnd) { return `should be ${logic ? "" : "!"}= ${realStart}`; - } // e.g. 4 < x < ∞ - + } + // e.g. 4 < x < ∞ if (Number.isFinite(start) && !Number.isFinite(end)) { return Range.formatLeft(start, logic, leftExclusive); - } // e.g. ∞ < x < 4 - + } + // e.g. ∞ < x < 4 if (!Number.isFinite(start) && Number.isFinite(end)) { return Range.formatRight(end, logic, rightExclusive); } - return Range.formatRange(start, end, leftExclusive, rightExclusive, logic); } - } - module.exports = Range; \ No newline at end of file diff --git a/node_modules/schema-utils/dist/util/hints.js b/node_modules/schema-utils/dist/util/hints.js index 4317b86f..53783d11 100644 --- a/node_modules/schema-utils/dist/util/hints.js +++ b/node_modules/schema-utils/dist/util/hints.js @@ -1,6 +1,7 @@ "use strict"; const Range = require("./Range"); + /** @typedef {import("../validate").Schema} Schema */ /** @@ -8,26 +9,20 @@ const Range = require("./Range"); * @param {boolean} logic * @return {string[]} */ - - module.exports.stringHints = function stringHints(schema, logic) { const hints = []; let type = "string"; - const currentSchema = { ...schema + const currentSchema = { + ...schema }; - if (!logic) { const tmpLength = currentSchema.minLength; const tmpFormat = currentSchema.formatMinimum; - const tmpExclusive = currentSchema.formatExclusiveMaximum; currentSchema.minLength = currentSchema.maxLength; currentSchema.maxLength = tmpLength; currentSchema.formatMinimum = currentSchema.formatMaximum; currentSchema.formatMaximum = tmpFormat; - currentSchema.formatExclusiveMaximum = !currentSchema.formatExclusiveMinimum; - currentSchema.formatExclusiveMinimum = !tmpExclusive; } - if (typeof currentSchema.minLength === "number") { if (currentSchema.minLength === 1) { type = "non-empty string"; @@ -36,7 +31,6 @@ module.exports.stringHints = function stringHints(schema, logic) { hints.push(`should be longer than ${length} character${length > 1 ? "s" : ""}`); } } - if (typeof currentSchema.maxLength === "number") { if (currentSchema.maxLength === 0) { type = "empty string"; @@ -45,61 +39,47 @@ module.exports.stringHints = function stringHints(schema, logic) { hints.push(`should be shorter than ${length} character${length > 1 ? "s" : ""}`); } } - if (currentSchema.pattern) { hints.push(`should${logic ? "" : " not"} match pattern ${JSON.stringify(currentSchema.pattern)}`); } - if (currentSchema.format) { hints.push(`should${logic ? "" : " not"} match format ${JSON.stringify(currentSchema.format)}`); } - if (currentSchema.formatMinimum) { hints.push(`should be ${currentSchema.formatExclusiveMinimum ? ">" : ">="} ${JSON.stringify(currentSchema.formatMinimum)}`); } - if (currentSchema.formatMaximum) { hints.push(`should be ${currentSchema.formatExclusiveMaximum ? "<" : "<="} ${JSON.stringify(currentSchema.formatMaximum)}`); } - return [type].concat(hints); }; + /** * @param {Schema} schema * @param {boolean} logic * @return {string[]} */ - - module.exports.numberHints = function numberHints(schema, logic) { const hints = [schema.type === "integer" ? "integer" : "number"]; const range = new Range(); - if (typeof schema.minimum === "number") { range.left(schema.minimum); } - if (typeof schema.exclusiveMinimum === "number") { range.left(schema.exclusiveMinimum, true); } - if (typeof schema.maximum === "number") { range.right(schema.maximum); } - if (typeof schema.exclusiveMaximum === "number") { range.right(schema.exclusiveMaximum, true); } - const rangeFormat = range.format(logic); - if (rangeFormat) { hints.push(rangeFormat); } - if (typeof schema.multipleOf === "number") { hints.push(`should${logic ? "" : " not"} be multiple of ${schema.multipleOf}`); } - return hints; }; \ No newline at end of file diff --git a/node_modules/schema-utils/dist/validate.js b/node_modules/schema-utils/dist/validate.js index cb091450..3abc3bf6 100644 --- a/node_modules/schema-utils/dist/validate.js +++ b/node_modules/schema-utils/dist/validate.js @@ -3,94 +3,71 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.validate = validate; -exports.enableValidation = enableValidation; -exports.disableValidation = disableValidation; -exports.needValidate = needValidate; Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return _ValidationError.default; } }); - -var _absolutePath = _interopRequireDefault(require("./keywords/absolutePath")); - -var _undefinedAsNull = _interopRequireDefault(require("./keywords/undefinedAsNull")); - +exports.disableValidation = disableValidation; +exports.enableValidation = enableValidation; +exports.needValidate = needValidate; +exports.validate = validate; var _ValidationError = _interopRequireDefault(require("./ValidationError")); - +var _memorize = _interopRequireDefault(require("./util/memorize")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * @template T - * @param fn {(function(): any) | undefined} - * @returns {function(): T} - */ -const memoize = fn => { - let cache = false; - /** @type {T} */ - - let result; - return () => { - if (cache) { - return result; - } - - result = - /** @type {function(): any} */ - fn(); - cache = true; // Allow to clean up memory for fn - // and all dependent resources - // eslint-disable-next-line no-undefined, no-param-reassign - - fn = undefined; - return result; - }; -}; - -const getAjv = memoize(() => { +const getAjv = (0, _memorize.default)(() => { // Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110). // eslint-disable-next-line global-require - const Ajv = require("ajv"); // eslint-disable-next-line global-require - - - const ajvKeywords = require("ajv-keywords"); + const Ajv = require("ajv").default; + // eslint-disable-next-line global-require + const ajvKeywords = require("ajv-keywords").default; + // eslint-disable-next-line global-require + const addFormats = require("ajv-formats").default; + /** + * @type {Ajv} + */ const ajv = new Ajv({ + strict: false, allErrors: true, verbose: true, $data: true }); - ajvKeywords(ajv, ["instanceof", "formatMinimum", "formatMaximum", "patternRequired"]); // Custom keywords + ajvKeywords(ajv, ["instanceof", "patternRequired"]); + addFormats(ajv, { + keywords: true + }); - (0, _absolutePath.default)(ajv); - (0, _undefinedAsNull.default)(ajv); + // Custom keywords + // eslint-disable-next-line global-require + const addAbsolutePathKeyword = require("./keywords/absolutePath").default; + addAbsolutePathKeyword(ajv); + const addUndefinedAsNullKeyword = + // eslint-disable-next-line global-require + require("./keywords/undefinedAsNull").default; + addUndefinedAsNullKeyword(ajv); return ajv; }); -/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */ +/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */ /** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */ - /** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */ - /** @typedef {import("ajv").ErrorObject} ErrorObject */ -/** @typedef {import("ajv").ValidateFunction} ValidateFunction */ - /** * @typedef {Object} Extend - * @property {number=} formatMinimum - * @property {number=} formatMaximum - * @property {boolean=} formatExclusiveMinimum - * @property {boolean=} formatExclusiveMaximum + * @property {string=} formatMinimum + * @property {string=} formatMaximum + * @property {string=} formatExclusiveMinimum + * @property {string=} formatExclusiveMaximum * @property {string=} link * @property {boolean=} undefinedAsNull */ /** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend} Schema */ -/** @typedef {ErrorObject & { children?: Array}} SchemaUtilErrorObject */ +/** @typedef {ErrorObject & { children?: Array }} SchemaUtilErrorObject */ /** * @callback PostFormatter @@ -111,74 +88,65 @@ const getAjv = memoize(() => { * @param {number} idx * @returns {SchemaUtilErrorObject} */ - function applyPrefix(error, idx) { // eslint-disable-next-line no-param-reassign - error.dataPath = `[${idx}]${error.dataPath}`; - + error.instancePath = `[${idx}]${error.instancePath}`; if (error.children) { error.children.forEach(err => applyPrefix(err, idx)); } - return error; } +let skipValidation = false; -let skipValidation = false; // We use `process.env.SKIP_VALIDATION` because you can have multiple `schema-utils` with different version, +// We use `process.env.SKIP_VALIDATION` because you can have multiple `schema-utils` with different version, // so we want to disable it globally, `process.env` doesn't supported by browsers, so we have the local `skipValidation` variables -// Enable validation +// Enable validation function enableValidation() { - skipValidation = false; // Disable validation for any versions + skipValidation = false; + // Disable validation for any versions if (process && process.env) { process.env.SKIP_VALIDATION = "n"; } -} // Disable validation - +} +// Disable validation function disableValidation() { skipValidation = true; - if (process && process.env) { process.env.SKIP_VALIDATION = "y"; } -} // Check if we need to confirm - +} +// Check if we need to confirm function needValidate() { if (skipValidation) { return false; } - if (process && process.env && process.env.SKIP_VALIDATION) { const value = process.env.SKIP_VALIDATION.trim(); - if (/^(?:y|yes|true|1|on)$/i.test(value)) { return false; } - if (/^(?:n|no|false|0|off)$/i.test(value)) { return true; } } - return true; } + /** * @param {Schema} schema * @param {Array | object} options * @param {ValidationErrorConfiguration=} configuration * @returns {void} */ - - function validate(schema, options, configuration) { if (!needValidate()) { return; } - let errors = []; - if (Array.isArray(options)) { for (let i = 0; i <= options.length - 1; i++) { errors.push(...validateObject(schema, options[i]).map(err => applyPrefix(err, i))); @@ -186,73 +154,54 @@ function validate(schema, options, configuration) { } else { errors = validateObject(schema, options); } - if (errors.length > 0) { throw new _ValidationError.default(errors, schema, configuration); } } -/** @typedef {WeakMap} */ - -const schemaCache = new WeakMap(); /** * @param {Schema} schema * @param {Array | object} options * @returns {Array} */ - function validateObject(schema, options) { - let compiledSchema = schemaCache.get(schema); - - if (!compiledSchema) { - compiledSchema = getAjv().compile(schema); - schemaCache.set(schema, compiledSchema); - } - + // Not need to cache, because `ajv@8` has built-in cache + const compiledSchema = getAjv().compile(schema); const valid = compiledSchema(options); if (valid) return []; return compiledSchema.errors ? filterErrors(compiledSchema.errors) : []; } + /** * @param {Array} errors * @returns {Array} */ - - function filterErrors(errors) { /** @type {Array} */ let newErrors = []; - - for (const error of - /** @type {Array} */ - errors) { + for (const error of /** @type {Array} */errors) { const { - dataPath + instancePath } = error; /** @type {Array} */ - let children = []; newErrors = newErrors.filter(oldError => { - if (oldError.dataPath.includes(dataPath)) { + if (oldError.instancePath.includes(instancePath)) { if (oldError.children) { children = children.concat(oldError.children.slice(0)); - } // eslint-disable-next-line no-undefined, no-param-reassign - + } + // eslint-disable-next-line no-undefined, no-param-reassign oldError.children = undefined; children.push(oldError); return false; } - return true; }); - if (children.length) { error.children = children; } - newErrors.push(error); } - return newErrors; } \ No newline at end of file diff --git a/node_modules/schema-utils/package.json b/node_modules/schema-utils/package.json index 47943eff..e119e72b 100644 --- a/node_modules/schema-utils/package.json +++ b/node_modules/schema-utils/package.json @@ -1,6 +1,6 @@ { "name": "schema-utils", - "version": "3.3.0", + "version": "4.2.0", "description": "webpack Validation Utils", "license": "MIT", "repository": "webpack/schema-utils", @@ -14,7 +14,7 @@ "main": "dist/index.js", "types": "declarations/index.d.ts", "engines": { - "node": ">= 10.13.0" + "node": ">= 12.13.0" }, "scripts": { "start": "npm run build -- -w", @@ -45,32 +45,33 @@ "declarations" ], "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" }, "devDependencies": { - "@babel/cli": "^7.14.3", - "@babel/core": "^7.14.6", - "@babel/preset-env": "^7.14.7", - "@commitlint/cli": "^12.1.4", - "@commitlint/config-conventional": "^12.1.4", + "@babel/cli": "^7.17.0", + "@babel/core": "^7.17.0", + "@babel/preset-env": "^7.16.11", + "@commitlint/cli": "^17.6.1", + "@commitlint/config-conventional": "^16.0.0", "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^27.0.6", + "babel-jest": "^27.4.6", "cross-env": "^7.0.3", "del": "^6.0.0", - "del-cli": "^3.0.1", - "eslint": "^7.31.0", + "del-cli": "^4.0.1", + "eslint": "^8.8.0", "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.23.4", - "husky": "^6.0.0", - "jest": "^27.0.6", - "lint-staged": "^11.0.1", + "eslint-plugin-import": "^2.25.4", + "husky": "^7.0.4", + "jest": "^27.4.7", + "lint-staged": "^13.2.1", "npm-run-all": "^4.1.5", - "prettier": "^2.3.2", - "standard-version": "^9.3.1", - "typescript": "^4.3.5", - "webpack": "^5.45.1" + "prettier": "^2.5.1", + "standard-version": "^9.3.2", + "typescript": "^4.9.5", + "webpack": "^5.68.0" }, "keywords": [ "webpack" diff --git a/node_modules/select-hose/.DS_Store b/node_modules/select-hose/.DS_Store deleted file mode 100644 index 979a94aa..00000000 Binary files a/node_modules/select-hose/.DS_Store and /dev/null differ diff --git a/node_modules/send/.DS_Store b/node_modules/send/.DS_Store deleted file mode 100644 index 18c24fda..00000000 Binary files a/node_modules/send/.DS_Store and /dev/null differ diff --git a/node_modules/serve-index/.DS_Store b/node_modules/serve-index/.DS_Store deleted file mode 100644 index 3c9e3090..00000000 Binary files a/node_modules/serve-index/.DS_Store and /dev/null differ diff --git a/node_modules/serve-index/node_modules/.DS_Store b/node_modules/serve-index/node_modules/.DS_Store deleted file mode 100644 index 6518f9a5..00000000 Binary files a/node_modules/serve-index/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/source-map/.DS_Store b/node_modules/source-map/.DS_Store deleted file mode 100644 index 8e85482d..00000000 Binary files a/node_modules/source-map/.DS_Store and /dev/null differ diff --git a/node_modules/source-map/CHANGELOG.md b/node_modules/source-map/CHANGELOG.md deleted file mode 100644 index 3a8c066c..00000000 --- a/node_modules/source-map/CHANGELOG.md +++ /dev/null @@ -1,301 +0,0 @@ -# Change Log - -## 0.5.6 - -* Fix for regression when people were using numbers as names in source maps. See - #236. - -## 0.5.5 - -* Fix "regression" of unsupported, implementation behavior that half the world - happens to have come to depend on. See #235. - -* Fix regression involving function hoisting in SpiderMonkey. See #233. - -## 0.5.4 - -* Large performance improvements to source-map serialization. See #228 and #229. - -## 0.5.3 - -* Do not include unnecessary distribution files. See - commit ef7006f8d1647e0a83fdc60f04f5a7ca54886f86. - -## 0.5.2 - -* Include browser distributions of the library in package.json's `files`. See - issue #212. - -## 0.5.1 - -* Fix latent bugs in IndexedSourceMapConsumer.prototype._parseMappings. See - ff05274becc9e6e1295ed60f3ea090d31d843379. - -## 0.5.0 - -* Node 0.8 is no longer supported. - -* Use webpack instead of dryice for bundling. - -* Big speedups serializing source maps. See pull request #203. - -* Fix a bug with `SourceMapConsumer.prototype.sourceContentFor` and sources that - explicitly start with the source root. See issue #199. - -## 0.4.4 - -* Fix an issue where using a `SourceMapGenerator` after having created a - `SourceMapConsumer` from it via `SourceMapConsumer.fromSourceMap` failed. See - issue #191. - -* Fix an issue with where `SourceMapGenerator` would mistakenly consider - different mappings as duplicates of each other and avoid generating them. See - issue #192. - -## 0.4.3 - -* A very large number of performance improvements, particularly when parsing - source maps. Collectively about 75% of time shaved off of the source map - parsing benchmark! - -* Fix a bug in `SourceMapConsumer.prototype.allGeneratedPositionsFor` and fuzzy - searching in the presence of a column option. See issue #177. - -* Fix a bug with joining a source and its source root when the source is above - the root. See issue #182. - -* Add the `SourceMapConsumer.prototype.hasContentsOfAllSources` method to - determine when all sources' contents are inlined into the source map. See - issue #190. - -## 0.4.2 - -* Add an `.npmignore` file so that the benchmarks aren't pulled down by - dependent projects. Issue #169. - -* Add an optional `column` argument to - `SourceMapConsumer.prototype.allGeneratedPositionsFor` and better handle lines - with no mappings. Issues #172 and #173. - -## 0.4.1 - -* Fix accidentally defining a global variable. #170. - -## 0.4.0 - -* The default direction for fuzzy searching was changed back to its original - direction. See #164. - -* There is now a `bias` option you can supply to `SourceMapConsumer` to control - the fuzzy searching direction. See #167. - -* About an 8% speed up in parsing source maps. See #159. - -* Added a benchmark for parsing and generating source maps. - -## 0.3.0 - -* Change the default direction that searching for positions fuzzes when there is - not an exact match. See #154. - -* Support for environments using json2.js for JSON serialization. See #156. - -## 0.2.0 - -* Support for consuming "indexed" source maps which do not have any remote - sections. See pull request #127. This introduces a minor backwards - incompatibility if you are monkey patching `SourceMapConsumer.prototype` - methods. - -## 0.1.43 - -* Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue - #148 for some discussion and issues #150, #151, and #152 for implementations. - -## 0.1.42 - -* Fix an issue where `SourceNode`s from different versions of the source-map - library couldn't be used in conjunction with each other. See issue #142. - -## 0.1.41 - -* Fix a bug with getting the source content of relative sources with a "./" - prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768). - -* Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the - column span of each mapping. - -* Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find - all generated positions associated with a given original source and line. - -## 0.1.40 - -* Performance improvements for parsing source maps in SourceMapConsumer. - -## 0.1.39 - -* Fix a bug where setting a source's contents to null before any source content - had been set before threw a TypeError. See issue #131. - -## 0.1.38 - -* Fix a bug where finding relative paths from an empty path were creating - absolute paths. See issue #129. - -## 0.1.37 - -* Fix a bug where if the source root was an empty string, relative source paths - would turn into absolute source paths. Issue #124. - -## 0.1.36 - -* Allow the `names` mapping property to be an empty string. Issue #121. - -## 0.1.35 - -* A third optional parameter was added to `SourceNode.fromStringWithSourceMap` - to specify a path that relative sources in the second parameter should be - relative to. Issue #105. - -* If no file property is given to a `SourceMapGenerator`, then the resulting - source map will no longer have a `null` file property. The property will - simply not exist. Issue #104. - -* Fixed a bug where consecutive newlines were ignored in `SourceNode`s. - Issue #116. - -## 0.1.34 - -* Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103. - -* Fix bug involving source contents and the - `SourceMapGenerator.prototype.applySourceMap`. Issue #100. - -## 0.1.33 - -* Fix some edge cases surrounding path joining and URL resolution. - -* Add a third parameter for relative path to - `SourceMapGenerator.prototype.applySourceMap`. - -* Fix issues with mappings and EOLs. - -## 0.1.32 - -* Fixed a bug where SourceMapConsumer couldn't handle negative relative columns - (issue 92). - -* Fixed test runner to actually report number of failed tests as its process - exit code. - -* Fixed a typo when reporting bad mappings (issue 87). - -## 0.1.31 - -* Delay parsing the mappings in SourceMapConsumer until queried for a source - location. - -* Support Sass source maps (which at the time of writing deviate from the spec - in small ways) in SourceMapConsumer. - -## 0.1.30 - -* Do not join source root with a source, when the source is a data URI. - -* Extend the test runner to allow running single specific test files at a time. - -* Performance improvements in `SourceNode.prototype.walk` and - `SourceMapConsumer.prototype.eachMapping`. - -* Source map browser builds will now work inside Workers. - -* Better error messages when attempting to add an invalid mapping to a - `SourceMapGenerator`. - -## 0.1.29 - -* Allow duplicate entries in the `names` and `sources` arrays of source maps - (usually from TypeScript) we are parsing. Fixes github issue 72. - -## 0.1.28 - -* Skip duplicate mappings when creating source maps from SourceNode; github - issue 75. - -## 0.1.27 - -* Don't throw an error when the `file` property is missing in SourceMapConsumer, - we don't use it anyway. - -## 0.1.26 - -* Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70. - -## 0.1.25 - -* Make compatible with browserify - -## 0.1.24 - -* Fix issue with absolute paths and `file://` URIs. See - https://bugzilla.mozilla.org/show_bug.cgi?id=885597 - -## 0.1.23 - -* Fix issue with absolute paths and sourcesContent, github issue 64. - -## 0.1.22 - -* Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21. - -## 0.1.21 - -* Fixed handling of sources that start with a slash so that they are relative to - the source root's host. - -## 0.1.20 - -* Fixed github issue #43: absolute URLs aren't joined with the source root - anymore. - -## 0.1.19 - -* Using Travis CI to run tests. - -## 0.1.18 - -* Fixed a bug in the handling of sourceRoot. - -## 0.1.17 - -* Added SourceNode.fromStringWithSourceMap. - -## 0.1.16 - -* Added missing documentation. - -* Fixed the generating of empty mappings in SourceNode. - -## 0.1.15 - -* Added SourceMapGenerator.applySourceMap. - -## 0.1.14 - -* The sourceRoot is now handled consistently. - -## 0.1.13 - -* Added SourceMapGenerator.fromSourceMap. - -## 0.1.12 - -* SourceNode now generates empty mappings too. - -## 0.1.11 - -* Added name support to SourceNode. - -## 0.1.10 - -* Added sourcesContent support to the customer and generator. diff --git a/node_modules/source-map/README.md b/node_modules/source-map/README.md index fea4beb1..56e5ac3e 100644 --- a/node_modules/source-map/README.md +++ b/node_modules/source-map/README.md @@ -2,6 +2,8 @@ [![Build Status](https://travis-ci.org/mozilla/source-map.png?branch=master)](https://travis-ci.org/mozilla/source-map) +[![Coverage Status](https://coveralls.io/repos/github/mozilla/source-map/badge.svg)](https://coveralls.io/github/mozilla/source-map) + [![NPM](https://nodei.co/npm/source-map.png?downloads=true&downloadRank=true)](https://www.npmjs.com/package/source-map) This is a library to generate and consume the source map format @@ -15,7 +17,12 @@ This is a library to generate and consume the source map format ## Use on the Web - + + -------------------------------------------------------------------------------- @@ -32,7 +39,10 @@ This is a library to generate and consume the source map format - [With SourceMapGenerator (low level API)](#with-sourcemapgenerator-low-level-api) - [API](#api) - [SourceMapConsumer](#sourcemapconsumer) + - [SourceMapConsumer.initialize(options)](#sourcemapconsumerinitializeoptions) - [new SourceMapConsumer(rawSourceMap)](#new-sourcemapconsumerrawsourcemap) + - [SourceMapConsumer.with](#sourcemapconsumerwith) + - [SourceMapConsumer.prototype.destroy()](#sourcemapconsumerprototypedestroy) - [SourceMapConsumer.prototype.computeColumnSpans()](#sourcemapconsumerprototypecomputecolumnspans) - [SourceMapConsumer.prototype.originalPositionFor(generatedPosition)](#sourcemapconsumerprototypeoriginalpositionforgeneratedposition) - [SourceMapConsumer.prototype.generatedPositionFor(originalPosition)](#sourcemapconsumerprototypegeneratedpositionfororiginalposition) @@ -67,7 +77,7 @@ This is a library to generate and consume the source map format ### Consuming a source map ```js -var rawSourceMap = { +const rawSourceMap = { version: 3, file: 'min.js', names: ['bar', 'baz', 'n'], @@ -76,30 +86,33 @@ var rawSourceMap = { mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' }; -var smc = new SourceMapConsumer(rawSourceMap); - -console.log(smc.sources); -// [ 'http://example.com/www/js/one.js', -// 'http://example.com/www/js/two.js' ] - -console.log(smc.originalPositionFor({ - line: 2, - column: 28 -})); -// { source: 'http://example.com/www/js/two.js', -// line: 2, -// column: 10, -// name: 'n' } - -console.log(smc.generatedPositionFor({ - source: 'http://example.com/www/js/two.js', - line: 2, - column: 10 -})); -// { line: 2, column: 28 } - -smc.eachMapping(function (m) { - // ... +const whatever = await SourceMapConsumer.with(rawSourceMap, null, consumer => { + + console.log(consumer.sources); + // [ 'http://example.com/www/js/one.js', + // 'http://example.com/www/js/two.js' ] + + console.log(consumer.originalPositionFor({ + line: 2, + column: 28 + })); + // { source: 'http://example.com/www/js/two.js', + // line: 2, + // column: 10, + // name: 'n' } + + console.log(consumer.generatedPositionFor({ + source: 'http://example.com/www/js/two.js', + line: 2, + column: 10 + })); + // { line: 2, column: 28 } + + consumer.eachMapping(function (m) { + // ... + }); + + return computeWhatever(); }); ``` @@ -182,10 +195,27 @@ const sourceMap = require("devtools/toolkit/sourcemap/source-map.js"); ### SourceMapConsumer -A SourceMapConsumer instance represents a parsed source map which we can query +A `SourceMapConsumer` instance represents a parsed source map which we can query for information about the original file positions by giving it a file position in the generated source. +#### SourceMapConsumer.initialize(options) + +When using `SourceMapConsumer` outside of node.js, for example on the Web, it +needs to know from what URL to load `lib/mappings.wasm`. You must inform it by +calling `initialize` before constructing any `SourceMapConsumer`s. + +The options object has the following properties: + +* `"lib/mappings.wasm"`: A `String` containing the URL of the + `lib/mappings.wasm` file, or an `ArrayBuffer` with the contents of `lib/mappings.wasm`. + +```js +sourceMap.SourceMapConsumer.initialize({ + "lib/mappings.wasm": "https://example.com/source-map/lib/mappings.wasm" +}); +``` + #### new SourceMapConsumer(rawSourceMap) The only parameter is the raw source map (either as a string which can be @@ -207,10 +237,62 @@ following attributes: * `file`: Optional. The generated filename this source map is associated with. +The promise of the constructed souce map consumer is returned. + +When the `SourceMapConsumer` will no longer be used anymore, you must call its +`destroy` method. + +```js +const consumer = await new sourceMap.SourceMapConsumer(rawSourceMapJsonData); +doStuffWith(consumer); +consumer.destroy(); +``` + +Alternatively, you can use `SourceMapConsumer.with` to avoid needing to remember +to call `destroy`. + +#### SourceMapConsumer.with + +Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl` +(see the `SourceMapConsumer` constructor for details. Then, invoke the `async +function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait +for `f` to complete, call `destroy` on the consumer, and return `f`'s return +value. + +You must not use the consumer after `f` completes! + +By using `with`, you do not have to remember to manually call `destroy` on +the consumer, since it will be called automatically once `f` completes. + ```js -var consumer = new sourceMap.SourceMapConsumer(rawSourceMapJsonData); +const xSquared = await SourceMapConsumer.with( + myRawSourceMap, + null, + async function (consumer) { + // Use `consumer` inside here and don't worry about remembering + // to call `destroy`. + + const x = await whatever(consumer); + return x * x; + } +); + +// You may not use that `consumer` anymore out here; it has +// been destroyed. But you can use `xSquared`. +console.log(xSquared); ``` +#### SourceMapConsumer.prototype.destroy() + +Free this source map consumer's associated wasm data that is manually-managed. + +```js +consumer.destroy(); +``` + +Alternatively, you can use `SourceMapConsumer.with` to avoid needing to remember +to call `destroy`. + #### SourceMapConsumer.prototype.computeColumnSpans() Compute the last column for each generated mapping. The last column is @@ -239,7 +321,6 @@ consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" }) // { line: 2, // column: 20, // lastColumn: Infinity } ] - ``` #### SourceMapConsumer.prototype.originalPositionFor(generatedPosition) @@ -579,9 +660,8 @@ Creates a SourceNode from generated code and a SourceMapConsumer. should be relative to. ```js -var consumer = new SourceMapConsumer(fs.readFileSync("path/to/my-file.js.map", "utf8")); -var node = SourceNode.fromStringWithSourceMap(fs.readFileSync("path/to/my-file.js"), - consumer); +const consumer = await new SourceMapConsumer(fs.readFileSync("path/to/my-file.js.map", "utf8")); +const node = SourceNode.fromStringWithSourceMap(fs.readFileSync("path/to/my-file.js"), consumer); ``` #### SourceNode.prototype.add(chunk) diff --git a/node_modules/source-map/dist/source-map.debug.js b/node_modules/source-map/dist/source-map.debug.js deleted file mode 100644 index aad0620d..00000000 --- a/node_modules/source-map/dist/source-map.debug.js +++ /dev/null @@ -1,3234 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else if(typeof exports === 'object') - exports["sourceMap"] = factory(); - else - root["sourceMap"] = factory(); -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; -/******/ -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.loaded = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - - /* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ - exports.SourceMapGenerator = __webpack_require__(1).SourceMapGenerator; - exports.SourceMapConsumer = __webpack_require__(7).SourceMapConsumer; - exports.SourceNode = __webpack_require__(10).SourceNode; - - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var base64VLQ = __webpack_require__(2); - var util = __webpack_require__(4); - var ArraySet = __webpack_require__(5).ArraySet; - var MappingList = __webpack_require__(6).MappingList; - - /** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ - function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; - } - - SourceMapGenerator.prototype._version = 3; - - /** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ - SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - - /** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ - SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - - /** - * Set the source content for a source file. - */ - SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - - /** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ - SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - - /** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ - SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } - - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - - /** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ - SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = '' - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - - SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - - /** - * Externalize the source map. - */ - SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - - /** - * Render the source map being generated to a string. - */ - SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - - exports.SourceMapGenerator = SourceMapGenerator; - - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - var base64 = __webpack_require__(3); - - // A single base 64 digit can contain 6 bits of data. For the base 64 variable - // length quantities we use in the source map spec, the first bit is the sign, - // the next four bits are the actual value, and the 6th bit is the - // continuation bit. The continuation bit tells us whether there are more - // digits in this value following this digit. - // - // Continuation - // | Sign - // | | - // V V - // 101011 - - var VLQ_BASE_SHIFT = 5; - - // binary: 100000 - var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - - // binary: 011111 - var VLQ_BASE_MASK = VLQ_BASE - 1; - - // binary: 100000 - var VLQ_CONTINUATION_BIT = VLQ_BASE; - - /** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ - function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; - } - - /** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ - function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; - } - - /** - * Returns the base 64 VLQ encoded value. - */ - exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; - }; - - /** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ - exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; - }; - - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); - - /** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ - exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); - }; - - /** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ - exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; - }; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - /** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ - function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } - } - exports.getArg = getArg; - - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; - var dataUrlRegexp = /^data:.+\,.+$/; - - function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; - } - exports.urlParse = urlParse; - - function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; - } - exports.urlGenerate = urlGenerate; - - /** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ - function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; - } - exports.normalize = normalize; - - /** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ - function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; - } - exports.join = join; - - exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); - }; - - /** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ - function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); - } - exports.relative = relative; - - var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); - }()); - - function identity (s) { - return s; - } - - /** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ - function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; - } - exports.toSetString = supportsNullProto ? identity : toSetString; - - function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; - } - exports.fromSetString = supportsNullProto ? identity : fromSetString; - - function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; - } - - /** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ - function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByOriginalPositions = compareByOriginalPositions; - - /** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ - function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - - function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 === null) { - return 1; // aStr2 !== null - } - - if (aStr2 === null) { - return -1; // aStr1 !== null - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; - } - - /** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ - function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - - /** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ - function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); - } - exports.parseSourceMapInput = parseSourceMapInput; - - /** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ - function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; - - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } - - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - - return normalize(sourceURL); - } - exports.computeSourceURL = computeSourceURL; - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - var has = Object.prototype.hasOwnProperty; - var hasNativeMap = typeof Map !== "undefined"; - - /** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ - function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); - } - - /** - * Static method for creating ArraySet instances from an existing array. - */ - ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; - }; - - /** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ - ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; - }; - - /** - * Add the given string to this set. - * - * @param String aStr - */ - ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } - }; - - /** - * Is the given string a member of this set? - * - * @param String aStr - */ - ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } - }; - - /** - * What is the index of the given string in the array? - * - * @param String aStr - */ - ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - - throw new Error('"' + aStr + '" is not in the set.'); - }; - - /** - * What is the element at the given index? - * - * @param Number aIdx - */ - ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); - }; - - /** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ - ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); - }; - - exports.ArraySet = ArraySet; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - - /** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ - function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; - } - - /** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ - function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; - } - - /** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ - MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - - /** - * Add the given source mapping. - * - * @param Object aMapping - */ - MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } - }; - - /** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ - MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; - }; - - exports.MappingList = MappingList; - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - var binarySearch = __webpack_require__(8); - var ArraySet = __webpack_require__(5).ArraySet; - var base64VLQ = __webpack_require__(2); - var quickSort = __webpack_require__(9).quickSort; - - function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); - } - - SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); - } - - /** - * The version of the source mapping spec that we are consuming. - */ - SourceMapConsumer.prototype._version = 3; - - // `__generatedMappings` and `__originalMappings` are arrays that hold the - // parsed mapping coordinates from the source map's "mappings" attribute. They - // are lazily instantiated, accessed via the `_generatedMappings` and - // `_originalMappings` getters respectively, and we only parse the mappings - // and create these arrays once queried for a source location. We jump through - // these hoops because there can be many thousands of mappings, and parsing - // them is expensive, so we only want to do it if we must. - // - // Each object in the arrays is of the form: - // - // { - // generatedLine: The line number in the generated code, - // generatedColumn: The column number in the generated code, - // source: The path to the original source file that generated this - // chunk of code, - // originalLine: The line number in the original source that - // corresponds to this chunk of generated code, - // originalColumn: The column number in the original source that - // corresponds to this chunk of generated code, - // name: The name of the original symbol which generated this chunk of - // code. - // } - // - // All properties except for `generatedLine` and `generatedColumn` can be - // `null`. - // - // `_generatedMappings` is ordered by the generated positions. - // - // `_originalMappings` is ordered by the original positions. - - SourceMapConsumer.prototype.__generatedMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } - }); - - SourceMapConsumer.prototype.__originalMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } - }); - - SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - - SourceMapConsumer.GENERATED_ORDER = 1; - SourceMapConsumer.ORIGINAL_ORDER = 2; - - SourceMapConsumer.GREATEST_LOWER_BOUND = 1; - SourceMapConsumer.LEAST_UPPER_BOUND = 2; - - /** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ - SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - - /** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - - exports.SourceMapConsumer = SourceMapConsumer; - - /** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ - function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; - } - - BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - - /** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ - BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - - return -1; - }; - - /** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ - BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. - - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - - destOriginalMappings.push(destMapping); - } - - destGeneratedMappings.push(destMapping); - } - - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - - /** - * The version of the source mapping spec that we are consuming. - */ - BasicSourceMapConsumer.prototype._version = 3; - - /** - * The list of original sources. - */ - Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); - } - }); - - /** - * Provide the JIT with a nice shape / hidden class. - */ - function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; - } - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } - - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - - /** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ - BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - - /** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ - BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - - /** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ - BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - - /** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ - BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; - - /** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ - BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - - /** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - - exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - - /** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ - function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); - - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; - - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) - } - }); - } - - IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - - /** - * The version of the source mapping spec that we are consuming. - */ - IndexedSourceMapConsumer.prototype._version = 3; - - /** - * The list of original sources. - */ - Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } - }); - - /** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ - IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; - - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; - - /** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ - IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - - /** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ - IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - - /** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } - - return { - line: null, - column: null - }; - }; - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - - exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - exports.GREATEST_LOWER_BOUND = 1; - exports.LEAST_UPPER_BOUND = 2; - - /** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ - function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } - } - - /** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ - exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - - return index; - }; - - -/***/ }), -/* 9 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - // It turns out that some (most?) JavaScript engines don't self-host - // `Array.prototype.sort`. This makes sense because C++ will likely remain - // faster than JS when doing raw CPU-intensive sorting. However, when using a - // custom comparator function, calling back and forth between the VM's C++ and - // JIT'd JS is rather slow *and* loses JIT type information, resulting in - // worse generated code for the comparator function than would be optimal. In - // fact, when sorting with a comparator, these costs outweigh the benefits of - // sorting in C++. By using our own JS-implemented Quick Sort (below), we get - // a ~3500ms mean speed-up in `bench/bench.html`. - - /** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ - function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; - } - - /** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ - function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); - } - - /** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ - function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } - } - - /** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ - exports.quickSort = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); - }; - - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var SourceMapGenerator = __webpack_require__(1).SourceMapGenerator; - var util = __webpack_require__(4); - - // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other - // operating systems these days (capturing the result). - var REGEX_NEWLINE = /(\r?\n)/; - - // Newline character code for charCodeAt() comparisons - var NEWLINE_CODE = 10; - - // Private symbol for identifying `SourceNode`s when multiple versions of - // the source-map library are loaded. This MUST NOT CHANGE across - // versions! - var isSourceNode = "$$$isSourceNode$$$"; - - /** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ - function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); - } - - /** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ - SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; - - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - - /** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } - }; - - /** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ - SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; - }; - - /** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ - SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; - }; - - /** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ - SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - - /** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - - /** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ - SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; - }; - - /** - * Returns the string representation of this source node along with a source - * map. - */ - SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; - }; - - exports.SourceNode = SourceNode; - - -/***/ }) -/******/ ]) -}); -; -//# sourceMappingURL=data:application/json;charset=ut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lnaW5hbExpbmUgLSAxXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0gcHJldmlvdXNPcmlnaW5hbExpbmUpO1xuICAgICAgICBwcmV2aW91c09yaWdpbmFsTGluZSA9IG1hcHBpbmcub3JpZ2luYWxMaW5lIC0gMTtcblxuICAgICAgICBuZXh0ICs9IGJhc2U2NFZMUS5lbmNvZGUobWFwcGluZy5vcmlnaW5hbENvbHVtblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAtIHByZXZpb3VzT3JpZ2luYWxDb2x1bW4pO1xuICAgICAgICBwcmV2aW91c09yaWdpbmFsQ29sdW1uID0gbWFwcGluZy5vcmlnaW5hbENvbHVtbjtcblxuICAgICAgICBpZiAobWFwcGluZy5uYW1lICE9IG51bGwpIHtcbiAgICAgICAgICBuYW1lSWR4ID0gdGhpcy5fbmFtZXMuaW5kZXhPZihtYXBwaW5nLm5hbWUpO1xuICAgICAgICAgIG5leHQgKz0gYmFzZTY0VkxRLmVuY29kZShuYW1lSWR4IC0gcHJldmlvdXNOYW1lKTtcbiAgICAgICAgICBwcmV2aW91c05hbWUgPSBuYW1lSWR4O1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHJlc3VsdCArPSBuZXh0O1xuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH07XG5cblNvdXJjZU1hcEdlbmVyYXRvci5wcm90b3R5cGUuX2dlbmVyYXRlU291cmNlc0NvbnRlbnQgPVxuICBmdW5jdGlvbiBTb3VyY2VNYXBHZW5lcmF0b3JfZ2VuZXJhdGVTb3VyY2VzQ29udGVudChhU291cmNlcywgYVNvdXJjZVJvb3QpIHtcbiAgICByZXR1cm4gYVNvdXJjZXMubWFwKGZ1bmN0aW9uIChzb3VyY2UpIHtcbiAgICAgIGlmICghdGhpcy5fc291cmNlc0NvbnRlbnRzKSB7XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgICAgfVxuICAgICAgaWYgKGFTb3VyY2VSb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UmVsYXRpdmVQYXRoLCBzb3VyY2VGaWxlKTtcbiAgICAgICAgfVxuICAgICAgICBub2RlLnNldFNvdXJjZUNvbnRlbnQoc291cmNlRmlsZSwgY29udGVudCk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICByZXR1cm4gbm9kZTtcblxuICAgIGZ1bmN0aW9uIGFkZE1hcHBpbmdXaXRoQ29kZShtYXBwaW5nLCBjb2RlKSB7XG4gICAgICBpZiAobWFwcGluZyA9PT0gbnVsbCB8fCBtYXBwaW5nLnNvdXJjZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIG5vZGUuYWRkKGNvZGUpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdmFyIHNvdXJjZSA9IGFSZWxhdGl2ZVBhdGhcbiAgICAgICAgICA/IHV0aWwuam9pbihhUmVsYXRpdmVQYXRoLCBtYXBwaW5nLnNvdXJjZSlcbiAgICAgICAgICA6IG1hcHBpbmcuc291cmNlO1xuICAgICAgICBub2RlLmFkZChuZXcgU291cmNlTm9kZShtYXBwaW5nLm9yaWdpbmFsTGluZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwcGluZy5vcmlnaW5hbENvbHVtbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXBwaW5nLm5hbWUpKTtcbiAgICAgIH1cbiAgICB9XG4gIH07XG5cbi8qKlxuICogQWRkIGEgY2h1bmsgb2YgZ2VuZXJhdGVkIEpTIHRvIHRoaXMgc291cmNlIG5vZGUuXG4gKlxuICogQHBhcmFtIGFDaHVuayBBIHN0cmluZyBzbmlwcGV0IG9mIGdlbmVyYXRlZCBKUyBjb2RlLCBhbm90aGVyIGluc3RhbmNlIG9mXG4gKiAgICAgICAgU291cmNlTm9kZSwgb3IgYW4gYXJyYXkgd2hlcmUgZW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2x1bW4gPSAwO1xuICAgICAgICAvLyBNYXBwaW5ncyBlbmQgYXQgZW9sXG4gICAgICAgIGlmIChpZHggKyAxID09PSBsZW5ndGgpIHtcbiAgICAgICAgICBsYXN0T3JpZ2luYWxTb3VyY2UgPSBudWxsO1xuICAgICAgICAgIHNvdXJjZU1hcHBpbmdBY3RpdmUgPSBmYWxzZTtcbiAgICAgICAgfSBlbHNlIGlmIChzb3VyY2VNYXBwaW5nQWN0aXZlKSB7XG4gICAgICAgICAgbWFwLmFkZE1hcHBpbmcoe1xuICAgICAgICAgICAgc291cmNlOiBvcmlnaW5hbC5zb3VyY2UsXG4gICAgICAgICAgICBvcmlnaW5hbDoge1xuICAgICAgICAgICAgICBsaW5lOiBvcmlnaW5hbC5saW5lLFxuICAgICAgICAgICAgICBjb2x1bW46IG9yaWdpbmFsLmNvbHVtblxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGdlbmVyYXRlZDoge1xuICAgICAgICAgICAgICBsaW5lOiBnZW5lcmF0ZWQubGluZSxcbiAgICAgICAgICAgICAgY29sdW1uOiBnZW5lcmF0ZWQuY29sdW1uXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmFtZTogb3JpZ2luYWwubmFtZVxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBnZW5lcmF0ZWQuY29sdW1uKys7XG4gICAgICB9XG4gICAgfVxuICB9KTtcbiAgdGhpcy53YWxrU291cmNlQ29udGVudHMoZnVuY3Rpb24gKHNvdXJjZUZpbGUsIHNvdXJjZUNvbnRlbnQpIHtcbiAgICBtYXAuc2V0U291cmNlQ29udGVudChzb3VyY2VGaWxlLCBzb3VyY2VDb250ZW50KTtcbiAgfSk7XG5cbiAgcmV0dXJuIHsgY29kZTogZ2VuZXJhdGVkLmNvZGUsIG1hcDogbWFwIH07XG59O1xuXG5leHBvcnRzLlNvdXJjZU5vZGUgPSBTb3VyY2VOb2RlO1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9saWIvc291cmNlLW5vZGUuanNcbi8vIG1vZHVsZSBpZCA9IDEwXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJzb3VyY2VSb290IjoiIn0= \ No newline at end of file diff --git a/node_modules/source-map/dist/source-map.js b/node_modules/source-map/dist/source-map.js index b4eb0874..b75e98bd 100644 --- a/node_modules/source-map/dist/source-map.js +++ b/node_modules/source-map/dist/source-map.js @@ -1,3233 +1 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else if(typeof exports === 'object') - exports["sourceMap"] = factory(); - else - root["sourceMap"] = factory(); -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - - /* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ - exports.SourceMapGenerator = __webpack_require__(1).SourceMapGenerator; - exports.SourceMapConsumer = __webpack_require__(7).SourceMapConsumer; - exports.SourceNode = __webpack_require__(10).SourceNode; - - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var base64VLQ = __webpack_require__(2); - var util = __webpack_require__(4); - var ArraySet = __webpack_require__(5).ArraySet; - var MappingList = __webpack_require__(6).MappingList; - - /** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ - function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; - } - - SourceMapGenerator.prototype._version = 3; - - /** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ - SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - - /** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ - SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - - /** - * Set the source content for a source file. - */ - SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - - /** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ - SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - - /** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ - SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } - - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - - /** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ - SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = '' - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - - SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - - /** - * Externalize the source map. - */ - SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - - /** - * Render the source map being generated to a string. - */ - SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - - exports.SourceMapGenerator = SourceMapGenerator; - - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - var base64 = __webpack_require__(3); - - // A single base 64 digit can contain 6 bits of data. For the base 64 variable - // length quantities we use in the source map spec, the first bit is the sign, - // the next four bits are the actual value, and the 6th bit is the - // continuation bit. The continuation bit tells us whether there are more - // digits in this value following this digit. - // - // Continuation - // | Sign - // | | - // V V - // 101011 - - var VLQ_BASE_SHIFT = 5; - - // binary: 100000 - var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - - // binary: 011111 - var VLQ_BASE_MASK = VLQ_BASE - 1; - - // binary: 100000 - var VLQ_CONTINUATION_BIT = VLQ_BASE; - - /** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ - function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; - } - - /** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ - function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; - } - - /** - * Returns the base 64 VLQ encoded value. - */ - exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; - }; - - /** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ - exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; - }; - - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); - - /** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ - exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); - }; - - /** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ - exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; - }; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - /** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ - function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } - } - exports.getArg = getArg; - - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; - var dataUrlRegexp = /^data:.+\,.+$/; - - function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; - } - exports.urlParse = urlParse; - - function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; - } - exports.urlGenerate = urlGenerate; - - /** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ - function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; - } - exports.normalize = normalize; - - /** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ - function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; - } - exports.join = join; - - exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); - }; - - /** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ - function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); - } - exports.relative = relative; - - var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); - }()); - - function identity (s) { - return s; - } - - /** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ - function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; - } - exports.toSetString = supportsNullProto ? identity : toSetString; - - function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; - } - exports.fromSetString = supportsNullProto ? identity : fromSetString; - - function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; - } - - /** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ - function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByOriginalPositions = compareByOriginalPositions; - - /** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ - function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - - function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 === null) { - return 1; // aStr2 !== null - } - - if (aStr2 === null) { - return -1; // aStr1 !== null - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; - } - - /** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ - function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - - /** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ - function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); - } - exports.parseSourceMapInput = parseSourceMapInput; - - /** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ - function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; - - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } - - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - - return normalize(sourceURL); - } - exports.computeSourceURL = computeSourceURL; - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - var has = Object.prototype.hasOwnProperty; - var hasNativeMap = typeof Map !== "undefined"; - - /** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ - function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); - } - - /** - * Static method for creating ArraySet instances from an existing array. - */ - ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; - }; - - /** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ - ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; - }; - - /** - * Add the given string to this set. - * - * @param String aStr - */ - ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } - }; - - /** - * Is the given string a member of this set? - * - * @param String aStr - */ - ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } - }; - - /** - * What is the index of the given string in the array? - * - * @param String aStr - */ - ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - - throw new Error('"' + aStr + '" is not in the set.'); - }; - - /** - * What is the element at the given index? - * - * @param Number aIdx - */ - ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); - }; - - /** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ - ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); - }; - - exports.ArraySet = ArraySet; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - - /** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ - function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; - } - - /** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ - function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; - } - - /** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ - MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - - /** - * Add the given source mapping. - * - * @param Object aMapping - */ - MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } - }; - - /** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ - MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; - }; - - exports.MappingList = MappingList; - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var util = __webpack_require__(4); - var binarySearch = __webpack_require__(8); - var ArraySet = __webpack_require__(5).ArraySet; - var base64VLQ = __webpack_require__(2); - var quickSort = __webpack_require__(9).quickSort; - - function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); - } - - SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); - } - - /** - * The version of the source mapping spec that we are consuming. - */ - SourceMapConsumer.prototype._version = 3; - - // `__generatedMappings` and `__originalMappings` are arrays that hold the - // parsed mapping coordinates from the source map's "mappings" attribute. They - // are lazily instantiated, accessed via the `_generatedMappings` and - // `_originalMappings` getters respectively, and we only parse the mappings - // and create these arrays once queried for a source location. We jump through - // these hoops because there can be many thousands of mappings, and parsing - // them is expensive, so we only want to do it if we must. - // - // Each object in the arrays is of the form: - // - // { - // generatedLine: The line number in the generated code, - // generatedColumn: The column number in the generated code, - // source: The path to the original source file that generated this - // chunk of code, - // originalLine: The line number in the original source that - // corresponds to this chunk of generated code, - // originalColumn: The column number in the original source that - // corresponds to this chunk of generated code, - // name: The name of the original symbol which generated this chunk of - // code. - // } - // - // All properties except for `generatedLine` and `generatedColumn` can be - // `null`. - // - // `_generatedMappings` is ordered by the generated positions. - // - // `_originalMappings` is ordered by the original positions. - - SourceMapConsumer.prototype.__generatedMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } - }); - - SourceMapConsumer.prototype.__originalMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } - }); - - SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - - SourceMapConsumer.GENERATED_ORDER = 1; - SourceMapConsumer.ORIGINAL_ORDER = 2; - - SourceMapConsumer.GREATEST_LOWER_BOUND = 1; - SourceMapConsumer.LEAST_UPPER_BOUND = 2; - - /** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ - SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - - /** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - - exports.SourceMapConsumer = SourceMapConsumer; - - /** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ - function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; - } - - BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - - /** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ - BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - - return -1; - }; - - /** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ - BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. - - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - - destOriginalMappings.push(destMapping); - } - - destGeneratedMappings.push(destMapping); - } - - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - - /** - * The version of the source mapping spec that we are consuming. - */ - BasicSourceMapConsumer.prototype._version = 3; - - /** - * The list of original sources. - */ - Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); - } - }); - - /** - * Provide the JIT with a nice shape / hidden class. - */ - function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; - } - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } - - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - - /** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ - BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - - /** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ - BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - - /** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ - BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - - /** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ - BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; - - /** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ - BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - - /** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - - exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - - /** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ - function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); - - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; - - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) - } - }); - } - - IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - - /** - * The version of the source mapping spec that we are consuming. - */ - IndexedSourceMapConsumer.prototype._version = 3; - - /** - * The list of original sources. - */ - Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } - }); - - /** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ - IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; - - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; - - /** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ - IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - - /** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ - IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - - /** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ - IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } - - return { - line: null, - column: null - }; - }; - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - - exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - exports.GREATEST_LOWER_BOUND = 1; - exports.LEAST_UPPER_BOUND = 2; - - /** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ - function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } - } - - /** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ - exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - - return index; - }; - - -/***/ }), -/* 9 */ -/***/ (function(module, exports) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - // It turns out that some (most?) JavaScript engines don't self-host - // `Array.prototype.sort`. This makes sense because C++ will likely remain - // faster than JS when doing raw CPU-intensive sorting. However, when using a - // custom comparator function, calling back and forth between the VM's C++ and - // JIT'd JS is rather slow *and* loses JIT type information, resulting in - // worse generated code for the comparator function than would be optimal. In - // fact, when sorting with a comparator, these costs outweigh the benefits of - // sorting in C++. By using our own JS-implemented Quick Sort (below), we get - // a ~3500ms mean speed-up in `bench/bench.html`. - - /** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ - function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; - } - - /** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ - function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); - } - - /** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ - function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } - } - - /** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ - exports.quickSort = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); - }; - - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - - /* -*- Mode: js; js-indent-level: 2; -*- */ - /* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - - var SourceMapGenerator = __webpack_require__(1).SourceMapGenerator; - var util = __webpack_require__(4); - - // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other - // operating systems these days (capturing the result). - var REGEX_NEWLINE = /(\r?\n)/; - - // Newline character code for charCodeAt() comparisons - var NEWLINE_CODE = 10; - - // Private symbol for identifying `SourceNode`s when multiple versions of - // the source-map library are loaded. This MUST NOT CHANGE across - // versions! - var isSourceNode = "$$$isSourceNode$$$"; - - /** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ - function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); - } - - /** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ - SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; - - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - - /** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } - }; - - /** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ - SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; - }; - - /** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ - SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; - }; - - /** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ - SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - - /** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - - /** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ - SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; - }; - - /** - * Returns the string representation of this source node along with a source - * map. - */ - SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; - }; - - exports.SourceNode = SourceNode; - - -/***/ }) -/******/ ]) -}); -; \ No newline at end of file +!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("fs"),require("path")):"function"==typeof define&&define.amd?define(["fs","path"],n):"object"==typeof exports?exports.sourceMap=n(require("fs"),require("path")):e.sourceMap=n(e.fs,e.path)}(window,(function(e,n){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=5)}([function(e,n){n.getArg=function(e,n,t){if(n in e)return e[n];if(3===arguments.length)return t;throw new Error('"'+n+'" is a required argument.')};const t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){const n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){let n="";return e.scheme&&(n+=e.scheme+":"),n+="//",e.auth&&(n+=e.auth+"@"),e.host&&(n+=e.host),e.port&&(n+=":"+e.port),e.path&&(n+=e.path),n}n.urlParse=o,n.urlGenerate=i;const s=function(e){const n=[];return function(t){for(let e=0;e32&&n.pop(),r}}((function(e){let t=e;const r=o(e);if(r){if(!r.path)return e;t=r.path}const s=n.isAbsolute(t),l=[];let a=0,u=0;for(;;){if(a=u,u=t.indexOf("/",a),-1===u){l.push(t.slice(a));break}for(l.push(t.slice(a,u));u=0;u--){const e=l[u];"."===e?l.splice(u,1):".."===e?c++:c>0&&(""===e?(l.splice(u+1,c),c=0):(l.splice(u,2),c--))}return t=l.join("/"),""===t&&(t=s?"/":"."),r?(r.path=t,i(r)):t}));function l(e,n){""===e&&(e="."),""===n&&(n=".");const t=o(n),l=o(e);if(l&&(e=l.path||"/"),t&&!t.scheme)return l&&(t.scheme=l.scheme),i(t);if(t||n.match(r))return n;if(l&&!l.host&&!l.path)return l.host=n,i(l);const a="/"===n.charAt(0)?n:s(e.replace(/\/+$/,"")+"/"+n);return l?(l.path=a,i(l)):a}n.normalize=s,n.join=l,n.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},n.relative=function(e,n){""===e&&(e="."),e=e.replace(/\/$/,"");let t=0;for(;0!==n.indexOf(e+"/");){const r=e.lastIndexOf("/");if(r<0)return n;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return n;++t}return Array(t+1).join("../")+n.substr(e.length+1)};const a=!("__proto__"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;const n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(let t=n-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function g(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=a?u:function(e){return c(e)?"$"+e:e},n.fromSetString=a?u:function(e){return c(e)?e.slice(1):e},n.compareByOriginalPositions=function(e,n,t){let r=g(e.source,n.source);return 0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r||t?r:(r=e.generatedColumn-n.generatedColumn,0!==r?r:(r=e.generatedLine-n.generatedLine,0!==r?r:g(e.name,n.name)))))},n.compareByGeneratedPositionsDeflated=function(e,n,t){let r=e.generatedLine-n.generatedLine;return 0!==r?r:(r=e.generatedColumn-n.generatedColumn,0!==r||t?r:(r=g(e.source,n.source),0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r?r:g(e.name,n.name)))))},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=g(e.source,n.source),0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:g(e.name,n.name)))))},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},n.computeSourceURL=function(e,n,t){if(n=n||"",e&&("/"!==e[e.length-1]&&"/"!==n[0]&&(e+="/"),n=e+n),t){const e=o(t);if(!e)throw new Error("sourceMapURL could not be parsed");if(e.path){const n=e.path.lastIndexOf("/");n>=0&&(e.path=e.path.substring(0,n+1))}n=l(i(e),n)}return s(n)}},function(e,n,t){const r=t(2),o=t(0),i=t(3).ArraySet,s=t(7).MappingList;class l{constructor(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}static fromSourceMap(e){const n=e.sourceRoot,t=new l({file:e.file,sourceRoot:n});return e.eachMapping((function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=n&&(r.source=o.relative(n,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),t.addMapping(r)})),e.sources.forEach((function(r){let i=r;null!==n&&(i=o.relative(n,r)),t._sources.has(i)||t._sources.add(i);const s=e.sourceContentFor(r);null!=s&&t.setSourceContent(r,s)})),t}addMapping(e){const n=o.getArg(e,"generated"),t=o.getArg(e,"original",null);let r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=t&&t.line,originalColumn:null!=t&&t.column,source:r,name:i})}setSourceContent(e,n){let t=e;null!=this._sourceRoot&&(t=o.relative(this._sourceRoot,t)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,n,t){let r=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const s=this._sourceRoot;null!=s&&(r=o.relative(s,r));const l=this._mappings.toArray().length>0?new i:this._sources,a=new i;this._mappings.unsortedForEach((function(n){if(n.source===r&&null!=n.originalLine){const r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}const i=n.source;null==i||l.has(i)||l.add(i);const u=n.name;null==u||a.has(u)||a.add(u)}),this),this._sources=l,this._names=a,e.sources.forEach((function(n){const r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,r))}),this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,i,s=0,l=1,a=0,u=0,c=0,g=0,p="";const h=this._mappings.toArray();for(let m=0,d=h.length;m0){if(!o.compareByGeneratedPositionsInflated(n,h[m-1]))continue;e+=","}e+=r.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-g),g=i,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),p+=e}return p}_generateSourcesContent(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));const t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},function(e,n,t){const r=t(6);n.encode=function(e){let n,t="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{n=31&o,o>>>=5,o>0&&(n|=32),t+=r.encode(n)}while(o>0);return t}},function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){const r=new t;for(let t=0,o=e.length;t=0)return n;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&ee.arrayBuffer());if(n instanceof ArrayBuffer)return Promise.resolve(n);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},e.exports.initialize=e=>n=e}else{const r=t(10),o=t(11);e.exports=function(){return new Promise((e,t)=>{const i=o.join(n,"mappings.wasm");r.readFile(i,null,(n,r)=>{n?t(n):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}}}).call(this,"/")},function(e,n,t){n.SourceMapGenerator=t(1).SourceMapGenerator,n.SourceMapConsumer=t(8).SourceMapConsumer,n.SourceNode=t(13).SourceNode},function(e,n){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&et||o==t&&s>=i||r.compareByGeneratedPositionsInflated(e,n)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},function(e,n,t){const r=t(0),o=t(9),i=t(3).ArraySet,s=(t(2),t(4)),l=t(12),a=Symbol("smcInternal");class u{constructor(e,n){return e==a?Promise.resolve(this):function(e,n){let t=e;"string"==typeof e&&(t=r.parseSourceMapInput(e));const o=null!=t.sections?new g(t,n):new c(t,n);return Promise.resolve(o)}(e,n)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){return function(e,n){return c.fromSourceMap(e,n)}(e,n)}static async with(e,n,t){const r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}_parseMappings(e,n){throw new Error("Subclasses must implement _parseMappings")}eachMapping(e,n,t){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const s=r.getArg(o,"version");let a=r.getArg(o,"sources");const u=r.getArg(o,"names",[]);let c=r.getArg(o,"sourceRoot",null);const g=r.getArg(o,"sourcesContent",null),p=r.getArg(o,"mappings"),h=r.getArg(o,"file",null);if(s!=t._version)throw new Error("Unsupported version: "+s);return c&&(c=r.normalize(c)),a=a.map(String).map(r.normalize).map((function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e})),t._names=i.fromArray(u.map(String),!0),t._sources=i.fromArray(a,!0),t._absoluteSources=t._sources.toArray().map((function(e){return r.computeSourceURL(c,e,n)})),t.sourceRoot=c,t.sourcesContent=g,t._mappings=p,t._sourceMapURL=n,t.file=h,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(let n=0;n{null!==n.source&&(n.source=this._sources.at(n.source),n.source=r.computeSourceURL(s,n.source,this._sourceMapURL),null!==n.name&&(n.name=this._names.at(n.name))),e.call(o,n)},()=>{switch(i){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source");const t=r.getArg(e,"line"),o=e.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(t<1)throw new Error("Line numbers must be >= 1");if(o<0)throw new Error("Column numbers must be >= 0");const i=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),i.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),i}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const n={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let t,o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>t=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,o)}),t&&t.generatedLine===n.generatedLine){let e=r.getArg(t,"source",null);null!==e&&(e=this._sources.at(e),e=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL));let n=r.getArg(t,"name",null);return null!==n&&(n=this._names.at(n)),{source:e,line:r.getArg(t,"originalLine",null),column:r.getArg(t,"originalColumn",null),name:n}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))}sourceContentFor(e,n){if(!this.sourcesContent)return null;const t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];let o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){const e=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')}generatedPositionFor(e){let n=r.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};const t={source:n,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(t.originalLine<1)throw new Error("Line numbers must be >= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");let o,i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>o=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),t.source,t.originalLine-1,t.originalColumn,i)}),o&&o.source===t.source){let e=o.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u,n.BasicSourceMapConsumer=c;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const s=r.getArg(o,"version"),l=r.getArg(o,"sections");if(s!=t._version)throw new Error("Unsupported version: "+s);t._sources=new i,t._names=new i,t.__generatedMappings=null,t.__originalMappings=null,t.__generatedMappingsUnsorted=null,t.__originalMappingsUnsorted=null;let a={line:-1,column:0};return Promise.all(l.map(e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const t=r.getArg(e,"offset"),o=r.getArg(t,"line"),i=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get _generatedMappings(){return this.__generatedMappings||this._sortGeneratedMappings(),this.__generatedMappings}get _originalMappings(){return this.__originalMappings||this._sortOriginalMappings(),this.__originalMappings}get _generatedMappingsUnsorted(){return this.__generatedMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappingsUnsorted}get _originalMappingsUnsorted(){return this.__originalMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappingsUnsorted}_sortGeneratedMappings(){const e=this._generatedMappingsUnsorted;e.sort(r.compareByGeneratedPositionsDeflated),this.__generatedMappings=e}_sortOriginalMappings(){const e=this._originalMappingsUnsorted;e.sort(r.compareByOriginalPositions),this.__originalMappings=e}get sources(){const e=[];for(let n=0;ni.push(e));for(let e=0;e= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");const i=[];let s=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){let t=this._originalMappings[s];if(void 0===e.column){const e=t.originalLine;for(;t&&t.originalLine===e;){let e=t.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),i.push({line:r.getArg(t,"generatedLine",null),column:r.getArg(t,"generatedColumn",null),lastColumn:e}),t=this._originalMappings[++s]}}else{const e=t.originalColumn;for(;t&&t.originalLine===n&&t.originalColumn==e;){let e=t.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),i.push({line:r.getArg(t,"generatedLine",null),column:r.getArg(t,"generatedColumn",null),lastColumn:e}),t=this._originalMappings[++s]}}}return i}destroy(){for(let e=0;e0?r-a>1?e(a,r,o,i,s,l):l==n.LEAST_UPPER_BOUND?r1?e(t,a,o,i,s,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},function(n,t){n.exports=e},function(e,t){e.exports=n},function(e,n,t){const r=t(4);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;e.exports=function(){if(i)return i;const e=[];return i=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,i,s,l,a,u,c,g){const p=new o;p.generatedLine=n+1,p.generatedColumn=t,r&&(p.lastGeneratedColumn=i-1),s&&(p.source=l,p.originalLine=a+1,p.originalColumn=u,c&&(p.name=g)),e[e.length-1](p)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw i=null,e}),i}},function(e,n,t){const r=t(1).SourceMapGenerator,o=t(0),i=/(\r?\n)/,s="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){const r=new l,s=e.split(i);let a=0;const u=function(){return e()+(e()||"");function e(){return a=0;n--)this.prepend(e[n]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(n=[],t=0;t0&&e.column>=0)||n||r||t)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:n,name:t}))},t.prototype._serializeMappings=function(){for(var e,n,r,t,s=0,a=1,u=0,l=0,c=0,g=0,p="",h=this._mappings.toArray(),f=0,d=h.length;f0){if(!i.compareByGeneratedPositionsInflated(n,h[f-1]))continue;e+=","}e+=o.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(t=this._sources.indexOf(n.source),e+=o.encode(t-g),g=t,e+=o.encode(n.originalLine-1-l),l=n.originalLine-1,e+=o.encode(n.originalColumn-u),u=n.originalColumn,null!=n.name&&(r=this._names.indexOf(n.name),e+=o.encode(r-c),c=r)),p+=e}return p},t.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=i.relative(n,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},t.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},t.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=t},function(e,n,r){function t(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var n=1===(1&e),r=e>>1;return n?-r:r}var i=r(3),s=5,a=1<>>=s,o>0&&(n|=l),r+=i.encode(n);while(o>0);return r},n.decode=function(e,n,r){var t,a,c=e.length,g=0,p=0;do{if(n>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(a=i.decode(e.charCodeAt(n++)),a===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));t=!!(a&l),a&=u,g+=a<=0;c--)s=u[c],"."===s?u.splice(c,1):".."===s?l++:l>0&&(""===s?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return r=u.join("/"),""===r&&(r=a?"/":"."),i?(i.path=r,o(i)):r}function s(e,n){""===e&&(e="."),""===n&&(n=".");var r=t(n),s=t(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),o(r);if(r||n.match(y))return n;if(s&&!s.host&&!s.path)return s.host=n,o(s);var a="/"===n.charAt(0)?n:i(e.replace(/\/+$/,"")+"/"+n);return s?(s.path=a,o(s)):a}function a(e,n){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==n.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0)return n;if(e=e.slice(0,t),e.match(/^([^\/]+:\/)?\/*$/))return n;++r}return Array(r+1).join("../")+n.substr(e.length+1)}function u(e){return e}function l(e){return g(e)?"$"+e:e}function c(e){return g(e)?e.slice(1):e}function g(e){if(!e)return!1;var n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(var r=n-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function p(e,n,r){var t=f(e.source,n.source);return 0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t||r?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=e.generatedLine-n.generatedLine,0!==t?t:f(e.name,n.name)))))}function h(e,n,r){var t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t||r?t:(t=f(e.source,n.source),0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:f(e.name,n.name)))))}function f(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}function d(e,n){var r=e.generatedLine-n.generatedLine;return 0!==r?r:(r=e.generatedColumn-n.generatedColumn,0!==r?r:(r=f(e.source,n.source),0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r?r:f(e.name,n.name)))))}function m(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}function _(e,n,r){if(n=n||"",e&&("/"!==e[e.length-1]&&"/"!==n[0]&&(e+="/"),n=e+n),r){var a=t(r);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var u=a.path.lastIndexOf("/");u>=0&&(a.path=a.path.substring(0,u+1))}n=s(o(a),n)}return i(n)}n.getArg=r;var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,y=/^data:.+\,.+$/;n.urlParse=t,n.urlGenerate=o,n.normalize=i,n.join=s,n.isAbsolute=function(e){return"/"===e.charAt(0)||v.test(e)},n.relative=a;var C=function(){var e=Object.create(null);return!("__proto__"in e)}();n.toSetString=C?u:l,n.fromSetString=C?u:c,n.compareByOriginalPositions=p,n.compareByGeneratedPositionsDeflated=h,n.compareByGeneratedPositionsInflated=d,n.parseSourceMapInput=m,n.computeSourceURL=_},function(e,n,r){function t(){this._array=[],this._set=s?new Map:Object.create(null)}var o=r(4),i=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;t.fromArray=function(e,n){for(var r=new t,o=0,i=e.length;o=0)return n}else{var r=o.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},t.prototype.at=function(e){if(e>=0&&er||t==r&&s>=o||i.compareByGeneratedPositionsInflated(e,n)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=r(4);o.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)},o.prototype.add=function(e){t(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},function(e,n,r){function t(e,n){var r=e;return"string"==typeof e&&(r=a.parseSourceMapInput(e)),null!=r.sections?new s(r,n):new o(r,n)}function o(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var t=a.getArg(r,"version"),o=a.getArg(r,"sources"),i=a.getArg(r,"names",[]),s=a.getArg(r,"sourceRoot",null),u=a.getArg(r,"sourcesContent",null),c=a.getArg(r,"mappings"),g=a.getArg(r,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);s&&(s=a.normalize(s)),o=o.map(String).map(a.normalize).map(function(e){return s&&a.isAbsolute(s)&&a.isAbsolute(e)?a.relative(s,e):e}),this._names=l.fromArray(i.map(String),!0),this._sources=l.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return a.computeSourceURL(s,e,n)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=n,this.file=g}function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function s(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var o=a.getArg(r,"version"),i=a.getArg(r,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new l,this._names=new l;var s={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=a.getArg(e,"offset"),o=a.getArg(r,"line"),i=a.getArg(r,"column");if(o=0){var i=this._originalMappings[o];if(void 0===e.column)for(var s=i.originalLine;i&&i.originalLine===s;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return t},n.SourceMapConsumer=t,o.prototype=Object.create(t.prototype),o.prototype.consumer=t,o.prototype._findSourceIndex=function(e){var n=e;if(null!=this.sourceRoot&&(n=a.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r1&&(r.source=d+o[1],d+=o[1],r.originalLine=h+o[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=f+o[3],f=r.originalColumn,o.length>4&&(r.name=m+o[4],m+=o[4])),A.push(r),"number"==typeof r.originalLine&&S.push(r)}g(A,a.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,g(S,a.compareByOriginalPositions),this.__originalMappings=S},o.prototype._findMapping=function(e,n,r,t,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return u.search(e,n,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[r];if(o.generatedLine===n.generatedLine){var i=a.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=a.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=a.getArg(o,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:a.getArg(o,"originalLine",null),column:a.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var t=e;null!=this.sourceRoot&&(t=a.relative(this.sourceRoot,t));var o;if(null!=this.sourceRoot&&(o=a.urlParse(this.sourceRoot))){var i=t.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!o.path||"/"==o.path)&&this._sources.has("/"+t))return this.sourcesContent[this._sources.indexOf("/"+t)]}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var n=a.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",t.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===r.source)return{line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=o,s.prototype=Object.create(t.prototype),s.prototype.constructor=t,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var e=[],n=0;n0?t-u>1?r(u,t,o,i,s,a):a==n.LEAST_UPPER_BOUND?t1?r(e,u,o,i,s,a):a==n.LEAST_UPPER_BOUND?u:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var s=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(t[s],t[s-1],!0);)--s;return s}},function(e,n){function r(e,n,r){var t=e[n];e[n]=e[r],e[r]=t}function t(e,n){return Math.round(e+Math.random()*(n-e))}function o(e,n,i,s){if(i=0;n--)this.prepend(e[n]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},t.prototype.walk=function(e){for(var n,r=0,t=this.children.length;r0){for(n=[],r=0;r 0 && aGenerated.column >= 0\n\t && !aOriginal && !aSource && !aName) {\n\t // Case 1.\n\t return;\n\t }\n\t else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n\t && aOriginal && 'line' in aOriginal && 'column' in aOriginal\n\t && aGenerated.line > 0 && aGenerated.column >= 0\n\t && aOriginal.line > 0 && aOriginal.column >= 0\n\t && aSource) {\n\t // Cases 2 and 3.\n\t return;\n\t }\n\t else {\n\t throw new Error('Invalid mapping: ' + JSON.stringify({\n\t generated: aGenerated,\n\t source: aSource,\n\t original: aOriginal,\n\t name: aName\n\t }));\n\t }\n\t };\n\t\n\t/**\n\t * Serialize the accumulated mappings in to the stream of base 64 VLQs\n\t * specified by the source map format.\n\t */\n\tSourceMapGenerator.prototype._serializeMappings =\n\t function SourceMapGenerator_serializeMappings() {\n\t var previousGeneratedColumn = 0;\n\t var previousGeneratedLine = 1;\n\t var previousOriginalColumn = 0;\n\t var previousOriginalLine = 0;\n\t var previousName = 0;\n\t var previousSource = 0;\n\t var result = '';\n\t var next;\n\t var mapping;\n\t var nameIdx;\n\t var sourceIdx;\n\t\n\t var mappings = this._mappings.toArray();\n\t for (var i = 0, len = mappings.length; i < len; i++) {\n\t mapping = mappings[i];\n\t next = ''\n\t\n\t if (mapping.generatedLine !== previousGeneratedLine) {\n\t previousGeneratedColumn = 0;\n\t while (mapping.generatedLine !== previousGeneratedLine) {\n\t next += ';';\n\t previousGeneratedLine++;\n\t }\n\t }\n\t else {\n\t if (i > 0) {\n\t if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {\n\t continue;\n\t }\n\t next += ',';\n\t }\n\t }\n\t\n\t next += base64VLQ.encode(mapping.generatedColumn\n\t - previousGeneratedColumn);\n\t previousGeneratedColumn = mapping.generatedColumn;\n\t\n\t if (mapping.source != null) {\n\t sourceIdx = this._sources.indexOf(mapping.source);\n\t next += base64VLQ.encode(sourceIdx - previousSource);\n\t previousSource = sourceIdx;\n\t\n\t // lines are stored 0-based in SourceMap spec version 3\n\t next += base64VLQ.encode(mapping.originalLine - 1\n\t - previousOriginalLine);\n\t previousOriginalLine = mapping.originalLine - 1;\n\t\n\t next += base64VLQ.encode(mapping.originalColumn\n\t - previousOriginalColumn);\n\t previousOriginalColumn = mapping.originalColumn;\n\t\n\t if (mapping.name != null) {\n\t nameIdx = this._names.indexOf(mapping.name);\n\t next += base64VLQ.encode(nameIdx - previousName);\n\t previousName = nameIdx;\n\t }\n\t }\n\t\n\t result += next;\n\t }\n\t\n\t return result;\n\t };\n\t\n\tSourceMapGenerator.prototype._generateSourcesContent =\n\t function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {\n\t return aSources.map(function (source) {\n\t if (!this._sourcesContents) {\n\t return null;\n\t }\n\t if (aSourceRoot != null) {\n\t source = util.relative(aSourceRoot, source);\n\t }\n\t var key = util.toSetString(source);\n\t return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n\t ? this._sourcesContents[key]\n\t : null;\n\t }, this);\n\t };\n\t\n\t/**\n\t * Externalize the source map.\n\t */\n\tSourceMapGenerator.prototype.toJSON =\n\t function SourceMapGenerator_toJSON() {\n\t var map = {\n\t version: this._version,\n\t sources: this._sources.toArray(),\n\t names: this._names.toArray(),\n\t mappings: this._serializeMappings()\n\t };\n\t if (this._file != null) {\n\t map.file = this._file;\n\t }\n\t if (this._sourceRoot != null) {\n\t map.sourceRoot = this._sourceRoot;\n\t }\n\t if (this._sourcesContents) {\n\t map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);\n\t }\n\t\n\t return map;\n\t };\n\t\n\t/**\n\t * Render the source map being generated to a string.\n\t */\n\tSourceMapGenerator.prototype.toString =\n\t function SourceMapGenerator_toString() {\n\t return JSON.stringify(this.toJSON());\n\t };\n\t\n\texports.SourceMapGenerator = SourceMapGenerator;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t *\n\t * Based on the Base 64 VLQ implementation in Closure Compiler:\n\t * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n\t *\n\t * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n\t * Redistribution and use in source and binary forms, with or without\n\t * modification, are permitted provided that the following conditions are\n\t * met:\n\t *\n\t * * Redistributions of source code must retain the above copyright\n\t * notice, this list of conditions and the following disclaimer.\n\t * * Redistributions in binary form must reproduce the above\n\t * copyright notice, this list of conditions and the following\n\t * disclaimer in the documentation and/or other materials provided\n\t * with the distribution.\n\t * * Neither the name of Google Inc. nor the names of its\n\t * contributors may be used to endorse or promote products derived\n\t * from this software without specific prior written permission.\n\t *\n\t * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\t * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\t * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n\t * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n\t * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n\t * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n\t * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n\t * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n\t * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\t * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t */\n\t\n\tvar base64 = __webpack_require__(3);\n\t\n\t// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n\t// length quantities we use in the source map spec, the first bit is the sign,\n\t// the next four bits are the actual value, and the 6th bit is the\n\t// continuation bit. The continuation bit tells us whether there are more\n\t// digits in this value following this digit.\n\t//\n\t// Continuation\n\t// | Sign\n\t// | |\n\t// V V\n\t// 101011\n\t\n\tvar VLQ_BASE_SHIFT = 5;\n\t\n\t// binary: 100000\n\tvar VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\t\n\t// binary: 011111\n\tvar VLQ_BASE_MASK = VLQ_BASE - 1;\n\t\n\t// binary: 100000\n\tvar VLQ_CONTINUATION_BIT = VLQ_BASE;\n\t\n\t/**\n\t * Converts from a two-complement value to a value where the sign bit is\n\t * placed in the least significant bit. For example, as decimals:\n\t * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n\t * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n\t */\n\tfunction toVLQSigned(aValue) {\n\t return aValue < 0\n\t ? ((-aValue) << 1) + 1\n\t : (aValue << 1) + 0;\n\t}\n\t\n\t/**\n\t * Converts to a two-complement value from a value where the sign bit is\n\t * placed in the least significant bit. For example, as decimals:\n\t * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1\n\t * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2\n\t */\n\tfunction fromVLQSigned(aValue) {\n\t var isNegative = (aValue & 1) === 1;\n\t var shifted = aValue >> 1;\n\t return isNegative\n\t ? -shifted\n\t : shifted;\n\t}\n\t\n\t/**\n\t * Returns the base 64 VLQ encoded value.\n\t */\n\texports.encode = function base64VLQ_encode(aValue) {\n\t var encoded = \"\";\n\t var digit;\n\t\n\t var vlq = toVLQSigned(aValue);\n\t\n\t do {\n\t digit = vlq & VLQ_BASE_MASK;\n\t vlq >>>= VLQ_BASE_SHIFT;\n\t if (vlq > 0) {\n\t // There are still more digits in this value, so we must make sure the\n\t // continuation bit is marked.\n\t digit |= VLQ_CONTINUATION_BIT;\n\t }\n\t encoded += base64.encode(digit);\n\t } while (vlq > 0);\n\t\n\t return encoded;\n\t};\n\t\n\t/**\n\t * Decodes the next base 64 VLQ value from the given string and returns the\n\t * value and the rest of the string via the out parameter.\n\t */\n\texports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {\n\t var strLen = aStr.length;\n\t var result = 0;\n\t var shift = 0;\n\t var continuation, digit;\n\t\n\t do {\n\t if (aIndex >= strLen) {\n\t throw new Error(\"Expected more digits in base 64 VLQ value.\");\n\t }\n\t\n\t digit = base64.decode(aStr.charCodeAt(aIndex++));\n\t if (digit === -1) {\n\t throw new Error(\"Invalid base64 digit: \" + aStr.charAt(aIndex - 1));\n\t }\n\t\n\t continuation = !!(digit & VLQ_CONTINUATION_BIT);\n\t digit &= VLQ_BASE_MASK;\n\t result = result + (digit << shift);\n\t shift += VLQ_BASE_SHIFT;\n\t } while (continuation);\n\t\n\t aOutParam.value = fromVLQSigned(result);\n\t aOutParam.rest = aIndex;\n\t};\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n\t\n\t/**\n\t * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n\t */\n\texports.encode = function (number) {\n\t if (0 <= number && number < intToCharMap.length) {\n\t return intToCharMap[number];\n\t }\n\t throw new TypeError(\"Must be between 0 and 63: \" + number);\n\t};\n\t\n\t/**\n\t * Decode a single base 64 character code digit to an integer. Returns -1 on\n\t * failure.\n\t */\n\texports.decode = function (charCode) {\n\t var bigA = 65; // 'A'\n\t var bigZ = 90; // 'Z'\n\t\n\t var littleA = 97; // 'a'\n\t var littleZ = 122; // 'z'\n\t\n\t var zero = 48; // '0'\n\t var nine = 57; // '9'\n\t\n\t var plus = 43; // '+'\n\t var slash = 47; // '/'\n\t\n\t var littleOffset = 26;\n\t var numberOffset = 52;\n\t\n\t // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\t if (bigA <= charCode && charCode <= bigZ) {\n\t return (charCode - bigA);\n\t }\n\t\n\t // 26 - 51: abcdefghijklmnopqrstuvwxyz\n\t if (littleA <= charCode && charCode <= littleZ) {\n\t return (charCode - littleA + littleOffset);\n\t }\n\t\n\t // 52 - 61: 0123456789\n\t if (zero <= charCode && charCode <= nine) {\n\t return (charCode - zero + numberOffset);\n\t }\n\t\n\t // 62: +\n\t if (charCode == plus) {\n\t return 62;\n\t }\n\t\n\t // 63: /\n\t if (charCode == slash) {\n\t return 63;\n\t }\n\t\n\t // Invalid base64 digit.\n\t return -1;\n\t};\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\t/**\n\t * This is a helper function for getting values from parameter/options\n\t * objects.\n\t *\n\t * @param args The object we are extracting values from\n\t * @param name The name of the property we are getting.\n\t * @param defaultValue An optional value to return if the property is missing\n\t * from the object. If this is not specified and the property is missing, an\n\t * error will be thrown.\n\t */\n\tfunction getArg(aArgs, aName, aDefaultValue) {\n\t if (aName in aArgs) {\n\t return aArgs[aName];\n\t } else if (arguments.length === 3) {\n\t return aDefaultValue;\n\t } else {\n\t throw new Error('\"' + aName + '\" is a required argument.');\n\t }\n\t}\n\texports.getArg = getArg;\n\t\n\tvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/;\n\tvar dataUrlRegexp = /^data:.+\\,.+$/;\n\t\n\tfunction urlParse(aUrl) {\n\t var match = aUrl.match(urlRegexp);\n\t if (!match) {\n\t return null;\n\t }\n\t return {\n\t scheme: match[1],\n\t auth: match[2],\n\t host: match[3],\n\t port: match[4],\n\t path: match[5]\n\t };\n\t}\n\texports.urlParse = urlParse;\n\t\n\tfunction urlGenerate(aParsedUrl) {\n\t var url = '';\n\t if (aParsedUrl.scheme) {\n\t url += aParsedUrl.scheme + ':';\n\t }\n\t url += '//';\n\t if (aParsedUrl.auth) {\n\t url += aParsedUrl.auth + '@';\n\t }\n\t if (aParsedUrl.host) {\n\t url += aParsedUrl.host;\n\t }\n\t if (aParsedUrl.port) {\n\t url += \":\" + aParsedUrl.port\n\t }\n\t if (aParsedUrl.path) {\n\t url += aParsedUrl.path;\n\t }\n\t return url;\n\t}\n\texports.urlGenerate = urlGenerate;\n\t\n\t/**\n\t * Normalizes a path, or the path portion of a URL:\n\t *\n\t * - Replaces consecutive slashes with one slash.\n\t * - Removes unnecessary '.' parts.\n\t * - Removes unnecessary '/..' parts.\n\t *\n\t * Based on code in the Node.js 'path' core module.\n\t *\n\t * @param aPath The path or url to normalize.\n\t */\n\tfunction normalize(aPath) {\n\t var path = aPath;\n\t var url = urlParse(aPath);\n\t if (url) {\n\t if (!url.path) {\n\t return aPath;\n\t }\n\t path = url.path;\n\t }\n\t var isAbsolute = exports.isAbsolute(path);\n\t\n\t var parts = path.split(/\\/+/);\n\t for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n\t part = parts[i];\n\t if (part === '.') {\n\t parts.splice(i, 1);\n\t } else if (part === '..') {\n\t up++;\n\t } else if (up > 0) {\n\t if (part === '') {\n\t // The first part is blank if the path is absolute. Trying to go\n\t // above the root is a no-op. Therefore we can remove all '..' parts\n\t // directly after the root.\n\t parts.splice(i + 1, up);\n\t up = 0;\n\t } else {\n\t parts.splice(i, 2);\n\t up--;\n\t }\n\t }\n\t }\n\t path = parts.join('/');\n\t\n\t if (path === '') {\n\t path = isAbsolute ? '/' : '.';\n\t }\n\t\n\t if (url) {\n\t url.path = path;\n\t return urlGenerate(url);\n\t }\n\t return path;\n\t}\n\texports.normalize = normalize;\n\t\n\t/**\n\t * Joins two paths/URLs.\n\t *\n\t * @param aRoot The root path or URL.\n\t * @param aPath The path or URL to be joined with the root.\n\t *\n\t * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n\t * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n\t * first.\n\t * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n\t * is updated with the result and aRoot is returned. Otherwise the result\n\t * is returned.\n\t * - If aPath is absolute, the result is aPath.\n\t * - Otherwise the two paths are joined with a slash.\n\t * - Joining for example 'http://' and 'www.example.com' is also supported.\n\t */\n\tfunction join(aRoot, aPath) {\n\t if (aRoot === \"\") {\n\t aRoot = \".\";\n\t }\n\t if (aPath === \"\") {\n\t aPath = \".\";\n\t }\n\t var aPathUrl = urlParse(aPath);\n\t var aRootUrl = urlParse(aRoot);\n\t if (aRootUrl) {\n\t aRoot = aRootUrl.path || '/';\n\t }\n\t\n\t // `join(foo, '//www.example.org')`\n\t if (aPathUrl && !aPathUrl.scheme) {\n\t if (aRootUrl) {\n\t aPathUrl.scheme = aRootUrl.scheme;\n\t }\n\t return urlGenerate(aPathUrl);\n\t }\n\t\n\t if (aPathUrl || aPath.match(dataUrlRegexp)) {\n\t return aPath;\n\t }\n\t\n\t // `join('http://', 'www.example.com')`\n\t if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n\t aRootUrl.host = aPath;\n\t return urlGenerate(aRootUrl);\n\t }\n\t\n\t var joined = aPath.charAt(0) === '/'\n\t ? aPath\n\t : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\t\n\t if (aRootUrl) {\n\t aRootUrl.path = joined;\n\t return urlGenerate(aRootUrl);\n\t }\n\t return joined;\n\t}\n\texports.join = join;\n\t\n\texports.isAbsolute = function (aPath) {\n\t return aPath.charAt(0) === '/' || urlRegexp.test(aPath);\n\t};\n\t\n\t/**\n\t * Make a path relative to a URL or another path.\n\t *\n\t * @param aRoot The root path or URL.\n\t * @param aPath The path or URL to be made relative to aRoot.\n\t */\n\tfunction relative(aRoot, aPath) {\n\t if (aRoot === \"\") {\n\t aRoot = \".\";\n\t }\n\t\n\t aRoot = aRoot.replace(/\\/$/, '');\n\t\n\t // It is possible for the path to be above the root. In this case, simply\n\t // checking whether the root is a prefix of the path won't work. Instead, we\n\t // need to remove components from the root one by one, until either we find\n\t // a prefix that fits, or we run out of components to remove.\n\t var level = 0;\n\t while (aPath.indexOf(aRoot + '/') !== 0) {\n\t var index = aRoot.lastIndexOf(\"/\");\n\t if (index < 0) {\n\t return aPath;\n\t }\n\t\n\t // If the only part of the root that is left is the scheme (i.e. http://,\n\t // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n\t // have exhausted all components, so the path is not relative to the root.\n\t aRoot = aRoot.slice(0, index);\n\t if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n\t return aPath;\n\t }\n\t\n\t ++level;\n\t }\n\t\n\t // Make sure we add a \"../\" for each component we removed from the root.\n\t return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n\t}\n\texports.relative = relative;\n\t\n\tvar supportsNullProto = (function () {\n\t var obj = Object.create(null);\n\t return !('__proto__' in obj);\n\t}());\n\t\n\tfunction identity (s) {\n\t return s;\n\t}\n\t\n\t/**\n\t * Because behavior goes wacky when you set `__proto__` on objects, we\n\t * have to prefix all the strings in our set with an arbitrary character.\n\t *\n\t * See https://github.com/mozilla/source-map/pull/31 and\n\t * https://github.com/mozilla/source-map/issues/30\n\t *\n\t * @param String aStr\n\t */\n\tfunction toSetString(aStr) {\n\t if (isProtoString(aStr)) {\n\t return '$' + aStr;\n\t }\n\t\n\t return aStr;\n\t}\n\texports.toSetString = supportsNullProto ? identity : toSetString;\n\t\n\tfunction fromSetString(aStr) {\n\t if (isProtoString(aStr)) {\n\t return aStr.slice(1);\n\t }\n\t\n\t return aStr;\n\t}\n\texports.fromSetString = supportsNullProto ? identity : fromSetString;\n\t\n\tfunction isProtoString(s) {\n\t if (!s) {\n\t return false;\n\t }\n\t\n\t var length = s.length;\n\t\n\t if (length < 9 /* \"__proto__\".length */) {\n\t return false;\n\t }\n\t\n\t if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n\t s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n\t s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n\t s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n\t s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n\t s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 9) !== 95 /* '_' */) {\n\t return false;\n\t }\n\t\n\t for (var i = length - 10; i >= 0; i--) {\n\t if (s.charCodeAt(i) !== 36 /* '$' */) {\n\t return false;\n\t }\n\t }\n\t\n\t return true;\n\t}\n\t\n\t/**\n\t * Comparator between two mappings where the original positions are compared.\n\t *\n\t * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n\t * mappings with the same original source/line/column, but different generated\n\t * line and column the same. Useful when searching for a mapping with a\n\t * stubbed out mapping.\n\t */\n\tfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n\t var cmp = strcmp(mappingA.source, mappingB.source);\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0 || onlyCompareOriginal) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return strcmp(mappingA.name, mappingB.name);\n\t}\n\texports.compareByOriginalPositions = compareByOriginalPositions;\n\t\n\t/**\n\t * Comparator between two mappings with deflated source and name indices where\n\t * the generated positions are compared.\n\t *\n\t * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n\t * mappings with the same generated line and column, but different\n\t * source/name/original line and column the same. Useful when searching for a\n\t * mapping with a stubbed out mapping.\n\t */\n\tfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n\t var cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0 || onlyCompareGenerated) {\n\t return cmp;\n\t }\n\t\n\t cmp = strcmp(mappingA.source, mappingB.source);\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return strcmp(mappingA.name, mappingB.name);\n\t}\n\texports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\t\n\tfunction strcmp(aStr1, aStr2) {\n\t if (aStr1 === aStr2) {\n\t return 0;\n\t }\n\t\n\t if (aStr1 === null) {\n\t return 1; // aStr2 !== null\n\t }\n\t\n\t if (aStr2 === null) {\n\t return -1; // aStr1 !== null\n\t }\n\t\n\t if (aStr1 > aStr2) {\n\t return 1;\n\t }\n\t\n\t return -1;\n\t}\n\t\n\t/**\n\t * Comparator between two mappings with inflated source and name strings where\n\t * the generated positions are compared.\n\t */\n\tfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n\t var cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = strcmp(mappingA.source, mappingB.source);\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return strcmp(mappingA.name, mappingB.name);\n\t}\n\texports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n\t\n\t/**\n\t * Strip any JSON XSSI avoidance prefix from the string (as documented\n\t * in the source maps specification), and then parse the string as\n\t * JSON.\n\t */\n\tfunction parseSourceMapInput(str) {\n\t return JSON.parse(str.replace(/^\\)]}'[^\\n]*\\n/, ''));\n\t}\n\texports.parseSourceMapInput = parseSourceMapInput;\n\t\n\t/**\n\t * Compute the URL of a source given the the source root, the source's\n\t * URL, and the source map's URL.\n\t */\n\tfunction computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {\n\t sourceURL = sourceURL || '';\n\t\n\t if (sourceRoot) {\n\t // This follows what Chrome does.\n\t if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') {\n\t sourceRoot += '/';\n\t }\n\t // The spec says:\n\t // Line 4: An optional source root, useful for relocating source\n\t // files on a server or removing repeated values in the\n\t // “sources” entry. This value is prepended to the individual\n\t // entries in the “source” field.\n\t sourceURL = sourceRoot + sourceURL;\n\t }\n\t\n\t // Historically, SourceMapConsumer did not take the sourceMapURL as\n\t // a parameter. This mode is still somewhat supported, which is why\n\t // this code block is conditional. However, it's preferable to pass\n\t // the source map URL to SourceMapConsumer, so that this function\n\t // can implement the source URL resolution algorithm as outlined in\n\t // the spec. This block is basically the equivalent of:\n\t // new URL(sourceURL, sourceMapURL).toString()\n\t // ... except it avoids using URL, which wasn't available in the\n\t // older releases of node still supported by this library.\n\t //\n\t // The spec says:\n\t // If the sources are not absolute URLs after prepending of the\n\t // “sourceRoot”, the sources are resolved relative to the\n\t // SourceMap (like resolving script src in a html document).\n\t if (sourceMapURL) {\n\t var parsed = urlParse(sourceMapURL);\n\t if (!parsed) {\n\t throw new Error(\"sourceMapURL could not be parsed\");\n\t }\n\t if (parsed.path) {\n\t // Strip the last path component, but keep the \"/\".\n\t var index = parsed.path.lastIndexOf('/');\n\t if (index >= 0) {\n\t parsed.path = parsed.path.substring(0, index + 1);\n\t }\n\t }\n\t sourceURL = join(urlGenerate(parsed), sourceURL);\n\t }\n\t\n\t return normalize(sourceURL);\n\t}\n\texports.computeSourceURL = computeSourceURL;\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar hasNativeMap = typeof Map !== \"undefined\";\n\t\n\t/**\n\t * A data structure which is a combination of an array and a set. Adding a new\n\t * member is O(1), testing for membership is O(1), and finding the index of an\n\t * element is O(1). Removing elements from the set is not supported. Only\n\t * strings are supported for membership.\n\t */\n\tfunction ArraySet() {\n\t this._array = [];\n\t this._set = hasNativeMap ? new Map() : Object.create(null);\n\t}\n\t\n\t/**\n\t * Static method for creating ArraySet instances from an existing array.\n\t */\n\tArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {\n\t var set = new ArraySet();\n\t for (var i = 0, len = aArray.length; i < len; i++) {\n\t set.add(aArray[i], aAllowDuplicates);\n\t }\n\t return set;\n\t};\n\t\n\t/**\n\t * Return how many unique items are in this ArraySet. If duplicates have been\n\t * added, than those do not count towards the size.\n\t *\n\t * @returns Number\n\t */\n\tArraySet.prototype.size = function ArraySet_size() {\n\t return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;\n\t};\n\t\n\t/**\n\t * Add the given string to this set.\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {\n\t var sStr = hasNativeMap ? aStr : util.toSetString(aStr);\n\t var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);\n\t var idx = this._array.length;\n\t if (!isDuplicate || aAllowDuplicates) {\n\t this._array.push(aStr);\n\t }\n\t if (!isDuplicate) {\n\t if (hasNativeMap) {\n\t this._set.set(aStr, idx);\n\t } else {\n\t this._set[sStr] = idx;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Is the given string a member of this set?\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.has = function ArraySet_has(aStr) {\n\t if (hasNativeMap) {\n\t return this._set.has(aStr);\n\t } else {\n\t var sStr = util.toSetString(aStr);\n\t return has.call(this._set, sStr);\n\t }\n\t};\n\t\n\t/**\n\t * What is the index of the given string in the array?\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {\n\t if (hasNativeMap) {\n\t var idx = this._set.get(aStr);\n\t if (idx >= 0) {\n\t return idx;\n\t }\n\t } else {\n\t var sStr = util.toSetString(aStr);\n\t if (has.call(this._set, sStr)) {\n\t return this._set[sStr];\n\t }\n\t }\n\t\n\t throw new Error('\"' + aStr + '\" is not in the set.');\n\t};\n\t\n\t/**\n\t * What is the element at the given index?\n\t *\n\t * @param Number aIdx\n\t */\n\tArraySet.prototype.at = function ArraySet_at(aIdx) {\n\t if (aIdx >= 0 && aIdx < this._array.length) {\n\t return this._array[aIdx];\n\t }\n\t throw new Error('No element indexed by ' + aIdx);\n\t};\n\t\n\t/**\n\t * Returns the array representation of this set (which has the proper indices\n\t * indicated by indexOf). Note that this is a copy of the internal array used\n\t * for storing the members so that no one can mess with internal state.\n\t */\n\tArraySet.prototype.toArray = function ArraySet_toArray() {\n\t return this._array.slice();\n\t};\n\t\n\texports.ArraySet = ArraySet;\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2014 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\t\n\t/**\n\t * Determine whether mappingB is after mappingA with respect to generated\n\t * position.\n\t */\n\tfunction generatedPositionAfter(mappingA, mappingB) {\n\t // Optimized for most common case\n\t var lineA = mappingA.generatedLine;\n\t var lineB = mappingB.generatedLine;\n\t var columnA = mappingA.generatedColumn;\n\t var columnB = mappingB.generatedColumn;\n\t return lineB > lineA || lineB == lineA && columnB >= columnA ||\n\t util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;\n\t}\n\t\n\t/**\n\t * A data structure to provide a sorted view of accumulated mappings in a\n\t * performance conscious manner. It trades a neglibable overhead in general\n\t * case for a large speedup in case of mappings being added in order.\n\t */\n\tfunction MappingList() {\n\t this._array = [];\n\t this._sorted = true;\n\t // Serves as infimum\n\t this._last = {generatedLine: -1, generatedColumn: 0};\n\t}\n\t\n\t/**\n\t * Iterate through internal items. This method takes the same arguments that\n\t * `Array.prototype.forEach` takes.\n\t *\n\t * NOTE: The order of the mappings is NOT guaranteed.\n\t */\n\tMappingList.prototype.unsortedForEach =\n\t function MappingList_forEach(aCallback, aThisArg) {\n\t this._array.forEach(aCallback, aThisArg);\n\t };\n\t\n\t/**\n\t * Add the given source mapping.\n\t *\n\t * @param Object aMapping\n\t */\n\tMappingList.prototype.add = function MappingList_add(aMapping) {\n\t if (generatedPositionAfter(this._last, aMapping)) {\n\t this._last = aMapping;\n\t this._array.push(aMapping);\n\t } else {\n\t this._sorted = false;\n\t this._array.push(aMapping);\n\t }\n\t};\n\t\n\t/**\n\t * Returns the flat, sorted array of mappings. The mappings are sorted by\n\t * generated position.\n\t *\n\t * WARNING: This method returns internal data without copying, for\n\t * performance. The return value must NOT be mutated, and should be treated as\n\t * an immutable borrow. If you want to take ownership, you must make your own\n\t * copy.\n\t */\n\tMappingList.prototype.toArray = function MappingList_toArray() {\n\t if (!this._sorted) {\n\t this._array.sort(util.compareByGeneratedPositionsInflated);\n\t this._sorted = true;\n\t }\n\t return this._array;\n\t};\n\t\n\texports.MappingList = MappingList;\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\tvar binarySearch = __webpack_require__(8);\n\tvar ArraySet = __webpack_require__(5).ArraySet;\n\tvar base64VLQ = __webpack_require__(2);\n\tvar quickSort = __webpack_require__(9).quickSort;\n\t\n\tfunction SourceMapConsumer(aSourceMap, aSourceMapURL) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = util.parseSourceMapInput(aSourceMap);\n\t }\n\t\n\t return sourceMap.sections != null\n\t ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)\n\t : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);\n\t}\n\t\n\tSourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {\n\t return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);\n\t}\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tSourceMapConsumer.prototype._version = 3;\n\t\n\t// `__generatedMappings` and `__originalMappings` are arrays that hold the\n\t// parsed mapping coordinates from the source map's \"mappings\" attribute. They\n\t// are lazily instantiated, accessed via the `_generatedMappings` and\n\t// `_originalMappings` getters respectively, and we only parse the mappings\n\t// and create these arrays once queried for a source location. We jump through\n\t// these hoops because there can be many thousands of mappings, and parsing\n\t// them is expensive, so we only want to do it if we must.\n\t//\n\t// Each object in the arrays is of the form:\n\t//\n\t// {\n\t// generatedLine: The line number in the generated code,\n\t// generatedColumn: The column number in the generated code,\n\t// source: The path to the original source file that generated this\n\t// chunk of code,\n\t// originalLine: The line number in the original source that\n\t// corresponds to this chunk of generated code,\n\t// originalColumn: The column number in the original source that\n\t// corresponds to this chunk of generated code,\n\t// name: The name of the original symbol which generated this chunk of\n\t// code.\n\t// }\n\t//\n\t// All properties except for `generatedLine` and `generatedColumn` can be\n\t// `null`.\n\t//\n\t// `_generatedMappings` is ordered by the generated positions.\n\t//\n\t// `_originalMappings` is ordered by the original positions.\n\t\n\tSourceMapConsumer.prototype.__generatedMappings = null;\n\tObject.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {\n\t configurable: true,\n\t enumerable: true,\n\t get: function () {\n\t if (!this.__generatedMappings) {\n\t this._parseMappings(this._mappings, this.sourceRoot);\n\t }\n\t\n\t return this.__generatedMappings;\n\t }\n\t});\n\t\n\tSourceMapConsumer.prototype.__originalMappings = null;\n\tObject.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {\n\t configurable: true,\n\t enumerable: true,\n\t get: function () {\n\t if (!this.__originalMappings) {\n\t this._parseMappings(this._mappings, this.sourceRoot);\n\t }\n\t\n\t return this.__originalMappings;\n\t }\n\t});\n\t\n\tSourceMapConsumer.prototype._charIsMappingSeparator =\n\t function SourceMapConsumer_charIsMappingSeparator(aStr, index) {\n\t var c = aStr.charAt(index);\n\t return c === \";\" || c === \",\";\n\t };\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tSourceMapConsumer.prototype._parseMappings =\n\t function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t throw new Error(\"Subclasses must implement _parseMappings\");\n\t };\n\t\n\tSourceMapConsumer.GENERATED_ORDER = 1;\n\tSourceMapConsumer.ORIGINAL_ORDER = 2;\n\t\n\tSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\n\tSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\t\n\t/**\n\t * Iterate over each mapping between an original source/line/column and a\n\t * generated line/column in this source map.\n\t *\n\t * @param Function aCallback\n\t * The function that is called with each mapping.\n\t * @param Object aContext\n\t * Optional. If specified, this object will be the value of `this` every\n\t * time that `aCallback` is called.\n\t * @param aOrder\n\t * Either `SourceMapConsumer.GENERATED_ORDER` or\n\t * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n\t * iterate over the mappings sorted by the generated file's line/column\n\t * order or the original's source/line/column order, respectively. Defaults to\n\t * `SourceMapConsumer.GENERATED_ORDER`.\n\t */\n\tSourceMapConsumer.prototype.eachMapping =\n\t function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {\n\t var context = aContext || null;\n\t var order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\t\n\t var mappings;\n\t switch (order) {\n\t case SourceMapConsumer.GENERATED_ORDER:\n\t mappings = this._generatedMappings;\n\t break;\n\t case SourceMapConsumer.ORIGINAL_ORDER:\n\t mappings = this._originalMappings;\n\t break;\n\t default:\n\t throw new Error(\"Unknown order of iteration.\");\n\t }\n\t\n\t var sourceRoot = this.sourceRoot;\n\t mappings.map(function (mapping) {\n\t var source = mapping.source === null ? null : this._sources.at(mapping.source);\n\t source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);\n\t return {\n\t source: source,\n\t generatedLine: mapping.generatedLine,\n\t generatedColumn: mapping.generatedColumn,\n\t originalLine: mapping.originalLine,\n\t originalColumn: mapping.originalColumn,\n\t name: mapping.name === null ? null : this._names.at(mapping.name)\n\t };\n\t }, this).forEach(aCallback, context);\n\t };\n\t\n\t/**\n\t * Returns all generated line and column information for the original source,\n\t * line, and column provided. If no column is provided, returns all mappings\n\t * corresponding to a either the line we are searching for or the next\n\t * closest line that has any mappings. Otherwise, returns all mappings\n\t * corresponding to the given line and either the column we are searching for\n\t * or the next closest column that has any offsets.\n\t *\n\t * The only argument is an object with the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source. The line number is 1-based.\n\t * - column: Optional. the column number in the original source.\n\t * The column number is 0-based.\n\t *\n\t * and an array of objects is returned, each with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null. The\n\t * line number is 1-based.\n\t * - column: The column number in the generated source, or null.\n\t * The column number is 0-based.\n\t */\n\tSourceMapConsumer.prototype.allGeneratedPositionsFor =\n\t function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {\n\t var line = util.getArg(aArgs, 'line');\n\t\n\t // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping\n\t // returns the index of the closest mapping less than the needle. By\n\t // setting needle.originalColumn to 0, we thus find the last mapping for\n\t // the given line, provided such a mapping exists.\n\t var needle = {\n\t source: util.getArg(aArgs, 'source'),\n\t originalLine: line,\n\t originalColumn: util.getArg(aArgs, 'column', 0)\n\t };\n\t\n\t needle.source = this._findSourceIndex(needle.source);\n\t if (needle.source < 0) {\n\t return [];\n\t }\n\t\n\t var mappings = [];\n\t\n\t var index = this._findMapping(needle,\n\t this._originalMappings,\n\t \"originalLine\",\n\t \"originalColumn\",\n\t util.compareByOriginalPositions,\n\t binarySearch.LEAST_UPPER_BOUND);\n\t if (index >= 0) {\n\t var mapping = this._originalMappings[index];\n\t\n\t if (aArgs.column === undefined) {\n\t var originalLine = mapping.originalLine;\n\t\n\t // Iterate until either we run out of mappings, or we run into\n\t // a mapping for a different line than the one we found. Since\n\t // mappings are sorted, this is guaranteed to find all mappings for\n\t // the line we found.\n\t while (mapping && mapping.originalLine === originalLine) {\n\t mappings.push({\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t });\n\t\n\t mapping = this._originalMappings[++index];\n\t }\n\t } else {\n\t var originalColumn = mapping.originalColumn;\n\t\n\t // Iterate until either we run out of mappings, or we run into\n\t // a mapping for a different line than the one we were searching for.\n\t // Since mappings are sorted, this is guaranteed to find all mappings for\n\t // the line we are searching for.\n\t while (mapping &&\n\t mapping.originalLine === line &&\n\t mapping.originalColumn == originalColumn) {\n\t mappings.push({\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t });\n\t\n\t mapping = this._originalMappings[++index];\n\t }\n\t }\n\t }\n\t\n\t return mappings;\n\t };\n\t\n\texports.SourceMapConsumer = SourceMapConsumer;\n\t\n\t/**\n\t * A BasicSourceMapConsumer instance represents a parsed source map which we can\n\t * query for information about the original file positions by giving it a file\n\t * position in the generated source.\n\t *\n\t * The first parameter is the raw source map (either as a JSON string, or\n\t * already parsed to an object). According to the spec, source maps have the\n\t * following attributes:\n\t *\n\t * - version: Which version of the source map spec this map is following.\n\t * - sources: An array of URLs to the original source files.\n\t * - names: An array of identifiers which can be referrenced by individual mappings.\n\t * - sourceRoot: Optional. The URL root from which all sources are relative.\n\t * - sourcesContent: Optional. An array of contents of the original source files.\n\t * - mappings: A string of base64 VLQs which contain the actual mappings.\n\t * - file: Optional. The generated file this source map is associated with.\n\t *\n\t * Here is an example source map, taken from the source map spec[0]:\n\t *\n\t * {\n\t * version : 3,\n\t * file: \"out.js\",\n\t * sourceRoot : \"\",\n\t * sources: [\"foo.js\", \"bar.js\"],\n\t * names: [\"src\", \"maps\", \"are\", \"fun\"],\n\t * mappings: \"AA,AB;;ABCDE;\"\n\t * }\n\t *\n\t * The second parameter, if given, is a string whose value is the URL\n\t * at which the source map was found. This URL is used to compute the\n\t * sources array.\n\t *\n\t * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n\t */\n\tfunction BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = util.parseSourceMapInput(aSourceMap);\n\t }\n\t\n\t var version = util.getArg(sourceMap, 'version');\n\t var sources = util.getArg(sourceMap, 'sources');\n\t // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n\t // requires the array) to play nice here.\n\t var names = util.getArg(sourceMap, 'names', []);\n\t var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);\n\t var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);\n\t var mappings = util.getArg(sourceMap, 'mappings');\n\t var file = util.getArg(sourceMap, 'file', null);\n\t\n\t // Once again, Sass deviates from the spec and supplies the version as a\n\t // string rather than a number, so we use loose equality checking here.\n\t if (version != this._version) {\n\t throw new Error('Unsupported version: ' + version);\n\t }\n\t\n\t if (sourceRoot) {\n\t sourceRoot = util.normalize(sourceRoot);\n\t }\n\t\n\t sources = sources\n\t .map(String)\n\t // Some source maps produce relative source paths like \"./foo.js\" instead of\n\t // \"foo.js\". Normalize these first so that future comparisons will succeed.\n\t // See bugzil.la/1090768.\n\t .map(util.normalize)\n\t // Always ensure that absolute sources are internally stored relative to\n\t // the source root, if the source root is absolute. Not doing this would\n\t // be particularly problematic when the source root is a prefix of the\n\t // source (valid, but why??). See github issue #199 and bugzil.la/1188982.\n\t .map(function (source) {\n\t return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)\n\t ? util.relative(sourceRoot, source)\n\t : source;\n\t });\n\t\n\t // Pass `true` below to allow duplicate names and sources. While source maps\n\t // are intended to be compressed and deduplicated, the TypeScript compiler\n\t // sometimes generates source maps with duplicates in them. See Github issue\n\t // #72 and bugzil.la/889492.\n\t this._names = ArraySet.fromArray(names.map(String), true);\n\t this._sources = ArraySet.fromArray(sources, true);\n\t\n\t this._absoluteSources = this._sources.toArray().map(function (s) {\n\t return util.computeSourceURL(sourceRoot, s, aSourceMapURL);\n\t });\n\t\n\t this.sourceRoot = sourceRoot;\n\t this.sourcesContent = sourcesContent;\n\t this._mappings = mappings;\n\t this._sourceMapURL = aSourceMapURL;\n\t this.file = file;\n\t}\n\t\n\tBasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\n\tBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\n\t\n\t/**\n\t * Utility function to find the index of a source. Returns -1 if not\n\t * found.\n\t */\n\tBasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {\n\t var relativeSource = aSource;\n\t if (this.sourceRoot != null) {\n\t relativeSource = util.relative(this.sourceRoot, relativeSource);\n\t }\n\t\n\t if (this._sources.has(relativeSource)) {\n\t return this._sources.indexOf(relativeSource);\n\t }\n\t\n\t // Maybe aSource is an absolute URL as returned by |sources|. In\n\t // this case we can't simply undo the transform.\n\t var i;\n\t for (i = 0; i < this._absoluteSources.length; ++i) {\n\t if (this._absoluteSources[i] == aSource) {\n\t return i;\n\t }\n\t }\n\t\n\t return -1;\n\t};\n\t\n\t/**\n\t * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n\t *\n\t * @param SourceMapGenerator aSourceMap\n\t * The source map that will be consumed.\n\t * @param String aSourceMapURL\n\t * The URL at which the source map can be found (optional)\n\t * @returns BasicSourceMapConsumer\n\t */\n\tBasicSourceMapConsumer.fromSourceMap =\n\t function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {\n\t var smc = Object.create(BasicSourceMapConsumer.prototype);\n\t\n\t var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);\n\t var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);\n\t smc.sourceRoot = aSourceMap._sourceRoot;\n\t smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),\n\t smc.sourceRoot);\n\t smc.file = aSourceMap._file;\n\t smc._sourceMapURL = aSourceMapURL;\n\t smc._absoluteSources = smc._sources.toArray().map(function (s) {\n\t return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);\n\t });\n\t\n\t // Because we are modifying the entries (by converting string sources and\n\t // names to indices into the sources and names ArraySets), we have to make\n\t // a copy of the entry or else bad things happen. Shared mutable state\n\t // strikes again! See github issue #191.\n\t\n\t var generatedMappings = aSourceMap._mappings.toArray().slice();\n\t var destGeneratedMappings = smc.__generatedMappings = [];\n\t var destOriginalMappings = smc.__originalMappings = [];\n\t\n\t for (var i = 0, length = generatedMappings.length; i < length; i++) {\n\t var srcMapping = generatedMappings[i];\n\t var destMapping = new Mapping;\n\t destMapping.generatedLine = srcMapping.generatedLine;\n\t destMapping.generatedColumn = srcMapping.generatedColumn;\n\t\n\t if (srcMapping.source) {\n\t destMapping.source = sources.indexOf(srcMapping.source);\n\t destMapping.originalLine = srcMapping.originalLine;\n\t destMapping.originalColumn = srcMapping.originalColumn;\n\t\n\t if (srcMapping.name) {\n\t destMapping.name = names.indexOf(srcMapping.name);\n\t }\n\t\n\t destOriginalMappings.push(destMapping);\n\t }\n\t\n\t destGeneratedMappings.push(destMapping);\n\t }\n\t\n\t quickSort(smc.__originalMappings, util.compareByOriginalPositions);\n\t\n\t return smc;\n\t };\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tBasicSourceMapConsumer.prototype._version = 3;\n\t\n\t/**\n\t * The list of original sources.\n\t */\n\tObject.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {\n\t get: function () {\n\t return this._absoluteSources.slice();\n\t }\n\t});\n\t\n\t/**\n\t * Provide the JIT with a nice shape / hidden class.\n\t */\n\tfunction Mapping() {\n\t this.generatedLine = 0;\n\t this.generatedColumn = 0;\n\t this.source = null;\n\t this.originalLine = null;\n\t this.originalColumn = null;\n\t this.name = null;\n\t}\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tBasicSourceMapConsumer.prototype._parseMappings =\n\t function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t var generatedLine = 1;\n\t var previousGeneratedColumn = 0;\n\t var previousOriginalLine = 0;\n\t var previousOriginalColumn = 0;\n\t var previousSource = 0;\n\t var previousName = 0;\n\t var length = aStr.length;\n\t var index = 0;\n\t var cachedSegments = {};\n\t var temp = {};\n\t var originalMappings = [];\n\t var generatedMappings = [];\n\t var mapping, str, segment, end, value;\n\t\n\t while (index < length) {\n\t if (aStr.charAt(index) === ';') {\n\t generatedLine++;\n\t index++;\n\t previousGeneratedColumn = 0;\n\t }\n\t else if (aStr.charAt(index) === ',') {\n\t index++;\n\t }\n\t else {\n\t mapping = new Mapping();\n\t mapping.generatedLine = generatedLine;\n\t\n\t // Because each offset is encoded relative to the previous one,\n\t // many segments often have the same encoding. We can exploit this\n\t // fact by caching the parsed variable length fields of each segment,\n\t // allowing us to avoid a second parse if we encounter the same\n\t // segment again.\n\t for (end = index; end < length; end++) {\n\t if (this._charIsMappingSeparator(aStr, end)) {\n\t break;\n\t }\n\t }\n\t str = aStr.slice(index, end);\n\t\n\t segment = cachedSegments[str];\n\t if (segment) {\n\t index += str.length;\n\t } else {\n\t segment = [];\n\t while (index < end) {\n\t base64VLQ.decode(aStr, index, temp);\n\t value = temp.value;\n\t index = temp.rest;\n\t segment.push(value);\n\t }\n\t\n\t if (segment.length === 2) {\n\t throw new Error('Found a source, but no line and column');\n\t }\n\t\n\t if (segment.length === 3) {\n\t throw new Error('Found a source and line, but no column');\n\t }\n\t\n\t cachedSegments[str] = segment;\n\t }\n\t\n\t // Generated column.\n\t mapping.generatedColumn = previousGeneratedColumn + segment[0];\n\t previousGeneratedColumn = mapping.generatedColumn;\n\t\n\t if (segment.length > 1) {\n\t // Original source.\n\t mapping.source = previousSource + segment[1];\n\t previousSource += segment[1];\n\t\n\t // Original line.\n\t mapping.originalLine = previousOriginalLine + segment[2];\n\t previousOriginalLine = mapping.originalLine;\n\t // Lines are stored 0-based\n\t mapping.originalLine += 1;\n\t\n\t // Original column.\n\t mapping.originalColumn = previousOriginalColumn + segment[3];\n\t previousOriginalColumn = mapping.originalColumn;\n\t\n\t if (segment.length > 4) {\n\t // Original name.\n\t mapping.name = previousName + segment[4];\n\t previousName += segment[4];\n\t }\n\t }\n\t\n\t generatedMappings.push(mapping);\n\t if (typeof mapping.originalLine === 'number') {\n\t originalMappings.push(mapping);\n\t }\n\t }\n\t }\n\t\n\t quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);\n\t this.__generatedMappings = generatedMappings;\n\t\n\t quickSort(originalMappings, util.compareByOriginalPositions);\n\t this.__originalMappings = originalMappings;\n\t };\n\t\n\t/**\n\t * Find the mapping that best matches the hypothetical \"needle\" mapping that\n\t * we are searching for in the given \"haystack\" of mappings.\n\t */\n\tBasicSourceMapConsumer.prototype._findMapping =\n\t function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,\n\t aColumnName, aComparator, aBias) {\n\t // To return the position we are searching for, we must first find the\n\t // mapping for the given position and then return the opposite position it\n\t // points to. Because the mappings are sorted, we can use binary search to\n\t // find the best mapping.\n\t\n\t if (aNeedle[aLineName] <= 0) {\n\t throw new TypeError('Line must be greater than or equal to 1, got '\n\t + aNeedle[aLineName]);\n\t }\n\t if (aNeedle[aColumnName] < 0) {\n\t throw new TypeError('Column must be greater than or equal to 0, got '\n\t + aNeedle[aColumnName]);\n\t }\n\t\n\t return binarySearch.search(aNeedle, aMappings, aComparator, aBias);\n\t };\n\t\n\t/**\n\t * Compute the last column for each generated mapping. The last column is\n\t * inclusive.\n\t */\n\tBasicSourceMapConsumer.prototype.computeColumnSpans =\n\t function SourceMapConsumer_computeColumnSpans() {\n\t for (var index = 0; index < this._generatedMappings.length; ++index) {\n\t var mapping = this._generatedMappings[index];\n\t\n\t // Mappings do not contain a field for the last generated columnt. We\n\t // can come up with an optimistic estimate, however, by assuming that\n\t // mappings are contiguous (i.e. given two consecutive mappings, the\n\t // first mapping ends where the second one starts).\n\t if (index + 1 < this._generatedMappings.length) {\n\t var nextMapping = this._generatedMappings[index + 1];\n\t\n\t if (mapping.generatedLine === nextMapping.generatedLine) {\n\t mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;\n\t continue;\n\t }\n\t }\n\t\n\t // The last mapping for each line spans the entire line.\n\t mapping.lastGeneratedColumn = Infinity;\n\t }\n\t };\n\t\n\t/**\n\t * Returns the original source, line, and column information for the generated\n\t * source's line and column positions provided. The only argument is an object\n\t * with the following properties:\n\t *\n\t * - line: The line number in the generated source. The line number\n\t * is 1-based.\n\t * - column: The column number in the generated source. The column\n\t * number is 0-based.\n\t * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n\t * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - source: The original source file, or null.\n\t * - line: The line number in the original source, or null. The\n\t * line number is 1-based.\n\t * - column: The column number in the original source, or null. The\n\t * column number is 0-based.\n\t * - name: The original identifier, or null.\n\t */\n\tBasicSourceMapConsumer.prototype.originalPositionFor =\n\t function SourceMapConsumer_originalPositionFor(aArgs) {\n\t var needle = {\n\t generatedLine: util.getArg(aArgs, 'line'),\n\t generatedColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t var index = this._findMapping(\n\t needle,\n\t this._generatedMappings,\n\t \"generatedLine\",\n\t \"generatedColumn\",\n\t util.compareByGeneratedPositionsDeflated,\n\t util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n\t );\n\t\n\t if (index >= 0) {\n\t var mapping = this._generatedMappings[index];\n\t\n\t if (mapping.generatedLine === needle.generatedLine) {\n\t var source = util.getArg(mapping, 'source', null);\n\t if (source !== null) {\n\t source = this._sources.at(source);\n\t source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);\n\t }\n\t var name = util.getArg(mapping, 'name', null);\n\t if (name !== null) {\n\t name = this._names.at(name);\n\t }\n\t return {\n\t source: source,\n\t line: util.getArg(mapping, 'originalLine', null),\n\t column: util.getArg(mapping, 'originalColumn', null),\n\t name: name\n\t };\n\t }\n\t }\n\t\n\t return {\n\t source: null,\n\t line: null,\n\t column: null,\n\t name: null\n\t };\n\t };\n\t\n\t/**\n\t * Return true if we have the source content for every source in the source\n\t * map, false otherwise.\n\t */\n\tBasicSourceMapConsumer.prototype.hasContentsOfAllSources =\n\t function BasicSourceMapConsumer_hasContentsOfAllSources() {\n\t if (!this.sourcesContent) {\n\t return false;\n\t }\n\t return this.sourcesContent.length >= this._sources.size() &&\n\t !this.sourcesContent.some(function (sc) { return sc == null; });\n\t };\n\t\n\t/**\n\t * Returns the original source content. The only argument is the url of the\n\t * original source file. Returns null if no original source content is\n\t * available.\n\t */\n\tBasicSourceMapConsumer.prototype.sourceContentFor =\n\t function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n\t if (!this.sourcesContent) {\n\t return null;\n\t }\n\t\n\t var index = this._findSourceIndex(aSource);\n\t if (index >= 0) {\n\t return this.sourcesContent[index];\n\t }\n\t\n\t var relativeSource = aSource;\n\t if (this.sourceRoot != null) {\n\t relativeSource = util.relative(this.sourceRoot, relativeSource);\n\t }\n\t\n\t var url;\n\t if (this.sourceRoot != null\n\t && (url = util.urlParse(this.sourceRoot))) {\n\t // XXX: file:// URIs and absolute paths lead to unexpected behavior for\n\t // many users. We can help them out when they expect file:// URIs to\n\t // behave like it would if they were running a local HTTP server. See\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.\n\t var fileUriAbsPath = relativeSource.replace(/^file:\\/\\//, \"\");\n\t if (url.scheme == \"file\"\n\t && this._sources.has(fileUriAbsPath)) {\n\t return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]\n\t }\n\t\n\t if ((!url.path || url.path == \"/\")\n\t && this._sources.has(\"/\" + relativeSource)) {\n\t return this.sourcesContent[this._sources.indexOf(\"/\" + relativeSource)];\n\t }\n\t }\n\t\n\t // This function is used recursively from\n\t // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n\t // don't want to throw if we can't find the source - we just want to\n\t // return null, so we provide a flag to exit gracefully.\n\t if (nullOnMissing) {\n\t return null;\n\t }\n\t else {\n\t throw new Error('\"' + relativeSource + '\" is not in the SourceMap.');\n\t }\n\t };\n\t\n\t/**\n\t * Returns the generated line and column information for the original source,\n\t * line, and column positions provided. The only argument is an object with\n\t * the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source. The line number\n\t * is 1-based.\n\t * - column: The column number in the original source. The column\n\t * number is 0-based.\n\t * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n\t * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null. The\n\t * line number is 1-based.\n\t * - column: The column number in the generated source, or null.\n\t * The column number is 0-based.\n\t */\n\tBasicSourceMapConsumer.prototype.generatedPositionFor =\n\t function SourceMapConsumer_generatedPositionFor(aArgs) {\n\t var source = util.getArg(aArgs, 'source');\n\t source = this._findSourceIndex(source);\n\t if (source < 0) {\n\t return {\n\t line: null,\n\t column: null,\n\t lastColumn: null\n\t };\n\t }\n\t\n\t var needle = {\n\t source: source,\n\t originalLine: util.getArg(aArgs, 'line'),\n\t originalColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t var index = this._findMapping(\n\t needle,\n\t this._originalMappings,\n\t \"originalLine\",\n\t \"originalColumn\",\n\t util.compareByOriginalPositions,\n\t util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n\t );\n\t\n\t if (index >= 0) {\n\t var mapping = this._originalMappings[index];\n\t\n\t if (mapping.source === needle.source) {\n\t return {\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t };\n\t }\n\t }\n\t\n\t return {\n\t line: null,\n\t column: null,\n\t lastColumn: null\n\t };\n\t };\n\t\n\texports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\t\n\t/**\n\t * An IndexedSourceMapConsumer instance represents a parsed source map which\n\t * we can query for information. It differs from BasicSourceMapConsumer in\n\t * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n\t * input.\n\t *\n\t * The first parameter is a raw source map (either as a JSON string, or already\n\t * parsed to an object). According to the spec for indexed source maps, they\n\t * have the following attributes:\n\t *\n\t * - version: Which version of the source map spec this map is following.\n\t * - file: Optional. The generated file this source map is associated with.\n\t * - sections: A list of section definitions.\n\t *\n\t * Each value under the \"sections\" field has two fields:\n\t * - offset: The offset into the original specified at which this section\n\t * begins to apply, defined as an object with a \"line\" and \"column\"\n\t * field.\n\t * - map: A source map definition. This source map could also be indexed,\n\t * but doesn't have to be.\n\t *\n\t * Instead of the \"map\" field, it's also possible to have a \"url\" field\n\t * specifying a URL to retrieve a source map from, but that's currently\n\t * unsupported.\n\t *\n\t * Here's an example source map, taken from the source map spec[0], but\n\t * modified to omit a section which uses the \"url\" field.\n\t *\n\t * {\n\t * version : 3,\n\t * file: \"app.js\",\n\t * sections: [{\n\t * offset: {line:100, column:10},\n\t * map: {\n\t * version : 3,\n\t * file: \"section.js\",\n\t * sources: [\"foo.js\", \"bar.js\"],\n\t * names: [\"src\", \"maps\", \"are\", \"fun\"],\n\t * mappings: \"AAAA,E;;ABCDE;\"\n\t * }\n\t * }],\n\t * }\n\t *\n\t * The second parameter, if given, is a string whose value is the URL\n\t * at which the source map was found. This URL is used to compute the\n\t * sources array.\n\t *\n\t * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n\t */\n\tfunction IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = util.parseSourceMapInput(aSourceMap);\n\t }\n\t\n\t var version = util.getArg(sourceMap, 'version');\n\t var sections = util.getArg(sourceMap, 'sections');\n\t\n\t if (version != this._version) {\n\t throw new Error('Unsupported version: ' + version);\n\t }\n\t\n\t this._sources = new ArraySet();\n\t this._names = new ArraySet();\n\t\n\t var lastOffset = {\n\t line: -1,\n\t column: 0\n\t };\n\t this._sections = sections.map(function (s) {\n\t if (s.url) {\n\t // The url field will require support for asynchronicity.\n\t // See https://github.com/mozilla/source-map/issues/16\n\t throw new Error('Support for url field in sections not implemented.');\n\t }\n\t var offset = util.getArg(s, 'offset');\n\t var offsetLine = util.getArg(offset, 'line');\n\t var offsetColumn = util.getArg(offset, 'column');\n\t\n\t if (offsetLine < lastOffset.line ||\n\t (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {\n\t throw new Error('Section offsets must be ordered and non-overlapping.');\n\t }\n\t lastOffset = offset;\n\t\n\t return {\n\t generatedOffset: {\n\t // The offset fields are 0-based, but we use 1-based indices when\n\t // encoding/decoding from VLQ.\n\t generatedLine: offsetLine + 1,\n\t generatedColumn: offsetColumn + 1\n\t },\n\t consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)\n\t }\n\t });\n\t}\n\t\n\tIndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\n\tIndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tIndexedSourceMapConsumer.prototype._version = 3;\n\t\n\t/**\n\t * The list of original sources.\n\t */\n\tObject.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {\n\t get: function () {\n\t var sources = [];\n\t for (var i = 0; i < this._sections.length; i++) {\n\t for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {\n\t sources.push(this._sections[i].consumer.sources[j]);\n\t }\n\t }\n\t return sources;\n\t }\n\t});\n\t\n\t/**\n\t * Returns the original source, line, and column information for the generated\n\t * source's line and column positions provided. The only argument is an object\n\t * with the following properties:\n\t *\n\t * - line: The line number in the generated source. The line number\n\t * is 1-based.\n\t * - column: The column number in the generated source. The column\n\t * number is 0-based.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - source: The original source file, or null.\n\t * - line: The line number in the original source, or null. The\n\t * line number is 1-based.\n\t * - column: The column number in the original source, or null. The\n\t * column number is 0-based.\n\t * - name: The original identifier, or null.\n\t */\n\tIndexedSourceMapConsumer.prototype.originalPositionFor =\n\t function IndexedSourceMapConsumer_originalPositionFor(aArgs) {\n\t var needle = {\n\t generatedLine: util.getArg(aArgs, 'line'),\n\t generatedColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t // Find the section containing the generated position we're trying to map\n\t // to an original position.\n\t var sectionIndex = binarySearch.search(needle, this._sections,\n\t function(needle, section) {\n\t var cmp = needle.generatedLine - section.generatedOffset.generatedLine;\n\t if (cmp) {\n\t return cmp;\n\t }\n\t\n\t return (needle.generatedColumn -\n\t section.generatedOffset.generatedColumn);\n\t });\n\t var section = this._sections[sectionIndex];\n\t\n\t if (!section) {\n\t return {\n\t source: null,\n\t line: null,\n\t column: null,\n\t name: null\n\t };\n\t }\n\t\n\t return section.consumer.originalPositionFor({\n\t line: needle.generatedLine -\n\t (section.generatedOffset.generatedLine - 1),\n\t column: needle.generatedColumn -\n\t (section.generatedOffset.generatedLine === needle.generatedLine\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0),\n\t bias: aArgs.bias\n\t });\n\t };\n\t\n\t/**\n\t * Return true if we have the source content for every source in the source\n\t * map, false otherwise.\n\t */\n\tIndexedSourceMapConsumer.prototype.hasContentsOfAllSources =\n\t function IndexedSourceMapConsumer_hasContentsOfAllSources() {\n\t return this._sections.every(function (s) {\n\t return s.consumer.hasContentsOfAllSources();\n\t });\n\t };\n\t\n\t/**\n\t * Returns the original source content. The only argument is the url of the\n\t * original source file. Returns null if no original source content is\n\t * available.\n\t */\n\tIndexedSourceMapConsumer.prototype.sourceContentFor =\n\t function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t\n\t var content = section.consumer.sourceContentFor(aSource, true);\n\t if (content) {\n\t return content;\n\t }\n\t }\n\t if (nullOnMissing) {\n\t return null;\n\t }\n\t else {\n\t throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n\t }\n\t };\n\t\n\t/**\n\t * Returns the generated line and column information for the original source,\n\t * line, and column positions provided. The only argument is an object with\n\t * the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source. The line number\n\t * is 1-based.\n\t * - column: The column number in the original source. The column\n\t * number is 0-based.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null. The\n\t * line number is 1-based. \n\t * - column: The column number in the generated source, or null.\n\t * The column number is 0-based.\n\t */\n\tIndexedSourceMapConsumer.prototype.generatedPositionFor =\n\t function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t\n\t // Only consider this section if the requested source is in the list of\n\t // sources of the consumer.\n\t if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {\n\t continue;\n\t }\n\t var generatedPosition = section.consumer.generatedPositionFor(aArgs);\n\t if (generatedPosition) {\n\t var ret = {\n\t line: generatedPosition.line +\n\t (section.generatedOffset.generatedLine - 1),\n\t column: generatedPosition.column +\n\t (section.generatedOffset.generatedLine === generatedPosition.line\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0)\n\t };\n\t return ret;\n\t }\n\t }\n\t\n\t return {\n\t line: null,\n\t column: null\n\t };\n\t };\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tIndexedSourceMapConsumer.prototype._parseMappings =\n\t function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t this.__generatedMappings = [];\n\t this.__originalMappings = [];\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t var sectionMappings = section.consumer._generatedMappings;\n\t for (var j = 0; j < sectionMappings.length; j++) {\n\t var mapping = sectionMappings[j];\n\t\n\t var source = section.consumer._sources.at(mapping.source);\n\t source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);\n\t this._sources.add(source);\n\t source = this._sources.indexOf(source);\n\t\n\t var name = null;\n\t if (mapping.name) {\n\t name = section.consumer._names.at(mapping.name);\n\t this._names.add(name);\n\t name = this._names.indexOf(name);\n\t }\n\t\n\t // The mappings coming from the consumer for the section have\n\t // generated positions relative to the start of the section, so we\n\t // need to offset them to be relative to the start of the concatenated\n\t // generated file.\n\t var adjustedMapping = {\n\t source: source,\n\t generatedLine: mapping.generatedLine +\n\t (section.generatedOffset.generatedLine - 1),\n\t generatedColumn: mapping.generatedColumn +\n\t (section.generatedOffset.generatedLine === mapping.generatedLine\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0),\n\t originalLine: mapping.originalLine,\n\t originalColumn: mapping.originalColumn,\n\t name: name\n\t };\n\t\n\t this.__generatedMappings.push(adjustedMapping);\n\t if (typeof adjustedMapping.originalLine === 'number') {\n\t this.__originalMappings.push(adjustedMapping);\n\t }\n\t }\n\t }\n\t\n\t quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);\n\t quickSort(this.__originalMappings, util.compareByOriginalPositions);\n\t };\n\t\n\texports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\texports.GREATEST_LOWER_BOUND = 1;\n\texports.LEAST_UPPER_BOUND = 2;\n\t\n\t/**\n\t * Recursive implementation of binary search.\n\t *\n\t * @param aLow Indices here and lower do not contain the needle.\n\t * @param aHigh Indices here and higher do not contain the needle.\n\t * @param aNeedle The element being searched for.\n\t * @param aHaystack The non-empty array being searched.\n\t * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n\t * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n\t * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t */\n\tfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n\t // This function terminates when one of the following is true:\n\t //\n\t // 1. We find the exact element we are looking for.\n\t //\n\t // 2. We did not find the exact element, but we can return the index of\n\t // the next-closest element.\n\t //\n\t // 3. We did not find the exact element, and there is no next-closest\n\t // element than the one we are searching for, so we return -1.\n\t var mid = Math.floor((aHigh - aLow) / 2) + aLow;\n\t var cmp = aCompare(aNeedle, aHaystack[mid], true);\n\t if (cmp === 0) {\n\t // Found the element we are looking for.\n\t return mid;\n\t }\n\t else if (cmp > 0) {\n\t // Our needle is greater than aHaystack[mid].\n\t if (aHigh - mid > 1) {\n\t // The element is in the upper half.\n\t return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n\t }\n\t\n\t // The exact needle element was not found in this haystack. Determine if\n\t // we are in termination case (3) or (2) and return the appropriate thing.\n\t if (aBias == exports.LEAST_UPPER_BOUND) {\n\t return aHigh < aHaystack.length ? aHigh : -1;\n\t } else {\n\t return mid;\n\t }\n\t }\n\t else {\n\t // Our needle is less than aHaystack[mid].\n\t if (mid - aLow > 1) {\n\t // The element is in the lower half.\n\t return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n\t }\n\t\n\t // we are in termination case (3) or (2) and return the appropriate thing.\n\t if (aBias == exports.LEAST_UPPER_BOUND) {\n\t return mid;\n\t } else {\n\t return aLow < 0 ? -1 : aLow;\n\t }\n\t }\n\t}\n\t\n\t/**\n\t * This is an implementation of binary search which will always try and return\n\t * the index of the closest element if there is no exact hit. This is because\n\t * mappings between original and generated line/col pairs are single points,\n\t * and there is an implicit region between each of them, so a miss just means\n\t * that you aren't on the very start of a region.\n\t *\n\t * @param aNeedle The element you are looking for.\n\t * @param aHaystack The array that is being searched.\n\t * @param aCompare A function which takes the needle and an element in the\n\t * array and returns -1, 0, or 1 depending on whether the needle is less\n\t * than, equal to, or greater than the element, respectively.\n\t * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n\t * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n\t */\n\texports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n\t if (aHaystack.length === 0) {\n\t return -1;\n\t }\n\t\n\t var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,\n\t aCompare, aBias || exports.GREATEST_LOWER_BOUND);\n\t if (index < 0) {\n\t return -1;\n\t }\n\t\n\t // We have found either the exact element, or the next-closest element than\n\t // the one we are searching for. However, there may be more than one such\n\t // element. Make sure we always return the smallest of these.\n\t while (index - 1 >= 0) {\n\t if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n\t break;\n\t }\n\t --index;\n\t }\n\t\n\t return index;\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\t// It turns out that some (most?) JavaScript engines don't self-host\n\t// `Array.prototype.sort`. This makes sense because C++ will likely remain\n\t// faster than JS when doing raw CPU-intensive sorting. However, when using a\n\t// custom comparator function, calling back and forth between the VM's C++ and\n\t// JIT'd JS is rather slow *and* loses JIT type information, resulting in\n\t// worse generated code for the comparator function than would be optimal. In\n\t// fact, when sorting with a comparator, these costs outweigh the benefits of\n\t// sorting in C++. By using our own JS-implemented Quick Sort (below), we get\n\t// a ~3500ms mean speed-up in `bench/bench.html`.\n\t\n\t/**\n\t * Swap the elements indexed by `x` and `y` in the array `ary`.\n\t *\n\t * @param {Array} ary\n\t * The array.\n\t * @param {Number} x\n\t * The index of the first item.\n\t * @param {Number} y\n\t * The index of the second item.\n\t */\n\tfunction swap(ary, x, y) {\n\t var temp = ary[x];\n\t ary[x] = ary[y];\n\t ary[y] = temp;\n\t}\n\t\n\t/**\n\t * Returns a random integer within the range `low .. high` inclusive.\n\t *\n\t * @param {Number} low\n\t * The lower bound on the range.\n\t * @param {Number} high\n\t * The upper bound on the range.\n\t */\n\tfunction randomIntInRange(low, high) {\n\t return Math.round(low + (Math.random() * (high - low)));\n\t}\n\t\n\t/**\n\t * The Quick Sort algorithm.\n\t *\n\t * @param {Array} ary\n\t * An array to sort.\n\t * @param {function} comparator\n\t * Function to use to compare two items.\n\t * @param {Number} p\n\t * Start index of the array\n\t * @param {Number} r\n\t * End index of the array\n\t */\n\tfunction doQuickSort(ary, comparator, p, r) {\n\t // If our lower bound is less than our upper bound, we (1) partition the\n\t // array into two pieces and (2) recurse on each half. If it is not, this is\n\t // the empty array and our base case.\n\t\n\t if (p < r) {\n\t // (1) Partitioning.\n\t //\n\t // The partitioning chooses a pivot between `p` and `r` and moves all\n\t // elements that are less than or equal to the pivot to the before it, and\n\t // all the elements that are greater than it after it. The effect is that\n\t // once partition is done, the pivot is in the exact place it will be when\n\t // the array is put in sorted order, and it will not need to be moved\n\t // again. This runs in O(n) time.\n\t\n\t // Always choose a random pivot so that an input array which is reverse\n\t // sorted does not cause O(n^2) running time.\n\t var pivotIndex = randomIntInRange(p, r);\n\t var i = p - 1;\n\t\n\t swap(ary, pivotIndex, r);\n\t var pivot = ary[r];\n\t\n\t // Immediately after `j` is incremented in this loop, the following hold\n\t // true:\n\t //\n\t // * Every element in `ary[p .. i]` is less than or equal to the pivot.\n\t //\n\t // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.\n\t for (var j = p; j < r; j++) {\n\t if (comparator(ary[j], pivot) <= 0) {\n\t i += 1;\n\t swap(ary, i, j);\n\t }\n\t }\n\t\n\t swap(ary, i + 1, j);\n\t var q = i + 1;\n\t\n\t // (2) Recurse on each half.\n\t\n\t doQuickSort(ary, comparator, p, q - 1);\n\t doQuickSort(ary, comparator, q + 1, r);\n\t }\n\t}\n\t\n\t/**\n\t * Sort the given array in-place with the given comparator function.\n\t *\n\t * @param {Array} ary\n\t * An array to sort.\n\t * @param {function} comparator\n\t * Function to use to compare two items.\n\t */\n\texports.quickSort = function (ary, comparator) {\n\t doQuickSort(ary, comparator, 0, ary.length - 1);\n\t};\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar SourceMapGenerator = __webpack_require__(1).SourceMapGenerator;\n\tvar util = __webpack_require__(4);\n\t\n\t// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n\t// operating systems these days (capturing the result).\n\tvar REGEX_NEWLINE = /(\\r?\\n)/;\n\t\n\t// Newline character code for charCodeAt() comparisons\n\tvar NEWLINE_CODE = 10;\n\t\n\t// Private symbol for identifying `SourceNode`s when multiple versions of\n\t// the source-map library are loaded. This MUST NOT CHANGE across\n\t// versions!\n\tvar isSourceNode = \"$$$isSourceNode$$$\";\n\t\n\t/**\n\t * SourceNodes provide a way to abstract over interpolating/concatenating\n\t * snippets of generated JavaScript source code while maintaining the line and\n\t * column information associated with the original source code.\n\t *\n\t * @param aLine The original line number.\n\t * @param aColumn The original column number.\n\t * @param aSource The original source's filename.\n\t * @param aChunks Optional. An array of strings which are snippets of\n\t * generated JS, or other SourceNodes.\n\t * @param aName The original identifier.\n\t */\n\tfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n\t this.children = [];\n\t this.sourceContents = {};\n\t this.line = aLine == null ? null : aLine;\n\t this.column = aColumn == null ? null : aColumn;\n\t this.source = aSource == null ? null : aSource;\n\t this.name = aName == null ? null : aName;\n\t this[isSourceNode] = true;\n\t if (aChunks != null) this.add(aChunks);\n\t}\n\t\n\t/**\n\t * Creates a SourceNode from generated code and a SourceMapConsumer.\n\t *\n\t * @param aGeneratedCode The generated code\n\t * @param aSourceMapConsumer The SourceMap for the generated code\n\t * @param aRelativePath Optional. The path that relative sources in the\n\t * SourceMapConsumer should be relative to.\n\t */\n\tSourceNode.fromStringWithSourceMap =\n\t function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n\t // The SourceNode we want to fill with the generated code\n\t // and the SourceMap\n\t var node = new SourceNode();\n\t\n\t // All even indices of this array are one line of the generated code,\n\t // while all odd indices are the newlines between two adjacent lines\n\t // (since `REGEX_NEWLINE` captures its match).\n\t // Processed fragments are accessed by calling `shiftNextLine`.\n\t var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n\t var remainingLinesIndex = 0;\n\t var shiftNextLine = function() {\n\t var lineContents = getNextLine();\n\t // The last line of a file might not have a newline.\n\t var newLine = getNextLine() || \"\";\n\t return lineContents + newLine;\n\t\n\t function getNextLine() {\n\t return remainingLinesIndex < remainingLines.length ?\n\t remainingLines[remainingLinesIndex++] : undefined;\n\t }\n\t };\n\t\n\t // We need to remember the position of \"remainingLines\"\n\t var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\t\n\t // The generate SourceNodes we need a code range.\n\t // To extract it current and last mapping is used.\n\t // Here we store the last mapping.\n\t var lastMapping = null;\n\t\n\t aSourceMapConsumer.eachMapping(function (mapping) {\n\t if (lastMapping !== null) {\n\t // We add the code from \"lastMapping\" to \"mapping\":\n\t // First check if there is a new line in between.\n\t if (lastGeneratedLine < mapping.generatedLine) {\n\t // Associate first line with \"lastMapping\"\n\t addMappingWithCode(lastMapping, shiftNextLine());\n\t lastGeneratedLine++;\n\t lastGeneratedColumn = 0;\n\t // The remaining code is added without mapping\n\t } else {\n\t // There is no new line in between.\n\t // Associate the code between \"lastGeneratedColumn\" and\n\t // \"mapping.generatedColumn\" with \"lastMapping\"\n\t var nextLine = remainingLines[remainingLinesIndex] || '';\n\t var code = nextLine.substr(0, mapping.generatedColumn -\n\t lastGeneratedColumn);\n\t remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -\n\t lastGeneratedColumn);\n\t lastGeneratedColumn = mapping.generatedColumn;\n\t addMappingWithCode(lastMapping, code);\n\t // No more remaining code, continue\n\t lastMapping = mapping;\n\t return;\n\t }\n\t }\n\t // We add the generated code until the first mapping\n\t // to the SourceNode without any mapping.\n\t // Each line is added as separate string.\n\t while (lastGeneratedLine < mapping.generatedLine) {\n\t node.add(shiftNextLine());\n\t lastGeneratedLine++;\n\t }\n\t if (lastGeneratedColumn < mapping.generatedColumn) {\n\t var nextLine = remainingLines[remainingLinesIndex] || '';\n\t node.add(nextLine.substr(0, mapping.generatedColumn));\n\t remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);\n\t lastGeneratedColumn = mapping.generatedColumn;\n\t }\n\t lastMapping = mapping;\n\t }, this);\n\t // We have processed all mappings.\n\t if (remainingLinesIndex < remainingLines.length) {\n\t if (lastMapping) {\n\t // Associate the remaining code in the current line with \"lastMapping\"\n\t addMappingWithCode(lastMapping, shiftNextLine());\n\t }\n\t // and add the remaining lines without any mapping\n\t node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n\t }\n\t\n\t // Copy sourcesContent into SourceNode\n\t aSourceMapConsumer.sources.forEach(function (sourceFile) {\n\t var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n\t if (content != null) {\n\t if (aRelativePath != null) {\n\t sourceFile = util.join(aRelativePath, sourceFile);\n\t }\n\t node.setSourceContent(sourceFile, content);\n\t }\n\t });\n\t\n\t return node;\n\t\n\t function addMappingWithCode(mapping, code) {\n\t if (mapping === null || mapping.source === undefined) {\n\t node.add(code);\n\t } else {\n\t var source = aRelativePath\n\t ? util.join(aRelativePath, mapping.source)\n\t : mapping.source;\n\t node.add(new SourceNode(mapping.originalLine,\n\t mapping.originalColumn,\n\t source,\n\t code,\n\t mapping.name));\n\t }\n\t }\n\t };\n\t\n\t/**\n\t * Add a chunk of generated JS to this source node.\n\t *\n\t * @param aChunk A string snippet of generated JS code, another instance of\n\t * SourceNode, or an array where each member is one of those things.\n\t */\n\tSourceNode.prototype.add = function SourceNode_add(aChunk) {\n\t if (Array.isArray(aChunk)) {\n\t aChunk.forEach(function (chunk) {\n\t this.add(chunk);\n\t }, this);\n\t }\n\t else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n\t if (aChunk) {\n\t this.children.push(aChunk);\n\t }\n\t }\n\t else {\n\t throw new TypeError(\n\t \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n\t );\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Add a chunk of generated JS to the beginning of this source node.\n\t *\n\t * @param aChunk A string snippet of generated JS code, another instance of\n\t * SourceNode, or an array where each member is one of those things.\n\t */\n\tSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n\t if (Array.isArray(aChunk)) {\n\t for (var i = aChunk.length-1; i >= 0; i--) {\n\t this.prepend(aChunk[i]);\n\t }\n\t }\n\t else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n\t this.children.unshift(aChunk);\n\t }\n\t else {\n\t throw new TypeError(\n\t \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n\t );\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Walk over the tree of JS snippets in this node and its children. The\n\t * walking function is called once for each snippet of JS and is passed that\n\t * snippet and the its original associated source's line/column location.\n\t *\n\t * @param aFn The traversal function.\n\t */\n\tSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n\t var chunk;\n\t for (var i = 0, len = this.children.length; i < len; i++) {\n\t chunk = this.children[i];\n\t if (chunk[isSourceNode]) {\n\t chunk.walk(aFn);\n\t }\n\t else {\n\t if (chunk !== '') {\n\t aFn(chunk, { source: this.source,\n\t line: this.line,\n\t column: this.column,\n\t name: this.name });\n\t }\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n\t * each of `this.children`.\n\t *\n\t * @param aSep The separator.\n\t */\n\tSourceNode.prototype.join = function SourceNode_join(aSep) {\n\t var newChildren;\n\t var i;\n\t var len = this.children.length;\n\t if (len > 0) {\n\t newChildren = [];\n\t for (i = 0; i < len-1; i++) {\n\t newChildren.push(this.children[i]);\n\t newChildren.push(aSep);\n\t }\n\t newChildren.push(this.children[i]);\n\t this.children = newChildren;\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Call String.prototype.replace on the very right-most source snippet. Useful\n\t * for trimming whitespace from the end of a source node, etc.\n\t *\n\t * @param aPattern The pattern to replace.\n\t * @param aReplacement The thing to replace the pattern with.\n\t */\n\tSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n\t var lastChild = this.children[this.children.length - 1];\n\t if (lastChild[isSourceNode]) {\n\t lastChild.replaceRight(aPattern, aReplacement);\n\t }\n\t else if (typeof lastChild === 'string') {\n\t this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n\t }\n\t else {\n\t this.children.push(''.replace(aPattern, aReplacement));\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Set the source content for a source file. This will be added to the SourceMapGenerator\n\t * in the sourcesContent field.\n\t *\n\t * @param aSourceFile The filename of the source file\n\t * @param aSourceContent The content of the source file\n\t */\n\tSourceNode.prototype.setSourceContent =\n\t function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n\t this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n\t };\n\t\n\t/**\n\t * Walk over the tree of SourceNodes. The walking function is called for each\n\t * source file content and is passed the filename and source content.\n\t *\n\t * @param aFn The traversal function.\n\t */\n\tSourceNode.prototype.walkSourceContents =\n\t function SourceNode_walkSourceContents(aFn) {\n\t for (var i = 0, len = this.children.length; i < len; i++) {\n\t if (this.children[i][isSourceNode]) {\n\t this.children[i].walkSourceContents(aFn);\n\t }\n\t }\n\t\n\t var sources = Object.keys(this.sourceContents);\n\t for (var i = 0, len = sources.length; i < len; i++) {\n\t aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n\t }\n\t };\n\t\n\t/**\n\t * Return the string representation of this source node. Walks over the tree\n\t * and concatenates all the various snippets together to one string.\n\t */\n\tSourceNode.prototype.toString = function SourceNode_toString() {\n\t var str = \"\";\n\t this.walk(function (chunk) {\n\t str += chunk;\n\t });\n\t return str;\n\t};\n\t\n\t/**\n\t * Returns the string representation of this source node along with a source\n\t * map.\n\t */\n\tSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n\t var generated = {\n\t code: \"\",\n\t line: 1,\n\t column: 0\n\t };\n\t var map = new SourceMapGenerator(aArgs);\n\t var sourceMappingActive = false;\n\t var lastOriginalSource = null;\n\t var lastOriginalLine = null;\n\t var lastOriginalColumn = null;\n\t var lastOriginalName = null;\n\t this.walk(function (chunk, original) {\n\t generated.code += chunk;\n\t if (original.source !== null\n\t && original.line !== null\n\t && original.column !== null) {\n\t if(lastOriginalSource !== original.source\n\t || lastOriginalLine !== original.line\n\t || lastOriginalColumn !== original.column\n\t || lastOriginalName !== original.name) {\n\t map.addMapping({\n\t source: original.source,\n\t original: {\n\t line: original.line,\n\t column: original.column\n\t },\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t },\n\t name: original.name\n\t });\n\t }\n\t lastOriginalSource = original.source;\n\t lastOriginalLine = original.line;\n\t lastOriginalColumn = original.column;\n\t lastOriginalName = original.name;\n\t sourceMappingActive = true;\n\t } else if (sourceMappingActive) {\n\t map.addMapping({\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t }\n\t });\n\t lastOriginalSource = null;\n\t sourceMappingActive = false;\n\t }\n\t for (var idx = 0, length = chunk.length; idx < length; idx++) {\n\t if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n\t generated.line++;\n\t generated.column = 0;\n\t // Mappings end at eol\n\t if (idx + 1 === length) {\n\t lastOriginalSource = null;\n\t sourceMappingActive = false;\n\t } else if (sourceMappingActive) {\n\t map.addMapping({\n\t source: original.source,\n\t original: {\n\t line: original.line,\n\t column: original.column\n\t },\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t },\n\t name: original.name\n\t });\n\t }\n\t } else {\n\t generated.column++;\n\t }\n\t }\n\t });\n\t this.walkSourceContents(function (sourceFile, sourceContent) {\n\t map.setSourceContent(sourceFile, sourceContent);\n\t });\n\t\n\t return { code: generated.code, map: map };\n\t};\n\t\n\texports.SourceNode = SourceNode;\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// source-map.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0fd5815da764db5fb9fe","/*\n * Copyright 2009-2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE.txt or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\nexports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;\nexports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;\nexports.SourceNode = require('./lib/source-node').SourceNode;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./source-map.js\n// module id = 0\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar base64VLQ = require('./base64-vlq');\nvar util = require('./util');\nvar ArraySet = require('./array-set').ArraySet;\nvar MappingList = require('./mapping-list').MappingList;\n\n/**\n * An instance of the SourceMapGenerator represents a source map which is\n * being built incrementally. You may pass an object with the following\n * properties:\n *\n * - file: The filename of the generated source.\n * - sourceRoot: A root for all relative URLs in this source map.\n */\nfunction SourceMapGenerator(aArgs) {\n if (!aArgs) {\n aArgs = {};\n }\n this._file = util.getArg(aArgs, 'file', null);\n this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);\n this._skipValidation = util.getArg(aArgs, 'skipValidation', false);\n this._sources = new ArraySet();\n this._names = new ArraySet();\n this._mappings = new MappingList();\n this._sourcesContents = null;\n}\n\nSourceMapGenerator.prototype._version = 3;\n\n/**\n * Creates a new SourceMapGenerator based on a SourceMapConsumer\n *\n * @param aSourceMapConsumer The SourceMap.\n */\nSourceMapGenerator.fromSourceMap =\n function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {\n var sourceRoot = aSourceMapConsumer.sourceRoot;\n var generator = new SourceMapGenerator({\n file: aSourceMapConsumer.file,\n sourceRoot: sourceRoot\n });\n aSourceMapConsumer.eachMapping(function (mapping) {\n var newMapping = {\n generated: {\n line: mapping.generatedLine,\n column: mapping.generatedColumn\n }\n };\n\n if (mapping.source != null) {\n newMapping.source = mapping.source;\n if (sourceRoot != null) {\n newMapping.source = util.relative(sourceRoot, newMapping.source);\n }\n\n newMapping.original = {\n line: mapping.originalLine,\n column: mapping.originalColumn\n };\n\n if (mapping.name != null) {\n newMapping.name = mapping.name;\n }\n }\n\n generator.addMapping(newMapping);\n });\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var sourceRelative = sourceFile;\n if (sourceRoot !== null) {\n sourceRelative = util.relative(sourceRoot, sourceFile);\n }\n\n if (!generator._sources.has(sourceRelative)) {\n generator._sources.add(sourceRelative);\n }\n\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n generator.setSourceContent(sourceFile, content);\n }\n });\n return generator;\n };\n\n/**\n * Add a single mapping from original source line and column to the generated\n * source's line and column for this source map being created. The mapping\n * object should have the following properties:\n *\n * - generated: An object with the generated line and column positions.\n * - original: An object with the original line and column positions.\n * - source: The original source file (relative to the sourceRoot).\n * - name: An optional original token name for this mapping.\n */\nSourceMapGenerator.prototype.addMapping =\n function SourceMapGenerator_addMapping(aArgs) {\n var generated = util.getArg(aArgs, 'generated');\n var original = util.getArg(aArgs, 'original', null);\n var source = util.getArg(aArgs, 'source', null);\n var name = util.getArg(aArgs, 'name', null);\n\n if (!this._skipValidation) {\n this._validateMapping(generated, original, source, name);\n }\n\n if (source != null) {\n source = String(source);\n if (!this._sources.has(source)) {\n this._sources.add(source);\n }\n }\n\n if (name != null) {\n name = String(name);\n if (!this._names.has(name)) {\n this._names.add(name);\n }\n }\n\n this._mappings.add({\n generatedLine: generated.line,\n generatedColumn: generated.column,\n originalLine: original != null && original.line,\n originalColumn: original != null && original.column,\n source: source,\n name: name\n });\n };\n\n/**\n * Set the source content for a source file.\n */\nSourceMapGenerator.prototype.setSourceContent =\n function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {\n var source = aSourceFile;\n if (this._sourceRoot != null) {\n source = util.relative(this._sourceRoot, source);\n }\n\n if (aSourceContent != null) {\n // Add the source content to the _sourcesContents map.\n // Create a new _sourcesContents map if the property is null.\n if (!this._sourcesContents) {\n this._sourcesContents = Object.create(null);\n }\n this._sourcesContents[util.toSetString(source)] = aSourceContent;\n } else if (this._sourcesContents) {\n // Remove the source file from the _sourcesContents map.\n // If the _sourcesContents map is empty, set the property to null.\n delete this._sourcesContents[util.toSetString(source)];\n if (Object.keys(this._sourcesContents).length === 0) {\n this._sourcesContents = null;\n }\n }\n };\n\n/**\n * Applies the mappings of a sub-source-map for a specific source file to the\n * source map being generated. Each mapping to the supplied source file is\n * rewritten using the supplied source map. Note: The resolution for the\n * resulting mappings is the minimium of this map and the supplied map.\n *\n * @param aSourceMapConsumer The source map to be applied.\n * @param aSourceFile Optional. The filename of the source file.\n * If omitted, SourceMapConsumer's file property will be used.\n * @param aSourceMapPath Optional. The dirname of the path to the source map\n * to be applied. If relative, it is relative to the SourceMapConsumer.\n * This parameter is needed when the two source maps aren't in the same\n * directory, and the source map to be applied contains relative source\n * paths. If so, those relative source paths need to be rewritten\n * relative to the SourceMapGenerator.\n */\nSourceMapGenerator.prototype.applySourceMap =\n function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {\n var sourceFile = aSourceFile;\n // If aSourceFile is omitted, we will use the file property of the SourceMap\n if (aSourceFile == null) {\n if (aSourceMapConsumer.file == null) {\n throw new Error(\n 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +\n 'or the source map\\'s \"file\" property. Both were omitted.'\n );\n }\n sourceFile = aSourceMapConsumer.file;\n }\n var sourceRoot = this._sourceRoot;\n // Make \"sourceFile\" relative if an absolute Url is passed.\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n // Applying the SourceMap can add and remove items from the sources and\n // the names array.\n var newSources = new ArraySet();\n var newNames = new ArraySet();\n\n // Find mappings for the \"sourceFile\"\n this._mappings.unsortedForEach(function (mapping) {\n if (mapping.source === sourceFile && mapping.originalLine != null) {\n // Check if it can be mapped by the source map, then update the mapping.\n var original = aSourceMapConsumer.originalPositionFor({\n line: mapping.originalLine,\n column: mapping.originalColumn\n });\n if (original.source != null) {\n // Copy mapping\n mapping.source = original.source;\n if (aSourceMapPath != null) {\n mapping.source = util.join(aSourceMapPath, mapping.source)\n }\n if (sourceRoot != null) {\n mapping.source = util.relative(sourceRoot, mapping.source);\n }\n mapping.originalLine = original.line;\n mapping.originalColumn = original.column;\n if (original.name != null) {\n mapping.name = original.name;\n }\n }\n }\n\n var source = mapping.source;\n if (source != null && !newSources.has(source)) {\n newSources.add(source);\n }\n\n var name = mapping.name;\n if (name != null && !newNames.has(name)) {\n newNames.add(name);\n }\n\n }, this);\n this._sources = newSources;\n this._names = newNames;\n\n // Copy sourcesContents of applied map.\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aSourceMapPath != null) {\n sourceFile = util.join(aSourceMapPath, sourceFile);\n }\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n this.setSourceContent(sourceFile, content);\n }\n }, this);\n };\n\n/**\n * A mapping can have one of the three levels of data:\n *\n * 1. Just the generated position.\n * 2. The Generated position, original position, and original source.\n * 3. Generated and original position, original source, as well as a name\n * token.\n *\n * To maintain consistency, we validate that any new mapping being added falls\n * in to one of these categories.\n */\nSourceMapGenerator.prototype._validateMapping =\n function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,\n aName) {\n // When aOriginal is truthy but has empty values for .line and .column,\n // it is most likely a programmer error. In this case we throw a very\n // specific error message to try to guide them the right way.\n // For example: https://github.com/Polymer/polymer-bundler/pull/519\n if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {\n throw new Error(\n 'original.line and original.column are not numbers -- you probably meant to omit ' +\n 'the original mapping entirely and only map the generated position. If so, pass ' +\n 'null for the original mapping instead of an object with empty or null values.'\n );\n }\n\n if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aGenerated.line > 0 && aGenerated.column >= 0\n && !aOriginal && !aSource && !aName) {\n // Case 1.\n return;\n }\n else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aOriginal && 'line' in aOriginal && 'column' in aOriginal\n && aGenerated.line > 0 && aGenerated.column >= 0\n && aOriginal.line > 0 && aOriginal.column >= 0\n && aSource) {\n // Cases 2 and 3.\n return;\n }\n else {\n throw new Error('Invalid mapping: ' + JSON.stringify({\n generated: aGenerated,\n source: aSource,\n original: aOriginal,\n name: aName\n }));\n }\n };\n\n/**\n * Serialize the accumulated mappings in to the stream of base 64 VLQs\n * specified by the source map format.\n */\nSourceMapGenerator.prototype._serializeMappings =\n function SourceMapGenerator_serializeMappings() {\n var previousGeneratedColumn = 0;\n var previousGeneratedLine = 1;\n var previousOriginalColumn = 0;\n var previousOriginalLine = 0;\n var previousName = 0;\n var previousSource = 0;\n var result = '';\n var next;\n var mapping;\n var nameIdx;\n var sourceIdx;\n\n var mappings = this._mappings.toArray();\n for (var i = 0, len = mappings.length; i < len; i++) {\n mapping = mappings[i];\n next = ''\n\n if (mapping.generatedLine !== previousGeneratedLine) {\n previousGeneratedColumn = 0;\n while (mapping.generatedLine !== previousGeneratedLine) {\n next += ';';\n previousGeneratedLine++;\n }\n }\n else {\n if (i > 0) {\n if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {\n continue;\n }\n next += ',';\n }\n }\n\n next += base64VLQ.encode(mapping.generatedColumn\n - previousGeneratedColumn);\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (mapping.source != null) {\n sourceIdx = this._sources.indexOf(mapping.source);\n next += base64VLQ.encode(sourceIdx - previousSource);\n previousSource = sourceIdx;\n\n // lines are stored 0-based in SourceMap spec version 3\n next += base64VLQ.encode(mapping.originalLine - 1\n - previousOriginalLine);\n previousOriginalLine = mapping.originalLine - 1;\n\n next += base64VLQ.encode(mapping.originalColumn\n - previousOriginalColumn);\n previousOriginalColumn = mapping.originalColumn;\n\n if (mapping.name != null) {\n nameIdx = this._names.indexOf(mapping.name);\n next += base64VLQ.encode(nameIdx - previousName);\n previousName = nameIdx;\n }\n }\n\n result += next;\n }\n\n return result;\n };\n\nSourceMapGenerator.prototype._generateSourcesContent =\n function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {\n return aSources.map(function (source) {\n if (!this._sourcesContents) {\n return null;\n }\n if (aSourceRoot != null) {\n source = util.relative(aSourceRoot, source);\n }\n var key = util.toSetString(source);\n return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n ? this._sourcesContents[key]\n : null;\n }, this);\n };\n\n/**\n * Externalize the source map.\n */\nSourceMapGenerator.prototype.toJSON =\n function SourceMapGenerator_toJSON() {\n var map = {\n version: this._version,\n sources: this._sources.toArray(),\n names: this._names.toArray(),\n mappings: this._serializeMappings()\n };\n if (this._file != null) {\n map.file = this._file;\n }\n if (this._sourceRoot != null) {\n map.sourceRoot = this._sourceRoot;\n }\n if (this._sourcesContents) {\n map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);\n }\n\n return map;\n };\n\n/**\n * Render the source map being generated to a string.\n */\nSourceMapGenerator.prototype.toString =\n function SourceMapGenerator_toString() {\n return JSON.stringify(this.toJSON());\n };\n\nexports.SourceMapGenerator = SourceMapGenerator;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-map-generator.js\n// module id = 1\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * Based on the Base 64 VLQ implementation in Closure Compiler:\n * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n *\n * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar base64 = require('./base64');\n\n// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n// length quantities we use in the source map spec, the first bit is the sign,\n// the next four bits are the actual value, and the 6th bit is the\n// continuation bit. The continuation bit tells us whether there are more\n// digits in this value following this digit.\n//\n// Continuation\n// | Sign\n// | |\n// V V\n// 101011\n\nvar VLQ_BASE_SHIFT = 5;\n\n// binary: 100000\nvar VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\n// binary: 011111\nvar VLQ_BASE_MASK = VLQ_BASE - 1;\n\n// binary: 100000\nvar VLQ_CONTINUATION_BIT = VLQ_BASE;\n\n/**\n * Converts from a two-complement value to a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n */\nfunction toVLQSigned(aValue) {\n return aValue < 0\n ? ((-aValue) << 1) + 1\n : (aValue << 1) + 0;\n}\n\n/**\n * Converts to a two-complement value from a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1\n * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2\n */\nfunction fromVLQSigned(aValue) {\n var isNegative = (aValue & 1) === 1;\n var shifted = aValue >> 1;\n return isNegative\n ? -shifted\n : shifted;\n}\n\n/**\n * Returns the base 64 VLQ encoded value.\n */\nexports.encode = function base64VLQ_encode(aValue) {\n var encoded = \"\";\n var digit;\n\n var vlq = toVLQSigned(aValue);\n\n do {\n digit = vlq & VLQ_BASE_MASK;\n vlq >>>= VLQ_BASE_SHIFT;\n if (vlq > 0) {\n // There are still more digits in this value, so we must make sure the\n // continuation bit is marked.\n digit |= VLQ_CONTINUATION_BIT;\n }\n encoded += base64.encode(digit);\n } while (vlq > 0);\n\n return encoded;\n};\n\n/**\n * Decodes the next base 64 VLQ value from the given string and returns the\n * value and the rest of the string via the out parameter.\n */\nexports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {\n var strLen = aStr.length;\n var result = 0;\n var shift = 0;\n var continuation, digit;\n\n do {\n if (aIndex >= strLen) {\n throw new Error(\"Expected more digits in base 64 VLQ value.\");\n }\n\n digit = base64.decode(aStr.charCodeAt(aIndex++));\n if (digit === -1) {\n throw new Error(\"Invalid base64 digit: \" + aStr.charAt(aIndex - 1));\n }\n\n continuation = !!(digit & VLQ_CONTINUATION_BIT);\n digit &= VLQ_BASE_MASK;\n result = result + (digit << shift);\n shift += VLQ_BASE_SHIFT;\n } while (continuation);\n\n aOutParam.value = fromVLQSigned(result);\n aOutParam.rest = aIndex;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/base64-vlq.js\n// module id = 2\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n\n/**\n * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n */\nexports.encode = function (number) {\n if (0 <= number && number < intToCharMap.length) {\n return intToCharMap[number];\n }\n throw new TypeError(\"Must be between 0 and 63: \" + number);\n};\n\n/**\n * Decode a single base 64 character code digit to an integer. Returns -1 on\n * failure.\n */\nexports.decode = function (charCode) {\n var bigA = 65; // 'A'\n var bigZ = 90; // 'Z'\n\n var littleA = 97; // 'a'\n var littleZ = 122; // 'z'\n\n var zero = 48; // '0'\n var nine = 57; // '9'\n\n var plus = 43; // '+'\n var slash = 47; // '/'\n\n var littleOffset = 26;\n var numberOffset = 52;\n\n // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n if (bigA <= charCode && charCode <= bigZ) {\n return (charCode - bigA);\n }\n\n // 26 - 51: abcdefghijklmnopqrstuvwxyz\n if (littleA <= charCode && charCode <= littleZ) {\n return (charCode - littleA + littleOffset);\n }\n\n // 52 - 61: 0123456789\n if (zero <= charCode && charCode <= nine) {\n return (charCode - zero + numberOffset);\n }\n\n // 62: +\n if (charCode == plus) {\n return 62;\n }\n\n // 63: /\n if (charCode == slash) {\n return 63;\n }\n\n // Invalid base64 digit.\n return -1;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/base64.js\n// module id = 3\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n } else {\n throw new Error('\"' + aName + '\" is a required argument.');\n }\n}\nexports.getArg = getArg;\n\nvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/;\nvar dataUrlRegexp = /^data:.+\\,.+$/;\n\nfunction urlParse(aUrl) {\n var match = aUrl.match(urlRegexp);\n if (!match) {\n return null;\n }\n return {\n scheme: match[1],\n auth: match[2],\n host: match[3],\n port: match[4],\n path: match[5]\n };\n}\nexports.urlParse = urlParse;\n\nfunction urlGenerate(aParsedUrl) {\n var url = '';\n if (aParsedUrl.scheme) {\n url += aParsedUrl.scheme + ':';\n }\n url += '//';\n if (aParsedUrl.auth) {\n url += aParsedUrl.auth + '@';\n }\n if (aParsedUrl.host) {\n url += aParsedUrl.host;\n }\n if (aParsedUrl.port) {\n url += \":\" + aParsedUrl.port\n }\n if (aParsedUrl.path) {\n url += aParsedUrl.path;\n }\n return url;\n}\nexports.urlGenerate = urlGenerate;\n\n/**\n * Normalizes a path, or the path portion of a URL:\n *\n * - Replaces consecutive slashes with one slash.\n * - Removes unnecessary '.' parts.\n * - Removes unnecessary '/..' parts.\n *\n * Based on code in the Node.js 'path' core module.\n *\n * @param aPath The path or url to normalize.\n */\nfunction normalize(aPath) {\n var path = aPath;\n var url = urlParse(aPath);\n if (url) {\n if (!url.path) {\n return aPath;\n }\n path = url.path;\n }\n var isAbsolute = exports.isAbsolute(path);\n\n var parts = path.split(/\\/+/);\n for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n part = parts[i];\n if (part === '.') {\n parts.splice(i, 1);\n } else if (part === '..') {\n up++;\n } else if (up > 0) {\n if (part === '') {\n // The first part is blank if the path is absolute. Trying to go\n // above the root is a no-op. Therefore we can remove all '..' parts\n // directly after the root.\n parts.splice(i + 1, up);\n up = 0;\n } else {\n parts.splice(i, 2);\n up--;\n }\n }\n }\n path = parts.join('/');\n\n if (path === '') {\n path = isAbsolute ? '/' : '.';\n }\n\n if (url) {\n url.path = path;\n return urlGenerate(url);\n }\n return path;\n}\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be joined with the root.\n *\n * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n * first.\n * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n * is updated with the result and aRoot is returned. Otherwise the result\n * is returned.\n * - If aPath is absolute, the result is aPath.\n * - Otherwise the two paths are joined with a slash.\n * - Joining for example 'http://' and 'www.example.com' is also supported.\n */\nfunction join(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n if (aPath === \"\") {\n aPath = \".\";\n }\n var aPathUrl = urlParse(aPath);\n var aRootUrl = urlParse(aRoot);\n if (aRootUrl) {\n aRoot = aRootUrl.path || '/';\n }\n\n // `join(foo, '//www.example.org')`\n if (aPathUrl && !aPathUrl.scheme) {\n if (aRootUrl) {\n aPathUrl.scheme = aRootUrl.scheme;\n }\n return urlGenerate(aPathUrl);\n }\n\n if (aPathUrl || aPath.match(dataUrlRegexp)) {\n return aPath;\n }\n\n // `join('http://', 'www.example.com')`\n if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n aRootUrl.host = aPath;\n return urlGenerate(aRootUrl);\n }\n\n var joined = aPath.charAt(0) === '/'\n ? aPath\n : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\n if (aRootUrl) {\n aRootUrl.path = joined;\n return urlGenerate(aRootUrl);\n }\n return joined;\n}\nexports.join = join;\n\nexports.isAbsolute = function (aPath) {\n return aPath.charAt(0) === '/' || urlRegexp.test(aPath);\n};\n\n/**\n * Make a path relative to a URL or another path.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n */\nfunction relative(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n\n aRoot = aRoot.replace(/\\/$/, '');\n\n // It is possible for the path to be above the root. In this case, simply\n // checking whether the root is a prefix of the path won't work. Instead, we\n // need to remove components from the root one by one, until either we find\n // a prefix that fits, or we run out of components to remove.\n var level = 0;\n while (aPath.indexOf(aRoot + '/') !== 0) {\n var index = aRoot.lastIndexOf(\"/\");\n if (index < 0) {\n return aPath;\n }\n\n // If the only part of the root that is left is the scheme (i.e. http://,\n // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n // have exhausted all components, so the path is not relative to the root.\n aRoot = aRoot.slice(0, index);\n if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n return aPath;\n }\n\n ++level;\n }\n\n // Make sure we add a \"../\" for each component we removed from the root.\n return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n}\nexports.relative = relative;\n\nvar supportsNullProto = (function () {\n var obj = Object.create(null);\n return !('__proto__' in obj);\n}());\n\nfunction identity (s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return '$' + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n var length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */) {\n return false;\n }\n\n for (var i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Comparator between two mappings where the original positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same original source/line/column, but different generated\n * line and column the same. Useful when searching for a mapping with a\n * stubbed out mapping.\n */\nfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n var cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0 || onlyCompareOriginal) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByOriginalPositions = compareByOriginalPositions;\n\n/**\n * Comparator between two mappings with deflated source and name indices where\n * the generated positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same generated line and column, but different\n * source/name/original line and column the same. Useful when searching for a\n * mapping with a stubbed out mapping.\n */\nfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0 || onlyCompareGenerated) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 === null) {\n return 1; // aStr2 !== null\n }\n\n if (aStr2 === null) {\n return -1; // aStr1 !== null\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n\n/**\n * Strip any JSON XSSI avoidance prefix from the string (as documented\n * in the source maps specification), and then parse the string as\n * JSON.\n */\nfunction parseSourceMapInput(str) {\n return JSON.parse(str.replace(/^\\)]}'[^\\n]*\\n/, ''));\n}\nexports.parseSourceMapInput = parseSourceMapInput;\n\n/**\n * Compute the URL of a source given the the source root, the source's\n * URL, and the source map's URL.\n */\nfunction computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {\n sourceURL = sourceURL || '';\n\n if (sourceRoot) {\n // This follows what Chrome does.\n if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') {\n sourceRoot += '/';\n }\n // The spec says:\n // Line 4: An optional source root, useful for relocating source\n // files on a server or removing repeated values in the\n // “sources” entry. This value is prepended to the individual\n // entries in the “source” field.\n sourceURL = sourceRoot + sourceURL;\n }\n\n // Historically, SourceMapConsumer did not take the sourceMapURL as\n // a parameter. This mode is still somewhat supported, which is why\n // this code block is conditional. However, it's preferable to pass\n // the source map URL to SourceMapConsumer, so that this function\n // can implement the source URL resolution algorithm as outlined in\n // the spec. This block is basically the equivalent of:\n // new URL(sourceURL, sourceMapURL).toString()\n // ... except it avoids using URL, which wasn't available in the\n // older releases of node still supported by this library.\n //\n // The spec says:\n // If the sources are not absolute URLs after prepending of the\n // “sourceRoot”, the sources are resolved relative to the\n // SourceMap (like resolving script src in a html document).\n if (sourceMapURL) {\n var parsed = urlParse(sourceMapURL);\n if (!parsed) {\n throw new Error(\"sourceMapURL could not be parsed\");\n }\n if (parsed.path) {\n // Strip the last path component, but keep the \"/\".\n var index = parsed.path.lastIndexOf('/');\n if (index >= 0) {\n parsed.path = parsed.path.substring(0, index + 1);\n }\n }\n sourceURL = join(urlGenerate(parsed), sourceURL);\n }\n\n return normalize(sourceURL);\n}\nexports.computeSourceURL = computeSourceURL;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/util.js\n// module id = 4\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar has = Object.prototype.hasOwnProperty;\nvar hasNativeMap = typeof Map !== \"undefined\";\n\n/**\n * A data structure which is a combination of an array and a set. Adding a new\n * member is O(1), testing for membership is O(1), and finding the index of an\n * element is O(1). Removing elements from the set is not supported. Only\n * strings are supported for membership.\n */\nfunction ArraySet() {\n this._array = [];\n this._set = hasNativeMap ? new Map() : Object.create(null);\n}\n\n/**\n * Static method for creating ArraySet instances from an existing array.\n */\nArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {\n var set = new ArraySet();\n for (var i = 0, len = aArray.length; i < len; i++) {\n set.add(aArray[i], aAllowDuplicates);\n }\n return set;\n};\n\n/**\n * Return how many unique items are in this ArraySet. If duplicates have been\n * added, than those do not count towards the size.\n *\n * @returns Number\n */\nArraySet.prototype.size = function ArraySet_size() {\n return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;\n};\n\n/**\n * Add the given string to this set.\n *\n * @param String aStr\n */\nArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {\n var sStr = hasNativeMap ? aStr : util.toSetString(aStr);\n var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);\n var idx = this._array.length;\n if (!isDuplicate || aAllowDuplicates) {\n this._array.push(aStr);\n }\n if (!isDuplicate) {\n if (hasNativeMap) {\n this._set.set(aStr, idx);\n } else {\n this._set[sStr] = idx;\n }\n }\n};\n\n/**\n * Is the given string a member of this set?\n *\n * @param String aStr\n */\nArraySet.prototype.has = function ArraySet_has(aStr) {\n if (hasNativeMap) {\n return this._set.has(aStr);\n } else {\n var sStr = util.toSetString(aStr);\n return has.call(this._set, sStr);\n }\n};\n\n/**\n * What is the index of the given string in the array?\n *\n * @param String aStr\n */\nArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {\n if (hasNativeMap) {\n var idx = this._set.get(aStr);\n if (idx >= 0) {\n return idx;\n }\n } else {\n var sStr = util.toSetString(aStr);\n if (has.call(this._set, sStr)) {\n return this._set[sStr];\n }\n }\n\n throw new Error('\"' + aStr + '\" is not in the set.');\n};\n\n/**\n * What is the element at the given index?\n *\n * @param Number aIdx\n */\nArraySet.prototype.at = function ArraySet_at(aIdx) {\n if (aIdx >= 0 && aIdx < this._array.length) {\n return this._array[aIdx];\n }\n throw new Error('No element indexed by ' + aIdx);\n};\n\n/**\n * Returns the array representation of this set (which has the proper indices\n * indicated by indexOf). Note that this is a copy of the internal array used\n * for storing the members so that no one can mess with internal state.\n */\nArraySet.prototype.toArray = function ArraySet_toArray() {\n return this._array.slice();\n};\n\nexports.ArraySet = ArraySet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/array-set.js\n// module id = 5\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2014 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\n\n/**\n * Determine whether mappingB is after mappingA with respect to generated\n * position.\n */\nfunction generatedPositionAfter(mappingA, mappingB) {\n // Optimized for most common case\n var lineA = mappingA.generatedLine;\n var lineB = mappingB.generatedLine;\n var columnA = mappingA.generatedColumn;\n var columnB = mappingB.generatedColumn;\n return lineB > lineA || lineB == lineA && columnB >= columnA ||\n util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;\n}\n\n/**\n * A data structure to provide a sorted view of accumulated mappings in a\n * performance conscious manner. It trades a neglibable overhead in general\n * case for a large speedup in case of mappings being added in order.\n */\nfunction MappingList() {\n this._array = [];\n this._sorted = true;\n // Serves as infimum\n this._last = {generatedLine: -1, generatedColumn: 0};\n}\n\n/**\n * Iterate through internal items. This method takes the same arguments that\n * `Array.prototype.forEach` takes.\n *\n * NOTE: The order of the mappings is NOT guaranteed.\n */\nMappingList.prototype.unsortedForEach =\n function MappingList_forEach(aCallback, aThisArg) {\n this._array.forEach(aCallback, aThisArg);\n };\n\n/**\n * Add the given source mapping.\n *\n * @param Object aMapping\n */\nMappingList.prototype.add = function MappingList_add(aMapping) {\n if (generatedPositionAfter(this._last, aMapping)) {\n this._last = aMapping;\n this._array.push(aMapping);\n } else {\n this._sorted = false;\n this._array.push(aMapping);\n }\n};\n\n/**\n * Returns the flat, sorted array of mappings. The mappings are sorted by\n * generated position.\n *\n * WARNING: This method returns internal data without copying, for\n * performance. The return value must NOT be mutated, and should be treated as\n * an immutable borrow. If you want to take ownership, you must make your own\n * copy.\n */\nMappingList.prototype.toArray = function MappingList_toArray() {\n if (!this._sorted) {\n this._array.sort(util.compareByGeneratedPositionsInflated);\n this._sorted = true;\n }\n return this._array;\n};\n\nexports.MappingList = MappingList;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/mapping-list.js\n// module id = 6\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar binarySearch = require('./binary-search');\nvar ArraySet = require('./array-set').ArraySet;\nvar base64VLQ = require('./base64-vlq');\nvar quickSort = require('./quick-sort').quickSort;\n\nfunction SourceMapConsumer(aSourceMap, aSourceMapURL) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n return sourceMap.sections != null\n ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)\n : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);\n}\n\nSourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {\n return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);\n}\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nSourceMapConsumer.prototype._version = 3;\n\n// `__generatedMappings` and `__originalMappings` are arrays that hold the\n// parsed mapping coordinates from the source map's \"mappings\" attribute. They\n// are lazily instantiated, accessed via the `_generatedMappings` and\n// `_originalMappings` getters respectively, and we only parse the mappings\n// and create these arrays once queried for a source location. We jump through\n// these hoops because there can be many thousands of mappings, and parsing\n// them is expensive, so we only want to do it if we must.\n//\n// Each object in the arrays is of the form:\n//\n// {\n// generatedLine: The line number in the generated code,\n// generatedColumn: The column number in the generated code,\n// source: The path to the original source file that generated this\n// chunk of code,\n// originalLine: The line number in the original source that\n// corresponds to this chunk of generated code,\n// originalColumn: The column number in the original source that\n// corresponds to this chunk of generated code,\n// name: The name of the original symbol which generated this chunk of\n// code.\n// }\n//\n// All properties except for `generatedLine` and `generatedColumn` can be\n// `null`.\n//\n// `_generatedMappings` is ordered by the generated positions.\n//\n// `_originalMappings` is ordered by the original positions.\n\nSourceMapConsumer.prototype.__generatedMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {\n configurable: true,\n enumerable: true,\n get: function () {\n if (!this.__generatedMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__generatedMappings;\n }\n});\n\nSourceMapConsumer.prototype.__originalMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {\n configurable: true,\n enumerable: true,\n get: function () {\n if (!this.__originalMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__originalMappings;\n }\n});\n\nSourceMapConsumer.prototype._charIsMappingSeparator =\n function SourceMapConsumer_charIsMappingSeparator(aStr, index) {\n var c = aStr.charAt(index);\n return c === \";\" || c === \",\";\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n throw new Error(\"Subclasses must implement _parseMappings\");\n };\n\nSourceMapConsumer.GENERATED_ORDER = 1;\nSourceMapConsumer.ORIGINAL_ORDER = 2;\n\nSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\nSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\n/**\n * Iterate over each mapping between an original source/line/column and a\n * generated line/column in this source map.\n *\n * @param Function aCallback\n * The function that is called with each mapping.\n * @param Object aContext\n * Optional. If specified, this object will be the value of `this` every\n * time that `aCallback` is called.\n * @param aOrder\n * Either `SourceMapConsumer.GENERATED_ORDER` or\n * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n * iterate over the mappings sorted by the generated file's line/column\n * order or the original's source/line/column order, respectively. Defaults to\n * `SourceMapConsumer.GENERATED_ORDER`.\n */\nSourceMapConsumer.prototype.eachMapping =\n function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {\n var context = aContext || null;\n var order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\n var mappings;\n switch (order) {\n case SourceMapConsumer.GENERATED_ORDER:\n mappings = this._generatedMappings;\n break;\n case SourceMapConsumer.ORIGINAL_ORDER:\n mappings = this._originalMappings;\n break;\n default:\n throw new Error(\"Unknown order of iteration.\");\n }\n\n var sourceRoot = this.sourceRoot;\n mappings.map(function (mapping) {\n var source = mapping.source === null ? null : this._sources.at(mapping.source);\n source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);\n return {\n source: source,\n generatedLine: mapping.generatedLine,\n generatedColumn: mapping.generatedColumn,\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: mapping.name === null ? null : this._names.at(mapping.name)\n };\n }, this).forEach(aCallback, context);\n };\n\n/**\n * Returns all generated line and column information for the original source,\n * line, and column provided. If no column is provided, returns all mappings\n * corresponding to a either the line we are searching for or the next\n * closest line that has any mappings. Otherwise, returns all mappings\n * corresponding to the given line and either the column we are searching for\n * or the next closest column that has any offsets.\n *\n * The only argument is an object with the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number is 1-based.\n * - column: Optional. the column number in the original source.\n * The column number is 0-based.\n *\n * and an array of objects is returned, each with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based.\n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\nSourceMapConsumer.prototype.allGeneratedPositionsFor =\n function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {\n var line = util.getArg(aArgs, 'line');\n\n // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping\n // returns the index of the closest mapping less than the needle. By\n // setting needle.originalColumn to 0, we thus find the last mapping for\n // the given line, provided such a mapping exists.\n var needle = {\n source: util.getArg(aArgs, 'source'),\n originalLine: line,\n originalColumn: util.getArg(aArgs, 'column', 0)\n };\n\n needle.source = this._findSourceIndex(needle.source);\n if (needle.source < 0) {\n return [];\n }\n\n var mappings = [];\n\n var index = this._findMapping(needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n binarySearch.LEAST_UPPER_BOUND);\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (aArgs.column === undefined) {\n var originalLine = mapping.originalLine;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we found. Since\n // mappings are sorted, this is guaranteed to find all mappings for\n // the line we found.\n while (mapping && mapping.originalLine === originalLine) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n } else {\n var originalColumn = mapping.originalColumn;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we were searching for.\n // Since mappings are sorted, this is guaranteed to find all mappings for\n // the line we are searching for.\n while (mapping &&\n mapping.originalLine === line &&\n mapping.originalColumn == originalColumn) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n }\n }\n\n return mappings;\n };\n\nexports.SourceMapConsumer = SourceMapConsumer;\n\n/**\n * A BasicSourceMapConsumer instance represents a parsed source map which we can\n * query for information about the original file positions by giving it a file\n * position in the generated source.\n *\n * The first parameter is the raw source map (either as a JSON string, or\n * already parsed to an object). According to the spec, source maps have the\n * following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - sources: An array of URLs to the original source files.\n * - names: An array of identifiers which can be referrenced by individual mappings.\n * - sourceRoot: Optional. The URL root from which all sources are relative.\n * - sourcesContent: Optional. An array of contents of the original source files.\n * - mappings: A string of base64 VLQs which contain the actual mappings.\n * - file: Optional. The generated file this source map is associated with.\n *\n * Here is an example source map, taken from the source map spec[0]:\n *\n * {\n * version : 3,\n * file: \"out.js\",\n * sourceRoot : \"\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AA,AB;;ABCDE;\"\n * }\n *\n * The second parameter, if given, is a string whose value is the URL\n * at which the source map was found. This URL is used to compute the\n * sources array.\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n */\nfunction BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sources = util.getArg(sourceMap, 'sources');\n // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n // requires the array) to play nice here.\n var names = util.getArg(sourceMap, 'names', []);\n var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);\n var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);\n var mappings = util.getArg(sourceMap, 'mappings');\n var file = util.getArg(sourceMap, 'file', null);\n\n // Once again, Sass deviates from the spec and supplies the version as a\n // string rather than a number, so we use loose equality checking here.\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n if (sourceRoot) {\n sourceRoot = util.normalize(sourceRoot);\n }\n\n sources = sources\n .map(String)\n // Some source maps produce relative source paths like \"./foo.js\" instead of\n // \"foo.js\". Normalize these first so that future comparisons will succeed.\n // See bugzil.la/1090768.\n .map(util.normalize)\n // Always ensure that absolute sources are internally stored relative to\n // the source root, if the source root is absolute. Not doing this would\n // be particularly problematic when the source root is a prefix of the\n // source (valid, but why??). See github issue #199 and bugzil.la/1188982.\n .map(function (source) {\n return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)\n ? util.relative(sourceRoot, source)\n : source;\n });\n\n // Pass `true` below to allow duplicate names and sources. While source maps\n // are intended to be compressed and deduplicated, the TypeScript compiler\n // sometimes generates source maps with duplicates in them. See Github issue\n // #72 and bugzil.la/889492.\n this._names = ArraySet.fromArray(names.map(String), true);\n this._sources = ArraySet.fromArray(sources, true);\n\n this._absoluteSources = this._sources.toArray().map(function (s) {\n return util.computeSourceURL(sourceRoot, s, aSourceMapURL);\n });\n\n this.sourceRoot = sourceRoot;\n this.sourcesContent = sourcesContent;\n this._mappings = mappings;\n this._sourceMapURL = aSourceMapURL;\n this.file = file;\n}\n\nBasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\n\n/**\n * Utility function to find the index of a source. Returns -1 if not\n * found.\n */\nBasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {\n var relativeSource = aSource;\n if (this.sourceRoot != null) {\n relativeSource = util.relative(this.sourceRoot, relativeSource);\n }\n\n if (this._sources.has(relativeSource)) {\n return this._sources.indexOf(relativeSource);\n }\n\n // Maybe aSource is an absolute URL as returned by |sources|. In\n // this case we can't simply undo the transform.\n var i;\n for (i = 0; i < this._absoluteSources.length; ++i) {\n if (this._absoluteSources[i] == aSource) {\n return i;\n }\n }\n\n return -1;\n};\n\n/**\n * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n *\n * @param SourceMapGenerator aSourceMap\n * The source map that will be consumed.\n * @param String aSourceMapURL\n * The URL at which the source map can be found (optional)\n * @returns BasicSourceMapConsumer\n */\nBasicSourceMapConsumer.fromSourceMap =\n function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {\n var smc = Object.create(BasicSourceMapConsumer.prototype);\n\n var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);\n var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);\n smc.sourceRoot = aSourceMap._sourceRoot;\n smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),\n smc.sourceRoot);\n smc.file = aSourceMap._file;\n smc._sourceMapURL = aSourceMapURL;\n smc._absoluteSources = smc._sources.toArray().map(function (s) {\n return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);\n });\n\n // Because we are modifying the entries (by converting string sources and\n // names to indices into the sources and names ArraySets), we have to make\n // a copy of the entry or else bad things happen. Shared mutable state\n // strikes again! See github issue #191.\n\n var generatedMappings = aSourceMap._mappings.toArray().slice();\n var destGeneratedMappings = smc.__generatedMappings = [];\n var destOriginalMappings = smc.__originalMappings = [];\n\n for (var i = 0, length = generatedMappings.length; i < length; i++) {\n var srcMapping = generatedMappings[i];\n var destMapping = new Mapping;\n destMapping.generatedLine = srcMapping.generatedLine;\n destMapping.generatedColumn = srcMapping.generatedColumn;\n\n if (srcMapping.source) {\n destMapping.source = sources.indexOf(srcMapping.source);\n destMapping.originalLine = srcMapping.originalLine;\n destMapping.originalColumn = srcMapping.originalColumn;\n\n if (srcMapping.name) {\n destMapping.name = names.indexOf(srcMapping.name);\n }\n\n destOriginalMappings.push(destMapping);\n }\n\n destGeneratedMappings.push(destMapping);\n }\n\n quickSort(smc.__originalMappings, util.compareByOriginalPositions);\n\n return smc;\n };\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nBasicSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {\n get: function () {\n return this._absoluteSources.slice();\n }\n});\n\n/**\n * Provide the JIT with a nice shape / hidden class.\n */\nfunction Mapping() {\n this.generatedLine = 0;\n this.generatedColumn = 0;\n this.source = null;\n this.originalLine = null;\n this.originalColumn = null;\n this.name = null;\n}\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nBasicSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n var generatedLine = 1;\n var previousGeneratedColumn = 0;\n var previousOriginalLine = 0;\n var previousOriginalColumn = 0;\n var previousSource = 0;\n var previousName = 0;\n var length = aStr.length;\n var index = 0;\n var cachedSegments = {};\n var temp = {};\n var originalMappings = [];\n var generatedMappings = [];\n var mapping, str, segment, end, value;\n\n while (index < length) {\n if (aStr.charAt(index) === ';') {\n generatedLine++;\n index++;\n previousGeneratedColumn = 0;\n }\n else if (aStr.charAt(index) === ',') {\n index++;\n }\n else {\n mapping = new Mapping();\n mapping.generatedLine = generatedLine;\n\n // Because each offset is encoded relative to the previous one,\n // many segments often have the same encoding. We can exploit this\n // fact by caching the parsed variable length fields of each segment,\n // allowing us to avoid a second parse if we encounter the same\n // segment again.\n for (end = index; end < length; end++) {\n if (this._charIsMappingSeparator(aStr, end)) {\n break;\n }\n }\n str = aStr.slice(index, end);\n\n segment = cachedSegments[str];\n if (segment) {\n index += str.length;\n } else {\n segment = [];\n while (index < end) {\n base64VLQ.decode(aStr, index, temp);\n value = temp.value;\n index = temp.rest;\n segment.push(value);\n }\n\n if (segment.length === 2) {\n throw new Error('Found a source, but no line and column');\n }\n\n if (segment.length === 3) {\n throw new Error('Found a source and line, but no column');\n }\n\n cachedSegments[str] = segment;\n }\n\n // Generated column.\n mapping.generatedColumn = previousGeneratedColumn + segment[0];\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (segment.length > 1) {\n // Original source.\n mapping.source = previousSource + segment[1];\n previousSource += segment[1];\n\n // Original line.\n mapping.originalLine = previousOriginalLine + segment[2];\n previousOriginalLine = mapping.originalLine;\n // Lines are stored 0-based\n mapping.originalLine += 1;\n\n // Original column.\n mapping.originalColumn = previousOriginalColumn + segment[3];\n previousOriginalColumn = mapping.originalColumn;\n\n if (segment.length > 4) {\n // Original name.\n mapping.name = previousName + segment[4];\n previousName += segment[4];\n }\n }\n\n generatedMappings.push(mapping);\n if (typeof mapping.originalLine === 'number') {\n originalMappings.push(mapping);\n }\n }\n }\n\n quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);\n this.__generatedMappings = generatedMappings;\n\n quickSort(originalMappings, util.compareByOriginalPositions);\n this.__originalMappings = originalMappings;\n };\n\n/**\n * Find the mapping that best matches the hypothetical \"needle\" mapping that\n * we are searching for in the given \"haystack\" of mappings.\n */\nBasicSourceMapConsumer.prototype._findMapping =\n function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,\n aColumnName, aComparator, aBias) {\n // To return the position we are searching for, we must first find the\n // mapping for the given position and then return the opposite position it\n // points to. Because the mappings are sorted, we can use binary search to\n // find the best mapping.\n\n if (aNeedle[aLineName] <= 0) {\n throw new TypeError('Line must be greater than or equal to 1, got '\n + aNeedle[aLineName]);\n }\n if (aNeedle[aColumnName] < 0) {\n throw new TypeError('Column must be greater than or equal to 0, got '\n + aNeedle[aColumnName]);\n }\n\n return binarySearch.search(aNeedle, aMappings, aComparator, aBias);\n };\n\n/**\n * Compute the last column for each generated mapping. The last column is\n * inclusive.\n */\nBasicSourceMapConsumer.prototype.computeColumnSpans =\n function SourceMapConsumer_computeColumnSpans() {\n for (var index = 0; index < this._generatedMappings.length; ++index) {\n var mapping = this._generatedMappings[index];\n\n // Mappings do not contain a field for the last generated columnt. We\n // can come up with an optimistic estimate, however, by assuming that\n // mappings are contiguous (i.e. given two consecutive mappings, the\n // first mapping ends where the second one starts).\n if (index + 1 < this._generatedMappings.length) {\n var nextMapping = this._generatedMappings[index + 1];\n\n if (mapping.generatedLine === nextMapping.generatedLine) {\n mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;\n continue;\n }\n }\n\n // The last mapping for each line spans the entire line.\n mapping.lastGeneratedColumn = Infinity;\n }\n };\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source. The line number\n * is 1-based.\n * - column: The column number in the generated source. The column\n * number is 0-based.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null. The\n * line number is 1-based.\n * - column: The column number in the original source, or null. The\n * column number is 0-based.\n * - name: The original identifier, or null.\n */\nBasicSourceMapConsumer.prototype.originalPositionFor =\n function SourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._generatedMappings,\n \"generatedLine\",\n \"generatedColumn\",\n util.compareByGeneratedPositionsDeflated,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._generatedMappings[index];\n\n if (mapping.generatedLine === needle.generatedLine) {\n var source = util.getArg(mapping, 'source', null);\n if (source !== null) {\n source = this._sources.at(source);\n source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);\n }\n var name = util.getArg(mapping, 'name', null);\n if (name !== null) {\n name = this._names.at(name);\n }\n return {\n source: source,\n line: util.getArg(mapping, 'originalLine', null),\n column: util.getArg(mapping, 'originalColumn', null),\n name: name\n };\n }\n }\n\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nBasicSourceMapConsumer.prototype.hasContentsOfAllSources =\n function BasicSourceMapConsumer_hasContentsOfAllSources() {\n if (!this.sourcesContent) {\n return false;\n }\n return this.sourcesContent.length >= this._sources.size() &&\n !this.sourcesContent.some(function (sc) { return sc == null; });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nBasicSourceMapConsumer.prototype.sourceContentFor =\n function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n if (!this.sourcesContent) {\n return null;\n }\n\n var index = this._findSourceIndex(aSource);\n if (index >= 0) {\n return this.sourcesContent[index];\n }\n\n var relativeSource = aSource;\n if (this.sourceRoot != null) {\n relativeSource = util.relative(this.sourceRoot, relativeSource);\n }\n\n var url;\n if (this.sourceRoot != null\n && (url = util.urlParse(this.sourceRoot))) {\n // XXX: file:// URIs and absolute paths lead to unexpected behavior for\n // many users. We can help them out when they expect file:// URIs to\n // behave like it would if they were running a local HTTP server. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.\n var fileUriAbsPath = relativeSource.replace(/^file:\\/\\//, \"\");\n if (url.scheme == \"file\"\n && this._sources.has(fileUriAbsPath)) {\n return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]\n }\n\n if ((!url.path || url.path == \"/\")\n && this._sources.has(\"/\" + relativeSource)) {\n return this.sourcesContent[this._sources.indexOf(\"/\" + relativeSource)];\n }\n }\n\n // This function is used recursively from\n // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n // don't want to throw if we can't find the source - we just want to\n // return null, so we provide a flag to exit gracefully.\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + relativeSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number\n * is 1-based.\n * - column: The column number in the original source. The column\n * number is 0-based.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based.\n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\nBasicSourceMapConsumer.prototype.generatedPositionFor =\n function SourceMapConsumer_generatedPositionFor(aArgs) {\n var source = util.getArg(aArgs, 'source');\n source = this._findSourceIndex(source);\n if (source < 0) {\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n }\n\n var needle = {\n source: source,\n originalLine: util.getArg(aArgs, 'line'),\n originalColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (mapping.source === needle.source) {\n return {\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n };\n }\n }\n\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n };\n\nexports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\n/**\n * An IndexedSourceMapConsumer instance represents a parsed source map which\n * we can query for information. It differs from BasicSourceMapConsumer in\n * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n * input.\n *\n * The first parameter is a raw source map (either as a JSON string, or already\n * parsed to an object). According to the spec for indexed source maps, they\n * have the following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - file: Optional. The generated file this source map is associated with.\n * - sections: A list of section definitions.\n *\n * Each value under the \"sections\" field has two fields:\n * - offset: The offset into the original specified at which this section\n * begins to apply, defined as an object with a \"line\" and \"column\"\n * field.\n * - map: A source map definition. This source map could also be indexed,\n * but doesn't have to be.\n *\n * Instead of the \"map\" field, it's also possible to have a \"url\" field\n * specifying a URL to retrieve a source map from, but that's currently\n * unsupported.\n *\n * Here's an example source map, taken from the source map spec[0], but\n * modified to omit a section which uses the \"url\" field.\n *\n * {\n * version : 3,\n * file: \"app.js\",\n * sections: [{\n * offset: {line:100, column:10},\n * map: {\n * version : 3,\n * file: \"section.js\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AAAA,E;;ABCDE;\"\n * }\n * }],\n * }\n *\n * The second parameter, if given, is a string whose value is the URL\n * at which the source map was found. This URL is used to compute the\n * sources array.\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n */\nfunction IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sections = util.getArg(sourceMap, 'sections');\n\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n this._sources = new ArraySet();\n this._names = new ArraySet();\n\n var lastOffset = {\n line: -1,\n column: 0\n };\n this._sections = sections.map(function (s) {\n if (s.url) {\n // The url field will require support for asynchronicity.\n // See https://github.com/mozilla/source-map/issues/16\n throw new Error('Support for url field in sections not implemented.');\n }\n var offset = util.getArg(s, 'offset');\n var offsetLine = util.getArg(offset, 'line');\n var offsetColumn = util.getArg(offset, 'column');\n\n if (offsetLine < lastOffset.line ||\n (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {\n throw new Error('Section offsets must be ordered and non-overlapping.');\n }\n lastOffset = offset;\n\n return {\n generatedOffset: {\n // The offset fields are 0-based, but we use 1-based indices when\n // encoding/decoding from VLQ.\n generatedLine: offsetLine + 1,\n generatedColumn: offsetColumn + 1\n },\n consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)\n }\n });\n}\n\nIndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nIndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nIndexedSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {\n get: function () {\n var sources = [];\n for (var i = 0; i < this._sections.length; i++) {\n for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {\n sources.push(this._sections[i].consumer.sources[j]);\n }\n }\n return sources;\n }\n});\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source. The line number\n * is 1-based.\n * - column: The column number in the generated source. The column\n * number is 0-based.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null. The\n * line number is 1-based.\n * - column: The column number in the original source, or null. The\n * column number is 0-based.\n * - name: The original identifier, or null.\n */\nIndexedSourceMapConsumer.prototype.originalPositionFor =\n function IndexedSourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n // Find the section containing the generated position we're trying to map\n // to an original position.\n var sectionIndex = binarySearch.search(needle, this._sections,\n function(needle, section) {\n var cmp = needle.generatedLine - section.generatedOffset.generatedLine;\n if (cmp) {\n return cmp;\n }\n\n return (needle.generatedColumn -\n section.generatedOffset.generatedColumn);\n });\n var section = this._sections[sectionIndex];\n\n if (!section) {\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n }\n\n return section.consumer.originalPositionFor({\n line: needle.generatedLine -\n (section.generatedOffset.generatedLine - 1),\n column: needle.generatedColumn -\n (section.generatedOffset.generatedLine === needle.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n bias: aArgs.bias\n });\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nIndexedSourceMapConsumer.prototype.hasContentsOfAllSources =\n function IndexedSourceMapConsumer_hasContentsOfAllSources() {\n return this._sections.every(function (s) {\n return s.consumer.hasContentsOfAllSources();\n });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nIndexedSourceMapConsumer.prototype.sourceContentFor =\n function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n var content = section.consumer.sourceContentFor(aSource, true);\n if (content) {\n return content;\n }\n }\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number\n * is 1-based.\n * - column: The column number in the original source. The column\n * number is 0-based.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based. \n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\nIndexedSourceMapConsumer.prototype.generatedPositionFor =\n function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n // Only consider this section if the requested source is in the list of\n // sources of the consumer.\n if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {\n continue;\n }\n var generatedPosition = section.consumer.generatedPositionFor(aArgs);\n if (generatedPosition) {\n var ret = {\n line: generatedPosition.line +\n (section.generatedOffset.generatedLine - 1),\n column: generatedPosition.column +\n (section.generatedOffset.generatedLine === generatedPosition.line\n ? section.generatedOffset.generatedColumn - 1\n : 0)\n };\n return ret;\n }\n }\n\n return {\n line: null,\n column: null\n };\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nIndexedSourceMapConsumer.prototype._parseMappings =\n function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n this.__generatedMappings = [];\n this.__originalMappings = [];\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n var sectionMappings = section.consumer._generatedMappings;\n for (var j = 0; j < sectionMappings.length; j++) {\n var mapping = sectionMappings[j];\n\n var source = section.consumer._sources.at(mapping.source);\n source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);\n this._sources.add(source);\n source = this._sources.indexOf(source);\n\n var name = null;\n if (mapping.name) {\n name = section.consumer._names.at(mapping.name);\n this._names.add(name);\n name = this._names.indexOf(name);\n }\n\n // The mappings coming from the consumer for the section have\n // generated positions relative to the start of the section, so we\n // need to offset them to be relative to the start of the concatenated\n // generated file.\n var adjustedMapping = {\n source: source,\n generatedLine: mapping.generatedLine +\n (section.generatedOffset.generatedLine - 1),\n generatedColumn: mapping.generatedColumn +\n (section.generatedOffset.generatedLine === mapping.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: name\n };\n\n this.__generatedMappings.push(adjustedMapping);\n if (typeof adjustedMapping.originalLine === 'number') {\n this.__originalMappings.push(adjustedMapping);\n }\n }\n }\n\n quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);\n quickSort(this.__originalMappings, util.compareByOriginalPositions);\n };\n\nexports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-map-consumer.js\n// module id = 7\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nexports.GREATEST_LOWER_BOUND = 1;\nexports.LEAST_UPPER_BOUND = 2;\n\n/**\n * Recursive implementation of binary search.\n *\n * @param aLow Indices here and lower do not contain the needle.\n * @param aHigh Indices here and higher do not contain the needle.\n * @param aNeedle The element being searched for.\n * @param aHaystack The non-empty array being searched.\n * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n */\nfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n // This function terminates when one of the following is true:\n //\n // 1. We find the exact element we are looking for.\n //\n // 2. We did not find the exact element, but we can return the index of\n // the next-closest element.\n //\n // 3. We did not find the exact element, and there is no next-closest\n // element than the one we are searching for, so we return -1.\n var mid = Math.floor((aHigh - aLow) / 2) + aLow;\n var cmp = aCompare(aNeedle, aHaystack[mid], true);\n if (cmp === 0) {\n // Found the element we are looking for.\n return mid;\n }\n else if (cmp > 0) {\n // Our needle is greater than aHaystack[mid].\n if (aHigh - mid > 1) {\n // The element is in the upper half.\n return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // The exact needle element was not found in this haystack. Determine if\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return aHigh < aHaystack.length ? aHigh : -1;\n } else {\n return mid;\n }\n }\n else {\n // Our needle is less than aHaystack[mid].\n if (mid - aLow > 1) {\n // The element is in the lower half.\n return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return mid;\n } else {\n return aLow < 0 ? -1 : aLow;\n }\n }\n}\n\n/**\n * This is an implementation of binary search which will always try and return\n * the index of the closest element if there is no exact hit. This is because\n * mappings between original and generated line/col pairs are single points,\n * and there is an implicit region between each of them, so a miss just means\n * that you aren't on the very start of a region.\n *\n * @param aNeedle The element you are looking for.\n * @param aHaystack The array that is being searched.\n * @param aCompare A function which takes the needle and an element in the\n * array and returns -1, 0, or 1 depending on whether the needle is less\n * than, equal to, or greater than the element, respectively.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n */\nexports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n if (aHaystack.length === 0) {\n return -1;\n }\n\n var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,\n aCompare, aBias || exports.GREATEST_LOWER_BOUND);\n if (index < 0) {\n return -1;\n }\n\n // We have found either the exact element, or the next-closest element than\n // the one we are searching for. However, there may be more than one such\n // element. Make sure we always return the smallest of these.\n while (index - 1 >= 0) {\n if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n break;\n }\n --index;\n }\n\n return index;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/binary-search.js\n// module id = 8\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n// It turns out that some (most?) JavaScript engines don't self-host\n// `Array.prototype.sort`. This makes sense because C++ will likely remain\n// faster than JS when doing raw CPU-intensive sorting. However, when using a\n// custom comparator function, calling back and forth between the VM's C++ and\n// JIT'd JS is rather slow *and* loses JIT type information, resulting in\n// worse generated code for the comparator function than would be optimal. In\n// fact, when sorting with a comparator, these costs outweigh the benefits of\n// sorting in C++. By using our own JS-implemented Quick Sort (below), we get\n// a ~3500ms mean speed-up in `bench/bench.html`.\n\n/**\n * Swap the elements indexed by `x` and `y` in the array `ary`.\n *\n * @param {Array} ary\n * The array.\n * @param {Number} x\n * The index of the first item.\n * @param {Number} y\n * The index of the second item.\n */\nfunction swap(ary, x, y) {\n var temp = ary[x];\n ary[x] = ary[y];\n ary[y] = temp;\n}\n\n/**\n * Returns a random integer within the range `low .. high` inclusive.\n *\n * @param {Number} low\n * The lower bound on the range.\n * @param {Number} high\n * The upper bound on the range.\n */\nfunction randomIntInRange(low, high) {\n return Math.round(low + (Math.random() * (high - low)));\n}\n\n/**\n * The Quick Sort algorithm.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n * @param {Number} p\n * Start index of the array\n * @param {Number} r\n * End index of the array\n */\nfunction doQuickSort(ary, comparator, p, r) {\n // If our lower bound is less than our upper bound, we (1) partition the\n // array into two pieces and (2) recurse on each half. If it is not, this is\n // the empty array and our base case.\n\n if (p < r) {\n // (1) Partitioning.\n //\n // The partitioning chooses a pivot between `p` and `r` and moves all\n // elements that are less than or equal to the pivot to the before it, and\n // all the elements that are greater than it after it. The effect is that\n // once partition is done, the pivot is in the exact place it will be when\n // the array is put in sorted order, and it will not need to be moved\n // again. This runs in O(n) time.\n\n // Always choose a random pivot so that an input array which is reverse\n // sorted does not cause O(n^2) running time.\n var pivotIndex = randomIntInRange(p, r);\n var i = p - 1;\n\n swap(ary, pivotIndex, r);\n var pivot = ary[r];\n\n // Immediately after `j` is incremented in this loop, the following hold\n // true:\n //\n // * Every element in `ary[p .. i]` is less than or equal to the pivot.\n //\n // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.\n for (var j = p; j < r; j++) {\n if (comparator(ary[j], pivot) <= 0) {\n i += 1;\n swap(ary, i, j);\n }\n }\n\n swap(ary, i + 1, j);\n var q = i + 1;\n\n // (2) Recurse on each half.\n\n doQuickSort(ary, comparator, p, q - 1);\n doQuickSort(ary, comparator, q + 1, r);\n }\n}\n\n/**\n * Sort the given array in-place with the given comparator function.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n */\nexports.quickSort = function (ary, comparator) {\n doQuickSort(ary, comparator, 0, ary.length - 1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/quick-sort.js\n// module id = 9\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;\nvar util = require('./util');\n\n// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n// operating systems these days (capturing the result).\nvar REGEX_NEWLINE = /(\\r?\\n)/;\n\n// Newline character code for charCodeAt() comparisons\nvar NEWLINE_CODE = 10;\n\n// Private symbol for identifying `SourceNode`s when multiple versions of\n// the source-map library are loaded. This MUST NOT CHANGE across\n// versions!\nvar isSourceNode = \"$$$isSourceNode$$$\";\n\n/**\n * SourceNodes provide a way to abstract over interpolating/concatenating\n * snippets of generated JavaScript source code while maintaining the line and\n * column information associated with the original source code.\n *\n * @param aLine The original line number.\n * @param aColumn The original column number.\n * @param aSource The original source's filename.\n * @param aChunks Optional. An array of strings which are snippets of\n * generated JS, or other SourceNodes.\n * @param aName The original identifier.\n */\nfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n this.children = [];\n this.sourceContents = {};\n this.line = aLine == null ? null : aLine;\n this.column = aColumn == null ? null : aColumn;\n this.source = aSource == null ? null : aSource;\n this.name = aName == null ? null : aName;\n this[isSourceNode] = true;\n if (aChunks != null) this.add(aChunks);\n}\n\n/**\n * Creates a SourceNode from generated code and a SourceMapConsumer.\n *\n * @param aGeneratedCode The generated code\n * @param aSourceMapConsumer The SourceMap for the generated code\n * @param aRelativePath Optional. The path that relative sources in the\n * SourceMapConsumer should be relative to.\n */\nSourceNode.fromStringWithSourceMap =\n function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n // The SourceNode we want to fill with the generated code\n // and the SourceMap\n var node = new SourceNode();\n\n // All even indices of this array are one line of the generated code,\n // while all odd indices are the newlines between two adjacent lines\n // (since `REGEX_NEWLINE` captures its match).\n // Processed fragments are accessed by calling `shiftNextLine`.\n var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n var remainingLinesIndex = 0;\n var shiftNextLine = function() {\n var lineContents = getNextLine();\n // The last line of a file might not have a newline.\n var newLine = getNextLine() || \"\";\n return lineContents + newLine;\n\n function getNextLine() {\n return remainingLinesIndex < remainingLines.length ?\n remainingLines[remainingLinesIndex++] : undefined;\n }\n };\n\n // We need to remember the position of \"remainingLines\"\n var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\n // The generate SourceNodes we need a code range.\n // To extract it current and last mapping is used.\n // Here we store the last mapping.\n var lastMapping = null;\n\n aSourceMapConsumer.eachMapping(function (mapping) {\n if (lastMapping !== null) {\n // We add the code from \"lastMapping\" to \"mapping\":\n // First check if there is a new line in between.\n if (lastGeneratedLine < mapping.generatedLine) {\n // Associate first line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n lastGeneratedLine++;\n lastGeneratedColumn = 0;\n // The remaining code is added without mapping\n } else {\n // There is no new line in between.\n // Associate the code between \"lastGeneratedColumn\" and\n // \"mapping.generatedColumn\" with \"lastMapping\"\n var nextLine = remainingLines[remainingLinesIndex] || '';\n var code = nextLine.substr(0, mapping.generatedColumn -\n lastGeneratedColumn);\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -\n lastGeneratedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n addMappingWithCode(lastMapping, code);\n // No more remaining code, continue\n lastMapping = mapping;\n return;\n }\n }\n // We add the generated code until the first mapping\n // to the SourceNode without any mapping.\n // Each line is added as separate string.\n while (lastGeneratedLine < mapping.generatedLine) {\n node.add(shiftNextLine());\n lastGeneratedLine++;\n }\n if (lastGeneratedColumn < mapping.generatedColumn) {\n var nextLine = remainingLines[remainingLinesIndex] || '';\n node.add(nextLine.substr(0, mapping.generatedColumn));\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n }\n lastMapping = mapping;\n }, this);\n // We have processed all mappings.\n if (remainingLinesIndex < remainingLines.length) {\n if (lastMapping) {\n // Associate the remaining code in the current line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n }\n // and add the remaining lines without any mapping\n node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n }\n\n // Copy sourcesContent into SourceNode\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aRelativePath != null) {\n sourceFile = util.join(aRelativePath, sourceFile);\n }\n node.setSourceContent(sourceFile, content);\n }\n });\n\n return node;\n\n function addMappingWithCode(mapping, code) {\n if (mapping === null || mapping.source === undefined) {\n node.add(code);\n } else {\n var source = aRelativePath\n ? util.join(aRelativePath, mapping.source)\n : mapping.source;\n node.add(new SourceNode(mapping.originalLine,\n mapping.originalColumn,\n source,\n code,\n mapping.name));\n }\n }\n };\n\n/**\n * Add a chunk of generated JS to this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.add = function SourceNode_add(aChunk) {\n if (Array.isArray(aChunk)) {\n aChunk.forEach(function (chunk) {\n this.add(chunk);\n }, this);\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n if (aChunk) {\n this.children.push(aChunk);\n }\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Add a chunk of generated JS to the beginning of this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n if (Array.isArray(aChunk)) {\n for (var i = aChunk.length-1; i >= 0; i--) {\n this.prepend(aChunk[i]);\n }\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n this.children.unshift(aChunk);\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Walk over the tree of JS snippets in this node and its children. The\n * walking function is called once for each snippet of JS and is passed that\n * snippet and the its original associated source's line/column location.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n var chunk;\n for (var i = 0, len = this.children.length; i < len; i++) {\n chunk = this.children[i];\n if (chunk[isSourceNode]) {\n chunk.walk(aFn);\n }\n else {\n if (chunk !== '') {\n aFn(chunk, { source: this.source,\n line: this.line,\n column: this.column,\n name: this.name });\n }\n }\n }\n};\n\n/**\n * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n * each of `this.children`.\n *\n * @param aSep The separator.\n */\nSourceNode.prototype.join = function SourceNode_join(aSep) {\n var newChildren;\n var i;\n var len = this.children.length;\n if (len > 0) {\n newChildren = [];\n for (i = 0; i < len-1; i++) {\n newChildren.push(this.children[i]);\n newChildren.push(aSep);\n }\n newChildren.push(this.children[i]);\n this.children = newChildren;\n }\n return this;\n};\n\n/**\n * Call String.prototype.replace on the very right-most source snippet. Useful\n * for trimming whitespace from the end of a source node, etc.\n *\n * @param aPattern The pattern to replace.\n * @param aReplacement The thing to replace the pattern with.\n */\nSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n var lastChild = this.children[this.children.length - 1];\n if (lastChild[isSourceNode]) {\n lastChild.replaceRight(aPattern, aReplacement);\n }\n else if (typeof lastChild === 'string') {\n this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n }\n else {\n this.children.push(''.replace(aPattern, aReplacement));\n }\n return this;\n};\n\n/**\n * Set the source content for a source file. This will be added to the SourceMapGenerator\n * in the sourcesContent field.\n *\n * @param aSourceFile The filename of the source file\n * @param aSourceContent The content of the source file\n */\nSourceNode.prototype.setSourceContent =\n function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n };\n\n/**\n * Walk over the tree of SourceNodes. The walking function is called for each\n * source file content and is passed the filename and source content.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walkSourceContents =\n function SourceNode_walkSourceContents(aFn) {\n for (var i = 0, len = this.children.length; i < len; i++) {\n if (this.children[i][isSourceNode]) {\n this.children[i].walkSourceContents(aFn);\n }\n }\n\n var sources = Object.keys(this.sourceContents);\n for (var i = 0, len = sources.length; i < len; i++) {\n aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n }\n };\n\n/**\n * Return the string representation of this source node. Walks over the tree\n * and concatenates all the various snippets together to one string.\n */\nSourceNode.prototype.toString = function SourceNode_toString() {\n var str = \"\";\n this.walk(function (chunk) {\n str += chunk;\n });\n return str;\n};\n\n/**\n * Returns the string representation of this source node along with a source\n * map.\n */\nSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n var generated = {\n code: \"\",\n line: 1,\n column: 0\n };\n var map = new SourceMapGenerator(aArgs);\n var sourceMappingActive = false;\n var lastOriginalSource = null;\n var lastOriginalLine = null;\n var lastOriginalColumn = null;\n var lastOriginalName = null;\n this.walk(function (chunk, original) {\n generated.code += chunk;\n if (original.source !== null\n && original.line !== null\n && original.column !== null) {\n if(lastOriginalSource !== original.source\n || lastOriginalLine !== original.line\n || lastOriginalColumn !== original.column\n || lastOriginalName !== original.name) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n lastOriginalSource = original.source;\n lastOriginalLine = original.line;\n lastOriginalColumn = original.column;\n lastOriginalName = original.name;\n sourceMappingActive = true;\n } else if (sourceMappingActive) {\n map.addMapping({\n generated: {\n line: generated.line,\n column: generated.column\n }\n });\n lastOriginalSource = null;\n sourceMappingActive = false;\n }\n for (var idx = 0, length = chunk.length; idx < length; idx++) {\n if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n generated.line++;\n generated.column = 0;\n // Mappings end at eol\n if (idx + 1 === length) {\n lastOriginalSource = null;\n sourceMappingActive = false;\n } else if (sourceMappingActive) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n } else {\n generated.column++;\n }\n }\n });\n this.walkSourceContents(function (sourceFile, sourceContent) {\n map.setSourceContent(sourceFile, sourceContent);\n });\n\n return { code: generated.code, map: map };\n};\n\nexports.SourceNode = SourceNode;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-node.js\n// module id = 10\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file diff --git a/node_modules/source-map/lib/array-set.js b/node_modules/source-map/lib/array-set.js index fbd5c81c..40171b9a 100644 --- a/node_modules/source-map/lib/array-set.js +++ b/node_modules/source-map/lib/array-set.js @@ -5,117 +5,96 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var util = require('./util'); -var has = Object.prototype.hasOwnProperty; -var hasNativeMap = typeof Map !== "undefined"; - /** * A data structure which is a combination of an array and a set. Adding a new * member is O(1), testing for membership is O(1), and finding the index of an * element is O(1). Removing elements from the set is not supported. Only * strings are supported for membership. */ -function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); -} - -/** - * Static method for creating ArraySet instances from an existing array. - */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); +class ArraySet { + constructor() { + this._array = []; + this._set = new Map(); } - return set; -}; -/** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ -ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; -}; + /** + * Static method for creating ArraySet instances from an existing array. + */ + static fromArray(aArray, aAllowDuplicates) { + const set = new ArraySet(); + for (let i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); + } + return set; + } -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); + /** + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number + */ + size() { + return this._set.size; } - if (!isDuplicate) { - if (hasNativeMap) { + + /** + * Add the given string to this set. + * + * @param String aStr + */ + add(aStr, aAllowDuplicates) { + const isDuplicate = this.has(aStr); + const idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; } } -}; -/** - * Is the given string a member of this set? - * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); + /** + * Is the given string a member of this set? + * + * @param String aStr + */ + has(aStr) { + return this._set.has(aStr); } -}; -/** - * What is the index of the given string in the array? - * - * @param String aStr - */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); + /** + * What is the index of the given string in the array? + * + * @param String aStr + */ + indexOf(aStr) { + const idx = this._set.get(aStr); if (idx >= 0) { return idx; } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } + throw new Error('"' + aStr + '" is not in the set.'); } - throw new Error('"' + aStr + '" is not in the set.'); -}; - -/** - * What is the element at the given index? - * - * @param Number aIdx - */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; + /** + * What is the element at the given index? + * + * @param Number aIdx + */ + at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; + } + throw new Error("No element indexed by " + aIdx); } - throw new Error('No element indexed by ' + aIdx); -}; - -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; + /** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ + toArray() { + return this._array.slice(); + } +} exports.ArraySet = ArraySet; diff --git a/node_modules/source-map/lib/base64-vlq.js b/node_modules/source-map/lib/base64-vlq.js index 612b4040..fc1049c8 100644 --- a/node_modules/source-map/lib/base64-vlq.js +++ b/node_modules/source-map/lib/base64-vlq.js @@ -35,7 +35,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var base64 = require('./base64'); +const base64 = require("./base64"); // A single base 64 digit can contain 6 bits of data. For the base 64 variable // length quantities we use in the source map spec, the first bit is the sign, @@ -49,16 +49,16 @@ var base64 = require('./base64'); // V V // 101011 -var VLQ_BASE_SHIFT = 5; +const VLQ_BASE_SHIFT = 5; // binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; +const VLQ_BASE = 1 << VLQ_BASE_SHIFT; // binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; +const VLQ_BASE_MASK = VLQ_BASE - 1; // binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; +const VLQ_CONTINUATION_BIT = VLQ_BASE; /** * Converts from a two-complement value to a value where the sign bit is @@ -78,9 +78,10 @@ function toVLQSigned(aValue) { * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 */ +// eslint-disable-next-line no-unused-vars function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; + const isNegative = (aValue & 1) === 1; + const shifted = aValue >> 1; return isNegative ? -shifted : shifted; @@ -90,10 +91,10 @@ function fromVLQSigned(aValue) { * Returns the base 64 VLQ encoded value. */ exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; + let encoded = ""; + let digit; - var vlq = toVLQSigned(aValue); + let vlq = toVLQSigned(aValue); do { digit = vlq & VLQ_BASE_MASK; @@ -108,33 +109,3 @@ exports.encode = function base64VLQ_encode(aValue) { return encoded; }; - -/** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; diff --git a/node_modules/source-map/lib/base64.js b/node_modules/source-map/lib/base64.js index 8aa86b30..b9ca3199 100644 --- a/node_modules/source-map/lib/base64.js +++ b/node_modules/source-map/lib/base64.js @@ -5,63 +5,14 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); +const intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); /** * Encode an integer in the range of 0 to 63 to a single base 64 digit. */ -exports.encode = function (number) { +exports.encode = function(number) { if (0 <= number && number < intToCharMap.length) { return intToCharMap[number]; } throw new TypeError("Must be between 0 and 63: " + number); }; - -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; -}; diff --git a/node_modules/source-map/lib/binary-search.js b/node_modules/source-map/lib/binary-search.js index 010ac941..d6f898ea 100644 --- a/node_modules/source-map/lib/binary-search.js +++ b/node_modules/source-map/lib/binary-search.js @@ -31,13 +31,12 @@ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { // // 3. We did not find the exact element, and there is no next-closest // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); + const mid = Math.floor((aHigh - aLow) / 2) + aLow; + const cmp = aCompare(aNeedle, aHaystack[mid], true); if (cmp === 0) { // Found the element we are looking for. return mid; - } - else if (cmp > 0) { + } else if (cmp > 0) { // Our needle is greater than aHaystack[mid]. if (aHigh - mid > 1) { // The element is in the upper half. @@ -48,24 +47,21 @@ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { // we are in termination case (3) or (2) and return the appropriate thing. if (aBias == exports.LEAST_UPPER_BOUND) { return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; } + return mid; } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + } + + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return mid; } + return aLow < 0 ? -1 : aLow; } /** @@ -91,7 +87,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { return -1; } - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + let index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND); if (index < 0) { return -1; diff --git a/node_modules/source-map/lib/mapping-list.js b/node_modules/source-map/lib/mapping-list.js index 06d1274a..70568610 100644 --- a/node_modules/source-map/lib/mapping-list.js +++ b/node_modules/source-map/lib/mapping-list.js @@ -5,7 +5,7 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var util = require('./util'); +const util = require("./util"); /** * Determine whether mappingB is after mappingA with respect to generated @@ -13,67 +13,68 @@ var util = require('./util'); */ function generatedPositionAfter(mappingA, mappingB) { // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; + const lineA = mappingA.generatedLine; + const lineB = mappingB.generatedLine; + const columnA = mappingA.generatedColumn; + const columnB = mappingB.generatedColumn; return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; } /** * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general + * performance conscious manner. It trades a negligible overhead in general * case for a large speedup in case of mappings being added in order. */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} +class MappingList { + constructor() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; + } -/** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { + /** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ + unsortedForEach(aCallback, aThisArg) { this._array.forEach(aCallback, aThisArg); - }; + } -/** - * Add the given source mapping. - * - * @param Object aMapping - */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); + /** + * Add the given source mapping. + * + * @param Object aMapping + */ + add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); + } else { + this._sorted = false; + this._array.push(aMapping); + } } -}; -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; + /** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ + toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; + } + return this._array; } - return this._array; -}; +} exports.MappingList = MappingList; diff --git a/node_modules/source-map/lib/quick-sort.js b/node_modules/source-map/lib/quick-sort.js deleted file mode 100644 index 6a7caadb..00000000 --- a/node_modules/source-map/lib/quick-sort.js +++ /dev/null @@ -1,114 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. - -/** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} - -/** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} - -/** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} - -/** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ -exports.quickSort = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); -}; diff --git a/node_modules/source-map/lib/source-map-consumer.js b/node_modules/source-map/lib/source-map-consumer.js index 7b99d1da..9aaf92f5 100644 --- a/node_modules/source-map/lib/source-map-consumer.js +++ b/node_modules/source-map/lib/source-map-consumer.js @@ -5,250 +5,144 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var util = require('./util'); -var binarySearch = require('./binary-search'); -var ArraySet = require('./array-set').ArraySet; -var base64VLQ = require('./base64-vlq'); -var quickSort = require('./quick-sort').quickSort; - -function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } +const util = require("./util"); +const binarySearch = require("./binary-search"); +const ArraySet = require("./array-set").ArraySet; +const base64VLQ = require("./base64-vlq"); // eslint-disable-line no-unused-vars +const readWasm = require("../lib/read-wasm"); +const wasm = require("./wasm"); + +const INTERNAL = Symbol("smcInternal"); + +class SourceMapConsumer { + constructor(aSourceMap, aSourceMapURL) { + // If the constructor was called by super(), just return Promise. + // Yes, this is a hack to retain the pre-existing API of the base-class + // constructor also being an async factory function. + if (aSourceMap == INTERNAL) { + return Promise.resolve(this); + } - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); -} + return _factory(aSourceMap, aSourceMapURL); + } -SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); -} + static initialize(opts) { + readWasm.initialize(opts["lib/mappings.wasm"]); + } -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; + static fromSourceMap(aSourceMap, aSourceMapURL) { + return _factoryBSM(aSourceMap, aSourceMapURL); + } -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. - -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); + /** + * Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl` + * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async + * function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait + * for `f` to complete, call `destroy` on the consumer, and return `f`'s return + * value. + * + * You must not use the consumer after `f` completes! + * + * By using `with`, you do not have to remember to manually call `destroy` on + * the consumer, since it will be called automatically once `f` completes. + * + * ```js + * const xSquared = await SourceMapConsumer.with( + * myRawSourceMap, + * null, + * async function (consumer) { + * // Use `consumer` inside here and don't worry about remembering + * // to call `destroy`. + * + * const x = await whatever(consumer); + * return x * x; + * } + * ); + * + * // You may not use that `consumer` anymore out here; it has + * // been destroyed. But you can use `xSquared`. + * console.log(xSquared); + * ``` + */ + static async with(rawSourceMap, sourceMapUrl, f) { + const consumer = await new SourceMapConsumer(rawSourceMap, sourceMapUrl); + try { + return await f(consumer); + } finally { + consumer.destroy(); } + } - return this.__generatedMappings; + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + _parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); } -}); -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } + /** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ + eachMapping(aCallback, aContext, aOrder) { + throw new Error("Subclasses must implement eachMapping"); + } - return this.__originalMappings; + /** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + allGeneratedPositionsFor(aArgs) { + throw new Error("Subclasses must implement allGeneratedPositionsFor"); } -}); -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; + destroy() { + throw new Error("Subclasses must implement destroy"); + } +} /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). + * The version of the source mapping spec that we are consuming. */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - +SourceMapConsumer.prototype._version = 3; SourceMapConsumer.GENERATED_ORDER = 1; SourceMapConsumer.ORIGINAL_ORDER = 2; SourceMapConsumer.GREATEST_LOWER_BOUND = 1; SourceMapConsumer.LEAST_UPPER_BOUND = 2; -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - -/** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - exports.SourceMapConsumer = SourceMapConsumer; /** @@ -262,7 +156,7 @@ exports.SourceMapConsumer = SourceMapConsumer; * * - version: Which version of the source map spec this map is following. * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. + * - names: An array of identifiers which can be referenced by individual mappings. * - sourceRoot: Optional. The URL root from which all sources are relative. * - sourcesContent: Optional. An array of contents of the original source files. * - mappings: A string of base64 VLQs which contain the actual mappings. @@ -285,398 +179,342 @@ exports.SourceMapConsumer = SourceMapConsumer; * * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# */ -function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } +class BasicSourceMapConsumer extends SourceMapConsumer { + constructor(aSourceMap, aSourceMapURL) { + return super(INTERNAL).then(that => { + let sourceMap = aSourceMap; + if (typeof aSourceMap === "string") { + sourceMap = util.parseSourceMapInput(aSourceMap); + } - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } + const version = util.getArg(sourceMap, "version"); + let sources = util.getArg(sourceMap, "sources"); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + const names = util.getArg(sourceMap, "names", []); + let sourceRoot = util.getArg(sourceMap, "sourceRoot", null); + const sourcesContent = util.getArg(sourceMap, "sourcesContent", null); + const mappings = util.getArg(sourceMap, "mappings"); + const file = util.getArg(sourceMap, "file", null); + + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != that._version) { + throw new Error("Unsupported version: " + version); + } - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function(source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); + + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + that._names = ArraySet.fromArray(names.map(String), true); + that._sources = ArraySet.fromArray(sources, true); + + that._absoluteSources = that._sources.toArray().map(function(s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; -} + that.sourceRoot = sourceRoot; + that.sourcesContent = sourcesContent; + that._mappings = mappings; + that._sourceMapURL = aSourceMapURL; + that.file = file; -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + that._computedColumnSpans = false; + that._mappingsPtr = 0; + that._wasm = null; -/** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ -BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); + return wasm().then(w => { + that._wasm = w; + return that; + }); + }); } - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } + /** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ + _findSourceIndex(aSource) { + let relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); } - } - return -1; -}; + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + for (let i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; + } + } -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); + return -1; + } - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer + */ + static fromSourceMap(aSourceMap, aSourceMapURL) { + return new BasicSourceMapConsumer(aSourceMap.toString()); + } - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; + get sources() { + return this._absoluteSources.slice(); + } - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; + _getMappingsPtr() { + if (this._mappingsPtr === 0) { + this._parseMappings(this._mappings, this.sourceRoot); + } - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; + return this._mappingsPtr; + } - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + _parseMappings(aStr, aSourceRoot) { + const size = aStr.length; + + const mappingsBufPtr = this._wasm.exports.allocate_mappings(size); + const mappingsBuf = new Uint8Array(this._wasm.exports.memory.buffer, mappingsBufPtr, size); + for (let i = 0; i < size; i++) { + mappingsBuf[i] = aStr.charCodeAt(i); + } - destOriginalMappings.push(destMapping); + const mappingsPtr = this._wasm.exports.parse_mappings(mappingsBufPtr); + + if (!mappingsPtr) { + const error = this._wasm.exports.get_last_error(); + let msg = `Error parsing mappings (code ${error}): `; + + // XXX: keep these error codes in sync with `fitzgen/source-map-mappings`. + switch (error) { + case 1: + msg += "the mappings contained a negative line, column, source index, or name index"; + break; + case 2: + msg += "the mappings contained a number larger than 2**32"; + break; + case 3: + msg += "reached EOF while in the middle of parsing a VLQ"; + break; + case 4: + msg += "invalid base 64 character while parsing a VLQ"; + break; + default: + msg += "unknown error code"; + break; } - destGeneratedMappings.push(destMapping); + throw new Error(msg); } - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - -/** - * The version of the source mapping spec that we are consuming. - */ -BasicSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); + this._mappingsPtr = mappingsPtr; } -}); -/** - * Provide the JIT with a nice shape / hidden class. - */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; -} - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } + eachMapping(aCallback, aContext, aOrder) { + const context = aContext || null; + const order = aOrder || SourceMapConsumer.GENERATED_ORDER; + const sourceRoot = this.sourceRoot; - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } + this._wasm.withMappingCallback( + mapping => { + if (mapping.source !== null) { + mapping.source = this._sources.at(mapping.source); + mapping.source = util.computeSourceURL(sourceRoot, mapping.source, this._sourceMapURL); - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; + if (mapping.name !== null) { + mapping.name = this._names.at(mapping.name); } } - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); + aCallback.call(context, mapping); + }, + () => { + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + this._wasm.exports.by_generated_location(this._getMappingsPtr()); + break; + case SourceMapConsumer.ORIGINAL_ORDER: + this._wasm.exports.by_original_location(this._getMappingsPtr()); + break; + default: + throw new Error("Unknown order of iteration."); } } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; + ); + } - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; + allGeneratedPositionsFor(aArgs) { + let source = util.getArg(aArgs, "source"); + const originalLine = util.getArg(aArgs, "line"); + const originalColumn = aArgs.column || 0; -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. + source = this._findSourceIndex(source); + if (source < 0) { + return []; + } - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); + if (originalLine < 1) { + throw new Error("Line numbers must be >= 1"); } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); + + if (originalColumn < 0) { + throw new Error("Column numbers must be >= 0"); } - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; + const mappings = []; -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; + this._wasm.withMappingCallback( + m => { + let lastColumn = m.lastGeneratedColumn; + if (this._computedColumnSpans && lastColumn === null) { + lastColumn = Infinity; } + mappings.push({ + line: m.generatedLine, + column: m.generatedColumn, + lastColumn, + }); + }, () => { + this._wasm.exports.all_generated_locations_for( + this._getMappingsPtr(), + source, + originalLine - 1, + "column" in aArgs, + originalColumn + ); } + ); + + return mappings; + } - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; + destroy() { + if (this._mappingsPtr !== 0) { + this._wasm.exports.free_mappings(this._mappingsPtr); + this._mappingsPtr = 0; } - }; + } -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') + /** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ + computeColumnSpans() { + if (this._computedColumnSpans) { + return; + } + + this._wasm.exports.compute_column_spans(this._getMappingsPtr()); + this._computedColumnSpans = true; + } + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + originalPositionFor(aArgs) { + const needle = { + generatedLine: util.getArg(aArgs, "line"), + generatedColumn: util.getArg(aArgs, "column") }; - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); + if (needle.generatedLine < 1) { + throw new Error("Line numbers must be >= 1"); + } - if (index >= 0) { - var mapping = this._generatedMappings[index]; + if (needle.generatedColumn < 0) { + throw new Error("Column numbers must be >= 0"); + } + let bias = util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND); + if (bias == null) { + bias = SourceMapConsumer.GREATEST_LOWER_BOUND; + } + + let mapping; + this._wasm.withMappingCallback(m => mapping = m, () => { + this._wasm.exports.original_location_for( + this._getMappingsPtr(), + needle.generatedLine - 1, + needle.generatedColumn, + bias + ); + }); + + if (mapping) { if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); + let source = util.getArg(mapping, "source", null); if (source !== null) { source = this._sources.at(source); source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); } - var name = util.getArg(mapping, 'name', null); + + let name = util.getArg(mapping, "name", null); if (name !== null) { name = this._names.at(name); } + return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name + source, + line: util.getArg(mapping, "originalLine", null), + column: util.getArg(mapping, "originalColumn", null), + name }; } } @@ -687,53 +525,51 @@ BasicSourceMapConsumer.prototype.originalPositionFor = column: null, name: null }; - }; + } -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + hasContentsOfAllSources() { if (!this.sourcesContent) { return false; } return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; + !this.sourcesContent.some(function(sc) { return sc == null; }); + } -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + sourceContentFor(aSource, nullOnMissing) { if (!this.sourcesContent) { return null; } - var index = this._findSourceIndex(aSource); + const index = this._findSourceIndex(aSource); if (index >= 0) { return this.sourcesContent[index]; } - var relativeSource = aSource; + let relativeSource = aSource; if (this.sourceRoot != null) { relativeSource = util.relative(this.sourceRoot, relativeSource); } - var url; + let url; if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) { // XXX: file:// URIs and absolute paths lead to unexpected behavior for // many users. We can help them out when they expect file:// URIs to // behave like it would if they were running a local HTTP server. See // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + const fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]; } if ((!url.path || url.path == "/") @@ -749,37 +585,35 @@ BasicSourceMapConsumer.prototype.sourceContentFor = if (nullOnMissing) { return null; } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + } + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + generatedPositionFor(aArgs) { + let source = util.getArg(aArgs, "source"); source = this._findSourceIndex(source); if (source < 0) { return { @@ -789,29 +623,46 @@ BasicSourceMapConsumer.prototype.generatedPositionFor = }; } - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') + const needle = { + source, + originalLine: util.getArg(aArgs, "line"), + originalColumn: util.getArg(aArgs, "column") }; - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); + if (needle.originalLine < 1) { + throw new Error("Line numbers must be >= 1"); + } - if (index >= 0) { - var mapping = this._originalMappings[index]; + if (needle.originalColumn < 0) { + throw new Error("Column numbers must be >= 0"); + } + let bias = util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND); + if (bias == null) { + bias = SourceMapConsumer.GREATEST_LOWER_BOUND; + } + + let mapping; + this._wasm.withMappingCallback(m => mapping = m, () => { + this._wasm.exports.generated_location_for( + this._getMappingsPtr(), + needle.source, + needle.originalLine - 1, + needle.originalColumn, + bias + ); + }); + + if (mapping) { if (mapping.source === needle.source) { + let lastColumn = mapping.lastGeneratedColumn; + if (this._computedColumnSpans && lastColumn === null) { + lastColumn = Infinity; + } return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + line: util.getArg(mapping, "generatedLine", null), + column: util.getArg(mapping, "generatedColumn", null), + lastColumn, }; } } @@ -821,8 +672,10 @@ BasicSourceMapConsumer.prototype.generatedPositionFor = column: null, lastColumn: null }; - }; + } +} +BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; exports.BasicSourceMapConsumer = BasicSourceMapConsumer; /** @@ -874,116 +727,191 @@ exports.BasicSourceMapConsumer = BasicSourceMapConsumer; * * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt */ -function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); +class IndexedSourceMapConsumer extends SourceMapConsumer { + constructor(aSourceMap, aSourceMapURL) { + return super(INTERNAL).then(that => { + let sourceMap = aSourceMap; + if (typeof aSourceMap === "string") { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + const version = util.getArg(sourceMap, "version"); + const sections = util.getArg(sourceMap, "sections"); + + if (version != that._version) { + throw new Error("Unsupported version: " + version); + } + + that._sources = new ArraySet(); + that._names = new ArraySet(); + that.__generatedMappings = null; + that.__originalMappings = null; + that.__generatedMappingsUnsorted = null; + that.__originalMappingsUnsorted = null; + + let lastOffset = { + line: -1, + column: 0 + }; + return Promise.all(sections.map(s => { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error("Support for url field in sections not implemented."); + } + const offset = util.getArg(s, "offset"); + const offsetLine = util.getArg(offset, "line"); + const offsetColumn = util.getArg(offset, "column"); + + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error("Section offsets must be ordered and non-overlapping."); + } + lastOffset = offset; + + const cons = new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL); + return cons.then(consumer => { + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer + }; + }); + })).then(s => { + that._sections = s; + return that; + }); + }); } - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); + // `__generatedMappings` and `__originalMappings` are arrays that hold the + // parsed mapping coordinates from the source map's "mappings" attribute. They + // are lazily instantiated, accessed via the `_generatedMappings` and + // `_originalMappings` getters respectively, and we only parse the mappings + // and create these arrays once queried for a source location. We jump through + // these hoops because there can be many thousands of mappings, and parsing + // them is expensive, so we only want to do it if we must. + // + // Each object in the arrays is of the form: + // + // { + // generatedLine: The line number in the generated code, + // generatedColumn: The column number in the generated code, + // source: The path to the original source file that generated this + // chunk of code, + // originalLine: The line number in the original source that + // corresponds to this chunk of generated code, + // originalColumn: The column number in the original source that + // corresponds to this chunk of generated code, + // name: The name of the original symbol which generated this chunk of + // code. + // } + // + // All properties except for `generatedLine` and `generatedColumn` can be + // `null`. + // + // `_generatedMappings` is ordered by the generated positions. + // + // `_originalMappings` is ordered by the original positions. + get _generatedMappings() { + if (!this.__generatedMappings) { + this._sortGeneratedMappings(); + } - if (version != this._version) { - throw new Error('Unsupported version: ' + version); + return this.__generatedMappings; } - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); + get _originalMappings() { + if (!this.__originalMappings) { + this._sortOriginalMappings(); } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); + return this.__originalMappings; + } + + get _generatedMappingsUnsorted() { + if (!this.__generatedMappingsUnsorted) { + this._parseMappings(this._mappings, this.sourceRoot); } - lastOffset = offset; - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + return this.__generatedMappingsUnsorted; + } + + get _originalMappingsUnsorted() { + if (!this.__originalMappingsUnsorted) { + this._parseMappings(this._mappings, this.sourceRoot); } - }); -} -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + return this.__originalMappingsUnsorted; + } -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; + _sortGeneratedMappings() { + const mappings = this._generatedMappingsUnsorted; + mappings.sort(util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = mappings; + } -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + _sortOriginalMappings() { + const mappings = this._originalMappingsUnsorted; + mappings.sort(util.compareByOriginalPositions); + this.__originalMappings = mappings; + } + + /** + * The list of original sources. + */ + get sources() { + const sources = []; + for (let i = 0; i < this._sections.length; i++) { + for (let j = 0; j < this._sections[i].consumer.sources.length; j++) { sources.push(this._sections[i].consumer.sources[j]); } } return sources; } -}); -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + originalPositionFor(aArgs) { + const needle = { + generatedLine: util.getArg(aArgs, "line"), + generatedColumn: util.getArg(aArgs, "column") }; // Find the section containing the generated position we're trying to map // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + const sectionIndex = binarySearch.search(needle, this._sections, + function(aNeedle, section) { + const cmp = aNeedle.generatedLine - section.generatedOffset.generatedLine; if (cmp) { return cmp; } - return (needle.generatedColumn - + return (aNeedle.generatedColumn - section.generatedOffset.generatedColumn); }); - var section = this._sections[sectionIndex]; + const section = this._sections[sectionIndex]; if (!section) { return { @@ -1003,30 +931,28 @@ IndexedSourceMapConsumer.prototype.originalPositionFor = : 0), bias: aArgs.bias }); - }; + } -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + hasContentsOfAllSources() { + return this._sections.every(function(s) { return s.consumer.hasContentsOfAllSources(); }); - }; + } -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + sourceContentFor(aSource, nullOnMissing) { + for (let i = 0; i < this._sections.length; i++) { + const section = this._sections[i]; - var content = section.consumer.sourceContentFor(aSource, true); + const content = section.consumer.sourceContentFor(aSource, true); if (content) { return content; } @@ -1034,42 +960,39 @@ IndexedSourceMapConsumer.prototype.sourceContentFor = if (nullOnMissing) { return null; } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + generatedPositionFor(aArgs) { + for (let i = 0; i < this._sections.length; i++) { + const section = this._sections[i]; // Only consider this section if the requested source is in the list of // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) { continue; } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); + const generatedPosition = section.consumer.generatedPositionFor(aArgs); if (generatedPosition) { - var ret = { + const ret = { line: generatedPosition.line + (section.generatedOffset.generatedLine - 1), column: generatedPosition.column + @@ -1085,41 +1008,45 @@ IndexedSourceMapConsumer.prototype.generatedPositionFor = line: null, column: null }; - }; + } -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + _parseMappings(aStr, aSourceRoot) { + const generatedMappings = this.__generatedMappingsUnsorted = []; + const originalMappings = this.__originalMappingsUnsorted = []; + for (let i = 0; i < this._sections.length; i++) { + const section = this._sections[i]; + + const sectionMappings = []; + section.consumer.eachMapping(m => sectionMappings.push(m)); + + for (let j = 0; j < sectionMappings.length; j++) { + const mapping = sectionMappings[j]; + + // TODO: test if null is correct here. The original code used + // `source`, which would actually have gotten used as null because + // var's get hoisted. + // See: https://github.com/mozilla/source-map/issues/333 + let source = util.computeSourceURL(section.consumer.sourceRoot, null, this._sourceMapURL); this._sources.add(source); source = this._sources.indexOf(source); - var name = null; + let name = null; if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); + this._names.add(mapping.name); + name = this._names.indexOf(mapping.name); } // The mappings coming from the consumer for the section have // generated positions relative to the start of the section, so we // need to offset them to be relative to the start of the concatenated // generated file. - var adjustedMapping = { - source: source, + const adjustedMapping = { + source, generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1), generatedColumn: mapping.generatedColumn + @@ -1128,18 +1055,183 @@ IndexedSourceMapConsumer.prototype._parseMappings = : 0), originalLine: mapping.originalLine, originalColumn: mapping.originalColumn, - name: name + name }; - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); + generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === "number") { + originalMappings.push(adjustedMapping); } } } + } - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; + eachMapping(aCallback, aContext, aOrder) { + const context = aContext || null; + const order = aOrder || SourceMapConsumer.GENERATED_ORDER; + let mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); + } + + const sourceRoot = this.sourceRoot; + mappings.map(function(mapping) { + let source = null; + if (mapping.source !== null) { + source = this._sources.at(mapping.source); + source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); + } + return { + source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : this._names.at(mapping.name) + }; + }, this).forEach(aCallback, context); + } + + /** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ + _findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. + + if (aNeedle[aLineName] <= 0) { + throw new TypeError("Line must be greater than or equal to 1, got " + + aNeedle[aLineName]); + } + if (aNeedle[aColumnName] < 0) { + throw new TypeError("Column must be greater than or equal to 0, got " + + aNeedle[aColumnName]); + } + + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + } + + allGeneratedPositionsFor(aArgs) { + const line = util.getArg(aArgs, "line"); + + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + const needle = { + source: util.getArg(aArgs, "source"), + originalLine: line, + originalColumn: util.getArg(aArgs, "column", 0) + }; + + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; + } + + if (needle.originalLine < 1) { + throw new Error("Line numbers must be >= 1"); + } + + if (needle.originalColumn < 0) { + throw new Error("Column numbers must be >= 0"); + } + + const mappings = []; + + let index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + let mapping = this._originalMappings[index]; + + if (aArgs.column === undefined) { + const originalLine = mapping.originalLine; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + let lastColumn = mapping.lastGeneratedColumn; + if (this._computedColumnSpans && lastColumn === null) { + lastColumn = Infinity; + } + mappings.push({ + line: util.getArg(mapping, "generatedLine", null), + column: util.getArg(mapping, "generatedColumn", null), + lastColumn, + }); + + mapping = this._originalMappings[++index]; + } + } else { + const originalColumn = mapping.originalColumn; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + let lastColumn = mapping.lastGeneratedColumn; + if (this._computedColumnSpans && lastColumn === null) { + lastColumn = Infinity; + } + mappings.push({ + line: util.getArg(mapping, "generatedLine", null), + column: util.getArg(mapping, "generatedColumn", null), + lastColumn, + }); + + mapping = this._originalMappings[++index]; + } + } + } + + return mappings; + } + + destroy() { + for (let i = 0; i < this._sections.length; i++) { + this._sections[i].consumer.destroy(); + } + } +} exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; + +/* + * Cheat to get around inter-twingled classes. `factory()` can be at the end + * where it has access to non-hoisted classes, but it gets hoisted itself. + */ +function _factory(aSourceMap, aSourceMapURL) { + let sourceMap = aSourceMap; + if (typeof aSourceMap === "string") { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + const consumer = sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); + return Promise.resolve(consumer); +} + +function _factoryBSM(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); +} diff --git a/node_modules/source-map/lib/source-map-generator.js b/node_modules/source-map/lib/source-map-generator.js index 508bcfbb..8111e061 100644 --- a/node_modules/source-map/lib/source-map-generator.js +++ b/node_modules/source-map/lib/source-map-generator.js @@ -5,10 +5,10 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var base64VLQ = require('./base64-vlq'); -var util = require('./util'); -var ArraySet = require('./array-set').ArraySet; -var MappingList = require('./mapping-list').MappingList; +const base64VLQ = require("./base64-vlq"); +const util = require("./util"); +const ArraySet = require("./array-set").ArraySet; +const MappingList = require("./mapping-list").MappingList; /** * An instance of the SourceMapGenerator represents a source map which is @@ -18,35 +18,33 @@ var MappingList = require('./mapping-list').MappingList; * - file: The filename of the generated source. * - sourceRoot: A root for all relative URLs in this source map. */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; +class SourceMapGenerator { + constructor(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, "file", null); + this._sourceRoot = util.getArg(aArgs, "sourceRoot", null); + this._skipValidation = util.getArg(aArgs, "skipValidation", false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; -} - -SourceMapGenerator.prototype._version = 3; -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ + /** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. + */ + static fromSourceMap(aSourceMapConsumer) { + const sourceRoot = aSourceMapConsumer.sourceRoot; + const generator = new SourceMapGenerator({ file: aSourceMapConsumer.file, - sourceRoot: sourceRoot + sourceRoot }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { + aSourceMapConsumer.eachMapping(function(mapping) { + const newMapping = { generated: { line: mapping.generatedLine, column: mapping.generatedColumn @@ -71,8 +69,8 @@ SourceMapGenerator.fromSourceMap = generator.addMapping(newMapping); }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; + aSourceMapConsumer.sources.forEach(function(sourceFile) { + let sourceRelative = sourceFile; if (sourceRoot !== null) { sourceRelative = util.relative(sourceRoot, sourceFile); } @@ -81,30 +79,29 @@ SourceMapGenerator.fromSourceMap = generator._sources.add(sourceRelative); } - var content = aSourceMapConsumer.sourceContentFor(sourceFile); + const content = aSourceMapConsumer.sourceContentFor(sourceFile); if (content != null) { generator.setSourceContent(sourceFile, content); } }); return generator; - }; + } -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); + /** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ + addMapping(aArgs) { + const generated = util.getArg(aArgs, "generated"); + const original = util.getArg(aArgs, "original", null); + let source = util.getArg(aArgs, "source", null); + let name = util.getArg(aArgs, "name", null); if (!this._skipValidation) { this._validateMapping(generated, original, source, name); @@ -129,17 +126,16 @@ SourceMapGenerator.prototype.addMapping = generatedColumn: generated.column, originalLine: original != null && original.line, originalColumn: original != null && original.column, - source: source, - name: name + source, + name }); - }; + } -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; + /** + * Set the source content for a source file. + */ + setSourceContent(aSourceFile, aSourceContent) { + let source = aSourceFile; if (this._sourceRoot != null) { source = util.relative(this._sourceRoot, source); } @@ -159,52 +155,53 @@ SourceMapGenerator.prototype.setSourceContent = this._sourcesContents = null; } } - }; + } -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; + /** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ + applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + let sourceFile = aSourceFile; // If aSourceFile is omitted, we will use the file property of the SourceMap if (aSourceFile == null) { if (aSourceMapConsumer.file == null) { throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + "SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, " + 'or the source map\'s "file" property. Both were omitted.' ); } sourceFile = aSourceMapConsumer.file; } - var sourceRoot = this._sourceRoot; + const sourceRoot = this._sourceRoot; // Make "sourceFile" relative if an absolute Url is passed. if (sourceRoot != null) { sourceFile = util.relative(sourceRoot, sourceFile); } // Applying the SourceMap can add and remove items from the sources and // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); + const newSources = this._mappings.toArray().length > 0 + ? new ArraySet() + : this._sources; + const newNames = new ArraySet(); // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { + this._mappings.unsortedForEach(function(mapping) { if (mapping.source === sourceFile && mapping.originalLine != null) { // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ + const original = aSourceMapConsumer.originalPositionFor({ line: mapping.originalLine, column: mapping.originalColumn }); @@ -212,7 +209,7 @@ SourceMapGenerator.prototype.applySourceMap = // Copy mapping mapping.source = original.source; if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) + mapping.source = util.join(aSourceMapPath, mapping.source); } if (sourceRoot != null) { mapping.source = util.relative(sourceRoot, mapping.source); @@ -225,12 +222,12 @@ SourceMapGenerator.prototype.applySourceMap = } } - var source = mapping.source; + const source = mapping.source; if (source != null && !newSources.has(source)) { newSources.add(source); } - var name = mapping.name; + const name = mapping.name; if (name != null && !newNames.has(name)) { newNames.add(name); } @@ -240,107 +237,99 @@ SourceMapGenerator.prototype.applySourceMap = this._names = newNames; // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); + aSourceMapConsumer.sources.forEach(function(srcFile) { + const content = aSourceMapConsumer.sourceContentFor(srcFile); if (content != null) { if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); + srcFile = util.join(aSourceMapPath, srcFile); } if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); + srcFile = util.relative(sourceRoot, srcFile); } - this.setSourceContent(sourceFile, content); + this.setSourceContent(srcFile, content); } }, this); - }; + } -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { + /** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ + _validateMapping(aGenerated, aOriginal, aSource, aName) { // When aOriginal is truthy but has empty values for .line and .column, // it is most likely a programmer error. In this case we throw a very // specific error message to try to guide them the right way. // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") { throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' + "original.line and original.column are not numbers -- you probably meant to omit " + + "the original mapping entirely and only map the generated position. If so, pass " + + "null for the original mapping instead of an object with empty or null values." ); } - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) { // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal + + } else if (aGenerated && "line" in aGenerated && "column" in aGenerated + && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) { // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ + + } else { + throw new Error("Invalid mapping: " + JSON.stringify({ generated: aGenerated, source: aSource, original: aOriginal, name: aName })); } - }; + } -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { + /** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ + _serializeMappings() { + let previousGeneratedColumn = 0; + let previousGeneratedLine = 1; + let previousOriginalColumn = 0; + let previousOriginalLine = 0; + let previousName = 0; + let previousSource = 0; + let result = ""; + let next; + let mapping; + let nameIdx; + let sourceIdx; + + const mappings = this._mappings.toArray(); + for (let i = 0, len = mappings.length; i < len; i++) { mapping = mappings[i]; - next = '' + next = ""; if (mapping.generatedLine !== previousGeneratedLine) { previousGeneratedColumn = 0; while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; + next += ";"; previousGeneratedLine++; } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; + } else if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; } + next += ","; } next += base64VLQ.encode(mapping.generatedColumn @@ -372,30 +361,28 @@ SourceMapGenerator.prototype._serializeMappings = } return result; - }; + } -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { + _generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function(source) { if (!this._sourcesContents) { return null; } if (aSourceRoot != null) { source = util.relative(aSourceRoot, source); } - var key = util.toSetString(source); + const key = util.toSetString(source); return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null; }, this); - }; + } -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { + /** + * Externalize the source map. + */ + toJSON() { + const map = { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), @@ -412,14 +399,15 @@ SourceMapGenerator.prototype.toJSON = } return map; - }; + } -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { + /** + * Render the source map being generated to a string. + */ + toString() { return JSON.stringify(this.toJSON()); - }; + } +} +SourceMapGenerator.prototype._version = 3; exports.SourceMapGenerator = SourceMapGenerator; diff --git a/node_modules/source-map/lib/source-node.js b/node_modules/source-map/lib/source-node.js index 8bcdbe38..8a7a157e 100644 --- a/node_modules/source-map/lib/source-node.js +++ b/node_modules/source-map/lib/source-node.js @@ -5,20 +5,20 @@ * http://opensource.org/licenses/BSD-3-Clause */ -var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator; -var util = require('./util'); +const SourceMapGenerator = require("./source-map-generator").SourceMapGenerator; +const util = require("./util"); // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other // operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; +const REGEX_NEWLINE = /(\r?\n)/; // Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; +const NEWLINE_CODE = 10; // Private symbol for identifying `SourceNode`s when multiple versions of // the source-map library are loaded. This MUST NOT CHANGE across // versions! -var isSourceNode = "$$$isSourceNode$$$"; +const isSourceNode = "$$$isSourceNode$$$"; /** * SourceNodes provide a way to abstract over interpolating/concatenating @@ -32,41 +32,41 @@ var isSourceNode = "$$$isSourceNode$$$"; * generated JS, or other SourceNodes. * @param aName The original identifier. */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); -} +class SourceNode { + constructor(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); + } -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + /** + * Creates a SourceNode from generated code and a SourceMapConsumer. + * + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. + */ + static fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { // The SourceNode we want to fill with the generated code // and the SourceMap - var node = new SourceNode(); + const node = new SourceNode(); // All even indices of this array are one line of the generated code, // while all odd indices are the newlines between two adjacent lines // (since `REGEX_NEWLINE` captures its match). // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); + const remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + let remainingLinesIndex = 0; + const shiftNextLine = function() { + const lineContents = getNextLine(); // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; + const newLine = getNextLine() || ""; return lineContents + newLine; function getNextLine() { @@ -76,14 +76,15 @@ SourceNode.fromStringWithSourceMap = }; // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; + let lastGeneratedLine = 1, lastGeneratedColumn = 0; // The generate SourceNodes we need a code range. // To extract it current and last mapping is used. // Here we store the last mapping. - var lastMapping = null; + let lastMapping = null; + let nextLine; - aSourceMapConsumer.eachMapping(function (mapping) { + aSourceMapConsumer.eachMapping(function(mapping) { if (lastMapping !== null) { // We add the code from "lastMapping" to "mapping": // First check if there is a new line in between. @@ -97,8 +98,8 @@ SourceNode.fromStringWithSourceMap = // There is no new line in between. // Associate the code between "lastGeneratedColumn" and // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - + nextLine = remainingLines[remainingLinesIndex] || ""; + const code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn); remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn); @@ -117,7 +118,7 @@ SourceNode.fromStringWithSourceMap = lastGeneratedLine++; } if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; + nextLine = remainingLines[remainingLinesIndex] || ""; node.add(nextLine.substr(0, mapping.generatedColumn)); remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); lastGeneratedColumn = mapping.generatedColumn; @@ -135,8 +136,8 @@ SourceNode.fromStringWithSourceMap = } // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); + aSourceMapConsumer.sources.forEach(function(sourceFile) { + const content = aSourceMapConsumer.sourceContentFor(sourceFile); if (content != null) { if (aRelativePath != null) { sourceFile = util.join(aRelativePath, sourceFile); @@ -151,7 +152,7 @@ SourceNode.fromStringWithSourceMap = if (mapping === null || mapping.source === undefined) { node.add(code); } else { - var source = aRelativePath + const source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source; node.add(new SourceNode(mapping.originalLine, @@ -161,230 +162,182 @@ SourceNode.fromStringWithSourceMap = mapping.name)); } } - }; - -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); + + /** + * Add a chunk of generated JS to this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function(chunk) { + this.add(chunk); + }, this); + } else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); + } + } else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); } + return this; } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); + /** + * Add a chunk of generated JS to the beginning of this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (let i = aChunk.length - 1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); } + return this; } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { + /** + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. + * + * @param aFn The traversal function. + */ + walk(aFn) { + let chunk; + for (let i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); + } else if (chunk !== "") { aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); + line: this.line, + column: this.column, + name: this.name }); } } } -}; -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { + /** + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. + */ + join(aSep) { + let newChildren; + let i; + const len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len - 1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } newChildren.push(this.children[i]); - newChildren.push(aSep); + this.children = newChildren; } - newChildren.push(this.children[i]); - this.children = newChildren; + return this; } - return this; -}; -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); + /** + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. + */ + replaceRight(aPattern, aReplacement) { + const lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } else if (typeof lastChild === "string") { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } else { + this.children.push("".replace(aPattern, aReplacement)); + } + return this; } - return this; -}; -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + /** + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file + */ + setSourceContent(aSourceFile, aSourceContent) { this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; + } -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { + /** + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. + */ + walkSourceContents(aFn) { + for (let i = 0, len = this.children.length; i < len; i++) { if (this.children[i][isSourceNode]) { this.children[i].walkSourceContents(aFn); } } - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { + const sources = Object.keys(this.sourceContents); + for (let i = 0, len = sources.length; i < len; i++) { aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); } - }; + } -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; + /** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ + toString() { + let str = ""; + this.walk(function(chunk) { + str += chunk; + }); + return str; + } -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { + /** + * Returns the string representation of this source node along with a source + * map. + */ + toStringWithSourceMap(aArgs) { + const generated = { + code: "", + line: 1, + column: 0 + }; + const map = new SourceMapGenerator(aArgs); + let sourceMappingActive = false; + let lastOriginalSource = null; + let lastOriginalLine = null; + let lastOriginalColumn = null; + let lastOriginalName = null; + this.walk(function(chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if (lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { map.addMapping({ source: original.source, original: { @@ -398,16 +351,54 @@ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSou name: original.name }); } - } else { - generated.column++; + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column + } + }); + lastOriginalSource = null; + sourceMappingActive = false; } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); + for (let idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function(sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); - return { code: generated.code, map: map }; -}; + return { code: generated.code, map }; + } +} exports.SourceNode = SourceNode; diff --git a/node_modules/source-map/lib/util.js b/node_modules/source-map/lib/util.js index 3ca92e56..35bd93d6 100644 --- a/node_modules/source-map/lib/util.js +++ b/node_modules/source-map/lib/util.js @@ -20,17 +20,17 @@ function getArg(aArgs, aName, aDefaultValue) { return aArgs[aName]; } else if (arguments.length === 3) { return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); } + throw new Error('"' + aName + '" is a required argument.'); + } exports.getArg = getArg; -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; +const urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; +const dataUrlRegexp = /^data:.+\,.+$/; function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); + const match = aUrl.match(urlRegexp); if (!match) { return null; } @@ -45,19 +45,19 @@ function urlParse(aUrl) { exports.urlParse = urlParse; function urlGenerate(aParsedUrl) { - var url = ''; + let url = ""; if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; + url += aParsedUrl.scheme + ":"; } - url += '//'; + url += "//"; if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; + url += aParsedUrl.auth + "@"; } if (aParsedUrl.host) { url += aParsedUrl.host; } if (aParsedUrl.port) { - url += ":" + aParsedUrl.port + url += ":" + aParsedUrl.port; } if (aParsedUrl.path) { url += aParsedUrl.path; @@ -66,6 +66,43 @@ function urlGenerate(aParsedUrl) { } exports.urlGenerate = urlGenerate; +const MAX_CACHED_INPUTS = 32; + +/** + * Takes some function `f(input) -> result` and returns a memoized version of + * `f`. + * + * We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The + * memoization is a dumb-simple, linear least-recently-used cache. + */ +function lruMemoize(f) { + const cache = []; + + return function(input) { + for (let i = 0; i < cache.length; i++) { + if (cache[i].input === input) { + const temp = cache[0]; + cache[0] = cache[i]; + cache[i] = temp; + return cache[0].result; + } + } + + const result = f(input); + + cache.unshift({ + input, + result, + }); + + if (cache.length > MAX_CACHED_INPUTS) { + cache.pop(); + } + + return result; + }; +} + /** * Normalizes a path, or the path portion of a URL: * @@ -77,26 +114,45 @@ exports.urlGenerate = urlGenerate; * * @param aPath The path or url to normalize. */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); +const normalize = lruMemoize(function normalize(aPath) { + let path = aPath; + const url = urlParse(aPath); if (url) { if (!url.path) { return aPath; } path = url.path; } - var isAbsolute = exports.isAbsolute(path); + const isAbsolute = exports.isAbsolute(path); + + // Split the path into parts between `/` characters. This is much faster than + // using `.split(/\/+/g)`. + const parts = []; + let start = 0; + let i = 0; + while (true) { + start = i; + i = path.indexOf("/", start); + if (i === -1) { + parts.push(path.slice(start)); + break; + } else { + parts.push(path.slice(start, i)); + while (i < path.length && path[i] === "/") { + i++; + } + } + } - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { + let up = 0; + for (i = parts.length - 1; i >= 0; i--) { + const part = parts[i]; + if (part === ".") { parts.splice(i, 1); - } else if (part === '..') { + } else if (part === "..") { up++; } else if (up > 0) { - if (part === '') { + if (part === "") { // The first part is blank if the path is absolute. Trying to go // above the root is a no-op. Therefore we can remove all '..' parts // directly after the root. @@ -108,10 +164,10 @@ function normalize(aPath) { } } } - path = parts.join('/'); + path = parts.join("/"); - if (path === '') { - path = isAbsolute ? '/' : '.'; + if (path === "") { + path = isAbsolute ? "/" : "."; } if (url) { @@ -119,7 +175,7 @@ function normalize(aPath) { return urlGenerate(url); } return path; -} +}); exports.normalize = normalize; /** @@ -145,10 +201,10 @@ function join(aRoot, aPath) { if (aPath === "") { aPath = "."; } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); + const aPathUrl = urlParse(aPath); + const aRootUrl = urlParse(aRoot); if (aRootUrl) { - aRoot = aRootUrl.path || '/'; + aRoot = aRootUrl.path || "/"; } // `join(foo, '//www.example.org')` @@ -169,9 +225,9 @@ function join(aRoot, aPath) { return urlGenerate(aRootUrl); } - var joined = aPath.charAt(0) === '/' + const joined = aPath.charAt(0) === "/" ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); + : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath); if (aRootUrl) { aRootUrl.path = joined; @@ -181,8 +237,8 @@ function join(aRoot, aPath) { } exports.join = join; -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); +exports.isAbsolute = function(aPath) { + return aPath.charAt(0) === "/" || urlRegexp.test(aPath); }; /** @@ -196,15 +252,15 @@ function relative(aRoot, aPath) { aRoot = "."; } - aRoot = aRoot.replace(/\/$/, ''); + aRoot = aRoot.replace(/\/$/, ""); // It is possible for the path to be above the root. In this case, simply // checking whether the root is a prefix of the path won't work. Instead, we // need to remove components from the root one by one, until either we find // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); + let level = 0; + while (aPath.indexOf(aRoot + "/") !== 0) { + const index = aRoot.lastIndexOf("/"); if (index < 0) { return aPath; } @@ -225,12 +281,12 @@ function relative(aRoot, aPath) { } exports.relative = relative; -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); +const supportsNullProto = (function() { + const obj = Object.create(null); + return !("__proto__" in obj); }()); -function identity (s) { +function identity(s) { return s; } @@ -245,7 +301,7 @@ function identity (s) { */ function toSetString(aStr) { if (isProtoString(aStr)) { - return '$' + aStr; + return "$" + aStr; } return aStr; @@ -266,12 +322,13 @@ function isProtoString(s) { return false; } - var length = s.length; + const length = s.length; if (length < 9 /* "__proto__".length */) { return false; } + /* eslint-disable no-multi-spaces */ if (s.charCodeAt(length - 1) !== 95 /* '_' */ || s.charCodeAt(length - 2) !== 95 /* '_' */ || s.charCodeAt(length - 3) !== 111 /* 'o' */ || @@ -283,8 +340,9 @@ function isProtoString(s) { s.charCodeAt(length - 9) !== 95 /* '_' */) { return false; } + /* eslint-enable no-multi-spaces */ - for (var i = length - 10; i >= 0; i--) { + for (let i = length - 10; i >= 0; i--) { if (s.charCodeAt(i) !== 36 /* '$' */) { return false; } @@ -302,7 +360,7 @@ function isProtoString(s) { * stubbed out mapping. */ function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); + let cmp = strcmp(mappingA.source, mappingB.source); if (cmp !== 0) { return cmp; } @@ -341,7 +399,7 @@ exports.compareByOriginalPositions = compareByOriginalPositions; * mapping with a stubbed out mapping. */ function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; + let cmp = mappingA.generatedLine - mappingB.generatedLine; if (cmp !== 0) { return cmp; } @@ -395,7 +453,7 @@ function strcmp(aStr1, aStr2) { * the generated positions are compared. */ function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; + let cmp = mappingA.generatedLine - mappingB.generatedLine; if (cmp !== 0) { return cmp; } @@ -430,7 +488,7 @@ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflate * JSON. */ function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, "")); } exports.parseSourceMapInput = parseSourceMapInput; @@ -439,12 +497,12 @@ exports.parseSourceMapInput = parseSourceMapInput; * URL, and the source map's URL. */ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; + sourceURL = sourceURL || ""; if (sourceRoot) { // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; + if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") { + sourceRoot += "/"; } // The spec says: // Line 4: An optional source root, useful for relocating source @@ -469,13 +527,13 @@ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { // “sourceRoot”, the sources are resolved relative to the // SourceMap (like resolving script src in a html document). if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); + const parsed = urlParse(sourceMapURL); if (!parsed) { throw new Error("sourceMapURL could not be parsed"); } if (parsed.path) { // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); + const index = parsed.path.lastIndexOf("/"); if (index >= 0) { parsed.path = parsed.path.substring(0, index + 1); } diff --git a/node_modules/source-map/package.json b/node_modules/source-map/package.json index 24663417..1d67accb 100644 --- a/node_modules/source-map/package.json +++ b/node_modules/source-map/package.json @@ -1,7 +1,7 @@ { "name": "source-map", "description": "Generates and consumes source maps", - "version": "0.6.1", + "version": "0.7.4", "homepage": "https://github.com/mozilla/source-map", "author": "Nick Fitzgerald ", "contributors": [ @@ -47,27 +47,45 @@ "url": "http://github.com/mozilla/source-map.git" }, "main": "./source-map.js", + "types": "./source-map.d.ts", "files": [ "source-map.js", "source-map.d.ts", "lib/", - "dist/source-map.debug.js", - "dist/source-map.js", - "dist/source-map.min.js", - "dist/source-map.min.js.map" + "dist/source-map.js" ], "engines": { - "node": ">=0.10.0" + "node": ">= 8" }, "license": "BSD-3-Clause", "scripts": { - "test": "npm run build && node test/run-tests.js", + "lint": "eslint *.js lib/ test/", + "prebuild": "npm run lint", "build": "webpack --color", + "pretest": "npm run build", + "test": "node test/run-tests.js", + "precoverage": "npm run build", + "coverage": "nyc node test/run-tests.js", + "setup": "mkdir -p coverage && cp -n .waiting.html coverage/index.html || true", + "dev:live": "live-server --port=4103 --ignorePattern='(js|css|png)$' coverage", + "dev:watch": "watch 'npm run coverage' lib/ test/", + "predev": "npm run setup", + "dev": "npm-run-all -p --silent dev:*", + "clean": "rm -rf coverage .nyc_output", "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" }, "devDependencies": { - "doctoc": "^0.15.0", - "webpack": "^1.12.0" + "doctoc": "^1.3.1", + "eslint": "^4.19.1", + "live-server": "^1.2.0", + "npm-run-all": "^4.1.2", + "nyc": "^11.7.1", + "watch": "^1.0.2", + "webpack": "^4.9.1", + "webpack-cli": "^3.1" + }, + "nyc": { + "reporter": "html" }, "typings": "source-map" } diff --git a/node_modules/source-map/source-map.d.ts b/node_modules/source-map/source-map.d.ts index 8f972b0c..24593915 100644 --- a/node_modules/source-map/source-map.d.ts +++ b/node_modules/source-map/source-map.d.ts @@ -1,39 +1,62 @@ +// Type definitions for source-map 0.7 +// Project: https://github.com/mozilla/source-map +// Definitions by: Morten Houston Ludvigsen , +// Ron Buckton , +// John Vilk +// Definitions: https://github.com/mozilla/source-map +export type SourceMapUrl = string; + export interface StartOfSourceMap { file?: string; sourceRoot?: string; + skipValidation?: boolean; } -export interface RawSourceMap extends StartOfSourceMap { - version: string; +export interface RawSourceMap { + version: number; sources: string[]; names: string[]; + sourceRoot?: string; sourcesContent?: string[]; mappings: string; + file: string; } -export interface Position { - line: number; - column: number; +export interface RawIndexMap extends StartOfSourceMap { + version: number; + sections: RawSection[]; } -export interface LineRange extends Position { - lastColumn: number; +export interface RawSection { + offset: Position; + map: RawSourceMap; } -export interface FindPosition extends Position { - // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND - bias?: number; +export interface Position { + line: number; + column: number; } -export interface SourceFindPosition extends FindPosition { - source: string; +export interface NullablePosition { + line: number | null; + column: number | null; + lastColumn: number | null; } -export interface MappedPosition extends Position { +export interface MappedPosition { source: string; + line: number; + column: number; name?: string; } +export interface NullableMappedPosition { + source: string | null; + line: number | null; + column: number | null; + name: string | null; +} + export interface MappingItem { source: string; generatedLine: number; @@ -43,56 +66,304 @@ export interface MappingItem { name: string; } -export class SourceMapConsumer { - static GENERATED_ORDER: number; - static ORIGINAL_ORDER: number; +export interface Mapping { + generated: Position; + original: Position; + source: string; + name?: string; +} - static GREATEST_LOWER_BOUND: number; - static LEAST_UPPER_BOUND: number; +export interface CodeWithSourceMap { + code: string; + map: SourceMapGenerator; +} - constructor(rawSourceMap: RawSourceMap); +export interface SourceMapConsumer { + /** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ computeColumnSpans(): void; - originalPositionFor(generatedPosition: FindPosition): MappedPosition; - generatedPositionFor(originalPosition: SourceFindPosition): LineRange; - allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. + * - column: The column number in the generated source. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. + * - column: The column number in the original source, or null. + * - name: The original identifier, or null. + */ + originalPositionFor(generatedPosition: Position & { bias?: number }): NullableMappedPosition; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. + * - column: The column number in the original source. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. + * - column: The column number in the generated source, or null. + */ + generatedPositionFor(originalPosition: MappedPosition & { bias?: number }): NullablePosition; + + /** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. + * - column: Optional. the column number in the original source. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. + * - column: The column number in the generated source, or null. + */ + allGeneratedPositionsFor(originalPosition: MappedPosition): NullablePosition[]; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ hasContentsOfAllSources(): boolean; - sourceContentFor(source: string, returnNullOnMissing?: boolean): string; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + sourceContentFor(source: string, returnNullOnMissing?: boolean): string | null; + + /** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param callback + * The function that is called with each mapping. + * @param context + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param order + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; + /** + * Free this source map consumer's associated wasm data that is manually-managed. + * Alternatively, you can use SourceMapConsumer.with to avoid needing to remember to call destroy. + */ + destroy(): void; } -export interface Mapping { - generated: Position; - original: Position; - source: string; - name?: string; +export interface SourceMapConsumerConstructor { + prototype: SourceMapConsumer; + + GENERATED_ORDER: number; + ORIGINAL_ORDER: number; + GREATEST_LOWER_BOUND: number; + LEAST_UPPER_BOUND: number; + + new (rawSourceMap: RawSourceMap, sourceMapUrl?: SourceMapUrl): Promise; + new (rawSourceMap: RawIndexMap, sourceMapUrl?: SourceMapUrl): Promise; + new (rawSourceMap: RawSourceMap | RawIndexMap | string, sourceMapUrl?: SourceMapUrl): Promise; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param sourceMap + * The source map that will be consumed. + */ + fromSourceMap(sourceMap: SourceMapGenerator, sourceMapUrl?: SourceMapUrl): Promise; + + /** + * Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl` + * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async + * function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait + * for `f` to complete, call `destroy` on the consumer, and return `f`'s return + * value. + * + * You must not use the consumer after `f` completes! + * + * By using `with`, you do not have to remember to manually call `destroy` on + * the consumer, since it will be called automatically once `f` completes. + * + * ```js + * const xSquared = await SourceMapConsumer.with( + * myRawSourceMap, + * null, + * async function (consumer) { + * // Use `consumer` inside here and don't worry about remembering + * // to call `destroy`. + * + * const x = await whatever(consumer); + * return x * x; + * } + * ); + * + * // You may not use that `consumer` anymore out here; it has + * // been destroyed. But you can use `xSquared`. + * console.log(xSquared); + * ``` + */ + with(rawSourceMap: RawSourceMap | RawIndexMap | string, sourceMapUrl: SourceMapUrl | null | undefined, callback: (consumer: BasicSourceMapConsumer | IndexedSourceMapConsumer) => Promise | T): Promise; +} + +export const SourceMapConsumer: SourceMapConsumerConstructor; + +export interface BasicSourceMapConsumer extends SourceMapConsumer { + file: string; + sourceRoot: string; + sources: string[]; + sourcesContent: string[]; +} + +export interface BasicSourceMapConsumerConstructor { + prototype: BasicSourceMapConsumer; + + new (rawSourceMap: RawSourceMap | string): Promise; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param sourceMap + * The source map that will be consumed. + */ + fromSourceMap(sourceMap: SourceMapGenerator): Promise; +} + +export const BasicSourceMapConsumer: BasicSourceMapConsumerConstructor; + +export interface IndexedSourceMapConsumer extends SourceMapConsumer { + sources: string[]; } +export interface IndexedSourceMapConsumerConstructor { + prototype: IndexedSourceMapConsumer; + + new (rawSourceMap: RawIndexMap | string): Promise; +} + +export const IndexedSourceMapConsumer: IndexedSourceMapConsumerConstructor; + export class SourceMapGenerator { constructor(startOfSourceMap?: StartOfSourceMap); + + /** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param sourceMapConsumer The SourceMap. + */ static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator; + + /** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ addMapping(mapping: Mapping): void; + + /** + * Set the source content for a source file. + */ setSourceContent(sourceFile: string, sourceContent: string): void; + + /** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param sourceMapConsumer The source map to be applied. + * @param sourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param sourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; + toString(): string; -} -export interface CodeWithSourceMap { - code: string; - map: SourceMapGenerator; + toJSON(): RawSourceMap; } export class SourceNode { + children: SourceNode[]; + sourceContents: any; + line: number; + column: number; + source: string; + name: string; + constructor(); - constructor(line: number, column: number, source: string); - constructor(line: number, column: number, source: string, chunk?: string, name?: string); - static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode; - add(chunk: string): void; - prepend(chunk: string): void; + constructor( + line: number | null, + column: number | null, + source: string | null, + chunks?: Array<(string | SourceNode)> | SourceNode | string, + name?: string + ); + + static fromStringWithSourceMap( + code: string, + sourceMapConsumer: SourceMapConsumer, + relativePath?: string + ): SourceNode; + + add(chunk: Array<(string | SourceNode)> | SourceNode | string): SourceNode; + + prepend(chunk: Array<(string | SourceNode)> | SourceNode | string): SourceNode; + setSourceContent(sourceFile: string, sourceContent: string): void; + walk(fn: (chunk: string, mapping: MappedPosition) => void): void; + walkSourceContents(fn: (file: string, content: string) => void): void; + join(sep: string): SourceNode; + replaceRight(pattern: string, replacement: string): SourceNode; + toString(): string; + toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; } diff --git a/node_modules/source-map/source-map.js b/node_modules/source-map/source-map.js index bc88fe82..a84abf1e 100644 --- a/node_modules/source-map/source-map.js +++ b/node_modules/source-map/source-map.js @@ -3,6 +3,6 @@ * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ -exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator; -exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; -exports.SourceNode = require('./lib/source-node').SourceNode; +exports.SourceMapGenerator = require("./lib/source-map-generator").SourceMapGenerator; +exports.SourceMapConsumer = require("./lib/source-map-consumer").SourceMapConsumer; +exports.SourceNode = require("./lib/source-node").SourceNode; diff --git a/node_modules/spdy-transport/.DS_Store b/node_modules/spdy-transport/.DS_Store deleted file mode 100644 index 6731fbc0..00000000 Binary files a/node_modules/spdy-transport/.DS_Store and /dev/null differ diff --git a/node_modules/spdy-transport/node_modules/.DS_Store b/node_modules/spdy-transport/node_modules/.DS_Store deleted file mode 100644 index cc592735..00000000 Binary files a/node_modules/spdy-transport/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/spdy/.DS_Store b/node_modules/spdy/.DS_Store deleted file mode 100644 index b965fed7..00000000 Binary files a/node_modules/spdy/.DS_Store and /dev/null differ diff --git a/node_modules/spdy/node_modules/.DS_Store b/node_modules/spdy/node_modules/.DS_Store deleted file mode 100644 index b2d07da7..00000000 Binary files a/node_modules/spdy/node_modules/.DS_Store and /dev/null differ diff --git a/node_modules/supports-color/browser.js b/node_modules/supports-color/browser.js index 62afa3a7..f097aecd 100644 --- a/node_modules/supports-color/browser.js +++ b/node_modules/supports-color/browser.js @@ -1,5 +1,24 @@ +/* eslint-env browser */ 'use strict'; + +function getChromeVersion() { + const matches = /(Chrome|Chromium)\/(?\d+)\./.exec(navigator.userAgent); + + if (!matches) { + return; + } + + return Number.parseInt(matches.groups.chromeVersion, 10); +} + +const colorSupport = getChromeVersion() >= 69 ? { + level: 1, + hasBasic: true, + has256: false, + has16m: false +} : false; + module.exports = { - stdout: false, - stderr: false + stdout: colorSupport, + stderr: colorSupport }; diff --git a/node_modules/supports-color/index.js b/node_modules/supports-color/index.js index 6fada390..2dd2fcb0 100644 --- a/node_modules/supports-color/index.js +++ b/node_modules/supports-color/index.js @@ -5,26 +5,30 @@ const hasFlag = require('has-flag'); const {env} = process; -let forceColor; +let flagForceColor; if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) { - forceColor = 0; + flagForceColor = 0; } else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) { - forceColor = 1; + flagForceColor = 1; } -if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - forceColor = 1; - } else if (env.FORCE_COLOR === 'false') { - forceColor = 0; - } else { - forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); +function envForceColor() { + if ('FORCE_COLOR' in env) { + if (env.FORCE_COLOR === 'true') { + return 1; + } + + if (env.FORCE_COLOR === 'false') { + return 0; + } + + return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); } } @@ -41,19 +45,28 @@ function translateLevel(level) { }; } -function supportsColor(haveStream, streamIsTTY) { +function supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) { + const noFlagForceColor = envForceColor(); + if (noFlagForceColor !== undefined) { + flagForceColor = noFlagForceColor; + } + + const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; + if (forceColor === 0) { return 0; } - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } + if (sniffFlags) { + if (hasFlag('color=16m') || + hasFlag('color=full') || + hasFlag('color=truecolor')) { + return 3; + } - if (hasFlag('color=256')) { - return 2; + if (hasFlag('color=256')) { + return 2; + } } if (haveStream && !streamIsTTY && forceColor === undefined) { @@ -81,7 +94,7 @@ function supportsColor(haveStream, streamIsTTY) { } if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { + if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { return 1; } @@ -97,7 +110,7 @@ function supportsColor(haveStream, streamIsTTY) { } if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); + const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); switch (env.TERM_PROGRAM) { case 'iTerm.app': @@ -123,13 +136,17 @@ function supportsColor(haveStream, streamIsTTY) { return min; } -function getSupportLevel(stream) { - const level = supportsColor(stream, stream && stream.isTTY); +function getSupportLevel(stream, options = {}) { + const level = supportsColor(stream, { + streamIsTTY: stream && stream.isTTY, + ...options + }); + return translateLevel(level); } module.exports = { supportsColor: getSupportLevel, - stdout: translateLevel(supportsColor(true, tty.isatty(1))), - stderr: translateLevel(supportsColor(true, tty.isatty(2))) + stdout: getSupportLevel({isTTY: tty.isatty(1)}), + stderr: getSupportLevel({isTTY: tty.isatty(2)}) }; diff --git a/node_modules/supports-color/license b/node_modules/supports-color/license index e7af2f77..fa7ceba3 100644 --- a/node_modules/supports-color/license +++ b/node_modules/supports-color/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/supports-color/package.json b/node_modules/supports-color/package.json index f7182edc..a97bf2a1 100644 --- a/node_modules/supports-color/package.json +++ b/node_modules/supports-color/package.json @@ -1,16 +1,17 @@ { "name": "supports-color", - "version": "7.2.0", + "version": "8.1.1", "description": "Detect whether a terminal supports color", "license": "MIT", "repository": "chalk/supports-color", + "funding": "https://github.com/chalk/supports-color?sponsor=1", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "test": "xo && ava" @@ -19,6 +20,10 @@ "index.js", "browser.js" ], + "exports": { + "node": "./index.js", + "default": "./browser.js" + }, "keywords": [ "color", "colour", @@ -45,9 +50,9 @@ "has-flag": "^4.0.0" }, "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" + "ava": "^2.4.0", + "import-fresh": "^3.2.2", + "xo": "^0.35.0" }, "browser": "browser.js" } diff --git a/node_modules/supports-color/readme.md b/node_modules/supports-color/readme.md index 36542285..3eedd1ca 100644 --- a/node_modules/supports-color/readme.md +++ b/node_modules/supports-color/readme.md @@ -1,15 +1,13 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) +# supports-color > Detect whether a terminal supports color - ## Install ``` $ npm install supports-color ``` - ## Usage ```js @@ -28,7 +26,6 @@ if (supportsColor.stderr.has16m) { } ``` - ## API Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported. @@ -39,6 +36,13 @@ The `stdout`/`stderr` objects specifies a level of support for color through a ` - `.level = 2` and `.has256 = true`: 256 color support - `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) +### `require('supports-color').supportsColor(stream, options?)` + +Additionally, `supports-color` exposes the `.supportsColor()` function that takes an arbitrary write stream (e.g. `process.stdout`) and an optional options object to (re-)evaluate color support for an arbitrary stream. + +For example, `require('supports-color').stdout` is the equivalent of `require('supports-color').supportsColor(process.stdout)`. + +The options object supports a single boolean property `sniffFlags`. By default it is `true`, which instructs `supportsColor()` to sniff `process.argv` for the multitude of `--color` flags (see _Info_ below). If `false`, then `process.argv` is not considered when determining color support. ## Info @@ -48,19 +52,16 @@ For situations where using `--color` is not possible, use the environment variab Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - ## Related - [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - ## Maintainers - [Sindre Sorhus](https://github.com/sindresorhus) - [Josh Junon](https://github.com/qix-) - ---
diff --git a/node_modules/supports-preserve-symlinks-flag/.DS_Store b/node_modules/supports-preserve-symlinks-flag/.DS_Store deleted file mode 100644 index b4c0110e..00000000 Binary files a/node_modules/supports-preserve-symlinks-flag/.DS_Store and /dev/null differ diff --git a/node_modules/svgo/node_modules/commander/CHANGELOG.md b/node_modules/svgo/node_modules/commander/CHANGELOG.md deleted file mode 100644 index 0b55881b..00000000 --- a/node_modules/svgo/node_modules/commander/CHANGELOG.md +++ /dev/null @@ -1,440 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). (Format adopted after v3.0.0.) - - - - -## [7.2.0] (2021-03-26) - -### Added - -- TypeScript typing for `parent` property on `Command` ([#1475]) -- TypeScript typing for `.attributeName()` on `Option` ([#1483]) -- support information in package ([#1477]) - -### Changed - -- improvements to error messages, README, and tests -- update dependencies - -## [7.1.0] (2021-02-15) - -### Added - -- support for named imports from ECMAScript modules ([#1440]) -- add `.cjs` to list of expected script file extensions ([#1449]) -- allow using option choices and variadic together ([#1454]) - -### Fixed - -- replace use of deprecated `process.mainModule` ([#1448]) -- regression for legacy `command('*')` and call when command line includes options ([#1464]) -- regression for `on('command:*', ...)` and call when command line includes unknown options ([#1464]) -- display best error for combination of unknown command and unknown option (i.e. unknown command) ([#1464]) - -### Changed - -- make TypeScript typings tests stricter ([#1453]) -- improvements to README and tests - -## [7.0.0] (2021-01-15) - -### Added - -- `.enablePositionalOptions()` to let program and subcommand reuse same option ([#1427]) -- `.passThroughOptions()` to pass options through to other programs without needing `--` ([#1427]) -- `.allowExcessArguments(false)` to show an error message if there are too many command-arguments on command line for the action handler ([#1409]) -- `.configureOutput()` to modify use of stdout and stderr or customise display of errors ([#1387]) -- use `.addHelpText()` to add text before or after the built-in help, for just current command or also for all subcommands ([#1296]) -- enhance Option class ([#1331]) - - allow hiding options from help - - allow restricting option arguments to a list of choices - - allow setting how default value is shown in help -- `.createOption()` to support subclassing of automatically created options (like `.createCommand()`) ([#1380]) -- refactor the code generating the help into a separate public Help class ([#1365]) - - support sorting subcommands and options in help - - support specifying wrap width (columns) - - allow subclassing Help class - - allow configuring Help class without subclassing - -### Changed - -- *Breaking:* options are stored safely by default, not as properties on the command ([#1409]) - - this especially affects accessing options on program, use `program.opts()` - - revert behaviour with `.storeOptionsAsProperties()` -- *Breaking:* action handlers are passed options and command separately ([#1409]) -- deprecated callback parameter to `.help()` and `.outputHelp()` (removed from README) ([#1296]) -- *Breaking:* errors now displayed using `process.stderr.write()` instead of `console.error()` -- deprecate `.on('--help')` (removed from README) ([#1296]) -- initialise the command description to empty string (previously undefined) ([#1365]) -- document and annotate deprecated routines ([#1349]) - -### Fixed - -- wrapping bugs in help ([#1365]) - - first line of command description was wrapping two characters early - - pad width calculation was not including help option and help command - - pad width calculation was including hidden options and commands -- improve backwards compatibility for custom command event listeners ([#1403]) - -### Deleted - -- *Breaking:* `.passCommandToAction()` ([#1409]) - - no longer needed as action handler is passed options and command -- *Breaking:* "extra arguments" parameter to action handler ([#1409]) - - if being used to detect excess arguments, there is now an error available by setting `.allowExcessArguments(false)` - -### Migration Tips - -The biggest change is the parsed option values. Previously the options were stored by default as properties on the command object, and now the options are stored separately. - -If you wish to restore the old behaviour and get running quickly you can call `.storeOptionsAsProperties()`. -To allow you to move to the new code patterns incrementally, the action handler will be passed the command _twice_, -to match the new "options" and "command" parameters (see below). - -**program options** - -Use the `.opts()` method to access the options. This is available on any command but is used most with the program. - -```js -program.option('-d, --debug'); -program.parse(); -// Old code before Commander 7 -if (program.debug) console.log(`Program name is ${program.name()}`); -``` - -```js -// New code -const options = program.opts(); -if (options.debug) console.log(`Program name is ${program.name()}`); -``` - -**action handler** - -The action handler gets passed a parameter for each command-argument you declared. Previously by default the next parameter was the command object with the options as properties. Now the next two parameters are instead the options and the command. If you -only accessed the options there may be no code changes required. - -```js -program - .command('compress ') - .option('-t, --trace') - // Old code before Commander 7 - .action((filename, cmd)) => { - if (cmd.trace) console.log(`Command name is ${cmd.name()}`); - }); -``` - -```js - // New code - .action((filename, options, command)) => { - if (options.trace) console.log(`Command name is ${command.name()}`); - }); -``` - -If you already set `.storeOptionsAsProperties(false)` you may still need to adjust your code. - -```js -program - .command('compress ') - .storeOptionsAsProperties(false) - .option('-t, --trace') - // Old code before Commander 7 - .action((filename, command)) => { - if (command.opts().trace) console.log(`Command name is ${command.name()}`); - }); -``` - -```js - // New code - .action((filename, options, command)) => { - if (command.opts().trace) console.log(`Command name is ${command.name()}`); - }); -``` - -## [7.0.0-2] (2020-12-14) - -(Released in 7.0.0) - -## [7.0.0-1] (2020-11-21) - -(Released in 7.0.0) - -## [7.0.0-0] (2020-10-25) - -(Released in 7.0.0) - -## [6.2.1] (2020-12-13) - -### Fixed - -- some tests failed if directory path included a space ([1390]) - -## [6.2.0] (2020-10-25) - -### Added - -- added 'tsx' file extension for stand-alone executable subcommands ([#1368]) -- documented second parameter to `.description()` to describe command arguments ([#1353]) -- documentation of special cases with options taking varying numbers of option-arguments ([#1332]) -- documentation for terminology ([#1361]) - -### Fixed - -- add missing TypeScript definition for `.addHelpCommand()' ([#1375]) -- removed blank line after "Arguments:" in help, to match "Options:" and "Commands:" ([#1360]) - -### Changed - -- update dependencies - -## [6.1.0] (2020-08-28) - -### Added - -- include URL to relevant section of README for error for potential conflict between Command properties and option values ([#1306]) -- `.combineFlagAndOptionalValue(false)` to ease upgrade path from older versions of Commander ([#1326]) -- allow disabling the built-in help option using `.helpOption(false)` ([#1325]) -- allow just some arguments in `argumentDescription` to `.description()` ([#1323]) - -### Changed - -- tidy async test and remove lint override ([#1312]) - -### Fixed - -- executable subcommand launching when script path not known ([#1322]) - -## [6.0.0] (2020-07-21) - -### Added - -- add support for variadic options ([#1250]) -- allow options to be added with just a short flag ([#1256]) - - *Breaking* the option property has same case as flag. e.g. flag `-n` accessed as `opts().n` (previously uppercase) -- *Breaking* throw an error if there might be a clash between option name and a Command property, with advice on how to resolve ([#1275]) - -### Fixed - -- Options which contain -no- in the middle of the option flag should not be treated as negatable. ([#1301]) - -## [6.0.0-0] (2020-06-20) - -(Released in 6.0.0) - -## [5.1.0] (2020-04-25) - -### Added - -- support for multiple command aliases, the first of which is shown in the auto-generated help ([#531], [#1236]) -- configuration support in `addCommand()` for `hidden` and `isDefault` ([#1232]) - -### Fixed - -- omit masked help flags from the displayed help ([#645], [#1247]) -- remove old short help flag when change help flags using `helpOption` ([#1248]) - -### Changed - -- remove use of `arguments` to improve auto-generated help in editors ([#1235]) -- rename `.command()` configuration `noHelp` to `hidden` (but not remove old support) ([#1232]) -- improvements to documentation -- update dependencies -- update tested versions of node -- eliminate lint errors in TypeScript ([#1208]) - -## [5.0.0] (2020-03-14) - -### Added - -* support for nested commands with action-handlers ([#1] [#764] [#1149]) -* `.addCommand()` for adding a separately configured command ([#764] [#1149]) -* allow a non-executable to be set as the default command ([#742] [#1149]) -* implicit help command when there are subcommands (previously only if executables) ([#1149]) -* customise implicit help command with `.addHelpCommand()` ([#1149]) -* display error message for unknown subcommand, by default ([#432] [#1088] [#1149]) -* display help for missing subcommand, by default ([#1088] [#1149]) -* combined short options as single argument may include boolean flags and value flag and value (e.g. `-a -b -p 80` can be written as `-abp80`) ([#1145]) -* `.parseOption()` includes short flag and long flag expansions ([#1145]) -* `.helpInformation()` returns help text as a string, previously a private routine ([#1169]) -* `.parse()` implicitly uses `process.argv` if arguments not specified ([#1172]) -* optionally specify where `.parse()` arguments "from", if not following node conventions ([#512] [#1172]) -* suggest help option along with unknown command error ([#1179]) -* TypeScript definition for `commands` property of `Command` ([#1184]) -* export `program` property ([#1195]) -* `createCommand` factory method to simplify subclassing ([#1191]) - -### Fixed - -* preserve argument order in subcommands ([#508] [#962] [#1138]) -* do not emit `command:*` for executable subcommands ([#809] [#1149]) -* action handler called whether or not there are non-option arguments ([#1062] [#1149]) -* combining option short flag and value in single argument now works for subcommands ([#1145]) -* only add implicit help command when it will not conflict with other uses of argument ([#1153] [#1149]) -* implicit help command works with command aliases ([#948] [#1149]) -* options are validated whether or not there is an action handler ([#1149]) - -### Changed - -* *Breaking* `.args` contains command arguments with just recognised options removed ([#1032] [#1138]) -* *Breaking* display error if required argument for command is missing ([#995] [#1149]) -* tighten TypeScript definition of custom option processing function passed to `.option()` ([#1119]) -* *Breaking* `.allowUnknownOption()` ([#802] [#1138]) - * unknown options included in arguments passed to command action handler - * unknown options included in `.args` -* only recognised option short flags and long flags are expanded (e.g. `-ab` or `--foo=bar`) ([#1145]) -* *Breaking* `.parseOptions()` ([#1138]) - * `args` in returned result renamed `operands` and does not include anything after first unknown option - * `unknown` in returned result has arguments after first unknown option including operands, not just options and values -* *Breaking* `.on('command:*', callback)` and other command events passed (changed) results from `.parseOptions`, i.e. operands and unknown ([#1138]) -* refactor Option from prototype to class ([#1133]) -* refactor Command from prototype to class ([#1159]) -* changes to error handling ([#1165]) - * throw for author error, not just display message - * preflight for variadic error - * add tips to missing subcommand executable -* TypeScript fluent return types changed to be more subclass friendly, return `this` rather than `Command` ([#1180]) -* `.parseAsync` returns `Promise` to be consistent with `.parse()` ([#1180]) -* update dependencies - -### Removed - -* removed EventEmitter from TypeScript definition for Command, eliminating implicit peer dependency on `@types/node` ([#1146]) -* removed private function `normalize` (the functionality has been integrated into `parseOptions`) ([#1145]) -* `parseExpectedArgs` is now private ([#1149]) - -### Migration Tips - -If you use `.on('command:*')` or more complicated tests to detect an unrecognised subcommand, you may be able to delete the code and rely on the default behaviour. - -If you use `program.args` or more complicated tests to detect a missing subcommand, you may be able to delete the code and rely on the default behaviour. - -If you use `.command('*')` to add a default command, you may be be able to switch to `isDefault:true` with a named command. - -If you want to continue combining short options with optional values as though they were boolean flags, set `combineFlagAndOptionalValue(false)` -to expand `-fb` to `-f -b` rather than `-f b`. - -## [5.0.0-4] (2020-03-03) - -(Released in 5.0.0) - -## [5.0.0-3] (2020-02-20) - -(Released in 5.0.0) - -## [5.0.0-2] (2020-02-10) - -(Released in 5.0.0) - -## [5.0.0-1] (2020-02-08) - -(Released in 5.0.0) - -## [5.0.0-0] (2020-02-02) - -(Released in 5.0.0) - -## Older versions - -* [4.x](./changelogs/CHANGELOG-4.md) -* [3.x](./changelogs/CHANGELOG-3.md) -* [2.x](./changelogs/CHANGELOG-2.md) -* [1.x](./changelogs/CHANGELOG-1.md) -* [0.x](./changelogs/CHANGELOG-0.md) - -[#1]: https://github.com/tj/commander.js/issues/1 -[#432]: https://github.com/tj/commander.js/issues/432 -[#508]: https://github.com/tj/commander.js/issues/508 -[#512]: https://github.com/tj/commander.js/issues/512 -[#531]: https://github.com/tj/commander.js/issues/531 -[#645]: https://github.com/tj/commander.js/issues/645 -[#742]: https://github.com/tj/commander.js/issues/742 -[#764]: https://github.com/tj/commander.js/issues/764 -[#802]: https://github.com/tj/commander.js/issues/802 -[#809]: https://github.com/tj/commander.js/issues/809 -[#948]: https://github.com/tj/commander.js/issues/948 -[#962]: https://github.com/tj/commander.js/issues/962 -[#995]: https://github.com/tj/commander.js/issues/995 -[#1032]: https://github.com/tj/commander.js/issues/1032 -[#1062]: https://github.com/tj/commander.js/pull/1062 -[#1088]: https://github.com/tj/commander.js/issues/1088 -[#1119]: https://github.com/tj/commander.js/pull/1119 -[#1133]: https://github.com/tj/commander.js/pull/1133 -[#1138]: https://github.com/tj/commander.js/pull/1138 -[#1145]: https://github.com/tj/commander.js/pull/1145 -[#1146]: https://github.com/tj/commander.js/pull/1146 -[#1149]: https://github.com/tj/commander.js/pull/1149 -[#1153]: https://github.com/tj/commander.js/issues/1153 -[#1159]: https://github.com/tj/commander.js/pull/1159 -[#1165]: https://github.com/tj/commander.js/pull/1165 -[#1169]: https://github.com/tj/commander.js/pull/1169 -[#1172]: https://github.com/tj/commander.js/pull/1172 -[#1179]: https://github.com/tj/commander.js/pull/1179 -[#1180]: https://github.com/tj/commander.js/pull/1180 -[#1184]: https://github.com/tj/commander.js/pull/1184 -[#1191]: https://github.com/tj/commander.js/pull/1191 -[#1195]: https://github.com/tj/commander.js/pull/1195 -[#1208]: https://github.com/tj/commander.js/pull/1208 -[#1232]: https://github.com/tj/commander.js/pull/1232 -[#1235]: https://github.com/tj/commander.js/pull/1235 -[#1236]: https://github.com/tj/commander.js/pull/1236 -[#1247]: https://github.com/tj/commander.js/pull/1247 -[#1248]: https://github.com/tj/commander.js/pull/1248 -[#1250]: https://github.com/tj/commander.js/pull/1250 -[#1256]: https://github.com/tj/commander.js/pull/1256 -[#1275]: https://github.com/tj/commander.js/pull/1275 -[#1296]: https://github.com/tj/commander.js/pull/1296 -[#1301]: https://github.com/tj/commander.js/issues/1301 -[#1306]: https://github.com/tj/commander.js/pull/1306 -[#1312]: https://github.com/tj/commander.js/pull/1312 -[#1322]: https://github.com/tj/commander.js/pull/1322 -[#1323]: https://github.com/tj/commander.js/pull/1323 -[#1325]: https://github.com/tj/commander.js/pull/1325 -[#1326]: https://github.com/tj/commander.js/pull/1326 -[#1331]: https://github.com/tj/commander.js/pull/1331 -[#1332]: https://github.com/tj/commander.js/pull/1332 -[#1349]: https://github.com/tj/commander.js/pull/1349 -[#1353]: https://github.com/tj/commander.js/pull/1353 -[#1360]: https://github.com/tj/commander.js/pull/1360 -[#1361]: https://github.com/tj/commander.js/pull/1361 -[#1365]: https://github.com/tj/commander.js/pull/1365 -[#1368]: https://github.com/tj/commander.js/pull/1368 -[#1375]: https://github.com/tj/commander.js/pull/1375 -[#1380]: https://github.com/tj/commander.js/pull/1380 -[#1387]: https://github.com/tj/commander.js/pull/1387 -[#1390]: https://github.com/tj/commander.js/pull/1390 -[#1403]: https://github.com/tj/commander.js/pull/1403 -[#1409]: https://github.com/tj/commander.js/pull/1409 -[#1427]: https://github.com/tj/commander.js/pull/1427 -[#1440]: https://github.com/tj/commander.js/pull/1440 -[#1448]: https://github.com/tj/commander.js/pull/1448 -[#1449]: https://github.com/tj/commander.js/pull/1449 -[#1453]: https://github.com/tj/commander.js/pull/1453 -[#1454]: https://github.com/tj/commander.js/pull/1454 -[#1464]: https://github.com/tj/commander.js/pull/1464 -[#1475]: https://github.com/tj/commander.js/pull/1475 -[#1477]: https://github.com/tj/commander.js/pull/1477 -[#1483]: https://github.com/tj/commander.js/pull/1483 - -[Unreleased]: https://github.com/tj/commander.js/compare/master...develop -[7.2.0]: https://github.com/tj/commander.js/compare/v7.1.0...v7.2.0 -[7.1.0]: https://github.com/tj/commander.js/compare/v7.0.0...v7.1.0 -[7.0.0]: https://github.com/tj/commander.js/compare/v6.2.1...v7.0.0 -[7.0.0-2]: https://github.com/tj/commander.js/compare/v7.0.0-1...v7.0.0-2 -[7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-0...v7.0.0-1 -[7.0.0-0]: https://github.com/tj/commander.js/compare/v6.2.0...v7.0.0-0 -[6.2.1]: https://github.com/tj/commander.js/compare/v6.2.0..v6.2.1 -[6.2.0]: https://github.com/tj/commander.js/compare/v6.1.0..v6.2.0 -[6.1.0]: https://github.com/tj/commander.js/compare/v6.0.0..v6.1.0 -[6.0.0]: https://github.com/tj/commander.js/compare/v5.1.0..v6.0.0 -[6.0.0-0]: https://github.com/tj/commander.js/compare/v5.1.0..v6.0.0-0 -[5.1.0]: https://github.com/tj/commander.js/compare/v5.0.0..v5.1.0 -[5.0.0]: https://github.com/tj/commander.js/compare/v4.1.1..v5.0.0 -[5.0.0-4]: https://github.com/tj/commander.js/compare/v5.0.0-3..v5.0.0-4 -[5.0.0-3]: https://github.com/tj/commander.js/compare/v5.0.0-2..v5.0.0-3 -[5.0.0-2]: https://github.com/tj/commander.js/compare/v5.0.0-1..v5.0.0-2 -[5.0.0-1]: https://github.com/tj/commander.js/compare/v5.0.0-0..v5.0.0-1 -[5.0.0-0]: https://github.com/tj/commander.js/compare/v4.1.1..v5.0.0-0 diff --git a/node_modules/svgo/node_modules/commander/LICENSE b/node_modules/svgo/node_modules/commander/LICENSE deleted file mode 100644 index 10f997ab..00000000 --- a/node_modules/svgo/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/svgo/node_modules/commander/Readme.md b/node_modules/svgo/node_modules/commander/Readme.md deleted file mode 100644 index d2a88a7b..00000000 --- a/node_modules/svgo/node_modules/commander/Readme.md +++ /dev/null @@ -1,917 +0,0 @@ -# Commander.js - -[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) -[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) - -The complete solution for [node.js](http://nodejs.org) command-line interfaces. - -Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - -- [Commander.js](#commanderjs) - - [Installation](#installation) - - [Declaring _program_ variable](#declaring-program-variable) - - [Options](#options) - - [Common option types, boolean and value](#common-option-types-boolean-and-value) - - [Default option value](#default-option-value) - - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) - - [Required option](#required-option) - - [Variadic option](#variadic-option) - - [Version option](#version-option) - - [More configuration](#more-configuration) - - [Custom option processing](#custom-option-processing) - - [Commands](#commands) - - [Specify the argument syntax](#specify-the-argument-syntax) - - [Action handler](#action-handler) - - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) - - [Automated help](#automated-help) - - [Custom help](#custom-help) - - [Display help from code](#display-help-from-code) - - [.usage and .name](#usage-and-name) - - [.helpOption(flags, description)](#helpoptionflags-description) - - [.addHelpCommand()](#addhelpcommand) - - [More configuration](#more-configuration-1) - - [Custom event listeners](#custom-event-listeners) - - [Bits and pieces](#bits-and-pieces) - - [.parse() and .parseAsync()](#parse-and-parseasync) - - [Parsing Configuration](#parsing-configuration) - - [Legacy options as properties](#legacy-options-as-properties) - - [TypeScript](#typescript) - - [createCommand()](#createcommand) - - [Node options such as `--harmony`](#node-options-such-as---harmony) - - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) - - [Override exit and output handling](#override-exit-and-output-handling) - - [Additional documentation](#additional-documentation) - - [Examples](#examples) - - [Support](#support) - - [Commander for enterprise](#commander-for-enterprise) - -For information about terms used in this document see: [terminology](./docs/terminology.md) - -## Installation - -```bash -npm install commander -``` - -## Declaring _program_ variable - -Commander exports a global object which is convenient for quick programs. -This is used in the examples in this README for brevity. - -```js -const { program } = require('commander'); -program.version('0.0.1'); -``` - -For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use. - -```js -const { Command } = require('commander'); -const program = new Command(); -program.version('0.0.1'); -``` - -For named imports in ECMAScript modules, import from `commander/esm.mjs`. - -```js -// index.mjs -import { Command } from 'commander/esm.mjs'; -const program = new Command(); -``` - -And in TypeScript: - -```ts -// index.ts -import { Command } from 'commander'; -const program = new Command(); -``` - - -## Options - -Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). - -The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc. - -Multiple short flags may optionally be combined in a single argument following the dash: boolean flags, followed by a single option taking a value (possibly followed by the value). -For example `-a -b -p 80` may be written as `-ab -p80` or even `-abp80`. - -You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. - -By default options on the command line are not positional, and can be specified before or after other arguments. - -### Common option types, boolean and value - -The two most used option types are a boolean option, and an option which takes its value -from the following argument (declared with angle brackets like `--expect `). Both are `undefined` unless specified on command line. - -Example file: [options-common.js](./examples/options-common.js) - -```js -program - .option('-d, --debug', 'output extra debugging') - .option('-s, --small', 'small pizza size') - .option('-p, --pizza-type ', 'flavour of pizza'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.debug) console.log(options); -console.log('pizza details:'); -if (options.small) console.log('- small pizza size'); -if (options.pizzaType) console.log(`- ${options.pizzaType}`); -``` - -```bash -$ pizza-options -d -{ debug: true, small: undefined, pizzaType: undefined } -pizza details: -$ pizza-options -p -error: option '-p, --pizza-type ' argument missing -$ pizza-options -ds -p vegetarian -{ debug: true, small: true, pizzaType: 'vegetarian' } -pizza details: -- small pizza size -- vegetarian -$ pizza-options --pizza-type=cheese -pizza details: -- cheese -``` - -`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. - -### Default option value - -You can specify a default value for an option which takes a value. - -Example file: [options-defaults.js](./examples/options-defaults.js) - -```js -program - .option('-c, --cheese ', 'add the specified type of cheese', 'blue'); - -program.parse(); - -console.log(`cheese: ${program.opts().cheese}`); -``` - -```bash -$ pizza-options -cheese: blue -$ pizza-options --cheese stilton -cheese: stilton -``` - -### Other option types, negatable boolean and boolean|value - -You can define a boolean option long name with a leading `no-` to set the option value to false when used. -Defined alone this also makes the option true by default. - -If you define `--foo` first, adding `--no-foo` does not change the default value from what it would -otherwise be. You can specify a default boolean value for a boolean option and it can be overridden on command line. - -Example file: [options-negatable.js](./examples/options-negatable.js) - -```js -program - .option('--no-sauce', 'Remove sauce') - .option('--cheese ', 'cheese flavour', 'mozzarella') - .option('--no-cheese', 'plain with no cheese') - .parse(); - -const options = program.opts(); -const sauceStr = options.sauce ? 'sauce' : 'no sauce'; -const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; -console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); -``` - -```bash -$ pizza-options -You ordered a pizza with sauce and mozzarella cheese -$ pizza-options --sauce -error: unknown option '--sauce' -$ pizza-options --cheese=blue -You ordered a pizza with sauce and blue cheese -$ pizza-options --no-sauce --no-cheese -You ordered a pizza with no sauce and no cheese -``` - -You can specify an option which may be used as a boolean option but may optionally take an option-argument -(declared with square brackets like `--optional [value]`). - -Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) - -```js -program - .option('-c, --cheese [type]', 'Add cheese with optional type'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.cheese === undefined) console.log('no cheese'); -else if (options.cheese === true) console.log('add cheese'); -else console.log(`add cheese type ${options.cheese}`); -``` - -```bash -$ pizza-options -no cheese -$ pizza-options --cheese -add cheese -$ pizza-options --cheese mozzarella -add cheese type mozzarella -``` - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Required option - -You may specify a required (mandatory) option using `.requiredOption`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option` in format, taking flags and description, and optional default value or custom processing. - -Example file: [options-required.js](./examples/options-required.js) - -```js -program - .requiredOption('-c, --cheese ', 'pizza must have cheese'); - -program.parse(); -``` - -```bash -$ pizza -error: required option '-c, --cheese ' not specified -``` - -### Variadic option - -You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you -can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments -are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value -is specified in the same argument as the option then no further values are read. - -Example file: [options-variadic.js](./examples/options-variadic.js) - -```js -program - .option('-n, --number ', 'specify numbers') - .option('-l, --letter [letters...]', 'specify letters'); - -program.parse(); - -console.log('Options: ', program.opts()); -console.log('Remaining arguments: ', program.args); -``` - -```bash -$ collect -n 1 2 3 --letter a b c -Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } -Remaining arguments: [] -$ collect --letter=A -n80 operand -Options: { number: [ '80' ], letter: [ 'A' ] } -Remaining arguments: [ 'operand' ] -$ collect --letter -n 1 -n 2 3 -- operand -Options: { number: [ '1', '2', '3' ], letter: true } -Remaining arguments: [ 'operand' ] -``` - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Version option - -The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits. - -```js -program.version('0.0.1'); -``` - -```bash -$ ./examples/pizza -V -0.0.1 -``` - -You may change the flags and description by passing additional parameters to the `version` method, using -the same syntax for flags as the `option` method. - -```js -program.version('0.0.1', '-v, --vers', 'output the current version'); -``` - -### More configuration - -You can add most options using the `.option()` method, but there are some additional features available -by constructing an `Option` explicitly for less common cases. - -Example file: [options-extra.js](./examples/options-extra.js) - -```js -program - .addOption(new Option('-s, --secret').hideHelp()) - .addOption(new Option('-t, --timeout ', 'timeout in seconds').default(60, 'one minute')) - .addOption(new Option('-d, --drink ', 'drink size').choices(['small', 'medium', 'large'])); -``` - -```bash -$ extra --help -Usage: help [options] - -Options: - -t, --timeout timeout in seconds (default: one minute) - -d, --drink drink cup size (choices: "small", "medium", "large") - -h, --help display help for command - -$ extra --drink huge -error: option '-d, --drink ' argument 'huge' is invalid. Allowed choices are small, medium, large. -``` - -### Custom option processing - -You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, -the user specified option-argument and the previous value for the option. It returns the new value for the option. - -This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. - -You can optionally specify the default/starting value for the option after the function parameter. - -Example file: [options-custom-processing.js](./examples/options-custom-processing.js) - -```js -function myParseInt(value, dummyPrevious) { - // parseInt takes a string and a radix - const parsedValue = parseInt(value, 10); - if (isNaN(parsedValue)) { - throw new commander.InvalidOptionArgumentError('Not a number.'); - } - return parsedValue; -} - -function increaseVerbosity(dummyValue, previous) { - return previous + 1; -} - -function collect(value, previous) { - return previous.concat([value]); -} - -function commaSeparatedList(value, dummyPrevious) { - return value.split(','); -} - -program - .option('-f, --float ', 'float argument', parseFloat) - .option('-i, --integer ', 'integer argument', myParseInt) - .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) - .option('-c, --collect ', 'repeatable value', collect, []) - .option('-l, --list ', 'comma separated list', commaSeparatedList) -; - -program.parse(); - -const options = program.opts(); -if (options.float !== undefined) console.log(`float: ${options.float}`); -if (options.integer !== undefined) console.log(`integer: ${options.integer}`); -if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); -if (options.collect.length > 0) console.log(options.collect); -if (options.list !== undefined) console.log(options.list); -``` - -```bash -$ custom -f 1e2 -float: 100 -$ custom --integer 2 -integer: 2 -$ custom -v -v -v -verbose: 3 -$ custom -c a -c b -c c -[ 'a', 'b', 'c' ] -$ custom --list x,y,z -[ 'x', 'y', 'z' ] -``` - -## Commands - -You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)). - -In the first parameter to `.command()` you specify the command name and any command-arguments. The arguments may be `` or `[optional]`, and the last argument may also be `variadic...`. - -You can use `.addCommand()` to add an already configured subcommand to the program. - -For example: - -```js -// Command implemented using action handler (description is supplied separately to `.command`) -// Returns new command for configuring. -program - .command('clone [destination]') - .description('clone a repository into a newly created directory') - .action((source, destination) => { - console.log('clone command called'); - }); - -// Command implemented using stand-alone executable file (description is second parameter to `.command`) -// Returns `this` for adding more commands. -program - .command('start ', 'start named service') - .command('stop [service]', 'stop named service, or all if no name supplied'); - -// Command prepared separately. -// Returns `this` for adding more commands. -program - .addCommand(build.makeBuildCommand()); -``` - -Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will -remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other -subcommand is specified ([example](./examples/defaultCommand.js)). - -### Specify the argument syntax - -You use `.arguments` to specify the expected command-arguments for the top-level command, and for subcommands they are usually -included in the `.command` call. Angled brackets (e.g. ``) indicate required command-arguments. -Square brackets (e.g. `[optional]`) indicate optional command-arguments. -You can optionally describe the arguments in the help by supplying a hash as second parameter to `.description()`. - -Example file: [arguments.js](./examples/arguments.js) - -```js -program - .version('0.1.0') - .arguments(' [password]') - .description('test command', { - username: 'user to login', - password: 'password for user, if required' - }) - .action((username, password) => { - console.log('username:', username); - console.log('environment:', password || 'no password given'); - }); -``` - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you - append `...` to the argument name. For example: - -```js -program - .version('0.1.0') - .command('rmdir ') - .action(function (dirs) { - dirs.forEach((dir) => { - console.log('rmdir %s', dir); - }); - }); -``` - -The variadic argument is passed to the action handler as an array. - -### Action handler - -The action handler gets passed a parameter for each command-argument you declared, and two additional parameters -which are the parsed options and the command object itself. - -Example file: [thank.js](./examples/thank.js) - -```js -program - .arguments('') - .option('-t, --title ', 'title to use before name') - .option('-d, --debug', 'display some debugging') - .action((name, options, command) => { - if (options.debug) { - console.error('Called %s with options %o', command.name(), options); - } - const title = options.title ? `${options.title} ` : ''; - console.log(`Thank-you ${title}${name}`); - }); -``` - -You may supply an `async` action handler, in which case you call `.parseAsync` rather than `.parse`. - -```js -async function run() { /* code goes here */ } - -async function main() { - program - .command('run') - .action(run); - await program.parseAsync(process.argv); -} -``` - -A command's options and arguments on the command line are validated when the command is used. Any unknown options or missing arguments will be reported as an error. You can suppress the unknown option checks with `.allowUnknownOption()`. By default it is not an error to -pass more arguments than declared, but you can make this an error with `.allowExcessArguments(false)`. - -### Stand-alone executable (sub)commands - -When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands. -Commander will search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-subcommand`, like `pm-install`, `pm-search`. -You can specify a custom name with the `executableFile` configuration option. - -You handle the options for an executable (sub)command in the executable, and don't declare them at the top-level. - -Example file: [pm](./examples/pm) - -```js -program - .version('0.1.0') - .command('install [name]', 'install one or more packages') - .command('search [query]', 'search with optional query') - .command('update', 'update installed packages', { executableFile: 'myUpdateSubCommand' }) - .command('list', 'list packages installed', { isDefault: true }); - -program.parse(process.argv); -``` - -If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. - -## Automated help - -The help information is auto-generated based on the information commander already knows about your program. The default -help option is `-h,--help`. - -Example file: [pizza](./examples/pizza) - -```bash -$ node ./examples/pizza --help -Usage: pizza [options] - -An application for pizza ordering - -Options: - -p, --peppers Add peppers - -c, --cheese Add the specified type of cheese (default: "marble") - -C, --no-cheese You do not want any cheese - -h, --help display help for command -``` - -A `help` command is added by default if your command has subcommands. It can be used alone, or with a subcommand name to show -further help for the subcommand. These are effectively the same if the `shell` program has implicit help: - -```bash -shell help -shell --help - -shell help spawn -shell spawn --help -``` - -### Custom help - -You can add extra text to be displayed along with the built-in help. - -Example file: [custom-help](./examples/custom-help) - -```js -program - .option('-f, --foo', 'enable some foo'); - -program.addHelpText('after', ` - -Example call: - $ custom-help --help`); -``` - -Yields the following help output: - -```Text -Usage: custom-help [options] - -Options: - -f, --foo enable some foo - -h, --help display help for command - -Example call: - $ custom-help --help -``` - -The positions in order displayed are: - -- `beforeAll`: add to the program for a global banner or header -- `before`: display extra information before built-in help -- `after`: display extra information after built-in help -- `afterAll`: add to the program for a global footer (epilog) - -The positions "beforeAll" and "afterAll" apply to the command and all its subcommands. - -The second parameter can be a string, or a function returning a string. The function is passed a context object for your convenience. The properties are: - -- error: a boolean for whether the help is being displayed due to a usage error -- command: the Command which is displaying the help - -### Display help from code - -`.help()`: display help information and exit immediately. You can optionally pass `{ error: true }` to display on stderr and exit with an error status. - -`.outputHelp()`: output help information without exiting. You can optionally pass `{ error: true }` to display on stderr. - -`.helpInformation()`: get the built-in command help information as a string for processing or displaying yourself. - -### .usage and .name - -These allow you to customise the usage description in the first line of the help. The name is otherwise -deduced from the (full) program arguments. Given: - -```js -program - .name("my-command") - .usage("[global options] command") -``` - -The help will start with: - -```Text -Usage: my-command [global options] command -``` - -### .helpOption(flags, description) - -By default every command has a help option. Override the default help flags and description. Pass false to disable the built-in help option. - -```js -program - .helpOption('-e, --HELP', 'read more information'); -``` - -### .addHelpCommand() - -A help command is added by default if your command has subcommands. You can explicitly turn on or off the implicit help command with `.addHelpCommand()` and `.addHelpCommand(false)`. - -You can both turn on and customise the help command by supplying the name and description: - -```js -program.addHelpCommand('assist [command]', 'show assistance'); -``` - -### More configuration - -The built-in help is formatted using the Help class. -You can configure the Help behaviour by modifying data properties and methods using `.configureHelp()`, or by subclassing using `.createHelp()` if you prefer. - -The data properties are: - -- `helpWidth`: specify the wrap width, useful for unit tests -- `sortSubcommands`: sort the subcommands alphabetically -- `sortOptions`: sort the options alphabetically - -There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a _term_ and _description_. Take a look at `.formatHelp()` to see how they are used. - -Example file: [configure-help.js](./examples/configure-help.js) - -``` -program.configureHelp({ - sortSubcommands: true, - subcommandTerm: (cmd) => cmd.name() // Just show the name, instead of short usage. -}); -``` - -## Custom event listeners - -You can execute custom actions by listening to command and option events. - -```js -program.on('option:verbose', function () { - process.env.VERBOSE = this.opts().verbose; -}); - -program.on('command:*', function (operands) { - console.error(`error: unknown command '${operands[0]}'`); - const availableCommands = program.commands.map(cmd => cmd.name()); - mySuggestBestMatch(operands[0], availableCommands); - process.exitCode = 1; -}); -``` - -## Bits and pieces - -### .parse() and .parseAsync() - -The first argument to `.parse` is the array of strings to parse. You may omit the parameter to implicitly use `process.argv`. - -If the arguments follow different conventions than node you can pass a `from` option in the second parameter: - -- 'node': default, `argv[0]` is the application and `argv[1]` is the script being run, with user parameters after that -- 'electron': `argv[1]` varies depending on whether the electron application is packaged -- 'user': all of the arguments from the user - -For example: - -```js -program.parse(process.argv); // Explicit, node conventions -program.parse(); // Implicit, and auto-detect electron -program.parse(['-f', 'filename'], { from: 'user' }); -``` - -### Parsing Configuration - -If the default parsing does not suit your needs, there are some behaviours to support other usage patterns. - -By default program options are recognised before and after subcommands. To only look for program options before subcommands, use `.enablePositionalOptions()`. This lets you use -an option for a different purpose in subcommands. - -Example file: [positional-options.js](./examples/positional-options.js) - -With positional options, the `-b` is a program option in the first line and a subcommand option in the second line: - -```sh -program -b subcommand -program subcommand -b -``` - -By default options are recognised before and after command-arguments. To only process options that come -before the command-arguments, use `.passThroughOptions()`. This lets you pass the arguments and following options through to another program -without needing to use `--` to end the option processing. -To use pass through options in a subcommand, the program needs to enable positional options. - -Example file: [pass-through-options.js](./examples/pass-through-options.js) - -With pass through options, the `--port=80` is a program option in the first line and passed through as a command-argument in the second line: - -```sh -program --port=80 arg -program arg --port=80 -``` - -By default the option processing shows an error for an unknown option. To have an unknown option treated as an ordinary command-argument and continue looking for options, use `.allowUnknownOption()`. This lets you mix known and unknown options. - -By default the argument processing does not display an error for more command-arguments than expected. -To display an error for excess arguments, use`.allowExcessArguments(false)`. - -### Legacy options as properties - -Before Commander 7, the option values were stored as properties on the command. -This was convenient to code but the downside was possible clashes with -existing properties of `Command`. You can revert to the old behaviour to run unmodified legacy code by using `.storeOptionsAsProperties()`. - -```js -program - .storeOptionsAsProperties() - .option('-d, --debug') - .action((commandAndOptions) => { - if (commandAndOptions.debug) { - console.error(`Called ${commandAndOptions.name()}`); - } - }); -``` - -### TypeScript - -If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g. - -```bash -node -r ts-node/register pm.ts -``` - -### createCommand() - -This factory function creates a new command. It is exported and may be used instead of using `new`, like: - -```js -const { createCommand } = require('commander'); -const program = createCommand(); -``` - -`createCommand` is also a method of the Command object, and creates a new command rather than a subcommand. This gets used internally -when creating subcommands using `.command()`, and you may override it to -customise the new subcommand (example file [custom-command-class.js](./examples/custom-command-class.js)). - -### Node options such as `--harmony` - -You can enable `--harmony` option in two ways: - -- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note Windows does not support this pattern.) -- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand process. - -### Debugging stand-alone executable subcommands - -An executable subcommand is launched as a separate child process. - -If you are using the node inspector for [debugging](https://nodejs.org/en/docs/guides/debugging-getting-started/) executable subcommands using `node --inspect` et al, -the inspector port is incremented by 1 for the spawned subcommand. - -If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your launch.json configuration. - -### Override exit and output handling - -By default Commander calls `process.exit` when it detects errors, or after displaying the help or version. You can override -this behaviour and optionally supply a callback. The default override throws a `CommanderError`. - -The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`. The default override behaviour is to throw the error, except for async handling of executable subcommand completion which carries on. The normal display of error messages or version or help -is not affected by the override which is called after the display. - -```js -program.exitOverride(); - -try { - program.parse(process.argv); -} catch (err) { - // custom processing... -} -``` - -By default Commander is configured for a command-line application and writes to stdout and stderr. -You can modify this behaviour for custom applications. In addition, you can modify the display of error messages. - -Example file: [configure-output.js](./examples/configure-output.js) - - -```js -function errorColor(str) { - // Add ANSI escape codes to display text in red. - return `\x1b[31m${str}\x1b[0m`; -} - -program - .configureOutput({ - // Visibly override write routines as example! - writeOut: (str) => process.stdout.write(`[OUT] ${str}`), - writeErr: (str) => process.stdout.write(`[ERR] ${str}`), - // Highlight errors in color. - outputError: (str, write) => write(errorColor(str)) - }); -``` - -### Additional documentation - -There is more information available about: - -- [deprecated](./docs/deprecated.md) features still supported for backwards compatibility -- [options taking varying arguments](./docs/options-taking-varying-arguments.md) - -## Examples - -In a single command program, you might not need an action handler. - -Example file: [pizza](./examples/pizza) - -```js -const { program } = require('commander'); - -program - .description('An application for pizza ordering') - .option('-p, --peppers', 'Add peppers') - .option('-c, --cheese ', 'Add the specified type of cheese', 'marble') - .option('-C, --no-cheese', 'You do not want any cheese'); - -program.parse(); - -const options = program.opts(); -console.log('you ordered a pizza with:'); -if (options.peppers) console.log(' - peppers'); -const cheese = !options.cheese ? 'no' : options.cheese; -console.log(' - %s cheese', cheese); -``` - -In a multi-command program, you will have action handlers for each command (or stand-alone executables for the commands). - -Example file: [deploy](./examples/deploy) - -```js -const { Command } = require('commander'); -const program = new Command(); - -program - .version('0.0.1') - .option('-c, --config ', 'set config path', './deploy.conf'); - -program - .command('setup [env]') - .description('run setup commands for all envs') - .option('-s, --setup_mode ', 'Which setup mode to use', 'normal') - .action((env, options) => { - env = env || 'all'; - console.log('read config from %s', program.opts().config); - console.log('setup for %s env(s) with %s mode', env, options.setup_mode); - }); - -program - .command('exec